@harperfast/harper 5.2.13 → 5.2.14

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 (264) hide show
  1. package/components/Application.ts +7 -7
  2. package/components/componentLoader.ts +70 -33
  3. package/dist/components/Application.js +1 -7
  4. package/dist/components/Application.js.map +1 -1
  5. package/dist/components/componentLoader.d.ts +6 -0
  6. package/dist/components/componentLoader.js +60 -31
  7. package/dist/components/componentLoader.js.map +1 -1
  8. package/dist/resources/RocksTransactionLogStore.d.ts +4 -2
  9. package/dist/resources/RocksTransactionLogStore.js +12 -6
  10. package/dist/resources/RocksTransactionLogStore.js.map +1 -1
  11. package/dist/resources/Table.js +40 -4
  12. package/dist/resources/Table.js.map +1 -1
  13. package/dist/resources/replayLogs.js +25 -21
  14. package/dist/resources/replayLogs.js.map +1 -1
  15. package/dist/resources/transactionBroadcast.js +4 -6
  16. package/dist/resources/transactionBroadcast.js.map +1 -1
  17. package/dist/security/certificateVerification/index.js +40 -11
  18. package/dist/security/certificateVerification/index.js.map +1 -1
  19. package/dist/security/certificateVerification/trustedIssuers.d.ts +24 -0
  20. package/dist/security/certificateVerification/trustedIssuers.js +79 -0
  21. package/dist/security/certificateVerification/trustedIssuers.js.map +1 -0
  22. package/dist/security/certificateVerification/types.d.ts +1 -0
  23. package/dist/security/keys.js +4 -0
  24. package/dist/security/keys.js.map +1 -1
  25. package/dist/server/loadRootComponents.js +4 -2
  26. package/dist/server/loadRootComponents.js.map +1 -1
  27. package/dist/server/threads/manageThreads.d.ts +1 -0
  28. package/dist/server/threads/manageThreads.js +175 -24
  29. package/dist/server/threads/manageThreads.js.map +1 -1
  30. package/npm-shrinkwrap.json +2 -2
  31. package/package.json +1 -1
  32. package/resources/DESIGN.md +5 -0
  33. package/resources/RocksTransactionLogStore.ts +12 -6
  34. package/resources/Table.ts +39 -4
  35. package/resources/replayLogs.ts +25 -22
  36. package/resources/transactionBroadcast.ts +4 -4
  37. package/security/certificateVerification/index.ts +54 -13
  38. package/security/certificateVerification/trustedIssuers.ts +76 -0
  39. package/security/certificateVerification/types.ts +1 -0
  40. package/security/keys.ts +3 -0
  41. package/server/DESIGN.md +14 -13
  42. package/server/loadRootComponents.js +9 -2
  43. package/server/threads/manageThreads.js +176 -23
  44. package/studio/web/404.html +79 -0
  45. package/studio/web/assets/{Chat-4RrB5134.js → Chat-C97PMlIn.js} +274 -247
  46. package/studio/web/assets/FloatingChat-BUlsFGMV.js +23 -0
  47. package/studio/web/assets/_basePickBy-QJXUw_pr.js +1 -0
  48. package/studio/web/assets/_baseUniq-DR4vVjyC.js +1 -0
  49. package/studio/web/assets/{abnfDiagram-VCTEODGH-B0BebmD2.js → abnfDiagram-O67JEVCF-DpPZWMOf.js} +1 -1
  50. package/studio/web/assets/{alertDialog-CQyAJJhl.js → alertDialog-UrbiMgQt.js} +1 -1
  51. package/studio/web/assets/{apiToken-Bke3wvfZ.js → apiToken-CPhbc_zN.js} +1 -1
  52. package/studio/web/assets/applications-D3Z6BVDl.js +296 -0
  53. package/studio/web/assets/architecture-7GRP2DOG-11l4Ny1l.js +1 -0
  54. package/studio/web/assets/architectureDiagram-NJMV4G6O-OmgLraID.js +36 -0
  55. package/studio/web/assets/authStore-5jSS5pTW.js +3 -0
  56. package/studio/web/assets/{blockDiagram-I7D4REHJ-BqguiadH.js → blockDiagram-BEXU5L5S-Cv7CD3Ai.js} +15 -4
  57. package/studio/web/assets/{button-BIsUKRZq.js → button-MFP9n8Ck.js} +1 -1
  58. package/studio/web/assets/c4Diagram-YGBWAQC7-Ds1vKYnN.js +38 -0
  59. package/studio/web/assets/channel-BDtouPd6.js +1 -0
  60. package/studio/web/assets/chevron-up-CFe8x5Bp.js +1 -0
  61. package/studio/web/assets/chunk-3FUC2YCW-DpnBPH8B.js +2 -0
  62. package/studio/web/assets/{chunk-GVQU2GXP-sbwVIQ8i.js → chunk-5DYCD2WN-LLLCQSzg.js} +1 -1
  63. package/studio/web/assets/{chunk-PWAF6VOD-1z1THyS5.js → chunk-742MDFTN-BL8J_pIO.js} +1 -1
  64. package/studio/web/assets/chunk-7INBJB4K-C-hJHiiK.js +62 -0
  65. package/studio/web/assets/chunk-7M6MHVWA-C6ZqkFbA.js +213 -0
  66. package/studio/web/assets/chunk-7PRAP22T-CUXM8BG6.js +1 -0
  67. package/studio/web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  68. package/studio/web/assets/{chunk-FOHPRMQF-DHwB1DNv.js → chunk-FOHPRMQF-DzxwRta7.js} +9 -9
  69. package/studio/web/assets/{chunk-SVP7TREG-jtdAHw0S.js → chunk-GTNCS2PH-DJ2BFvS1.js} +1 -1
  70. package/studio/web/assets/{chunk-F27PBJKO-BVA5EPhV.js → chunk-GWA4HPMP-C42bSqLL.js} +1 -1
  71. package/studio/web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  72. package/studio/web/assets/chunk-MBY4JIJT-C-5jz6Lo.js +72 -0
  73. package/studio/web/assets/chunk-NETBCI7D-D-bzlN4r.js +1 -0
  74. package/studio/web/assets/chunk-O7XYJQB3-ep14zA23.js +128 -0
  75. package/studio/web/assets/chunk-UA2S7LBM-BMRWRHED.js +1 -0
  76. package/studio/web/assets/{chunk-POPQ4Y6H-ClWhhkwW.js → chunk-WEXAMYUT-DdLYVdX1.js} +1 -1
  77. package/studio/web/assets/{chunk-XXDRQBXY-BoGZu3HH.js → chunk-XXDRQBXY-CbPh2l8S.js} +1 -1
  78. package/studio/web/assets/{chunk-OSK3NFVY-ByciRftO.js → chunk-Z7XXMR3K-BmKEDjcP.js} +3 -3
  79. package/studio/web/assets/{chunk-75Z2AOVW-QGQD6th2.js → chunk-ZIGJFQKS-DLZgdNxA.js} +2 -2
  80. package/studio/web/assets/classDiagram-v2-NBCMYWYE-DOI5vgKT.js +217 -0
  81. package/studio/web/assets/cose-bilkent-JH36ORCC-BSOszL11.js +1 -0
  82. package/studio/web/assets/createLucideIcon-bziYxJli.js +1 -0
  83. package/studio/web/assets/{css.worker-BD9HbRGW.js → css.worker-l1psR_wG.js} +13 -10
  84. package/studio/web/assets/{cssMode-C1vRa7zh.js → cssMode-DyLZPMjo.js} +1 -1
  85. package/studio/web/assets/cynefin-OW5HDTMX-BSW-DB7S.js +1 -0
  86. package/studio/web/assets/cynefinDiagram-VND7K2PF-CbAHEwxt.js +62 -0
  87. package/studio/web/assets/cytoscape.esm-BZkf-uXn.js +321 -0
  88. package/studio/web/assets/dagre-6A5THRUB-Csxewgs4.js +4 -0
  89. package/studio/web/assets/diagram-22UHCM2B-a0rt8tY4.js +200 -0
  90. package/studio/web/assets/{diagram-VX7I27RA-DccVJet6.js → diagram-3UASUU5V-lEj2SVNh.js} +2 -2
  91. package/studio/web/assets/{diagram-VSXAHHWV-fhEdmkwM.js → diagram-ATOU4E4O-HcrAeB-q.js} +3 -3
  92. package/studio/web/assets/{diagram-S7CK7UJ4-aoCVTtcy.js → diagram-CDSNMT55-CYxiuyEx.js} +3 -3
  93. package/studio/web/assets/{diagram-Z3DM3KII-D-RyJJb7.js → diagram-MLGK6HIB-ChbCJTgJ.js} +1 -1
  94. package/studio/web/assets/diagram-MPIPVDR6-DaX9Y-N3.js +41 -0
  95. package/studio/web/assets/dialog-DTepachC.js +1 -0
  96. package/studio/web/assets/{dist-kYfyPZP9.js → dist-BRuBKNNy.js} +1 -1
  97. package/studio/web/assets/{dist-DP8UjMB_.js → dist-Cz2Y6-6G.js} +2 -2
  98. package/studio/web/assets/download-CtostjYn.js +1 -0
  99. package/studio/web/assets/{ebnfDiagram-PWID7BFC-DJGpIpz_.js → ebnfDiagram-ZINNZB2B-CwAsENB1.js} +1 -1
  100. package/studio/web/assets/{editor-3XRWEDWX.js → editor-CFQ5kbiT.js} +1 -1
  101. package/studio/web/assets/editor.worker-CkkvdXvO.js +33 -0
  102. package/studio/web/assets/elk-276RUBZZ-Hexg9E4D.js +27 -0
  103. package/studio/web/assets/{erDiagram-RLTQ6QDP-CIfNlgkC.js → erDiagram-OPXOYQCR-CeC-wwO1.js} +15 -15
  104. package/studio/web/assets/eventmodeling-NTZA5JFV-CFb03e0o.js +1 -0
  105. package/studio/web/assets/flowDiagram-KWPJA3E3-Cidi00_Y.js +1 -0
  106. package/studio/web/assets/{ganttDiagram-EL5Y4UJY-BxToTzzD.js → ganttDiagram-FUAMR5RP-C2_Hhl1-.js} +2 -2
  107. package/studio/web/assets/{getAnalytics-GHK8ORfM.js → getAnalytics-CjthMQqF.js} +1 -1
  108. package/studio/web/assets/gitGraph-4MIJSDKK-xIk5Vuew.js +1 -0
  109. package/studio/web/assets/{gitGraphDiagram-WWUBYQGX-Dwntd4-x.js → gitGraphDiagram-X574FWY7-CMxJ34up.js} +4 -4
  110. package/studio/web/assets/graphlib-C9Tl7QrK.js +1 -0
  111. package/studio/web/assets/{html-CTY5tdMr.js → html-DdMBJEGu.js} +1 -1
  112. package/studio/web/assets/{html.worker-DsMmVtuG.js → html.worker-DdwM4IrA.js} +12 -9
  113. package/studio/web/assets/{htmlMode-CG1vSD9t.js → htmlMode-DNtBx3OV.js} +1 -1
  114. package/studio/web/assets/index-CPoDzQTe.css +1 -0
  115. package/studio/web/assets/index-zZCxAIEb.js +824 -0
  116. package/studio/web/assets/index.lazy-CKbsHbSN.js +2 -0
  117. package/studio/web/assets/info-A6RAGUB7-o49TEbj-.js +1 -0
  118. package/studio/web/assets/infoDiagram-VRGFBTTK-Cjhh7yzZ.js +2 -0
  119. package/studio/web/assets/{ishikawaDiagram-5VMMS53U-D9Xh2r6X.js → ishikawaDiagram-OU5B5YK6-C63aXRmh.js} +2 -2
  120. package/studio/web/assets/{javascript-CJeJzGnI.js → javascript-Dy6KbeHT.js} +1 -1
  121. package/studio/web/assets/{journeyDiagram-3NMN7TZE-CokIi6ll.js → journeyDiagram-ZHPQQLJL-D_o0P5Mu.js} +3 -3
  122. package/studio/web/assets/json.worker-CSi2hF-a.js +65 -0
  123. package/studio/web/assets/{jsonMode-CYPBwM82.js → jsonMode-BiuDVrzl.js} +1 -1
  124. package/studio/web/assets/{kanban-definition-UXKFOSKX-CukSFJfX.js → kanban-definition-PNTS6WVX-CTI9SSxY.js} +7 -7
  125. package/studio/web/assets/{katex-CXMH3UgJ.js → katex-ZlcWpGUi.js} +2 -2
  126. package/studio/web/assets/languageServices-Dk8_6B25.js +1 -0
  127. package/studio/web/assets/linear-Ds1AeO4V.js +1 -0
  128. package/studio/web/assets/{lspLanguageFeatures-BC8_gxKG.js → lspLanguageFeatures-DwJKXzQa.js} +2 -2
  129. package/studio/web/assets/{mermaid-parser.core-BlEsOWNO.js → mermaid-parser.core-C2lcH_jP.js} +3 -3
  130. package/studio/web/assets/mermaid.core-BG5bjfIG.js +44 -0
  131. package/studio/web/assets/{mindmap-definition-YA3MSWOX-IprMc_0j.js → mindmap-definition-NLK3R4M7-BK7ho6JD.js} +24 -24
  132. package/studio/web/assets/{notifications-DFbArTfC.js → notifications-DJqAtWxD.js} +1 -1
  133. package/studio/web/assets/{notifications-BfKBpYcq.js → notifications-DsDtb41c.js} +1 -1
  134. package/studio/web/assets/packet-AYTQ26CC-BHPy6KBV.js +1 -0
  135. package/studio/web/assets/{pegDiagram-XKGWAZYB-BNuPDLZY.js → pegDiagram-GJSIUBJH-DzjwG3jO.js} +1 -1
  136. package/studio/web/assets/pie-WAS4IAKB-D0cP-DTU.js +1 -0
  137. package/studio/web/assets/{pieDiagram-E7YTZNPT-DqNb6Ht2.js → pieDiagram-5QR66LMP-C_hOP9Lv.js} +2 -2
  138. package/studio/web/assets/profile-zTGUN51x.js +1 -0
  139. package/studio/web/assets/{quadrantDiagram-AXDQQJYC-BGH9E2YR.js → quadrantDiagram-O4NWA36T-CZW8PbV1.js} +3 -3
  140. package/studio/web/assets/radar-RG4KPBEZ-C8fk0U81.js +1 -0
  141. package/studio/web/assets/railroad-74A4TZTK-B60FWm17.js +1 -0
  142. package/studio/web/assets/railroad-abnf-HS5TGJTU-CLMVZvH0.js +1 -0
  143. package/studio/web/assets/railroad-ebnf-LZEXJU2U--tlwFoVB.js +1 -0
  144. package/studio/web/assets/railroad-peg-WCYAUIDC-Dpuslblm.js +1 -0
  145. package/studio/web/assets/{railroadDiagram-O6MQD6OU-DGTPh2KZ.js → railroadDiagram-XR7U4H2S-DyyNmgbU.js} +1 -1
  146. package/studio/web/assets/regions-SOtABPB9.js +1 -0
  147. package/studio/web/assets/{register-1ZZuMsiA.js → register-7JezVakc.js} +39 -39
  148. package/studio/web/assets/{requirementDiagram-BXWQKSXE-BJnO6uLz.js → requirementDiagram-PLB6GJNP-C4H-mLKu.js} +11 -11
  149. package/studio/web/assets/{rolldown-runtime-hePW80VL.js → rolldown-runtime-Dd_uD5pT.js} +1 -1
  150. package/studio/web/assets/sankeyDiagram-IPEJSGJF-DHDyga4c.js +40 -0
  151. package/studio/web/assets/sequenceDiagram-PO4LG4MO-CdNcHXRI.js +169 -0
  152. package/studio/web/assets/setComponentFile-BavlhfY0.js +1 -0
  153. package/studio/web/assets/{setup-DWprJyJy.js → setup-04yVzr2I.js} +2 -2
  154. package/studio/web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  155. package/studio/web/assets/{src-CMc7m_Ut.js → src-D0vMJQRr.js} +1 -1
  156. package/studio/web/assets/stateDiagram-v2-GCMORJYK-CpKuXq15.js +291 -0
  157. package/studio/web/assets/status-g_mNYE7j.js +61 -0
  158. package/studio/web/assets/swimlanes-2SLR337P-NRHa2D8I.js +1 -0
  159. package/studio/web/assets/swimlanesDiagram-TC7HE7FX-BBk4t4hO.js +8 -0
  160. package/studio/web/assets/{tabs-BrHu7gJi.js → tabs-CnQ_zenf.js} +1 -1
  161. package/studio/web/assets/{time-Cclkb7kQ.js → time-Ci1v4fvT.js} +1 -1
  162. package/studio/web/assets/timeline-definition-EJHVYXUP-D39Y-xpq.js +120 -0
  163. package/studio/web/assets/toggleHighContrast-i2FjCrzO.js +49 -0
  164. package/studio/web/assets/treeView-Q6P3EWNA-CRWR9OqD.js +1 -0
  165. package/studio/web/assets/treemap-WGGIJYW6-ZfXyJgLO.js +1 -0
  166. package/studio/web/assets/{ts.worker-DpaaFKhy.js → ts.worker-DDMUrpqh.js} +118 -115
  167. package/studio/web/assets/{tsMode-pjgytARx.js → tsMode-DGeWfx0W.js} +5 -5
  168. package/studio/web/assets/{typescript-Cdg0mqUh.js → typescript-62_1FUbs.js} +1 -1
  169. package/studio/web/assets/{useEntityRestURL-RZhaY8Rn.js → useEntityRestURL-DSVwev9J.js} +1 -1
  170. package/studio/web/assets/useLocalStorage-BYoZF60G.js +1 -0
  171. package/studio/web/assets/usecaseDiagram-POWQR4AR-jf-zIDZ_.js +328 -0
  172. package/studio/web/assets/vendor-core-BdkdbUek.js +63 -0
  173. package/studio/web/assets/vendor-datadog-fCQhBHGk.js +6 -0
  174. package/studio/web/assets/vendor-react-izWchTRL.js +9 -0
  175. package/studio/web/assets/vendor-tanstack-CQ1aRjVa.js +2 -0
  176. package/studio/web/assets/vendor-ui-aE1tHcW7.js +41 -0
  177. package/studio/web/assets/vennDiagram-UO4OBE2U-BKYAZUh_.js +34 -0
  178. package/studio/web/assets/wardley-WFR3VGLG-BO7f36ci.js +1 -0
  179. package/studio/web/assets/{wardleyDiagram-VM6X3IG4-CjrkKWUR.js → wardleyDiagram-VNRHLVJA-Djb0JDQc.js} +3 -3
  180. package/studio/web/assets/{workers-BgoXIqQe.js → workers-Cs52GyHv.js} +1 -1
  181. package/studio/web/assets/x-vYntCxm4.js +1 -0
  182. package/studio/web/assets/{xml-BwSeDMiP.js → xml-Co5ow_Ix.js} +1 -1
  183. package/studio/web/assets/{xychartDiagram-S5SC5T6Z-Biok4GYV.js → xychartDiagram-PMCCYNJV-BQh9ubvb.js} +3 -3
  184. package/studio/web/assets/{yaml-DotCUG5l.js → yaml-BcngpXye.js} +1 -1
  185. package/studio/web/assets/yaml.worker-DAK2o_H1.js +479 -0
  186. package/studio/web/auth/fabric-globe-dark.png +0 -0
  187. package/studio/web/auth/fabric-globe-light.png +0 -0
  188. package/studio/web/auth/fabric-platform-dark.png +0 -0
  189. package/studio/web/auth/fabric-platform-light.png +0 -0
  190. package/studio/web/index.html +15 -15
  191. package/studio/web/assets/FloatingChat-omlNMDcJ.js +0 -23
  192. package/studio/web/assets/applications-DvFDYJgK.js +0 -296
  193. package/studio/web/assets/architecture-7GRP2DOG-LB-MLAAb.js +0 -1
  194. package/studio/web/assets/architectureDiagram-5GKGNRK7-7SW3GD-K.js +0 -36
  195. package/studio/web/assets/authStore-C3Nfubqr.js +0 -3
  196. package/studio/web/assets/c4Diagram-7LVT6UL2-LBNf8t_X.js +0 -38
  197. package/studio/web/assets/channel-yictG-U-.js +0 -1
  198. package/studio/web/assets/chevron-up-DtKGqDn3.js +0 -1
  199. package/studio/web/assets/chunk-4HAMMTFA-DWtTut21.js +0 -62
  200. package/studio/web/assets/chunk-DU6HZSFF-Chq20Ba5.js +0 -127
  201. package/studio/web/assets/chunk-GMAD6QVW-BeS7S07A.js +0 -72
  202. package/studio/web/assets/chunk-IMKFNOWR-Bnh3tAVd.js +0 -231
  203. package/studio/web/assets/chunk-L3NEJ4N5-COfUyKII.js +0 -1
  204. package/studio/web/assets/chunk-P2QGCYS3-CP1VhG_c.js +0 -1
  205. package/studio/web/assets/chunk-SHT3W25Y-LpQkMsah.js +0 -168
  206. package/studio/web/assets/chunk-TICWLB2K-VOwzetX-.js +0 -206
  207. package/studio/web/assets/classDiagram-ZZMXUADV-VaEwSy_g.js +0 -1
  208. package/studio/web/assets/classDiagram-v2-VYDZK3BY-VaEwSy_g.js +0 -1
  209. package/studio/web/assets/cose-bilkent-JH36ORCC-Cuuf67Bh.js +0 -1
  210. package/studio/web/assets/createLucideIcon-CzW9508A.js +0 -1
  211. package/studio/web/assets/cynefin-OW5HDTMX-BbdbCvub.js +0 -1
  212. package/studio/web/assets/cynefinDiagram-5FMLGOSQ-TP-aIqbt.js +0 -62
  213. package/studio/web/assets/cytoscape.esm-C2x7inlt.js +0 -321
  214. package/studio/web/assets/dagre-GXQ25YYZ-DShnGpGo.js +0 -4
  215. package/studio/web/assets/dagre-PrKaheQc.js +0 -1
  216. package/studio/web/assets/diagram-UQ7AKVKN-DglXtQ6x.js +0 -41
  217. package/studio/web/assets/dialog-Cn2uWgD4.js +0 -1
  218. package/studio/web/assets/download-B5T5r7ss.js +0 -1
  219. package/studio/web/assets/editor.worker-DwcOiOeP.js +0 -30
  220. package/studio/web/assets/eventmodeling-NTZA5JFV-CLxnp2CR.js +0 -1
  221. package/studio/web/assets/flowDiagram-HODETNUW-BIbhmz9f.js +0 -1
  222. package/studio/web/assets/gitGraph-4MIJSDKK-D2s2w8lE.js +0 -1
  223. package/studio/web/assets/graphlib-DS17s2tU.js +0 -1
  224. package/studio/web/assets/index-7RMEgVG1.css +0 -1
  225. package/studio/web/assets/index-Dfpeofdu.js +0 -824
  226. package/studio/web/assets/index.lazy-B1VOIv-t.js +0 -2
  227. package/studio/web/assets/info-A6RAGUB7-DYjkvb0C.js +0 -1
  228. package/studio/web/assets/infoDiagram-27XIBGKW-Bnp1FJE5.js +0 -2
  229. package/studio/web/assets/json.worker-fO_hOLCP.js +0 -62
  230. package/studio/web/assets/languageServices-IKH4GUHl.js +0 -1
  231. package/studio/web/assets/linear-Cnt8506Q.js +0 -1
  232. package/studio/web/assets/mermaid.core-BlkGaMIH.js +0 -44
  233. package/studio/web/assets/packet-AYTQ26CC-Bi3V04Zi.js +0 -1
  234. package/studio/web/assets/pie-WAS4IAKB-_6DoDbng.js +0 -1
  235. package/studio/web/assets/profile-Q4-T6c-S.js +0 -1
  236. package/studio/web/assets/radar-RG4KPBEZ-DDdVczcL.js +0 -1
  237. package/studio/web/assets/railroad-74A4TZTK-BJUP4Jds.js +0 -1
  238. package/studio/web/assets/railroad-abnf-HS5TGJTU-Bm3L1L0h.js +0 -1
  239. package/studio/web/assets/railroad-ebnf-LZEXJU2U-CKzLGlkw.js +0 -1
  240. package/studio/web/assets/railroad-peg-WCYAUIDC-S8xLjslx.js +0 -1
  241. package/studio/web/assets/regions-CtkV0xje.js +0 -1
  242. package/studio/web/assets/sankeyDiagram-P5KCCOFB-0vSOdymH.js +0 -40
  243. package/studio/web/assets/sequenceDiagram-WJ2MYXX4-hETizDWE.js +0 -162
  244. package/studio/web/assets/setComponentFile-ZWLcWv5X.js +0 -1
  245. package/studio/web/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
  246. package/studio/web/assets/stateDiagram-D77RDMKH-CdYQ_KtC.js +0 -1
  247. package/studio/web/assets/stateDiagram-v2-MP3YSRHH-CdKuzQMT.js +0 -1
  248. package/studio/web/assets/status--aNm8isn.js +0 -61
  249. package/studio/web/assets/swimlanes-42K2YHIH-B8cHIpU4.js +0 -1
  250. package/studio/web/assets/swimlanesDiagram-VR7AAH4N-DmOSJwaH.js +0 -8
  251. package/studio/web/assets/timeline-definition-24CTP7MA-BJWYSXqF.js +0 -120
  252. package/studio/web/assets/toggleHighContrast-Cq_lt3XD.js +0 -49
  253. package/studio/web/assets/treeView-Q6P3EWNA-qxe_v6CQ.js +0 -1
  254. package/studio/web/assets/treemap-WGGIJYW6-dDo97XXF.js +0 -1
  255. package/studio/web/assets/useLocalStorage-BqMR3D8_.js +0 -1
  256. package/studio/web/assets/vendor-core-c2JRRJpV.js +0 -58
  257. package/studio/web/assets/vendor-datadog-CLUcJXOo.js +0 -6
  258. package/studio/web/assets/vendor-react-CJV_K1u4.js +0 -9
  259. package/studio/web/assets/vendor-tanstack-DxzraizX.js +0 -1
  260. package/studio/web/assets/vendor-ui-BUjK0h8a.js +0 -41
  261. package/studio/web/assets/vennDiagram-4TSXK5OY-A3i-lCdl.js +0 -34
  262. package/studio/web/assets/wardley-WFR3VGLG-B0ik-_6g.js +0 -1
  263. package/studio/web/assets/x-DIzaLEdK.js +0 -1
  264. package/studio/web/assets/yaml.worker-BDL8_iuk.js +0 -454
@@ -1,454 +0,0 @@
1
- var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?c.isErrorNoTelemetry(e)?new c(e.message+`
2
-
3
- `+e.stack):Error(e.message+`
4
-
5
- `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){o(e)||n.onUnexpectedError(e)}function i(e){o(e)||n.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){let{name:t,message:n,cause:r}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:c.isErrorNoTelemetry(e),cause:r?a(r):void 0,code:e.code}}return e}function o(e){return e instanceof s||e instanceof Error&&e.name===`Canceled`&&e.message===`Canceled`}var s=class extends Error{constructor(){super(`Canceled`),this.name=this.message}},c=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},l=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function u(e,t=`Unreachable`){throw Error(t)}function d(e,t=`unexpected state`){if(!e)throw typeof t==`string`?new l(`Assertion Failed: ${t}`):t}function f(e){e()||(e(),r(new l(`Assertion Failed`)))}function p(e,t){let n=0;for(;n<e.length-1;){let r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}function m(e){return typeof e==`string`}function h(e){return!!e&&typeof e[Symbol.iterator]==`function`}var g;(function(e){function t(e){return!!e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e??n}e.from=o;function*s(e){for(let t=e.length-1;t>=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){let n=0;for(let r of e)if(!t(r,n++))return!1;return!0}e.every=d;function f(e,t){for(let n of e)if(t(n))return n}e.find=f;function*p(e,t){for(let n of e)t(n)&&(yield n)}e.filter=p;function*m(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=m;function*g(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=g;function*_(...e){for(let t of e)h(t)?yield*t:yield t}e.concat=_;function v(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=v;function y(e){let t=0;for(let n of e)t++;return t}e.length=y;function*b(e,t,n=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=b;function x(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=x;async function S(e){let t=[];for await(let n of e)t.push(n);return t}e.asyncToArray=S;async function C(e){let t=[];for await(let n of e)t=t.concat(n);return t}e.asyncToArrayFlat=C})(g||={});function _(e){if(g.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function v(...e){return b(()=>_(e))}var y=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw Error(`Unbound disposable context: Need to use an arrow function to preserve the value of this`);this._isDisposed=!0,this._fn()}}};function b(e){return new y(e)}var x=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{_(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===S.None)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}},S=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new x,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},C=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},w=class{constructor(){this._first=C.Undefined,this._last=C.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===C.Undefined}clear(){let e=this._first;for(;e!==C.Undefined;){let t=e.next;e.prev=C.Undefined,e.next=C.Undefined,e=t}this._first=C.Undefined,this._last=C.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new C(e);if(this._first===C.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==C.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==C.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==C.Undefined&&e.next!==C.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===C.Undefined&&e.next===C.Undefined?(this._first=C.Undefined,this._last=C.Undefined):e.next===C.Undefined?(this._last=this._last.prev,this._last.next=C.Undefined):e.prev===C.Undefined&&(this._first=this._first.next,this._first.prev=C.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==C.Undefined;)yield e.element,e=e.next}};function T(){return globalThis._VSCODE_NLS_MESSAGES}function ee(){return globalThis._VSCODE_NLS_LANGUAGE}const E=ee()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function te(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),E&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function D(e,t,...n){return te(typeof e==`number`?ne(e,t):t,n)}function ne(e,t){let n=T()?.[e];if(typeof n!=`string`){if(typeof t==`string`)return t;throw Error(`!!! NLS MISSING: ${e} !!!`)}return n}let re=!1,O=!1,ie=!1,ae=!1,oe=!1,se;const ce=globalThis;let le;ce.vscode!==void 0&&ce.vscode.process!==void 0?le=ce.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(le=process);const ue=typeof le?.versions?.electron==`string`&&le?.type===`renderer`;if(typeof le==`object`){re=le.platform===`win32`,O=le.platform===`darwin`,ie=le.platform===`linux`,ie&&le.env.SNAP&&le.env.SNAP_REVISION,le.env.CI||le.env.BUILD_ARTIFACTSTAGINGDIRECTORY||le.env.GITHUB_WORKSPACE;let e=le.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,t.resolvedLanguage,t.languagePack?.translationsConfigFile}catch{}ae=!0}else typeof navigator==`object`&&!ue?(se=navigator.userAgent,re=se.indexOf(`Windows`)>=0,O=se.indexOf(`Macintosh`)>=0,(se.indexOf(`Macintosh`)>=0||se.indexOf(`iPad`)>=0||se.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,ie=se.indexOf(`Linux`)>=0,se?.indexOf(`Mobi`),oe=!0,ee(),navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);const de=re,fe=O,pe=ae,me=oe,he=oe&&typeof ce.importScripts==`function`?ce.origin:void 0,ge=se,_e=typeof ce.postMessage==`function`&&!ce.importScripts;(()=>{if(_e){let e=[];ce.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),ce.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();const ve=!!(ge&&ge.indexOf(`Chrome`)>=0);ge&&ge.indexOf(`Firefox`),!ve&&ge&&ge.indexOf(`Safari`),ge&&ge.indexOf(`Edg/`),ge&&ge.indexOf(`Android`);let ye;const be=globalThis.vscode;if(be!==void 0&&be.process!==void 0){let e=be.process;ye={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else ye=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return de?`win32`:fe?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};const xe=ye.cwd,Se=ye.env,Ce=ye.platform,we=globalThis.performance.now.bind(globalThis.performance);var Te=class e{static create(t){return new e(t)}constructor(e){this._now=e===!1?Date.now:we,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}};const Ee=6e4;function De(){return!!Se.VSCODE_DEV}var Oe;(function(e){e.None=()=>S.None;function t(e,t,n){return f(e,()=>void 0,0,void 0,t??!0,void 0,n)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(t,n){return e.once(e.filter(t,n))}e.onceIf=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(v(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,t){let n,r=new Fe({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new Fe({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(l&&clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=null,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=f;function p(t,n=0,r,i){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,r??!0,void 0,i)}e.accumulate=p;function m(e,t,n=100,r=!0,i=!0,a,o){let s,c,l,u=0,d=new Fe({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),l===void 0&&(r&&(d.fire(c),c=void 0,u=0),typeof n==`number`?l=setTimeout(()=>{i&&u>0&&d.fire(c),c=void 0,l=void 0,u=0},n):(l=0,queueMicrotask(()=>{i&&u>0&&d.fire(c),c=void 0,l=void 0,u=0})))})},onDidRemoveLastListener(){s.dispose()}});return o?.add(d),d.event}e.throttle=m;function h(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=h;function g(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=g;function _(e,t,n=!1,r=[],i){let a=r.slice(),o;De()&&(o={stack:je.create(),timerId:setTimeout(()=>{a&&a.length>0&&o&&!o.warned&&(o.warned=!0,console.warn(`[Event.buffer][${t}] potential LEAK detected: ${a.length} events buffered for ${Ee/1e3}s without being consumed. Buffered here:`),o.stack.print())},Ee),warned:!1},i&&i.add(b(()=>clearTimeout(o.timerId))));let s=()=>{o&&clearTimeout(o.timerId)},c=e(e=>{a?(a.push(e),De()&&o&&!o.warned&&a.length>=100&&(o.warned=!0,console.warn(`[Event.buffer][${t}] potential LEAK detected: ${a.length} events buffered without being consumed. Buffered here:`),o.stack.print())):u.fire(e)});i&&i.add(c);let l=()=>{a?.forEach(e=>u.fire(e)),a=null,s()},u=new Fe({onWillAddFirstListener(){c||(c=e(e=>u.fire(e)),i&&i.add(c))},onDidAddFirstListener(){a&&(n?setTimeout(l):l())},onDidRemoveLastListener(){c&&c.dispose(),c=null,s()}});return i&&i.add(u),u.event}e.buffer=_;function y(e,t){return(n,r,i)=>{let a=t(new C);return e(function(e){let t=a.evaluate(e);t!==x&&n.call(r,t)},void 0,i)}}e.chain=y;let x=Symbol(`HaltChainable`);class C{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:x),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:x}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===x)break;return e}}function w(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new Fe({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=w;function T(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new Fe({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=T;function ee(e,t){let r,i,a=new Promise(a=>{i=n(e)(a),Le(i,t),r=()=>{Re(i,t)}});return a.cancel=r,t&&a.finally(()=>Re(i,t)),a}e.toPromise=ee;function E(e,t){return e(e=>t.fire(e))}e.forward=E;function te(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=te;class D{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new Fe(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ne(e,t){return new D(e,t).emitter.event}e.fromObservable=ne;function re(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return Le(s,r),s}}e.fromObservableLight=re})(Oe||={});var ke=class e{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new Te,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},Ae=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let[e,r]=this.getMostFrequentStack(),i=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,a=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(a),console.warn(e);let o=new Me(r/t>.3?`dominated`:`popular`,a,e,t,i);this._errorHandler(o)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}},je=class e{static create(){return new e(Error().stack??``)}constructor(e){this.value=e}print(){console.warn(this.value.split(`
6
- `).slice(2).join(`
7
- `))}},Me=class e extends Error{constructor(e,t,n,r,i){super(i?`[${i}] potential listener LEAK detected, ${e}`:`potential listener LEAK detected, ${e}`),this.name=`ListenerLeakError`,this.kind=e,this.listenerCount=r,this.details=t,this.stack=n}static is(t){return t instanceof e||t instanceof Error&&typeof t.kind==`string`&&typeof t.listenerCount==`number`}},Ne=class extends Me{constructor(e,t,n,r,i){super(e,t,n,r,i),this.name=`ListenerRefusalError`}},Pe=class{constructor(e){this.value=e}},Fe=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new Ae(e?.onListenerError??r,this._options?.leakWarningThreshold??-1,this._options?.leakWarningName):void 0,this._perfMon=this._options?._profName?new ke(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new Ne(t[1]/this._size>.3?`dominated`:`popular`,`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||r)(n),S.None}if(this._disposed)return S.None;t&&(e=e.bind(t));let i=new Pe(e),a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=je.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof Pe?(this._deliveryQueue??=new Ie,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=b(()=>{a?.(),this._removeListener(i)});return Le(o,n),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*2<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&e<this._deliveryQueue.end&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||r;if(!n){e.value(t);return}try{e.value(t)}catch(e){n(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners){if(this._listeners instanceof Pe)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}}this._perfMon?.stop()}hasListeners(){return this._size>0}},Ie=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Le(e,t){t instanceof x?t.add(e):Array.isArray(t)&&t.push(e)}function Re(e,t){if(t instanceof x)t.delete(e);else if(Array.isArray(t)){let n=t.indexOf(e);n!==-1&&t.splice(n,1)}e.dispose()}function ze(e){return e}var Be=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=ze):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Ve;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(Ve||={});var He=class{constructor(e){this.executor=e,this._state=Ve.Uninitialized}get value(){if(this._state===Ve.Uninitialized){this._state=Ve.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Ve.Completed}}else if(this._state===Ve.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ue(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function We(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function Ge(e){return e.split(/\r\n|\r|\n/)}function Ke(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function qe(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function Je(e){return e>=65&&e<=90}function Ye(e,t){let n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Xe(e,t){let n=Math.min(e.length,t.length),r,i=e.length-1,a=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(i-r)!==t.charCodeAt(a-r))return r;return n}function Ze(e){return 55296<=e&&e<=56319}function Qe(e){return 56320<=e&&e<=57343}function $e(e,t){return(e-55296<<10)+(t-56320)+65536}function et(e,t,n){let r=e.charCodeAt(n);if(Ze(r)&&n+1<t){let t=e.charCodeAt(n+1);if(Qe(t))return $e(r,t)}return r}const tt=/^[\t\n\r\x20-\x7E]*$/;function nt(e){return tt.test(e)}(class e{static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||=new e,e._INSTANCE}constructor(){this._data=rt()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,n=t.length/3,r=1;for(;r<=n;)if(e<t[3*r])r=2*r;else if(e>t[3*r+1])r=2*r+1;else return t[3*r+2];return 0}});function rt(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}var it=class e{static{this.ambiguousCharacterData=new He(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}`))}static{this.cache=new Be(t=>{let n=t.split(`,`);function r(e){let t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function i(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function a(e,t){if(!e)return t;let n=new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let o=this.ambiguousCharacterData.value,s=n.filter(e=>!e.startsWith(`_`)&&Object.hasOwn(o,e));s.length===0&&(s=[`_default`]);let c;for(let e of s){let t=r(o[e]);c=a(c,t)}let l=i(r(o._common),c);return new e(l)})}static getInstance(t){return e.cache.get(Array.from(t).join(`,`))}static{this._locales=new He(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},at=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};const ot=`default`;var st=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}},ct=class{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}},lt=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}},ut=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},dt=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},ft=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new st(this._workerId,r,e,t,n))})}listen(e,t,n){let r=null,i=new Fe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new lt(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new dt(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||(this._workerId===-1||e.vsWorker===this._workerId)&&this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(n,r)=>(typeof r==`string`&&!n[r]&&(mt(r)?n[r]=t=>this.listen(e,r,t):pt(r)?n[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(n[r]=async(...n)=>(await t?.(),this.sendMessage(e,r,n)))),n[r])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn(`Got reply to unknown seq`);return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let t=Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,n=t}t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new ct(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=a(e.detail)),this._send(new ct(this._workerId,t,void 0,a(e)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new ut(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){let t=this._pendingEmitters.get(e.req);if(t===void 0){console.warn(`Got event for unknown req`);return}t.fire(e.event)}_handleUnsubscribeEventMessage(e){let t=this._pendingEvents.get(e.req);if(t===void 0){console.warn(`Got unsubscribe for unknown req`);return}t.dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n<e.args.length;n++){let r=e.args[n];r instanceof ArrayBuffer&&t.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}};function pt(e){return e[0]===`o`&&e[1]===`n`&&Je(e.charCodeAt(2))}function mt(e){return/^onDynamic/.test(e)&&Je(e.charCodeAt(9))}var ht=class{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new ft({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===ot&&t===`$initialize`)return this.initialize(n[0]);let r=e===ot?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(Error(`Missing channel ${e} on worker thread`));let i=r[t];if(typeof i!=`function`)return Promise.reject(Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){let r=e===ot?this.requestHandler:this._localChannels.get(e);if(!r)throw Error(`Missing channel ${e} on worker thread`);if(mt(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);let i=e.call(r,n);if(typeof i!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);return i}if(pt(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing event ${t} on request handler.`);return e}throw Error(`Malformed event name ${t}`)}getChannel(e){let t=this._remoteChannels.get(e);return t===void 0&&(t=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,t)),t}async initialize(e){this._protocol.setWorkerId(e)}};let gt=!1;function _t(e){if(gt)throw Error(`WebWorker already initialized!`);gt=!0;let t=new ht(e=>globalThis.postMessage(e),t=>e(t));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}var vt=class{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};const yt=typeof Buffer<`u`;new He(()=>new Uint8Array(256));let bt;var xt=class e{static wrap(t){return yt&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return yt?this.buffer.toString():(bt||=new TextDecoder(void 0,{ignoreBOM:!0}),bt.decode(this.buffer))}};const St=`0123456789abcdef`;function Ct({buffer:e}){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=St[r>>>4],t+=St[r&15]}return t}function wt(e,t){return(t<<5)-t+e|0}function Tt(e,t){t=wt(149417,t);for(let n=0,r=e.length;n<r;n++)t=wt(e.charCodeAt(n),t);return t}function Et(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function Dt(e,t=32){return e instanceof ArrayBuffer?Ct(xt.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}(class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(Ze(a)){if(o+1<t){let t=e.charCodeAt(o+1);Qe(t)?(o++,s=$e(a,t)):s=65533}else{i=a;break}}else Qe(a)&&(s=65533);if(r=this._push(n,r,s),o++,o<t)a=e.charCodeAt(o);else break}this._buffLen=r,this._leftoverHighSurrogate=i}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Dt(this._h0)+Dt(this._h1)+Dt(this._h2)+Dt(this._h3)+Dt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,Et(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=Et(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=Et(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}});var Ot=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}};function kt(e,t,n){return new Nt(new Ot(e),new Ot(t)).ComputeDiff(n).changes}var At=class{static Assert(e,t){if(!e)throw Error(t)}},jt=class{static Copy(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}static Copy2(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}},Mt=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new vt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},Nt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,a,o]=e._getElements(t),[s,c,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]==`string`}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=Tt(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t]:!1}ElementsAreStrictEqual(t,n){return this.ElementsAreEqual(t,n)?e._getStrictElement(this._originalSequence,t)===e._getStrictElement(this._modifiedSequence,n):!1}static _getStrictElement(e,t){return typeof e.getStrictElement==`function`?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]?!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t]:!1}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]?!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t]:!1}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){let a=[!1],o=this.ComputeDiffRecursive(e,t,n,r,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(At.Assert(e===t+1,`originalStart should only be one more than originalEnd`),i=[new vt(e,0,n,r-n+1)]):e<=t?(At.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[new vt(e,t-e+1,n,0)]):(At.Assert(e===t+1,`originalStart should only be one more than originalEnd`),At.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[]),i}let a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,r,a,o,i),c=a[0],l=o[0];if(s!==null)return s;if(!i[0]){let a=this.ComputeDiffRecursive(e,c,n,l,i),o=[];return o=i[0]?[new vt(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(a,o)}return[new vt(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=null,b=new Mt,x=t,S=n,C=f[0]-h[0]-r,w=-1073741824,T=this.m_forwardHistory.length-1;do{let t=C+e;t===x||t<S&&c[t-1]<c[t+1]?(u=c[t+1],p=u-C-r,u<w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p),C=t+1-e):(u=c[t-1]+1,p=u-C-r,u<w&&b.MarkNextChange(),w=u-1,b.AddOriginalElement(u,p+1),C=t-1-e),T>=0&&(c=this.m_forwardHistory[T],e=c[0],x=1,S=c.length-1)}while(--T>=-1);if(v=b.getReverseChanges(),_[0]){let e=f[0]+1,t=h[0]+1;if(v!==null&&v.length>0){let n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new vt(e,d-e+1,t,m-t+1)]}else{b=new Mt,x=a,S=o,C=f[0]-h[0]-s,w=1073741824,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=C+i;e===x||e<S&&l[e-1]>=l[e+1]?(u=l[e+1]-1,p=u-C-s,u>w&&b.MarkNextChange(),w=u+1,b.AddOriginalElement(u+1,p+1),C=e+1-i):(u=l[e-1],p=u-C-s,u>w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p+1),C=e-1-i),T>=0&&(l=this.m_reverseHistory[T],i=l[0],x=1,S=l.length-1)}while(--T>=-1);y=b.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,f=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=t-e+(r-n),m=p+1,h=new Int32Array(m),g=new Int32Array(m),_=r-n,v=t-e,y=e-n,b=t-r,x=(v-_)%2==0;h[_]=e,g[v]=t,o[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,C=0;l=this.ClipDiagonalBound(_-S,S,_,m),u=this.ClipDiagonalBound(_+S,S,_,m);for(let e=l;e<=u;e+=2){s=e===l||e<u&&h[e-1]<h[e+1]?h[e+1]:h[e-1]+1,c=s-(e-_)-y;let n=s;for(;s<t&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(h[e]=s,s+c>p+C&&(p=s,C=c),!x&&Math.abs(e-v)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,n<=g[e]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}let w=(p-e+(C-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,w))return o[0]=!0,i[0]=p,a[0]=C,w>0&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):(e++,n++,[new vt(e,t-e+1,n,r-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),f=this.ClipDiagonalBound(v+S,S,v,m);for(let p=d;p<=f;p+=2){s=p===d||p<f&&g[p-1]>=g[p+1]?g[p+1]-1:g[p-1],c=s-(p-v)-b;let m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(g[p]=s,x&&Math.abs(p-_)<=S&&s<=h[p])return i[0]=s,a[0]=c,m>=h[p]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=_-l+1,jt.Copy2(h,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-d+2),e[0]=v-d+1,jt.Copy2(g,d,e,1,f-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){let n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,a=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}let s=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)){e[t]=s[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){let n=e[t],r=0,i=0;if(t>0){let n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}let a=n.originalLength>0,o=n.modifiedLength>0,s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){let t=n.originalStart-e,l=n.modifiedStart-e;if(t<r||l<i||a&&!this.OriginalElementsAreEqual(t,t+n.originalLength)||o&&!this.ModifiedElementsAreEqual(l,l+n.modifiedLength))break;let u=(t===r&&l===i?5:0)+this._boundaryScore(t,n.originalLength,l,n.modifiedLength);u>c&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;let l=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],l)){e[t-1]=l[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){let n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,a=n.originalStart,o=r.originalStart+r.originalLength,s=o-a,c=n.modifiedStart,l=r.modifiedStart+r.modifiedLength,u=l-c;if(i<5&&s<20&&u<20){let e=this._findBetterContiguousSequence(a,s,c,u,i);if(e){let[t,a]=e;(t!==n.originalStart+n.originalLength||a!==n.modifiedStart+n.modifiedLength)&&(n.originalLength=t-n.originalStart,n.modifiedLength=a-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=a+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;let a=e+t-i+1,o=n+r-i+1,s=0,c=0,l=0;for(let t=e;t<a;t++)for(let e=n;e<o;e++){let n=this._contiguousSequenceScore(t,e,i);n>0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return+!!this._OriginalRegionIsBoundary(e,t)+ +!!this._ModifiedRegionIsBoundary(n,r)}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let r=Array(e.length+t.length-1);return jt.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],jt.Copy(t,1,r,e.length,t.length-1),r}{let n=Array(e.length+t.length);return jt.Copy(e,0,n,0,e.length),jt.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(At.Assert(e.originalStart<=t.originalStart,`Left change is not less than or equal to right change`),At.Assert(e.modifiedStart<=t.modifiedStart,`Left change is not less than or equal to right change`),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){let r=e.originalStart,i=e.originalLength,a=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new vt(r,i,a,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;let i=n,a=r-n-1,o=t%2==0;return e<0?o===(i%2==0)?0:1:o===(a%2==0)?r-1:r-2}},Pt=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(e=0,t=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+t))}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let n=e.lineNumber|0,r=t.lineNumber|0;return n===r?(e.column|0)-(t.column|0):n-r}clone(){return new e(this.lineNumber,this.column)}toString(){return`(`+this.lineNumber+`,`+this.column+`)`}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(e){return!!e&&typeof e.lineNumber==`number`&&typeof e.column==`number`}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},k=class e{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return r<s?(r=s,i=c):r===s&&(i=Math.max(i,c)),a>l?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new Pt(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new Pt(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static areOnlyIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber-1||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn-1||t.endLineNumber<e.startLineNumber-1||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,t){if(e&&t){let n=e.startLineNumber|0,r=t.startLineNumber|0;if(n===r){let n=e.startColumn|0,r=t.startColumn|0;if(n===r){let n=e.endLineNumber|0,r=t.endLineNumber|0;return n===r?(e.endColumn|0)-(t.endColumn|0):n-r}return n-r}return n-r}return!!e-+!!t}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Ft(e){return e<0?0:e>255?255:e|0}function It(e){return e<0?0:e>4294967295?4294967295:e|0}var Lt=class e{constructor(t){let n=Ft(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let n=Ft(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},Rt=class{constructor(e,t,n){let r=new Uint8Array(e*t);for(let i=0,a=e*t;i<a;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}},zt=class{constructor(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++){let[i,a,o]=e[r];a>t&&(t=a),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new Rt(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,i,a]=e[t];r.set(n,i,a)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}};let Bt=null;function Vt(){return Bt===null&&(Bt=new zt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Bt}let Ht=null;function Ut(){if(Ht===null){Ht=new Lt(0);for(let e=0;e<36;e++)Ht.set(` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`.charCodeAt(e),1);for(let e=0;e<4;e++)Ht.set(`.,;:`.charCodeAt(e),2)}return Ht}var Wt=class e{static _createLink(e,t,n,r,i){let a=i-1;do{let n=t.charCodeAt(a);if(e.get(n)!==2)break;a--}while(a>r);if(r>0){let e=t.charCodeAt(r-1),n=t.charCodeAt(a);(e===40&&n===41||e===91&&n===93||e===123&&n===125)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}}static computeLinks(t,n=Vt()){let r=Ut(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){let o=t.getLineContent(a),s=o.length,c=0,l=0,u=0,d=1,f=!1,p=!1,m=!1,h=!1;for(;c<s;){let t=!1,s=o.charCodeAt(c);if(d===13){let n;switch(s){case 40:f=!0,n=0;break;case 41:n=+!f;break;case 91:m=!0,p=!0,n=0;break;case 93:m=!1,n=+!p;break;case 123:h=!0,n=0;break;case 125:n=+!h;break;case 39:case 34:case 96:n=u===s?1:u===39||u===34||u===96?0:1;break;case 42:n=+(u===42);break;case 32:n=+!m;break;default:n=r.get(s)}n===1&&(i.push(e._createLink(r,o,a,l,c)),t=!0)}else if(d===12){let e;s===91?(p=!0,e=0):e=r.get(s),e===1?t=!0:d=13}else d=n.nextState(d,s),d===0&&(t=!0);t&&(d=1,f=!1,p=!1,h=!1,l=c+1,u=s),c++}d===13&&i.push(e._createLink(r,o,a,l,s))}return i}};function Gt(e){return!e||typeof e.getLineCount!=`function`||typeof e.getLineContent!=`function`?[]:Wt.computeLinks(e)}var Kt=class e{constructor(){this._defaultValueSet=[[`true`,`false`],[`True`,`False`],[`Private`,`Public`,`Friend`,`ReadOnly`,`Partial`,`Protected`,`WriteOnly`],[`public`,`protected`,`private`]]}static{this.INSTANCE=new e}navigateValueSet(e,t,n,r,i){if(e&&t){let n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){let e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return n===null?this.textReplace(e,t):n}numberReplace(e,t){let n=10**(e.length-(e.lastIndexOf(`.`)+1)),r=Number(e),i=parseFloat(e);return!isNaN(r)&&!isNaN(i)&&r===i?r===0&&!t?null:(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,a=e.length;r===null&&i<a;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};const qt=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Jt;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Yt?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Oe.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:qt})})(Jt||={});var Yt=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?qt:(this._emitter||=new Fe,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},Xt=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Yt,this._token}cancel(){this._token?this._token instanceof Yt&&this._token.cancel():this._token=Jt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Yt&&this._token.dispose():this._token=Jt.None}},Zt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}};const Qt=new Zt,$t=new Zt,en=new Zt,tn=Array(230),nn=Object.create(null),rn=Object.create(null),an=[];for(let e=0;e<=193;e++)an[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Del`,46,`VK_DELETE`,`Delete`,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,nn[a]=i,rn[a.toLowerCase()]=i,e&&(an[i]=o)),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);Qt.define(o,s),$t.define(o,u||s),en.define(o,d||u||s)}c&&(tn[c]=o)}})();var on;(function(e){function t(e){return Qt.keyCodeToStr(e)}e.toString=t;function n(e){return Qt.strToKeyCode(e)}e.fromString=n;function r(e){return $t.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return en.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return $t.strToKeyCode(e)||en.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`;case 20:return`Delete`}return Qt.keyCodeToStr(e)}e.toElectronAccelerator=o})(on||={});function sn(e,t){return(e|(t&65535)<<16>>>0)>>>0}var cn=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function ln(e,t){if(typeof e!=`object`||!e)throw new cn(t,`Object`,e)}function un(e,t){if(typeof e!=`string`)throw new cn(t,`string`,e)}const dn=Ce===`win32`;function A(e){return e===47||e===92}function fn(e){return e===47}function pn(e){return e>=65&&e<=90||e>=97&&e<=122}function mn(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function hn(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function gn(e,t){ln(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${hn(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const _n={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],un(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=xe():(a=Se[`=${t}`]||xe(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===92)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)A(u)&&(s=1,l=!0);else if(A(u)){if(l=!0,A(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!A(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&A(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!A(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else pn(u)&&a.charCodeAt(1)===58&&(c=a.slice(0,2),s=2,o>2&&A(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=mn(n,!r,`\\`,A),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){un(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return fn(a)?`\\`:e;if(A(a)){if(i=!0,A(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!A(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&A(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!A(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else pn(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&A(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?mn(e.slice(n),!i,`\\`,A):``;if(o.length===0&&!i&&(o=`.`),o.length>0&&A(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&pn(o.charCodeAt(0))&&o.charCodeAt(1)===58)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||A(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){un(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return A(n)||t>2&&pn(n)&&e.charCodeAt(1)===58&&A(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];un(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&A(n.charCodeAt(0))){++i;let e=n.length;e>1&&A(n.charCodeAt(1))&&(++i,e>2&&(A(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&A(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return _n.normalize(t)},relative(e,t){if(un(e,`from`),un(t,`to`),e===t)return``;let n=_n.resolve(e),r=_n.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=i<a?i:a,s;for(s=0;s<o&&e[s].toLowerCase()===t[s].toLowerCase();s++);return s===0?r:s===o?a>o?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;i<e.length&&e.charCodeAt(i)===92;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===92;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===92;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===92;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===92&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=_n.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(pn(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return t},dirname(e){un(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return A(i)?e:`.`;if(A(i)){if(n=r=1,A(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!A(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&A(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!A(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else pn(i)&&e.charCodeAt(1)===58&&(n=t>2&&A(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(A(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&un(t,`suffix`),un(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&pn(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(A(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(A(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){un(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===58&&pn(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(A(t)){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),t===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:gn.bind(null,`\\`),parse(e){un(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return A(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(A(i)){if(r=1,A(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!A(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&A(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!A(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(pn(i)&&e.charCodeAt(1)===58){if(n<=2)return t.root=t.dir=e,t;if(r=2,A(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){if(i=e.charCodeAt(l),A(i)){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),i===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},vn=(()=>{if(dn){let e=/\\/g;return()=>{let t=xe().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>xe()})(),yn={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];un(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===47)}if(!n){let e=vn();t=`${e}/${t}`,n=e.charCodeAt(0)===47}return t=mn(t,!n,`/`,fn),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(un(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=mn(e,!t,`/`,fn),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return un(e,`path`),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n<e.length;++n){let r=e[n];un(r,`path`),r.length>0&&t.push(r)}return t.length===0?`.`:yn.normalize(t.join(`/`))},relative(e,t){if(un(e,`from`),un(t,`to`),e===t||(e=yn.resolve(e),t=yn.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===47&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===47)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===47?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===47)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(un(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&un(t,`suffix`),un(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){un(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:gn.bind(null,`/`),parse(e){un(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===47,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===47){if(!s){a=c+1;break}continue}o===-1&&(s=!1,o=c+1),t===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};yn.win32=_n.win32=_n,yn.posix=_n.posix=yn,dn?_n.normalize:yn.normalize;const bn=dn?_n.join:yn.join;dn?_n.resolve:yn.resolve,dn?_n.relative:yn.relative,dn?_n.dirname:yn.dirname,dn?_n.basename:yn.basename,dn?_n.extname:yn.extname,dn?_n.sep:yn.sep;const xn=/^\w[\w\d+.-]*$/,Sn=/^\//,Cn=/^\/\//;function wn(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!xn.test(e.scheme)){let t=[...e.scheme.matchAll(/[^\w\d+.-]/gu)],n=t.length>0?` Found '${t[0][0]}' at index ${t[0].index} (${t.length} total)`:``;throw Error(`[UriError]: Scheme contains illegal characters.${n} (len:${e.scheme.length})`)}if(e.path){if(e.authority){if(!Sn.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(Cn.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function Tn(e,t){return!e&&!t?`file`:e}function En(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==Dn&&(t=Dn+t):t=Dn}return t}const Dn=`/`,On=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var kn=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1:typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=Tn(e,a),this.authority=t||``,this.path=En(this.scheme,n||``),this.query=r||``,this.fragment=i||``,wn(this,a))}get fsPath(){return Fn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new jn(t,n,r,i,a)}static parse(e,t=!1){let n=On.exec(e);return n?new jn(n[2]||``,zn(n[4]||``),zn(n[5]||``),zn(n[7]||``),zn(n[9]||``),t):new jn(``,``,``,``,``)}static file(e){let t=``;if(de&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new jn(`file`,t,e,``,``)}static from(e,t){return new jn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path: ${t.toString()}`);let r;return r=de&&t.scheme===`file`?e.file(_n.join(Fn(t,!0),...n)).path:yn.join(t.path,...n),t.with({path:r})}toString(e=!1){return In(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new jn(t);return e._formatted=t.external??null,e._fsPath=t._sep===An?t.fsPath??null:null,e}}};const An=de?1:void 0;var jn=class extends kn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=Fn(this,!1),this._fsPath}toString(e=!1){return e?In(this,!0):(this._formatted||=In(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=An),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const Mn={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function Nn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=Mn[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function Pn(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Mn[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function Fn(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,de&&(n=n.replace(/\//g,`\\`)),n}function In(e,t){let n=t?Pn:Nn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:Nn(c,!1,!1)),r}function Ln(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Ln(e.substr(3)):e}}const Rn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zn(e){return e.match(Rn)?e.replace(Rn,e=>Ln(e)):e}var Bn=class e extends k{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Pt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Pt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber==`number`&&typeof e.selectionStartColumn==`number`&&typeof e.positionLineNumber==`number`&&typeof e.positionColumn==`number`}static createWithDirection(t,n,r,i,a){return a===0?new e(t,n,r,i):new e(r,i,t,n)}};const Vn=Object.create(null);function j(e,t){if(m(t)){let n=Vn[t];if(n===void 0)throw Error(`${e} references an unknown codicon: ${t}`);t=n}return Vn[e]=t,{id:e}}const Hn={add:j(`add`,6e4),plus:j(`plus`,6e4),gistNew:j(`gist-new`,6e4),repoCreate:j(`repo-create`,6e4),lightbulb:j(`lightbulb`,60001),lightBulb:j(`light-bulb`,60001),repo:j(`repo`,60002),repoDelete:j(`repo-delete`,60002),gistFork:j(`gist-fork`,60003),repoForked:j(`repo-forked`,60003),gitPullRequest:j(`git-pull-request`,60004),gitPullRequestAbandoned:j(`git-pull-request-abandoned`,60004),recordKeys:j(`record-keys`,60005),keyboard:j(`keyboard`,60005),tag:j(`tag`,60006),gitPullRequestLabel:j(`git-pull-request-label`,60006),tagAdd:j(`tag-add`,60006),tagRemove:j(`tag-remove`,60006),person:j(`person`,60007),personFollow:j(`person-follow`,60007),personOutline:j(`person-outline`,60007),personFilled:j(`person-filled`,60007),sourceControl:j(`source-control`,60008),mirror:j(`mirror`,60009),mirrorPublic:j(`mirror-public`,60009),star:j(`star`,60010),starAdd:j(`star-add`,60010),starDelete:j(`star-delete`,60010),starEmpty:j(`star-empty`,60010),comment:j(`comment`,60011),commentAdd:j(`comment-add`,60011),alert:j(`alert`,60012),warning:j(`warning`,60012),search:j(`search`,60013),searchSave:j(`search-save`,60013),logOut:j(`log-out`,60014),signOut:j(`sign-out`,60014),logIn:j(`log-in`,60015),signIn:j(`sign-in`,60015),eye:j(`eye`,60016),eyeUnwatch:j(`eye-unwatch`,60016),eyeWatch:j(`eye-watch`,60016),circleFilled:j(`circle-filled`,60017),primitiveDot:j(`primitive-dot`,60017),closeDirty:j(`close-dirty`,60017),debugBreakpoint:j(`debug-breakpoint`,60017),debugBreakpointDisabled:j(`debug-breakpoint-disabled`,60017),debugHint:j(`debug-hint`,60017),terminalDecorationSuccess:j(`terminal-decoration-success`,60017),primitiveSquare:j(`primitive-square`,60018),edit:j(`edit`,60019),pencil:j(`pencil`,60019),info:j(`info`,60020),issueOpened:j(`issue-opened`,60020),gistPrivate:j(`gist-private`,60021),gitForkPrivate:j(`git-fork-private`,60021),lock:j(`lock`,60021),mirrorPrivate:j(`mirror-private`,60021),close:j(`close`,60022),removeClose:j(`remove-close`,60022),x:j(`x`,60022),repoSync:j(`repo-sync`,60023),sync:j(`sync`,60023),clone:j(`clone`,60024),desktopDownload:j(`desktop-download`,60024),beaker:j(`beaker`,60025),microscope:j(`microscope`,60025),vm:j(`vm`,60026),deviceDesktop:j(`device-desktop`,60026),file:j(`file`,60027),more:j(`more`,60028),ellipsis:j(`ellipsis`,60028),kebabHorizontal:j(`kebab-horizontal`,60028),mailReply:j(`mail-reply`,60029),reply:j(`reply`,60029),organization:j(`organization`,60030),organizationFilled:j(`organization-filled`,60030),organizationOutline:j(`organization-outline`,60030),newFile:j(`new-file`,60031),fileAdd:j(`file-add`,60031),newFolder:j(`new-folder`,60032),fileDirectoryCreate:j(`file-directory-create`,60032),trash:j(`trash`,60033),trashcan:j(`trashcan`,60033),history:j(`history`,60034),clock:j(`clock`,60034),folder:j(`folder`,60035),fileDirectory:j(`file-directory`,60035),symbolFolder:j(`symbol-folder`,60035),logoGithub:j(`logo-github`,60036),markGithub:j(`mark-github`,60036),github:j(`github`,60036),terminal:j(`terminal`,60037),console:j(`console`,60037),repl:j(`repl`,60037),zap:j(`zap`,60038),symbolEvent:j(`symbol-event`,60038),error:j(`error`,60039),stop:j(`stop`,60039),variable:j(`variable`,60040),symbolVariable:j(`symbol-variable`,60040),array:j(`array`,60042),symbolArray:j(`symbol-array`,60042),symbolModule:j(`symbol-module`,60043),symbolPackage:j(`symbol-package`,60043),symbolNamespace:j(`symbol-namespace`,60043),symbolObject:j(`symbol-object`,60043),symbolMethod:j(`symbol-method`,60044),symbolFunction:j(`symbol-function`,60044),symbolConstructor:j(`symbol-constructor`,60044),symbolBoolean:j(`symbol-boolean`,60047),symbolNull:j(`symbol-null`,60047),symbolNumeric:j(`symbol-numeric`,60048),symbolNumber:j(`symbol-number`,60048),symbolStructure:j(`symbol-structure`,60049),symbolStruct:j(`symbol-struct`,60049),symbolParameter:j(`symbol-parameter`,60050),symbolTypeParameter:j(`symbol-type-parameter`,60050),symbolKey:j(`symbol-key`,60051),symbolText:j(`symbol-text`,60051),symbolReference:j(`symbol-reference`,60052),goToFile:j(`go-to-file`,60052),symbolEnum:j(`symbol-enum`,60053),symbolValue:j(`symbol-value`,60053),symbolRuler:j(`symbol-ruler`,60054),symbolUnit:j(`symbol-unit`,60054),activateBreakpoints:j(`activate-breakpoints`,60055),archive:j(`archive`,60056),arrowBoth:j(`arrow-both`,60057),arrowDown:j(`arrow-down`,60058),arrowLeft:j(`arrow-left`,60059),arrowRight:j(`arrow-right`,60060),arrowSmallDown:j(`arrow-small-down`,60061),arrowSmallLeft:j(`arrow-small-left`,60062),arrowSmallRight:j(`arrow-small-right`,60063),arrowSmallUp:j(`arrow-small-up`,60064),arrowUp:j(`arrow-up`,60065),bell:j(`bell`,60066),bold:j(`bold`,60067),book:j(`book`,60068),bookmark:j(`bookmark`,60069),debugBreakpointConditionalUnverified:j(`debug-breakpoint-conditional-unverified`,60070),debugBreakpointConditional:j(`debug-breakpoint-conditional`,60071),debugBreakpointConditionalDisabled:j(`debug-breakpoint-conditional-disabled`,60071),debugBreakpointDataUnverified:j(`debug-breakpoint-data-unverified`,60072),debugBreakpointData:j(`debug-breakpoint-data`,60073),debugBreakpointDataDisabled:j(`debug-breakpoint-data-disabled`,60073),debugBreakpointLogUnverified:j(`debug-breakpoint-log-unverified`,60074),debugBreakpointLog:j(`debug-breakpoint-log`,60075),debugBreakpointLogDisabled:j(`debug-breakpoint-log-disabled`,60075),briefcase:j(`briefcase`,60076),broadcast:j(`broadcast`,60077),browser:j(`browser`,60078),bug:j(`bug`,60079),calendar:j(`calendar`,60080),caseSensitive:j(`case-sensitive`,60081),check:j(`check`,60082),checklist:j(`checklist`,60083),chevronDown:j(`chevron-down`,60084),chevronLeft:j(`chevron-left`,60085),chevronRight:j(`chevron-right`,60086),chevronUp:j(`chevron-up`,60087),chromeClose:j(`chrome-close`,60088),chromeMaximize:j(`chrome-maximize`,60089),chromeMinimize:j(`chrome-minimize`,60090),chromeRestore:j(`chrome-restore`,60091),circleOutline:j(`circle-outline`,60092),circle:j(`circle`,60092),debugBreakpointUnverified:j(`debug-breakpoint-unverified`,60092),terminalDecorationIncomplete:j(`terminal-decoration-incomplete`,60092),circleSlash:j(`circle-slash`,60093),circuitBoard:j(`circuit-board`,60094),clearAll:j(`clear-all`,60095),clippy:j(`clippy`,60096),closeAll:j(`close-all`,60097),cloudDownload:j(`cloud-download`,60098),cloudUpload:j(`cloud-upload`,60099),code:j(`code`,60100),collapseAll:j(`collapse-all`,60101),colorMode:j(`color-mode`,60102),commentDiscussion:j(`comment-discussion`,60103),creditCard:j(`credit-card`,60105),dash:j(`dash`,60108),dashboard:j(`dashboard`,60109),database:j(`database`,60110),debugContinue:j(`debug-continue`,60111),debugDisconnect:j(`debug-disconnect`,60112),debugPause:j(`debug-pause`,60113),debugRestart:j(`debug-restart`,60114),debugStart:j(`debug-start`,60115),debugStepInto:j(`debug-step-into`,60116),debugStepOut:j(`debug-step-out`,60117),debugStepOver:j(`debug-step-over`,60118),debugStop:j(`debug-stop`,60119),debug:j(`debug`,60120),deviceCameraVideo:j(`device-camera-video`,60121),deviceCamera:j(`device-camera`,60122),deviceMobile:j(`device-mobile`,60123),diffAdded:j(`diff-added`,60124),diffIgnored:j(`diff-ignored`,60125),diffModified:j(`diff-modified`,60126),diffRemoved:j(`diff-removed`,60127),diffRenamed:j(`diff-renamed`,60128),diff:j(`diff`,60129),diffSidebyside:j(`diff-sidebyside`,60129),discard:j(`discard`,60130),editorLayout:j(`editor-layout`,60131),emptyWindow:j(`empty-window`,60132),exclude:j(`exclude`,60133),extensions:j(`extensions`,60134),eyeClosed:j(`eye-closed`,60135),fileBinary:j(`file-binary`,60136),fileCode:j(`file-code`,60137),fileMedia:j(`file-media`,60138),filePdf:j(`file-pdf`,60139),fileSubmodule:j(`file-submodule`,60140),fileSymlinkDirectory:j(`file-symlink-directory`,60141),fileSymlinkFile:j(`file-symlink-file`,60142),fileZip:j(`file-zip`,60143),files:j(`files`,60144),filter:j(`filter`,60145),flame:j(`flame`,60146),foldDown:j(`fold-down`,60147),foldUp:j(`fold-up`,60148),fold:j(`fold`,60149),folderActive:j(`folder-active`,60150),folderOpened:j(`folder-opened`,60151),gear:j(`gear`,60152),gift:j(`gift`,60153),gistSecret:j(`gist-secret`,60154),gist:j(`gist`,60155),gitCommit:j(`git-commit`,60156),gitCompare:j(`git-compare`,60157),compareChanges:j(`compare-changes`,60157),gitMerge:j(`git-merge`,60158),githubAction:j(`github-action`,60159),githubAlt:j(`github-alt`,60160),globe:j(`globe`,60161),grabber:j(`grabber`,60162),graph:j(`graph`,60163),gripper:j(`gripper`,60164),heart:j(`heart`,60165),home:j(`home`,60166),horizontalRule:j(`horizontal-rule`,60167),hubot:j(`hubot`,60168),inbox:j(`inbox`,60169),issueReopened:j(`issue-reopened`,60171),issues:j(`issues`,60172),italic:j(`italic`,60173),jersey:j(`jersey`,60174),json:j(`json`,60175),bracket:j(`bracket`,60175),kebabVertical:j(`kebab-vertical`,60176),key:j(`key`,60177),law:j(`law`,60178),lightbulbAutofix:j(`lightbulb-autofix`,60179),linkExternal:j(`link-external`,60180),link:j(`link`,60181),listOrdered:j(`list-ordered`,60182),listUnordered:j(`list-unordered`,60183),liveShare:j(`live-share`,60184),loading:j(`loading`,60185),location:j(`location`,60186),mailRead:j(`mail-read`,60187),mail:j(`mail`,60188),markdown:j(`markdown`,60189),megaphone:j(`megaphone`,60190),mention:j(`mention`,60191),milestone:j(`milestone`,60192),gitPullRequestMilestone:j(`git-pull-request-milestone`,60192),mortarBoard:j(`mortar-board`,60193),move:j(`move`,60194),multipleWindows:j(`multiple-windows`,60195),mute:j(`mute`,60196),noNewline:j(`no-newline`,60197),note:j(`note`,60198),octoface:j(`octoface`,60199),openPreview:j(`open-preview`,60200),package:j(`package`,60201),paintcan:j(`paintcan`,60202),pin:j(`pin`,60203),play:j(`play`,60204),run:j(`run`,60204),plug:j(`plug`,60205),preserveCase:j(`preserve-case`,60206),preview:j(`preview`,60207),project:j(`project`,60208),pulse:j(`pulse`,60209),question:j(`question`,60210),quote:j(`quote`,60211),radioTower:j(`radio-tower`,60212),reactions:j(`reactions`,60213),references:j(`references`,60214),refresh:j(`refresh`,60215),regex:j(`regex`,60216),remoteExplorer:j(`remote-explorer`,60217),remote:j(`remote`,60218),remove:j(`remove`,60219),replaceAll:j(`replace-all`,60220),replace:j(`replace`,60221),repoClone:j(`repo-clone`,60222),repoForcePush:j(`repo-force-push`,60223),repoPull:j(`repo-pull`,60224),repoPush:j(`repo-push`,60225),report:j(`report`,60226),requestChanges:j(`request-changes`,60227),rocket:j(`rocket`,60228),rootFolderOpened:j(`root-folder-opened`,60229),rootFolder:j(`root-folder`,60230),rss:j(`rss`,60231),ruby:j(`ruby`,60232),saveAll:j(`save-all`,60233),saveAs:j(`save-as`,60234),save:j(`save`,60235),screenFull:j(`screen-full`,60236),screenNormal:j(`screen-normal`,60237),searchStop:j(`search-stop`,60238),server:j(`server`,60240),settingsGear:j(`settings-gear`,60241),settings:j(`settings`,60242),shield:j(`shield`,60243),smiley:j(`smiley`,60244),sortPrecedence:j(`sort-precedence`,60245),splitHorizontal:j(`split-horizontal`,60246),splitVertical:j(`split-vertical`,60247),squirrel:j(`squirrel`,60248),starFull:j(`star-full`,60249),starHalf:j(`star-half`,60250),symbolClass:j(`symbol-class`,60251),symbolColor:j(`symbol-color`,60252),symbolConstant:j(`symbol-constant`,60253),symbolEnumMember:j(`symbol-enum-member`,60254),symbolField:j(`symbol-field`,60255),symbolFile:j(`symbol-file`,60256),symbolInterface:j(`symbol-interface`,60257),symbolKeyword:j(`symbol-keyword`,60258),symbolMisc:j(`symbol-misc`,60259),symbolOperator:j(`symbol-operator`,60260),symbolProperty:j(`symbol-property`,60261),wrench:j(`wrench`,60261),wrenchSubaction:j(`wrench-subaction`,60261),symbolSnippet:j(`symbol-snippet`,60262),tasklist:j(`tasklist`,60263),telescope:j(`telescope`,60264),textSize:j(`text-size`,60265),threeBars:j(`three-bars`,60266),thumbsdown:j(`thumbsdown`,60267),thumbsup:j(`thumbsup`,60268),tools:j(`tools`,60269),triangleDown:j(`triangle-down`,60270),triangleLeft:j(`triangle-left`,60271),triangleRight:j(`triangle-right`,60272),triangleUp:j(`triangle-up`,60273),twitter:j(`twitter`,60274),unfold:j(`unfold`,60275),unlock:j(`unlock`,60276),unmute:j(`unmute`,60277),unverified:j(`unverified`,60278),verified:j(`verified`,60279),versions:j(`versions`,60280),vmActive:j(`vm-active`,60281),vmOutline:j(`vm-outline`,60282),vmRunning:j(`vm-running`,60283),watch:j(`watch`,60284),whitespace:j(`whitespace`,60285),wholeWord:j(`whole-word`,60286),window:j(`window`,60287),wordWrap:j(`word-wrap`,60288),zoomIn:j(`zoom-in`,60289),zoomOut:j(`zoom-out`,60290),listFilter:j(`list-filter`,60291),listFlat:j(`list-flat`,60292),listSelection:j(`list-selection`,60293),selection:j(`selection`,60293),listTree:j(`list-tree`,60294),debugBreakpointFunctionUnverified:j(`debug-breakpoint-function-unverified`,60295),debugBreakpointFunction:j(`debug-breakpoint-function`,60296),debugBreakpointFunctionDisabled:j(`debug-breakpoint-function-disabled`,60296),debugStackframeActive:j(`debug-stackframe-active`,60297),circleSmallFilled:j(`circle-small-filled`,60298),debugStackframeDot:j(`debug-stackframe-dot`,60298),terminalDecorationMark:j(`terminal-decoration-mark`,60298),debugStackframe:j(`debug-stackframe`,60299),debugStackframeFocused:j(`debug-stackframe-focused`,60299),debugBreakpointUnsupported:j(`debug-breakpoint-unsupported`,60300),symbolString:j(`symbol-string`,60301),debugReverseContinue:j(`debug-reverse-continue`,60302),debugStepBack:j(`debug-step-back`,60303),debugRestartFrame:j(`debug-restart-frame`,60304),debugAlt:j(`debug-alt`,60305),callIncoming:j(`call-incoming`,60306),callOutgoing:j(`call-outgoing`,60307),menu:j(`menu`,60308),expandAll:j(`expand-all`,60309),feedback:j(`feedback`,60310),gitPullRequestReviewer:j(`git-pull-request-reviewer`,60310),groupByRefType:j(`group-by-ref-type`,60311),ungroupByRefType:j(`ungroup-by-ref-type`,60312),account:j(`account`,60313),gitPullRequestAssignee:j(`git-pull-request-assignee`,60313),bellDot:j(`bell-dot`,60314),debugConsole:j(`debug-console`,60315),library:j(`library`,60316),output:j(`output`,60317),runAll:j(`run-all`,60318),syncIgnored:j(`sync-ignored`,60319),pinned:j(`pinned`,60320),githubInverted:j(`github-inverted`,60321),serverProcess:j(`server-process`,60322),serverEnvironment:j(`server-environment`,60323),pass:j(`pass`,60324),issueClosed:j(`issue-closed`,60324),stopCircle:j(`stop-circle`,60325),playCircle:j(`play-circle`,60326),record:j(`record`,60327),debugAltSmall:j(`debug-alt-small`,60328),vmConnect:j(`vm-connect`,60329),cloud:j(`cloud`,60330),merge:j(`merge`,60331),export:j(`export`,60332),graphLeft:j(`graph-left`,60333),magnet:j(`magnet`,60334),notebook:j(`notebook`,60335),redo:j(`redo`,60336),checkAll:j(`check-all`,60337),pinnedDirty:j(`pinned-dirty`,60338),passFilled:j(`pass-filled`,60339),circleLargeFilled:j(`circle-large-filled`,60340),circleLarge:j(`circle-large`,60341),circleLargeOutline:j(`circle-large-outline`,60341),combine:j(`combine`,60342),gather:j(`gather`,60342),table:j(`table`,60343),variableGroup:j(`variable-group`,60344),typeHierarchy:j(`type-hierarchy`,60345),typeHierarchySub:j(`type-hierarchy-sub`,60346),typeHierarchySuper:j(`type-hierarchy-super`,60347),gitPullRequestCreate:j(`git-pull-request-create`,60348),runAbove:j(`run-above`,60349),runBelow:j(`run-below`,60350),notebookTemplate:j(`notebook-template`,60351),debugRerun:j(`debug-rerun`,60352),workspaceTrusted:j(`workspace-trusted`,60353),workspaceUntrusted:j(`workspace-untrusted`,60354),workspaceUnknown:j(`workspace-unknown`,60355),terminalCmd:j(`terminal-cmd`,60356),terminalDebian:j(`terminal-debian`,60357),terminalLinux:j(`terminal-linux`,60358),terminalPowershell:j(`terminal-powershell`,60359),terminalTmux:j(`terminal-tmux`,60360),terminalUbuntu:j(`terminal-ubuntu`,60361),terminalBash:j(`terminal-bash`,60362),arrowSwap:j(`arrow-swap`,60363),copy:j(`copy`,60364),personAdd:j(`person-add`,60365),filterFilled:j(`filter-filled`,60366),wand:j(`wand`,60367),debugLineByLine:j(`debug-line-by-line`,60368),inspect:j(`inspect`,60369),layers:j(`layers`,60370),layersDot:j(`layers-dot`,60371),layersActive:j(`layers-active`,60372),compass:j(`compass`,60373),compassDot:j(`compass-dot`,60374),compassActive:j(`compass-active`,60375),azure:j(`azure`,60376),issueDraft:j(`issue-draft`,60377),gitPullRequestClosed:j(`git-pull-request-closed`,60378),gitPullRequestDraft:j(`git-pull-request-draft`,60379),debugAll:j(`debug-all`,60380),debugCoverage:j(`debug-coverage`,60381),runErrors:j(`run-errors`,60382),folderLibrary:j(`folder-library`,60383),debugContinueSmall:j(`debug-continue-small`,60384),beakerStop:j(`beaker-stop`,60385),graphLine:j(`graph-line`,60386),graphScatter:j(`graph-scatter`,60387),pieChart:j(`pie-chart`,60388),bracketDot:j(`bracket-dot`,60389),bracketError:j(`bracket-error`,60390),lockSmall:j(`lock-small`,60391),azureDevops:j(`azure-devops`,60392),verifiedFilled:j(`verified-filled`,60393),newline:j(`newline`,60394),layout:j(`layout`,60395),layoutActivitybarLeft:j(`layout-activitybar-left`,60396),layoutActivitybarRight:j(`layout-activitybar-right`,60397),layoutPanelLeft:j(`layout-panel-left`,60398),layoutPanelCenter:j(`layout-panel-center`,60399),layoutPanelJustify:j(`layout-panel-justify`,60400),layoutPanelRight:j(`layout-panel-right`,60401),layoutPanel:j(`layout-panel`,60402),layoutSidebarLeft:j(`layout-sidebar-left`,60403),layoutSidebarRight:j(`layout-sidebar-right`,60404),layoutStatusbar:j(`layout-statusbar`,60405),layoutMenubar:j(`layout-menubar`,60406),layoutCentered:j(`layout-centered`,60407),target:j(`target`,60408),indent:j(`indent`,60409),recordSmall:j(`record-small`,60410),errorSmall:j(`error-small`,60411),terminalDecorationError:j(`terminal-decoration-error`,60411),arrowCircleDown:j(`arrow-circle-down`,60412),arrowCircleLeft:j(`arrow-circle-left`,60413),arrowCircleRight:j(`arrow-circle-right`,60414),arrowCircleUp:j(`arrow-circle-up`,60415),layoutSidebarRightOff:j(`layout-sidebar-right-off`,60416),layoutPanelOff:j(`layout-panel-off`,60417),layoutSidebarLeftOff:j(`layout-sidebar-left-off`,60418),blank:j(`blank`,60419),heartFilled:j(`heart-filled`,60420),map:j(`map`,60421),mapHorizontal:j(`map-horizontal`,60421),foldHorizontal:j(`fold-horizontal`,60421),mapFilled:j(`map-filled`,60422),mapHorizontalFilled:j(`map-horizontal-filled`,60422),foldHorizontalFilled:j(`fold-horizontal-filled`,60422),circleSmall:j(`circle-small`,60423),bellSlash:j(`bell-slash`,60424),bellSlashDot:j(`bell-slash-dot`,60425),commentUnresolved:j(`comment-unresolved`,60426),gitPullRequestGoToChanges:j(`git-pull-request-go-to-changes`,60427),gitPullRequestNewChanges:j(`git-pull-request-new-changes`,60428),searchFuzzy:j(`search-fuzzy`,60429),commentDraft:j(`comment-draft`,60430),send:j(`send`,60431),sparkle:j(`sparkle`,60432),insert:j(`insert`,60433),mic:j(`mic`,60434),thumbsdownFilled:j(`thumbsdown-filled`,60435),thumbsupFilled:j(`thumbsup-filled`,60436),coffee:j(`coffee`,60437),snake:j(`snake`,60438),game:j(`game`,60439),vr:j(`vr`,60440),chip:j(`chip`,60441),piano:j(`piano`,60442),music:j(`music`,60443),micFilled:j(`mic-filled`,60444),repoFetch:j(`repo-fetch`,60445),copilot:j(`copilot`,60446),lightbulbSparkle:j(`lightbulb-sparkle`,60447),robot:j(`robot`,60448),sparkleFilled:j(`sparkle-filled`,60449),diffSingle:j(`diff-single`,60450),diffMultiple:j(`diff-multiple`,60451),surroundWith:j(`surround-with`,60452),share:j(`share`,60453),gitStash:j(`git-stash`,60454),gitStashApply:j(`git-stash-apply`,60455),gitStashPop:j(`git-stash-pop`,60456),vscode:j(`vscode`,60457),vscodeInsiders:j(`vscode-insiders`,60458),codeOss:j(`code-oss`,60459),runCoverage:j(`run-coverage`,60460),runAllCoverage:j(`run-all-coverage`,60461),coverage:j(`coverage`,60462),githubProject:j(`github-project`,60463),mapVertical:j(`map-vertical`,60464),foldVertical:j(`fold-vertical`,60464),mapVerticalFilled:j(`map-vertical-filled`,60465),foldVerticalFilled:j(`fold-vertical-filled`,60465),goToSearch:j(`go-to-search`,60466),percentage:j(`percentage`,60467),sortPercentage:j(`sort-percentage`,60467),attach:j(`attach`,60468),goToEditingSession:j(`go-to-editing-session`,60469),editSession:j(`edit-session`,60470),codeReview:j(`code-review`,60471),copilotWarning:j(`copilot-warning`,60472),python:j(`python`,60473),copilotLarge:j(`copilot-large`,60474),copilotWarningLarge:j(`copilot-warning-large`,60475),keyboardTab:j(`keyboard-tab`,60476),copilotBlocked:j(`copilot-blocked`,60477),copilotNotConnected:j(`copilot-not-connected`,60478),flag:j(`flag`,60479),lightbulbEmpty:j(`lightbulb-empty`,60480),symbolMethodArrow:j(`symbol-method-arrow`,60481),copilotUnavailable:j(`copilot-unavailable`,60482),repoPinned:j(`repo-pinned`,60483),keyboardTabAbove:j(`keyboard-tab-above`,60484),keyboardTabBelow:j(`keyboard-tab-below`,60485),gitPullRequestDone:j(`git-pull-request-done`,60486),mcp:j(`mcp`,60487),extensionsLarge:j(`extensions-large`,60488),layoutPanelDock:j(`layout-panel-dock`,60489),layoutSidebarLeftDock:j(`layout-sidebar-left-dock`,60490),layoutSidebarRightDock:j(`layout-sidebar-right-dock`,60491),copilotInProgress:j(`copilot-in-progress`,60492),copilotError:j(`copilot-error`,60493),copilotSuccess:j(`copilot-success`,60494),chatSparkle:j(`chat-sparkle`,60495),searchSparkle:j(`search-sparkle`,60496),editSparkle:j(`edit-sparkle`,60497),copilotSnooze:j(`copilot-snooze`,60498),sendToRemoteAgent:j(`send-to-remote-agent`,60499),commentDiscussionSparkle:j(`comment-discussion-sparkle`,60500),chatSparkleWarning:j(`chat-sparkle-warning`,60501),chatSparkleError:j(`chat-sparkle-error`,60502),collection:j(`collection`,60503),newCollection:j(`new-collection`,60504),thinking:j(`thinking`,60505),build:j(`build`,60506),commentDiscussionQuote:j(`comment-discussion-quote`,60507),cursor:j(`cursor`,60508),eraser:j(`eraser`,60509),fileText:j(`file-text`,60510),quotes:j(`quotes`,60512),rename:j(`rename`,60513),runWithDeps:j(`run-with-deps`,60514),debugConnected:j(`debug-connected`,60515),strikethrough:j(`strikethrough`,60516),openInProduct:j(`open-in-product`,60517),indexZero:j(`index-zero`,60518),agent:j(`agent`,60519),editCode:j(`edit-code`,60520),repoSelected:j(`repo-selected`,60521),skip:j(`skip`,60522),mergeInto:j(`merge-into`,60523),gitBranchChanges:j(`git-branch-changes`,60524),gitBranchStagedChanges:j(`git-branch-staged-changes`,60525),gitBranchConflicts:j(`git-branch-conflicts`,60526),gitBranch:j(`git-branch`,60527),gitBranchCreate:j(`git-branch-create`,60527),gitBranchDelete:j(`git-branch-delete`,60527),searchLarge:j(`search-large`,60528),terminalGitBash:j(`terminal-git-bash`,60529),windowActive:j(`window-active`,60530),forward:j(`forward`,60531),download:j(`download`,60532),clockface:j(`clockface`,60533),unarchive:j(`unarchive`,60534),sessionInProgress:j(`session-in-progress`,60535),collectionSmall:j(`collection-small`,60536),vmSmall:j(`vm-small`,60537),cloudSmall:j(`cloud-small`,60538),addSmall:j(`add-small`,60539),removeSmall:j(`remove-small`,60540),worktreeSmall:j(`worktree-small`,60541),worktree:j(`worktree`,60542),screenCut:j(`screen-cut`,60543),ask:j(`ask`,60544),openai:j(`openai`,60545),claude:j(`claude`,60546),openInWindow:j(`open-in-window`,60547),newSession:j(`new-session`,60548),terminalSecure:j(`terminal-secure`,60549),chatImport:j(`chat-import`,60550),chatExport:j(`chat-export`,60551),shareWindow:j(`share-window`,60552),circleSlashCompact:j(`circle-slash-compact`,60553),copilotCompact:j(`copilot-compact`,60554),folderOpenedCompact:j(`folder-opened-compact`,60555),folderCompact:j(`folder-compact`,60556),gearCompact:j(`gear-compact`,60557),gitBranchCompact:j(`git-branch-compact`,60558),libraryCompact:j(`library-compact`,60559),recordKeysCompact:j(`record-keys-compact`,60560),remoteCompact:j(`remote-compact`,60561),repoForkedCompact:j(`repo-forked-compact`,60562),repoCompact:j(`repo-compact`,60563),shieldCompact:j(`shield-compact`,60564),sparkleCompact:j(`sparkle-compact`,60565),symbolColorCompact:j(`symbol-color-compact`,60566),windowCompact:j(`window-compact`,60567),errorCompact:j(`error-compact`,60568),warningCompact:j(`warning-compact`,60569),passCompact:j(`pass-compact`,60570),important:j(`important`,60571),importantCompact:j(`important-compact`,60572),rocketCompact:j(`rocket-compact`,60573),unpin:j(`unpin`,60574),addCompact:j(`add-compact`,60575),attachCompact:j(`attach-compact`,60576),beakerCompact:j(`beaker-compact`,60577),checkCompact:j(`check-compact`,60578),checklistCompact:j(`checklist-compact`,60579),chevronDownCompact:j(`chevron-down-compact`,60580),chevronLeftCompact:j(`chevron-left-compact`,60581),chevronRightCompact:j(`chevron-right-compact`,60582),chevronUpCompact:j(`chevron-up-compact`,60583),circleFilledCompact:j(`circle-filled-compact`,60584),circleSmallFilledCompact:j(`circle-small-filled-compact`,60585),closeCompact:j(`close-compact`,60586),collapseAllCompact:j(`collapse-all-compact`,60587),commentCompact:j(`comment-compact`,60588),commentUnresolvedCompact:j(`comment-unresolved-compact`,60589),debugConnectedCompact:j(`debug-connected-compact`,60590),debugDisconnectCompact:j(`debug-disconnect-compact`,60591),editCompact:j(`edit-compact`,60592),fileMediaCompact:j(`file-media-compact`,60593),gitFetch:j(`git-fetch`,60594),lightbulbCompact:j(`lightbulb-compact`,60595),loadingCompact:j(`loading-compact`,60596),passFilledCompact:j(`pass-filled-compact`,60597),projectCompact:j(`project-compact`,60598),refreshCompact:j(`refresh-compact`,60599),searchCompact:j(`search-compact`,60600),sessionInProgressCompact:j(`session-in-progress-compact`,60601),syncCompact:j(`sync-compact`,60602),terminalCompact:j(`terminal-compact`,60603),vmPending:j(`vm-pending`,60604),worktreeCompact:j(`worktree-compact`,60605),developerTools:j(`developer-tools`,60606),cloudCompact:j(`cloud-compact`,60607),agentCompact:j(`agent-compact`,60608),askCompact:j(`ask-compact`,60609),settingsCompact:j(`settings-compact`,60610),vmCompact:j(`vm-compact`,60611),runCompact:j(`run-compact`,60612),gitPullRequestComment:j(`git-pull-request-comment`,60613),gitPullRequestError:j(`git-pull-request-error`,60614),rightPanelHide:j(`right-panel-hide`,60615),rightPanelShow:j(`right-panel-show`,60616),vscodeInsidersOutline:j(`vscode-insiders-outline`,60617),vscodeOutline:j(`vscode-outline`,60618),voiceMode:j(`voice-mode`,60619),voiceModeCompact:j(`voice-mode-compact`,60620)},Un={dialogError:j(`dialog-error`,`error`),dialogWarning:j(`dialog-warning`,`warning`),dialogInfo:j(`dialog-info`,`info`),dialogClose:j(`dialog-close`,`close`),treeItemExpanded:j(`tree-item-expanded`,`chevron-down`),treeFilterOnTypeOn:j(`tree-filter-on-type-on`,`list-filter`),treeFilterOnTypeOff:j(`tree-filter-on-type-off`,`list-selection`),treeFilterClear:j(`tree-filter-clear`,`close`),treeItemLoading:j(`tree-item-loading`,`loading`),menuSelection:j(`menu-selection`,`check`),menuSubmenu:j(`menu-submenu`,`chevron-right`),menuBarMore:j(`menubar-more`,`more`),scrollbarButtonLeft:j(`scrollbar-button-left`,`triangle-left`),scrollbarButtonRight:j(`scrollbar-button-right`,`triangle-right`),scrollbarButtonUp:j(`scrollbar-button-up`,`triangle-up`),scrollbarButtonDown:j(`scrollbar-button-down`,`triangle-down`),toolBarMore:j(`toolbar-more`,`more`),quickInputBack:j(`quick-input-back`,`arrow-left`),dropDownButton:j(`drop-down-button`,60084),symbolCustomColor:j(`symbol-customcolor`,60252),exportIcon:j(`export`,60332),workspaceUnspecified:j(`workspace-unspecified`,60355),newLine:j(`newline`,60394),thumbsDownFilled:j(`thumbsdown-filled`,60435),thumbsUpFilled:j(`thumbsup-filled`,60436),gitFetch:j(`git-fetch`,60445),lightbulbSparkleAutofix:j(`lightbulb-sparkle-autofix`,60447),debugBreakpointPending:j(`debug-breakpoint-pending`,60377),chatImport:j(`chat-import`,60550),chatExport:j(`chat-export`,60551)},M={...Hn,...Un};var Wn=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Fe,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),b(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new Gn(this,e,t);return this._factories.set(e,n),b(()=>{let t=this._factories.get(e);!t||t!==n||(this._factories.delete(e),t.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let t=this._factories.get(e);return!!(!t||t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Gn=class extends S{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||=this._create(),this._resolvePromise}async _create(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}},Kn=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return`(`+this.offset+`, `+this.type+`)`}},qn;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(qn||={});var Jn;(function(e){let t=new Map;t.set(0,M.symbolMethod),t.set(1,M.symbolFunction),t.set(2,M.symbolConstructor),t.set(3,M.symbolField),t.set(4,M.symbolVariable),t.set(5,M.symbolClass),t.set(6,M.symbolStruct),t.set(7,M.symbolInterface),t.set(8,M.symbolModule),t.set(9,M.symbolProperty),t.set(10,M.symbolEvent),t.set(11,M.symbolOperator),t.set(12,M.symbolUnit),t.set(13,M.symbolValue),t.set(15,M.symbolEnum),t.set(14,M.symbolConstant),t.set(15,M.symbolEnum),t.set(16,M.symbolEnumMember),t.set(17,M.symbolKeyword),t.set(28,M.symbolSnippet),t.set(18,M.symbolText),t.set(19,M.symbolColor),t.set(20,M.symbolFile),t.set(21,M.symbolReference),t.set(22,M.symbolCustomColor),t.set(23,M.symbolFolder),t.set(24,M.symbolTypeParameter),t.set(25,M.account),t.set(26,M.issues),t.set(27,M.tools);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for CompletionItemKind `+e),M.symbolProperty),n}e.toIcon=n;function r(e){switch(e){case 0:return D(763,`Method`);case 1:return D(764,`Function`);case 2:return D(765,`Constructor`);case 3:return D(766,`Field`);case 4:return D(767,`Variable`);case 5:return D(768,`Class`);case 6:return D(769,`Struct`);case 7:return D(770,`Interface`);case 8:return D(771,`Module`);case 9:return D(772,`Property`);case 10:return D(773,`Event`);case 11:return D(774,`Operator`);case 12:return D(775,`Unit`);case 13:return D(776,`Value`);case 14:return D(777,`Constant`);case 15:return D(778,`Enum`);case 16:return D(779,`Enum Member`);case 17:return D(780,`Keyword`);case 18:return D(781,`Text`);case 19:return D(782,`Color`);case 20:return D(783,`File`);case 21:return D(784,`Reference`);case 22:return D(785,`Custom Color`);case 23:return D(786,`Folder`);case 24:return D(787,`Type Parameter`);case 25:return D(788,`User`);case 26:return D(789,`Issue`);case 27:return D(790,`Tool`);case 28:return D(791,`Snippet`);default:return``}}e.toLabel=r;let i=new Map;i.set(`method`,0),i.set(`function`,1),i.set(`constructor`,2),i.set(`field`,3),i.set(`variable`,4),i.set(`class`,5),i.set(`struct`,6),i.set(`interface`,7),i.set(`module`,8),i.set(`property`,9),i.set(`event`,10),i.set(`operator`,11),i.set(`unit`,12),i.set(`value`,13),i.set(`constant`,14),i.set(`enum`,15),i.set(`enum-member`,16),i.set(`enumMember`,16),i.set(`keyword`,17),i.set(`snippet`,28),i.set(`text`,18),i.set(`color`,19),i.set(`file`,20),i.set(`reference`,21),i.set(`customcolor`,22),i.set(`folder`,23),i.set(`type-parameter`,24),i.set(`typeParameter`,24),i.set(`account`,25),i.set(`issue`,26),i.set(`tool`,27);function a(e,t){let n=i.get(e);return n===void 0&&!t&&(n=9),n}e.fromString=a})(Jn||={});var Yn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(Yn||={});var Xn;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(Xn||={});var Zn;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(Zn||={});var Qn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.PasteAs=1]=`PasteAs`})(Qn||={});var $n;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})($n||={});var er;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(er||={}),D(792,`array`),D(793,`boolean`),D(794,`class`),D(795,`constant`),D(796,`constructor`),D(797,`enumeration`),D(798,`enumeration member`),D(799,`event`),D(800,`field`),D(801,`file`),D(802,`function`),D(803,`interface`),D(804,`key`),D(805,`method`),D(806,`module`),D(807,`namespace`),D(808,`null`),D(809,`number`),D(810,`object`),D(811,`operator`),D(812,`package`),D(813,`property`),D(814,`string`),D(815,`struct`),D(816,`type parameter`),D(817,`variable`);var tr;(function(e){let t=new Map;t.set(0,M.symbolFile),t.set(1,M.symbolModule),t.set(2,M.symbolNamespace),t.set(3,M.symbolPackage),t.set(4,M.symbolClass),t.set(5,M.symbolMethod),t.set(6,M.symbolProperty),t.set(7,M.symbolField),t.set(8,M.symbolConstructor),t.set(9,M.symbolEnum),t.set(10,M.symbolInterface),t.set(11,M.symbolFunction),t.set(12,M.symbolVariable),t.set(13,M.symbolConstant),t.set(14,M.symbolString),t.set(15,M.symbolNumber),t.set(16,M.symbolBoolean),t.set(17,M.symbolArray),t.set(18,M.symbolObject),t.set(19,M.symbolKey),t.set(20,M.symbolNull),t.set(21,M.symbolEnumMember),t.set(22,M.symbolStruct),t.set(23,M.symbolEvent),t.set(24,M.symbolOperator),t.set(25,M.symbolTypeParameter);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for SymbolKind `+e),M.symbolProperty),n}e.toIcon=n;let r=new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(e){let t=r.get(e);return t===void 0&&(console.info(`No completion kind found for SymbolKind `+e),t=20),t}e.toCompletionKind=i})(tr||={}),class e{static{this.Comment=new e(`comment`)}static{this.Imports=new e(`imports`)}static{this.Region=new e(`region`)}static fromValue(t){switch(t){case`comment`:return e.Comment;case`imports`:return e.Imports;case`region`:return e.Region}return new e(t)}constructor(e){this.value=e}};var nr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(nr||={});var rr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(rr||={});var ir;(function(e){function t(e){return!e||typeof e!=`object`?!1:typeof e.id==`string`&&typeof e.title==`string`}e.is=t})(ir||={});var ar;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(ar||={}),new Wn;var or;(function(e){e[e.Unknown=0]=`Unknown`,e[e.Disabled=1]=`Disabled`,e[e.Enabled=2]=`Enabled`})(or||={});var sr;(function(e){e[e.Invoke=1]=`Invoke`,e[e.Auto=2]=`Auto`})(sr||={});var cr;(function(e){e[e.None=0]=`None`,e[e.KeepWhitespace=1]=`KeepWhitespace`,e[e.InsertAsSnippet=4]=`InsertAsSnippet`})(cr||={});var lr;(function(e){e[e.Method=0]=`Method`,e[e.Function=1]=`Function`,e[e.Constructor=2]=`Constructor`,e[e.Field=3]=`Field`,e[e.Variable=4]=`Variable`,e[e.Class=5]=`Class`,e[e.Struct=6]=`Struct`,e[e.Interface=7]=`Interface`,e[e.Module=8]=`Module`,e[e.Property=9]=`Property`,e[e.Event=10]=`Event`,e[e.Operator=11]=`Operator`,e[e.Unit=12]=`Unit`,e[e.Value=13]=`Value`,e[e.Constant=14]=`Constant`,e[e.Enum=15]=`Enum`,e[e.EnumMember=16]=`EnumMember`,e[e.Keyword=17]=`Keyword`,e[e.Text=18]=`Text`,e[e.Color=19]=`Color`,e[e.File=20]=`File`,e[e.Reference=21]=`Reference`,e[e.Customcolor=22]=`Customcolor`,e[e.Folder=23]=`Folder`,e[e.TypeParameter=24]=`TypeParameter`,e[e.User=25]=`User`,e[e.Issue=26]=`Issue`,e[e.Tool=27]=`Tool`,e[e.Snippet=28]=`Snippet`})(lr||={});var ur;(function(e){e[e.Deprecated=1]=`Deprecated`})(ur||={});var dr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.TriggerCharacter=1]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=2]=`TriggerForIncompleteCompletions`})(dr||={});var fr;(function(e){e[e.EXACT=0]=`EXACT`,e[e.ABOVE=1]=`ABOVE`,e[e.BELOW=2]=`BELOW`})(fr||={});var pr;(function(e){e[e.NotSet=0]=`NotSet`,e[e.ContentFlush=1]=`ContentFlush`,e[e.RecoverFromMarkers=2]=`RecoverFromMarkers`,e[e.Explicit=3]=`Explicit`,e[e.Paste=4]=`Paste`,e[e.Undo=5]=`Undo`,e[e.Redo=6]=`Redo`})(pr||={});var mr;(function(e){e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(mr||={});var hr;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(hr||={});var gr;(function(e){e[e.None=0]=`None`,e[e.Keep=1]=`Keep`,e[e.Brackets=2]=`Brackets`,e[e.Advanced=3]=`Advanced`,e[e.Full=4]=`Full`})(gr||={});var _r;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]=`acceptSuggestionOnCommitCharacter`,e[e.acceptSuggestionOnEnter=1]=`acceptSuggestionOnEnter`,e[e.accessibilitySupport=2]=`accessibilitySupport`,e[e.accessibilityPageSize=3]=`accessibilityPageSize`,e[e.allowOverflow=4]=`allowOverflow`,e[e.allowVariableLineHeights=5]=`allowVariableLineHeights`,e[e.allowVariableFonts=6]=`allowVariableFonts`,e[e.allowVariableFontsInAccessibilityMode=7]=`allowVariableFontsInAccessibilityMode`,e[e.ariaLabel=8]=`ariaLabel`,e[e.ariaRequired=9]=`ariaRequired`,e[e.autoClosingBrackets=10]=`autoClosingBrackets`,e[e.autoClosingComments=11]=`autoClosingComments`,e[e.screenReaderAnnounceInlineSuggestion=12]=`screenReaderAnnounceInlineSuggestion`,e[e.autoClosingDelete=13]=`autoClosingDelete`,e[e.autoClosingOvertype=14]=`autoClosingOvertype`,e[e.autoClosingQuotes=15]=`autoClosingQuotes`,e[e.autoIndent=16]=`autoIndent`,e[e.autoIndentOnPaste=17]=`autoIndentOnPaste`,e[e.autoIndentOnPasteWithinString=18]=`autoIndentOnPasteWithinString`,e[e.automaticLayout=19]=`automaticLayout`,e[e.autoSurround=20]=`autoSurround`,e[e.bracketPairColorization=21]=`bracketPairColorization`,e[e.guides=22]=`guides`,e[e.codeLens=23]=`codeLens`,e[e.codeLensFontFamily=24]=`codeLensFontFamily`,e[e.codeLensFontSize=25]=`codeLensFontSize`,e[e.colorDecorators=26]=`colorDecorators`,e[e.colorDecoratorsLimit=27]=`colorDecoratorsLimit`,e[e.columnSelection=28]=`columnSelection`,e[e.comments=29]=`comments`,e[e.contextmenu=30]=`contextmenu`,e[e.copyWithSyntaxHighlighting=31]=`copyWithSyntaxHighlighting`,e[e.cursorBlinking=32]=`cursorBlinking`,e[e.cursorSmoothCaretAnimation=33]=`cursorSmoothCaretAnimation`,e[e.cursorStyle=34]=`cursorStyle`,e[e.cursorSurroundingLines=35]=`cursorSurroundingLines`,e[e.cursorSurroundingLinesStyle=36]=`cursorSurroundingLinesStyle`,e[e.cursorWidth=37]=`cursorWidth`,e[e.cursorHeight=38]=`cursorHeight`,e[e.disableLayerHinting=39]=`disableLayerHinting`,e[e.disableMonospaceOptimizations=40]=`disableMonospaceOptimizations`,e[e.domReadOnly=41]=`domReadOnly`,e[e.dragAndDrop=42]=`dragAndDrop`,e[e.dropIntoEditor=43]=`dropIntoEditor`,e[e.editContext=44]=`editContext`,e[e.emptySelectionClipboard=45]=`emptySelectionClipboard`,e[e.experimentalGpuAcceleration=46]=`experimentalGpuAcceleration`,e[e.experimentalWhitespaceRendering=47]=`experimentalWhitespaceRendering`,e[e.extraEditorClassName=48]=`extraEditorClassName`,e[e.fastScrollSensitivity=49]=`fastScrollSensitivity`,e[e.find=50]=`find`,e[e.fixedOverflowWidgets=51]=`fixedOverflowWidgets`,e[e.folding=52]=`folding`,e[e.foldingStrategy=53]=`foldingStrategy`,e[e.foldingHighlight=54]=`foldingHighlight`,e[e.foldingImportsByDefault=55]=`foldingImportsByDefault`,e[e.foldingMaximumRegions=56]=`foldingMaximumRegions`,e[e.unfoldOnClickAfterEndOfLine=57]=`unfoldOnClickAfterEndOfLine`,e[e.fontFamily=58]=`fontFamily`,e[e.fontInfo=59]=`fontInfo`,e[e.fontLigatures=60]=`fontLigatures`,e[e.fontSize=61]=`fontSize`,e[e.fontWeight=62]=`fontWeight`,e[e.fontVariations=63]=`fontVariations`,e[e.formatOnPaste=64]=`formatOnPaste`,e[e.formatOnType=65]=`formatOnType`,e[e.glyphMargin=66]=`glyphMargin`,e[e.gotoLocation=67]=`gotoLocation`,e[e.hideCursorInOverviewRuler=68]=`hideCursorInOverviewRuler`,e[e.hover=69]=`hover`,e[e.inDiffEditor=70]=`inDiffEditor`,e[e.inlineSuggest=71]=`inlineSuggest`,e[e.letterSpacing=72]=`letterSpacing`,e[e.lightbulb=73]=`lightbulb`,e[e.lineDecorationsWidth=74]=`lineDecorationsWidth`,e[e.lineHeight=75]=`lineHeight`,e[e.lineNumbers=76]=`lineNumbers`,e[e.lineNumbersMinChars=77]=`lineNumbersMinChars`,e[e.linkedEditing=78]=`linkedEditing`,e[e.links=79]=`links`,e[e.matchBrackets=80]=`matchBrackets`,e[e.minimap=81]=`minimap`,e[e.mouseStyle=82]=`mouseStyle`,e[e.mouseWheelScrollSensitivity=83]=`mouseWheelScrollSensitivity`,e[e.mouseWheelZoom=84]=`mouseWheelZoom`,e[e.multiCursorMergeOverlapping=85]=`multiCursorMergeOverlapping`,e[e.multiCursorModifier=86]=`multiCursorModifier`,e[e.mouseMiddleClickAction=87]=`mouseMiddleClickAction`,e[e.multiCursorPaste=88]=`multiCursorPaste`,e[e.multiCursorLimit=89]=`multiCursorLimit`,e[e.occurrencesHighlight=90]=`occurrencesHighlight`,e[e.occurrencesHighlightDelay=91]=`occurrencesHighlightDelay`,e[e.overtypeCursorStyle=92]=`overtypeCursorStyle`,e[e.overtypeOnPaste=93]=`overtypeOnPaste`,e[e.overviewRulerBorder=94]=`overviewRulerBorder`,e[e.overviewRulerLanes=95]=`overviewRulerLanes`,e[e.padding=96]=`padding`,e[e.pasteAs=97]=`pasteAs`,e[e.parameterHints=98]=`parameterHints`,e[e.peekWidgetDefaultFocus=99]=`peekWidgetDefaultFocus`,e[e.placeholder=100]=`placeholder`,e[e.definitionLinkOpensInPeek=101]=`definitionLinkOpensInPeek`,e[e.quickSuggestions=102]=`quickSuggestions`,e[e.quickSuggestionsDelay=103]=`quickSuggestionsDelay`,e[e.readOnly=104]=`readOnly`,e[e.readOnlyMessage=105]=`readOnlyMessage`,e[e.renameOnType=106]=`renameOnType`,e[e.renderRichScreenReaderContent=107]=`renderRichScreenReaderContent`,e[e.renderControlCharacters=108]=`renderControlCharacters`,e[e.renderFinalNewline=109]=`renderFinalNewline`,e[e.renderLineHighlight=110]=`renderLineHighlight`,e[e.renderLineHighlightOnlyWhenFocus=111]=`renderLineHighlightOnlyWhenFocus`,e[e.renderValidationDecorations=112]=`renderValidationDecorations`,e[e.renderWhitespace=113]=`renderWhitespace`,e[e.revealHorizontalRightPadding=114]=`revealHorizontalRightPadding`,e[e.roundedSelection=115]=`roundedSelection`,e[e.rulers=116]=`rulers`,e[e.scrollbar=117]=`scrollbar`,e[e.scrollBeyondLastColumn=118]=`scrollBeyondLastColumn`,e[e.scrollBeyondLastLine=119]=`scrollBeyondLastLine`,e[e.scrollPredominantAxis=120]=`scrollPredominantAxis`,e[e.selectionClipboard=121]=`selectionClipboard`,e[e.selectionHighlight=122]=`selectionHighlight`,e[e.selectionHighlightMaxLength=123]=`selectionHighlightMaxLength`,e[e.selectionHighlightMultiline=124]=`selectionHighlightMultiline`,e[e.selectOnLineNumbers=125]=`selectOnLineNumbers`,e[e.showFoldingControls=126]=`showFoldingControls`,e[e.showUnused=127]=`showUnused`,e[e.snippetSuggestions=128]=`snippetSuggestions`,e[e.smartSelect=129]=`smartSelect`,e[e.smoothScrolling=130]=`smoothScrolling`,e[e.stickyScroll=131]=`stickyScroll`,e[e.stickyTabStops=132]=`stickyTabStops`,e[e.stopRenderingLineAfter=133]=`stopRenderingLineAfter`,e[e.suggest=134]=`suggest`,e[e.suggestFontSize=135]=`suggestFontSize`,e[e.suggestLineHeight=136]=`suggestLineHeight`,e[e.suggestOnTriggerCharacters=137]=`suggestOnTriggerCharacters`,e[e.suggestSelection=138]=`suggestSelection`,e[e.tabCompletion=139]=`tabCompletion`,e[e.tabIndex=140]=`tabIndex`,e[e.trimWhitespaceOnDelete=141]=`trimWhitespaceOnDelete`,e[e.unicodeHighlighting=142]=`unicodeHighlighting`,e[e.unusualLineTerminators=143]=`unusualLineTerminators`,e[e.useShadowDOM=144]=`useShadowDOM`,e[e.useTabStops=145]=`useTabStops`,e[e.wordBreak=146]=`wordBreak`,e[e.wordSegmenterLocales=147]=`wordSegmenterLocales`,e[e.wordSeparators=148]=`wordSeparators`,e[e.wordWrap=149]=`wordWrap`,e[e.wordWrapBreakAfterCharacters=150]=`wordWrapBreakAfterCharacters`,e[e.wordWrapBreakBeforeCharacters=151]=`wordWrapBreakBeforeCharacters`,e[e.wordWrapColumn=152]=`wordWrapColumn`,e[e.wordWrapOverride1=153]=`wordWrapOverride1`,e[e.wordWrapOverride2=154]=`wordWrapOverride2`,e[e.wrappingIndent=155]=`wrappingIndent`,e[e.wrappingStrategy=156]=`wrappingStrategy`,e[e.showDeprecated=157]=`showDeprecated`,e[e.inertialScroll=158]=`inertialScroll`,e[e.inlayHints=159]=`inlayHints`,e[e.wrapOnEscapedLineFeeds=160]=`wrapOnEscapedLineFeeds`,e[e.effectiveCursorStyle=161]=`effectiveCursorStyle`,e[e.editorClassName=162]=`editorClassName`,e[e.pixelRatio=163]=`pixelRatio`,e[e.tabFocusMode=164]=`tabFocusMode`,e[e.layoutInfo=165]=`layoutInfo`,e[e.wrappingInfo=166]=`wrappingInfo`,e[e.defaultColorDecorators=167]=`defaultColorDecorators`,e[e.colorDecoratorsActivatedOn=168]=`colorDecoratorsActivatedOn`,e[e.inlineCompletionsAccessibilityVerbose=169]=`inlineCompletionsAccessibilityVerbose`,e[e.effectiveEditContext=170]=`effectiveEditContext`,e[e.scrollOnMiddleClick=171]=`scrollOnMiddleClick`,e[e.effectiveAllowVariableFonts=172]=`effectiveAllowVariableFonts`,e[e.doubleClickSelectsBlock=173]=`doubleClickSelectsBlock`})(_r||={});var vr;(function(e){e[e.TextDefined=0]=`TextDefined`,e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(vr||={});var yr;(function(e){e[e.LF=0]=`LF`,e[e.CRLF=1]=`CRLF`})(yr||={});var br;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(br||={});var xr;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(xr||={});var Sr;(function(e){e[e.None=0]=`None`,e[e.Indent=1]=`Indent`,e[e.IndentOutdent=2]=`IndentOutdent`,e[e.Outdent=3]=`Outdent`})(Sr||={});var Cr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(Cr||={});var wr;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(wr||={});var Tr;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(Tr||={});var Er;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(Er||={});var Dr;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(Dr||={});var Or;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(Or||={});var kr;(function(e){e[e.Hint=1]=`Hint`,e[e.Info=2]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=8]=`Error`})(kr||={});var Ar;(function(e){e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`})(Ar||={});var jr;(function(e){e[e.Inline=1]=`Inline`,e[e.Gutter=2]=`Gutter`})(jr||={});var Mr;(function(e){e[e.Normal=1]=`Normal`,e[e.Underlined=2]=`Underlined`})(Mr||={});var Nr;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.TEXTAREA=1]=`TEXTAREA`,e[e.GUTTER_GLYPH_MARGIN=2]=`GUTTER_GLYPH_MARGIN`,e[e.GUTTER_LINE_NUMBERS=3]=`GUTTER_LINE_NUMBERS`,e[e.GUTTER_LINE_DECORATIONS=4]=`GUTTER_LINE_DECORATIONS`,e[e.GUTTER_VIEW_ZONE=5]=`GUTTER_VIEW_ZONE`,e[e.CONTENT_TEXT=6]=`CONTENT_TEXT`,e[e.CONTENT_EMPTY=7]=`CONTENT_EMPTY`,e[e.CONTENT_VIEW_ZONE=8]=`CONTENT_VIEW_ZONE`,e[e.CONTENT_WIDGET=9]=`CONTENT_WIDGET`,e[e.OVERVIEW_RULER=10]=`OVERVIEW_RULER`,e[e.SCROLLBAR=11]=`SCROLLBAR`,e[e.OVERLAY_WIDGET=12]=`OVERLAY_WIDGET`,e[e.OUTSIDE_EDITOR=13]=`OUTSIDE_EDITOR`})(Nr||={});var Pr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Pr||={});var Fr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(Fr||={});var Ir;(function(e){e[e.TOP_RIGHT_CORNER=0]=`TOP_RIGHT_CORNER`,e[e.BOTTOM_RIGHT_CORNER=1]=`BOTTOM_RIGHT_CORNER`,e[e.TOP_CENTER=2]=`TOP_CENTER`})(Ir||={});var Lr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(Lr||={});var Rr;(function(e){e[e.Word=0]=`Word`,e[e.Line=1]=`Line`,e[e.Suggest=2]=`Suggest`})(Rr||={});var zr;(function(e){e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e[e.None=2]=`None`,e[e.LeftOfInjectedText=3]=`LeftOfInjectedText`,e[e.RightOfInjectedText=4]=`RightOfInjectedText`})(zr||={});var Br;(function(e){e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Relative=2]=`Relative`,e[e.Interval=3]=`Interval`,e[e.Custom=4]=`Custom`})(Br||={});var Vr;(function(e){e[e.None=0]=`None`,e[e.Text=1]=`Text`,e[e.Blocks=2]=`Blocks`})(Vr||={});var Hr;(function(e){e[e.Smooth=0]=`Smooth`,e[e.Immediate=1]=`Immediate`})(Hr||={});var Ur;(function(e){e[e.Auto=1]=`Auto`,e[e.Hidden=2]=`Hidden`,e[e.Visible=3]=`Visible`})(Ur||={});var Wr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Wr||={});var Gr;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(Gr||={});var Kr;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Kr||={});var qr;(function(e){e[e.File=0]=`File`,e[e.Module=1]=`Module`,e[e.Namespace=2]=`Namespace`,e[e.Package=3]=`Package`,e[e.Class=4]=`Class`,e[e.Method=5]=`Method`,e[e.Property=6]=`Property`,e[e.Field=7]=`Field`,e[e.Constructor=8]=`Constructor`,e[e.Enum=9]=`Enum`,e[e.Interface=10]=`Interface`,e[e.Function=11]=`Function`,e[e.Variable=12]=`Variable`,e[e.Constant=13]=`Constant`,e[e.String=14]=`String`,e[e.Number=15]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Array=17]=`Array`,e[e.Object=18]=`Object`,e[e.Key=19]=`Key`,e[e.Null=20]=`Null`,e[e.EnumMember=21]=`EnumMember`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`})(qr||={});var Jr;(function(e){e[e.Deprecated=1]=`Deprecated`})(Jr||={});var Yr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Yr||={});var Xr;(function(e){e[e.Hidden=0]=`Hidden`,e[e.Blink=1]=`Blink`,e[e.Smooth=2]=`Smooth`,e[e.Phase=3]=`Phase`,e[e.Expand=4]=`Expand`,e[e.Solid=5]=`Solid`})(Xr||={});var Zr;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(Zr||={});var Qr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]=`AlwaysGrowsWhenTypingAtEdges`,e[e.NeverGrowsWhenTypingAtEdges=1]=`NeverGrowsWhenTypingAtEdges`,e[e.GrowsOnlyWhenTypingBefore=2]=`GrowsOnlyWhenTypingBefore`,e[e.GrowsOnlyWhenTypingAfter=3]=`GrowsOnlyWhenTypingAfter`})(Qr||={});var $r;(function(e){e[e.None=0]=`None`,e[e.Same=1]=`Same`,e[e.Indent=2]=`Indent`,e[e.DeepIndent=3]=`DeepIndent`})($r||={});var ei=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return sn(e,t)}};function ti(){return{editor:void 0,languages:void 0,CancellationTokenSource:Xt,Emitter:Fe,KeyCode:Or,KeyMod:ei,Position:Pt,Range:k,Selection:Bn,SelectionDirection:Wr,MarkerSeverity:kr,MarkerTag:Ar,Uri:kn,Token:Kn}}var ni,ri,ii=class{constructor(e,t){this.uri=e,this.value=t}};function ai(e){return Array.isArray(e)}(class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[ni]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(ai(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new ii(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(ni=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}});var oi=class{constructor(){this[ri]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(ri=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(t===1||t===2){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},si=class extends oi{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},ci=class extends si{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},li=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}};new ci(10);var ui;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(ui||={});var di;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(di||={});var fi;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(fi||={});var pi;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(pi||={});function mi(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r===10)return!0;if(r===92){if(t++,t>=n)break;let r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function hi(e,t,n,r,i){if(r===0)return!0;let a=t.charCodeAt(r-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r);if(e.get(n)!==0)return!0}return!1}function gi(e,t,n,r,i){if(r+i===n)return!0;let a=t.charCodeAt(r+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r+i-1);if(e.get(n)!==0)return!0}return!1}function _i(e,t,n,r,i){return hi(e,t,n,r,i)&&gi(e,t,n,r,i)}var vi=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){et(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||_i(this._wordSeparators,e,t,r,i))return n}while(n);return null}};function yi(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of`\`~!@#$%^&*()-=+[{]}\\|;:'",.<>/?`)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}const bi=yi();function xi(e){let t=bi;if(e&&e instanceof RegExp){if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}}return t.lastIndex=0,t}const Si=new w;Si.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Ci(e,t,n,r,i){if(t=xi(t),i||=g.first(Si),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),Ci(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=wi(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function wi(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var Ti=class{static computeUnicodeHighlights(e,t,n){let r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),a=new Di(t),o=a.getCandidateCodePoints(),s;s=RegExp(o===`allNonBasicAscii`?`[^\\t\\n\\r\\x20-\\x7E]`:`${Ei(Array.from(o))}`,`g`);let c=new vi(null,s),l=[],d=!1,f,p=0,m=0,h=0;forLoop:for(let t=r,n=i;t<=n;t++){let n=e.getLineContent(t),r=n.length;c.reset(0);do if(f=c.next(n),f){let e=f.index,i=f.index+f[0].length;e>0&&Ze(n.charCodeAt(e-1))&&e--,i+1<r&&Ze(n.charCodeAt(i-1))&&i++;let o=n.substring(e,i),s=Ci(e+1,bi,n,0);s&&s.endColumn<=e+1&&(s=null);let c=a.shouldHighlightNonBasicASCII(o,s?s.word:null);if(c!==0){if(c===3?p++:c===2?m++:c===1?h++:u(),l.length>=1e3){d=!0;break forLoop}l.push(new k(t,e+1,t,i+1))}}while(f)}return{ranges:l,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:h}}static computeUnicodeHighlightReason(e,t){let n=new Di(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),a=it.getLocales().filter(e=>!it.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function Ei(e,t){return`[${Ue(e.map(e=>String.fromCodePoint(e)).join(``))}]`}var Di=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=it.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return`allNonBasicAscii`;let e=new Set;if(this.options.invisibleCharacters)for(let t of at.codePoints)Oi(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(let e of t){let t=e.codePointAt(0),n=nt(e);r||=n,!n&&!this.ambiguousCharacters.isAmbiguous(t)&&!at.isInvisibleCharacter(t)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!Oi(e)&&at.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function Oi(e){return e===` `||e===`
8
- `||e===` `}var ki=class{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}},Ai=class{constructor(e,t){this.lineRangeMapping=e,this.changes=t}};function ji(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*Mi(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function Ni(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Pi(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Fi(e,t){for(let n of t)e.push(n)}var Ii;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ii||={});function Li(e,t){return(n,r)=>t(e(n),e(r))}const Ri=(e,t)=>e-t;function zi(e){return(t,n)=>-e(t,n)}(class e{static{this.empty=new e(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Ii.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}});var N=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{let a=Math.min(t.start,n[r].start),o=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new e(a,o))}}static tryCreate(t,n){if(!(t>n))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new l(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new e(n,r)}intersectionLength(e){let t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,n-t)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}intersectsOrTouches(e){return Math.max(this.start,e.start)<=Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new l(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new l(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new l(`Invalid join: ${this.toString()} and ${t.toString()}`);return new e(this.start,t.endExclusive)}withMargin(t,n){return n===void 0&&(n=t),new e(this.start-t,this.endExclusive+n)}};function Bi(e,t){let n=Vi(e,t);return n===-1?void 0:e[n]}function Vi(e,t,n=0,r=e.length){let i=n,a=r;for(;i<a;){let n=Math.floor((i+a)/2);t(e[n])?i=n+1:a=n}return i-1}function Hi(e,t){let n=Ui(e,t);return n===e.length?void 0:e[n]}function Ui(e,t,n=0,r=e.length){let i=n,a=r;for(;i<a;){let n=Math.floor((i+a)/2);t(e[n])?a=n:i=n+1}return i}var Wi=class e{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let e of this._array)if(this._prevFindLastPredicate(e)&&!t(e))throw Error(`MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.`)}this._prevFindLastPredicate=t}let n=Vi(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}},Gi=class e{static ofLength(t,n){return new e(t,t+n)}static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static{this.compareByStart=Li(e=>e.startLineNumber,Ri)}static joinMany(e){if(e.length===0)return[];let t=new Ki(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new Ki(e[n].slice()));return t.ranges}static join(t){if(t.length===0)throw new l(`lineRanges cannot be empty`);let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let e=1;e<t.length;e++)n=Math.min(n,t[e].startLineNumber),r=Math.max(r,t[e].endLineNumberExclusive);return new e(n,r)}static deserialize(t){return new e(t[0],t[1])}constructor(e,t){if(e>t)throw new l(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new e(n,r)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new k(this.startLineNumber,1,this.endLineNumberExclusive-1,2**53-1)}toExclusiveRange(){return new k(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){let t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new N(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(t,n){return new e(this.startLineNumber-t,this.endLineNumberExclusive+n)}},Ki=class e{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;let t=Ui(this._normalizedRanges,t=>t.endLineNumberExclusive>=e.startLineNumber),n=Vi(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){let n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{let r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){let t=Bi(this._normalizedRanges,t=>t.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){let t=Bi(this._normalizedRanges,t=>t.startLineNumber<e.endLineNumberExclusive);return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,a=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let e=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){let n=this._normalizedRanges[r],a=t._normalizedRanges[i];n.startLineNumber<a.startLineNumber?(e=n,r++):(e=a,i++)}else r<this._normalizedRanges.length?(e=this._normalizedRanges[r],r++):(e=t._normalizedRanges[i],i++);a===null?a=e:a.endLineNumberExclusive>=e.startLineNumber?a=new Gi(a.startLineNumber,Math.max(a.endLineNumberExclusive,e.endLineNumberExclusive)):(n.push(a),a=e)}return a!==null&&n.push(a),new e(n)}subtractFrom(t){let n=Ui(this._normalizedRanges,e=>e.endLineNumberExclusive>=t.startLineNumber),r=Vi(this._normalizedRanges,e=>e.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],a=t.startLineNumber;for(let e=n;e<r;e++){let t=this._normalizedRanges[e];t.startLineNumber>a&&i.push(new Gi(a,t.startLineNumber)),a=t.endLineNumberExclusive}return a<t.endLineNumberExclusive&&i.push(new Gi(a,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(`, `)}getIntersection(t){let n=[],r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let e=this._normalizedRanges[r],a=t._normalizedRanges[i],o=e.intersect(a);o&&!o.isEmpty&&n.push(o),e.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new e(n)}getWithDelta(t){return new e(this._normalizedRanges.map(e=>e.delta(t)))}},qi=class e{static{this.zero=new e(0,0)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let e of t)e===`
9
- `?(n++,r=0):r++;return new e(n,r)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount===e.lineCount?this.columnCount>=e.columnCount:this.lineCount>e.lineCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(e){return this.lineCount===0?new k(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new k(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new k(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Gi.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new Pt(e.lineNumber,e.column+this.columnCount):new Pt(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}},Ji=class{getOffsetRange(e){return new N(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return k.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Yi.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Yi.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){let t=e.replacements.map(e=>this.getTextReplacement(e));return new Yi.deps.TextEdit(t)}},Yi=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw Error(`Dependencies not set. Call _setDependencies first.`);return this._deps}};function Xi(e){Yi._deps=e}var Zi=class extends Ji{constructor(e){super(),this.text=e}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let e=0;e<this.text.length;e++)this.text.charAt(e)===`
10
- `&&(this._lineStartOffsetByLineIdx.push(e+1),e>0&&this.text.charAt(e-1)===`\r`?this._lineEndOffsetByLineIdx.push(e-1):this._lineEndOffsetByLineIdx.push(e));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(e){let t=this._validatePosition(e);return this.lineStartOffsetByLineIdx[t.lineNumber-1]+t.column-1}_validatePosition(e){if(e.lineNumber<1)return new Pt(1,1);let t=this.textLength.lineCount+1;if(e.lineNumber>t)return new Pt(t,this.getLineLength(t)+1);if(e.column<1)return new Pt(e.lineNumber,1);let n=this.getLineLength(e.lineNumber);return e.column-1>n?new Pt(e.lineNumber,n+1):e}getPosition(e){let t=Vi(this.lineStartOffsetByLineIdx,t=>t<=e);return new Pt(t+1,e-this.lineStartOffsetByLineIdx[t]+1)}get textLength(){let e=this.lineStartOffsetByLineIdx.length-1;return new Yi.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}},Qi=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Pt(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new k(e,1,e,2**53-1)).length}getTransformer(){return this._transformer||=new Zi(this.getValue()),this._transformer}getLineAt(e){return this.getValueOfRange(new k(e,1,e,2**53-1))}},$i=class extends Qi{constructor(e,t){d(t>=1),super(),this._getLineContent=e,this._lineCount=t}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let t=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let n=e.startLineNumber+1;n<e.endLineNumber;n++)t+=`
11
- `+this._getLineContent(n);return t+=`
12
- `+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),t}getLineLength(e){return this._getLineContent(e).length}get length(){let e=this._getLineContent(this._lineCount);return new qi(this._lineCount-1,e.length)}},ea=class extends $i{constructor(e){super(t=>e[t-1],e.length)}},ta=class extends Qi{constructor(e){super(),this.value=e,this._t=new Zi(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}},na=class e{static fromStringEdit(t,n){let r=t.replacements.map(e=>ra.fromStringReplacement(e,n));return new e(r)}static fromParallelReplacementsUnsorted(t){let n=t.slice().sort(Li(e=>e.range,k.compareRangesUsingStarts));return new e(n)}constructor(e){this.replacements=e,f(()=>p(e,(e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))}mapPosition(e){let t=0,n=0,r=0;for(let i of this.replacements){let a=i.range.getStartPosition();if(e.isBeforeOrEqual(a))break;let o=i.range.getEndPosition(),s=qi.ofText(i.text);if(e.isBefore(o)){let e=new Pt(a.lineNumber+t,a.column+(a.lineNumber+t===n?r:0));return ia(e,s.addToPosition(e))}a.lineNumber+t!==n&&(r=0),t+=s.lineCount-(i.range.endLineNumber-i.range.startLineNumber),s.lineCount===0?o.lineNumber===a.lineNumber?r+=s.columnCount-(o.column-a.column):r+=s.columnCount-(o.column-1):r=s.columnCount,n=o.lineNumber+t}return new Pt(e.lineNumber+t,e.column+(e.lineNumber+t===n?r:0))}mapRange(e){function t(e){return e instanceof Pt?e:e.getStartPosition()}function n(e){return e instanceof Pt?e:e.getEndPosition()}return ia(t(this.mapPosition(e.getStartPosition())),n(this.mapPosition(e.getEndPosition())))}apply(e){let t=``,n=new Pt(1,1);for(let r of this.replacements){let i=r.range,a=i.getStartPosition(),o=i.getEndPosition(),s=ia(n,a);s.isEmpty()||(t+=e.getValueOfRange(s)),t+=r.text,n=o}let r=ia(n,e.endPositionExclusive);return r.isEmpty()||(t+=e.getValueOfRange(r)),t}applyToString(e){let t=new ta(e);return this.apply(t)}getNewRanges(){let e=[],t=0,n=0,r=0;for(let i of this.replacements){let a=qi.ofText(i.text),o=Pt.lift({lineNumber:i.range.startLineNumber+n,column:i.range.startColumn+(i.range.startLineNumber===t?r:0)}),s=a.createRange(o);e.push(s),n=s.endLineNumber-i.range.endLineNumber,r=s.endColumn-i.range.endColumn,t=i.range.endLineNumber}return e}toReplacement(e){if(this.replacements.length===0)throw new l;if(this.replacements.length===1)return this.replacements[0];let t=this.replacements[0].range.getStartPosition(),n=this.replacements[this.replacements.length-1].range.getEndPosition(),r=``;for(let t=0;t<this.replacements.length;t++){let n=this.replacements[t];if(r+=n.text,t<this.replacements.length-1){let i=this.replacements[t+1],a=k.fromPositions(n.range.getEndPosition(),i.range.getStartPosition()),o=e.getValueOfRange(a);r+=o}}return new ra(k.fromPositions(t,n),r)}toString(e){return e===void 0?this.replacements.map(e=>e.toString()).join(`
13
- `):typeof e==`string`?this.toString(new ta(e)):this.replacements.length===0?``:this.replacements.map(t=>{let n=e.getValueOfRange(t.range),r=k.fromPositions(new Pt(Math.max(1,t.range.startLineNumber-1),1),t.range.getStartPosition()),i=e.getValueOfRange(r);i.length>10&&(i=`...`+i.substring(i.length-10));let a=k.fromPositions(t.range.getEndPosition(),new Pt(t.range.endLineNumber+1,1)),o=e.getValueOfRange(a);o.length>10&&(o=o.substring(0,10)+`...`);let s=n;s.length>10&&(s=s.substring(0,5)+`...`+s.substring(s.length-5));let c=t.text;return c.length>10&&(c=c.substring(0,5)+`...`+c.substring(c.length-5)),s.length===0?`${i}❰${c}❱${o}`:`${i}❰${s}↦${c}❱${o}`}).join(`
14
- `)}},ra=class e{static joinReplacements(t,n){if(t.length===0)throw new l;if(t.length===1)return t[0];let r=t[0].range.getStartPosition(),i=t[t.length-1].range.getEndPosition(),a=``;for(let e=0;e<t.length;e++){let r=t[e];if(a+=r.text,e<t.length-1){let i=t[e+1],o=k.fromPositions(r.range.getEndPosition(),i.range.getStartPosition()),s=n.getValueOfRange(o);a+=s}}return new e(k.fromPositions(r,i),a)}static fromStringReplacement(t,n){return new e(n.getTransformer().getRange(t.replaceRange),t.newText)}static delete(t){return new e(t,``)}constructor(e,t){this.range=e,this.text=t}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,t){return e.range.equalsRange(t.range)&&e.text===t.text}equals(t){return e.equals(this,t)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(t){let n=t.getValueOfRange(this.range).replaceAll(`\r
15
- `,`
16
- `),r=this.text.replaceAll(`\r
17
- `,`
18
- `),i=Ye(n,r),a=qi.ofText(n.substring(0,i)).addToPosition(this.range.getStartPosition()),o=r.substring(i),s=k.fromPositions(a,this.range.getEndPosition());return new e(s,o)}removeCommonSuffix(t){let n=t.getValueOfRange(this.range).replaceAll(`\r
19
- `,`
20
- `),r=this.text.replaceAll(`\r
21
- `,`
22
- `),i=Xe(n,r),a=qi.ofText(n.substring(0,n.length-i)).addToPosition(this.range.getStartPosition()),o=r.substring(0,r.length-i),s=k.fromPositions(this.range.getStartPosition(),a);return new e(s,o)}toString(){let e=this.range.getStartPosition(),t=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${t.lineNumber},${t.column}): "${this.text}"`}};function ia(e,t){if(e.lineNumber===t.lineNumber&&e.column===2**53-1)return k.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new l(`start must be before end`);return new k(e.lineNumber,e.column,t.lineNumber,t.column)}var aa=class e{static inverse(t,n,r){let i=[],a=1,o=1;for(let n of t){let t=new e(new Gi(a,n.original.startLineNumber),new Gi(o,n.modified.startLineNumber));t.modified.isEmpty||i.push(t),a=n.original.endLineNumberExclusive,o=n.modified.endLineNumberExclusive}let s=new e(new Gi(a,n+1),new Gi(o,r+1));return s.modified.isEmpty||i.push(s),i}static clip(t,n,r){let i=[];for(let a of t){let t=a.original.intersect(n),o=a.modified.intersect(r);t&&!t.isEmpty&&o&&!o.isEmpty&&i.push(new e(t,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new la(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(this.modified.startLineNumber!==1||this.original.startLineNumber!==1)throw new l(`not a valid diff`);return new la(new k(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new k(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new la(new k(this.original.startLineNumber-1,2**53-1,this.original.endLineNumberExclusive-1,2**53-1),new k(this.modified.startLineNumber-1,2**53-1,this.modified.endLineNumberExclusive-1,2**53-1))}toRangeMapping2(e,t){if(sa(this.original.endLineNumberExclusive,e)&&sa(this.modified.endLineNumberExclusive,t))return new la(new k(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new k(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new la(k.fromPositions(new Pt(this.original.startLineNumber,1),oa(new Pt(this.original.endLineNumberExclusive-1,2**53-1),e)),k.fromPositions(new Pt(this.modified.startLineNumber,1),oa(new Pt(this.modified.endLineNumberExclusive-1,2**53-1),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new la(k.fromPositions(oa(new Pt(this.original.startLineNumber-1,2**53-1),e),oa(new Pt(this.original.endLineNumberExclusive-1,2**53-1),e)),k.fromPositions(oa(new Pt(this.modified.startLineNumber-1,2**53-1),t),oa(new Pt(this.modified.endLineNumberExclusive-1,2**53-1),t)));throw new l}};function oa(e,t){if(e.lineNumber<1)return new Pt(1,1);if(e.lineNumber>t.length)return new Pt(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new Pt(e.lineNumber,n.length+1):e}function sa(e,t){return e>=1&&e<=t.length}var ca=class e extends aa{static fromRangeMappings(t){let n=Gi.join(t.map(e=>Gi.fromRangeInclusive(e.originalRange))),r=Gi.join(t.map(e=>Gi.fromRangeInclusive(e.modifiedRange)));return new e(n,r,t)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new e(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},la=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((t,r)=>new e(t.range,n[r]))}static assertSorted(e){for(let t=1;t<e.length;t++){let n=e[t-1],r=e[t];if(!(n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new l(`Range mappings must be sorted`)}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(e){let t=e.getValueOfRange(this.modifiedRange);return new ra(this.originalRange,t)}};function ua(e,t,n,r=!1){let i=[];for(let r of Mi(e.map(e=>da(e,t,n)),(e,t)=>e.original.intersectsOrTouches(t.original)||e.modified.intersectsOrTouches(t.modified))){let e=r[0],t=r[r.length-1];i.push(new ca(e.original.join(t.original),e.modified.join(t.modified),r.map(e=>e.innerChanges[0])))}return f(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:p(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),i}function da(e,t,n){let r=0,i=0;return e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1),new ca(new Gi(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),new Gi(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i),[e])}var fa=class{computeDiff(e,t,n){let r=new ya(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[],a=null;for(let e of r.changes){let t;t=e.originalEndLineNumber===0?new Gi(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new Gi(e.originalStartLineNumber,e.originalEndLineNumber+1);let n;n=e.modifiedEndLineNumber===0?new Gi(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new Gi(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new ca(t,n,e.charChanges?.map(e=>new la(new k(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new k(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===r.modified.startLineNumber||a.original.endLineNumberExclusive===r.original.startLineNumber)&&(r=new ca(a.original.join(r.original),a.modified.join(r.modified),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),i.pop()),i.push(r),a=r}return f(()=>p(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)),new ki(i,[],r.quitEarly)}};function pa(e,t,n,r){return new Nt(e,t,n).ComputeDiff(r)}var ma=class{constructor(e){let t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=ba(e[r],1),n[r]=xa(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){let e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){let r=[],i=[],a=[],o=0;for(let s=t;s<=n;s++){let t=this.lines[s],c=e?this._startColumns[s]:1,l=e?this._endColumns[s]:t.length+1;for(let e=c;e<l;e++)r[o]=t.charCodeAt(e-1),i[o]=s+1,a[o]=e,o++;!e&&s<n&&(r[o]=10,i[o]=s+1,a[o]=t.length+1,o++)}return new ha(r,i,a)}},ha=class{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return`[`+this._charCodes.map((e,t)=>(e===10?`\\n`:String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(`, `)+`]`}_assertIndex(e,t){if(e<0||e>=t.length)throw Error(`Illegal index`)}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},ga=class e{constructor(e,t,n,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),a=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),s=n.getEndColumn(t.originalStart+t.originalLength-1),c=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),u=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,a,o,s,c,l,u,d)}};function _a(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r<i;r++){let i=e[r],a=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}var va=class e{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(t,n,r,i,a,o,s){let c,l,u,d,f;if(n.originalLength===0?(c=r.getStartLineNumber(n.originalStart)-1,l=0):(c=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(u=i.getStartLineNumber(n.modifiedStart)-1,d=0):(u=i.getStartLineNumber(n.modifiedStart),d=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){let e=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),o=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(e.getElements().length>0&&o.getElements().length>0){let t=pa(e,o,a,!0).changes;s&&(t=_a(t)),f=[];for(let n=0,r=t.length;n<r;n++)f.push(ga.createFromDiffChange(t[n],e,o))}}return new e(c,l,u,d,f)}},ya=class{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new ma(e),this.modified=new ma(t),this.continueLineDiff=Sa(n.maxComputationTime),this.continueCharDiff=Sa(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let e=pa(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let n=0,r=t.length;n<r;n++)e.push(va.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}let r=[],i=0,a=0;for(let e=-1,n=t.length;e<n;e++){let o=e+1<n?t[e+1]:null,s=o?o.originalStart:this.originalLines.length,c=o?o.modifiedStart:this.modifiedLines.length;for(;i<s&&a<c;){let e=this.originalLines[i],t=this.modifiedLines[a];if(e!==t){{let n=ba(e,1),o=ba(t,1);for(;n>1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,a+1,1,o)}{let n=xa(e,1),o=xa(t,1),s=e.length+1,c=t.length+1;for(;n<s&&o<c&&e.charCodeAt(n-1)===e.charCodeAt(o-1);)n++,o++;(n<s||o<c)&&this._pushTrimWhitespaceCharChange(r,i+1,n,s,a+1,o,c)}}i++,a++}o&&(r.push(va.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=o.originalLength,a+=o.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,a,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,a,o))return;let s;this.shouldComputeCharChanges&&(s=[new ga(t,n,t,r,i,a,i,o)]),e.push(new va(t,t,i,i,s))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,a,o){let s=e.length;if(s===0)return!1;let c=e[s-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===t&&c.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ga(t,n,t,r,i,a,i,o)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===i&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ga(t,n,t,r,i,a,i,o)),!0)}};function ba(e,t){let n=Ke(e);return n===-1?t:n+1}function xa(e,t){let n=qe(e);return n===-1?t:n+2}function Sa(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var Ca=class e{static trivial(t,n){return new e([new wa(N.ofLength(t.length),N.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new e([new wa(N.ofLength(t.length),N.ofLength(n.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}},wa=class e{static invert(t,n){let r=[];return Ni(t,(t,i)=>{r.push(e.fromOffsetPairs(t?t.getEndExclusives():Ta.zero,i?i.getStarts():new Ta(n,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new N(t.offset1,n.offset1),new N(t.offset2,n.offset2))}static assertSorted(e){let t;for(let n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new l(`Sequence diffs must be sorted`);t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new Ta(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Ta(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Ta=class e{static{this.zero=new e(0,0)}static{this.max=new e(2**53-1,2**53-1)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}},Ea=class e{static{this.instance=new e}isValid(){return!0}},Da=class{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new l(`timeout must be positive`)}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}},Oa=class{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}};function ka(e){return e===32||e===9}var Aa=class e{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return t===void 0&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let r=t.startLineNumber-1;r<t.endLineNumberExclusive-1;r++){let t=n[r];for(let n=0;n<t.length;n++){i++;let r=t[n],a=e.getKey(r);this.histogram[a]=(this.histogram[a]||0)+1}i++;let a=e.getKey(`
23
- `);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0,n=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<n;r++)t+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-t/(this.totalCount+e.totalCount)}},ja=class{compute(e,t,n=Ea.instance,r){if(e.length===0||t.length===0)return Ca.trivial(e,t);let i=new Oa(e.length,t.length),a=new Oa(e.length,t.length),o=new Oa(e.length,t.length);for(let s=0;s<e.length;s++)for(let c=0;c<t.length;c++){if(!n.isValid())return Ca.trivialTimedOut(e,t);let l=s===0?0:i.get(s-1,c),u=c===0?0:i.get(s,c-1),d;e.getElement(s)===t.getElement(c)?(d=s===0||c===0?0:i.get(s-1,c-1),s>0&&c>0&&a.get(s-1,c-1)===3&&(d+=o.get(s-1,c-1)),d+=r?r(s,c):1):d=-1;let f=Math.max(l,u,d);if(f===d){let e=s>0&&c>0?o.get(s-1,c-1):0;o.set(s,c,e+1),a.set(s,c,3)}else f===l?(o.set(s,c,0),a.set(s,c,1)):f===u&&(o.set(s,c,0),a.set(s,c,2));i.set(s,c,f)}let s=[],c=e.length,l=t.length;function u(e,t){(e+1!==c||t+1!==l)&&s.push(new wa(new N(e+1,c),new N(t+1,l))),c=e,l=t}let d=e.length-1,f=t.length-1;for(;d>=0&&f>=0;)a.get(d,f)===3?(u(d,f),d--,f--):a.get(d,f)===1?d--:f--;return u(-1,-1),s.reverse(),new Ca(s,!1)}},Ma=class{compute(e,t,n=Ea.instance){if(e.length===0||t.length===0)return Ca.trivial(e,t);let r=e,i=t;function a(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0,s=new Pa;s.set(0,a(0,0));let c=new Fa;c.set(0,s.get(0)===0?null:new Na(null,0,0,s.get(0)));let l=0;loop:for(;;){if(o++,!n.isValid())return Ca.trivialTimedOut(r,i);let e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(l=e;l<=t;l+=2){let n=l===t?-1:s.get(l+1),o=l===e?-1:s.get(l-1)+1,u=Math.min(Math.max(n,o),r.length),d=u-l;if(u>r.length||d>i.length)continue;let f=a(u,d);s.set(l,f);let p=u===n?c.get(l+1):c.get(l-1);if(c.set(l,f===u?p:new Na(p,u,d,f-u)),s.get(l)===r.length&&s.get(l)-l===i.length)break loop}}let u=c.get(l),d=[],f=r.length,p=i.length;for(;;){let e=u?u.x+u.length:0,t=u?u.y+u.length:0;if((e!==f||t!==p)&&d.push(new wa(new N(e,f),new N(t,p))),!u)break;f=u.x,p=u.y,u=u.prev}return d.reverse(),new Ca(d,!1)}},Na=class{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}},Pa=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[e]=t}}},Fa=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}},Ia=class{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let r=e[t-1],i=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,r=r.substring(i)),this.lineStartOffsets.push(i);let a=0;if(!n){let e=r.trimStart();a=r.length-e.length,r=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(a);let o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-a,r.length):r.length;for(let e=0;e<o;e++)this.elements.push(r.charCodeAt(e));t<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new N(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(e=>String.fromCharCode(e)).join(``)}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=Va(e>0?this.elements[e-1]:-1),n=Va(e<this.elements.length?this.elements[e]:-1);if(t===7&&n===8)return 0;if(t===8)return 150;let r=0;return t!==n&&(r+=10,t===0&&n===1&&(r+=1)),r+=Ba(t),r+=Ba(n),r}translateOffset(e,t=`right`){let n=Vi(this.firstElementOffsetByLineIdx,t=>t<=e),r=e-this.firstElementOffsetByLineIdx[n];return new Pt(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(r===0&&t===`left`?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){let t=this.translateOffset(e.start,`right`),n=this.translateOffset(e.endExclusive,`left`);return n.isBefore(t)?k.fromPositions(n,n):k.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!La(this.elements[e]))return;let t=e;for(;t>0&&La(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&La(this.elements[n]);)n++;return new N(t,n)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!La(this.elements[e]))return;let t=e;for(;t>0&&La(this.elements[t-1])&&!Ra(this.elements[t]);)t--;let n=e;for(;n<this.elements.length&&La(this.elements[n])&&!Ra(this.elements[n]);)n++;return new N(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){return new N(Bi(this.firstElementOffsetByLineIdx,t=>t<=e.start)??0,Hi(this.firstElementOffsetByLineIdx,t=>e.endExclusive<=t)??this.elements.length)}};function La(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function Ra(e){return e>=65&&e<=90}const za={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ba(e){return za[e]}function Va(e){return e===10?8:e===13?7:ka(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ha(e,t,n,r,i,a){let{moves:o,excludedChanges:s}=Wa(e,t,n,a);if(!a.isValid())return[];let c=Ga(e.filter(e=>!s.has(e)),r,i,t,n,a);return Fi(o,c),o=qa(o),o=o.filter(e=>{let n=e.original.toOffsetRange().slice(t).map(e=>e.trim());return n.join(`
24
- `).length>=15&&Ua(n,e=>e.length>=2)>=2}),o=Ja(e,o),o}function Ua(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function Wa(e,t,n,r){let i=[],a=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new Aa(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new Aa(e.modified,n,e))),s=new Set;for(let e of a){let t=-1,n;for(let r of o){let i=e.computeSimilarity(r);i>t&&(t=i,n=r)}if(t>.9&&n&&(o.delete(n),i.push(new aa(e.range,n.range)),s.add(e.source),s.add(n.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}function Ga(e,t,n,r,i,a){let o=[],s=new li;for(let n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){let n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new Gi(e,e+3)})}let c=[];e.sort(Li(e=>e.modified.startLineNumber,Ri));for(let t of e){let e=[];for(let r=t.modified.startLineNumber;r<t.modified.endLineNumberExclusive-2;r++){let t=`${n[r-1]}:${n[r+1-1]}:${n[r+2-1]}`,i=new Gi(r,r+3),a=[];s.forEach(t,({range:t})=>{for(let n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive){n.originalLineRange=new Gi(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new Gi(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),a.push(n);return}let n={modifiedLineRange:i,originalLineRange:t};c.push(n),a.push(n)}),e=a}if(!a.isValid())return[]}c.sort(zi(Li(e=>e.modifiedLineRange.length,Ri)));let l=new Ki,u=new Ki;for(let e of c){let t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=l.subtractFrom(e.modifiedLineRange),r=u.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(let e of i.ranges){if(e.length<3)continue;let n=e,r=e.delta(-t);o.push(new aa(r,n)),l.addRange(n),u.addRange(r)}}o.sort(Li(e=>e.original.startLineNumber,Ri));let d=new Wi(e);for(let t=0;t<o.length;t++){let n=o[t],s=d.findLastMonotonous(e=>e.original.startLineNumber<=n.original.startLineNumber),c=Bi(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),f=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-c.modified.startLineNumber),p=d.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive),m=Bi(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive),h=Math.max(p.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive),g;for(g=0;g<f;g++){let e=n.original.startLineNumber-g-1,t=n.modified.startLineNumber-g-1;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Ka(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new Gi(n.original.startLineNumber-g,n.original.startLineNumber)),l.addRange(new Gi(n.modified.startLineNumber-g,n.modified.startLineNumber)));let _;for(_=0;_<h;_++){let e=n.original.endLineNumberExclusive+_,t=n.modified.endLineNumberExclusive+_;if(e>r.length||t>i.length||l.contains(t)||u.contains(e)||!Ka(r[e-1],i[t-1],a))break}_>0&&(u.addRange(new Gi(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+_)),l.addRange(new Gi(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+_))),(g>0||_>0)&&(o[t]=new aa(new Gi(n.original.startLineNumber-g,n.original.endLineNumberExclusive+_),new Gi(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+_)))}return o}function Ka(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new Ma().compute(new Ia([e],new k(1,1,1,e.length),!1),new Ia([t],new k(1,1,1,t.length),!1),n),i=0,a=wa.invert(r.diffs,e.length);for(let t of a)t.seq1Range.forEach(t=>{ka(e.charCodeAt(t))||i++});function o(t){let n=0;for(let r=0;r<e.length;r++)ka(t.charCodeAt(r))||n++;return n}let s=o(e.length>t.length?e:t);return i/s>.6&&s>10}function qa(e){if(e.length===0)return e;e.sort(Li(e=>e.original.startLineNumber,Ri));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],a=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(a>=0&&o>=0&&a+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Ja(e,t){let n=new Wi(e);return t=t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumber<t.original.endLineNumberExclusive)||new aa(new Gi(1,1),new Gi(1,1)))!==Bi(e,e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),t}function Ya(e,t,n){let r=n;return r=Xa(e,t,r),r=Xa(e,t,r),r=Za(e,t,r),r}function Xa(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let i=1;i<n.length;i++){let a=r[r.length-1],o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let n=o.seq1Range.start-a.seq1Range.endExclusive,i;for(i=1;i<=n&&e.getElement(o.seq1Range.start-i)===e.getElement(o.seq1Range.endExclusive-i)&&t.getElement(o.seq2Range.start-i)===t.getElement(o.seq2Range.endExclusive-i);i++);if(i--,i===n){r[r.length-1]=new wa(new N(a.seq1Range.start,o.seq1Range.endExclusive-n),new N(a.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-i)}r.push(o)}let i=[];for(let n=0;n<r.length-1;n++){let a=r[n+1],o=r[n];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){let i=a.seq1Range.start-o.seq1Range.endExclusive,s;for(s=0;s<i&&!(!e.isStronglyEqual(o.seq1Range.start+s,o.seq1Range.endExclusive+s)||!t.isStronglyEqual(o.seq2Range.start+s,o.seq2Range.endExclusive+s));s++);if(s===i){r[n+1]=new wa(new N(o.seq1Range.start+i,a.seq1Range.endExclusive),new N(o.seq2Range.start+i,a.seq2Range.endExclusive));continue}s>0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Za(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,a=n[r],o=r+1<n.length?n[r+1]:void 0,s=new N(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),c=new N(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);a.seq1Range.isEmpty?n[r]=Qa(a,e,t,s,c):a.seq2Range.isEmpty&&(n[r]=Qa(a.swap(),t,e,c,s).swap())}return n}function Qa(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let s=0,c=-1;for(let r=-a;r<=o;r++){let i=e.seq2Range.start+r,a=e.seq2Range.endExclusive+r,o=e.seq1Range.start+r,l=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(a);l>c&&(c=l,s=r)}return e.delta(s)}function $a(e,t,n){let r=[];for(let e of n){let t=r[r.length-1];if(!t){r.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?r[r.length-1]=new wa(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}function eo(e,t,n,r,i=!1){let a=wa.invert(n,e.length),o=[],s=new Ta(0,0);function c(n,c){if(n.offset1<s.offset1||n.offset2<s.offset2)return;let l=r(e,n.offset1),u=r(t,n.offset2);if(!l||!u)return;let d=new wa(l,u),f=d.intersect(c),p=f.seq1Range.length,m=f.seq2Range.length;for(;a.length>0;){let n=a[0];if(!(n.seq1Range.intersects(d.seq1Range)||n.seq2Range.intersects(d.seq2Range)))break;let i=new wa(r(e,n.seq1Range.start),r(t,n.seq2Range.start)),o=i.intersect(n);if(p+=o.seq1Range.length,m+=o.seq2Range.length,d=d.join(i),d.seq1Range.endExclusive>=n.seq1Range.endExclusive)a.shift();else break}(i&&p+m<d.seq1Range.length+d.seq2Range.length||p+m<(d.seq1Range.length+d.seq2Range.length)*2/3)&&o.push(d),s=d.getEndExclusives()}for(;a.length>0;){let e=a.shift();e.seq1Range.isEmpty||(c(e.getStarts(),e),c(e.getEndExclusives().delta(-1),e))}return to(n,o)}function to(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],a;a=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function no(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let t=[r[0]];for(let n=1;n<r.length;n++){let i=r[n],o=t[t.length-1];function s(t,n){let r=new N(o.seq1Range.endExclusive,i.seq1Range.start);return e.getText(r).replace(/\s/g,``).length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}s(o,i)?(a=!0,t[t.length-1]=t[t.length-1].join(i)):t.push(i)}r=t}while(i++<10&&a);return r}function ro(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let n=[r[0]];for(let i=1;i<r.length;i++){let o=r[i],s=n[n.length-1];function c(n,r){let i=new N(s.seq1Range.endExclusive,o.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;let a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;let c=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),h=r.seq2Range.length;function g(e){return Math.min(e,130)}return(g(c*40+l)**1.5+g(u*40+d)**1.5)**1.5+(g(f*40+p)**1.5+g(m*40+h)**1.5)**1.5>(130**1.5)**1.5*1.3}c(s,o)?(a=!0,n[n.length-1]=n[n.length-1].join(o)):n.push(o)}r=n}while(i++<10&&a);let o=[];return Pi(r,(t,n,r)=>{let i=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}let s=e.extendToFullLines(n.seq1Range),c=e.getText(new N(s.start,n.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));let l=e.getText(new N(n.seq1Range.endExclusive,s.endExclusive));a(l)&&(i=i.deltaEnd(l.length));let u=wa.fromOffsetPairs(t?t.getEndExclusives():Ta.zero,r?r.getStarts():Ta.max),d=i.intersect(u);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)}),o}var io=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((e===0?0:ao(this.lines[e-1]))+(e===this.lines.length?0:ao(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
25
- `)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function ao(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var oo=class{constructor(){this.dynamicProgrammingDiffing=new ja,this.myersDiffingAlgorithm=new Ma}computeDiff(e,t,n){if(e.length<=1&&ji(e,t,(e,t)=>e===t))return new ki([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new ki([new ca(new Gi(1,e.length+1),new Gi(1,t.length+1),[new la(new k(1,1,e.length,e[e.length-1].length+1),new k(1,1,t.length,t[t.length-1].length+1))])],[],!1);let r=n.maxComputationTimeMs===0?Ea.instance:new Da(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,a=new Map;function o(e){let t=a.get(e);return t===void 0&&(t=a.size,a.set(e,t)),t}let s=e.map(e=>o(e.trim())),c=t.map(e=>o(e.trim())),l=new io(s,e),u=new io(c,t),d=l.length+u.length<1700?this.dynamicProgrammingDiffing.compute(l,u,r,(n,r)=>e[n]===t[r]?t[r].length===0?.1:1+Math.log(1+t[r].length):.99):this.myersDiffingAlgorithm.compute(l,u,r),p=d.diffs,m=d.hitTimeout;p=Ya(l,u,p),p=no(l,u,p);let h=[],g=a=>{if(i)for(let o=0;o<a;o++){let a=_+o,s=v+o;if(e[a]!==t[s]){let o=this.refineDiff(e,t,new wa(new N(a,a+1),new N(s,s+1)),r,i,n);for(let e of o.mappings)h.push(e);o.hitTimeout&&(m=!0)}}},_=0,v=0;for(let a of p){f(()=>a.seq1Range.start-_===a.seq2Range.start-v),g(a.seq1Range.start-_),_=a.seq1Range.endExclusive,v=a.seq2Range.endExclusive;let o=this.refineDiff(e,t,a,r,i,n);o.hitTimeout&&(m=!0);for(let e of o.mappings)h.push(e)}g(e.length-_);let y=ua(h,new ea(e),new ea(t)),b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,s,c,r,i,n)),f(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(let i of y){if(!i.innerChanges)return!1;for(let r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0}),new ki(y,b,m)}computeMoves(e,t,n,r,i,a,o,s){return Ha(e,t,n,r,i,a).map(e=>new Ai(e,ua(this.refineDiff(t,n,new wa(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o,s).mappings,new ea(t),new ea(n),!0)))}refineDiff(e,t,n,r,i,a){let o=so(n).toRangeMapping2(e,t),s=new Ia(e,o.originalRange,i),c=new Ia(t,o.modifiedRange,i),l=s.length+c.length<500?this.dynamicProgrammingDiffing.compute(s,c,r):this.myersDiffingAlgorithm.compute(s,c,r),u=l.diffs;return u=Ya(s,c,u),u=eo(s,c,u,(e,t)=>e.findWordContaining(t)),a.extendToSubwords&&(u=eo(s,c,u,(e,t)=>e.findSubWordContaining(t),!0)),u=$a(s,c,u),u=ro(s,c,u),{mappings:u.map(e=>new la(s.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:l.hitTimeout}}};function so(e){return new aa(new Gi(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new Gi(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}var co;(function(e){e.inMemory=`inmemory`,e.vscode=`vscode`,e.internal=`private`,e.walkThrough=`walkThrough`,e.walkThroughSnippet=`walkThroughSnippet`,e.http=`http`,e.https=`https`,e.file=`file`,e.mailto=`mailto`,e.untitled=`untitled`,e.data=`data`,e.command=`command`,e.vscodeRemote=`vscode-remote`,e.vscodeRemoteResource=`vscode-remote-resource`,e.vscodeManagedRemoteResource=`vscode-managed-remote-resource`,e.vscodeUserData=`vscode-userdata`,e.vscodeCustomEditor=`vscode-custom-editor`,e.vscodeNotebookCell=`vscode-notebook-cell`,e.vscodeNotebookCellMetadata=`vscode-notebook-cell-metadata`,e.vscodeNotebookCellMetadataDiff=`vscode-notebook-cell-metadata-diff`,e.vscodeNotebookCellOutput=`vscode-notebook-cell-output`,e.vscodeNotebookCellOutputDiff=`vscode-notebook-cell-output-diff`,e.vscodeNotebookMetadata=`vscode-notebook-metadata`,e.vscodeInteractiveInput=`vscode-interactive-input`,e.vscodeSettings=`vscode-settings`,e.vscodeWorkspaceTrust=`vscode-workspace-trust`,e.vscodeTerminal=`vscode-terminal`,e.vscodeImageCarousel=`vscode-image-carousel`,e.vscodeChatCodeBlock=`vscode-chat-code-block`,e.vscodeChatCodeCompareBlock=`vscode-chat-code-compare-block`,e.vscodeChatEditor=`vscode-chat-editor`,e.vscodeChatInput=`chatSessionInput`,e.vscodeLocalChatSession=`vscode-chat-session`,e.webviewPanel=`webview-panel`,e.vscodeWebview=`vscode-webview`,e.vscodeBrowser=`vscode-browser`,e.extension=`extension`,e.vscodeFileResource=`vscode-file`,e.tmp=`tmp`,e.vsls=`vsls`,e.vscodeSourceControl=`vscode-scm`,e.commentsInput=`comment`,e.codeSetting=`code-setting`,e.outputChannel=`output`,e.accessibleView=`accessible-view`,e.chatEditingSnapshotScheme=`chat-editing-snapshot-text-model`,e.chatEditingModel=`chat-editing-text-model`,e.copilotPr=`copilot-pr`})(co||={});const lo=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema=`http`,this._delegate=null,this._serverRootPath=`/`}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return yn.join(this._serverRootPath,co.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return i(t),e}let t=e.authority,n=this._hosts[t];n&&n.indexOf(`:`)!==-1&&n.indexOf(`[`)===-1&&(n=`[${n}]`);let r=this._ports[t],a=this._connectionTokens[t],o=`path=${encodeURIComponent(e.path)}`;return typeof a==`string`&&(o+=`&tkn=${encodeURIComponent(a)}`),kn.from({scheme:me?this._preferredWebSchema:co.vscodeRemoteResource,authority:`${n}:${r}`,path:this._remoteResourcesPath,query:o})}},uo=new class e{static{this.FALLBACK_AUTHORITY=`vscode-app`}asBrowserUri(e){let t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(t){return t.scheme===co.vscodeRemote?lo.rewrite(t):t.scheme===co.file&&(pe||he===`${co.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`)?t.with({scheme:co.vscodeFileResource,authority:t.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(e){if(kn.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){let t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return kn.joinPath(kn.parse(t,!0),e);let n=bn(t,e);return kn.file(n)}throw Error(`Cannot determine URI for module id!`)}};var fo;(function(e){let t=new Map([[`1`,{"Cross-Origin-Opener-Policy":`same-origin`}],[`2`,{"Cross-Origin-Embedder-Policy":`require-corp`}],[`3`,{"Cross-Origin-Opener-Policy":`same-origin`,"Cross-Origin-Embedder-Policy":`require-corp`}]]);e.CoopAndCoep=Object.freeze(t.get(`3`));let n=`vscode-coi`;function r(e){let r;typeof e==`string`?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:kn.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);let i=r?.get(n);if(i)return t.get(i)}e.getHeadersFromQuery=r;function i(e,t,r){if(!globalThis.crossOriginIsolated)return;let i=t&&r?`3`:r?`2`:`1`;e instanceof URLSearchParams?e.set(n,i):e[n]=i}e.addSearchParam=i})(fo||={});function po(e,t){(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit;let n=`vs/../../node_modules/${`${e}/${t}`}`;return uo.asBrowserUri(n).toString(!0)}var mo=class{constructor(e){this.replacements=e;let t=-1;for(let n of e){if(!(n.replaceRange.start>=t))throw new l(`Edits must be disjoint and sorted. Found ${n} after ${t}`);t=n.replaceRange.endExclusive}}toString(){return`[${this.replacements.map(e=>e.toString()).join(`, `)}]`}normalize(){let e=[],t;for(let n of this.replacements)if(n.getNewLength()!==0||n.replaceRange.length!==0){if(t&&t.replaceRange.endExclusive===n.replaceRange.start){let e=t.tryJoinTouching(n);if(e){t=e;continue}}t&&e.push(t),t=n}return t&&e.push(t),this._createNew(e)}compose(e){let t=this.normalize(),n=e.normalize();if(t.isEmpty())return n;if(n.isEmpty())return t;let r=[...t.replacements],i=[],a=0;for(let e of n.replacements){for(;;){let t=r[0];if(!t||t.replaceRange.start+a+t.getNewLength()>=e.replaceRange.start)break;r.shift(),i.push(t),a+=t.getNewLength()-t.replaceRange.length}let t=a,n,o;for(;;){let t=r[0];if(!t||t.replaceRange.start+a>e.replaceRange.endExclusive)break;n||=t,o=t,r.shift(),a+=t.getNewLength()-t.replaceRange.length}if(!n)i.push(e.delta(-a));else{let s=Math.min(n.replaceRange.start,e.replaceRange.start-t),c=e.replaceRange.start-(n.replaceRange.start+t);if(c>0){let e=n.slice(N.emptyAt(s),new N(0,c));i.push(e)}if(!o)throw new l(`Invariant violation: lastIntersecting is undefined`);let u=o.replaceRange.endExclusive+a-e.replaceRange.endExclusive;if(u>0){let e=o.slice(N.ofStartAndLength(o.replaceRange.endExclusive,0),new N(o.getNewLength()-u,o.getNewLength()));r.unshift(e),a-=e.getNewLength()-e.replaceRange.length}let d=new N(s,e.replaceRange.endExclusive-a),f=e.slice(d,new N(0,e.getNewLength()));i.push(f)}}for(;;){let e=r.shift();if(!e)break;i.push(e)}return this._createNew(i).normalize()}getNewRanges(){let e=[],t=0;for(let n of this.replacements)e.push(N.ofStartAndLength(n.replaceRange.start+t,n.getNewLength())),t+=n.getLengthDelta();return e}isEmpty(){return this.replacements.length===0}applyToOffsetOrUndefined(e){let t=0;for(let n of this.replacements)if(n.replaceRange.start<=e){if(e<n.replaceRange.endExclusive)return;t+=n.getNewLength()-n.replaceRange.length}else break;return e+t}},ho=class{constructor(e){this.replaceRange=e}delta(e){return this.slice(this.replaceRange.delta(e),new N(0,this.getNewLength()))}getLengthDelta(){return this.getNewLength()-this.replaceRange.length}toString(){return`{ ${this.replaceRange.toString()} -> ${this.getNewLength()} }`}get isEmpty(){return this.getNewLength()===0&&this.replaceRange.length===0}getRangeAfterReplace(){return new N(this.replaceRange.start,this.replaceRange.start+this.getNewLength())}},go=class extends mo{apply(e){let t=[],n=0;for(let r of this.replacements)t.push(e.substring(n,r.replaceRange.start)),t.push(r.newText),n=r.replaceRange.endExclusive;return t.push(e.substring(n)),t.join(``)}removeCommonSuffixPrefix(e){let t=[];for(let n of this.replacements){let r=n.removeCommonSuffixPrefix(e);r.isEmpty||t.push(r)}return new vo(t)}},_o=class extends ho{constructor(e,t){super(e),this.newText=t}getNewLength(){return this.newText.length}toString(){return`${this.replaceRange} -> ${JSON.stringify(this.newText)}`}replace(e){return e.substring(0,this.replaceRange.start)+this.newText+e.substring(this.replaceRange.endExclusive)}removeCommonSuffixPrefix(e){let t=e.substring(this.replaceRange.start,this.replaceRange.endExclusive),n=Ye(t,this.newText),r=Math.min(t.length-n,this.newText.length-n,Xe(t,this.newText));return new yo(new N(this.replaceRange.start+n,this.replaceRange.endExclusive-r),this.newText.substring(n,this.newText.length-r))}removeCommonSuffixAndPrefix(e){return this.removeCommonSuffix(e).removeCommonPrefix(e)}removeCommonPrefix(e){let t=Ye(this.replaceRange.substring(e),this.newText);return t===0?this:this.slice(this.replaceRange.deltaStart(t),new N(t,this.newText.length))}removeCommonSuffix(e){let t=Xe(this.replaceRange.substring(e),this.newText);return t===0?this:this.slice(this.replaceRange.deltaEnd(-t),new N(0,this.newText.length-t))}toJson(){return{txt:this.newText,pos:this.replaceRange.start,len:this.replaceRange.length}}},vo=class e extends go{static{this.empty=new e([])}static replace(t,n){return new e([new yo(t,n)])}static compose(t){if(t.length===0)return e.empty;let n=t[0];for(let e=1;e<t.length;e++)n=n.compose(t[e]);return n}constructor(e){super(e)}_createNew(t){return new e(t)}},yo=class e extends _o{static insert(t,n){return new e(N.emptyAt(t),n)}static replace(t,n){return new e(t,n)}equals(e){return this.replaceRange.equals(e.replaceRange)&&this.newText===e.newText}tryJoinTouching(t){return new e(this.replaceRange.joinRightTouching(t.replaceRange),this.newText+t.newText)}slice(t,n){return new e(t,n?n.substring(this.newText):this.newText)}};Xi({StringEdit:vo,StringReplacement:yo,TextReplacement:ra,TextEdit:na,TextLength:qi});let bo,xo,So;function Co(){return bo||=import(`${po(`@vscode/diff`,`dist/index.js`)}`),bo}function wo(e){return e?(So||=Co().then(e=>e.createDiffComputer({useWasm:!0})),So):(xo||=Co().then(e=>e.createDiffComputer({useWasm:!1})),xo)}async function To(e){return new Eo(await wo(e))}var Eo=class{constructor(e){this._computer=e}computeDiff(e,t,n){let r=new ta(e.join(`
26
- `)),i=new ta(t.join(`
27
- `)),a=this._computer.computeDiff(r.value,i.value,{ignoreTrimWhitespace:!0,computeMoves:n.computeMoves,extendToSubwords:n.extendToSubwords}),o=r.getTransformer(),s=i.getTransformer(),c=[],l=0;for(let e of a.edits.replacements){let t=e.range.start+l,n=t+e.newText.length,r=o.getRange(new N(e.range.start,e.range.endExclusive)),i=s.getRange(new N(t,n));c.push(new la(r,i)),l+=e.newText.length-(e.range.endExclusive-e.range.start)}let u=ua(c,r,i),d=[];if(n.computeMoves)for(let e of a.moves){let t=o.getPosition(e.range.original.start),n=o.getPosition(e.range.original.endExclusive),r=s.getPosition(e.range.modified.start),i=s.getPosition(e.range.modified.endExclusive),a=new Gi(t.lineNumber,n.lineNumber),c=new Gi(r.lineNumber,i.lineNumber);d.push(new Ai(new aa(a,c),[]))}return new ki(u,d,a.hitTimeout)}};const Do={getLegacy:()=>new fa,getDefault:()=>new oo,getAdvancedExternal:()=>To(!1),getAdvancedWasm:()=>To(!0)};function Oo(e,t){let n=10**t;return Math.round(e*n)/n}var P=class{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=Oo(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},ko=class e{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Oo(Math.max(Math.min(1,t),0),3),this.l=Oo(Math.max(Math.min(1,n),0),3),this.a=Oo(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=t.a,o=Math.max(n,r,i),s=Math.min(n,r,i),c=0,l=0,u=(s+o)/2,d=o-s;if(d>0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case n:c=(r-i)/d+(r<i?6:0);break;case r:c=(i-n)/d+2;break;case i:c=(n-r)/d+4}c*=60,c=Math.round(c)}return new e(c,l,u,a)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(t){let n=t.h/360,{s:r,l:i,a}=t,o,s,c;if(r===0)o=s=c=i;else{let t=i<.5?i*(1+r):i+r-i*r,a=2*i-t;o=e._hue2rgb(a,t,n+1/3),s=e._hue2rgb(a,t,n),c=e._hue2rgb(a,t,n-1/3)}return new P(Math.round(o*255),Math.round(s*255),Math.round(c*255),a)}},Ao=class e{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Oo(Math.max(Math.min(1,t),0),3),this.v=Oo(Math.max(Math.min(1,n),0),3),this.a=Oo(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=a-Math.min(n,r,i),s=a===0?0:o/a,c;return c=o===0?0:a===n?((r-i)/o%6+6)%6:a===r?(i-n)/o+2:(n-r)/o+4,new e(Math.round(c*60),s,a,t.a)}static toRGBA(e){let{h:t,s:n,v:r,a:i}=e,a=r*n,o=a*(1-Math.abs(t/60%2-1)),s=r-a,[c,l,u]=[0,0,0];return t<60?(c=a,l=o):t<120?(c=o,l=a):t<180?(l=a,u=o):t<240?(l=o,u=a):t<300?(c=o,u=a):t<=360&&(c=a,u=o),c=Math.round((c+s)*255),l=Math.round((l+s)*255),u=Math.round((u+s)*255),new P(c,l,u,i)}},jo=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:ko.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ao.fromRGBA(this.rgba)}constructor(e){if(!e)throw Error(`Color needs a value`);if(e instanceof P)this.rgba=e;else if(e instanceof ko)this._hsla=e,this.rgba=ko.toRGBA(e);else if(e instanceof Ao)this._hsva=e,this.rgba=Ao.toRGBA(e);else throw Error(`Invalid color ctor argument`)}equals(e){return!!e&&P.equals(this.rgba,e.rgba)&&ko.equals(this.hsla,e.hsla)&&Ao.equals(this.hsva,e.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b);return Oo(.2126*t+.7152*n+.0722*r,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(t){return new e(new ko(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new ko(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(n,r,i,a*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new P(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(t,n=.5){let r=Math.min(Math.max(n,0),1),i=this.rgba,a=t.rgba,o=i.r+(a.r-i.r)*r,s=i.g+(a.g-i.g)*r,c=i.b+(a.b-i.b)*r,l=i.a+(a.a-i.a)*r;return new e(new P(o,s,c,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a}=this.rgba;return new e(new P(t.rgba.r-a*(t.rgba.r-n),t.rgba.g-a*(t.rgba.g-r),t.rgba.b-a*(t.rgba.b-i),1))}toString(){return this._toString||=e.Format.CSS.format(this),this._toString}toNumber32Bit(){return this._toNumber32Bit||=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0,this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(r-i)/r,e.darken(n)}static{this.white=new e(new P(255,255,255,1))}static{this.black=new e(new P(0,0,0,1))}static{this.red=new e(new P(255,0,0,1))}static{this.blue=new e(new P(0,0,255,1))}static{this.green=new e(new P(0,255,0,1))}static{this.cyan=new e(new P(0,255,255,1))}static{this.lightgrey=new e(new P(211,211,211,1))}static{this.transparent=new e(new P(0,0,0,0))}};(function(e){(function(t){(function(t){function n(t){return t.rgba.a===1?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}t.formatRGBA=r;function i(t){return t.hsla.a===1?`hsl(${t.hsla.h}, ${Math.round(t.hsla.s*100)}%, ${Math.round(t.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(t)}t.formatHSL=i;function a(e){return`hsla(${e.hsla.h}, ${Math.round(e.hsla.s*100)}%, ${Math.round(e.hsla.l*100)}%, ${e.hsla.a.toFixed(2)})`}t.formatHSLA=a;function o(e){let t=e.toString(16);return t.length===2?t:`0`+t}function s(e){return`#${o(e.rgba.r)}${o(e.rgba.g)}${o(e.rgba.b)}`}t.formatHex=s;function c(t,n=!1){return n&&t.rgba.a===1?e.Format.CSS.formatHex(t):`#${o(t.rgba.r)}${o(t.rgba.g)}${o(t.rgba.b)}${o(Math.round(t.rgba.a*255))}`}t.formatHexA=c;function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}t.format=l;function u(t){if(t===`transparent`)return e.transparent;if(t.startsWith(`#`))return f(t);if(t.startsWith(`rgba(`)){let n=t.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`),parseFloat(n.groups?.a??`0`)))}if(t.startsWith(`rgb(`)){let n=t.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`)))}return d(t)}t.parse=u;function d(t){switch(t){case`aliceblue`:return new e(new P(240,248,255,1));case`antiquewhite`:return new e(new P(250,235,215,1));case`aqua`:return new e(new P(0,255,255,1));case`aquamarine`:return new e(new P(127,255,212,1));case`azure`:return new e(new P(240,255,255,1));case`beige`:return new e(new P(245,245,220,1));case`bisque`:return new e(new P(255,228,196,1));case`black`:return new e(new P(0,0,0,1));case`blanchedalmond`:return new e(new P(255,235,205,1));case`blue`:return new e(new P(0,0,255,1));case`blueviolet`:return new e(new P(138,43,226,1));case`brown`:return new e(new P(165,42,42,1));case`burlywood`:return new e(new P(222,184,135,1));case`cadetblue`:return new e(new P(95,158,160,1));case`chartreuse`:return new e(new P(127,255,0,1));case`chocolate`:return new e(new P(210,105,30,1));case`coral`:return new e(new P(255,127,80,1));case`cornflowerblue`:return new e(new P(100,149,237,1));case`cornsilk`:return new e(new P(255,248,220,1));case`crimson`:return new e(new P(220,20,60,1));case`cyan`:return new e(new P(0,255,255,1));case`darkblue`:return new e(new P(0,0,139,1));case`darkcyan`:return new e(new P(0,139,139,1));case`darkgoldenrod`:return new e(new P(184,134,11,1));case`darkgray`:return new e(new P(169,169,169,1));case`darkgreen`:return new e(new P(0,100,0,1));case`darkgrey`:return new e(new P(169,169,169,1));case`darkkhaki`:return new e(new P(189,183,107,1));case`darkmagenta`:return new e(new P(139,0,139,1));case`darkolivegreen`:return new e(new P(85,107,47,1));case`darkorange`:return new e(new P(255,140,0,1));case`darkorchid`:return new e(new P(153,50,204,1));case`darkred`:return new e(new P(139,0,0,1));case`darksalmon`:return new e(new P(233,150,122,1));case`darkseagreen`:return new e(new P(143,188,143,1));case`darkslateblue`:return new e(new P(72,61,139,1));case`darkslategray`:return new e(new P(47,79,79,1));case`darkslategrey`:return new e(new P(47,79,79,1));case`darkturquoise`:return new e(new P(0,206,209,1));case`darkviolet`:return new e(new P(148,0,211,1));case`deeppink`:return new e(new P(255,20,147,1));case`deepskyblue`:return new e(new P(0,191,255,1));case`dimgray`:return new e(new P(105,105,105,1));case`dimgrey`:return new e(new P(105,105,105,1));case`dodgerblue`:return new e(new P(30,144,255,1));case`firebrick`:return new e(new P(178,34,34,1));case`floralwhite`:return new e(new P(255,250,240,1));case`forestgreen`:return new e(new P(34,139,34,1));case`fuchsia`:return new e(new P(255,0,255,1));case`gainsboro`:return new e(new P(220,220,220,1));case`ghostwhite`:return new e(new P(248,248,255,1));case`gold`:return new e(new P(255,215,0,1));case`goldenrod`:return new e(new P(218,165,32,1));case`gray`:return new e(new P(128,128,128,1));case`green`:return new e(new P(0,128,0,1));case`greenyellow`:return new e(new P(173,255,47,1));case`grey`:return new e(new P(128,128,128,1));case`honeydew`:return new e(new P(240,255,240,1));case`hotpink`:return new e(new P(255,105,180,1));case`indianred`:return new e(new P(205,92,92,1));case`indigo`:return new e(new P(75,0,130,1));case`ivory`:return new e(new P(255,255,240,1));case`khaki`:return new e(new P(240,230,140,1));case`lavender`:return new e(new P(230,230,250,1));case`lavenderblush`:return new e(new P(255,240,245,1));case`lawngreen`:return new e(new P(124,252,0,1));case`lemonchiffon`:return new e(new P(255,250,205,1));case`lightblue`:return new e(new P(173,216,230,1));case`lightcoral`:return new e(new P(240,128,128,1));case`lightcyan`:return new e(new P(224,255,255,1));case`lightgoldenrodyellow`:return new e(new P(250,250,210,1));case`lightgray`:return new e(new P(211,211,211,1));case`lightgreen`:return new e(new P(144,238,144,1));case`lightgrey`:return new e(new P(211,211,211,1));case`lightpink`:return new e(new P(255,182,193,1));case`lightsalmon`:return new e(new P(255,160,122,1));case`lightseagreen`:return new e(new P(32,178,170,1));case`lightskyblue`:return new e(new P(135,206,250,1));case`lightslategray`:return new e(new P(119,136,153,1));case`lightslategrey`:return new e(new P(119,136,153,1));case`lightsteelblue`:return new e(new P(176,196,222,1));case`lightyellow`:return new e(new P(255,255,224,1));case`lime`:return new e(new P(0,255,0,1));case`limegreen`:return new e(new P(50,205,50,1));case`linen`:return new e(new P(250,240,230,1));case`magenta`:return new e(new P(255,0,255,1));case`maroon`:return new e(new P(128,0,0,1));case`mediumaquamarine`:return new e(new P(102,205,170,1));case`mediumblue`:return new e(new P(0,0,205,1));case`mediumorchid`:return new e(new P(186,85,211,1));case`mediumpurple`:return new e(new P(147,112,219,1));case`mediumseagreen`:return new e(new P(60,179,113,1));case`mediumslateblue`:return new e(new P(123,104,238,1));case`mediumspringgreen`:return new e(new P(0,250,154,1));case`mediumturquoise`:return new e(new P(72,209,204,1));case`mediumvioletred`:return new e(new P(199,21,133,1));case`midnightblue`:return new e(new P(25,25,112,1));case`mintcream`:return new e(new P(245,255,250,1));case`mistyrose`:return new e(new P(255,228,225,1));case`moccasin`:return new e(new P(255,228,181,1));case`navajowhite`:return new e(new P(255,222,173,1));case`navy`:return new e(new P(0,0,128,1));case`oldlace`:return new e(new P(253,245,230,1));case`olive`:return new e(new P(128,128,0,1));case`olivedrab`:return new e(new P(107,142,35,1));case`orange`:return new e(new P(255,165,0,1));case`orangered`:return new e(new P(255,69,0,1));case`orchid`:return new e(new P(218,112,214,1));case`palegoldenrod`:return new e(new P(238,232,170,1));case`palegreen`:return new e(new P(152,251,152,1));case`paleturquoise`:return new e(new P(175,238,238,1));case`palevioletred`:return new e(new P(219,112,147,1));case`papayawhip`:return new e(new P(255,239,213,1));case`peachpuff`:return new e(new P(255,218,185,1));case`peru`:return new e(new P(205,133,63,1));case`pink`:return new e(new P(255,192,203,1));case`plum`:return new e(new P(221,160,221,1));case`powderblue`:return new e(new P(176,224,230,1));case`purple`:return new e(new P(128,0,128,1));case`rebeccapurple`:return new e(new P(102,51,153,1));case`red`:return new e(new P(255,0,0,1));case`rosybrown`:return new e(new P(188,143,143,1));case`royalblue`:return new e(new P(65,105,225,1));case`saddlebrown`:return new e(new P(139,69,19,1));case`salmon`:return new e(new P(250,128,114,1));case`sandybrown`:return new e(new P(244,164,96,1));case`seagreen`:return new e(new P(46,139,87,1));case`seashell`:return new e(new P(255,245,238,1));case`sienna`:return new e(new P(160,82,45,1));case`silver`:return new e(new P(192,192,192,1));case`skyblue`:return new e(new P(135,206,235,1));case`slateblue`:return new e(new P(106,90,205,1));case`slategray`:return new e(new P(112,128,144,1));case`slategrey`:return new e(new P(112,128,144,1));case`snow`:return new e(new P(255,250,250,1));case`springgreen`:return new e(new P(0,255,127,1));case`steelblue`:return new e(new P(70,130,180,1));case`tan`:return new e(new P(210,180,140,1));case`teal`:return new e(new P(0,128,128,1));case`thistle`:return new e(new P(216,191,216,1));case`tomato`:return new e(new P(255,99,71,1));case`turquoise`:return new e(new P(64,224,208,1));case`violet`:return new e(new P(238,130,238,1));case`wheat`:return new e(new P(245,222,179,1));case`white`:return new e(new P(255,255,255,1));case`whitesmoke`:return new e(new P(245,245,245,1));case`yellow`:return new e(new P(255,255,0,1));case`yellowgreen`:return new e(new P(154,205,50,1));default:return null}}function f(t){let n=t.length;if(n===0||t.charCodeAt(0)!==35)return null;if(n===7)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),1));if(n===9)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),(16*p(t.charCodeAt(7))+p(t.charCodeAt(8)))/255));if(n===4){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3));return new e(new P(16*n+n,16*r+r,16*i+i))}if(n===5){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3)),a=p(t.charCodeAt(4));return new e(new P(16*n+n,16*r+r,16*i+i,(16*a+a)/255))}return null}t.parseHex=f;function p(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||={})})(e.Format||={})})(jo||={});function Mo(e){let t=[];for(let n of e){let e=Number(n);(e||e===0&&n.replace(/\s/g,``)!==``)&&t.push(e)}return t}function No(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Po(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Fo(e,t){if(!e)return;let n=jo.Format.CSS.parseHex(t);if(n)return{range:e,color:No(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Io(e,t,n){if(!e||t.length!==1)return;let r=Mo(t[0].values());return{range:e,color:No(r[0],r[1],r[2],n?r[3]:1)}}function Lo(e,t,n){if(!e||t.length!==1)return;let r=Mo(t[0].values()),i=new jo(new ko(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:No(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Ro(e,t){return typeof e==`string`?[...e.matchAll(t)]:e.findMatches(t)}function zo(e){let t=[],n=Ro(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%\/]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let r of n){let n=r.filter(e=>e!==void 0),i=n[1],a=n[2];if(!a)continue;let o;i===`rgb`?o=Io(Po(e,r),Ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):i===`rgba`?o=Io(Po(e,r),Ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):i===`hsl`?o=Lo(Po(e,r),Ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):i===`hsla`?o=Lo(Po(e,r),Ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):i===`#`&&(o=Fo(Po(e,r),i+a)),o&&t.push(o)}return t}function Bo(e){return!e||typeof e.getValue!=`function`||typeof e.positionAt!=`function`?[]:zo(e)}const Vo=/^-+|-+$/g;function Ho(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=Uo(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=Wo(e,t);n=n.concat(r)}return n}function Uo(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let r=e.getLineContent(i),a=r.match(t.foldingRules.markers.start);if(a){let e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){let t={range:e,...Go(r.substring(a[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}function Wo(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()===``)return n;let i=mi(t.markSectionHeaderRegex),a=new RegExp(t.markSectionHeaderRegex,`gdm${i?`s`:``}`);if(We(a))return n;for(let t=1;t<=r;t+=95){let i=Math.min(t+100-1,r),o=[];for(let n=t;n<=i;n++)o.push(e.getLineContent(n));let s=o.join(`
28
- `);a.lastIndex=0;let c;for(;(c=a.exec(s))!==null;){let e=s.substring(0,c.index),r=(e.match(/\n/g)||[]).length,i=t+r,o=c[0].split(`
29
- `),l=o.length,u=i+l-1,d=e.lastIndexOf(`
30
- `)+1,f=c.index-d+1,p=o[o.length-1],m={range:{startLineNumber:i,startColumn:f,endLineNumber:u,endColumn:l===1?f+c[0].length:p.length+1},text:(c.groups??{}).label??``,hasSeparatorLine:((c.groups??{}).separator??``)!==``,shouldBeInComments:!0};(m.text||m.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<m.range.startLineNumber)&&n.push(m),a.lastIndex=c.index+c[0].length}}return n}function Go(e){e=e.trim();let t=e.startsWith(`-`);return e=e.replace(Vo,``),{text:e,hasSeparatorLine:t}}(function(){let e=globalThis;typeof e.requestIdleCallback!=`function`||e.cancelIdleCallback})();var Ko=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new s)}},qo;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(qo||={});var Jo=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new l(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}{let e=new Ko;return this._unsatisfiedConsumers.push(e),e.p}}};(class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new Jo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}static tee(t){let n,r,i=new Ko,a=async()=>{if(!(!n||!r))try{for await(let e of t)n.emitOne(e),r.emitOne(e)}catch(e){n.reject(e),r.reject(e)}finally{i.complete()}};return[new e(async e=>(n=e,a(),i.p)),new e(async e=>(r=e,a(),i.p))]}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}});var Yo=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=It(e);let n=this.values,r=this.prefixSum,i=t.length;return i!==0&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=It(e),t=It(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=It(e),t=It(t);let n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t!==0&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=It(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,a=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],a=i-this.values[r],e<a)n=r-1;else if(e>=i)t=r+1;else break;return new Xo(r,e-a)}},Xo=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}},Zo=class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Pt(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Yo(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;let n=Ge(t);if(n.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}},Qo=class{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new $o(kn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},$o=class extends Zo{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;n<this._lines.length;n++){let r=this._lines[n],i=this.offsetAt(new Pt(n+1,1)),a=r.matchAll(e);for(let e of a)(e.index||e.index===0)&&(e.index+=i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=Ci(e.column,xi(t),this._lines[e.lineNumber-1],0);return n?new k(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){let t=this._lines,n=this._wordenize.bind(this),r=0,i=``,a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){let e=i.substring(o[a].start,o[a].end);a+=1,yield e}else if(r<t.length)i=t[r],o=n(i,e),a=0,r+=1;else break}}}getLineWords(e,t){let n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(let e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,t){let n=[],r;for(t.lastIndex=0;(r=t.exec(e))&&r[0].length!==0;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){let t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Pt.isIPosition(e))throw Error(`bad position`);let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}},es=class e{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Qo}dispose(){}async $ping(){return`pong`}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let r=this._getModel(e);return r?Ti.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?Ho(n,t):[]}async $computeDiff(t,n,r,i){let a=this._getModel(t),o=this._getModel(n);if(!a||!o)return null;let s=await ts(i);return e.computeDiff(a,o,r,s)}static computeDiff(e,t,n,r){let i=e.getLinesContent(),a=t.getLinesContent(),o=r.computeDiff(i,a,n),s=o.changes.length>0?!1:this._modelsAreIdentical(e,t);function c(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:s,quitEarly:o.hitTimeout,changes:c(o.changes),moves:o.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let a=[],o;n=n.slice(0).sort((e,t)=>e.range&&t.range?k.compareRangesUsingStarts(e.range,t.range):!e.range-+!t.range);let s=0;for(let e=1;e<n.length;e++)k.getEndPosition(n[s].range).equals(k.getStartPosition(n[e].range))?(n[s].range=k.fromPositions(k.getStartPosition(n[s].range),k.getEndPosition(n[e].range)),n[s].text+=n[e].text):(s++,n[s]=n[e]);n.length=s+1;for(let{range:t,text:s,eol:c}of n){if(typeof c==`number`&&(o=c),k.isEmpty(t)&&!s)continue;let n=i.getValueInRange(t);if(s=s.replace(/\r\n|\n|\r/g,i.eol),n===s)continue;if(Math.max(s.length,n.length)>e._diffLimit){a.push({range:t,text:s});continue}let l=kt(n,s,r),u=i.offsetAt(k.lift(t).getStartPosition());for(let e of l){let t=i.positionAt(u+e.originalStart),n=i.positionAt(u+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(r.range)!==r.text&&a.push(r)}}return typeof o==`number`&&a.push({eol:o,text:``,range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async $computeLinks(e){let t=this._getModel(e);return t?Gt(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?Bo(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let a=new Te,o=new RegExp(r,i),s=new Set;outer:for(let r of t){let t=this._getModel(r);if(t){for(let r of t.words(o))if(!(r===n||!isNaN(Number(r)))&&(s.add(r),s.size>e._suggestionsLimit))break outer}}return{words:Array.from(s),duration:a.elapsed()}}async $computeWordRanges(e,t,n,r){let i=this._getModel(e);if(!i)return Object.create(null);let a=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=i.getLineWords(e,a);for(let n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){let a=this._getModel(e);if(!a)return null;let o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let s=a.getValueInRange(t),c=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!c)return null;let l=a.getValueInRange(c);return Kt.INSTANCE.navigateValueSet(t,s,c,l,n)}$fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!=`function`)return Promise.reject(Error(`Missing requestHandler or method: `+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}};typeof importScripts==`function`&&(globalThis.monaco=ti());function ts(e){switch(e){case`legacy`:return Do.getLegacy();case`advanced`:return Do.getDefault();case`advanced-external`:return Do.getAdvancedExternal();case`advanced-wasm`:return Do.getAdvancedWasm()}}var ns=class e{static{this.CHANNEL_NAME=`editorWorkerHost`}static getChannel(t){return t.getChannel(e.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(e.CHANNEL_NAME,n)}};function rs(e){let t,n=_t(r=>{let i=ns.getChannel(r);return t=e({host:new Proxy({},{get(e,t,n){if(t!==`then`){if(typeof t!=`string`)throw Error(`Not supported`);return(...e)=>i.$fhr(t,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()}),new es(t)});return t}function is(e){self.onmessage=t=>{rs(n=>e(n,t.data))}}function as(e){self.onmessage=()=>{is((t,n)=>Object.create(e(t,n)))}}var os=class e{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=ds(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=ls(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;e<t;e++)o[e+i+1]=s[e];else s.length<1e4?o.splice(i+1,a-i,...s):this._lineOffsets=o=o.slice(0,i+1).concat(s,o.slice(a+1));let c=n.text.length-(r-t);if(c!==0)for(let e=i+1+s.length,t=o.length;e<t;e++)o[e]=o[e]+c}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw Error(`Unknown change event received`);this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ls(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return{line:0,character:e};for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(n+e.character,r);return this.ensureBeforeEOL(i,n)}ensureBeforeEOL(e,t){for(;e>t&&us(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},ss;(function(e){function t(e,t,n,r){return new os(e,t,n,r)}e.create=t;function n(e,t,n){if(e instanceof os)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}e.update=n;function r(e,t){let n=e.getText(),r=cs(t.map(fs),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(r<i)throw Error(`Overlapping edit`);r>i&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}e.applyEdits=r})(ss||={});function cs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);cs(r,t),cs(i,t);let a=0,o=0,s=0;for(;a<r.length&&o<i.length;)t(r[a],i[o])<=0?e[s++]=r[a++]:e[s++]=i[o++];for(;a<r.length;)e[s++]=r[a++];for(;o<i.length;)e[s++]=i[o++];return e}function ls(e,t,n=0){let r=t?[n]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);us(i)&&(i===13&&t+1<e.length&&e.charCodeAt(t+1)===10&&t++,r.push(n+t+1))}return r}function us(e){return e===13||e===10}function ds(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function fs(e){let t=ds(e.range);return t===e.range?e:{newText:e.newText,range:t}}function ps(e,t=!1){let n=e.length,r=0,i=``,a=0,o=16,s=0,c=0,l=0,u=0,d=0;function f(t,n){let i=0,a=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=a*16+t-48;else if(t>=65&&t<=70)a=a*16+t-65+10;else if(t>=97&&t<=102)a=a*16+t-97+10;else break;r++,i++}return i<t&&(a=-1),a}function p(e){r=e,i=``,a=0,o=16,d=0}function m(){let t=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&gs(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46){if(r++,r<e.length&&gs(e.charCodeAt(r)))for(r++;r<e.length&&gs(e.charCodeAt(r));)r++;else return d=3,e.substring(t,r)}let n=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101)){if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&gs(e.charCodeAt(r))){for(r++;r<e.length&&gs(e.charCodeAt(r));)r++;n=r}else d=3}return e.substring(t,n)}function h(){let t=``,i=r;for(;;){if(r>=n){t+=e.substring(i,r),d=2;break}let a=e.charCodeAt(r);if(a===34){t+=e.substring(i,r),r++;break}if(a===92){if(t+=e.substring(i,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+=`"`;break;case 92:t+=`\\`;break;case 47:t+=`/`;break;case 98:t+=`\b`;break;case 102:t+=`\f`;break;case 110:t+=`
31
- `;break;case 114:t+=`\r`;break;case 116:t+=` `;break;case 117:let e=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}i=r;continue}if(a>=0&&a<=31){if(hs(a)){t+=e.substring(i,r),d=2;break}d=6}r++}return t}function g(){if(i=``,d=0,a=r,c=s,u=l,r>=n)return a=n,o=17;let t=e.charCodeAt(r);if(ms(t)){do r++,i+=String.fromCharCode(t),t=e.charCodeAt(r);while(ms(t));return o=15}if(hs(t))return r++,i+=String.fromCharCode(t),t===13&&e.charCodeAt(r)===10&&(r++,i+=`
32
- `),s++,l=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=h(),o=10;case 47:let c=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!hs(e.charCodeAt(r));)r++;return i=e.substring(c,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;let t=n-1,a=!1;for(;r<t;){let t=e.charCodeAt(r);if(t===42&&e.charCodeAt(r+1)===47){r+=2,a=!0;break}r++,hs(t)&&(t===13&&e.charCodeAt(r)===10&&r++,s++,l=r)}return a||(r++,d=1),i=e.substring(c,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!gs(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&_(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(i=e.substring(a,r),i){case`true`:return o=8;case`false`:return o=9;case`null`:return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function _(e){if(ms(e)||hs(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function v(){let e;do e=g();while(e>=12&&e<=15);return e}return{setPosition:p,getPosition:()=>r,scan:t?v:g,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>c,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function ms(e){return e===32||e===9}function hs(e){return e===10||e===13}function gs(e){return e>=48&&e<=57}var _s;(function(e){e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.space=32]=`space`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.asterisk=42]=`asterisk`,e[e.backslash=92]=`backslash`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.plus=43]=`plus`,e[e.slash=47]=`slash`,e[e.formFeed=12]=`formFeed`,e[e.tab=9]=`tab`})(_s||={}),Array(20).fill(0).map((e,t)=>` `.repeat(t)),Array(200).fill(0).map((e,t)=>`
33
- `+` `.repeat(t)),Array(200).fill(0).map((e,t)=>`\r`+` `.repeat(t)),Array(200).fill(0).map((e,t)=>`\r
34
- `+` `.repeat(t)),Array(200).fill(0).map((e,t)=>`
35
- `+` `.repeat(t)),Array(200).fill(0).map((e,t)=>`\r`+` `.repeat(t)),Array(200).fill(0).map((e,t)=>`\r
36
- `+` `.repeat(t));var vs;(function(e){e.DEFAULT={allowTrailingComma:!1}})(vs||={});function ys(e,t=[],n=vs.DEFAULT){let r=null,i=[],a=[];function o(e){Array.isArray(i)?i.push(e):r!==null&&(i[r]=e)}return Cs(e,{onObjectBegin:()=>{let e={};o(e),a.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=a.pop()},onArrayBegin:()=>{let e=[];o(e),a.push(i),i=e,r=null},onArrayEnd:()=>{i=a.pop()},onLiteralValue:o,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]}function bs(e){switch(e.type){case`array`:return e.children.map(bs);case`object`:let t=Object.create(null);for(let n of e.children){let e=n.children[1];e&&(t[n.children[0].value]=bs(e))}return t;case`null`:case`string`:case`number`:case`boolean`:return e.value;default:return}}function xs(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function Ss(e,t,n=!1){if(xs(e,t,n)){let r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){let i=Ss(r[e],t,n);if(i)return i}return e}}function Cs(e,t,n=vs.DEFAULT){let r=ps(e,!1),i=[],a=0;function o(e){return e?()=>a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?t=>a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(e){return e?()=>{a>0?a++:e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(a=1)}:()=>!0}function u(e){return e?()=>{a>0&&a--,a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let d=l(t.onObjectBegin),f=c(t.onObjectProperty),p=u(t.onObjectEnd),m=l(t.onArrayBegin),h=u(t.onArrayEnd),g=c(t.onLiteralValue),_=s(t.onSeparator),v=o(t.onComment),y=s(t.onError),b=n&&n.disallowComments,x=n&&n.allowTrailingComma;function S(){for(;;){let e=r.scan();switch(r.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:b||C(11);break;case 2:C(12);break;case 6:C(16)}switch(e){case 12:case 13:b?C(10):v();break;case 16:C(1);break;case 15:case 14:break;default:return e}}}function C(e,t=[],n=[]){if(y(e),t.length+n.length>0){let e=r.getToken();for(;e!==17;){if(t.indexOf(e)!==-1){S();break}if(n.indexOf(e)!==-1)break;e=S()}}}function w(e){let t=r.getTokenValue();return e?g(t):(f(t),i.push(t)),S(),!0}function T(){switch(r.getToken()){case 11:let e=r.getTokenValue(),t=Number(e);isNaN(t)&&(C(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return S(),!0}function ee(){return r.getToken()===10?(w(!1),r.getToken()===6?(_(`:`),S(),D()||C(4,[],[2,5])):C(5,[],[2,5]),i.pop(),!0):(C(3,[],[2,5]),!1)}function E(){d(),S();let e=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(e||C(4,[],[]),_(`,`),S(),r.getToken()===2&&x)break}else e&&C(6,[],[]);ee()||C(4,[],[2,5]),e=!0}return p(),r.getToken()===2?S():C(7,[2],[]),!0}function te(){m(),S();let e=!0,t=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(t||C(4,[],[]),_(`,`),S(),r.getToken()===4&&x)break}else t&&C(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,D()||C(4,[],[4,5]),t=!0}return h(),e||i.pop(),r.getToken()===4?S():C(8,[4],[]),!0}function D(){switch(r.getToken()){case 3:return te();case 1:return E();case 10:return w(!0);default:return T()}}return S(),r.getToken()===17?n.allowEmptyContent?!0:(C(4,[],[]),!1):D()?(r.getToken()!==17&&C(9,[],[]),!0):(C(4,[],[]),!1)}var ws;(function(e){e[e.None=0]=`None`,e[e.UnexpectedEndOfComment=1]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=2]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=3]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=4]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=5]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=6]=`InvalidCharacter`})(ws||={});var Ts;(function(e){e[e.OpenBraceToken=1]=`OpenBraceToken`,e[e.CloseBraceToken=2]=`CloseBraceToken`,e[e.OpenBracketToken=3]=`OpenBracketToken`,e[e.CloseBracketToken=4]=`CloseBracketToken`,e[e.CommaToken=5]=`CommaToken`,e[e.ColonToken=6]=`ColonToken`,e[e.NullKeyword=7]=`NullKeyword`,e[e.TrueKeyword=8]=`TrueKeyword`,e[e.FalseKeyword=9]=`FalseKeyword`,e[e.StringLiteral=10]=`StringLiteral`,e[e.NumericLiteral=11]=`NumericLiteral`,e[e.LineCommentTrivia=12]=`LineCommentTrivia`,e[e.BlockCommentTrivia=13]=`BlockCommentTrivia`,e[e.LineBreakTrivia=14]=`LineBreakTrivia`,e[e.Trivia=15]=`Trivia`,e[e.Unknown=16]=`Unknown`,e[e.EOF=17]=`EOF`})(Ts||={});const Es=ys,Ds=Ss,Os=bs;var ks;(function(e){e[e.InvalidSymbol=1]=`InvalidSymbol`,e[e.InvalidNumberFormat=2]=`InvalidNumberFormat`,e[e.PropertyNameExpected=3]=`PropertyNameExpected`,e[e.ValueExpected=4]=`ValueExpected`,e[e.ColonExpected=5]=`ColonExpected`,e[e.CommaExpected=6]=`CommaExpected`,e[e.CloseBraceExpected=7]=`CloseBraceExpected`,e[e.CloseBracketExpected=8]=`CloseBracketExpected`,e[e.EndOfFileExpected=9]=`EndOfFileExpected`,e[e.InvalidCommentToken=10]=`InvalidCommentToken`,e[e.UnexpectedEndOfComment=11]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=12]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=13]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=14]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=15]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=16]=`InvalidCharacter`})(ks||={});var As;(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(a!==s-1&&o!==1){if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>u,Utils:()=>C}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function c(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,c(this,a))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new f(t,n,r,i,a)}static parse(e,t=!1){let n=l.exec(e);return n?new f(n[2]||``,b(n[4]||``),b(n[5]||``),b(n[7]||``),b(n[9]||``),t):new f(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new f(`file`,t,e,``,``)}static from(e){let t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return c(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{let t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}let d=i?1:void 0;class f extends u{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=g(this,!1),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||=_(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let p={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function m(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=p[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function h(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=p[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function g(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}function _(e,t){let n=t?h:m,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:m(c,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}let y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var x=n(975);let S=x.posix||x;var C;(function(e){e.joinPath=function(e,...t){return e.with({path:S.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=S.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=S.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return S.basename(e.path)},e.extname=function(e){return S.extname(e.path)}})(C||={}),As=r})();const{URI:js,Utils:Ms}=As;var Ns;(function(e){function t(e){return typeof e==`string`}e.is=t})(Ns||={});var Ps;(function(e){function t(e){return typeof e==`string`}e.is=t})(Ps||={});var Fs;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Fs||={});var Is;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Is||={});var Ls;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Is.MAX_VALUE),t===Number.MAX_VALUE&&(t=Is.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&L.uinteger(t.line)&&L.uinteger(t.character)}e.is=n})(Ls||={});var F;(function(e){function t(e,t,n,r){if(L.uinteger(e)&&L.uinteger(t)&&L.uinteger(n)&&L.uinteger(r))return{start:Ls.create(e,t),end:Ls.create(n,r)};if(Ls.is(e)&&Ls.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&Ls.is(t.start)&&Ls.is(t.end)}e.is=n})(F||={});var Rs;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&F.is(t.range)&&(L.string(t.uri)||L.undefined(t.uri))}e.is=n})(Rs||={});var zs;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&F.is(t.targetRange)&&L.string(t.targetUri)&&F.is(t.targetSelectionRange)&&(F.is(t.originSelectionRange)||L.undefined(t.originSelectionRange))}e.is=n})(zs||={});var Bs;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&L.numberRange(t.red,0,1)&&L.numberRange(t.green,0,1)&&L.numberRange(t.blue,0,1)&&L.numberRange(t.alpha,0,1)}e.is=n})(Bs||={});var Vs;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&F.is(t.range)&&Bs.is(t.color)}e.is=n})(Vs||={});var Hs;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&L.string(t.label)&&(L.undefined(t.textEdit)||Xs.is(t))&&(L.undefined(t.additionalTextEdits)||L.typedArray(t.additionalTextEdits,Xs.is))}e.is=n})(Hs||={});var Us;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Us||={});var Ws;(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return L.defined(n)&&(o.startCharacter=n),L.defined(r)&&(o.endCharacter=r),L.defined(i)&&(o.kind=i),L.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&L.uinteger(t.startLine)&&L.uinteger(t.startLine)&&(L.undefined(t.startCharacter)||L.uinteger(t.startCharacter))&&(L.undefined(t.endCharacter)||L.uinteger(t.endCharacter))&&(L.undefined(t.kind)||L.string(t.kind))}e.is=n})(Ws||={});var Gs;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&Rs.is(t.location)&&L.string(t.message)}e.is=n})(Gs||={});var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||={});var Ks;(function(e){e.Unnecessary=1,e.Deprecated=2})(Ks||={});var qs;(function(e){function t(e){let t=e;return L.objectLiteral(t)&&L.string(t.href)}e.is=t})(qs||={});var Js;(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return L.defined(n)&&(o.severity=n),L.defined(r)&&(o.code=r),L.defined(i)&&(o.source=i),L.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return L.defined(t)&&F.is(t.range)&&(L.string(t.message)||fc.is(t.message))&&(L.number(t.severity)||L.undefined(t.severity))&&(L.integer(t.code)||L.string(t.code)||L.undefined(t.code))&&(L.undefined(t.codeDescription)||L.string(t.codeDescription?.href))&&(L.string(t.source)||L.undefined(t.source))&&(L.undefined(t.relatedInformation)||L.typedArray(t.relatedInformation,Gs.is))}e.is=n;function r(e){return L.string(e.message)}e.is3_17=r;function i(e){if(L.string(e.message))return e.message;if(fc.is(e.message))return e.message.value;throw Error(`Unknown message type ${typeof e.message}`)}e.getMessageString=i})(Js||={});var Ys;(function(e){function t(e,t,...n){let r={title:e,command:t};return L.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return L.defined(t)&&L.string(t.title)&&(t.tooltip===void 0||L.string(t.tooltip))&&L.string(t.command)}e.is=n})(Ys||={});var Xs;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return L.objectLiteral(t)&&L.string(t.newText)&&F.is(t.range)}e.is=i})(Xs||={});var Zs;(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&L.string(t.label)&&(L.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(L.string(t.description)||t.description===void 0)}e.is=n})(Zs||={});var Qs;(function(e){function t(e){let t=e;return L.string(t)}e.is=t})(Qs||={});var $s;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return Xs.is(t)&&(Zs.is(t.annotationId)||Qs.is(t.annotationId))}e.is=i})($s||={});var ec;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&cc.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(ec||={});var tc;(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&L.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||L.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||L.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||Qs.is(t.annotationId))}e.is=n})(tc||={});var nc;(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&L.string(t.oldUri)&&L.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||L.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||L.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||Qs.is(t.annotationId))}e.is=n})(nc||={});var rc;(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&L.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||L.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||L.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||Qs.is(t.annotationId))}e.is=n})(rc||={});var ic;(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>L.string(e.kind)?tc.is(e)||nc.is(e)||rc.is(e):ec.is(e)))}e.is=t})(ic||={});var ac;(function(e){function t(e){let t=e;return L.objectLiteral(t)&&F.is(t.range)&&Qc.isSnippet(t.snippet)&&(t.annotationId===void 0||Zs.is(t.annotationId)||Qs.is(t.annotationId))}e.is=t})(ac||={});var oc;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return L.defined(t)&&L.string(t.uri)}e.is=n})(oc||={});var sc;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&L.string(t.uri)&&L.integer(t.version)}e.is=n})(sc||={});var cc;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&L.string(t.uri)&&(t.version===null||L.integer(t.version))}e.is=n})(cc||={});var lc;(function(e){e.ABAP=`abap`,e.WindowsBat=`bat`,e.BibTeX=`bibtex`,e.Clojure=`clojure`,e.Coffeescript=`coffeescript`,e.C=`c`,e.CPP=`cpp`,e.CSharp=`csharp`,e.CSS=`css`,e.D=`d`,e.Delphi=`pascal`,e.Diff=`diff`,e.Dart=`dart`,e.Dockerfile=`dockerfile`,e.Elixir=`elixir`,e.Erlang=`erlang`,e.FSharp=`fsharp`,e.GitCommit=`git-commit`,e.GitRebase=`git-rebase`,e.Go=`go`,e.Groovy=`groovy`,e.Handlebars=`handlebars`,e.Haskell=`haskell`,e.HTML=`html`,e.Ini=`ini`,e.Java=`java`,e.JavaScript=`javascript`,e.JavaScriptReact=`javascriptreact`,e.JSON=`json`,e.LaTeX=`latex`,e.Less=`less`,e.Lua=`lua`,e.Makefile=`makefile`,e.Markdown=`markdown`,e.ObjectiveC=`objective-c`,e.ObjectiveCPP=`objective-cpp`,e.Pascal=`pascal`,e.Perl=`perl`,e.Perl6=`perl6`,e.PHP=`php`,e.Plaintext=`plaintext`,e.Powershell=`powershell`,e.Pug=`jade`,e.Python=`python`,e.R=`r`,e.Razor=`razor`,e.Ruby=`ruby`,e.Rust=`rust`,e.SCSS=`scss`,e.SASS=`sass`,e.Scala=`scala`,e.ShaderLab=`shaderlab`,e.ShellScript=`shellscript`,e.SQL=`sql`,e.Swift=`swift`,e.TypeScript=`typescript`,e.TypeScriptReact=`typescriptreact`,e.TeX=`tex`,e.VisualBasic=`vb`,e.XML=`xml`,e.XSL=`xsl`,e.YAML=`yaml`})(lc||={});var uc;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return L.defined(t)&&L.string(t.uri)&&L.string(t.languageId)&&L.integer(t.version)&&L.string(t.text)}e.is=n})(uc||={});var dc;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(dc||={});var fc;(function(e){function t(e){let t=e;return L.objectLiteral(e)&&dc.is(t.kind)&&L.string(t.value)}e.is=t})(fc||={});var pc;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(pc||={});var mc;(function(e){e.PlainText=1,e.Snippet=2})(mc||={});var hc;(function(e){e.Deprecated=1})(hc||={});var gc;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&L.string(t.newText)&&F.is(t.insert)&&F.is(t.replace)}e.is=n})(gc||={});var _c;(function(e){e.asIs=1,e.adjustIndentation=2})(_c||={});var vc;(function(e){e.Replace=1,e.Merge=2})(vc||={});var yc;(function(e){function t(e){let t=e;return t&&(L.string(t.detail)||t.detail===void 0)&&(L.string(t.description)||t.description===void 0)}e.is=t})(yc||={});var bc;(function(e){function t(e){return{label:e}}e.create=t})(bc||={});var xc;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(xc||={});var Sc;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return L.string(t)||L.objectLiteral(t)&&L.string(t.language)&&L.string(t.value)}e.is=n})(Sc||={});var Cc;(function(e){function t(e){let t=e;return!!t&&L.objectLiteral(t)&&(fc.is(t.contents)||Sc.is(t.contents)||L.typedArray(t.contents,Sc.is))&&(e.range===void 0||F.is(e.range))}e.is=t})(Cc||={});var wc;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(wc||={});var Tc;(function(e){function t(e,t,...n){let r={label:e};return L.defined(t)&&(r.documentation=t),r.parameters=L.defined(n)?n:[],r}e.create=t})(Tc||={});var Ec;(function(e){e.Text=1,e.Read=2,e.Write=3})(Ec||={});var Dc;(function(e){function t(e,t){let n={range:e};return L.number(t)&&(n.kind=t),n}e.create=t})(Dc||={});var Oc;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Oc||={});var kc;(function(e){e.Deprecated=1})(kc||={});var Ac;(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(Ac||={});var jc;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(jc||={});var Mc;(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&L.string(t.name)&&L.number(t.kind)&&F.is(t.range)&&F.is(t.selectionRange)&&(t.detail===void 0||L.string(t.detail))&&(t.deprecated===void 0||L.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(Mc||={});var Nc;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorMove=`refactor.move`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e.Notebook=`notebook`})(Nc||={});var Pc;(function(e){e.Invoked=1,e.Automatic=2})(Pc||={});var Fc;(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return L.defined(t)&&L.typedArray(t.diagnostics,Js.is)&&(t.only===void 0||L.typedArray(t.only,L.string))&&(t.triggerKind===void 0||t.triggerKind===Pc.Invoked||t.triggerKind===Pc.Automatic)}e.is=n})(Fc||={});var Ic;(function(e){e.LLMGenerated=1;function t(t){return L.defined(t)&&t===e.LLMGenerated}e.is=t})(Ic||={});var Lc;(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):Ys.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&L.string(t.title)&&(t.diagnostics===void 0||L.typedArray(t.diagnostics,Js.is))&&(t.kind===void 0||L.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||Ys.is(t.command))&&(t.isPreferred===void 0||L.boolean(t.isPreferred))&&(t.edit===void 0||ic.is(t.edit))&&(t.tags===void 0||L.typedArray(t.tags,Ic.is))}e.is=n})(Lc||={});var Rc;(function(e){function t(e,t){let n={range:e};return L.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return L.defined(t)&&F.is(t.range)&&(L.undefined(t.command)||Ys.is(t.command))}e.is=n})(Rc||={});var zc;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&L.uinteger(t.tabSize)&&L.boolean(t.insertSpaces)}e.is=n})(zc||={});var Bc;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return L.defined(t)&&F.is(t.range)&&(L.undefined(t.target)||L.string(t.target))}e.is=n})(Bc||={});var Vc;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return L.objectLiteral(n)&&F.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(Vc||={});var Hc;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`,e.label=`label`})(Hc||={});var Uc;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Uc||={});var Wc;(function(e){function t(e){let t=e;return L.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(Wc||={});var Gc;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&F.is(t.range)&&L.string(t.text)}e.is=n})(Gc||={});var Kc;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&F.is(t.range)&&L.boolean(t.caseSensitiveLookup)&&(L.string(t.variableName)||t.variableName===void 0)}e.is=n})(Kc||={});var qc;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&F.is(t.range)&&(L.string(t.expression)||t.expression===void 0)}e.is=n})(qc||={});var Jc;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return L.defined(t)&&F.is(e.stoppedLocation)}e.is=n})(Jc||={});var Yc;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(Yc||={});var Xc;(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&(t.tooltip===void 0||L.string(t.tooltip)||fc.is(t.tooltip))&&(t.location===void 0||Rs.is(t.location))&&(t.command===void 0||Ys.is(t.command))}e.is=n})(Xc||={});var Zc;(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return L.objectLiteral(t)&&Ls.is(t.position)&&(L.string(t.label)||L.typedArray(t.label,Xc.is))&&(t.kind===void 0||Yc.is(t.kind))&&t.textEdits===void 0||L.typedArray(t.textEdits,Xs.is)&&(t.tooltip===void 0||L.string(t.tooltip)||fc.is(t.tooltip))&&(t.paddingLeft===void 0||L.boolean(t.paddingLeft))&&(t.paddingRight===void 0||L.boolean(t.paddingRight))}e.is=n})(Zc||={});var Qc;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t;function n(e){let t=e;return L.objectLiteral(t)&&t.kind===`snippet`&&L.string(t.value)}e.isSnippet=n})(Qc||={});var $c;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})($c||={});var el;(function(e){function t(e){return{items:e}}e.create=t})(el||={});var tl;(function(e){e.Invoked=1,e.Automatic=2})(tl||={});var nl;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(nl||={});var rl;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(rl||={});var il;(function(e){function t(e){let t=e;return L.objectLiteral(t)&&Ps.is(t.uri)&&L.string(t.name)}e.is=t})(il||={});var al;(function(e){function t(e,t,n,r){return new ol(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(L.defined(t)&&L.string(t.uri)&&(L.undefined(t.languageId)||L.string(t.languageId))&&L.uinteger(t.lineCount)&&L.func(t.getText)&&L.func(t.positionAt)&&L.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}})(al||={});var ol=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&=(e.push(r),!1);let i=t.charAt(r);n=i===`\r`||i===`
37
- `,i===`\r`&&r+1<t.length&&t.charAt(r+1)===`
38
- `&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return Ls.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return Ls.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},L;(function(e){let t=Object.prototype.toString;function n(e){return e!==void 0}e.defined=n;function r(e){return e===void 0}e.undefined=r;function i(e){return e===!0||e===!1}e.boolean=i;function a(e){return t.call(e)===`[object String]`}e.string=a;function o(e){return t.call(e)===`[object Number]`}e.number=o;function s(e,n,r){return t.call(e)===`[object Number]`&&n<=e&&e<=r}e.numberRange=s;function c(e){return t.call(e)===`[object Number]`&&-2147483648<=e&&e<=2147483647}e.integer=c;function l(e){return t.call(e)===`[object Number]`&&0<=e&&e<=2147483647}e.uinteger=l;function u(e){return t.call(e)===`[object Function]`}e.func=u;function d(e){return typeof e==`object`&&!!e}e.objectLiteral=d;function f(e,t){return Array.isArray(e)&&e.every(t)}e.typedArray=f})(L||={});function R(...e){let t=e[0],n,r,i;if(typeof t==`string`)n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!=`object`?e:e[0];else if(t instanceof Array){let n=e.slice(1);if(t.length!==n.length+1)throw Error(`expected a string as the first argument to l10n.t`);let r=t[0];for(let e=1;e<t.length;e++)r+=`{${e-1}}`+t[e];return R(r,...n)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(``):t.comment}`),i=t.args??{};return cl(r,i)}var sl=/{([^}]+)}/g;function cl(e,t){return Object.keys(t).length===0?e:e.replace(sl,(e,n)=>t[n]??e)}const ll={exports:{}};function ul(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function dl(e,t){for(var n=``,r=0,i=-1,a=0,o,s=0;s<=e.length;++s){if(s<e.length)o=e.charCodeAt(s);else if(o===47)break;else o=47;if(o===47){if(i!==s-1&&a!==1){if(i!==s-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf(`/`);if(c!==n.length-1){c===-1?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}t&&(n.length>0?n+=`/..`:n=`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===46&&a!==-1?++a:a=-1}return n}function fl(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+e+r:r}var pl={resolve:function(){for(var e=``,t=!1,n,r=arguments.length-1;r>=-1&&!t;r--){var i;r>=0?i=arguments[r]:(n===void 0&&(n=process.cwd()),i=n),ul(i),i.length!==0&&(e=i+`/`+e,t=i.charCodeAt(0)===47)}return e=dl(e,!t),t?e.length>0?`/`+e:`/`:e.length>0?e:`.`},normalize:function(e){if(ul(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=dl(e,!t),e.length===0&&!t&&(e=`.`),e.length>0&&n&&(e+=`/`),t?`/`+e:e},isAbsolute:function(e){return ul(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,t=0;t<arguments.length;++t){var n=arguments[t];ul(n),n.length>0&&(e===void 0?e=n:e+=`/`+n)}return e===void 0?`.`:pl.normalize(e)},relative:function(e,t){if(ul(e),ul(t),e===t||(e=pl.resolve(e),t=pl.resolve(t),e===t))return``;for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var r=e.length,i=r-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var o=t.length-a,s=i<o?i:o,c=-1,l=0;l<=s;++l){if(l===s){if(o>s){if(t.charCodeAt(a+l)===47)return t.slice(a+l+1);if(l===0)return t.slice(a+l)}else i>s&&(e.charCodeAt(n+l)===47?c=l:l===0&&(c=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(a+l))break;u===47&&(c=l)}var d=``;for(l=n+c+1;l<=r;++l)(l===r||e.charCodeAt(l)===47)&&(d.length===0?d+=`..`:d+=`/..`);return d.length>0?d+t.slice(a+c):(a+=c,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(ul(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),n=t===47,r=-1,i=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?`/`:`.`:n&&r===1?`//`:e.slice(0,r)},basename:function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);ul(e);var n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname:function(e){ul(e);for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(s===47){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===46?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return fl(`/`,e)},parse:function(e){ul(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var n=e.charCodeAt(0),r=n===47,i;r?(t.root=`/`,i=1):i=0;for(var a=-1,o=0,s=-1,c=!0,l=e.length-1,u=0;l>=i;--l){if(n=e.charCodeAt(l),n===47){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),n===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||s===-1||u===0||u===1&&a===s-1&&a===o+1?s!==-1&&(t.base=t.name=o===0&&r?e.slice(1,s):e.slice(o,s)):(o===0&&r?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(o,a),t.base=e.slice(o,s)),t.ext=e.slice(a,s)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};pl.posix=pl,ll.exports=pl;const{resolve:ml,normalize:hl,isAbsolute:gl,join:_l,relative:vl,_makeLong:yl,dirname:bl,basename:xl,extname:Sl,format:Cl,parse:wl,sep:Tl,delimiter:El,win32:Dl}=pl;ll.exports;const Ol=Symbol.for(`yaml.alias`),kl=Symbol.for(`yaml.document`),Al=Symbol.for(`yaml.map`),jl=Symbol.for(`yaml.pair`),Ml=Symbol.for(`yaml.scalar`),Nl=Symbol.for(`yaml.seq`),Pl=Symbol.for(`yaml.node.type`),Fl=e=>!!e&&typeof e==`object`&&e[Pl]===Ol,Il=e=>!!e&&typeof e==`object`&&e[Pl]===kl,Ll=e=>!!e&&typeof e==`object`&&e[Pl]===Al,Rl=e=>!!e&&typeof e==`object`&&e[Pl]===jl,z=e=>!!e&&typeof e==`object`&&e[Pl]===Ml,zl=e=>!!e&&typeof e==`object`&&e[Pl]===Nl;function Bl(e){if(e&&typeof e==`object`)switch(e[Pl]){case Al:case Nl:return!0}return!1}function Vl(e){if(e&&typeof e==`object`)switch(e[Pl]){case Ol:case Al:case Ml:case Nl:return!0}return!1}const Hl=e=>(z(e)||Bl(e))&&!!e.anchor,Ul=Symbol(`break visit`),Wl=Symbol(`skip children`),Gl=Symbol(`remove node`);function Kl(e,t){let n=Jl(t);Il(e)?ql(null,e.contents,n,Object.freeze([e]))===Gl&&(e.contents=null):ql(null,e,n,Object.freeze([]))}Kl.BREAK=Ul,Kl.SKIP=Wl,Kl.REMOVE=Gl;function ql(e,t,n,r){let i=Yl(e,t,n,r);if(Vl(i)||Rl(i))return Xl(e,r,i),ql(e,i,n,r);if(typeof i!=`symbol`){if(Bl(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=ql(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===Ul)return Ul;else i===Gl&&(t.items.splice(e,1),--e)}}else if(Rl(t)){r=Object.freeze(r.concat(t));let e=ql(`key`,t.key,n,r);if(e===Ul)return Ul;e===Gl&&(t.key=null);let i=ql(`value`,t.value,n,r);if(i===Ul)return Ul;i===Gl&&(t.value=null)}}return i}function Jl(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Yl(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(Ll(t))return n.Map?.(e,t,r);if(zl(t))return n.Seq?.(e,t,r);if(Rl(t))return n.Pair?.(e,t,r);if(z(t))return n.Scalar?.(e,t,r);if(Fl(t))return n.Alias?.(e,t,r)}function Xl(e,t,n){let r=t[t.length-1];if(Bl(r))r.items[e]=n;else if(Rl(r))e===`key`?r.key=n:r.value=n;else if(Il(r))r.contents=n;else{let e=Fl(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}const Zl={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Ql=e=>e.replace(/[!,[\]{}]/g,e=>Zl[e]);var $l=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Ql(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&Vl(e.contents)){let t={};Kl(e.contents,(e,n)=>{Vl(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
39
- `)}};$l.defaultYaml={explicit:!1,version:`1.2`},$l.defaultTags={"!!":`tag:yaml.org,2002:`};function eu(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function tu(e){let t=new Set;return Kl(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function nu(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function ru(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=tu(e);let a=nu(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(z(t.node)||Bl(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function iu(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=iu(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=iu(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=iu(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=iu(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function au(e,t,n){if(Array.isArray(e))return e.map((e,t)=>au(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Hl(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var ou=class{constructor(e){Object.defineProperty(this,Pl,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Il(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=au(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?iu(i,{"":o},``,o):o}},su=class extends ou{constructor(e){super(Ol),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Kl(e,{Node:(e,t)=>{(Fl(t)||Hl(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(au(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=cu(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(eu(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function cu(e,t,n){if(Fl(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Bl(t)){let r=0;for(let i of t.items){let t=cu(e,i,n);t>r&&(r=t)}return r}if(Rl(t)){let r=cu(e,t.key,n),i=cu(e,t.value,n);return Math.max(r,i)}return 1}const lu=e=>!e||typeof e!=`function`&&typeof e!=`object`;var B=class extends ou{constructor(e){super(Ml),this.value=e}toJSON(e,t){return t?.keep?this.value:au(this.value,e,t)}toString(){return String(this.value)}};B.BLOCK_FOLDED=`BLOCK_FOLDED`,B.BLOCK_LITERAL=`BLOCK_LITERAL`,B.PLAIN=`PLAIN`,B.QUOTE_DOUBLE=`QUOTE_DOUBLE`,B.QUOTE_SINGLE=`QUOTE_SINGLE`;function uu(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function du(e,t,n){if(Il(e)&&(e=e.contents),Vl(e))return e;if(Rl(e)){let t=n.schema[Al].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new su(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=`tag:yaml.org,2002:`+t.slice(2));let l=uu(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new B(e);return c&&(c.node=t),t}l=e instanceof Map?o[Al]:Symbol.iterator in Object(e)?o[Nl]:o[Al]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new B(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function fu(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return du(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}const pu=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;var mu=class extends ou{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>Vl(t)||Rl(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(pu(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(Bl(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,fu(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(Bl(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&z(i)?i.value:i:Bl(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Rl(t))return!1;let n=t.value;return n==null||e&&z(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return Bl(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(Bl(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,fu(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}};const hu=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function gu(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const _u=(e,t,n)=>e.endsWith(`
40
- `)?gu(n,t):n.includes(`
41
- `)?`
42
- `+gu(n,t):(e.endsWith(` `)?``:` `)+n,vu=`flow`;function yu(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=bu(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
43
- `)n===`block`&&(h=bu(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
44
- `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
45
- `&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function bu(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
46
- `);r=t,i=t+1,a=e[i]}return r}const xu=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Su=e=>/^(%|---|\.\.\.)/m.test(e);function Cu(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
47
- `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function wu(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Su(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
48
-
49
- `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
50
- `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:yu(o,a,`quoted`,xu(t,!1))}function Tu(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
51
- `)||/[ \t]\n|\n[ \t]/.test(e))return wu(e,t);let n=t.indent||(Su(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:yu(r,n,vu,xu(t,!1))}function Eu(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=wu;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?Tu:i&&!t?wu:n?Tu:wu}return r(e,t)}let Du;try{Du=RegExp(`(^|(?<!
52
- ))
53
- +(?!
54
- |$)`,`g`)}catch{Du=/\n+(?!\n|$)/g}function Ou({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return Eu(n,r);let l=r.indent||(r.forceBlockIndent||Su(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===B.BLOCK_FOLDED?!1:t===B.BLOCK_LITERAL||!Cu(n,c,l.length);if(!n)return u?`|
55
- `:`>
56
- `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
57
- `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
58
- `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
59
- `&&(p=p.slice(0,-1)),p.replace(Du,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
60
- `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
61
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=xu(r,!0);o!==`folded`&&t!==B.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=yu(`${v}${e}${p}`,l,`block`,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function ku(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
62
- `)||u&&/[[\]{},]/.test(a))return Eu(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
63
- `)?Eu(a,t):Ou(e,t,n,r);if(!s&&!u&&i!==B.PLAIN&&a.includes(`
64
- `))return Ou(e,t,n,r);if(Su(a)){if(c===``)return t.forceBlockIndent=!0,Ou(e,t,n,r);if(s&&c===l)return Eu(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Eu(a,t)}return s?d:yu(d,c,vu,xu(t,!1))}function Au(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==B.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=B.QUOTE_DOUBLE);let c=e=>{switch(e){case B.BLOCK_FOLDED:case B.BLOCK_LITERAL:return i||a?Eu(o.value,t):Ou(o,t,n,r);case B.QUOTE_DOUBLE:return wu(o.value,t);case B.QUOTE_SINGLE:return Tu(o.value,t);case B.PLAIN:return ku(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function ju(e,t){let n=Object.assign({blockQuote:!0,commentString:hu,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Mu(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(z(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Nu(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(z(e)||Bl(e))&&e.anchor;a&&eu(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Pu(e,t,n,r){if(Rl(e))return e.toString(t,n,r);if(Fl(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=Vl(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Mu(t.doc.schema.tags,a);let o=Nu(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):z(a)?Au(a,t,n,r):a.toString(t,n,r);return o?z(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Fu({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=Vl(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Bl(e)||!Vl(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Bl(e)||(z(e)?e.type===B.BLOCK_FOLDED||e.type===B.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Pu(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=_u(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=_u(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=_u(g,n.indent,l(f))));let _,v,y;Vl(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&z(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&zl(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Pu(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
65
- `:``,v){let e=l(v);S+=`\n${gu(e,n.indent)}`}x===``&&!n.inFlow?S===`
66
- `&&y&&(S=`
67
-
68
- `):S+=`\n${n.indent}`}else if(!p&&Bl(t)){let e=x[0],r=x.indexOf(`
69
- `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
70
- `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=_u(g,n.indent,l(y)):h&&i&&i(),g}function Iu(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}const Lu={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new B(Symbol(`<<`)),{addToJSMap:zu}),stringify:()=>`<<`},Ru=(e,t)=>(Lu.identify(t)||z(t)&&(!t.type||t.type===B.PLAIN)&&Lu.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Lu.tag&&e.default);function zu(e,t,n){let r=Vu(e,n);if(zl(r))for(let n of r.items)Bu(e,t,n);else if(Array.isArray(r))for(let n of r)Bu(e,t,n);else Bu(e,t,r)}function Bu(e,t,n){let r=Vu(e,n);if(!Ll(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Vu(e,t){return e&&Fl(t)?t.resolve(e.doc,e):t}function Hu(e,t,{key:n,value:r}){if(Vl(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Ru(e,n))zu(e,t,r);else{let i=au(n,``,e);if(t instanceof Map)t.set(i,au(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Uu(n,i,e),o=au(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Uu(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(Vl(e)&&n?.doc){let t=ju(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Iu(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Wu(e,t,n){return new Gu(du(e,void 0,n),du(t,void 0,n))}var Gu=class e{constructor(e,t=null){Object.defineProperty(this,Pl,{value:jl}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return Vl(n)&&(n=n.clone(t)),Vl(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Hu(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Fu(this,e,t,n):JSON.stringify(this)}};function Ku(e,t,n){return(t.inFlow??e.flow?Ju:qu)(e,t,n)}function qu({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(Vl(i))!d&&i.spaceBefore&&f.push(``),Yu(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(Rl(i)){let e=Vl(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),Yu(n,f,e.commentBefore,d))}d=!1;let s=Pu(i,u,()=>o=null,()=>d=!0);o&&(s+=_u(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
71
- `}}return e?(p+=`
72
- `+gu(l(e),c),s&&s()):d&&o&&o(),p}function Ju({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(Vl(i))i.spaceBefore&&d.push(``),Yu(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(Rl(i)){let e=Vl(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),Yu(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=Vl(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=Pu(i,c,()=>a=null);l||=d.length>u||o.includes(`
73
- `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=_u(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
74
- `;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function Yu({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=gu(t(r),e);n.push(i.trimStart())}}function Xu(e,t){let n=z(t)?t.value:t;for(let r of e)if(Rl(r)&&(r.key===t||r.key===n||z(r.key)&&r.key.value===n))return r}var Zu=class extends mu{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Al,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Wu(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=Rl(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Gu(e,e?.value):new Gu(e.key,e.value);let r=Xu(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);z(r.value)&&lu(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Xu(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Xu(this.items,e)?.value;return(!t&&z(n)?n.value:n)??void 0}has(e){return!!Xu(this.items,e)}set(e,t){this.add(new Gu(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Hu(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Rl(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ku(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}};const Qu={collection:`map`,default:!0,nodeClass:Zu,tag:`tag:yaml.org,2002:map`,resolve(e,t){return Ll(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Zu.from(e,t,n)};var $u=class extends mu{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Nl,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=ed(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=ed(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&z(r)?r.value:r}has(e){let t=ed(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=ed(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];z(r)&&lu(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(au(e,String(r++),t));return n}toString(e,t,n){return e?Ku(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(du(a,void 0,n))}}return i}};function ed(e){let t=z(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}const td={collection:`seq`,default:!0,nodeClass:$u,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return zl(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>$u.from(e,t,n)},nd={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Au(e,t,n,r)}},rd={identify:e=>e==null,createNode:()=>new B(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new B(null),stringify:({source:e},t)=>typeof e==`string`&&rd.test.test(e)?e:t.options.nullStr},id={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new B(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&id.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function ad({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}const od={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:ad},sd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():ad(e)}},cd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new B(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:ad},ld=e=>typeof e==`bigint`||Number.isInteger(e),ud=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function dd(e,t,n){let{value:r}=e;return ld(r)&&r>=0?n+r.toString(t):ad(e)}const fd={identify:e=>ld(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>ud(e,2,8,n),stringify:e=>dd(e,8,`0o`)},pd={identify:ld,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>ud(e,0,10,n),stringify:ad},md={identify:e=>ld(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>ud(e,2,16,n),stringify:e=>dd(e,16,`0x`)},hd=[Qu,td,nd,rd,id,fd,pd,md,od,sd,cd];function gd(e){return typeof e==`bigint`||Number.isInteger(e)}const _d=({value:e})=>JSON.stringify(e),vd=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:_d},{identify:e=>e==null,createNode:()=>new B(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:_d},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:_d},{identify:gd,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>gd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:_d}],yd=[Qu,td].concat(vd,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),bd={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=B.BLOCK_LITERAL,t!==B.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===B.BLOCK_LITERAL?`
75
- `:` `)}return Au({comment:e,type:t,value:s},r,i,a)}};function xd(e,t){if(zl(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Rl(r)){if(Ll(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Gu(new B(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=Rl(r)?r:new Gu(r)}}else t(`Expected a sequence for this tag`);return e}function Sd(e,t,n){let{replacer:r}=n,i=new $u(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Wu(o,s,n))}return i}const Cd={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:xd,createNode:Sd};var wd=class e extends $u{constructor(){super(),this.add=Zu.prototype.add.bind(this),this.delete=Zu.prototype.delete.bind(this),this.get=Zu.prototype.get.bind(this),this.has=Zu.prototype.has.bind(this),this.set=Zu.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(Rl(e)?(r=au(e.key,``,t),i=au(e.value,r,t)):r=au(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=Sd(e,t,n),i=new this;return i.items=r.items,i}};wd.tag=`tag:yaml.org,2002:omap`;const Td={collection:`seq`,identify:e=>e instanceof Map,nodeClass:wd,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=xd(e,t),r=[];for(let{key:e}of n.items)z(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new wd,n)},createNode:(e,t,n)=>wd.from(e,t,n)};function Ed({value:e,source:t},n){return t&&(e?Dd:Od).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Dd={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new B(!0),stringify:Ed},Od={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new B(!1),stringify:Ed},kd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:ad},Ad={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():ad(e)}},jd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new B(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:ad},Md=e=>typeof e==`bigint`||Number.isInteger(e);function Nd(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function Pd(e,t,n){let{value:r}=e;if(Md(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return ad(e)}const Fd={identify:Md,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Nd(e,2,2,n),stringify:e=>Pd(e,2,`0b`)},Id={identify:Md,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Nd(e,1,8,n),stringify:e=>Pd(e,8,`0`)},Ld={identify:Md,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Nd(e,0,10,n),stringify:ad},Rd={identify:Md,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Nd(e,2,16,n),stringify:e=>Pd(e,16,`0x`)};var zd=class e extends Zu{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=Rl(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Gu(e.key,null):new Gu(e,null),Xu(this.items,t.key)||this.items.push(t)}get(e,t){let n=Xu(this.items,e);return!t&&Rl(n)?z(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Xu(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Gu(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Wu(e,null,n));return i}};zd.tag=`tag:yaml.org,2002:set`;const Bd={collection:`map`,identify:e=>e instanceof Set,nodeClass:zd,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>zd.from(e,t,n),resolve(e,t){if(Ll(e)){if(e.hasAllNullValues(!0))return Object.assign(new zd,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function Vd(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Hd(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return ad(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}const Ud={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Vd(e,n),stringify:Hd},Wd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Vd(e,!1),stringify:Hd},Gd={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Gd.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Vd(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Kd=[Qu,td,nd,rd,Dd,Od,Fd,Id,Ld,Rd,kd,Ad,jd,bd,Lu,Td,Cd,Bd,Ud,Wd,Gd],qd=new Map([[`core`,hd],[`failsafe`,[Qu,td,nd]],[`json`,yd],[`yaml11`,Kd],[`yaml-1.1`,Kd]]),Jd={binary:bd,bool:id,float:cd,floatExp:sd,floatNaN:od,floatTime:Wd,int:pd,intHex:md,intOct:fd,intTime:Ud,map:Qu,merge:Lu,null:rd,omap:Td,pairs:Cd,seq:td,set:Bd,timestamp:Gd},Yd={"tag:yaml.org,2002:binary":bd,"tag:yaml.org,2002:merge":Lu,"tag:yaml.org,2002:omap":Td,"tag:yaml.org,2002:pairs":Cd,"tag:yaml.org,2002:set":Bd,"tag:yaml.org,2002:timestamp":Gd};function Xd(e,t,n){let r=qd.get(t);if(r&&!e)return n&&!r.includes(Lu)?r.concat(Lu):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(qd.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Lu)),i.reduce((e,t)=>{let n=typeof t==`string`?Jd[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Jd).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}const Zd=(e,t)=>e.key<t.key?-1:+(e.key>t.key);var Qd=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Xd(e,`compat`):e?Xd(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Yd:{},this.tags=Xd(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,Al,{value:Qu}),Object.defineProperty(this,Ml,{value:nd}),Object.defineProperty(this,Nl,{value:td}),this.sortMapEntries=typeof a==`function`?a:a===!0?Zd:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function $d(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=ju(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(gu(t,``))}let o=!1,s=null;if(e.contents){if(Vl(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(gu(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=Pu(e.contents,i,()=>s=null,t);s&&(c+=_u(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Pu(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
76
- `)?(n.push(`...`),n.push(gu(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(gu(a(t),``)))}return n.join(`
77
- `)+`
78
- `}var ef=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Pl,{value:kl});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new $l({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[Pl]:{value:kl}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Vl(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){tf(this.contents)&&this.contents.add(e)}addIn(e,t){tf(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=tu(this);e.anchor=!t||n.has(t)?nu(t||`a`,n):t}return new su(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=ru(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=du(e,l,p);return o&&Bl(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Gu(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return tf(this.contents)?this.contents.delete(e):!1}deleteIn(e){return pu(e)?this.contents!=null&&(this.contents=null,!0):tf(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Bl(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return pu(e)?!t&&z(this.contents)?this.contents.value:this.contents:Bl(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Bl(this.contents)?this.contents.has(e):!1}hasIn(e){return pu(e)?this.contents!==void 0:Bl(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=fu(this.schema,[e],t):tf(this.contents)&&this.contents.set(e,t)}setIn(e,t){pu(e)?this.contents=t:this.contents==null?this.contents=fu(this.schema,Array.from(e),t):tf(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new $l({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new $l({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Qd(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=au(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?iu(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return $d(this,e)}};function tf(e){if(Bl(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var nf=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},rf=class extends nf{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},af=class extends nf{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};const of=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
79
- `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function sf(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function cf(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
80
- `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(cf(t.key)||cf(t.value))return!0}return!1;default:return!0}}function lf(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&cf(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function uf(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||z(e)&&z(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}const df=`All mapping items must start at the same column`;function ff({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Zu)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=sf(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,df)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
81
- `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||cf(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,df);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&lf(r.indent,u,i),n.atKey=!1,uf(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=sf(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&lf(r.indent,f,i),s=c.range[2];let l=new Gu(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
82
- `+_.comment:g.comment=_.comment);let e=new Gu(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function pf({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??$u)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=sf(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&lf(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function mf(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}const hf=`Block collections are not allowed within flow collections`,gf=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function _f({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?Zu:$u))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=sf(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
83
- `+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&cf(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];Rl(t)&&(t=t.value??t.key),t.comment?t.comment+=`
84
- `+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],gf(m)&&i(r.range,`BLOCK_IN_FLOW`,hf)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);gf(f)&&i(g.range,`BLOCK_IN_FLOW`,hf),n.atKey=!1;let _=sf(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?gf(m)&&i(v.range,`BLOCK_IN_FLOW`,hf):_.comment&&(g.comment?g.comment+=`
85
- `+_.comment:g.comment=_.comment);let y=new Gu(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;uf(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Zu(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=mf(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
86
- `+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function vf(e,t,n,r,i,a){let o=n.type===`block-map`?ff(e,t,n,r,a):n.type===`block-seq`?pf(e,t,n,r,a):_f(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function yf(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Zu.tagName&&s===`map`||o===$u.tagName&&s===`seq`)return vf(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),vf(e,t,n,i,o)}let l=vf(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=Vl(u)?u:new B(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function bf(e,t,n){let r=t.offset,i=xf(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?B.BLOCK_FOLDED:B.BLOCK_LITERAL,o=t.source?Sf(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
87
- `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
88
- `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===B.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
89
- `):t.length>c||r[0]===` `?(f===` `?f=`
90
- `:!p&&f===`
91
- `&&(f=`
92
-
93
- `),d+=f+t.slice(c)+r,f=`
94
- `,p=!0):r===``?f===`
95
- `?d+=`
96
- `:f=`
97
- `:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
98
- `+o[e][0].slice(c);d[d.length-1]!==`
99
- `&&(d+=`
100
- `);break;default:d+=`
101
- `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function xf({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function Sf(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function Cf(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=B.PLAIN,c=wf(a,l);break;case`single-quoted-scalar`:s=B.QUOTE_SINGLE,c=Tf(a,l);break;case`double-quoted-scalar`:s=B.QUOTE_DOUBLE,c=Df(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=mf(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function wf(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),Ef(e)}function Tf(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),Ef(e.slice(1,-1)).replace(/''/g,`'`)}function Ef(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
102
- `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
103
- `,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
104
- `?i+=a:a=`
105
- `:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function Df(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
106
- `){if(i===`
107
- `){let{fold:t,offset:i}=Of(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=kf[i];if(a)n+=a;else if(i===`
108
- `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
109
- `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=Af(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
110
- `&&(a!==`\r`||e[r+2]!==`
111
- `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function Of(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
112
- `||r===`\r`)&&(r!==`\r`||e[t+2]===`
113
- `);)r===`
114
- `&&(n+=`
115
- `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}const kf={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
116
- `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function Af(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function jf(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?bf(e,t,r):Cf(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[Ml]:c?Mf(e.schema,i,c,n,r):t.type===`scalar`?Nf(e,i,t,r):e.schema[Ml];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=z(a)?a:new B(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new B(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Mf(e,t,n,r,i){if(n===`!`)return e[Ml];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[Ml])}function Nf({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[Ml];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[Ml];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function Pf(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}const Ff={composeNode:If,composeEmptyNode:Lf};function If(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Rf(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=jf(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=yf(Ff,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=Lf(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!z(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Lf(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=jf(e,{type:`scalar`,offset:Pf(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Rf({options:e},{offset:t,source:n,end:r},i){let a=new su(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=mf(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function zf(e,t,{offset:n,start:r,value:i,end:a},o){let s=new ef(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=sf(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?If(c,i,l,o):Lf(c,l.end,r,null,l,o);let u=s.contents.range[2],d=mf(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Bf(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function Vf(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
117
-
118
- `:`
119
- `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Hf=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Bf(e);r?this.warnings.push(new af(i,t,n)):this.errors.push(new rf(i,t,n))},this.directives=new $l({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Vf(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Bl(i)&&!i.flow&&i.items.length>0){let e=i.items[0];Rl(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Vf(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Bf(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=zf(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new rf(Bf(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new rf(Bf(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=mf(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new rf(Bf(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new ef(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}};const Uf=e=>`type`in e?Wf(e):Gf(e);function Wf(e){switch(e.type){case`block-scalar`:{let t=``;for(let n of e.props)t+=Wf(n);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=Gf(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=Gf(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=Gf(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function Gf({start:e,key:t,sep:n,value:r}){let i=``;for(let t of e)i+=t.source;if(t&&(i+=Wf(t)),n)for(let e of n)i+=e.source;return r&&(i+=Wf(r)),i}const Kf=Symbol(`break visit`),qf=Symbol(`skip children`),Jf=Symbol(`remove item`);function Yf(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Xf(Object.freeze([]),e,t)}Yf.BREAK=Kf,Yf.SKIP=qf,Yf.REMOVE=Jf,Yf.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Yf.parentCollection=(e,t)=>{let n=Yf.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Xf(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Xf(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Kf)return Kf;else r===Jf&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}const Zf=e=>!!e&&`items`in e,Qf=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function $f(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
120
- `:case`\r
121
- `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function ep(e){switch(e){case void 0:case` `:case`
122
- `:case`\r`:case` `:return!0;default:return!1}}const tp=new Set(`0123456789ABCDEFabcdef`),np=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),rp=new Set(`,[]{}`),ip=new Set(` ,[]{}
123
- \r `),ap=e=>!e||ip.has(e);var op=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
124
- `||t===`\r`&&this.buffer[e+1]===`
125
- `}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
126
- `||!t&&!this.atEnd)return e+n+1}return t===`
127
- `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&ep(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
128
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&ep(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ep(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&ep(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(ap),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&ep(r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(ap),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||ep(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
129
- `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
130
- `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>ep(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
131
- `:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
132
- `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
133
- `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
134
- `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
135
- `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(ep(r)||e&&rp.has(r))break;t=n}else if(ep(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
136
- `?(n+=1,r=`
137
- `,i=this.buffer[n+1]):t=n),i===`#`||e&&rp.has(i))break;if(r===`
138
- `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&rp.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(ap),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(ep(n)||t&&rp.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!ep(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(np.has(t))t=this.buffer[++e];else if(t===`%`&&tp.has(this.buffer[e+1])&&tp.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
139
- `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
140
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},sp=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function cp(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function lp(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function up(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function dp(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function fp(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function pp(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function mp(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!cp(t.start,`explicit-key-ind`)&&!cp(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,up(t.value)?t.value.end?pp(t.value.end,t.sep):t.value.end=t.sep:pp(t.start,t.sep),delete t.sep)}var hp=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new op,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=$f(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&mp(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&lp(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:lp(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=fp(dp(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
141
- `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
142
- `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){pp(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(cp(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=fp(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(cp(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(up(t.key)&&!cp(t.sep,`newline`)){let e=fp(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):cp(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!cp(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){pp(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||cp(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=fp(dp(t));mp(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
143
- `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
144
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=fp(dp(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=fp(dp(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function gp(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new sp||null,prettyErrors:t}}function _p(e,t={}){let{lineCounter:n,prettyErrors:r}=gp(t),i=new hp(n?.addNewLine),a=new Hf(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new rf(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(of(e,n)),o.warnings.forEach(of(e,n))),o}function vp(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=_p(e,n);if(!i)return null;if(i.warnings.forEach(e=>Iu(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function yp(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Il(e)&&!r?e.toString(n):new ef(e,r,n).toString(n)}var bp=t({__parsePrettierYamlConfig:()=>Q_,default:()=>Bp,languages:()=>tg,options:()=>rg,parsers:()=>ig,printers:()=>Z_}),xp=Object.create,Sp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,wp=Object.getOwnPropertyNames,Tp=Object.getPrototypeOf,Ep=Object.prototype.hasOwnProperty,Dp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Op=(e,t)=>{for(var n in t)Sp(e,n,{get:t[n],enumerable:!0})},kp=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of wp(t))!Ep.call(e,i)&&i!==n&&Sp(e,i,{get:()=>t[i],enumerable:!(r=Cp(t,i))||r.enumerable});return e},Ap=(e,t,n)=>(n=e==null?{}:xp(Tp(e)),kp(t||!e||!e.__esModule?Sp(n,`default`,{value:e,enumerable:!0}):n,e)),jp=Dp(e=>{var t={ANCHOR:`&`,COMMENT:`#`,TAG:`!`,DIRECTIVES_END:`-`,DOCUMENT_END:`.`},n={ALIAS:`ALIAS`,BLANK_LINE:`BLANK_LINE`,BLOCK_FOLDED:`BLOCK_FOLDED`,BLOCK_LITERAL:`BLOCK_LITERAL`,COMMENT:`COMMENT`,DIRECTIVE:`DIRECTIVE`,DOCUMENT:`DOCUMENT`,FLOW_MAP:`FLOW_MAP`,FLOW_SEQ:`FLOW_SEQ`,MAP:`MAP`,MAP_KEY:`MAP_KEY`,MAP_VALUE:`MAP_VALUE`,PLAIN:`PLAIN`,QUOTE_DOUBLE:`QUOTE_DOUBLE`,QUOTE_SINGLE:`QUOTE_SINGLE`,SEQ:`SEQ`,SEQ_ITEM:`SEQ_ITEM`},r=`tag:yaml.org,2002:`,i={MAP:`tag:yaml.org,2002:map`,SEQ:`tag:yaml.org,2002:seq`,STR:`tag:yaml.org,2002:str`};function a(e){let t=[0],n=e.indexOf(`
145
- `);for(;n!==-1;)n+=1,t.push(n),n=e.indexOf(`
146
- `,n);return t}function o(e){let t,n;return typeof e==`string`?(t=a(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=a(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function s(e,t){if(typeof e!=`number`||e<0)return null;let{lineStarts:n,src:r}=o(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){let r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}let i=n.length;return{line:i,col:e-n[i-1]+1}}function c(e,t){let{lineStarts:n,src:r}=o(t);if(!n||!(e>=1)||e>n.length)return null;let i=n[e-1],a=n[e];for(;a&&a>i&&r[a-1]===`
147
- `;)--a;return r.slice(i,a)}function l({start:e,end:t},n,r=80){let i=c(e.line,n);if(!i)return null;let{col:a}=e;if(i.length>r){if(a<=r-10)i=i.substr(0,r-1)+`…`;else{let e=Math.round(r/2);i.length>a+e&&(i=i.substr(0,a+e-1)+`…`),a-=i.length-r,i=`…`+i.substr(1-r)}}let o=1,s=``;t&&(t.line===e.line&&a+(t.col-e.col)<=r+1?o=t.col-e.col:(o=Math.min(i.length+1,r)-a,s=`…`));let l=a>1?` `.repeat(a-1):``,u=`^`.repeat(o);return`${i}
148
- ${l}${u}${s}`}var u=class e{static copy(t){return new e(t.start,t.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return typeof this.start!=`number`||!this.end||this.end<=this.start}setOrigRange(e,t){let{start:n,end:r}=this;if(e.length===0||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;let a=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,a}},d=class e{static addStringTerminator(t,n,r){if(r[r.length-1]===`
149
- `)return r;let i=e.endOfWhiteSpace(t,n);return i>=t.length||t[i]===`
150
- `?r+`
151
- `:r}static atDocumentBoundary(e,n,r){let i=e[n];if(!i)return!0;let a=e[n-1];if(a&&a!==`
152
- `)return!1;if(r){if(i!==r)return!1}else if(i!==t.DIRECTIVES_END&&i!==t.DOCUMENT_END)return!1;let o=e[n+1],s=e[n+2];if(o!==i||s!==i)return!1;let c=e[n+3];return!c||c===`
153
- `||c===` `||c===` `}static endOfIdentifier(e,t){let n=e[t],r=n===`<`,i=r?[`
154
- `,` `,` `,`>`]:[`
155
- `,` `,` `,`[`,`]`,`{`,`}`,`,`];for(;n&&i.indexOf(n)===-1;)n=e[t+=1];return r&&n===`>`&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;n===` `;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&n!==`
156
- `;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;n===` `||n===` `;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if(n===`
157
- `)return t;for(;n&&n!==`
158
- `;)n=e[--t];return t+1}static endOfBlockIndent(t,n,r){let i=e.endOfIndent(t,r);if(i>r+n)return i;{let n=e.endOfWhiteSpace(t,i),r=t[n];if(!r||r===`
159
- `)return n}return null}static atBlank(e,t,n){let r=e[t];return r===`
160
- `||r===` `||r===` `||n&&!r}static nextNodeIsIndented(e,t,n){return!e||t<0?!1:t>0||n&&e===`-`}static normalizeOffset(t,n){let r=t[n];return r?r!==`
161
- `&&t[n-1]===`
162
- `?n-1:e.endOfWhiteSpace(t,n):n}static foldNewline(t,n,r){let i=0,a=!1,o=``,s=t[n+1];for(;s===` `||s===` `||s===`
163
- `;){switch(s){case`
164
- `:i=0,n+=1,o+=`
165
- `;break;case` `:i<=r&&(a=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case` `:i+=1,n+=1}s=t[n+1]}return o||=` `,s&&i<=r&&(a=!0),{fold:o,offset:n,error:a}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;let{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+ +!!n,i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.ANCHOR,!0);if(n!=null)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,t.COMMENT,!0);r!=null&&e.push(r)}return e.length>0?e.join(`
166
- `):null}commentHasRequiredWhitespace(t){let{src:n}=this.context;if(this.header&&t===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return t!==r||e.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===t.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==t.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=s(this.range.start,this.context.root);if(e)return{start:e,end:s(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.TAG,!1);if(n!=null){if(n[1]===`<`)return{verbatim:n.slice(2,-1)};{let[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if(n[r]===`
167
- `)return!0;return!1}parseComment(n){let{src:r}=this.context;if(r[n]===t.COMMENT){let t=e.endOfLine(r,n+1),i=new u(n,t);return this.props.push(i),t}return n}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(n=>n.setOrigRange(e,t)),t}toString(){let{context:{src:t},range:n,value:r}=this;if(r!=null)return r;let i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}},f=class extends Error{constructor(e,t,n){if(!n||!(t instanceof d))throw Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset==`number`){this.range=new u(this.offset,this.offset+1);let t=e&&s(this.offset,e);if(t){let e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;let r=e&&l(this.linePos,e);r&&(this.message+=`:
168
-
169
- ${r}
170
- `)}delete this.source}},p=class extends f{constructor(e,t){super(`YAMLReferenceError`,e,t)}},m=class extends f{constructor(e,t){super(`YAMLSemanticError`,e,t)}},h=class extends f{constructor(e,t){super(`YAMLSyntaxError`,e,t)}},g=class extends f{constructor(e,t){super(`YAMLWarning`,e,t)}};function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=class e extends d{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&r!==`
171
- `&&!(n&&(r===`[`||r===`]`||r===`{`||r===`}`||r===`,`));){let t=e[i+1];if(r===`:`&&(!t||t===`
172
- `||t===` `||t===` `||n&&t===`,`)||(r===` `||r===` `)&&t===`#`)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{src:n}=this.context,r=n[t-1];for(;e<t&&(r===`
173
- `||r===` `||r===` `);)r=n[--t-1];let i=``;for(let r=e;r<t;++r){let e=n[r];if(e===`
174
- `){let{fold:e,offset:t}=d.foldNewline(n,r,-1);i+=e,r=t}else if(e===` `||e===` `){let a=r,o=n[r+1];for(;r<t&&(o===` `||o===` `);)r+=1,o=n[r+1];o!==`
175
- `&&(i+=r>a?n.slice(a,r+1):e)}else i+=e}let a=n[e];switch(a){case` `:return{errors:[new m(this,`Plain value cannot start with a tab character`)],str:i};case`@`:case"`":{let e=`Plain value cannot start with reserved character ${a}`;return{errors:[new m(this,e)],str:i}}default:return i}}parseBlockValue(t){let{indent:n,inFlow:r,src:i}=this.context,a=t,o=t;for(let t=i[a];t===`
176
- `&&!d.atDocumentBoundary(i,a+1);t=i[a]){let t=d.endOfBlockIndent(i,n,a+1);if(t===null||i[t]===`#`)break;i[t]===`
177
- `?a=t:(o=e.endOfLine(i,t,r),a=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=t),this.valueRange.end=o,o}parse(t,n){this.context=t;let{inFlow:r,src:i}=t,a=n,o=i[a];return o&&o!==`#`&&o!==`
178
- `&&(a=e.endOfLine(i,n,r)),this.valueRange=new u(n,a),a=d.endOfWhiteSpace(i,a),a=this.parseComment(a),(!this.hasComment||this.valueRange.isEmpty())&&(a=this.parseBlockValue(a)),a}};e.Char=t,e.Node=d,e.PlainValue=v,e.Range=u,e.Type=n,e.YAMLError=f,e.YAMLReferenceError=p,e.YAMLSemanticError=m,e.YAMLSyntaxError=h,e.YAMLWarning=g,e._defineProperty=_,e.defaultTagPrefix=r,e.defaultTags=i}),Mp=Dp(e=>{var t=jp(),n=class extends t.Node{constructor(){super(t.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new t.Range(n,n+1),n+1}},r=class extends t.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:i,src:a}=e,{atLineStart:o,lineStart:s}=e;!o&&this.type===t.Type.SEQ_ITEM&&(this.error=new t.YAMLSemanticError(this,`Sequence items must not have preceding content on the same line`));let c=o?r-s:e.indent,l=t.Node.endOfWhiteSpace(a,r+1),u=a[l],d=u===`#`,f=[],p=null;for(;u===`
179
- `||u===`#`;){if(u===`#`){let e=t.Node.endOfLine(a,l+1);f.push(new t.Range(l,e)),l=e}else o=!0,s=l+1,a[t.Node.endOfWhiteSpace(a,s)]===`
180
- `&&f.length===0&&(p=new n,s=p.parse({src:a},s)),l=t.Node.endOfIndent(a,s);u=a[l]}if(t.Node.nextNodeIsIndented(u,l-(s+c),this.type!==t.Type.SEQ_ITEM)?this.node=i({atLineStart:o,inCollection:!1,indent:c,lineStart:s,parent:this},l):u&&s>r+1&&(l=s-1),this.node){if(p){let t=e.parent.items||e.parent.contents;t&&t.push(p)}f.length&&Array.prototype.push.apply(this.props,f),l=this.node.range.end}else if(d){let e=f[0];this.props.push(e),l=e.end}else l=t.Node.endOfLine(a,r+1);let m=this.node?this.node.valueRange.end:l;return this.valueRange=new t.Range(r,m),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:n,range:r,value:i}=this;if(i!=null)return i;let a=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return t.Node.addStringTerminator(e,r.end,a)}},i=class extends t.Node{constructor(){super(t.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new t.Range(n,r),r}};function a(e){let n=e;for(;n instanceof r;)n=n.node;if(!(n instanceof o))return null;let i=n.items.length,a=-1;for(let e=i-1;e>=0;--e){let r=n.items[e];if(r.type===t.Type.COMMENT){let{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;a=e}else if(r.type===t.Type.BLANK_LINE)a=e;else break}if(a===-1)return null;let s=n.items.splice(a,i-a),c=s[0].range.start;for(;n.range.end=c,n.valueRange&&n.valueRange.end>c&&(n.valueRange.end=c),n!==e;)n=n.context.parent;return s}var o=class e extends t.Node{static nextContentHasIndent(n,r,i){let a=t.Node.endOfLine(n,r)+1;r=t.Node.endOfWhiteSpace(n,a);let o=n[r];return o?r>=a+i?!0:o!==`#`&&o!==`
181
- `?!1:e.nextContentHasIndent(n,r,i):!1}constructor(e){super(e.type===t.Type.SEQ_ITEM?t.Type.SEQ:t.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);let n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];let n=a(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(r,o){this.context=r;let{parseNode:s,src:c}=r,l=t.Node.startOfLine(c,o),u=this.items[0];u.context.parent=this,this.valueRange=t.Range.copy(u.valueRange);let d=u.range.start-u.context.lineStart,f=o;f=t.Node.normalizeOffset(c,f);let p=c[f],m=t.Node.endOfWhiteSpace(c,l)===f,h=!1;for(;p;){for(;p===`
182
- `||p===`#`;){if(m&&p===`
183
- `&&!h){let e=new n;if(f=e.parse({src:c},f),this.valueRange.end=f,f>=c.length){p=null;break}this.items.push(e),--f}else if(p===`#`){if(f<l+d&&!e.nextContentHasIndent(c,f,d))return f;let t=new i;if(f=t.parse({indent:d,lineStart:l,src:c},f),this.items.push(t),this.valueRange.end=f,f>=c.length){p=null;break}}if(l=f+1,f=t.Node.endOfIndent(c,l),t.Node.atBlank(c,f)){let e=t.Node.endOfWhiteSpace(c,f),n=c[e];(!n||n===`
184
- `||n===`#`)&&(f=e)}p=c[f],m=!0}if(!p)break;if(f!==l+d&&(m||p!==`:`)){if(f<l+d){l>o&&(f=l);break}this.error||=new t.YAMLSyntaxError(this,`All collection items must start at the same column`)}if(u.type===t.Type.SEQ_ITEM){if(p!==`-`){l>o&&(f=l);break}}else if(p===`-`&&!this.error){let e=c[f+1];(!e||e===`
185
- `||e===` `||e===` `)&&(this.error=new t.YAMLSyntaxError(this,`A collection cannot be both a mapping and a sequence`))}let r=s({atLineStart:m,inCollection:!0,indent:d,lineStart:l,parent:this},f);if(!r)return f;if(this.items.push(r),this.valueRange.end=r.valueRange.end,f=t.Node.normalizeOffset(c,r.range.end),p=c[f],m=!1,h=r.includesTrailingLines,p){let e=f-1,t=c[e];for(;t===` `||t===` `;)t=c[--e];t===`
186
- `&&(l=e+1,m=!0)}let g=a(r);g&&Array.prototype.push.apply(this.items,g)}return f}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{t=n.setOrigRanges(e,t)}),t}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(i!=null)return i;let a=e.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){let t=n[e],{atLineStart:r,indent:i}=t.context;if(r)for(let e=0;e<i;++e)a+=` `;a+=String(t)}return t.Node.addStringTerminator(e,r.end,a)}},s=class extends t.Node{constructor(){super(t.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:t}=this.context,n=e,r=t[n];for(;r&&r!==`
187
- `&&r!==` `&&r!==` `;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){let{src:n}=this.context,r=e,i=n[r];for(;i&&i!==`
188
- `&&i!==`#`;)i=n[r+=1];return this.valueRange=new t.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new t.Range(n,r),r}},c=class e extends t.Node{static startCommentOrEndBlankLine(e,n){let r=t.Node.endOfWhiteSpace(e,n),i=e[r];return i===`#`||i===`
189
- `?r:n}constructor(){super(t.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(r){let{src:a}=this.context;this.directives=[];let o=!0,c=!1,l=r;for(;!t.Node.atDocumentBoundary(a,l,t.Char.DIRECTIVES_END);)switch(l=e.startCommentOrEndBlankLine(a,l),a[l]){case`
190
- `:if(o){let e=new n;l=e.parse({src:a},l),l<a.length&&this.directives.push(e)}else l+=1,o=!0;break;case`#`:{let e=new i;l=e.parse({src:a},l),this.directives.push(e),o=!1}break;case`%`:{let e=new s;l=e.parse({parent:this,src:a},l),this.directives.push(e),c=!0,o=!1}break;default:return c?this.error=new t.YAMLSemanticError(this,`Missing directives-end indicator line`):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return a[l]?(this.directivesEndMarker=new t.Range(l,l+3),l+3):(c?this.error=new t.YAMLSemanticError(this,`Missing directives-end indicator line`):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(r){let{parseNode:o,src:s}=this.context;this.contents||=[];let c=r;for(;s[c-1]===`-`;)--c;let l=t.Node.endOfWhiteSpace(s,r),u=c===r;for(this.valueRange=new t.Range(l);!t.Node.atDocumentBoundary(s,l,t.Char.DOCUMENT_END);){switch(s[l]){case`
191
- `:if(u){let e=new n;l=e.parse({src:s},l),l<s.length&&this.contents.push(e)}else l+=1,u=!0;c=l;break;case`#`:{let e=new i;l=e.parse({src:s},l),this.contents.push(e),u=!1}break;default:{let e=t.Node.endOfIndent(s,l),n=o({atLineStart:u,indent:-1,inFlow:!1,inCollection:!1,lineStart:c,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),l=n.range.end,u=!1;let r=a(n);r&&Array.prototype.push.apply(this.contents,r)}}l=e.startCommentOrEndBlankLine(s,l)}if(this.valueRange.end=l,s[l]&&(this.documentEndMarker=new t.Range(l,l+3),l+=3,s[l])){if(l=t.Node.endOfWhiteSpace(s,l),s[l]===`#`){let e=new i;l=e.parse({src:s},l),this.contents.push(e)}switch(s[l]){case`
192
- `:l+=1;break;case void 0:break;default:this.error=new t.YAMLSyntaxError(this,`Document end marker line cannot have a non-comment suffix`)}}return l}parse(e,t){e.root=this,this.context=e;let{src:n}=e,r=n.charCodeAt(t)===65279?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach(n=>{t=n.setOrigRanges(e,t)}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(n=>{t=n.setOrigRanges(e,t)}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let i=n.join(``);return e.length>0&&((n.length>0||e[0].type===t.Type.COMMENT)&&(i+=`---
193
- `),i+=e.join(``)),i[i.length-1]!==`
194
- `&&(i+=`
195
- `),i}},l=class extends t.Node{parse(e,n){this.context=e;let{src:r}=e,i=t.Node.endOfIdentifier(r,n+1);return this.valueRange=new t.Range(n+1,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}},u={CLIP:`CLIP`,KEEP:`KEEP`,STRIP:`STRIP`},d=class extends t.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=u.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===u.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return``;let a=null,o=i[n-1];for(;o===`
196
- `||o===` `||o===` `;){if(--n,n<=e){if(this.chomping===u.KEEP)break;return``}o===`
197
- `&&(a=n),o=i[n-1]}let s=n+1;a&&(this.chomping===u.KEEP?(s=a,n=this.valueRange.end):n=a);let c=r+this.blockIndent,l=this.type===t.Type.BLOCK_FOLDED,d=!0,f=``,p=``,m=!1;for(let r=e;r<n;++r){for(let e=0;e<c&&i[r]===` `;++e)r+=1;let e=i[r];if(e===`
198
- `)p===`
199
- `?f+=`
200
- `:p=`
201
- `;else{let a=t.Node.endOfLine(i,r),o=i.slice(r,a);r=a,l&&(e===` `||e===` `)&&r<s?(p===` `?p=`
202
- `:!m&&!d&&p===`
203
- `&&(p=`
204
-
205
- `),f+=p+o,p=a<n&&i[a]||``,m=!0):(f+=p+o,p=l&&r<s?` `:`
206
- `,m=!1),d&&o!==``&&(d=!1)}}return this.chomping===u.STRIP?f:f+`
207
- `}parseBlockHeader(e){let{src:n}=this.context,r=e+1,i=``;for(;;){let a=n[r];switch(a){case`-`:this.chomping=u.STRIP;break;case`+`:this.chomping=u.KEEP;break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:i+=a;break;default:return this.blockIndent=Number(i)||null,this.header=new t.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,i=!!this.blockIndent,a=e,o=e,s=1;for(let e=r[a];e===`
208
- `&&(a+=1,!t.Node.atDocumentBoundary(r,a));e=r[a]){let e=t.Node.endOfBlockIndent(r,n,a);if(e===null)break;let c=r[e],l=e-(a+n);if(this.blockIndent){if(c&&c!==`
209
- `&&l<this.blockIndent){if(r[e]===`#`)break;if(!this.error){let e=`Block scalars must not be less indented than their ${i?`explicit indentation indicator`:`first line`}`;this.error=new t.YAMLSemanticError(this,e)}}}else r[e]===`
210
- `?l>s&&(s=l):(l<s&&(this.error=new t.YAMLSemanticError(this,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`)),this.blockIndent=l);a=r[e]===`
211
- `?e:o=t.Node.endOfLine(r,e)}return this.chomping!==u.KEEP&&(a=r[o]?o+1:o),this.valueRange=new t.Range(e+1,a),a}parse(e,n){this.context=e;let{src:r}=e,i=this.parseBlockHeader(n);return i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}},f=class extends t.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===t.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,r){this.context=e;let{parseNode:a,src:o}=e,{indent:s,lineStart:c}=e,l=o[r];this.items=[{char:l,offset:r}];let u=t.Node.endOfWhiteSpace(o,r+1);for(l=o[u];l&&l!==`]`&&l!==`}`;){switch(l){case`
212
- `:if(c=u+1,o[t.Node.endOfWhiteSpace(o,c)]===`
213
- `){let e=new n;c=e.parse({src:o},c),this.items.push(e)}u=t.Node.endOfIndent(o,c),u<=c+s&&(l=o[u],u<c+s||l!==`]`&&l!==`}`)&&(this.error=new t.YAMLSemanticError(this,`Insufficient indentation in flow collection`));break;case`,`:this.items.push({char:l,offset:u}),u+=1;break;case`#`:{let e=new i;u=e.parse({src:o},u),this.items.push(e)}break;case`?`:case`:`:{let e=o[u+1];if(e===`
214
- `||e===` `||e===` `||e===`,`||l===`:`&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:u}),u+=1;break}}default:{let e=a({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:c,parent:this},u);if(!e)return this.valueRange=new t.Range(r,u),u;this.items.push(e),u=t.Node.normalizeOffset(o,e.range.end)}}u=t.Node.endOfWhiteSpace(o,u),l=o[u]}return this.valueRange=new t.Range(r,u+1),l&&(this.items.push({char:l,offset:u}),u=t.Node.endOfWhiteSpace(o,u+1),u=this.parseComment(u)),u}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{if(r instanceof t.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let t=n;for(;t<e.length&&!(e[t]>r.offset);)++t;r.origOffset=r.offset+t,n=t}}),n}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(i!=null)return i;let a=n.filter(e=>e instanceof t.Node),o=``,s=r.start;return a.forEach(t=>{let n=e.slice(s,t.range.start);s=t.range.end,o+=n+String(t),o[o.length-1]===`
215
- `&&e[s-1]!==`
216
- `&&e[s]===`
217
- `&&(s+=1)}),o+=e.slice(s,r.end),t.Node.addStringTerminator(e,r.end,o)}},p=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n&&n!==`"`;)t+=n===`\\`?2:1,n=e[t];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:a}=this.context;a[r-1]!==`"`&&e.push(new t.YAMLSyntaxError(this,`Missing closing "quote`));let o=``;for(let s=n+1;s<r-1;++s){let n=a[s];if(n===`
218
- `){t.Node.atDocumentBoundary(a,s+1)&&e.push(new t.YAMLSemanticError(this,`Document boundary indicators are not allowed within string values`));let{fold:n,offset:r,error:c}=t.Node.foldNewline(a,s,i);o+=n,s=r,c&&e.push(new t.YAMLSemanticError(this,`Multi-line double-quoted string needs to be sufficiently indented`))}else if(n===`\\`)switch(s+=1,a[s]){case`0`:o+=`\0`;break;case`a`:o+=`\x07`;break;case`b`:o+=`\b`;break;case`e`:o+=`\x1B`;break;case`f`:o+=`\f`;break;case`n`:o+=`
219
- `;break;case`r`:o+=`\r`;break;case`t`:o+=` `;break;case`v`:o+=`\v`;break;case`N`:o+=`…`;break;case`_`:o+=`\xA0`;break;case`L`:o+=`\u2028`;break;case`P`:o+=`\u2029`;break;case` `:o+=` `;break;case`"`:o+=`"`;break;case`/`:o+=`/`;break;case`\\`:o+=`\\`;break;case` `:o+=` `;break;case`x`:o+=this.parseCharCode(s+1,2,e),s+=2;break;case`u`:o+=this.parseCharCode(s+1,4,e),s+=4;break;case`U`:o+=this.parseCharCode(s+1,8,e),s+=8;break;case`
220
- `:for(;a[s+1]===` `||a[s+1]===` `;)s+=1;break;default:e.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${a.substr(s-1,2)}`)),o+=`\\`+a[s]}else if(n===` `||n===` `){let e=s,t=a[s+1];for(;t===` `||t===` `;)s+=1,t=a[s+1];t!==`
221
- `&&(o+=s>e?a.slice(e,s+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:i}=this.context,a=i.substr(e,n),o=a.length===n&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;return isNaN(o)?(r.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,n+2)}`)),i.substr(e-2,n+2)):String.fromCodePoint(o)}parse(n,r){this.context=n;let{src:i}=n,a=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,a),a=t.Node.endOfWhiteSpace(i,a),a=this.parseComment(a),a}},m=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if(n===`'`){if(e[t+1]!==`'`)break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:a}=this.context;a[r-1]!==`'`&&e.push(new t.YAMLSyntaxError(this,`Missing closing 'quote`));let o=``;for(let s=n+1;s<r-1;++s){let n=a[s];if(n===`
222
- `){t.Node.atDocumentBoundary(a,s+1)&&e.push(new t.YAMLSemanticError(this,`Document boundary indicators are not allowed within string values`));let{fold:n,offset:r,error:c}=t.Node.foldNewline(a,s,i);o+=n,s=r,c&&e.push(new t.YAMLSemanticError(this,`Multi-line single-quoted string needs to be sufficiently indented`))}else if(n===`'`)o+=n,s+=1,a[s]!==`'`&&e.push(new t.YAMLSyntaxError(this,`Unescaped single quote? This should not happen.`));else if(n===` `||n===` `){let e=s,t=a[s+1];for(;t===` `||t===` `;)s+=1,t=a[s+1];t!==`
223
- `&&(o+=s>e?a.slice(e,s+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parse(n,r){this.context=n;let{src:i}=n,a=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,a),a=t.Node.endOfWhiteSpace(i,a),a=this.parseComment(a),a}};function h(e,n){switch(e){case t.Type.ALIAS:return new l(e,n);case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return new d(e,n);case t.Type.FLOW_MAP:case t.Type.FLOW_SEQ:return new f(e,n);case t.Type.MAP_KEY:case t.Type.MAP_VALUE:case t.Type.SEQ_ITEM:return new r(e,n);case t.Type.COMMENT:case t.Type.PLAIN:return new t.PlainValue(e,n);case t.Type.QUOTE_DOUBLE:return new p(e,n);case t.Type.QUOTE_SINGLE:return new m(e,n);default:return null}}var g=class e{static parseType(e,n,r){switch(e[n]){case`*`:return t.Type.ALIAS;case`>`:return t.Type.BLOCK_FOLDED;case`|`:return t.Type.BLOCK_LITERAL;case`{`:return t.Type.FLOW_MAP;case`[`:return t.Type.FLOW_SEQ;case`?`:return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_KEY:t.Type.PLAIN;case`:`:return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_VALUE:t.Type.PLAIN;case`-`:return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.SEQ_ITEM:t.Type.PLAIN;case`"`:return t.Type.QUOTE_DOUBLE;case`'`:return t.Type.QUOTE_SINGLE;default:return t.Type.PLAIN}}constructor(n={},{atLineStart:r,inCollection:i,inFlow:a,indent:s,lineStart:c,parent:l}={}){t._defineProperty(this,`parseNode`,(n,r)=>{if(t.Node.atDocumentBoundary(this.src,r))return null;let i=new e(this,n),{props:a,type:s,valueStart:c}=i.parseProps(r),l=h(s,a),u=l.parse(i,c);if(l.range=new t.Range(r,u),u<=r&&(l.error=Error(`Node#parse consumed no characters`),l.error.parseEnd=u,l.error.source=l,l.range.end=r+1),i.nodeStartsCollection(l)){!l.error&&!i.atLineStart&&i.parent.type===t.Type.DOCUMENT&&(l.error=new t.YAMLSyntaxError(l,`Block collection must not have preceding content here (e.g. directives-end indicator)`));let n=new o(l);return u=n.parse(new e(i),u),n.range=new t.Range(r,u),n}return l}),this.atLineStart=r??(n.atLineStart||!1),this.inCollection=i??(n.inCollection||!1),this.inFlow=a??(n.inFlow||!1),this.indent=s??n.indent,this.lineStart=c??n.lineStart,this.parent=l??(n.parent||{}),this.root=n.root,this.src=n.src}nodeStartsCollection(e){let{inCollection:n,inFlow:i,src:a}=this;if(n||i)return!1;if(e instanceof r)return!0;let o=e.range.end;return a[o]===`
224
- `||a[o-1]===`
225
- `?!1:(o=t.Node.endOfWhiteSpace(a,o),a[o]===`:`)}parseProps(n){let{inFlow:r,parent:i,src:a}=this,o=[],s=!1;n=this.atLineStart?t.Node.endOfIndent(a,n):t.Node.endOfWhiteSpace(a,n);let c=a[n];for(;c===t.Char.ANCHOR||c===t.Char.COMMENT||c===t.Char.TAG||c===`
226
- `;){if(c===`
227
- `){let e=n,r;do r=e+1,e=t.Node.endOfIndent(a,r);while(a[e]===`
228
- `);let o=e-(r+this.indent),c=i.type===t.Type.SEQ_ITEM&&i.context.atLineStart;if(a[e]!==`#`&&!t.Node.nextNodeIsIndented(a[e],o,!c))break;this.atLineStart=!0,this.lineStart=r,s=!1,n=e}else if(c===t.Char.COMMENT){let e=t.Node.endOfLine(a,n+1);o.push(new t.Range(n,e)),n=e}else{let e=t.Node.endOfIdentifier(a,n+1);c===t.Char.TAG&&a[e]===`,`&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(a.slice(n+1,e+13))&&(e=t.Node.endOfIdentifier(a,e+5)),o.push(new t.Range(n,e)),s=!0,n=t.Node.endOfWhiteSpace(a,e)}c=a[n]}return s&&c===`:`&&t.Node.atBlank(a,n+1,!0)&&--n,{props:o,type:e.parseType(a,n,r),valueStart:n}}};function _(e){let t=[];e.indexOf(`\r`)!==-1&&(e=e.replace(/\r\n?/g,(e,n)=>(e.length>1&&t.push(n),`
229
- `)));let n=[],r=0;do{let t=new c,i=new g({src:e});r=t.parse(i,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(t.length===0)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join(`...
230
- `),n}e.parse=_}),Np=Dp(e=>{var t=jp();function n(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}
231
- ${t}${e}`:e}function r(e,t,n){return n?n.indexOf(`
232
- `)===-1?`${e} #${n}`:`${e}
233
- `+n.replace(/^/gm,`${t||``}#`):e}var i=class{};function a(e,t,n){if(Array.isArray(e))return e.map((e,t)=>a(e,String(t),n));if(e&&typeof e.toJSON==`function`){let r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});let i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return(!n||!n.keep)&&typeof e==`bigint`?Number(e):e}var o=class extends i{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:a(this.value,e,t)}toString(){return String(this.value)}};function s(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else{let e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}var c=e=>e==null||typeof e==`object`&&e[Symbol.iterator]().next().done,l=class e extends i{constructor(e){super(),t._defineProperty(this,`items`,[]),this.schema=e}addIn(t,n){if(c(t))this.add(n);else{let[r,...i]=t,a=this.get(r,!0);if(a instanceof e)a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,s(this.schema,i,n));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn([t,...n]){if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(r instanceof e)return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn([t,...n],r){let i=this.get(t,!0);return n.length===0?!r&&i instanceof o?i.value:i:i instanceof e?i.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!==`PAIR`)return!1;let t=e.value;return t==null||t instanceof o&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([t,...n]){if(n.length===0)return this.has(t);let r=this.get(t,!0);return r instanceof e&&r.hasIn(n)}setIn([t,...n],r){if(n.length===0)this.set(t,r);else{let i=this.get(t,!0);if(i instanceof e)i.setIn(n,r);else if(i===void 0&&this.schema)this.set(t,s(this.schema,n,r));else throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}toJSON(){return null}toString(n,{blockItem:i,flowChars:a,isMap:o,itemIndent:s},c,l){let{indent:u,indentStep:d,stringify:f}=n,p=this.type===t.Type.FLOW_MAP||this.type===t.Type.FLOW_SEQ||n.inFlow;p&&(s+=d);let m=o&&this.hasAllNullValues();n=Object.assign({},n,{allNullValues:m,indent:s,inFlow:p,type:null});let h=!1,g=!1,_=this.items.reduce((e,t,i)=>{let a;t&&(!h&&t.spaceBefore&&e.push({type:`comment`,str:``}),t.commentBefore&&t.commentBefore.match(/^.*$/gm).forEach(t=>{e.push({type:`comment`,str:`#${t}`})}),t.comment&&(a=t.comment),p&&(!h&&t.spaceBefore||t.commentBefore||t.comment||t.key&&(t.key.commentBefore||t.key.comment)||t.value&&(t.value.commentBefore||t.value.comment))&&(g=!0)),h=!1;let o=f(t,n,()=>a=null,()=>h=!0);return p&&!g&&o.includes(`
234
- `)&&(g=!0),p&&i<this.items.length-1&&(o+=`,`),o=r(o,s,a),h&&(a||p)&&(h=!1),e.push({type:`item`,str:o}),e},[]),v;if(_.length===0)v=a.start+a.end;else if(p){let{start:t,end:n}=a,r=_.map(e=>e.str);if(g||r.reduce((e,t)=>e+t.length+2,2)>e.maxFlowStringSingleLineLength){v=t;for(let e of r)v+=e?`
235
- ${d}${u}${e}`:`
236
- `;v+=`
237
- ${u}${n}`}else v=`${t} ${r.join(` `)} ${n}`}else{let e=_.map(i);v=e.shift();for(let t of e)v+=t?`
238
- ${u}${t}`:`
239
- `}return this.comment?(v+=`
240
- `+this.comment.replace(/^/gm,`${u}#`),c&&c()):h&&l&&l(),v}};t._defineProperty(l,`maxFlowStringSingleLineLength`,60);function u(e){let t=e instanceof o?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var d=class extends l{add(e){this.items.push(e)}delete(e){let t=u(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=u(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&r instanceof o?r.value:r}has(e){let t=u(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=u(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){let n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(a(e,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>e.type===`comment`?e.str:`- ${e.str}`,flowChars:{start:`[`,end:`]`},isMap:!1,itemIndent:(e.indent||``)+` `},t,n):JSON.stringify(this)}},f=(e,t,n)=>t===null?``:typeof t==`object`?e instanceof i&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:``,indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t):String(t),p=class e extends i{constructor(t,n=null){super(),this.key=t,this.value=n,this.type=e.Type.PAIR}get commentBefore(){return this.key instanceof i?this.key.commentBefore:void 0}set commentBefore(e){if(this.key??=new o(null),this.key instanceof i)this.key.commentBefore=e;else throw Error(`Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.`)}addToJSMap(e,t){let n=a(this.key,``,e);if(t instanceof Map){let r=a(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{let r=f(this.key,n,e),i=a(this.value,r,e);r in t?Object.defineProperty(t,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[r]=i}return t}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,n,a){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:c,simpleKeys:u}=e.doc.options,{key:f,value:p}=this,m=f instanceof i&&f.comment;if(u){if(m)throw Error(`With simple keys, key nodes cannot have comments`);if(f instanceof l)throw Error(`With simple keys, collection cannot be used as a key value`)}let h=!u&&(!f||m||(f instanceof i?f instanceof l||f.type===t.Type.BLOCK_FOLDED||f.type===t.Type.BLOCK_LITERAL:typeof f==`object`)),{doc:g,indent:_,indentStep:v,stringify:y}=e;e=Object.assign({},e,{implicitKey:!h,indent:_+v});let b=!1,x=y(f,e,()=>m=null,()=>b=!0);if(x=r(x,e.indent,m),!h&&x.length>1024){if(u)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);h=!0}if(e.allNullValues&&!u)return this.comment?(x=r(x,e.indent,this.comment),n&&n()):b&&!m&&a&&a(),e.inFlow&&!h?x:`? ${x}`;x=h?`? ${x}
241
- ${_}:`:`${x}:`,this.comment&&(x=r(x,e.indent,this.comment),n&&n());let S=``,C=null;if(p instanceof i){if(p.spaceBefore&&(S=`
242
- `),p.commentBefore){let t=p.commentBefore.replace(/^/gm,`${e.indent}#`);S+=`
243
- ${t}`}C=p.comment}else p&&typeof p==`object`&&(p=g.schema.createNode(p,!0));e.implicitKey=!1,!h&&!this.comment&&p instanceof o&&(e.indentAtStart=x.length+1),b=!1,!c&&s>=2&&!e.inFlow&&!h&&p instanceof d&&p.type!==t.Type.FLOW_SEQ&&!p.tag&&!g.anchors.getName(p)&&(e.indent=e.indent.substr(2));let w=y(p,e,()=>C=null,()=>b=!0),T=` `;return S||this.comment?T=`${S}
244
- ${e.indent}`:!h&&p instanceof l?(w[0]!==`[`&&w[0]!==`{`||w.includes(`
245
- `))&&(T=`
246
- ${e.indent}`):w[0]===`
247
- `&&(T=``),b&&!C&&a&&a(),r(x+T+w,e.indent,C)}};t._defineProperty(p,`Type`,{PAIR:`PAIR`,MERGE_PAIR:`MERGE_PAIR`});var m=(e,t)=>{if(e instanceof h){let n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(let r of e.items){let e=m(r,t);e>n&&(n=e)}return n}if(e instanceof p){let n=m(e.key,t),r=m(e.value,t);return Math.max(n,r)}return 1},h=class e extends i{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:a}){let o=Object.keys(n).find(e=>n[e]===t);if(!o&&a&&(o=r.anchors.getName(t)||r.anchors.newName()),o)return`*${o}${i?` `:``}`;let s=r.anchors.getName(t)?`Alias node must be after source node`:`Source node not found for alias node`;throw Error(`${s} [${e}]`)}constructor(e){super(),this.source=e,this.type=t.Type.ALIAS}set tag(e){throw Error(`Alias nodes cannot have tags`)}toJSON(e,n){if(!n)return a(this.source,e,n);let{anchors:r,maxAliasCount:i}=n,o=r.get(this.source);if(!o||o.res===void 0){let e=`This should not happen: Alias anchor was not resolved?`;throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):ReferenceError(e)}if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=m(this.source,r)),o.count*o.aliasCount>i)){let e=`Excessive alias count indicates a resource exhaustion attack`;throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):ReferenceError(e)}return o.res}toString(t){return e.stringify(this,t)}};t._defineProperty(h,`default`,!0);function g(e,t){let n=t instanceof o?t.value:t;for(let r of e)if(r instanceof p&&(r.key===t||r.key===n||r.key&&r.key.value===n))return r}var _=class extends l{add(e,t){e?e instanceof p||(e=new p(e.key||e,e.value)):e=new p(e);let n=g(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(t)n.value=e.value;else throw Error(`Key ${e.key} already set`)}else if(r){let t=this.items.findIndex(t=>r(e,t)<0);t===-1?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){let t=g(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=g(this.items,e),r=n&&n.value;return!t&&r instanceof o?r.value:r}has(e){return!!g(this.items,e)}set(e,t){this.add(new p(e,t),!0)}toJSON(e,t,n){let r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(let e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!(e instanceof p))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:`{`,end:`}`},isMap:!0,itemIndent:e.indent||``},t,n)}},v=`<<`,y=class extends p{constructor(e){if(e instanceof p){let t=e.value;t instanceof d||(t=new d,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o(v),new d);this.type=p.Type.MERGE_PAIR}addToJSMap(e,t){for(let{source:n}of this.value.items){if(!(n instanceof _))throw Error(`Merge sources must be maps`);let r=n.toJSON(null,e,Map);for(let[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){let n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];let r=super.toString(e,t);return this.value=n,r}},b={defaultType:t.Type.BLOCK_LITERAL,lineWidth:76},x={trueStr:`true`,falseStr:`false`},S={asBigInt:!1},C={nullStr:`null`},w={defaultType:t.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function T(e,t,n){for(let{format:n,test:r,resolve:i}of t)if(r){let t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof o||(e=new o(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new o(e)}var ee=`flow`,E=`block`,te=`quoted`,D=(e,t)=>{let n=e[t+1];for(;n===` `||n===` `;){do n=e[t+=1];while(n&&n!==`
248
- `);n=e[t+1]}return t};function ne(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}){if(!i||i<0)return e;let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===E&&(h=D(e,h),h!==-1&&(d=h+c));for(let t;t=e[h+=1];){if(n===te&&t===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(t===`
249
- `)n===E&&(h=D(e,h)),d=h+c,f=void 0;else{if(t===` `&&p&&p!==` `&&p!==`
250
- `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
251
- `&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===te){for(;p===` `||p===` `;)p=t,t=e[h+=1],m=!0;let n=h>_+1?h-2:g-1;if(u[n])return e;l.push(n),u[n]=!0,d=n+c,f=void 0}else m=!0}}p=t}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`
252
- ${t}${e.slice(0,a)}`:(n===te&&u[i]&&(v+=`${e[i]}\\`),v+=`
253
- ${t}${e.slice(i+1,a)}`)}return v}var re=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},w.fold):w.fold,O=e=>/^(%|---|\.\.\.)/m.test(e);function ie(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
254
- `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function ae(e,t){let{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=w.doubleQuoted,a=JSON.stringify(e);if(r)return a;let o=t.indent||(O(e)?` `:``),s=``,c=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(s+=a.slice(c,e)+`\\ `,e+=1,c=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{s+=a.slice(c,e);let t=a.substr(e+2,4);switch(t){case`0000`:s+=`\\0`;break;case`0007`:s+=`\\a`;break;case`000b`:s+=`\\v`;break;case`001b`:s+=`\\e`;break;case`0085`:s+=`\\N`;break;case`00a0`:s+=`\\_`;break;case`2028`:s+=`\\L`;break;case`2029`:s+=`\\P`;break;default:t.substr(0,2)===`00`?s+=`\\x`+t.substr(2):s+=a.substr(e,6)}e+=5,c=e+1}break;case`n`:if(n||a[e+2]===`"`||a.length<i)e+=1;else{for(s+=a.slice(c,e)+`
255
-
256
- `;a[e+2]===`\\`&&a[e+3]===`n`&&a[e+4]!==`"`;)s+=`
257
- `,e+=2;s+=o,a[e+2]===` `&&(s+=`\\`),e+=1,c=e+1}break;default:e+=1}return s=c?s+a.slice(c):a,n?s:ne(s,o,te,re(t))}function oe(e,t){if(t.implicitKey){if(/\n/.test(e))return ae(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return ae(e,t);let n=t.indent||(O(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&
258
- ${n}`)+`'`;return t.implicitKey?r:ne(r,n,ee,re(t))}function se({comment:e,type:n,value:r},i,a,o){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return ae(r,i);let s=i.indent||(i.forceBlockIndent||O(r)?` `:``),c=s?`2`:`1`,l=n===t.Type.BLOCK_FOLDED?!1:n===t.Type.BLOCK_LITERAL||!ie(r,w.fold.lineWidth,s.length),u=l?`|`:`>`;if(!r)return u+`
259
- `;let d=``,f=``;if(r=r.replace(/[\n\t ]*$/,e=>{let t=e.indexOf(`
260
- `);return t===-1?u+=`-`:(r===e||t!==e.length-1)&&(u+=`+`,o&&o()),f=e.replace(/\n$/,``),``}).replace(/^[\n ]*/,e=>{e.indexOf(` `)!==-1&&(u+=c);let t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,``)}),f&&=f.replace(/\n+(?!\n|$)/g,`$&${s}`),d&&=d.replace(/\n+/g,`$&${s}`),e&&(u+=` #`+e.replace(/ ?[\r\n]+/g,` `),a&&a()),!r)return`${u}${c}
261
- ${s}${f}`;if(l)return r=r.replace(/\n+/g,`$&${s}`),`${u}
262
- ${s}${d}${r}${f}`;r=r.replace(/\n+/g,`
263
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${s}`);let p=ne(`${d}${r}${f}`,s,E,w.fold);return`${u}
264
- ${s}${p}`}function ce(e,r,i,a){let{comment:o,type:s,value:c}=e,{actualString:l,implicitKey:u,indent:d,inFlow:f}=r;if(u&&/[\n[\]{},]/.test(c)||f&&/[[\]{},]/.test(c))return ae(c,r);if(!c||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c))return u||f||c.indexOf(`
265
- `)===-1?c.indexOf(`"`)!==-1&&c.indexOf(`'`)===-1?oe(c,r):ae(c,r):se(e,r,i,a);if(!u&&!f&&s!==t.Type.PLAIN&&c.indexOf(`
266
- `)!==-1)return se(e,r,i,a);if(d===``&&O(c))return r.forceBlockIndent=!0,se(e,r,i,a);let p=c.replace(/\n+/g,`$&
267
- ${d}`);if(l){let{tags:e}=r.doc.schema;if(typeof T(p,e,e.scalarFallback).value!=`string`)return ae(c,r)}let m=u?p:ne(p,d,ee,re(r));return o&&!f&&(m.indexOf(`
268
- `)!==-1||o.indexOf(`
269
- `)!==-1)?(i&&i(),n(m,d,o)):m}function le(e,n,r,i){let{defaultType:a}=w,{implicitKey:o,inFlow:s}=n,{type:c,value:l}=e;typeof l!=`string`&&(l=String(l),e=Object.assign({},e,{value:l}));let u=a=>{switch(a){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return se(e,n,r,i);case t.Type.QUOTE_DOUBLE:return ae(l,n);case t.Type.QUOTE_SINGLE:return oe(l,n);case t.Type.PLAIN:return ce(e,n,r,i);default:return null}};(c!==t.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)||(o||s)&&(c===t.Type.BLOCK_FOLDED||c===t.Type.BLOCK_LITERAL))&&(c=t.Type.QUOTE_DOUBLE);let d=u(c);if(d===null&&(d=u(a),d===null))throw Error(`Unsupported default string type ${a}`);return d}function ue({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);if(!isFinite(r))return isNaN(r)?`.nan`:r<0?`-.inf`:`.inf`;let i=JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^\d/.test(i)){let e=i.indexOf(`.`);e<0&&(e=i.length,i+=`.`);let n=t-(i.length-e-1);for(;n-->0;)i+=`0`}return i}function de(e,n){let r,i;switch(n.type){case t.Type.FLOW_MAP:r=`}`,i=`flow map`;break;case t.Type.FLOW_SEQ:r=`]`,i=`flow sequence`;break;default:e.push(new t.YAMLSemanticError(n,`Not a flow collection!?`));return}let a;for(let e=n.items.length-1;e>=0;--e){let r=n.items[e];if(!r||r.type!==t.Type.COMMENT){a=r;break}}if(a&&a.char!==r){let o=`Expected ${i} to end with ${r}`,s;typeof a.offset==`number`?(s=new t.YAMLSemanticError(n,o),s.offset=a.offset+1):(s=new t.YAMLSemanticError(a,o),a.range&&a.range.end&&(s.offset=a.range.end-a.range.start)),e.push(s)}}function fe(e,n){let r=n.context.src[n.range.start-1];r!==`
270
- `&&r!==` `&&r!==` `&&e.push(new t.YAMLSemanticError(n,`Comments must be separated from other tokens by white space characters`))}function pe(e,n){let r=String(n),i=r.substr(0,8)+`...`+r.substr(-8);return new t.YAMLSemanticError(e,`The "${i}" key is too long`)}function me(e,t){for(let{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),i===void 0?(n||!t.commentBefore)&&(t.spaceBefore=!0):t.commentBefore?t.commentBefore+=`
271
- `+i:t.commentBefore=i):i!==void 0&&(e.comment?e.comment+=`
272
- `+i:e.comment=i)}}function he(e,t){let n=t.strValue;return n?typeof n==`string`?n:(n.errors.forEach(n=>{n.source||=t,e.errors.push(n)}),n.str):``}function ge(e,n){let{handle:r,suffix:i}=n.tag,a=e.tagPrefixes.find(e=>e.handle===r);if(!a){let i=e.getDefaults().tagPrefixes;if(i&&(a=i.find(e=>e.handle===r)),!a)throw new t.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!i)throw new t.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if(r===`!`&&(e.version||e.options.version)===`1.0`){if(i[0]===`^`)return e.warnings.push(new t.YAMLWarning(n,`YAML 1.0 ^ tag expansion is not supported`)),i;if(/[:/]/.test(i)){let e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return a.prefix+decodeURIComponent(i)}function _e(e,n){let{tag:r,type:i}=n,a=!1;if(r){let{handle:i,suffix:o,verbatim:s}=r;if(s){if(s!==`!`&&s!==`!!`)return s;let r=`Verbatim tags aren't resolved, so ${s} is invalid.`;e.errors.push(new t.YAMLSemanticError(n,r))}else if(i===`!`&&!o)a=!0;else try{return ge(e,n)}catch(t){e.errors.push(t)}}switch(i){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:case t.Type.QUOTE_DOUBLE:case t.Type.QUOTE_SINGLE:return t.defaultTags.STR;case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;case t.Type.PLAIN:return a?t.defaultTags.STR:null;default:return null}}function ve(e,t,n){let{tags:r}=e.schema,i=[];for(let a of r)if(a.tag===n){if(a.test)i.push(a);else{let n=a.resolve(e,t);return n instanceof l?n:new o(n)}}let a=he(e,t);return typeof a==`string`&&i.length>0?T(a,i,r.scalarFallback):null}function ye({type:e}){switch(e){case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;default:return t.defaultTags.STR}}function be(e,n,r){try{let t=ve(e,n,r);if(t)return r&&n.tag&&(t.tag=r),t}catch(t){return t.source||=n,e.errors.push(t),null}try{let i=ye(n);if(!i)throw Error(`The tag ${r} is unavailable`);let a=`The tag ${r} is unavailable, falling back to ${i}`;e.warnings.push(new t.YAMLWarning(n,a));let o=ve(e,n,i);return o.tag=r,o}catch(r){let i=new t.YAMLReferenceError(n,r.message);return i.stack=r.stack,e.errors.push(i),null}}var xe=e=>{if(!e)return!1;let{type:n}=e;return n===t.Type.MAP_KEY||n===t.Type.MAP_VALUE||n===t.Type.SEQ_ITEM};function Se(e,n){let r={before:[],after:[]},i=!1,a=!1,o=xe(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(let{start:s,end:c}of o)switch(n.context.src[s]){case t.Char.COMMENT:{n.commentHasRequiredWhitespace(s)||e.push(new t.YAMLSemanticError(n,`Comments must be separated from other tokens by white space characters`));let{header:i,valueRange:a}=n;(a&&(s>a.start||i&&s>i.start)?r.after:r.before).push(n.context.src.slice(s+1,c));break}case t.Char.ANCHOR:i&&e.push(new t.YAMLSemanticError(n,`A node can have at most one anchor`)),i=!0;break;case t.Char.TAG:a&&e.push(new t.YAMLSemanticError(n,`A node can have at most one tag`)),a=!0;break}return{comments:r,hasAnchor:i,hasTag:a}}function Ce(e,n){let{anchors:r,errors:i,schema:a}=e;if(n.type===t.Type.ALIAS){let e=n.rawValue,a=r.getNode(e);if(!a){let r=`Aliased anchor not found: ${e}`;return i.push(new t.YAMLReferenceError(n,r)),null}let o=new h(a);return r._cstAliases.push(o),o}let o=_e(e,n);if(o)return be(e,n,o);if(n.type!==t.Type.PLAIN){let e=`Failed to resolve ${n.type} node here`;return i.push(new t.YAMLSyntaxError(n,e)),null}try{return T(he(e,n),a.tags,a.tags.scalarFallback)}catch(e){return e.source||=n,i.push(e),null}}function we(e,n){if(!n)return null;n.error&&e.errors.push(n.error);let{comments:r,hasAnchor:i,hasTag:a}=Se(e.errors,n);if(i){let{anchors:t}=e,r=n.anchor,i=t.getNode(r);i&&(t.map[t.newName(r)]=i),t.map[r]=n}n.type===t.Type.ALIAS&&(i||a)&&e.errors.push(new t.YAMLSemanticError(n,`An alias node must not specify any properties`));let o=Ce(e,n);if(o){o.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(o.cstNode=n),e.options.keepNodeTypes&&(o.type=n.type);let t=r.before.join(`
273
- `);t&&(o.commentBefore=o.commentBefore?`${o.commentBefore}
274
- ${t}`:t);let i=r.after.join(`
275
- `);i&&(o.comment=o.comment?`${o.comment}
276
- ${i}`:i)}return n.resolved=o}function Te(e,n){if(n.type!==t.Type.MAP&&n.type!==t.Type.FLOW_MAP){let r=`A ${n.type} node cannot be resolved as a mapping`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_MAP?ke(e,n):Oe(e,n),a=new _;a.items=i,me(a,r);let o=!1;for(let r=0;r<i.length;++r){let{key:a}=i[r];if(a instanceof l&&(o=!0),e.schema.merge&&a&&a.value===v){i[r]=new y(i[r]);let a=i[r].value.items,o=null;a.some(e=>{if(e instanceof h){let{type:n}=e.source;return n===t.Type.MAP||n===t.Type.FLOW_MAP?!1:o=`Merge nodes aliases can only point to maps`}return o=`Merge nodes can only have Alias nodes as values`}),o&&e.errors.push(new t.YAMLSemanticError(n,o))}else for(let o=r+1;o<i.length;++o){let{key:r}=i[o];if(a===r||a&&r&&Object.prototype.hasOwnProperty.call(a,`value`)&&a.value===r.value){let r=`Map keys must be unique; "${a}" is repeated`;e.errors.push(new t.YAMLSemanticError(n,r));break}}}return o&&!e.options.mapAsMap&&e.warnings.push(new t.YAMLWarning(n,`Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.`)),n.resolved=a,a}var Ee=({context:{lineStart:e,node:n,src:r},props:i})=>{if(i.length===0)return!1;let{start:a}=i[0];if(n&&a>n.valueRange.start||r[a]!==t.Char.COMMENT)return!1;for(let t=e;t<a;++t)if(r[t]===`
277
- `)return!1;return!0};function De(e,n){if(!Ee(e))return;let r=e.getPropValue(0,t.Char.COMMENT,!0),i=!1,a=n.value.commentBefore;if(a&&a.startsWith(r))n.value.commentBefore=a.substr(r.length+1),i=!0;else{let t=n.value.comment;!e.node&&t&&t.startsWith(r)&&(n.value.comment=t.substr(r.length+1),i=!0)}i&&(n.comment=r)}function Oe(e,n){let r=[],i=[],a,o=null;for(let s=0;s<n.items.length;++s){let c=n.items[s];switch(c.type){case t.Type.BLANK_LINE:r.push({afterKey:!!a,before:i.length});break;case t.Type.COMMENT:r.push({afterKey:!!a,before:i.length,comment:c.comment});break;case t.Type.MAP_KEY:a!==void 0&&i.push(new p(a)),c.error&&e.errors.push(c.error),a=we(e,c.node),o=null;break;case t.Type.MAP_VALUE:{a===void 0&&(a=null),c.error&&e.errors.push(c.error),!c.context.atLineStart&&c.node&&c.node.type===t.Type.MAP&&!c.node.context.atLineStart&&e.errors.push(new t.YAMLSemanticError(c.node,`Nested mappings are not allowed in compact mappings`));let r=c.node;if(!r&&c.props.length>0){r=new t.PlainValue(t.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};let e=c.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},typeof c.range.origStart==`number`){let e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}let s=new p(a,we(e,r));De(c,s),i.push(s),a&&typeof o==`number`&&c.range.start>o+1024&&e.errors.push(pe(n,a)),a=void 0,o=null}break;default:a!==void 0&&i.push(new p(a)),a=we(e,c),o=c.range.start,c.error&&e.errors.push(c.error);e:for(let r=s+1;;++r){let i=n.items[r];switch(i&&i.type){case t.Type.BLANK_LINE:case t.Type.COMMENT:continue e;case t.Type.MAP_VALUE:break e;default:e.errors.push(new t.YAMLSemanticError(c,`Implicit map keys need to be followed by map values`));break e}}c.valueRangeContainsNewline&&e.errors.push(new t.YAMLSemanticError(c,`Implicit map keys need to be on a single line`))}}return a!==void 0&&i.push(new p(a)),{comments:r,items:i}}function ke(e,n){let r=[],i=[],a,o=!1,s=`{`;for(let c=0;c<n.items.length;++c){let l=n.items[c];if(typeof l.char==`string`){let{char:r,offset:u}=l;if(r===`?`&&a===void 0&&!o){o=!0,s=`:`;continue}if(r===`:`){if(a===void 0&&(a=null),s===`:`){s=`,`;continue}}else if(o&&=(a===void 0&&r!==`,`&&(a=null),!1),a!==void 0&&(i.push(new p(a)),a=void 0,r===`,`)){s=`:`;continue}if(r===`}`){if(c===n.items.length-1)continue}else if(r===s){s=`:`;continue}let d=`Flow map contains an unexpected ${r}`,f=new t.YAMLSyntaxError(n,d);f.offset=u,e.errors.push(f)}else l.type===t.Type.BLANK_LINE?r.push({afterKey:!!a,before:i.length}):l.type===t.Type.COMMENT?(fe(e.errors,l),r.push({afterKey:!!a,before:i.length,comment:l.comment})):a===void 0?(s===`,`&&e.errors.push(new t.YAMLSemanticError(l,`Separator , missing in flow map`)),a=we(e,l)):(s!==`,`&&e.errors.push(new t.YAMLSemanticError(l,`Indicator : missing in flow map entry`)),i.push(new p(a,we(e,l))),a=void 0,o=!1)}return de(e.errors,n),a!==void 0&&i.push(new p(a)),{comments:r,items:i}}function Ae(e,n){if(n.type!==t.Type.SEQ&&n.type!==t.Type.FLOW_SEQ){let r=`A ${n.type} node cannot be resolved as a sequence`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_SEQ?Me(e,n):je(e,n),a=new d;return a.items=i,me(a,r),!e.options.mapAsMap&&i.some(e=>e instanceof p&&e.key instanceof l)&&e.warnings.push(new t.YAMLWarning(n,`Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.`)),n.resolved=a,a}function je(e,n){let r=[],i=[];for(let a=0;a<n.items.length;++a){let o=n.items[a];switch(o.type){case t.Type.BLANK_LINE:r.push({before:i.length});break;case t.Type.COMMENT:r.push({comment:o.comment,before:i.length});break;case t.Type.SEQ_ITEM:o.error&&e.errors.push(o.error),i.push(we(e,o.node)),o.hasProps&&e.errors.push(new t.YAMLSemanticError(o,`Sequence items cannot have tags or anchors before the - indicator`));break;default:o.error&&e.errors.push(o.error),e.errors.push(new t.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:i}}function Me(e,n){let r=[],i=[],a=!1,o,s=null,c=`[`,l=null;for(let u=0;u<n.items.length;++u){let d=n.items[u];if(typeof d.char==`string`){let{char:r,offset:f}=d;if(r!==`:`&&(a||o!==void 0)&&(a&&o===void 0&&(o=c?i.pop():null),i.push(new p(o)),a=!1,o=void 0,s=null),r===c)c=null;else if(!c&&r===`?`)a=!0;else if(c!==`[`&&r===`:`&&o===void 0){if(c===`,`){if(o=i.pop(),o instanceof p){let r=new t.YAMLSemanticError(n,`Chaining flow sequence pairs is invalid`);r.offset=f,e.errors.push(r)}if(!a&&typeof s==`number`){let r=d.range?d.range.start:d.offset;r>s+1024&&e.errors.push(pe(n,o));let{src:i}=l.context;for(let n=s;n<r;++n)if(i[n]===`
278
- `){e.errors.push(new t.YAMLSemanticError(l,`Implicit keys of flow sequence pairs need to be on a single line`));break}}}else o=null;s=null,a=!1,c=null}else if(c===`[`||r!==`]`||u<n.items.length-1){let i=`Flow sequence contains an unexpected ${r}`,a=new t.YAMLSyntaxError(n,i);a.offset=f,e.errors.push(a)}}else if(d.type===t.Type.BLANK_LINE)r.push({before:i.length});else if(d.type===t.Type.COMMENT)fe(e.errors,d),r.push({comment:d.comment,before:i.length});else{if(c){let n=`Expected a ${c} in flow sequence`;e.errors.push(new t.YAMLSemanticError(d,n))}let n=we(e,d);o===void 0?(i.push(n),l=d):(i.push(new p(o,n)),o=void 0),s=d.range.start,c=`,`}}return de(e.errors,n),o!==void 0&&i.push(new p(o)),{comments:r,items:i}}e.Alias=h,e.Collection=l,e.Merge=y,e.Node=i,e.Pair=p,e.Scalar=o,e.YAMLMap=_,e.YAMLSeq=d,e.addComment=r,e.binaryOptions=b,e.boolOptions=x,e.findPair=g,e.intOptions=S,e.isEmptyPath=c,e.nullOptions=C,e.resolveMap=Te,e.resolveNode=we,e.resolveSeq=Ae,e.resolveString=he,e.strOptions=w,e.stringifyNumber=ue,e.stringifyString=le,e.toJSON=a}),Pp=Dp(e=>{var t=jp(),n=Np(),r={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve:(e,r)=>{let i=n.resolveString(e,r);if(typeof Buffer==`function`)return Buffer.from(i,`base64`);if(typeof atob==`function`){let e=atob(i.replace(/[\n\r]/g,``)),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}return e.errors.push(new t.YAMLReferenceError(r,`This environment does not support reading binary tags; either Buffer or atob is required`)),null},options:n.binaryOptions,stringify:({comment:e,type:r,value:i},a,o,s)=>{let c;if(typeof Buffer==`function`)c=i instanceof Buffer?i.toString(`base64`):Buffer.from(i.buffer).toString(`base64`);else if(typeof btoa==`function`){let e=``;for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);c=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(r||=n.binaryOptions.defaultType,r===t.Type.QUOTE_DOUBLE)i=c;else{let{lineWidth:e}=n.binaryOptions,a=Math.ceil(c.length/e),o=Array(a);for(let t=0,n=0;t<a;++t,n+=e)o[t]=c.substr(n,e);i=o.join(r===t.Type.BLOCK_LITERAL?`
279
- `:` `)}return n.stringifyString({comment:e,type:r,value:i},a,o,s)}};function i(e,r){let i=n.resolveSeq(e,r);for(let e=0;e<i.items.length;++e){let a=i.items[e];if(!(a instanceof n.Pair)){if(a instanceof n.YAMLMap){if(a.items.length>1)throw new t.YAMLSemanticError(r,`Each pair must have its own sequence indicator`);let e=a.items[0]||new n.Pair;a.commentBefore&&(e.commentBefore=e.commentBefore?`${a.commentBefore}
280
- ${e.commentBefore}`:a.commentBefore),a.comment&&(e.comment=e.comment?`${a.comment}
281
- ${e.comment}`:a.comment),a=e}i.items[e]=a instanceof n.Pair?a:new n.Pair(a)}}return i}function a(e,t,r){let i=new n.YAMLSeq(e);i.tag=`tag:yaml.org,2002:pairs`;for(let n of t){let t,a;if(Array.isArray(n)){if(n.length===2)t=n[0],a=n[1];else throw TypeError(`Expected [key, value] tuple: ${n}`)}else if(n&&n instanceof Object){let e=Object.keys(n);if(e.length===1)t=e[0],a=n[t];else throw TypeError(`Expected { key: value } tuple: ${n}`)}else t=n;let o=e.createPair(t,a,r);i.items.push(o)}return i}var o={default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:i,createNode:a},s=class e extends n.YAMLSeq{constructor(){super(),t._defineProperty(this,`add`,n.YAMLMap.prototype.add.bind(this)),t._defineProperty(this,`delete`,n.YAMLMap.prototype.delete.bind(this)),t._defineProperty(this,`get`,n.YAMLMap.prototype.get.bind(this)),t._defineProperty(this,`has`,n.YAMLMap.prototype.has.bind(this)),t._defineProperty(this,`set`,n.YAMLMap.prototype.set.bind(this)),this.tag=e.tag}toJSON(e,t){let r=new Map;t&&t.onCreate&&t.onCreate(r);for(let e of this.items){let i,a;if(e instanceof n.Pair?(i=n.toJSON(e.key,``,t),a=n.toJSON(e.value,i,t)):i=n.toJSON(e,``,t),r.has(i))throw Error(`Ordered maps must not include duplicate keys`);r.set(i,a)}return r}};t._defineProperty(s,`tag`,`tag:yaml.org,2002:omap`);function c(e,r){let a=i(e,r),o=[];for(let{key:e}of a.items)if(e instanceof n.Scalar){if(o.includes(e.value))throw new t.YAMLSemanticError(r,`Ordered maps must not include duplicate keys`);o.push(e.value)}return Object.assign(new s,a)}function l(e,t,n){let r=a(e,t,n),i=new s;return i.items=r.items,i}var u={identify:e=>e instanceof Map,nodeClass:s,default:!1,tag:`tag:yaml.org,2002:omap`,resolve:c,createNode:l},d=class e extends n.YAMLMap{constructor(){super(),this.tag=e.tag}add(e){let t=e instanceof n.Pair?e:new n.Pair(e);n.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let r=n.findPair(this.items,e);return!t&&r instanceof n.Pair?r.key instanceof n.Scalar?r.key.value:r.key:r}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=n.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw Error(`Set items must all have null values`)}};t._defineProperty(d,`tag`,`tag:yaml.org,2002:set`);function f(e,r){let i=n.resolveMap(e,r);if(!i.hasAllNullValues())throw new t.YAMLSemanticError(r,`Set items must all have null values`);return Object.assign(new d,i)}function p(e,t,n){let r=new d;for(let i of t)r.items.push(e.createPair(i,null,n));return r}var m={identify:e=>e instanceof Set,nodeClass:d,default:!1,tag:`tag:yaml.org,2002:set`,resolve:f,createNode:p},h=(e,t)=>{let n=t.split(`:`).reduce((e,t)=>e*60+Number(t),0);return e===`-`?-n:n},g=({value:e})=>{if(isNaN(e)||!isFinite(e))return n.stringifyNumber(e);let t=``;e<0&&(t=`-`,e=Math.abs(e));let r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),t+r.map(e=>e<10?`0`+String(e):String(e)).join(`:`).replace(/000000\d*$/,``)},_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,``)),stringify:g},v={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,``)),stringify:g},y={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$`),resolve:(e,t,n,r,i,a,o,s,c)=>{s&&=(s+`00`).substr(1,3);let l=Date.UTC(t,n-1,r,i||0,a||0,o||0,s||0);if(c&&c!==`Z`){let e=h(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,``)};function b(e){let t={};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<`u`?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<`u`?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function x(e,t){b(!1)&&console.warn(t?`${t}: ${e}`:e)}function S(e){b(!0)&&x(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,``).replace(/\.js$/,``).replace(/\\/g,`/`)}' will be removed in a future release.`,`DeprecationWarning`)}var C={};function w(e,t){if(!C[e]&&b(!0)){C[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:`.`,x(n,`DeprecationWarning`)}}e.binary=r,e.floatTime=v,e.intTime=_,e.omap=u,e.pairs=o,e.set=m,e.timestamp=y,e.warn=x,e.warnFileDeprecation=S,e.warnOptionDeprecation=w}),Fp=Dp(e=>{var t=jp(),n=Np(),r=Pp();function i(e,t,r){let i=new n.YAMLMap(e);if(t instanceof Map)for(let[n,a]of t)i.items.push(e.createPair(n,a,r));else if(t&&typeof t==`object`)for(let n of Object.keys(t))i.items.push(e.createPair(n,t[n],r));return typeof e.sortMapEntries==`function`&&i.items.sort(e.sortMapEntries),i}var a={createNode:i,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve:n.resolveMap};function o(e,t,r){let i=new n.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let n of t){let t=e.createNode(n,r.wrapScalars,null,r);i.items.push(t)}return i}var s={createNode:o,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve:n.resolveSeq},c=[a,s,{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:n.resolveString,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,i)},options:n.strOptions}],l=e=>typeof e==`bigint`||Number.isInteger(e),u=(e,t,r)=>n.intOptions.asBigInt?BigInt(e):parseInt(t,r);function d(e,t,r){let{value:i}=e;return l(i)&&i>=0?r+i.toString(t):n.stringifyNumber(e)}var f={identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},p={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]===`t`||e[0]===`T`,options:n.boolOptions,stringify:({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr},m={identify:e=>l(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o([0-7]+)$/,resolve:(e,t)=>u(e,t,8),options:n.intOptions,stringify:e=>d(e,8,`0o`)},h={identify:l,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:e=>u(e,e,10),options:n.intOptions,stringify:n.stringifyNumber},g={identify:e=>l(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>u(e,t,16),options:n.intOptions,stringify:e=>d(e,16,`0x`)},_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber},v={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},y={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let i=t||r,a=new n.Scalar(parseFloat(e));return i&&i[i.length-1]===`0`&&(a.minFractionDigits=i.length),a},stringify:n.stringifyNumber},b=c.concat([f,p,m,h,g,_,v,y]),x=e=>typeof e==`bigint`||Number.isInteger(e),S=({value:e})=>JSON.stringify(e),C=[a,s,{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:n.resolveString,stringify:S},{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:S},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true|false$/,resolve:e=>e===`true`,stringify:S},{identify:x,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>n.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>x(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:S}];C.scalarFallback=e=>{throw SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var w=({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr,T=e=>typeof e==`bigint`||Number.isInteger(e);function ee(e,t,r){let i=t.replace(/_/g,``);if(n.intOptions.asBigInt){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}let t=BigInt(i);return e===`-`?BigInt(-1)*t:t}let a=parseInt(i,r);return e===`-`?-1*a:a}function E(e,t,r){let{value:i}=e;if(T(i)){let e=i.toString(t);return i<0?`-`+r+e.substr(1):r+e}return n.stringifyNumber(e)}var te={core:b,failsafe:c,json:C,yaml11:c.concat([{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:w},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:w},{identify:T,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>ee(t,n,2),stringify:e=>E(e,2,`0b`)},{identify:T,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>ee(t,n,8),stringify:e=>E(e,8,`0`)},{identify:T,default:!0,tag:`tag:yaml.org,2002:int`,test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>ee(t,n,10),stringify:n.stringifyNumber},{identify:T,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>ee(t,n,16),stringify:e=>E(e,16,`0x`)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new n.Scalar(parseFloat(e.replace(/_/g,``)));if(t){let e=t.replace(/_/g,``);e[e.length-1]===`0`&&(r.minFractionDigits=e.length)}return r},stringify:n.stringifyNumber}],r.binary,r.omap,r.pairs,r.set,r.intTime,r.floatTime,r.timestamp)},D={binary:r.binary,bool:p,float:y,floatExp:v,floatNaN:_,floatTime:r.floatTime,int:h,intHex:g,intOct:m,intTime:r.intTime,map:a,null:f,omap:r.omap,pairs:r.pairs,seq:s,set:r.set,timestamp:r.timestamp};function ne(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)||e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}function re(e,t,r){if(e instanceof n.Node)return e;let{defaultPrefix:i,onTagObj:o,prevObjects:c,schema:l,wrapScalars:u}=r;t&&t.startsWith(`!!`)&&(t=i+t.slice(2));let d=ne(e,t,l.tags);if(!d){if(typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`)return u?new n.Scalar(e):e;d=e instanceof Map?a:e[Symbol.iterator]?s:a}o&&(o(d),delete r.onTagObj);let f={value:void 0,node:void 0};if(e&&typeof e==`object`&&c){let t=c.get(e);if(t){let e=new n.Alias(t);return r.aliasNodes.push(e),e}f.value=e,c.set(e,f)}return f.node=d.createNode?d.createNode(r.schema,e,r):u?new n.Scalar(e):e,t&&f.node instanceof n.Node&&(f.node.tag=t),f.node}function O(e,t,n,r){let i=e[r.replace(/\W/g,``)];if(!i){let t=Object.keys(e).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(let e of n)i=i.concat(e);else typeof n==`function`&&(i=n(i.slice()));for(let e=0;e<i.length;++e){let n=i[e];if(typeof n==`string`){let r=t[n];if(!r){let e=Object.keys(t).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}var ie=(e,t)=>e.key<t.key?-1:+(e.key>t.key),ae=class e{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:a}){this.merge=!!t,this.name=n,this.sortMapEntries=i===!0?ie:i||null,!e&&a&&r.warnOptionDeprecation(`tags`,`customTags`),this.tags=O(te,D,e||a,n)}createNode(t,n,r,i){let a={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return re(t,r,i?Object.assign(i,a):a)}createPair(e,t,r){r||={wrapScalars:!0};let i=this.createNode(e,r.wrapScalars,null,r),a=this.createNode(t,r.wrapScalars,null,r);return new n.Pair(i,a)}};t._defineProperty(ae,`defaultPrefix`,t.defaultTagPrefix),t._defineProperty(ae,`defaultTags`,t.defaultTags),e.Schema=ae}),Ip=Dp(e=>{var t=jp(),n=Np(),r=Fp(),i={anchorPrefix:`a`,customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:`1.2`},a={get binary(){return n.binaryOptions},set binary(e){Object.assign(n.binaryOptions,e)},get bool(){return n.boolOptions},set bool(e){Object.assign(n.boolOptions,e)},get int(){return n.intOptions},set int(e){Object.assign(n.intOptions,e)},get null(){return n.nullOptions},set null(e){Object.assign(n.nullOptions,e)},get str(){return n.strOptions},set str(e){Object.assign(n.strOptions,e)}},o={"1.0":{schema:`yaml-1.1`,merge:!0,tagPrefixes:[{handle:`!`,prefix:t.defaultTagPrefix},{handle:`!!`,prefix:`tag:private.yaml.org,2002:`}]},1.1:{schema:`yaml-1.1`,merge:!0,tagPrefixes:[{handle:`!`,prefix:`!`},{handle:`!!`,prefix:t.defaultTagPrefix}]},1.2:{schema:`core`,merge:!1,tagPrefixes:[{handle:`!`,prefix:`!`},{handle:`!!`,prefix:t.defaultTagPrefix}]}};function s(e,t){if((e.version||e.options.version)===`1.0`){let e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return`!`+e[1];let n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,``)}`}let n=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!n){let r=e.getDefaults().tagPrefixes;n=r&&r.find(e=>t.indexOf(e.prefix)===0)}if(!n)return t[0]===`!`?t:`!<${t}>`;let r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`})[e]);return n.handle+r}function c(e,t){if(t instanceof n.Alias)return n.Alias;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)||n[0]}let r,i;if(t instanceof n.Scalar){i=t.value;let n=e.filter(e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class);r=n.find(e=>e.format===t.format)||n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i&&i.constructor?i.constructor.name:typeof i;throw Error(`Tag not resolved for ${e} value`)}return r}function l(e,t,{anchors:n,doc:r}){let i=[],a=r.anchors.getName(e);return a&&(n[a]=e,i.push(`&${a}`)),e.tag?i.push(s(r,e.tag)):t.default||i.push(s(r,t.tag)),i.join(` `)}function u(e,t,r,i){let{anchors:a,schema:o}=t.doc,s;if(!(e instanceof n.Node)){let t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=o.createNode(e,!0,null,t);for(let e of t.aliasNodes){e.source=e.source.node;let t=a.getName(e.source);t||(t=a.newName(),a.map[t]=e.source)}}if(e instanceof n.Pair)return e.toString(t,r,i);s||=c(o.tags,e);let u=l(e,s,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);let d=typeof s.stringify==`function`?s.stringify(e,t,r,i):e instanceof n.Scalar?n.stringifyString(e,t,r,i):e.toString(t,r,i);return u?e instanceof n.Scalar||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}
282
- ${t.indent}${d}`:d}var d=class e{static validAnchorNode(e){return e instanceof n.Scalar||e instanceof n.YAMLSeq||e instanceof n.YAMLMap}constructor(e){t._defineProperty(this,`map`,Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.Alias(e)}createMergePair(...e){let t=new n.Merge;return t.value.items=e.map(e=>{if(e instanceof n.Alias){if(e.source instanceof n.YAMLMap)return e}else if(e instanceof n.YAMLMap)return this.createAlias(e);throw Error(`Merge sources must be Map nodes or their Aliases`)}),t}getName(e){let{map:t}=this;return Object.keys(t).find(n=>t[n]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||=this.prefix;let t=Object.keys(this.map);for(let n=1;;++n){let r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){let{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved}),t.forEach(e=>{e.source=e.source.resolved}),delete this._cstAliases}setAnchor(t,n){if(t!=null&&!e.validAnchorNode(t))throw Error(`Anchors may only be set for Scalar, Seq and Map nodes`);if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw Error(`Anchor names must not contain whitespace or control characters`);let{map:r}=this,i=t&&Object.keys(r).find(e=>r[e]===t);if(i){if(n)i!==n&&(delete r[i],r[n]=t);else return i}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}},f=(e,t)=>{if(e&&typeof e==`object`){let{tag:r}=e;e instanceof n.Collection?(r&&(t[r]=!0),e.items.forEach(e=>f(e,t))):e instanceof n.Pair?(f(e.key,t),f(e.value,t)):e instanceof n.Scalar&&r&&(t[r]=!0)}return t},p=e=>Object.keys(f(e,{}));function m(e,r){let i={before:[],after:[]},a,o=!1;for(let s of r)if(s.valueRange){if(a!==void 0){e.errors.push(new t.YAMLSyntaxError(s,`Document contains trailing content not separated by a ... or --- line`));break}let r=n.resolveNode(e,s);o&&=(r.spaceBefore=!0,!1),a=r}else s.comment===null?s.type===t.Type.BLANK_LINE&&(o=!0,a===void 0&&i.before.length>0&&!e.commentBefore&&(e.commentBefore=i.before.join(`
283
- `),i.before=[])):(a===void 0?i.before:i.after).push(s.comment);if(e.contents=a||null,!a)e.comment=i.before.concat(i.after).join(`
284
- `)||null;else{let t=i.before.join(`
285
- `);if(t){let e=a instanceof n.Collection&&a.items[0]?a.items[0]:a;e.commentBefore=e.commentBefore?`${t}
286
- ${e.commentBefore}`:t}e.comment=i.after.join(`
287
- `)||null}}function h({tagPrefixes:e},n){let[r,i]=n.parameters;if(!r||!i)throw new t.YAMLSemanticError(n,`Insufficient parameters given for %TAG directive`);if(e.some(e=>e.handle===r))throw new t.YAMLSemanticError(n,`The %TAG directive must only be given at most once per handle in the same document.`);return{handle:r,prefix:i}}function g(e,n){let[r]=n.parameters;if(n.name===`YAML:1.0`&&(r=`1.0`),!r)throw new t.YAMLSemanticError(n,`Insufficient parameters given for %YAML directive`);if(!o[r]){let i=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new t.YAMLWarning(n,i))}return r}function _(e,n,r){let i=[],a=!1;for(let r of n){let{comment:n,name:o}=r;switch(o){case`TAG`:try{e.tagPrefixes.push(h(e,r))}catch(t){e.errors.push(t)}a=!0;break;case`YAML`:case`YAML:1.0`:e.version&&e.errors.push(new t.YAMLSemanticError(r,`The %YAML directive must only be given at most once per document.`));try{e.version=g(e,r)}catch(t){e.errors.push(t)}a=!0;break;default:if(o){let n=`YAML only supports %TAG and %YAML directives, and not %${o}`;e.warnings.push(new t.YAMLWarning(r,n))}}n&&i.push(n)}r&&!a&&(e.version||r.version||e.options.version)===`1.1`&&(e.tagPrefixes=r.tagPrefixes.map(({handle:e,prefix:t})=>({handle:e,prefix:t})),e.version=r.version),e.commentBefore=i.join(`
288
- `)||null}function v(e){if(e instanceof n.Collection)return!0;throw Error(`Expected a YAML collection as document contents`)}var y=class e{constructor(e){this.anchors=new d(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return v(this.contents),this.contents.add(e)}addIn(e,t){v(this.contents),this.contents.addIn(e,t)}delete(e){return v(this.contents),this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?this.contents!=null&&(this.contents=null,!0):(v(this.contents),this.contents.deleteIn(e))}getDefaults(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof n.Collection?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof n.Collection&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof n.Collection&&this.contents.hasIn(e)}set(e,t){v(this.contents),this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:(v(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;typeof e==`number`&&(e=e.toFixed(1)),e===`1.0`||e===`1.1`||e===`1.2`?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e==`string`&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new r.Schema(n)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type=`DOCUMENT`);let{directives:r=[],contents:i=[],directivesEndMarker:a,error:o,valueRange:s}=e;if(o&&(o.source||=this,this.errors.push(o)),_(this,r,n),a&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],m(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(let e of this.errors)e instanceof t.YAMLError&&e.makePretty();for(let e of this.warnings)e instanceof t.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return p(this.contents).filter(e=>e.indexOf(r.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!==`!`||e[e.length-1]!==`!`)throw Error(`Handle must start and end with !`);if(t){let n=this.tagPrefixes.find(t=>t.handle===e);n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:a}=this.options,o=r&&(typeof e!=`string`||!(this.contents instanceof n.Scalar)),s={doc:this,indentStep:` `,keep:o,mapAsMap:o&&!!i,maxAliasCount:a,stringify:u},c=Object.keys(this.anchors.map);c.length>0&&(s.anchors=new Map(c.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}])));let l=n.toJSON(this.contents,e,s);if(typeof t==`function`&&s.anchors)for(let{count:e,res:n}of s.anchors.values())t(n,e);return l}toString(){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let t=JSON.stringify(e);throw Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();let t=[],r=!1;if(this.version){let e=`%YAML 1.2`;this.schema.name===`yaml-1.1`&&(this.version===`1.0`?e=`%YAML:1.0`:this.version===`1.1`&&(e=`%YAML 1.1`)),t.push(e),r=!0}let i=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:n})=>{i.some(e=>e.indexOf(n)===0)&&(t.push(`%TAG ${e} ${n}`),r=!0)}),(r||this.directivesEndMarker)&&t.push(`---`),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(``),t.unshift(this.commentBefore.replace(/^/gm,`#`)));let a={anchors:Object.create(null),doc:this,indent:``,indentStep:` `.repeat(e),stringify:u},o=!1,s=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(``),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,`#`)),a.forceBlockIndent=!!this.comment,s=this.contents.comment);let e=s?null:()=>o=!0,i=u(this.contents,a,()=>s=null,e);t.push(n.addComment(i,``,s))}else this.contents!==void 0&&t.push(u(this.contents,a));return this.comment&&((!o||s)&&t[t.length-1]!==``&&t.push(``),t.push(this.comment.replace(/^/gm,`#`))),t.join(`
289
- `)+`
290
- `}};t._defineProperty(y,`defaults`,o),e.Document=y,e.defaultOptions=i,e.scalarOptions=a}),Lp=Dp(e=>{var t=Mp(),n=Ip(),r=Fp(),i=jp(),a=Pp();Np();function o(e,t=!0,i){i===void 0&&typeof t==`string`&&(i=t,t=!0);let a=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new r.Schema(a).createNode(e,t,i)}var s=class extends n.Document{constructor(e){super(Object.assign({},n.defaultOptions,e))}};function c(e,n){let r=[],i;for(let a of t.parse(e)){let e=new s(n);e.parse(a,i),r.push(e),i=e}return r}function l(e,n){let r=t.parse(e),a=new s(n).parse(r[0]);return r.length>1&&a.errors.unshift(new i.YAMLSemanticError(r[1],`Source contains multiple documents; please use YAML.parseAllDocuments()`)),a}function u(e,t){let n=l(e,t);if(n.warnings.forEach(e=>a.warn(e)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function d(e,t){let n=new s(t);return n.contents=e,String(n)}e.YAML={createNode:o,defaultOptions:n.defaultOptions,Document:s,parse:u,parseAllDocuments:c,parseCST:t.parse,parseDocument:l,scalarOptions:n.scalarOptions,stringify:d}}),Rp=Dp((e,t)=>{t.exports=Lp().YAML}),zp=Dp(e=>{var t=Np(),n=jp();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=n.Type,e.YAMLError=n.YAMLError,e.YAMLReferenceError=n.YAMLReferenceError,e.YAMLSemanticError=n.YAMLSemanticError,e.YAMLSyntaxError=n.YAMLSyntaxError,e.YAMLWarning=n.YAMLWarning}),Bp={};Op(Bp,{__parsePrettierYamlConfig:()=>Q_,languages:()=>tg,options:()=>rg,parsers:()=>ig,printers:()=>Z_});var Vp=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i);function Hp(e){return this[e<0?this.length+e:e]}var Up=Vp(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return Hp}),Wp=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Gp=Vp(`replaceAll`,function(){if(typeof this==`string`)return Wp}),Kp=()=>{},qp=`string`,Jp=`array`,Yp=`cursor`,Xp=`indent`,Zp=`align`,Qp=`trim`,$p=`group`,em=`fill`,tm=`if-break`,nm=`indent-if-break`,rm=`line-suffix`,im=`line-suffix-boundary`,am=`line`,om=`label`,sm=`break-parent`,cm=new Set([Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm]);function lm(e){if(typeof e==`string`)return qp;if(Array.isArray(e))return Jp;if(!e)return;let{type:t}=e;if(cm.has(t))return t}var um=lm,dm=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function fm(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
291
- Expected it to be 'string' or 'object'.`;if(um(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=dm([...cm].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
292
- Expected it to be ${r}.`}var pm=class extends Error{name=`InvalidDocError`;constructor(e){super(fm(e)),this.doc=e}};function mm(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(um(e)){case Jp:return t(e.map(r));case em:return t({...e,parts:e.parts.map(r)});case tm:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case $p:{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 Zp:case Xp:case nm:case om:case rm:return t({...e,contents:r(e.contents)});case qp:case Yp:case Qp:case im:case am:case sm:return t(e);default:throw new pm(e)}}}function hm(e,t=Nm){return mm(e,e=>typeof e==`string`?km(t,e.split(`
293
- `)):e)}var gm=Kp,_m=Kp,vm=Kp,ym=Kp;function bm(e,t){return ym(e),gm(t),{type:Zp,contents:t,n:e}}function xm(e){return bm(-1/0,e)}function Sm(e){return bm({type:`root`},e)}function Cm(e){return bm(-1,e)}var wm={type:sm};function Tm(e){return vm(e),{type:em,parts:e}}function Em(e,t={}){return gm(e),_m(t.expandedStates,!0),{type:$p,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Dm(e,t){return Em(e[0],{...t,expandedStates:e})}function Om(e,t=``,n={}){return gm(e),t!==``&&gm(t),{type:tm,breakContents:e,flatContents:t,groupId:n.groupId}}function km(e,t){gm(e),_m(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var Am={type:am},jm={type:am,soft:!0},Mm=[{type:am,hard:!0},wm],Nm=[{type:am,hard:!0,literal:!0},wm];function Pm(e){return gm(e),{type:rm,contents:e}}function Fm(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{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 Im=Fm(` `),Lm=e=>e===`
294
- `||e===`\r`||e===`\u2028`||e===`\u2029`;function Rm(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
295
- `)return t-2;if(Lm(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
296
- `)return t+2;if(Lm(i))return t+1}return t}var zm=Rm;function Bm(e,t){let n=t-1;n=Im(e,n,{backwards:!0}),n=zm(e,n,{backwards:!0}),n=Im(e,n,{backwards:!0});let r=zm(e,n,{backwards:!0});return n!==r}var Vm=Bm,Hm=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Um=`format`,Wm=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,Gm=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,Km=/^\s*@(?:format|prettier)\s*$/u,qm=e=>Km.test(e),Jm=e=>Gm.test(e),Ym=e=>Wm.test(e),Xm=e=>`# @${Um}
297
-
298
- ${e}`;function Zm(e,t){switch(e.type){case`comment`:if(qm(e.value))return null;break;case`quoteDouble`:case`quoteSingle`:t.type=`quote`;break;case`document`:t.directivesEndMarker||delete t.directivesEndMarker,t.documentEndMarker||delete t.documentEndMarker}}Zm.ignoredProperties=new Set([`position`]);var Qm=Zm;function $m(e,t){let{node:n}=e;if(n.type===`root`&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(t.filepath))return async e=>{let n=await e(t.originalText,{parser:`json`});return n?[n,Mm]:void 0}}$m.getVisitorKeys=()=>[];var eh=$m,th=null;function nh(e){if(th!==null&&typeof th.property){let e=th;return th=nh.prototype=null,e}return th=nh.prototype=e??Object.create(null),new nh}var rh=10;for(let e=0;e<=rh;e++)nh();function ih(e){return nh(e)}function ah(e,t=`type`){ih(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 oh=ah,sh=[[`children`,`anchor`,`tag`,`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`],[`anchor`,`tag`,`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`],[`key`,`value`,`children`,`anchor`,`tag`,`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`],[`content`,`children`,`anchor`,`tag`,`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`],[`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`]],ch=oh({root:sh[0],document:[`head`,`body`,`children`,`anchor`,`tag`,`indicatorComment`,`leadingComments`,`middleComments`,`trailingComment`,`endComments`],documentHead:sh[0],documentBody:sh[0],directive:sh[1],alias:sh[1],blockLiteral:sh[1],blockFolded:sh[0],plain:sh[0],quoteSingle:sh[1],quoteDouble:sh[1],mapping:sh[0],mappingItem:sh[2],mappingKey:sh[3],mappingValue:sh[3],sequence:sh[0],sequenceItem:sh[3],flowMapping:sh[0],flowMappingItem:sh[2],flowSequence:sh[0],flowSequenceItem:sh[3],comment:sh[1],tag:sh[4],anchor:sh[4]}),lh=e=>e.position.start.offset,uh=e=>e.position.end.offset;function dh(e){return Array.isArray(e)&&e.length>0}var fh=dh;function ph(e,t){return typeof e?.type==`string`&&t.includes(e.type)}function mh(e,t,n){return t(`children`in e?{...e,children:e.children.map(n=>mh(n,t,e))}:e,n)}function hh(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function gh(e,t){let n=0,r=t.length;for(let i=e.position.end.offset-1;i<r;i++){let e=t[i];if(e===`
299
- `&&n++,n===1&&/\S/u.test(e))return!1;if(n===2)return!0}return!1}function _h(e){let{node:t}=e;switch(t.type){case`tag`:case`anchor`:case`comment`:return!1}let n=e.stack.length;for(let t=1;t<n;t++){let n=e.stack[t],r=e.stack[t-1];if(Array.isArray(r)&&typeof n==`number`&&n!==r.length-1)return!1}return!0}function vh(e){return fh(e.children)?vh(Up(0,e.children,-1)):e}function yh(e){return e.value.trim()===`prettier-ignore`}function bh(e){let{node:t}=e;if(t.type===`documentBody`){let t=e.parent.head;return Dh(t)&&yh(Up(0,t.endComments,-1))}return Ch(t)&&yh(Up(0,t.leadingComments,-1))}function xh(e){return!fh(e.children)&&!Sh(e)}function Sh(e){return Ch(e)||wh(e)||Th(e)||Eh(e)||Dh(e)}function Ch(e){return fh(e?.leadingComments)}function wh(e){return fh(e?.middleComments)}function Th(e){return e?.indicatorComment}function Eh(e){return e?.trailingComment}function Dh(e){return fh(e?.endComments)}function Oh(e){return e?e.split(/(?<!^| ) (?! |$)/u):[]}function kh(e,t,n){let r=t.split(`
300
- `).map((e,t,n)=>t===0&&t===n.length-1?e:t!==0&&t!==n.length-1?e.trim():t===0?e.trimEnd():e.trimStart());if(n.proseWrap===`preserve`)return r.map(e=>e?[e]:[]);let i=[];for(let[t,n]of r.entries()){let a=Oh(n);t>0&&r[t-1].length>0&&a.length>0&&!(e===`quoteDouble`&&Up(0,Up(0,i,-1),-1).endsWith(`\\`))?i[i.length-1]=[...Up(0,i,-1),...a]:i.push(a)}return n.proseWrap===`never`?i.map(e=>[e.join(` `)]):i}function Ah(e,{parentIndent:t,isLastDescendant:n,options:r}){let i=e.position.start.line===e.position.end.line?``:r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],a;if(e.indent===null){let e=i.match(/^(?<leadingSpace> *)[^\n\r ]/mu);a=e?e.groups.leadingSpace.length:1/0}else a=e.indent-1+t;let o=i.split(`
301
- `).map(e=>e.slice(a));if(r.proseWrap===`preserve`||e.type===`blockLiteral`)return c(o.map(e=>e?[e]:[]));let s=[];for(let[e,t]of o.entries()){let n=Oh(t);e>0&&n.length>0&&o[e-1].length>0&&!/^\s/u.test(n[0])&&!/^\s|\s$/u.test(Up(0,s,-1))?s[s.length-1]=[...Up(0,s,-1),...n]:s.push(n)}return s=s.map(e=>{let t=[];for(let n of e)t.length>0&&/\s$/u.test(Up(0,t,-1))?t[t.length-1]+=` `+n:t.push(n);return t}),r.proseWrap===`never`&&(s=s.map(e=>[e.join(` `)])),c(s);function c(t){if(e.chomping===`keep`)return Up(0,t,-1).length===0?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&t[e].length===0;e--)r++;return r===0?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}}function jh(e){if(!e)return!0;switch(e.type){case`plain`:case`quoteDouble`:case`quoteSingle`:case`alias`:case`flowMapping`:case`flowSequence`:return!0;default:return!1}}var Mh=new WeakMap;function Nh(e,t){let{node:n,root:r}=e,i;return Mh.has(r)?i=Mh.get(r):(i=new Set,Mh.set(r,i)),!i.has(n.position.end.line)&&(i.add(n.position.end.line),gh(n,t)&&!Ph(e.parent))?jm:``}function Ph(e){return Dh(e)&&!ph(e,[`documentHead`,`documentBody`,`flowMapping`,`flowSequence`])}function Fh(e,t){return bm(` `.repeat(e),t)}function Ih(e,t,n){let{node:r}=e,i=e.ancestors.filter(e=>e.type===`sequence`||e.type===`mapping`).length,a=_h(e),o=[r.type===`blockFolded`?`>`:`|`];r.indent!==null&&o.push(r.indent.toString()),r.chomping!==`clip`&&o.push(r.chomping===`keep`?`+`:`-`),Th(r)&&o.push(` `,n(`indicatorComment`));let s=Ah(r,{parentIndent:i,isLastDescendant:a,options:t}),c=[];for(let[e,t]of s.entries())e===0&&c.push(Mm),c.push(Tm(km(Am,t))),e===s.length-1?r.chomping===`keep`&&a&&c.push(xm(t.length===0?Mm:Nm)):c.push(t.length===0?Mm:Sm(Nm));return r.indent===null?o.push(Cm(Fh(t.tabWidth,c))):o.push(xm(Fh(r.indent-1+i,c))),o}var Lh=Ih;function Rh(e,t,n){let{node:r}=e,i=r.type===`flowMapping`,a=i?`{`:`[`,o=i?`}`:`]`,s=jm;i&&r.children.length>0&&t.bracketSpacing&&(s=Am);let c=Up(0,r.children,-1),l=c?.type===`flowMappingItem`&&xh(c.key)&&xh(c.value);return[a,Fh(t.tabWidth,[s,zh(e,t,n),t.trailingComma===`none`?``:Om(`,`),Dh(r)?[Mm,km(Mm,e.map(n,`endComments`))]:``]),l?``:s,o]}function zh(e,t,n){return e.map(({isLast:r,node:i,next:a})=>[n(),r?``:[`,`,Am,i.position.start.line===a.position.start.line?``:Nh(e,t.originalText)]],`children`)}function Bh(e,t,n){let{node:r,parent:i}=e,{key:a,value:o}=r,s=xh(a),c=xh(o);if(s&&c)return`: `;let l=n(`key`),u=Hh(r)?` `:``;if(c)return r.type===`flowMappingItem`&&i.type===`flowMapping`?l:r.type===`mappingItem`&&Vh(a.content,t)&&!Eh(a.content)&&i.tag?.value!==`tag:yaml.org,2002:set`?[l,u,`:`]:[`? `,Fh(2,l)];let d=n(`value`);if(s)return[`: `,Fh(2,d)];if(Ch(o)||!jh(a.content))return[`? `,Fh(2,l),Mm,...e.map(()=>[n(),Mm],`value`,`leadingComments`),`: `,Fh(2,d)];if(Uh(a.content)&&!Ch(a.content)&&!wh(a.content)&&!Eh(a.content)&&!Dh(a)&&!Ch(o.content)&&!wh(o.content)&&!Dh(o)&&Vh(o.content,t))return[l,u,`: `,d];let f=Symbol(`mappingKey`),p=Em([Om(`? `),Em(Fh(2,l),{id:f})]),m=[Mm,`: `,Fh(2,d)],h=[u,`:`];Dh(o)&&o.content&&ph(o.content,[`flowMapping`,`flowSequence`])&&o.content.children.length===0?h.push(` `):Ch(o.content)||Dh(o)&&o.content&&!ph(o.content,[`mapping`,`sequence`])||i.type===`mapping`&&Eh(a.content)&&jh(o.content)||ph(o.content,[`mapping`,`sequence`])&&o.content.tag===null&&o.content.anchor===null?h.push(Mm):o.content?h.push(Am):Eh(o)&&h.push(` `),h.push(d);let g=Fh(t.tabWidth,h);return Vh(a.content,t)&&!Ch(a.content)&&!wh(a.content)&&!Eh(a.content)&&!Dh(a)?Dm([[l,g]]):Dm([[p,Om(m,g,{groupId:f})]])}function Vh(e,t){if(!e)return!0;switch(e.type){case`plain`:case`quoteSingle`:case`quoteDouble`:break;case`alias`:return!0;default:return!1}if(t.proseWrap===`preserve`)return e.position.start.line===e.position.end.line;if(/\\$/mu.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case`never`:return!e.value.includes(`
302
- `);case`always`:return!/[\n ]/u.test(e.value);default:return!1}}function Hh(e){return e.key.content?.type===`alias`}function Uh(e){if(!e)return!0;switch(e.type){case`plain`:case`quoteDouble`:case`quoteSingle`:return e.position.start.line===e.position.end.line;case`alias`:return!0;default:return!1}}var Wh=Bh;function Gh(e){return mh(e,Kh)}function Kh(e){switch(e.type){case`document`:hh(e,`head`,()=>e.children[0]),hh(e,`body`,()=>e.children[1]);break;case`documentBody`:case`sequenceItem`:case`flowSequenceItem`:case`mappingKey`:case`mappingValue`:hh(e,`content`,()=>e.children[0]);break;case`mappingItem`:case`flowMappingItem`:hh(e,`key`,()=>e.children[0]),hh(e,`value`,()=>e.children[1])}return e}var qh=Gh;function Jh(e,t,n){let{node:r}=e,i=[];r.type!==`mappingValue`&&Ch(r)&&i.push([km(Mm,e.map(n,`leadingComments`)),Mm]);let{tag:a,anchor:o}=r;a&&i.push(n(`tag`)),a&&o&&i.push(` `),o&&i.push(n(`anchor`));let s=``;return ph(r,[`mapping`,`sequence`,`comment`,`directive`,`mappingItem`,`sequenceItem`])&&!_h(e)&&(s=Nh(e,t.originalText)),(a||o)&&(ph(r,[`sequence`,`mapping`])&&!wh(r)?i.push(Mm):i.push(` `)),wh(r)&&i.push([r.middleComments.length===1?``:Mm,km(Mm,e.map(n,`middleComments`)),Mm]),bh(e)?i.push(hm(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):i.push(Em(Yh(e,t,n))),Eh(r)&&!ph(r,[`document`,`documentHead`])&&i.push(Pm([r.type===`mappingValue`&&!r.content?``:` `,e.parent.type===`mappingKey`&&e.getParentNode(2).type===`mapping`&&jh(r)?``:wm,n(`trailingComment`)])),Ph(r)&&i.push(Fh(r.type===`sequenceItem`?2:0,[Mm,km(Mm,e.map(({node:e})=>[Vm(t.originalText,lh(e))?Mm:``,n()],`endComments`))])),i.push(s),i}function Yh(e,t,n){let{node:r}=e;switch(r.type){case`root`:{let t=vh(r),i=!(ph(t,[`blockLiteral`,`blockFolded`])&&t.chomping===`keep`),a=[];return e.each(({node:t,isFirst:r})=>{r||a.push(Mm),a.push(n()),Zh(e)&&(i&&a.push(Mm),a.push(`...`),Eh(t)&&a.push(` `,n(`trailingComment`)))},`children`),i&&a.push(Mm),a}case`document`:{let t=[];return Qh(e)&&((r.head.children.length>0||r.head.endComments.length>0)&&t.push(n(`head`)),Eh(r.head)?t.push([`---`,` `,n([`head`,`trailingComment`])]):t.push(`---`)),Xh(r)&&t.push(n(`body`)),km(Mm,t)}case`documentHead`:return km(Mm,[...e.map(n,`children`),...e.map(n,`endComments`)]);case`documentBody`:{let{children:i,endComments:a}=r,o=``;if(i.length>0&&a.length>0){let e=vh(r);ph(e,[`blockFolded`,`blockLiteral`])?e.chomping!==`keep`&&(o=[Mm,Mm]):o=ph(Up(0,i,-1),[`mapping`])&&Vm(t.originalText,lh(a[0]))?[Mm,Mm]:Mm}return[km(Mm,e.map(n,`children`)),o,km(Mm,e.map(n,`endComments`))]}case`directive`:return[`%`,km(` `,[r.name,...r.parameters])];case`comment`:return[`#`,r.value];case`alias`:return[`*`,r.value];case`tag`:return t.originalText.slice(r.position.start.offset,r.position.end.offset);case`anchor`:return[`&`,r.value];case`plain`:return $h(r.type,t.originalText.slice(r.position.start.offset,r.position.end.offset),t);case`quoteDouble`:case`quoteSingle`:{let e=t.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type===`quoteSingle`&&e.includes(`\\`)||r.type===`quoteDouble`&&/\\[^"]/u.test(e)){let n=r.type===`quoteDouble`?`"`:`'`;return[n,$h(r.type,e,t),n]}if(e.includes(`"`))return[`'`,$h(r.type,r.type===`quoteDouble`?Gp(0,Gp(0,e,`\\"`,`"`),`'`,`'`.repeat(2)):e,t),`'`];if(e.includes(`'`))return[`"`,$h(r.type,r.type===`quoteSingle`?Gp(0,e,`''`,`'`):e,t),`"`];let n=t.singleQuote?`'`:`"`;return[n,$h(r.type,e,t),n]}case`blockFolded`:case`blockLiteral`:return Lh(e,t,n);case`mapping`:case`sequence`:return km(Mm,e.map(n,`children`));case`sequenceItem`:return[`- `,Fh(2,r.content?n(`content`):``)];case`mappingKey`:case`mappingValue`:return r.content?n(`content`):``;case`mappingItem`:case`flowMappingItem`:return Wh(e,t,n);case`flowMapping`:return Rh(e,t,n);case`flowSequence`:return Rh(e,t,n);case`flowSequenceItem`:return n(`content`);default:throw new Hm(r,`YAML`)}}function Xh(e){return e.body.children.length>0||Dh(e.body)}function Zh(e){let t=e.node;if(t.documentEndMarker||Eh(t))return!0;if(e.isLast)return!1;let n=e.next;return n.head.children.length>0||Dh(n.head)}function Qh(e){let t=e.node;return t.directivesEndMarker||t.head.children.length>0||Dh(t.head)||Eh(t.head)}function $h(e,t,n){return km(Mm,kh(e,t,n).map(e=>Tm(km(Am,e))))}var eg={preprocess:qh,embed:eh,print:Jh,massageAstNode:Qm,insertPragma:Xm,getVisitorKeys:ch},tg=[{name:`YAML`,type:`data`,aceMode:`yaml`,extensions:[`.yml`,`.mir`,`.reek`,`.rviz`,`.sublime-syntax`,`.syntax`,`.yaml`,`.yaml-tmlanguage`,`.yaml.sed`,`.yml.mysql`],filenames:[`.clang-format`,`.clang-tidy`,`.clangd`,`.gemrc`,`CITATION.cff`,`glide.lock`,`pixi.lock`,`.prettierrc`,`.stylelintrc`,`.lintstagedrc`],tmScope:`source.yaml`,aliases:[`yml`],codemirrorMode:`yaml`,codemirrorMimeType:`text/x-yaml`,parsers:[`yaml`],vscodeLanguageIds:[`yaml`,`ansible`,`dockercompose`,`github-actions-workflow`,`home-assistant`],linguistLanguageId:407}],ng={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.`}},rg={bracketSpacing:ng.bracketSpacing,singleQuote:ng.singleQuote,proseWrap:ng.proseWrap},ig={};Op(ig,{yaml:()=>X_});var ag=Ap(Rp(),1),og=Ap(zp(),1);og.default.findPair,og.default.toJSON,og.default.parseMap,og.default.parseSeq,og.default.stringifyNumber,og.default.stringifyString,og.default.Type,og.default.YAMLError,og.default.YAMLReferenceError;var sg=og.default.YAMLSemanticError;og.default.YAMLSyntaxError,og.default.YAMLWarning;function cg(e,t=null){`children`in e&&e.children.forEach(t=>cg(t,e)),`anchor`in e&&e.anchor&&cg(e.anchor,e),`tag`in e&&e.tag&&cg(e.tag,e),`leadingComments`in e&&e.leadingComments.forEach(t=>cg(t,e)),`middleComments`in e&&e.middleComments.forEach(t=>cg(t,e)),`indicatorComment`in e&&e.indicatorComment&&cg(e.indicatorComment,e),`trailingComment`in e&&e.trailingComment&&cg(e.trailingComment,e),`endComments`in e&&e.endComments.forEach(t=>cg(t,e)),Object.defineProperty(e,"_parent",{value:t,enumerable:!1})}function lg(e){return`${e.line}:${e.column}`}function ug(e){cg(e);let t=dg(e),n=e.children.slice();e.comments.sort((e,t)=>e.position.start.offset-t.position.end.offset).filter(e=>!e._parent).forEach(e=>{for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();pg(e,t,n[0])})}function dg(e){let t=Array.from(Array(e.position.end.line),()=>({}));for(let n of e.comments)t[n.position.start.line-1].comment=n;return fg(t,e),t}function fg(e,t){if(t.position.start.offset!==t.position.end.offset){if(`leadingComments`in t){let{start:n}=t.position,{leadingAttachableNode:r}=e[n.line-1];(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if(`trailingComment`in t&&t.position.end.column>1&&t.type!==`document`&&t.type!==`documentHead`){let{end:n}=t.position,{trailingAttachableNode:r}=e[n.line-1];(!r||n.column>=r.position.end.column)&&(e[n.line-1].trailingAttachableNode=t)}if(t.type!==`root`&&t.type!==`document`&&t.type!==`documentHead`&&t.type!==`documentBody`){let{start:n,end:r}=t.position,i=[r.line].concat(n.line===r.line?[]:n.line);for(let n of i){let i=e[n-1].trailingNode;(!i||r.column>=i.position.end.column)&&(e[n-1].trailingNode=t)}}`children`in t&&t.children.forEach(t=>{fg(e,t)})}}function pg(e,t,n){let r=e.position.start.line,{trailingAttachableNode:i}=t[r-1];if(i){if(i.trailingComment)throw Error(`Unexpected multiple trailing comment at ${lg(e.position.start)}`);cg(e,i),i.trailingComment=e;return}for(let i=r;i>=n.position.start.line;i--){let{trailingNode:n}=t[i-1],a;if(n)a=n;else if(i!==r&&t[i-1].comment)a=t[i-1].comment._parent;else continue;if((a.type===`sequence`||a.type===`mapping`)&&(a=a.children[0]),a.type===`mappingItem`){let[e,t]=a.children;a=hg(e)?e:t}for(;;){if(mg(a,e)){cg(e,a),a.endComments.push(e);return}if(!a._parent)break;a=a._parent}break}for(let i=r+1;i<=n.position.end.line;i++){let{leadingAttachableNode:n}=t[i-1];if(n){cg(e,n),n.leadingComments.push(e);return}}let a=n.children[1];cg(e,a),a.endComments.push(e)}function mg(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case`flowMapping`:case`flowSequence`:return e.children.length===0||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case`sequenceItem`:return t.position.start.column>e.position.start.column;case`mappingKey`:case`mappingValue`:return t.position.start.column>e._parent.position.start.column&&(e.children.length===0||e.children.length===1&&e.children[0].type!==`blockFolded`&&e.children[0].type!==`blockLiteral`)&&(e.type===`mappingValue`||hg(e));default:return!1}}function hg(e){return e.position.start!==e.position.end&&(e.children.length===0||e.position.start.offset!==e.children[0].position.start.offset)}function gg(e,t){return{type:e,position:t}}function _g(e,t,n){return{...gg(`root`,e),children:t,comments:n}}function vg(e){switch(e.type){case`DOCUMENT`:for(let t=e.contents.length-1;t>=0;t--)e.contents[t].type===`BLANK_LINE`?e.contents.splice(t,1):vg(e.contents[t]);for(let t=e.directives.length-1;t>=0;t--)e.directives[t].type===`BLANK_LINE`&&e.directives.splice(t,1);break;case`FLOW_MAP`:case`FLOW_SEQ`:case`MAP`:case`SEQ`:for(let t=e.items.length-1;t>=0;t--){let n=e.items[t];`char`in n||(n.type===`BLANK_LINE`?e.items.splice(t,1):vg(n))}break;case`MAP_KEY`:case`MAP_VALUE`:case`SEQ_ITEM`:e.node&&vg(e.node);break;case`ALIAS`:case`BLANK_LINE`:case`BLOCK_FOLDED`:case`BLOCK_LITERAL`:case`COMMENT`:case`DIRECTIVE`:case`PLAIN`:case`QUOTE_DOUBLE`:case`QUOTE_SINGLE`:break;default:throw Error(`Unexpected node type ${JSON.stringify(e.type)}`)}}function yg(e,t){return{start:e,end:t}}function bg(e){return{start:e,end:e}}var xg;(function(e){e.Tag=`!`,e.Anchor=`&`,e.Comment=`#`})(xg||={});function Sg(e,t){return{...gg(`anchor`,e),value:t}}function Cg(e,t){return{...gg(`comment`,e),value:t}}function wg(e,t,n){return{anchor:t,tag:e,middleComments:n}}function Tg(e,t){return{...gg(`tag`,e),value:t}}function Eg(e,t,n=()=>!1){let r=e.cstNode,i=[],a=null,o=null,s=null;for(let c of r.props){let l=t.text[c.origStart];switch(l){case xg.Tag:a||=c,o=Tg(t.transformRange(c),e.tag);break;case xg.Anchor:a||=c,s=Sg(t.transformRange(c),r.anchor);break;case xg.Comment:{let e=Cg(t.transformRange(c),t.text.slice(c.origStart+1,c.origEnd));t.comments.push(e),!n(e)&&a&&a.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&i.push(e);break}default:throw Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return wg(o,s,i)}function Dg(){return{leadingComments:[]}}function Og(e=null){return{trailingComment:e}}function kg(){return{...Dg(),...Og()}}function Ag(e,t,n){return{...gg(`alias`,e),...kg(),...t,value:n}}function jg(e,t){let n=e.cstNode;return Ag(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}function Mg(e){return{...e,type:`blockFolded`}}function Ng(e,t,n,r,i,a){return{...gg(`blockValue`,e),...Dg(),...t,chomping:n,indent:r,value:i,indicatorComment:a}}var Pg;(function(e){e.CLIP=`clip`,e.STRIP=`strip`,e.KEEP=`keep`})(Pg||={});function Fg(e,t){let n=e.cstNode,r=n.chomping===`CLIP`?0:1,i=n.header.origEnd-n.header.origStart-1-r!=0,a=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),o=null;return Ng(a,Eg(e,t,e=>{if(!(a.start.offset<e.position.start.offset&&e.position.end.offset<a.end.offset))return!1;if(o)throw Error(`Unexpected multiple indicator comments at ${lg(e.position.start)}`);return o=e,!0}),Pg[n.chomping],i?n.blockIndent:null,n.strValue,o)}function Ig(e,t){return Mg(Fg(e,t))}function Lg(e){return{...e,type:`blockLiteral`}}function Rg(e,t){return Lg(Fg(e,t))}function zg(e,t){return Cg(t.transformRange(e.range),e.comment)}function Bg(e,t,n){return{...gg(`directive`,e),...kg(),name:t,parameters:n}}function Vg(e,t){for(let n of e.props){let e=t.text[n.origStart];switch(e){case xg.Comment:t.comments.push(Cg(t.transformRange(n),t.text.slice(n.origStart+1,n.origEnd)));break;default:throw Error(`Unexpected leading character ${JSON.stringify(e)}`)}}}function Hg(e,t){return Vg(e,t),Bg(t.transformRange(e.range),e.name,e.parameters)}function Ug(e,t,n,r,i,a){return{...gg(`document`,e),...Og(a),directivesEndMarker:t,documentEndMarker:n,children:[r,i]}}function Wg(e=[]){return{endComments:e}}function Gg(e,t,n){return{...gg(`documentBody`,e),...Wg(n),children:t?[t]:[]}}function Kg(e){return e[e.length-1]}function qg(e,t){let n=e.match(t);return n?n.index:-1}function Jg(e,t,n){let r=e.cstNode,{comments:i,endComments:a,documentTrailingComment:o,documentHeadTrailingComment:s}=Yg(r,t,n),c=t.transformNode(e.contents),{position:l,documentEndPoint:u}=Xg(r,c,t);return t.comments.push(...i,...a),{documentBody:Gg(l,c,a),documentEndPoint:u,documentTrailingComment:o,documentHeadTrailingComment:s}}function Yg(e,t,n){let r=[],i=[],a=[],o=[],s=!1;for(let i=e.contents.length-1;i>=0;i--){let c=e.contents[i];if(c.type===`COMMENT`){let i=t.transformNode(c);n&&n.line===i.position.start.line?o.unshift(i):s?r.unshift(i):i.position.start.offset>=e.valueRange.origEnd?a.unshift(i):r.unshift(i)}else s=!0}if(a.length>1)throw Error(`Unexpected multiple document trailing comments at ${lg(a[1].position.start)}`);if(o.length>1)throw Error(`Unexpected multiple documentHead trailing comments at ${lg(o[1].position.start)}`);return{comments:r,endComments:i,documentTrailingComment:Kg(a)||null,documentHeadTrailingComment:Kg(o)||null}}function Xg(e,t,n){let r=qg(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=r===-1?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);n.text[i-1]===`\r`&&i--;let a=n.transformRange({origStart:t===null?i:t.position.start.offset,origEnd:i});return{position:a,documentEndPoint:r===-1?a.end:n.transformOffset(e.valueRange.origEnd+3)}}function Zg(e,t,n,r){return{...gg(`documentHead`,e),...Wg(n),...Og(r),children:t}}function Qg(e,t){let n=e.cstNode,{directives:r,comments:i,endComments:a}=$g(n,t),{position:o,documentEndMarkererPoint:s}=e_(n,r,t);return t.comments.push(...i,...a),{createDocumentHeadWithTrailingComment:e=>(e&&t.comments.push(e),Zg(o,r,a,e)),documentHeadEndMarkerPoint:s}}function $g(e,t){let n=[],r=[],i=[],a=!1;for(let o=e.directives.length-1;o>=0;o--){let s=t.transformNode(e.directives[o]);s.type===`comment`?a?r.unshift(s):i.unshift(s):(a=!0,n.unshift(s))}return{directives:n,comments:r,endComments:i}}function e_(e,t,n){let r=qg(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let i=r===-1?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return t.length!==0&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),documentEndMarkererPoint:r===-1?null:n.transformOffset(r)}}function t_(e,t){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=Qg(e,t),{documentBody:i,documentEndPoint:a,documentTrailingComment:o,documentHeadTrailingComment:s}=Jg(e,t,r),c=n(s);o&&t.comments.push(o);let l=e.cstNode;return Ug(yg(c.position.start,a),!!l.directivesEndMarker,!!l.documentEndMarker,c,i,o)}function n_(e,t,n){return{...gg(`flowCollection`,e),...kg(),...Wg(),...t,children:n}}function r_(e,t,n){return{...n_(e,t,n),type:`flowMapping`}}function i_(e,t,n){return{...gg(`flowMappingItem`,e),...Dg(),children:[t,n]}}function a_(e,t){let n=[];for(let r of e)r&&`type`in r&&r.type===`COMMENT`?t.comments.push(t.transformNode(r)):n.push(r);return n}function o_(e){let[t,n]=[`?`,`:`].map(t=>{let n=e.find(e=>`char`in e&&e.char===t);return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null});return{additionalKeyRange:t,additionalValueRange:n}}function s_(e,t){let n=t;return t=>e.slice(n,n=t)}function c_(e){let t=[],n=s_(e,1),r=!1;for(let i=1;i<e.length-1;i++){let a=e[i];if(`char`in a&&a.char===`,`){t.push(n(i)),n(i+1),r=!1;continue}r=!0}return r&&t.push(n(e.length-1)),t}function l_(e,t){return{...gg(`mappingKey`,e),...Og(),...Wg(),children:t?[t]:[]}}function u_(e,t){return{...gg(`mappingValue`,e),...kg(),...Wg(),children:t?[t]:[]}}function d_(e,t,n,r,i){let a=t.transformNode(e.key),o=t.transformNode(e.value),s=a||r?l_(t.transformRange({origStart:r?r.origStart:a.position.start.offset,origEnd:a?a.position.end.offset:r.origStart+1}),a):null,c=o||i?u_(t.transformRange({origStart:i?i.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:i.origStart+1}),o):null;return n(yg(s?s.position.start:c.position.start,c?c.position.end:s.position.end),s||l_(bg(c.position.start),null),c||u_(bg(s.position.end),null))}function f_(e,t){let n=a_(e.cstNode.items,t),r=c_(n),i=e.items.map((e,n)=>{let i=r[n],{additionalKeyRange:a,additionalValueRange:o}=o_(i);return d_(e,t,i_,a,o)}),a=n[0],o=Kg(n);return r_(t.transformRange({origStart:a.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}function p_(e,t,n){return{...n_(e,t,n),type:`flowSequence`}}function m_(e,t){return{...gg(`flowSequenceItem`,e),children:[t]}}function h_(e,t){let n=a_(e.cstNode.items,t),r=c_(n),i=e.items.map((e,n)=>{if(e.type!==`PAIR`){let n=t.transformNode(e);return m_(yg(n.position.start,n.position.end),n)}{let i=r[n],{additionalKeyRange:a,additionalValueRange:o}=o_(i);return d_(e,t,i_,a,o)}}),a=n[0],o=Kg(n);return p_(t.transformRange({origStart:a.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}function g_(e,t,n){return{...gg(`mapping`,e),...Dg(),...t,children:n}}function __(e,t,n){return{...gg(`mappingItem`,e),...Dg(),children:[t,n]}}function v_(e,t){let n=e.cstNode;n.items.filter(e=>e.type===`MAP_KEY`||e.type===`MAP_VALUE`).forEach(e=>Vg(e,t));let r=y_(a_(n.items,t)),i=e.items.map((e,n)=>{let i=r[n],[a,o]=i[0].type===`MAP_VALUE`?[null,i[0].range]:[i[0].range,i.length===1?null:i[1].range];return d_(e,t,__,a,o)});return g_(yg(i[0].position.start,Kg(i).position.end),t.transformContent(e),i)}function y_(e){let t=[],n=s_(e,0),r=!1;for(let i=0;i<e.length;i++){if(e[i].type===`MAP_VALUE`){t.push(n(i+1)),r=!1;continue}r&&t.push(n(i)),r=!0}return r&&t.push(n(1/0)),t}function b_(e,t,n){return{...gg(`plain`,e),...kg(),...t,value:n}}function x_(e,t,n){for(let r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}function S_(e,t){let n=e.cstNode;return b_(t.transformRange({origStart:n.valueRange.origStart,origEnd:x_(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}function C_(e){return{...e,type:`quoteDouble`}}function w_(e,t,n){return{...gg(`quoteValue`,e),...t,...kg(),value:n}}function T_(e,t){let n=e.cstNode;return w_(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}function E_(e,t){return C_(T_(e,t))}function D_(e){return{...e,type:`quoteSingle`}}function O_(e,t){return D_(T_(e,t))}function k_(e,t,n){return{...gg(`sequence`,e),...Dg(),...Wg(),...t,children:n}}function A_(e,t){return{...gg(`sequenceItem`,e),...kg(),...Wg(),children:t?[t]:[]}}function j_(e,t){let n=a_(e.cstNode.items,t).map((n,r)=>{Vg(n,t);let i=t.transformNode(e.items[r]);return A_(yg(t.transformOffset(n.valueRange.origStart),i===null?t.transformOffset(n.valueRange.origStart+1):i.position.end),i)});return k_(yg(n[0].position.start,Kg(n).position.end),t.transformContent(e),n)}function M_(e,t){if(e===null||e.type===void 0&&e.value===null)return null;switch(e.type){case`ALIAS`:return jg(e,t);case`BLOCK_FOLDED`:return Ig(e,t);case`BLOCK_LITERAL`:return Rg(e,t);case`COMMENT`:return zg(e,t);case`DIRECTIVE`:return Hg(e,t);case`DOCUMENT`:return t_(e,t);case`FLOW_MAP`:return f_(e,t);case`FLOW_SEQ`:return h_(e,t);case`MAP`:return v_(e,t);case`PLAIN`:return S_(e,t);case`QUOTE_DOUBLE`:return E_(e,t);case`QUOTE_SINGLE`:return O_(e,t);case`SEQ`:return j_(e,t);default:throw Error(`Unexpected node type ${e.type}`)}}var N_,P_=class{text;comments=[];#e;#t;constructor(e,t){this.text=t,this.#e=e}setOrigRanges(){if(!this.#e.setOrigRanges())for(let e of this.#e)e.setOrigRanges([],0)}#n(e){if(!N_){let[e]=this.#e,t=Object.getPrototypeOf(Object.getPrototypeOf(e));N_=Object.getOwnPropertyDescriptor(t,`rangeAsLinePos`).get}if(this.#t??={root:{context:{src:this.text}}},this.text===``&&e.origStart===0&&e.origEnd===0)return{start:{offset:0,line:1,column:1},end:{offset:0,line:1,column:1}};let{start:{line:t,col:n},end:{line:r,col:i}}=N_.call({range:{start:this.#r(e.origStart),end:this.#r(e.origEnd)},context:this.#t});return{start:{offset:e.origStart,line:t,column:n},end:{offset:e.origEnd,line:r,column:i}}}#r(e){return e<0?0:e>this.text.length?this.text.length:e}transformOffset(e){return this.#n({origStart:e,origEnd:e}).start}transformRange(e){let{start:t,end:n}=this.#n(e);return yg(t,n)}transformNode(e){return M_(e,this)}transformContent(e){return Eg(e,this)}};function F_(e,t,n){let r=SyntaxError(e);return r.name=`YAMLSyntaxError`,r.source=t,r.position=n,r}function I_(e,t){let n=e.source.range||e.source.valueRange;return F_(e.message,t.text,t.transformRange(n))}function L_(e){if(`children`in e){if(e.children.length===1){let t=e.children[0];if(t.type===`plain`&&t.tag===null&&t.anchor===null&&t.value===``)return e.children.splice(0,1),e}e.children.forEach(L_)}return e}function R_(e,t,n,r){let i=t(e);return t=>{r(i,t)&&n(e,i=t)}}function z_(e){if(e===null||!(`children`in e))return;let t=e.children;if(t.forEach(z_),e.type===`document`){let[t,n]=e.children;t.position.start.offset===t.position.end.offset?t.position.start=t.position.end=n.position.start:n.position.start.offset===n.position.end.offset&&(n.position.start=n.position.end=t.position.end)}let n=R_(e.position,B_,V_,W_),r=R_(e.position,H_,U_,G_);`endComments`in e&&e.endComments.length!==0&&(n(e.endComments[0].position.start),r(Kg(e.endComments).position.end));let i=t.filter(e=>e!==null);if(i.length!==0){let e=i[0],t=Kg(i);n(e.position.start),r(t.position.end),`leadingComments`in e&&e.leadingComments.length!==0&&n(e.leadingComments[0].position.start),`tag`in e&&e.tag&&n(e.tag.position.start),`anchor`in e&&e.anchor&&n(e.anchor.position.start),`trailingComment`in t&&t.trailingComment&&r(t.trailingComment.position.end)}}function B_(e){return e.start}function V_(e,t){e.start=t}function H_(e){return e.end}function U_(e,t){e.end=t}function W_(e,t){return t.offset<e.offset}function G_(e,t){return t.offset>e.offset}function K_(e){let t=ag.default.parseCST(e),n=new P_(t,e);n.setOrigRanges();let r=t.map(e=>new ag.default.Document({merge:!1,keepCstNodes:!0}).parse(e));for(let e of r)for(let t of e.errors)if(!(t instanceof sg&&t.message===`Map keys must be unique; "<<" is repeated`))throw I_(t,n);r.forEach(e=>vg(e.cstNode));let i=_g(n.transformRange({origStart:0,origEnd:e.length}),r.map(e=>n.transformNode(e)),n.comments);return ug(i),z_(i),L_(i),i}function q_(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var J_=q_;function Y_(e){try{let t=K_(e);return delete t.comments,t}catch(e){throw e?.position?J_(e.message,{loc:e.position,cause:e}):e}}var X_={astFormat:`yaml`,parse:Y_,hasPragma:Jm,hasIgnorePragma:Ym,locStart:lh,locEnd:uh},Z_={yaml:eg},Q_=Ap(Rp(),1).default.parse,$_=t({default:()=>nv,languages:()=>HA,options:()=>BA,printers:()=>VA}),ev=Object.defineProperty,tv=(e,t)=>{for(var n in t)ev(e,n,{get:t[n],enumerable:!0})},nv={};tv(nv,{languages:()=>HA,options:()=>BA,printers:()=>VA});var rv=[{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:[`chakra`,`d8`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`,`zx`],parsers:[`babel`,`acorn`,`espree`,`meriyah`,`babel-flow`,`babel-ts`,`flow`,`typescript`],vscodeLanguageIds:[`javascript`,`mongo`],linguistLanguageId:183},{name:`Flow`,type:`programming`,aceMode:`javascript`,extensions:[`.js.flow`],filenames:[],tmScope:`source.js`,aliases:[],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,interpreters:[`chakra`,`d8`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`],parsers:[`flow`,`babel-flow`],vscodeLanguageIds:[`javascript`],linguistLanguageId:183},{name:`JSX`,type:`programming`,aceMode:`javascript`,extensions:[`.jsx`],filenames:void 0,tmScope:`source.js.jsx`,aliases:void 0,codemirrorMode:`jsx`,codemirrorMimeType:`text/jsx`,interpreters:void 0,parsers:[`babel`,`babel-flow`,`babel-ts`,`flow`,`typescript`,`espree`,`meriyah`],vscodeLanguageIds:[`javascriptreact`],group:`JavaScript`,linguistLanguageId:183},{name:`TypeScript`,type:`programming`,aceMode:`typescript`,extensions:[`.ts`,`.cts`,`.mts`],tmScope:`source.ts`,aliases:[`ts`],codemirrorMode:`javascript`,codemirrorMimeType:`application/typescript`,interpreters:[`bun`,`deno`,`ts-node`,`tsx`],parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescript`],linguistLanguageId:378},{name:`TSX`,type:`programming`,aceMode:`tsx`,extensions:[`.tsx`],tmScope:`source.tsx`,codemirrorMode:`jsx`,codemirrorMimeType:`text/typescript-jsx`,group:`TypeScript`,parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescriptreact`],linguistLanguageId:94901924}],iv={};tv(iv,{canAttachComment:()=>tx,embed:()=>ww,features:()=>kA,getVisitorKeys:()=>cy,handleComments:()=>lS,hasPrettierIgnore:()=>HD,insertPragma:()=>Uw,isBlockComment:()=>fy,isGap:()=>dS,massageAstNode:()=>Jb,print:()=>OA,printComment:()=>Jw,printPrettierIgnored:()=>OA,willPrintOwnComments:()=>mS});var av=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),ov=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},sv=av(`replaceAll`,function(){if(typeof this==`string`)return ov});function cv(e){return this[e<0?this.length+e:e]}var lv=av(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return cv});function uv(e){return typeof e==`object`&&!!e}var dv=uv;function*fv(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>dv(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*pv(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of fv(r,t))yield e,n.push(e)}}function mv(e,{getVisitorKeys:t,predicate:n}){for(let r of pv(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var hv=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function _v(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var vv=`©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇`,yv=/[^\x20-\x7F]/u,bv=new Set(vv);function xv(e){if(!e)return 0;if(!yv.test(e))return e.length;e=e.replace(hv(),e=>bv.has(e)?` `:` `);let t=0;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+=gv(e)||_v(e)?2:1)}return t}var Sv=xv;function Cv(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{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 wv=Cv(` `),Tv=Cv(`,; `),Ev=Cv(/[^\n\r]/u),Dv=e=>e===`
303
- `||e===`\r`||e===`\u2028`||e===`\u2029`;function Ov(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
304
- `)return t-2;if(Dv(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
305
- `)return t+2;if(Dv(i))return t+1}return t}var kv=Ov;function Av(e,t,n={}){let r=wv(e,n.backwards?t-1:t,n);return r!==kv(e,r,n)}var jv=Av;function Mv(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 Nv=Mv;function Pv(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?Ev(e,t):t}var Fv=Pv;function Iv(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Tv(e,r),r=Nv(e,r),r=wv(e,r);return r=Fv(e,r),r=kv(e,r),r!==!1&&jv(e,r)}var Lv=Iv;function Rv(e){return Array.isArray(e)&&e.length>0}var zv=Rv,Bv=()=>{},Vv=Object.freeze({character:`'`,codePoint:39}),Hv=Object.freeze({character:`"`,codePoint:34}),Uv=Object.freeze({preferred:Vv,alternate:Hv}),Wv=Object.freeze({preferred:Hv,alternate:Vv});function Gv(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Uv:Wv,{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 Kv=Gv,qv=/\\(["'\\])|(["'])/gu;function Jv(e,t){let n=t===`"`?`'`:`"`;return t+sv(0,e,qv,(e,r,i)=>r?r===n?n:e:i===t?`\\`+i:i)+t}var Yv=Jv;function Xv(e,t){/^(?<quote>["']).*\k<quote>$/su.test(e);let n=e.slice(1,-1),r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:Kv(n,t.singleQuote);return e.charAt(0)===r?e:Yv(n,r)}var Zv=Xv,Qv=e=>Number.isInteger(e)&&e>=0;function V(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(V(n),t):t}function H(e){return e.range?.[1]??e.end}function $v(e,t){let n=V(e);return Qv(n)&&n===V(t)}function ey(e,t){let n=H(e);return Qv(n)&&n===H(t)}function ty(e,t){return $v(e,t)&&ey(e,t)}var ny=null;function ry(e){if(ny!==null&&typeof ny.property){let e=ny;return ny=ry.prototype=null,e}return ny=ry.prototype=e??Object.create(null),new ry}var iy=10;for(let e=0;e<=iy;e++)ry();function ay(e){return ry(e)}function oy(e,t=`type`){ay(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 sy=oy,U=[[`decorators`,`key`,`typeAnnotation`,`value`],[],[`elementType`],[`expression`],[`expression`,`typeAnnotation`],[`left`,`right`],[`argument`],[`directives`,`body`],[`label`],[`callee`,`typeArguments`,`arguments`],[`body`],[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeArguments`,`mixins`,`implements`,`body`,`superTypeParameters`],[`id`,`typeParameters`],[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],[`name`,`typeAnnotation`],[`test`,`consequent`,`alternate`],[`checkType`,`extendsType`,`trueType`,`falseType`],[`value`],[`id`,`body`],[`declaration`,`specifiers`,`source`,`attributes`],[`id`],[`id`,`typeParameters`,`extends`,`body`],[`typeAnnotation`],[`id`,`typeParameters`,`right`],[`body`,`test`],[`members`],[`id`,`init`],[`exported`],[`left`,`right`,`body`],[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],[`id`,`params`,`body`,`typeParameters`,`returnType`],[`key`,`value`],[`local`],[`objectType`,`indexType`],[`typeParameter`],[`types`],[`node`],[`object`,`property`],[`argument`,`cases`],[`pattern`,`body`,`guard`],[`literal`],[`decorators`,`key`,`value`],[`expressions`],[`qualification`,`id`],[`decorators`,`key`,`typeAnnotation`],[`typeParameters`,`params`,`returnType`],[`expression`,`typeArguments`],[`params`],[`parameterName`,`typeAnnotation`]],cy=sy({AccessorProperty:U[0],AnyTypeAnnotation:U[1],ArgumentPlaceholder:U[1],ArrayExpression:[`elements`],ArrayPattern:[`elements`,`typeAnnotation`,`decorators`],ArrayTypeAnnotation:U[2],ArrowFunctionExpression:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],AsConstExpression:U[3],AsExpression:U[4],AssignmentExpression:U[5],AssignmentPattern:[`left`,`right`,`decorators`,`typeAnnotation`],AwaitExpression:U[6],BigIntLiteral:U[1],BigIntLiteralTypeAnnotation:U[1],BigIntTypeAnnotation:U[1],BinaryExpression:U[5],BindExpression:[`object`,`callee`],BlockStatement:U[7],BooleanLiteral:U[1],BooleanLiteralTypeAnnotation:U[1],BooleanTypeAnnotation:U[1],BreakStatement:U[8],CallExpression:U[9],CatchClause:[`param`,`body`],ChainExpression:U[3],ClassAccessorProperty:U[0],ClassBody:U[10],ClassDeclaration:U[11],ClassExpression:U[11],ClassImplements:U[12],ClassMethod:U[13],ClassPrivateMethod:U[13],ClassPrivateProperty:U[14],ClassProperty:U[14],ComponentDeclaration:[`id`,`params`,`body`,`typeParameters`,`rendersType`],ComponentParameter:[`name`,`local`],ComponentTypeAnnotation:[`params`,`rest`,`typeParameters`,`rendersType`],ComponentTypeParameter:U[15],ConditionalExpression:U[16],ConditionalTypeAnnotation:U[17],ContinueStatement:U[8],DebuggerStatement:U[1],DeclareClass:[`id`,`typeParameters`,`extends`,`mixins`,`implements`,`body`],DeclareComponent:[`id`,`params`,`rest`,`typeParameters`,`rendersType`],DeclaredPredicate:U[18],DeclareEnum:U[19],DeclareExportAllDeclaration:[`source`,`attributes`],DeclareExportDeclaration:U[20],DeclareFunction:[`id`,`predicate`],DeclareHook:U[21],DeclareInterface:U[22],DeclareModule:U[19],DeclareModuleExports:U[23],DeclareNamespace:U[19],DeclareOpaqueType:[`id`,`typeParameters`,`supertype`,`lowerBound`,`upperBound`],DeclareTypeAlias:U[24],DeclareVariable:U[21],Decorator:U[3],Directive:U[18],DirectiveLiteral:U[1],DoExpression:U[10],DoWhileStatement:U[25],EmptyStatement:U[1],EmptyTypeAnnotation:U[1],EnumBigIntBody:U[26],EnumBigIntMember:U[27],EnumBooleanBody:U[26],EnumBooleanMember:U[27],EnumDeclaration:U[19],EnumDefaultedMember:U[21],EnumNumberBody:U[26],EnumNumberMember:U[27],EnumStringBody:U[26],EnumStringMember:U[27],EnumSymbolBody:U[26],ExistsTypeAnnotation:U[1],ExperimentalRestProperty:U[6],ExperimentalSpreadProperty:U[6],ExportAllDeclaration:[`source`,`attributes`,`exported`],ExportDefaultDeclaration:[`declaration`],ExportDefaultSpecifier:U[28],ExportNamedDeclaration:U[20],ExportNamespaceSpecifier:U[28],ExportSpecifier:[`local`,`exported`],ExpressionStatement:U[3],File:[`program`],ForInStatement:U[29],ForOfStatement:U[29],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:U[30],FunctionExpression:U[30],FunctionTypeAnnotation:[`typeParameters`,`this`,`params`,`rest`,`returnType`],FunctionTypeParam:U[15],GenericTypeAnnotation:U[12],HookDeclaration:U[31],HookTypeAnnotation:[`params`,`returnType`,`rest`,`typeParameters`],Identifier:[`typeAnnotation`,`decorators`],IfStatement:U[16],ImportAttribute:U[32],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:U[33],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:U[33],ImportSpecifier:[`imported`,`local`],IndexedAccessType:U[34],InferredPredicate:U[1],InferTypeAnnotation:U[35],InterfaceDeclaration:U[22],InterfaceExtends:U[12],InterfaceTypeAnnotation:[`extends`,`body`],InterpreterDirective:U[1],IntersectionTypeAnnotation:U[36],JsExpressionRoot:U[37],JsonRoot:U[37],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:U[1],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:U[1],JSXExpressionContainer:U[3],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:U[1],JSXMemberExpression:U[38],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`typeArguments`,`attributes`],JSXOpeningFragment:U[1],JSXSpreadAttribute:U[6],JSXSpreadChild:U[3],JSXText:U[1],KeyofTypeAnnotation:U[6],LabeledStatement:[`label`,`body`],Literal:U[1],LogicalExpression:U[5],MatchArrayPattern:[`elements`,`rest`],MatchAsPattern:[`pattern`,`target`],MatchBindingPattern:U[21],MatchExpression:U[39],MatchExpressionCase:U[40],MatchIdentifierPattern:U[21],MatchLiteralPattern:U[41],MatchMemberPattern:[`base`,`property`],MatchObjectPattern:[`properties`,`rest`],MatchObjectPatternProperty:[`key`,`pattern`],MatchOrPattern:[`patterns`],MatchRestPattern:U[6],MatchStatement:U[39],MatchStatementCase:U[40],MatchUnaryPattern:U[6],MatchWildcardPattern:U[1],MemberExpression:U[38],MetaProperty:[`meta`,`property`],MethodDefinition:U[42],MixedTypeAnnotation:U[1],ModuleExpression:U[10],NeverTypeAnnotation:U[1],NewExpression:U[9],NGChainedExpression:U[43],NGEmptyExpression:U[1],NGMicrosyntax:U[10],NGMicrosyntaxAs:[`key`,`alias`],NGMicrosyntaxExpression:[`expression`,`alias`],NGMicrosyntaxKey:U[1],NGMicrosyntaxKeyedExpression:[`key`,`expression`],NGMicrosyntaxLet:U[32],NGPipeExpression:[`left`,`right`,`arguments`],NGRoot:U[37],NullableTypeAnnotation:U[23],NullLiteral:U[1],NullLiteralTypeAnnotation:U[1],NumberLiteralTypeAnnotation:U[1],NumberTypeAnnotation:U[1],NumericLiteral:U[1],ObjectExpression:[`properties`],ObjectMethod:U[13],ObjectPattern:[`decorators`,`properties`,`typeAnnotation`],ObjectProperty:U[42],ObjectTypeAnnotation:[`properties`,`indexers`,`callProperties`,`internalSlots`],ObjectTypeCallProperty:U[18],ObjectTypeIndexer:[`variance`,`id`,`key`,`value`],ObjectTypeInternalSlot:[`id`,`value`],ObjectTypeMappedTypeProperty:[`keyTparam`,`propType`,`sourceType`,`variance`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:U[6],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`,`lowerBound`,`upperBound`],OptionalCallExpression:U[9],OptionalIndexedAccessType:U[34],OptionalMemberExpression:U[38],ParenthesizedExpression:U[3],PipelineBareFunction:[`callee`],PipelinePrimaryTopicReference:U[1],PipelineTopicExpression:U[3],Placeholder:U[1],PrivateIdentifier:U[1],PrivateName:U[21],Program:U[7],Property:U[32],PropertyDefinition:U[14],QualifiedTypeIdentifier:U[44],QualifiedTypeofIdentifier:U[44],RegExpLiteral:U[1],RestElement:[`argument`,`typeAnnotation`,`decorators`],ReturnStatement:U[6],SatisfiesExpression:U[4],SequenceExpression:U[43],SpreadElement:U[6],StaticBlock:U[10],StringLiteral:U[1],StringLiteralTypeAnnotation:U[1],StringTypeAnnotation:U[1],Super:U[1],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],SymbolTypeAnnotation:U[1],TaggedTemplateExpression:[`tag`,`typeArguments`,`quasi`],TemplateElement:U[1],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:U[1],ThisTypeAnnotation:U[1],ThrowStatement:U[6],TopicReference:U[1],TryStatement:[`block`,`handler`,`finalizer`],TSAbstractAccessorProperty:U[45],TSAbstractKeyword:U[1],TSAbstractMethodDefinition:U[32],TSAbstractPropertyDefinition:U[45],TSAnyKeyword:U[1],TSArrayType:U[2],TSAsExpression:U[4],TSAsyncKeyword:U[1],TSBigIntKeyword:U[1],TSBooleanKeyword:U[1],TSCallSignatureDeclaration:U[46],TSClassImplements:U[47],TSConditionalType:U[17],TSConstructorType:U[46],TSConstructSignatureDeclaration:U[46],TSDeclareFunction:U[31],TSDeclareKeyword:U[1],TSDeclareMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`],TSEmptyBodyFunctionExpression:[`id`,`typeParameters`,`params`,`returnType`],TSEnumBody:U[26],TSEnumDeclaration:U[19],TSEnumMember:[`id`,`initializer`],TSExportAssignment:U[3],TSExportKeyword:U[1],TSExternalModuleReference:U[3],TSFunctionType:U[46],TSImportEqualsDeclaration:[`id`,`moduleReference`],TSImportType:[`options`,`qualifier`,`typeArguments`,`source`],TSIndexedAccessType:U[34],TSIndexSignature:[`parameters`,`typeAnnotation`],TSInferType:U[35],TSInstantiationExpression:U[47],TSInterfaceBody:U[10],TSInterfaceDeclaration:U[22],TSInterfaceHeritage:U[47],TSIntersectionType:U[36],TSIntrinsicKeyword:U[1],TSJSDocAllType:U[1],TSJSDocNonNullableType:U[23],TSJSDocNullableType:U[23],TSJSDocUnknownType:U[1],TSLiteralType:U[41],TSMappedType:[`key`,`constraint`,`nameType`,`typeAnnotation`],TSMethodSignature:[`key`,`typeParameters`,`params`,`returnType`],TSModuleBlock:U[10],TSModuleDeclaration:U[19],TSNamedTupleMember:[`label`,`elementType`],TSNamespaceExportDeclaration:U[21],TSNeverKeyword:U[1],TSNonNullExpression:U[3],TSNullKeyword:U[1],TSNumberKeyword:U[1],TSObjectKeyword:U[1],TSOptionalType:U[23],TSParameterProperty:[`parameter`,`decorators`],TSParenthesizedType:U[23],TSPrivateKeyword:U[1],TSPropertySignature:[`key`,`typeAnnotation`],TSProtectedKeyword:U[1],TSPublicKeyword:U[1],TSQualifiedName:U[5],TSReadonlyKeyword:U[1],TSRestType:U[23],TSSatisfiesExpression:U[4],TSStaticKeyword:U[1],TSStringKeyword:U[1],TSSymbolKeyword:U[1],TSTemplateLiteralType:[`quasis`,`types`],TSThisType:U[1],TSTupleType:[`elementTypes`],TSTypeAliasDeclaration:[`id`,`typeParameters`,`typeAnnotation`],TSTypeAnnotation:U[23],TSTypeAssertion:U[4],TSTypeLiteral:U[26],TSTypeOperator:U[23],TSTypeParameter:[`name`,`constraint`,`default`],TSTypeParameterDeclaration:U[48],TSTypeParameterInstantiation:U[48],TSTypePredicate:U[49],TSTypeQuery:[`exprName`,`typeArguments`],TSTypeReference:[`typeName`,`typeArguments`],TSUndefinedKeyword:U[1],TSUnionType:U[36],TSUnknownKeyword:U[1],TSVoidKeyword:U[1],TupleTypeAnnotation:[`types`,`elementTypes`],TupleTypeLabeledElement:[`label`,`elementType`,`variance`],TupleTypeSpreadElement:[`label`,`typeAnnotation`],TypeAlias:U[24],TypeAnnotation:U[23],TypeCastExpression:U[4],TypeofTypeAnnotation:[`argument`,`typeArguments`],TypeOperator:U[23],TypeParameter:[`bound`,`default`,`variance`],TypeParameterDeclaration:U[48],TypeParameterInstantiation:U[48],TypePredicate:U[49],UnaryExpression:U[6],UndefinedTypeAnnotation:U[1],UnionTypeAnnotation:U[36],UnknownTypeAnnotation:U[1],UpdateExpression:U[6],V8IntrinsicIdentifier:U[1],VariableDeclaration:[`declarations`],VariableDeclarator:U[27],Variance:U[1],VoidPattern:U[1],VoidTypeAnnotation:U[1],WhileStatement:U[25],WithStatement:[`object`,`body`],YieldExpression:U[6]});function ly(e){let t=new Set(e);return e=>t.has(e?.type)}var W=ly;function uy(e){return e.extra?.raw??e.raw}var dy=uy,fy=W([`Block`,`CommentBlock`,`MultiLine`]),py=W([`AnyTypeAnnotation`,`ThisTypeAnnotation`,`NumberTypeAnnotation`,`VoidTypeAnnotation`,`BooleanTypeAnnotation`,`BigIntTypeAnnotation`,`SymbolTypeAnnotation`,`StringTypeAnnotation`,`NeverTypeAnnotation`,`UndefinedTypeAnnotation`,`UnknownTypeAnnotation`,`EmptyTypeAnnotation`,`MixedTypeAnnotation`]),my=W([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]);function hy(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 gy(e,t){return t.some(t=>hy(e,t))}var _y=gy;function vy({type:e}){return e.startsWith(`TS`)&&e.endsWith(`Keyword`)}var yy=vy;function by({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}var xy=by;function Sy(e,t){return t(e)||mv(e,{getVisitorKeys:cy,predicate:t})}function Cy(e){return e.type===`AssignmentExpression`||e.type===`BinaryExpression`||e.type===`LogicalExpression`||e.type===`NGPipeExpression`||e.type===`ConditionalExpression`||eb(e)||tb(e)||e.type===`SequenceExpression`||e.type===`TaggedTemplateExpression`||e.type===`BindExpression`||e.type===`UpdateExpression`&&!e.prefix||Rb(e)||e.type===`TSNonNullExpression`||e.type===`ChainExpression`}function wy(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Ty(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.`)}var Ey=W([`ExportDefaultDeclaration`,`DeclareExportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportAllDeclaration`]),Dy=W([`ArrayExpression`]),Oy=W([`ObjectExpression`]);function ky(e){return e.type===`LogicalExpression`&&e.operator===`??`}function Ay(e){return e.type===`NumericLiteral`||e.type===`Literal`&&typeof e.value==`number`}function jy(e){return e.type===`BooleanLiteral`||e.type===`Literal`&&typeof e.value==`boolean`}function My(e){return e.type===`UnaryExpression`&&(e.operator===`+`||e.operator===`-`)&&Ay(e.argument)}function Ny(e){return!!(e&&(e.type===`StringLiteral`||e.type===`Literal`&&typeof e.value==`string`))}function Py(e){return e.type===`RegExpLiteral`||e.type===`Literal`&&!!e.regex}var Fy=W([`Literal`,`BooleanLiteral`,`BigIntLiteral`,`DirectiveLiteral`,`NullLiteral`,`NumericLiteral`,`RegExpLiteral`,`StringLiteral`]),Iy=W([`Identifier`,`ThisExpression`,`Super`,`PrivateName`,`PrivateIdentifier`]),Ly=W([`ObjectTypeAnnotation`,`TSTypeLiteral`,`TSMappedType`]),Ry=W([`FunctionExpression`,`ArrowFunctionExpression`]);function zy(e){return e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`}function By(e){return eb(e)&&e.callee.type===`Identifier`&&[`async`,`inject`,`fakeAsync`,`waitForAsync`].includes(e.callee.name)}var Vy=W([`JSXElement`,`JSXFragment`]);function Hy(e){return e.method&&e.kind===`init`||e.kind===`get`||e.kind===`set`}function Uy(e){return(e.type===`ObjectTypeProperty`||e.type===`ObjectTypeInternalSlot`)&&!e.static&&!e.method&&e.kind!==`get`&&e.kind!==`set`&&e.value.type===`FunctionTypeAnnotation`}function Wy(e){return(e.type===`TypeAnnotation`||e.type===`TSTypeAnnotation`)&&e.typeAnnotation.type===`FunctionTypeAnnotation`&&!e.static&&!$v(e,e.typeAnnotation)}var Gy=W([`BinaryExpression`,`LogicalExpression`,`NGPipeExpression`]);function Ky(e){return tb(e)||e.type===`BindExpression`&&!!e.object}var qy=W([`TSThisType`,`NullLiteralTypeAnnotation`,`BooleanLiteralTypeAnnotation`,`StringLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`TSLiteralType`,`TSTemplateLiteralType`]);function Jy(e){return yy(e)||py(e)||qy(e)||e.type===`GenericTypeAnnotation`&&!e.typeParameters||e.type===`TSTypeReference`&&!e.typeArguments}function Yy(e){return e.type===`Identifier`&&(e.name===`beforeEach`||e.name===`beforeAll`||e.name===`afterEach`||e.name===`afterAll`)}var Xy=`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 Zy(e){return _y(e,Xy)}function Qy(e,t){if(e?.type!==`CallExpression`||e.optional)return!1;let n=Ob(e);if(n.length===1){if(By(e)&&Qy(t))return Ry(n[0]);if(Yy(e.callee))return By(n[0])}else if((n.length===2||n.length===3)&&(n[0].type===`TemplateLiteral`||Ny(n[0]))&&Zy(e.callee))return n[2]&&!Ay(n[2])?!1:(n.length===2?Ry(n[1]):zy(n[1])&&Tb(n[1]).length<=1)||By(n[1]);return!1}var $y=e=>t=>(t?.type===`ChainExpression`&&(t=t.expression),e(t)),eb=$y(W([`CallExpression`,`OptionalCallExpression`])),tb=$y(W([`MemberExpression`,`OptionalMemberExpression`]));function nb(e,t=5){return rb(e,t)<=t}function rb(e,t){let n=0;for(let r in e){let i=e[r];if(dv(i)&&typeof i.type==`string`&&(n++,n+=rb(i,t-n)),n>t)return n}return n}var ib=.25;function ab(e,t){let{printWidth:n}=t;if(K(e))return!1;let r=n*ib;if(e.type===`ThisExpression`||e.type===`Identifier`&&e.name.length<=r||My(e)&&!K(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:Ny(e)?Zv(dy(e),t).length<=r:e.type===`TemplateLiteral`?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
306
- `):e.type===`UnaryExpression`?ab(e.argument,{printWidth:n}):e.type===`CallExpression`&&e.arguments.length===0&&e.callee.type===`Identifier`?e.callee.name.length<=r-2:Fy(e)}function ob(e,t){return Vy(t)?Mb(t):K(t,G.Leading,t=>jv(e,H(t)))}function sb(e){return e.quasis.some(e=>e.value.raw.includes(`
307
- `))}function cb(e,t){return(e.type===`TemplateLiteral`&&sb(e)||e.type===`TaggedTemplateExpression`&&sb(e.quasi))&&!jv(t,V(e),{backwards:!0})}function lb(e){if(!K(e))return!1;let t=lv(0,Pb(e,G.Dangling),-1);return t&&!fy(t)}function ub(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(Ry(n)){if(t+=1,t>1)return!0}else if(eb(n)){for(let e of Ob(n))if(Ry(e))return!0}return!1}function db(e){let{node:t,parent:n,key:r}=e;return r===`callee`&&eb(t)&&eb(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var fb=new Set([`!`,`-`,`+`,`~`]);function pb(e,t=2){if(t<=0)return!1;if(e.type===`ChainExpression`||e.type===`TSNonNullExpression`)return pb(e.expression,t);let n=e=>pb(e,t-1);if(Py(e))return Sv(e.pattern??e.regex.pattern)<=5;if(Fy(e)||Iy(e)||e.type===`ArgumentPlaceholder`)return!0;if(e.type===`TemplateLiteral`)return e.quasis.every(e=>!e.value.raw.includes(`
308
- `))&&e.expressions.every(n);if(Oy(e))return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if(Dy(e))return e.elements.every(e=>e===null||n(e));if(Ib(e)){if(e.type===`ImportExpression`||pb(e.callee,t)){let r=Ob(e);return r.length<=t&&r.every(n)}return!1}return tb(e)?pb(e.object,t)&&pb(e.property,t):e.type===`UnaryExpression`&&fb.has(e.operator)||e.type===`UpdateExpression`?pb(e.argument,t):!1}function mb(e,t=`es5`){return e.trailingComma===`es5`&&t===`es5`||e.trailingComma===`all`&&(t===`all`||t===`es5`)}function hb(e,t){switch(e.type){case`BinaryExpression`:case`LogicalExpression`:case`AssignmentExpression`:case`NGPipeExpression`:return hb(e.left,t);case`MemberExpression`:case`OptionalMemberExpression`:return hb(e.object,t);case`TaggedTemplateExpression`:return e.tag.type!==`FunctionExpression`&&hb(e.tag,t);case`CallExpression`:case`OptionalCallExpression`:return e.callee.type!==`FunctionExpression`&&hb(e.callee,t);case`ConditionalExpression`:return hb(e.test,t);case`UpdateExpression`:return!e.prefix&&hb(e.argument,t);case`BindExpression`:return e.object&&hb(e.object,t);case`SequenceExpression`:return hb(e.expressions[0],t);case`ChainExpression`:case`TSSatisfiesExpression`:case`TSAsExpression`:case`TSNonNullExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return hb(e.expression,t);default:return t(e)}}var gb={"==":!0,"!=":!0,"===":!0,"!==":!0},_b={"*":!0,"/":!0,"%":!0},vb={">>":!0,">>>":!0,"<<":!0};function yb(e,t){return!(xb(t)!==xb(e)||e===`**`||gb[e]&&gb[t]||t===`%`&&_b[e]||e===`%`&&_b[t]||t!==e&&_b[t]&&_b[e]||vb[e]&&vb[t])}var bb=new Map([[`|>`],[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].flatMap((e,t)=>e.map(e=>[e,t])));function xb(e){return bb.get(e)}function Sb(e){return!!vb[e]||e===`|`||e===`^`||e===`&`}function Cb(e){return e.rest?!0:lv(0,Tb(e),-1)?.type===`RestElement`}var wb=new WeakMap;function Tb(e){if(wb.has(e))return wb.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),wb.set(e,t),t}function Eb(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`)}var Db=new WeakMap;function Ob(e){if(Db.has(e))return Db.get(e);if(e.type===`ChainExpression`)return Ob(e.expression);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,Db.set(e,t),t}function kb(e,t){let{node:n}=e;if(n.type===`ChainExpression`)return e.call(()=>kb(e,t),`expression`);n.type===`ImportExpression`||n.type===`TSImportType`?(e.call(()=>t(e,0),`source`),n.options&&e.call(()=>t(e,1),`options`)):n.type===`TSExternalModuleReference`?e.call(()=>t(e,0),`expression`):e.each(t,`arguments`)}function Ab(e,t){let n=[];if(e.type===`ChainExpression`&&(e=e.expression,n.push(`expression`)),e.type===`ImportExpression`||e.type===`TSImportType`){if(t===0||t===(e.options?-2:-1))return[...n,`source`];if(e.options&&(t===1||t===-1))return[...n,`options`];throw RangeError(`Invalid argument index`)}if(e.type===`TSExternalModuleReference`){if(t===0||t===-1)return[...n,`expression`]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...n,`arguments`,t];throw RangeError(`Invalid argument index`)}function jb(e){return e.value.trim()===`prettier-ignore`&&!e.unignore}function Mb(e){return e?.prettierIgnore||K(e,G.PrettierIgnore)}var G={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Nb=(e,t)=>{if(typeof e==`function`&&(t=e,e=0),e||t)return(n,r,i)=>!(e&G.Leading&&!n.leading||e&G.Trailing&&!n.trailing||e&G.Dangling&&(n.leading||n.trailing)||e&G.Block&&!fy(n)||e&G.Line&&!my(n)||e&G.First&&r!==0||e&G.Last&&r!==i.length-1||e&G.PrettierIgnore&&!jb(n)||t&&!t(n))};function K(e,t,n){if(!zv(e?.comments))return!1;let r=Nb(t,n);return!r||e.comments.some(r)}function Pb(e,t,n){if(!Array.isArray(e?.comments))return[];let r=Nb(t,n);return r?e.comments.filter(r):e.comments}var Fb=(e,{originalText:t})=>Lv(t,H(e));function Ib(e){return eb(e)||e.type===`NewExpression`||e.type===`ImportExpression`}function Lb(e){return e&&(e.type===`ObjectProperty`||e.type===`Property`&&!Hy(e))}var Rb=W([`TSAsExpression`,`TSSatisfiesExpression`,`AsExpression`,`AsConstExpression`,`SatisfiesExpression`]),zb=W([`TSUnionType`,`UnionTypeAnnotation`]),Bb=W([`TSIntersectionType`,`IntersectionTypeAnnotation`]),Vb=W([`TSConditionalType`,`ConditionalTypeAnnotation`]),Hb=e=>e?.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`,Ub=W([`TSTypeAliasDeclaration`,`TypeAlias`]);function Wb({key:e,parent:t}){return!(e===`types`&&zb(t)||e===`types`&&Bb(t))}var Gb=new Set([`range`,`raw`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`extra`,`start`,`end`,`loc`,`flags`,`errors`,`tokens`]),Kb=e=>{for(let t of e.quasis)delete t.value};function qb(e,t,n){if(e.type===`Program`&&delete t.sourceType,(e.type===`BigIntLiteral`||e.type===`Literal`)&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type===`EmptyStatement`&&!xy({node:e,parent:n})||e.type===`JSXText`||e.type===`JSXExpressionContainer`&&(e.expression.type===`Literal`||e.expression.type===`StringLiteral`)&&e.expression.value===` `)return null;if((e.type===`Property`||e.type===`ObjectProperty`||e.type===`MethodDefinition`||e.type===`ClassProperty`||e.type===`ClassMethod`||e.type===`PropertyDefinition`||e.type===`TSDeclareMethod`||e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`||e.type===`ImportAttribute`)&&e.key&&!e.computed){let{key:n}=e;Ny(n)||Ay(n)?t.key=String(n.value):n.type===`Identifier`&&(t.key=n.name)}if(e.type===`JSXElement`&&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`&&Kb(n);e.type===`JSXAttribute`&&e.name.name===`css`&&e.value.type===`JSXExpressionContainer`&&e.value.expression.type===`TemplateLiteral`&&Kb(t.value.expression),e.type===`JSXAttribute`&&e.value?.type===`Literal`&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=sv(0,e.value.value,/["']|&quot;|&apos;/gu,`"`));let r=e.expression||e.callee;if(e.type===`Decorator`&&r.type===`CallExpression`&&r.callee.name===`Component`&&r.arguments.length===1){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case`styles`:Dy(r.value)&&Kb(r.value.elements[0]);break;case`template`:r.value.type===`TemplateLiteral`&&Kb(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`)&&Kb(t.quasi),e.type===`TemplateLiteral`&&Kb(t),e.type===`ChainExpression`&&e.expression.type===`TSNonNullExpression`&&(t.type=`TSNonNullExpression`,t.expression.type=`ChainExpression`)}qb.ignoredProperties=Gb;var Jb=qb,Yb=W([`File`,`TemplateElement`,`TSEmptyBodyFunctionExpression`,`ChainExpression`]),Xb=(e,[t])=>t?.type===`ComponentParameter`&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type===`MatchObjectPatternProperty`&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type===`ObjectProperty`&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type===`Property`&&t.shorthand&&t.key===e&&!Hy(t)&&t.value!==t.key,Zb=(e,[t])=>!!(e.type===`FunctionExpression`&&t.type===`MethodDefinition`&&t.value===e&&Tb(e).length===0&&!e.returnType&&!zv(e.typeParameters)&&e.body),Qb=(e,[t])=>t?.typeAnnotation===e&&Hb(t),$b=(e,[t,...n])=>Qb(e,[t])||t?.typeName===e&&Qb(t,n);function ex(e,t){return Yb(e)||Xb(e,t)||Zb(e,t)?!1:e.type===`EmptyStatement`?xy({node:e,parent:t[0]}):!($b(e,t)||e.type===`TSTypeAnnotation`&&t[0].type===`TSPropertySignature`)}var tx=ex;function nx(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 rx(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=nx(e)}function ix(e,t){t.leading=!0,t.trailing=!1,rx(e,t)}function ax(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),rx(e,t)}function ox(e,t){t.leading=!1,t.trailing=!0,rx(e,t)}function sx(e,t){let n=null,r=t;for(;r!==n;)n=r,r=wv(e,r),r=Nv(e,r),r=Fv(e,r),r=kv(e,r);return r}var cx=sx;function lx(e,t){let n=cx(e,t);return n===!1?``:e.charAt(n)}var ux=lx;function dx(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
309
- `)return!0;return!1}var fx=dx,px=new WeakMap;function mx(e){return px.has(e)||px.set(e,fy(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)),px.get(e)}var hx=mx,gx=(e,t)=>my(e)||!fx(t,V(e),H(e));function _x(e){return[$x,Ox,Rx,Lx,Ex,Cx,wx,Tx,Ax,Kx,Hx,Ux,Gx,qx,Jx,Mx,zx,Bx,Dx,rS,eS,oS].some(t=>t(e))}function vx(e){return[Sx,Rx,Ox,qx,Cx,wx,Tx,Ax,zx,Vx,Wx,Gx,Zx,Bx,tS,nS,iS,eS,sS,aS,oS].some(t=>t(e))}function yx(e){return[$x,Cx,wx,Ix,Mx,Gx,Fx,Px,Bx,Qx,oS].some(t=>t(e))}function bx(e,t){let n=(e.body||e.properties).find(({type:e})=>e!==`EmptyStatement`);n?ix(n,t):ax(e,t)}function xx(e,t){e.type===`BlockStatement`?bx(e,t):ix(e,t)}function Sx({comment:e,followingNode:t}){return t&&hx(e)?(ix(t,e),!0):!1}function Cx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){if(n?.type!==`IfStatement`||!r)return!1;if(ux(i,H(e))===`)`)return ox(t,e),!0;if(r.type===`BlockStatement`&&r===n.consequent&&V(e)>=H(t)&&H(e)<=V(r))return ix(r,e),!0;if(t===n.consequent&&r===n.alternate){let a=cx(i,H(n.consequent));if(r.type===`BlockStatement`&&V(e)>=a&&H(e)<=V(r))return ix(r,e),!0;if(V(e)<a||n.alternate.type===`BlockStatement`)return t.type===`BlockStatement`||gx(e,i)&&!fx(i,V(t),V(e))?(ox(t,e),!0):(ax(n,e),!0)}return r.type===`BlockStatement`?(bx(r,e),!0):r.type===`IfStatement`?(xx(r.consequent,e),!0):n.consequent===r&&(ix(r,e),!0)}function wx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return n?.type!==`WhileStatement`||!r?!1:ux(i,H(e))===`)`?(ox(t,e),!0):r.type===`BlockStatement`?(bx(r,e),!0):n.body===r&&(ix(r,e),!0)}function Tx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!==`TryStatement`&&n?.type!==`CatchClause`||!r?!1:n.type===`CatchClause`&&t?(ox(t,e),!0):r.type===`BlockStatement`?(bx(r,e),!0):r.type===`TryStatement`?(xx(r.finalizer,e),!0):r.type===`CatchClause`&&(xx(r.body,e),!0)}function Ex({comment:e,enclosingNode:t,followingNode:n}){return tb(t)&&n?.type===`Identifier`?(ix(t,e),!0):!1}function Dx({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type===`ConditionalExpression`||Vb(t))?!1:n?.type===`ConditionalExpression`||Vb(n)?(ax(t,e),!0):!1}function Ox({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){let o=t&&!fx(i,H(t),V(e));return(!t||!o)&&(n?.type===`ConditionalExpression`||Vb(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(fy(e)&&!fx(a.originalText,V(e),H(e)))?(ax(n,e),!0):(ix(r,e),!0):!1}var kx=W([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function Ax({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(kx(n)){if(zv(n.decorators)&&r?.type!==`Decorator`)return ox(lv(0,n.decorators,-1),e),!0;if(n.body&&r===n.body)return bx(n.body,e),!0;if(r){if(n.superClass&&r===n.superClass&&t&&(t===n.id||t===n.typeParameters))return ox(t,e),!0;for(let i of[`implements`,`extends`,`mixins`])if(n[i]&&r===n[i][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?ox(t,e):ax(n,e,i),!0}}return!1}var jx=W([`ClassMethod`,`ClassProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`,`MethodDefinition`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`TSParameterProperty`]);function Mx({comment:e,precedingNode:t,enclosingNode:n,text:r}){return n&&t&&ux(r,H(e))===`(`&&(n.type===`Property`||n.type===`TSDeclareMethod`||n.type===`TSAbstractMethodDefinition`)&&t.type===`Identifier`&&n.key===t&&ux(r,H(t))!==`:`||t?.type===`Decorator`&&jx(n)&&(my(e)||e.placement===`ownLine`)?(ox(t,e),!0):!1}var Nx=W([`FunctionDeclaration`,`FunctionExpression`,`ClassMethod`,`MethodDefinition`,`ObjectMethod`]);function Px({comment:e,precedingNode:t,enclosingNode:n,text:r}){return ux(r,H(e))===`(`&&t&&Nx(n)?(ox(t,e),!0):!1}function Fx({comment:e,enclosingNode:t,text:n}){if(t?.type!==`ArrowFunctionExpression`)return!1;let r=cx(n,H(e));return r!==!1&&n.slice(r,r+2)===`=>`&&(ax(t,e),!0)}function Ix({comment:e,enclosingNode:t,text:n}){return ux(n,H(e))===`)`?t&&(cS(t)&&Tb(t).length===0||Ib(t)&&Ob(t).length===0)?(ax(t,e),!0):(t?.type===`MethodDefinition`||t?.type===`TSAbstractMethodDefinition`)&&Tb(t.value).length===0&&(ax(t.value,e),!0):!1}function Lx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return(t?.type===`ComponentTypeParameter`&&(n?.type===`DeclareComponent`||n?.type===`ComponentTypeAnnotation`)&&r?.type!==`ComponentTypeParameter`||(t?.type===`ComponentParameter`||t?.type===`RestElement`)&&n?.type===`ComponentDeclaration`&&ux(i,H(e))===`)`)&&(ox(t,e),!0)}function Rx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`FunctionTypeParam`&&n?.type===`FunctionTypeAnnotation`&&r?.type!==`FunctionTypeParam`||(t?.type===`Identifier`||t?.type===`AssignmentPattern`||t?.type===`ObjectPattern`||t?.type===`ArrayPattern`||t?.type===`RestElement`||t?.type===`TSParameterProperty`)&&cS(n)&&ux(i,H(e))===`)`?(ox(t,e),!0):!fy(e)&&r?.type===`BlockStatement`&&Nx(n)&&(n.type===`MethodDefinition`?n.value.body:n.body)===r&&cx(i,H(e))===V(r)?(bx(r,e),!0):!1}function zx({comment:e,enclosingNode:t}){return t?.type===`LabeledStatement`&&(ix(t,e),!0)}function Bx({comment:e,enclosingNode:t}){return(t?.type===`ContinueStatement`||t?.type===`BreakStatement`)&&!t.label&&(ox(t,e),!0)}function Vx({comment:e,precedingNode:t,enclosingNode:n}){return eb(n)&&t&&n.callee===t&&n.arguments.length>0?(ix(n.arguments[0],e),!0):!1}function Hx({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return zb(n)?(jb(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(ox(t,e),!0):!1):(zb(r)&&jb(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Ux({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type===`MatchOrPattern`?(jb(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(ox(t,e),!0):!1):(r&&r.type===`MatchOrPattern`&&jb(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Wx({comment:e,enclosingNode:t}){return Lb(t)?(ix(t,e),!0):!1}function Gx({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?ax(n,e):ix(n,e),!0):t?.type===`Program`&&t.body.length===0&&!zv(t.directives)&&(r?ax(t,e):ix(t,e),!0)}function Kx({comment:e,enclosingNode:t,followingNode:n}){return(t?.type===`ForInStatement`||t?.type===`ForOfStatement`)&&n!==t.body&&(ix(t,e),!0)}function qx({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type===`ImportSpecifier`||n?.type===`ExportSpecifier`)return ix(n,e),!0;let i=t?.type===`ImportSpecifier`&&n?.type===`ImportDeclaration`,a=t?.type===`ExportSpecifier`&&n?.type===`ExportNamedDeclaration`;return(i||a)&&jv(r,H(e))?(ox(t,e),!0):!1}function Jx({comment:e,enclosingNode:t}){return t?.type===`AssignmentPattern`&&(ix(t,e),!0)}var Yx=W([`VariableDeclarator`,`AssignmentExpression`,`TypeAlias`,`TSTypeAliasDeclaration`]),Xx=W([`ObjectExpression`,`ArrayExpression`,`TemplateLiteral`,`TaggedTemplateExpression`,`ObjectTypeAnnotation`,`TSTypeLiteral`]);function Zx({comment:e,enclosingNode:t,followingNode:n}){return Yx(t)&&n&&(Xx(n)||fy(e))?(ix(n,e),!0):!1}function Qx({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)&&ux(i,H(e))===`;`&&(ox(t,e),!0)}function $x({comment:e,enclosingNode:t,followingNode:n}){if(jb(e)&&t?.type===`TSMappedType`&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function eS({comment:e,precedingNode:t,enclosingNode:n}){if(n?.type===`TSMappedType`&&!t)return ax(n,e),!0}function tS({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!==`SwitchCase`||t.test||!n||n!==t.consequent[0]?!1:(n.type===`BlockStatement`&&my(e)?bx(n,e):ax(t,e),!0)}function nS({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return zb(t)&&((n.type===`TSArrayType`||n.type===`ArrayTypeAnnotation`)&&!r||Bb(n))?(ox(lv(0,t.types,-1),e),!0):!1}function rS({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type===`ObjectPattern`||t?.type===`ArrayPattern`)&&r?.type===`TSTypeAnnotation`)return n?ox(n,e):ax(t,e),!0}function iS({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!r&&n?.type===`UnaryExpression`&&(t?.type===`LogicalExpression`||t?.type===`BinaryExpression`)&&fx(i,V(n.argument),V(t.right))&&gx(e,i)&&!fx(i,V(t.right),V(e))?(ox(t.right,e),!0):!1}function aS({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`)&&(zb(t)||Bb(t)))return ix(t,n),!0}function oS({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:i}){if(Rb(e)&&t===e.expression&&!gx(r,i))return n?ix(n,r):ox(e,r),!0}function sS({comment:e,enclosingNode:t,followingNode:n,precedingNode:r}){return t&&n&&r&&t.type===`ArrowFunctionExpression`&&t.returnType===r&&(r.type===`TSTypeAnnotation`||r.type===`TypeAnnotation`)?(ix(n,e),!0):!1}var cS=W([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`,`ObjectMethod`,`ClassMethod`,`TSDeclareFunction`,`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`,`TSMethodSignature`,`TSConstructorType`,`TSFunctionType`,`TSDeclareMethod`]),lS={endOfLine:vx,ownLine:_x,remaining:yx};function uS(e,{parser:t}){if(t===`flow`||t===`hermes`||t===`babel-flow`)return e=sv(0,e,/[\s(]/gu,``),e===``||e===`/*`||e===`/*::`}var dS=uS,fS=W([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function pS(e){let{key:t,parent:n}=e;if(t===`types`&&zb(n)||t===`argument`&&n.type===`JSXSpreadAttribute`||t===`expression`&&n.type===`JSXSpreadChild`||t===`superClass`&&(n.type===`ClassDeclaration`||n.type===`ClassExpression`)||(t===`id`||t===`typeParameters`)&&fS(n)||t===`patterns`&&n.type===`MatchOrPattern`)return!0;let{node:r}=e;return Mb(r)?!1:zb(r)?Wb(e):!!Vy(r)}var mS=pS,hS=`string`,gS=`array`,_S=`cursor`,vS=`indent`,yS=`align`,bS=`trim`,xS=`group`,SS=`fill`,CS=`if-break`,wS=`indent-if-break`,TS=`line-suffix`,ES=`line-suffix-boundary`,DS=`line`,OS=`label`,kS=`break-parent`,AS=new Set([_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS]);function jS(e){if(typeof e==`string`)return hS;if(Array.isArray(e))return gS;if(!e)return;let{type:t}=e;if(AS.has(t))return t}var MS=jS,NS=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function PS(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
310
- Expected it to be 'string' or 'object'.`;if(MS(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=NS([...AS].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
311
- Expected it to be ${r}.`}var FS=class extends Error{name=`InvalidDocError`;constructor(e){super(PS(e)),this.doc=e}},IS={};function LS(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===IS){n(i.pop());continue}n&&i.push(e,IS);let a=MS(e);if(!a)throw new FS(e);if(t?.(e)!==!1)switch(a){case gS:case SS:{let t=a===gS?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case CS:i.push(e.flatContents,e.breakContents);break;case xS: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 yS:case vS:case wS:case OS:case TS:i.push(e.contents);break;case hS:case _S:case bS:case ES:case DS:case kS:break;default:throw new FS(e)}}}var RS=LS;function zS(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(MS(e)){case gS:return t(e.map(r));case SS:return t({...e,parts:e.parts.map(r)});case CS:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case xS:{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 yS:case vS:case wS:case OS:case TS:return t({...e,contents:r(e.contents)});case hS:case _S:case bS:case ES:case DS:case kS:return t(e);default:throw new FS(e)}}}function BS(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 RS(e,a),r}function VS(e){if(e.type===xS&&e.break||e.type===DS&&e.hard||e.type===kS)return!0}function HS(e){return BS(e,VS,!1)}function US(e){if(e.length>0){let t=lv(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function WS(e){let t=new Set,n=[];function r(e){if(e.type===kS&&US(n),e.type===xS){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===xS&&n.pop().break&&US(n)}RS(e,r,i,!0)}function GS(e){return e.type===DS&&!e.hard?e.soft?``:` `:e.type===CS?e.flatContents:e}function KS(e){return zS(e,GS)}function qS(e){switch(MS(e)){case SS:if(e.parts.every(e=>e===``))return``;break;case xS:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===xS&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case yS:case vS:case wS:case TS:if(!e.contents)return``;break;case CS:if(!e.flatContents&&!e.breakContents)return``;break;case gS:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof lv(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 hS:case _S:case bS:case ES:case DS:case OS:case kS:break;default:throw new FS(e)}return e}function JS(e){return zS(e,e=>qS(e))}function YS(e,t=hC){return zS(e,e=>typeof e==`string`?X(t,e.split(`
312
- `)):e)}function XS(e){if(e.type===DS)return!0}function ZS(e){return BS(e,XS,!1)}function QS(e,t){return e.type===OS?{...e,contents:t(e.contents)}:t(e)}function $S(e){let t=!0;return RS(e,e=>{switch(MS(e)){case hS:if(e===``)break;case bS:case ES:case DS:case kS:return t=!1,!1}}),t}var eC=Bv,tC=Bv,nC=Bv,rC=Bv;function q(e){return eC(e),{type:vS,contents:e}}function iC(e,t){return rC(e),eC(t),{type:yS,contents:t,n:e}}function aC(e){return iC(-1/0,e)}function oC(e){return iC(-1,e)}function sC(e,t,n){eC(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=q(r);r=iC(t%n,r),r=iC(-1/0,r)}return r}var cC={type:kS},lC={type:_S};function uC(e){return nC(e),{type:SS,parts:e}}function J(e,t={}){return eC(e),tC(t.expandedStates,!0),{type:xS,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function dC(e,t){return J(e[0],{...t,expandedStates:e})}function Y(e,t=``,n={}){return eC(e),t!==``&&eC(t),{type:CS,breakContents:e,flatContents:t,groupId:n.groupId}}function fC(e,t){return eC(e),{type:wS,contents:e,groupId:t.groupId,negate:t.negate}}function X(e,t){eC(e),tC(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function pC(e,t){return eC(t),e?{type:OS,label:e,contents:t}:t}var Z={type:DS},Q={type:DS,soft:!0},mC={type:DS,hard:!0},$=[mC,cC],hC=[{type:DS,hard:!0,literal:!0},cC];function gC(e){return eC(e),{type:TS,contents:e}}var _C={type:ES},vC=`cr`,yC=`crlf`,bC=`\r`,xC=`\r
313
- `,SC=`
314
- `;function CC(e){return e===vC?bC:e===yC?xC:SC}var wC={type:0},TC={type:1},EC={value:``,length:0,queue:[],get root(){return EC}};function DC(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 OC(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?TC:{type:2,width:t}:{type:3,string:t},DC(e,r,n)}function kC(e,t){return DC(e,wC,t)}function AC(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 jC(e){let t=AC(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var MC=Symbol(`MODE_BREAK`),NC=Symbol(`MODE_FLAT`),PC=Symbol(`DOC_FILL_PRINTED_LENGTH`);function FC(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(),d=MS(u);switch(d){case hS:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=Sv(u));break;case gS:case SS:{let t=d===gS?u:u.parts,n=u[PC]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case vS:case yS:case wS:case OS:c.push({mode:e,doc:u.contents});break;case bS:{let{text:e,count:t}=jC(l);l=e,n+=t;break}case xS:{if(a&&u.break)return!1;let t=u.break?MC:e,n=u.expandedStates&&t===MC?lv(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case CS:{let t=(u.groupId?i[u.groupId]||NC:e)===MC?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case DS:if(e===MC||u.hard)return!0;u.soft||(s=!0);break;case TS:r=!0;break;case ES:if(r)return!1}}return!1}function IC(e,t){let n=Object.create(null),r=t.printWidth,i=CC(t.endOfLine),a=0,o=[{indent:EC,mode:MC,doc:e}],s=``,c=!1,l=[],u=[],d=[],f=[],p=0;for(WS(e);o.length>0;){let{indent:e,mode:d,doc:f}=o.pop();switch(MS(f)){case hS:{let e=i===`
315
- `?f:sv(0,f,`
316
- `,i);e&&(s+=e,o.length>0&&(a+=Sv(e)));break}case gS:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:d,doc:f[t]});break;case _S:if(u.length>=2)throw Error(`There are too many 'cursor' in doc.`);u.push(p+s.length);break;case vS:o.push({indent:kC(e,t),mode:d,doc:f.contents});break;case yS:o.push({indent:OC(e,f.n,t),mode:d,doc:f.contents});break;case bS:_();break;case xS:switch(d){case NC:if(!c){o.push({indent:e,mode:f.break?MC:NC,doc:f.contents});break}case MC:{c=!1;let t={indent:e,mode:NC,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&FC(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=lv(0,f.expandedStates,-1);if(f.break){o.push({indent:e,mode:MC,doc:t});break}for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({indent:e,mode:MC,doc:t});break}else{let t={indent:e,mode:NC,doc:f.expandedStates[r]};if(FC(t,o,i,s,n)){o.push(t);break}}}else o.push({indent:e,mode:MC,doc:f.contents});break}}f.id&&(n[f.id]=lv(0,o,-1).mode);break;case SS:{let t=r-a,i=f[PC]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={indent:e,mode:NC,doc:u},h={indent:e,mode:MC,doc:u},g=FC(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:NC,doc:p},v={indent:e,mode:MC,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={indent:e,mode:d,doc:{...f,[PC]:i+2}},x=FC({indent:e,mode:NC,doc:[u,p,y]},[],t,l.length>0,n,!0);o.push(b),x?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case CS:case wS:{let t=f.groupId?n[f.groupId]:d;if(t===MC){let t=f.type===CS?f.breakContents:f.negate?f.contents:q(f.contents);t&&o.push({indent:e,mode:d,doc:t})}if(t===NC){let t=f.type===CS?f.flatContents:f.negate?q(f.contents):f.contents;t&&o.push({indent:e,mode:d,doc:t})}break}case TS:l.push({indent:e,mode:d,doc:f.contents});break;case ES:l.length>0&&o.push({indent:e,mode:d,doc:mC});break;case DS:switch(d){case NC:if(f.hard)c=!0;else{f.soft||(s+=` `,a+=1);break}case MC:if(l.length>0){o.push({indent:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?(s+=i,a=0,e.root&&(e.root.value&&(s+=e.root.value),a=e.root.length)):(_(),s+=i+e.value,a=e.length)}break;case OS:o.push({indent:e,mode:d,doc:f.contents});break;case kS:break;default:throw new FS(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let m=d.join(``)+s,h=[...f,...u];if(h.length!==2)return{formatted:m};let g=h[0];return{formatted:m,cursorNodeStart:g,cursorNodeText:m.slice(g,lv(0,h,-1))};function _(){let{text:e,count:t}=jC(s);e&&(d.push(e),p+=e.length),s=``,a-=t,u.length>0&&(f.push(...u.map(e=>Math.min(e,p))),u.length=0)}}function LC(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 RC=LC;function zC(e,t){let n=e.lastIndexOf(`
317
- `);return n===-1?0:RC(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var BC=zC;function VC(e,t,n){let{node:r}=e;if(r.type===`TemplateLiteral`&&JC(e)){let r=UC(e,t,n);if(r)return r}let i=`expressions`;r.type===`TSTemplateLiteralType`&&(i=`types`);let a=[],o=e.map(n,i);a.push(_C,"`");let s=0;return e.each(({index:e,node:c})=>{if(a.push(n()),c.tail)return;let{tabWidth:l}=t,u=c.value.raw,d=u.includes(`
318
- `)?BC(u,l):s;s=d;let f=o[e],p=r[i][e],m=fx(t.originalText,H(c),V(r.quasis[e+1]));if(!m){let e=IC(f,{...t,printWidth:1/0}).formatted;e.includes(`
319
- `)?m=!0:f=e}m&&(K(p)||p.type===`Identifier`||tb(p)||p.type===`ConditionalExpression`||p.type===`SequenceExpression`||Rb(p)||Gy(p))&&(f=[q([Q,f]),Q]);let h=d===0&&u.endsWith(`
320
- `)?iC(-1/0,f):sC(f,d,l);a.push(J(["${",h,_C,`}`]))},`quasis`),a.push("`"),a}function HC(e,t,n){let r=n(`quasi`),{node:i}=e,a=``,o=Pb(i.quasi,G.Leading)[0];return o&&(a=fx(t.originalText,H(i.typeArguments??i.tag),V(o))?Q:` `),pC(r.label&&{tagged:!0,...r.label},[n(`tag`),n(`typeArguments`),a,_C,r])}function UC(e,t,n){let{node:r}=e,i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;let a=e.map(n,`expressions`);t.__inJestEach=!1;let o=a.map(e=>"${"+IC(e,{...t,printWidth:1/0,endOfLine:`lf`}).formatted+`}`),s=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){let t=lv(0,s,-1),n=o[e-1];t.cells.push(n),n.includes(`
321
- `)&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes(`
322
- `)&&s.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...s.map(e=>e.cells.length)),l=Array.from({length:c}).fill(0),u=[{cells:i},...s.filter(e=>e.cells.length>0)];for(let{cells:e}of u.filter(e=>!e.hasLineBreak))for(let[t,n]of e.entries())l[t]=Math.max(l[t],Sv(n));return[_C,"`",q([$,X($,u.map(e=>X(` | `,e.cells.map((t,n)=>e.hasLineBreak?t:t+` `.repeat(l[n]-Sv(t))))))]),$,"`"]}}function WC(e,t){let{node:n}=e,r=t();return K(n)&&(r=J([q([Q,r]),Q])),["${",r,_C,`}`]}function GC(e,t){return e.map(()=>WC(e,t),`expressions`)}function KC(e,t){return zS(e,e=>typeof e==`string`?t?sv(0,e,/(\\*)`/gu,"$1$1\\`"):qC(e):e)}function qC(e){return sv(0,e,/([\\`]|\$\{)/gu,`\\$1`)}function JC({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;return t.type===`TaggedTemplateExpression`&&t.quasi===e&&t.tag.type===`MemberExpression`&&t.tag.property.type===`Identifier`&&t.tag.property.name===`each`&&(t.tag.object.type===`Identifier`&&n.test(t.tag.object.name)||t.tag.object.type===`MemberExpression`&&t.tag.object.property.type===`Identifier`&&(t.tag.object.property.name===`only`||t.tag.object.property.name===`skip`)&&t.tag.object.object.type===`Identifier`&&n.test(t.tag.object.object.name))}var YC=[(e,t)=>e.type===`ObjectExpression`&&t===`properties`,(e,t)=>e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`Component`&&t===`arguments`,(e,t)=>e.type===`Decorator`&&t===`expression`];function XC(e){let t=e=>e.type===`TemplateLiteral`,n=(e,t)=>Lb(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`styles`&&t===`value`;return e.match(t,(e,t)=>Dy(e)&&t===`elements`,n,...YC)||e.match(t,n,...YC)}function ZC(e){return e.match(e=>e.type===`TemplateLiteral`,(e,t)=>Lb(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`template`&&t===`value`,...YC)}function QC(e,t){return K(e,G.Block|G.Leading,({value:e})=>e===` ${t} `)}function $C({node:e,parent:t},n){return QC(e,n)||ew(t)&&QC(t,n)||t.type===`ExpressionStatement`&&QC(t,n)}function ew(e){return e.type===`AsConstExpression`||e.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`}async function tw(e,t,n){let{node:r}=n,i=``;for(let[e,t]of r.quasis.entries()){let{raw:n}=t.value;e>0&&(i+=`@prettier-placeholder-`+(e-1)+`-id`),i+=n}let a=nw(await e(i,{parser:`scss`}),GC(n,t));if(!a)throw Error(`Couldn't insert all the expressions`);return["`",q([$,a]),Q,"`"]}function nw(e,t){if(!zv(t))return e;let n=0,r=zS(JS(e),e=>typeof e!=`string`||!e.includes(`@prettier-placeholder`)?e:e.split(/@prettier-placeholder-(\d+)-id/u).map((e,r)=>r%2==0?YS(e):(n++,t[e])));return t.length===n?r:null}function rw(e){return e.match(void 0,(e,t)=>t===`quasi`&&e.type===`TaggedTemplateExpression`&&_y(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 iw(e){return e.type===`Identifier`&&e.name===`styled`}function aw(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name===`extend`}function ow({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 iw(t.object)||aw(t);case`CallExpression`:return iw(t.callee)||t.callee.type===`MemberExpression`&&(t.callee.object.type===`MemberExpression`&&(iw(t.callee.object.object)||aw(t.callee.object))||t.callee.object.type===`CallExpression`&&iw(t.callee.object.callee));case`Identifier`:return t.name===`css`;default:return!1}}function sw({parent:e,grandparent:t}){return t?.type===`JSXAttribute`&&e.type===`JSXExpressionContainer`&&t.name.type===`JSXIdentifier`&&t.name.name===`css`}var cw=e=>rw(e)||ow(e)||sw(e)||XC(e);async function lw(e,t,n){let{node:r}=n,i=r.quasis.length,a=GC(n,t),o=[];for(let t=0;t<i;t++){let n=r.quasis[t],s=t===0,c=t===i-1,l=n.value.cooked,u=l.split(`
323
- `),d=u.length,f=a[t],p=d>2&&u[0].trim()===``&&u[1].trim()===``,m=d>2&&u[d-1].trim()===``&&u[d-2].trim()===``,h=u.every(e=>/^\s*(?:#[^\n\r]*)?$/u.test(e));if(!c&&/#[^\n\r]*$/u.test(u[d-1]))return null;let g=null;g=h?uw(u):await e(l,{parser:`graphql`}),g?(g=KC(g,!1),!s&&p&&o.push(``),o.push(g),!c&&m&&o.push(``)):!s&&!c&&p&&o.push(``),f&&o.push(f)}return["`",q([$,X($,o)]),$,"`"]}function uw(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([$,i]):t.push(i),n=!0);return t.length===0?null:X($,t)}function dw({node:e,parent:t}){return $C({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 fw=0;async function pw(e,t,n,r,i){let{node:a}=r,o=fw;fw=fw+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=GC(r,n),u=new RegExp(s(`(\\d+)`),`gu`),d=0,f=zS(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=qC(r),i.__embeddedInHtml&&(r=sv(0,r,/<\/(?=script\b)/giu,`<\\/`)),t.push(r));continue}let a=Number(r);t.push(l[a])}return t}),p=/^\s/u.test(c)?` `:``,m=/\s$/u.test(c)?` `:``,h=i.htmlWhitespaceSensitivity===`ignore`?$:p&&m?Z:null;return h?J(["`",q([h,J(f)]),h,"`"]):pC({hug:!1},J(["`",p,d>1?q(J(f)):J(f),m,"`"]))}function mw(e){return $C(e,`HTML`)||e.match(e=>e.type===`TemplateLiteral`,(e,t)=>e.type===`TaggedTemplateExpression`&&e.tag.type===`Identifier`&&e.tag.name===`html`&&t===`quasi`)}var hw=pw.bind(void 0,`html`),gw=pw.bind(void 0,`angular`);async function _w(e,t,n){let{node:r}=n,i=sv(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(e,t)=>`\\`.repeat(t.length/2)+"`"),a=vw(i),o=a!==``;o&&(i=sv(0,i,RegExp(`^${a}`,`gmu`),``));let s=KC(await e(i,{parser:`markdown`,__inJsTemplate:!0}),!0);return["`",o?q([Q,s]):[hC,aC(s)],Q,"`"]}function vw(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?``:t[1]}function yw({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 bw=[{test:cw,print:tw},{test:dw,print:lw},{test:mw,print:hw},{test:ZC,print:gw},{test:yw,print:_w}].map(({test:e,print:t})=>({test:e,print:Sw(t)}));function xw(e){let{node:t}=e;if(t.type!==`TemplateLiteral`||Cw(t))return;let n=bw.find(({test:t})=>t(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===``?"``":n.print}function Sw(e){return async(...t)=>{let n=await e(...t);return n&&pC({embed:!0,...n.label},n)}}function Cw({quasis:e}){return e.some(({value:{cooked:e}})=>e===null)}var ww=xw,Tw=/\*\/$/,Ew=/^\/\*\*?/,Dw=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ow=/(^|\s+)\/\/([^\n\r]*)/g,kw=/^(\r?\n)+/,Aw=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,jw=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Mw=/(\r?\n|^) *\* ?/g,Nw=[];function Pw(e){let t=e.match(Dw);return t?t[0].trimStart():``}function Fw(e){let t=e.match(Dw)?.[0];return t==null?e:e.slice(t.length)}function Iw(e){e=sv(0,e.replace(Ew,``).replace(Tw,``),Mw,`$1`);let t=``;for(;t!==e;)t=e,e=sv(0,e,Aw,`
324
- $1 $2
325
- `);e=e.replace(kw,``).trimEnd();let n=Object.create(null),r=sv(0,e,jw,``).replace(kw,``).trimEnd(),i;for(;i=jw.exec(e);){let e=sv(0,i[2],Ow,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...Nw,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function Lw({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>Rw(e,t[e])).map(e=>` * ${e}
326
- `).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${Rw(n[0],e)[0]} */`}}let i=e.split(`
327
- `).map(e=>` * ${e}`).join(`
328
- `)+`
329
- `;return`/**
330
- `+(e?i:``)+(e&&n.length>0?` *
331
- `:``)+r+` */`}function Rw(e,t){return[...Nw,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var zw=`format`;function Bw(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
332
- `);return t===-1?e:e.slice(0,t)}var Vw=Bw;function Hw(e){let t=Vw(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=Iw(Pw(e));return{shebang:t,text:e,pragmas:n,comments:r}}function Uw(e){let{shebang:t,text:n,pragmas:r,comments:i}=Hw(e),a=Fw(n),o=Lw({pragmas:{[zw]:``,...r},comments:i.trimStart()});return(t?`${t}
333
- `:``)+o+(a.startsWith(`
334
- `)?`
335
- `:`
336
-
337
- `)+a}function Ww(e){if(!fy(e))return!1;let t=`*${e.value}*`.split(`
338
- `);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var Gw=new WeakMap;function Kw(e){return Gw.has(e)||Gw.set(e,Ww(e)),Gw.get(e)}var qw=Kw;function Jw(e,t){let n=e.node;if(my(n))return t.originalText.slice(V(n),H(n)).trimEnd();if(qw(n))return Yw(n);if(fy(n))return[`/*`,YS(n.value),`*/`];throw Error(`Not a comment: `+JSON.stringify(n))}function Yw(e){let t=e.value.split(`
339
- `);return[`/*`,X($,t.map((e,n)=>n===0?e.trimEnd():` `+(n<t.length-1?e.trim():e.trimStart()))),`*/`]}function Xw(e,t){if(e.isRoot)return!1;let{node:n,key:r,parent:i}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&eT(n)&&tT(e))return!0;if(Zw(n))return!1;if(n.type===`Identifier`){if(n.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n.name)||r===`left`&&(n.name===`async`&&!i.await||n.name===`let`)&&i.type===`ForOfStatement`)return!0;if(n.name===`let`){let t=e.findAncestor(e=>e.type===`ForOfStatement`)?.left;if(t&&hb(t,e=>e===n))return!0}if(r===`object`&&n.name===`let`&&i.type===`MemberExpression`&&i.computed&&!i.optional){let t=e.findAncestor(e=>e.type===`ExpressionStatement`||e.type===`ForStatement`||e.type===`ForInStatement`),r=t?t.type===`ExpressionStatement`?t.expression:t.type===`ForStatement`?t.init:t.left:void 0;if(r&&hb(r,e=>e===n))return!0}if(r===`expression`)switch(n.name){case`await`:case`interface`:case`module`:case`using`:case`yield`:case`let`:case`component`:case`hook`:case`type`:{let t=e.findAncestor(e=>!Rb(e));if(t!==i&&t.type===`ExpressionStatement`)return!0}}return!1}if(n.type===`ObjectExpression`||n.type===`FunctionExpression`||n.type===`ClassExpression`||n.type===`DoExpression`){let t=e.findAncestor(e=>e.type===`ExpressionStatement`)?.expression;if(t&&hb(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`&&hb(t,e=>e===n))return!0}switch(i.type){case`ParenthesizedExpression`:return!1;case`ClassDeclaration`:case`ClassExpression`:if(r===`superClass`&&(n.type===`ArrowFunctionExpression`||n.type===`AssignmentExpression`||n.type===`AwaitExpression`||n.type===`BinaryExpression`||n.type===`ConditionalExpression`||n.type===`LogicalExpression`||n.type===`NewExpression`||n.type===`ObjectExpression`||n.type===`SequenceExpression`||n.type===`TaggedTemplateExpression`||n.type===`UnaryExpression`||n.type===`UpdateExpression`||n.type===`YieldExpression`||n.type===`TSNonNullExpression`||n.type===`ClassExpression`&&zv(n.decorators)))return!0;break;case`ExportDefaultDeclaration`:return nT(e,t)||n.type===`SequenceExpression`;case`Decorator`:if(r===`expression`&&!aT(n))return!0;break;case`TypeAnnotation`:if(e.match(void 0,void 0,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)&&$w(n))return!0;break;case`BinaryExpression`:if(r===`left`&&(i.operator===`in`||i.operator===`instanceof`)&&n.type===`UnaryExpression`)return!0;break;case`VariableDeclarator`:if(r===`init`&&e.match(void 0,void 0,(e,t)=>t===`declarations`&&e.type===`VariableDeclaration`,(e,t)=>t===`left`&&e.type===`ForInStatement`))return!0}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`&&i.operator===`**`;case`TSNonNullExpression`:return!0;default:return!1}case`BinaryExpression`:if(i.type===`UpdateExpression`||n.operator===`in`&&Qw(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!Rb(n);case`ConditionalExpression`:return Rb(n)||ky(n);case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:return r===`callee`;case`ClassExpression`:case`ClassDeclaration`:return r===`superClass`;case`TSTypeAssertion`:case`TaggedTemplateExpression`:case`UnaryExpression`:case`JSXSpreadAttribute`:case`SpreadElement`:case`BindExpression`:case`AwaitExpression`:case`TSNonNullExpression`:case`UpdateExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`AssignmentExpression`:case`AssignmentPattern`:return r===`left`&&(n.type===`TSTypeAssertion`||Rb(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=xb(e),o=i.operator,s=xb(o);return!!(s>a||r===`right`&&s===a||s===a&&!yb(o,e)||s<a&&e===`%`&&(o===`+`||o===`-`)||Sb(o))}default:return!1}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`&&Vb(n)&&i.type===n.type||r===`checkType`&&Vb(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(zb(i)||Bb(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`: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`:return i.type===`ArrayTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`);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===`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&&Tb(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`&&tb(i)&&Ay(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`ExportDefaultDeclaration`:case`AwaitExpression`:case`JSXSpreadAttribute`:case`TSTypeAssertion`:case`TypeCastExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`TSNonNullExpression`:return!0;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`ConditionalExpression`:return!t.experimentalTernaries&&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;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`;default:return!1}case`OptionalMemberExpression`:case`OptionalCallExpression`:case`CallExpression`:case`MemberExpression`:if(rT(e))return!0;case`TaggedTemplateExpression`:case`TSNonNullExpression`:if(r===`callee`&&(i.type===`BindExpression`||i.type===`NewExpression`)){let e=n;for(;e;)switch(e.type){case`CallExpression`:case`OptionalCallExpression`: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`&&tb(i);case`NGPipeExpression`:return!(i.type===`NGRoot`||i.type===`NGMicrosyntaxExpression`||i.type===`ObjectProperty`&&!n.extra?.parenthesized||Dy(i)||r===`arguments`&&eb(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===`<`||!Dy(i)&&i.type!==`ArrowFunctionExpression`&&i.type!==`AssignmentExpression`&&i.type!==`AssignmentPattern`&&i.type!==`BinaryExpression`&&i.type!==`NewExpression`&&i.type!==`ConditionalExpression`&&i.type!==`ExpressionStatement`&&i.type!==`JsExpressionRoot`&&i.type!==`JSXAttribute`&&i.type!==`JSXElement`&&i.type!==`JSXExpressionContainer`&&i.type!==`JSXFragment`&&i.type!==`LogicalExpression`&&!eb(i)&&!Lb(i)&&i.type!==`ReturnStatement`&&i.type!==`ThrowStatement`&&i.type!==`TypeCastExpression`&&i.type!==`VariableDeclarator`&&i.type!==`YieldExpression`&&i.type!==`MatchExpressionCase`;case`TSInstantiationExpression`:return r===`object`&&tb(i);case`MatchOrPattern`:return i.type===`MatchAsPattern`}return!1}var Zw=W(`BlockStatement.BreakStatement.ComponentDeclaration.ClassBody.ClassDeclaration.ClassMethod.ClassProperty.PropertyDefinition.ClassPrivateProperty.ContinueStatement.DebuggerStatement.DeclareComponent.DeclareClass.DeclareExportAllDeclaration.DeclareExportDeclaration.DeclareFunction.DeclareHook.DeclareInterface.DeclareModule.DeclareModuleExports.DeclareNamespace.DeclareVariable.DeclareEnum.DoWhileStatement.EnumDeclaration.ExportAllDeclaration.ExportDefaultDeclaration.ExportNamedDeclaration.ExpressionStatement.ForInStatement.ForOfStatement.ForStatement.FunctionDeclaration.HookDeclaration.IfStatement.ImportDeclaration.InterfaceDeclaration.LabeledStatement.MethodDefinition.ReturnStatement.SwitchStatement.ThrowStatement.TryStatement.TSDeclareFunction.TSEnumDeclaration.TSImportEqualsDeclaration.TSInterfaceDeclaration.TSModuleDeclaration.TSNamespaceExportDeclaration.TypeAlias.VariableDeclaration.WhileStatement.WithStatement`.split(`.`));function Qw(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 $w(e){return Sy(e,e=>e.type===`ObjectTypeAnnotation`&&Sy(e,e=>e.type===`FunctionTypeAnnotation`))}function eT(e){return Oy(e)}function tT(e){let{parent:t,key:n}=e;switch(t.type){case`NGPipeExpression`:if(n===`arguments`&&e.isLast)return e.callParent(tT);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(tT);break;case`ConditionalExpression`:if(n===`alternate`)return e.callParent(tT);break;case`UnaryExpression`:if(t.prefix)return e.callParent(tT)}return!1}function nT(e,t){let{node:n,parent:r}=e;return n.type===`FunctionExpression`||n.type===`ClassExpression`?r.type===`ExportDefaultDeclaration`||!Xw(e,t):!Cy(n)||r.type!==`ExportDefaultDeclaration`&&Xw(e,t)?!1:e.call(()=>nT(e,t),...Ty(n))}function rT(e){return!!(e.match(void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(void 0,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalMemberExpression`||e.type===`OptionalCallExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&(e.type===`CallExpression`||e.type===`NewExpression`))||e.match(e=>e.type===`OptionalMemberExpression`||e.type===`OptionalCallExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`)||e.match(e=>e.type===`CallExpression`||e.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`)&&(e.match(void 0,void 0,(e,t)=>t===`callee`&&(e.type===`CallExpression`&&!e.optional||e.type===`NewExpression`)||t===`object`&&e.type===`MemberExpression`&&!e.optional)||e.match(void 0,void 0,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`))||e.match(e=>e.type===`CallExpression`||e.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`))}function iT(e){return e.type===`Identifier`?!0:tb(e)?!e.computed&&!e.optional&&e.property.type===`Identifier`&&iT(e.object):!1}function aT(e){return e.type===`ChainExpression`&&(e=e.expression),iT(e)||eb(e)&&!e.optional&&iT(e.callee)}var oT=Xw;function sT(e,t){let n=t-1;n=wv(e,n,{backwards:!0}),n=kv(e,n,{backwards:!0}),n=wv(e,n,{backwards:!0});let r=kv(e,n,{backwards:!0});return n!==r}var cT=sT,lT=()=>!0;function uT(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function dT(e,t){let n=e.node,r=[uT(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.(n)){let e=jv(a,s(n))?jv(a,o(n),{backwards:!0})?$:Z:` `;r.push(e)}else r.push($);let c=kv(a,wv(a,s(n)));return c!==!1&&jv(a,c)&&r.push($),r}function fT(e,t,n){let r=e.node,i=uT(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||jv(o,s(r),{backwards:!0})?{doc:gC([$,cT(o,s(r))?$:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n?.hasLineSuffix?{doc:[gC([` `,i]),cC],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function pT(e,t,n={}){let{node:r}=e;if(!zv(r?.comments))return``;let{indent:i=!1,marker:a,filter:o=lT}=n,s=[];if(e.each(({node:n})=>{n.leading||n.trailing||n.marker!==a||!o(n)||s.push(uT(e,t))},`comments`),s.length===0)return``;let c=X($,s);return i?q([$,c]):c}function mT(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r?.has(n))return;let{leading:s,trailing:c}=n;s?i.push(dT(e,t)):c&&(o=fT(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function hT(e,t,n){let{leading:r,trailing:i}=mT(e,n);return!r&&!i?t:QS(t,e=>[r,e,i])}var gT=class extends Error{name=`ArgExpansionBailout`};function _T(e,t,n,r,i){let a=e.node,o=Tb(a),s=i&&a.typeParameters?n(`typeParameters`):``;if(o.length===0)return[s,`(`,pT(e,t,{filter:e=>ux(t.originalText,H(e))===`)`}),`)`];let{parent:c}=e,l=Qy(c),u=vT(a),d=[];if(Eb(e,(e,r)=>{let i=r===o.length-1;i&&a.rest&&d.push(`...`),d.push(n()),!i&&(d.push(`,`),l||u?d.push(` `):Fb(o[r],t)?d.push($,$):d.push(Z))}),r&&!xT(e)){if(HS(s)||HS(d))throw new gT;return J([KS(s),`(`,KS(d),`)`])}let f=o.every(e=>!zv(e.decorators));return u&&f||l?[s,`(`,...d,`)`]:(Uy(c)||Wy(c)||c.type===`TypeAlias`||c.type===`UnionTypeAnnotation`||c.type===`IntersectionTypeAnnotation`||c.type===`FunctionTypeAnnotation`&&c.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&Jy(o[0].typeAnnotation)&&!a.rest?t.arrowParens===`always`||a.type===`HookTypeAnnotation`?[`(`,...d,`)`]:d:[s,`(`,q([Q,...d]),Y(!Cb(a)&&mb(t,`all`)&&e.root.type!==`NGRoot`?`,`:``),Q,`)`]}function vT(e){if(!e)return!1;let t=Tb(e);if(t.length!==1)return!1;let[n]=t;return!K(n)&&(n.type===`ObjectPattern`||n.type===`ArrayPattern`||n.type===`Identifier`&&n.typeAnnotation&&(n.typeAnnotation.type===`TypeAnnotation`||n.typeAnnotation.type===`TSTypeAnnotation`)&&Ly(n.typeAnnotation.typeAnnotation)||n.type===`FunctionTypeParam`&&Ly(n.typeAnnotation)&&n!==e.rest||n.type===`AssignmentPattern`&&(n.left.type===`ObjectPattern`||n.left.type===`ArrayPattern`)&&(n.right.type===`Identifier`||Oy(n.right)&&n.right.properties.length===0||Dy(n.right)&&n.right.elements.length===0))}function yT(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function bT(e,t){let n=yT(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 Tb(e).length===1&&(Ly(n)||HS(t))}function xT(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 ST(e){let t=Tb(e);return t.length>1&&t.some(e=>e.type===`TSParameterProperty`)}function CT(e,t){return(t===`params`||t===`this`||t===`rest`)&&vT(e)}function wT(e){let{node:t}=e;return!t.optional||t.type===`Identifier`&&t===e.parent.key?``:eb(t)||tb(t)&&t.computed||t.type===`OptionalIndexedAccessType`?`?.`:`?`}function TT(e){return e.node.definite||e.match(void 0,(e,t)=>t===`id`&&e.type===`VariableDeclarator`&&e.definite)?`!`:``}var ET=W([`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`DeclareVariable`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`,`DeclareOpaqueType`,`DeclareTypeAlias`,`DeclareEnum`,`DeclareInterface`]);function DT(e){let{node:t}=e;return t.declare||ET(t)&&e.parent.type!==`DeclareExportDeclaration`?`declare `:``}var OT=W([`TSAbstractMethodDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]);function kT({node:e}){return e.abstract||OT(e)?`abstract `:``}function AT(e,t,n){return e.type===`EmptyStatement`?K(e,G.Leading)?[` `,t]:t:e.type===`BlockStatement`||n?[` `,t]:q([Z,t])}function jT(e){return e.accessibility?e.accessibility+` `:``}var MT=/^[\$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]*$/,NT=e=>MT.test(e);function PT(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/u,`$1`).replace(/^([+-])?\./u,`$10.`).replace(/(\.\d+?)0+(?=e|$)/u,`$1`).replace(/\.(?=e|$)/u,``)}var FT=PT,IT=0;function LT(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=RT(e,t,n,!1,s);if(s)return l;if(c)return J(l);if(o===`callee`&&(eb(i)||i.type===`NewExpression`)||i.type===`UnaryExpression`||tb(i)&&!i.computed)return J([q([Q,...l]),Q]);let u=i.type===`ReturnStatement`||i.type===`ThrowStatement`||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`&&a.type!==`ReturnStatement`&&a.type!==`ThrowStatement`&&!eb(a)&&a.type!==`NewExpression`||i.type===`TemplateLiteral`||HT(e),d=i.type===`AssignmentExpression`||i.type===`VariableDeclarator`||i.type===`ClassProperty`||i.type===`PropertyDefinition`||i.type===`TSAbstractPropertyDefinition`||i.type===`ClassPrivateProperty`||Lb(i),f=Gy(r.left)&&yb(r.operator,r.left.operator);if(u||zT(r)&&!f||!zT(r)&&d)return J(l);if(l.length===0)return``;let p=Vy(r.right),m=l.findIndex(e=>typeof e!=`string`&&!Array.isArray(e)&&e.type===xS),h=l.slice(0,m===-1?1:m+1),g=l.slice(h.length,p?-1:void 0),_=Symbol(`logicalChain-`+ ++IT),v=J([...h,q(g)],{id:_});return p?J([v,fC(lv(0,l,-1),{groupId:_})]):v}function RT(e,t,n,r,i){let{node:a}=e;if(!Gy(a))return[J(n())];let o=[];yb(a.operator,a.left.operator)?o=e.call(()=>RT(e,t,n,!0,i),`left`):o.push(J(n(`left`)));let s=zT(a),c=a.right.type===`ChainExpression`?a.right.expression:a.right,l=(a.operator===`|>`||a.type===`NGPipeExpression`||VT(e,t))&&!ob(t.originalText,c),u=!K(c,G.Leading,hx)&&ob(t.originalText,c),d=a.type===`NGPipeExpression`?`|`:a.operator,f=a.type===`NGPipeExpression`&&a.arguments.length>0?J(q([Q,`: `,X([Z,`: `],e.map(()=>iC(2,J(n())),`arguments`))])):``,p;if(s)p=[d,ob(t.originalText,c)?q([Z,n(`right`),f]):[` `,n(`right`),f]];else{let r=d===`|>`&&e.root.extra?.__isUsingHackPipeline?e.call(()=>RT(e,t,n,!0,i),`right`):n(`right`);if(t.experimentalOperatorPosition===`start`){let e=``;if(u)switch(MS(r)){case gS:e=r.splice(0,1)[0];break;case OS:e=r.contents.splice(0,1)[0];break}p=[Z,e,d,` `,r,f]}else p=[l?Z:``,d,l?` `:Z,r,f]}let{parent:m}=e,h=K(a.left,G.Trailing|G.Line);if((h||!(i&&a.type===`LogicalExpression`)&&m.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(p=J(p,{shouldBreak:h})),t.experimentalOperatorPosition===`start`?o.push(s||u?` `:``,p):o.push(l?``:` `,p),r&&K(a)){let n=JS(hT(e,o,t));return n.type===SS?n.parts:Array.isArray(n)?n:[n]}return o}function zT(e){return e.type===`LogicalExpression`&&!!(Oy(e.right)&&e.right.properties.length>0||Dy(e.right)&&e.right.elements.length>0||Vy(e.right))}var BT=e=>e.type===`BinaryExpression`&&e.operator===`|`;function VT(e,t){return(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&BT(e.node)&&!e.hasAncestor(e=>!BT(e)&&e.type!==`JsExpressionRoot`)}function HT(e){if(e.key!==`arguments`)return!1;let{parent:t}=e;if(!(eb(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:n}=t;return n.type===`Identifier`&&n.name===`Boolean`}function UT(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`TypeParameterInstantiation`&&(!Vb(i)||!t.experimentalTernaries)&&i.type!==`TSTypeParameterInstantiation`&&i.type!==`GenericTypeAnnotation`&&i.type!==`TSTypeReference`&&i.type!==`TSTypeAssertion`&&i.type!==`TupleTypeAnnotation`&&i.type!==`TSTupleType`&&!(i.type===`FunctionTypeParam`&&!i.name&&e.grandparent.this!==i)&&!((Ub(i)||i.type===`VariableDeclarator`)&&ob(t.originalText,r))&&!(Ub(i)&&K(i.id,G.Trailing|G.Line)),o=KT(r),s=e.map(()=>{let r=n();return o||(r=iC(2,r)),hT(e,r,t)},`types`),c=``,l=``;if(Wb(e)&&({leading:c,trailing:l}=mT(e,t)),o)return[c,X(` | `,s),l];let u=[Y([a&&!ob(t.originalText,r)?Z:``,`| `]),X([Z,`| `],s)];if(oT(e,t))return[c,J([q(u),Q]),l];let d=[c,J(u)];return(i.type===`TupleTypeAnnotation`||i.type===`TSTupleType`)&&i[i.type===`TupleTypeAnnotation`&&i.types?`types`:`elementTypes`].length>1?[J([q([Y([`(`,Q]),d]),Q,Y(`)`)]),l]:[J(a?q(d):d),l]}var WT=W([`VoidTypeAnnotation`,`TSVoidKeyword`,`NullLiteralTypeAnnotation`,`TSNullKeyword`]),GT=W([`ObjectTypeAnnotation`,`TSTypeLiteral`,`GenericTypeAnnotation`,`TSTypeReference`]);function KT(e){let{types:t}=e;if(t.some(e=>K(e)))return!1;let n=t.find(e=>GT(e));return n?t.every(e=>e===n||WT(e)):!1}function qT(e){return Jy(e)||Ly(e)?!0:zb(e)?KT(e):!1}var JT=new WeakSet;function YT(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(XT,n);(t===`=>`||t===`:`&&K(r,G.Leading))&&(i=!0),JT.add(r)}return i?[` `,t(n)]:t(n)}var XT=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 ZT(e,t,n){let r=XT(e);return r?[r,` `,n(`typeAnnotation`)]:n(`typeAnnotation`)}function QT(e,t,n,r){let{node:i}=e,a=i.inexact?`...`:``;return K(i,G.Dangling)?J([n,a,pT(e,t,{indent:!0}),Q,r]):[n,a,r]}function $T(e,t,n){let{node:r}=e,i=[],a=r.type===`TupleTypeAnnotation`&&r.types?`types`:r.type===`TSTupleType`||r.type===`TupleTypeAnnotation`?`elementTypes`:`elements`,o=r[a];if(o.length===0)i.push(QT(e,t,`[`,`]`));else{let s=lv(0,o,-1),c=s?.type!==`RestElement`&&!r.inexact,l=s===null,u=Symbol(`array`),d=!t.__inJestEach&&o.length>1&&o.every((e,t,n)=>{let r=e?.type;if(!Dy(e)&&!Oy(e))return!1;let i=n[t+1];if(i&&r!==i.type)return!1;let a=Dy(e)?`elements`:`properties`;return e[a]&&e[a].length>1}),f=eE(r,t),p=c?l?`,`:mb(t)?f?Y(`,`,``,{groupId:u}):Y(`,`):``:``;i.push(J([`[`,q([Q,f?rE(e,t,n,p):[nE(e,t,n,a,r.inexact),p],pT(e,t)]),Q,`]`],{shouldBreak:d,id:u}))}return i.push(wT(e),YT(e,n)),i}function eE(e,t){return Dy(e)&&e.elements.length>0&&e.elements.every(e=>e&&(Ay(e)||My(e)&&!K(e.argument))&&!K(e,G.Trailing|G.Line,e=>!jv(t.originalText,V(e),{backwards:!0})))}function tE({node:e},{originalText:t}){let n=H(e);if(n===V(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==`,`;)n=Nv(t,Fv(t,n+1));return Lv(t,n)}function nE(e,t,n,r,i){let a=[];return e.each(({node:r,isLast:o})=>{a.push(r?J(n()):``),(!o||i)&&a.push([`,`,Z,r&&tE(e,t)?Q:``])},r),i&&a.push(`...`),a}function rE(e,t,n,r){let i=[];return e.each(({isLast:a,next:o})=>{i.push([n(),a?r:`,`]),a||i.push(tE(e,t)?[$,$]:K(o,G.Leading|G.Line)?$:Z)},`elements`),uC(i)}function iE(e,t,n){let{node:r}=e,i=Ob(r);if(i.length===0)return[`(`,pT(e,t),`)`];let a=i.length-1;if(lE(i)){let t=[`(`];return kb(e,(e,r)=>{t.push(n()),r!==a&&t.push(`, `)}),t.push(`)`),t}let o=!1,s=[];kb(e,({node:e},r)=>{let i=n();r===a||(Fb(e,t)?(o=!0,i=[i,`,`,$,$]):i=[i,`,`,Z]),s.push(i)});let c=!t.parser.startsWith(`__ng_`)&&r.type!==`ImportExpression`&&r.type!==`TSImportType`&&r.type!==`TSExternalModuleReference`&&mb(t,`all`)?`,`:``;function l(){return J([`(`,q([Z,...s]),c,Z,`)`],{shouldBreak:!0})}if(o||e.parent.type!==`Decorator`&&ub(i))return l();if(sE(i)){let e=s.slice(1);if(e.some(HS))return l();let t;try{t=n(Ab(r,0),{expandFirstArg:!0})}catch(e){if(e instanceof gT)return l();throw e}return HS(t)?[cC,dC([[`(`,J(t,{shouldBreak:!0}),`, `,...e,`)`],l()])]:dC([[`(`,t,`, `,...e,`)`],[`(`,J(t,{shouldBreak:!0}),`, `,...e,`)`],l()])}if(oE(i,s,t)){let e=s.slice(0,-1);if(e.some(HS))return l();let t;try{t=n(Ab(r,-1),{expandLastArg:!0})}catch(e){if(e instanceof gT)return l();throw e}return HS(t)?[cC,dC([[`(`,...e,J(t,{shouldBreak:!0}),`)`],l()])]:dC([[`(`,...e,t,`)`],[`(`,...e,J(t,{shouldBreak:!0}),`)`],l()])}let u=[`(`,q([Q,...s]),Y(c),Q,`)`];return db(e)?u:J(u,{shouldBreak:s.some(HS)||o})}function aE(e,t=!1){return Oy(e)&&(e.properties.length>0||K(e))||Dy(e)&&(e.elements.length>0||K(e))||e.type===`TSTypeAssertion`&&aE(e.expression)||Rb(e)&&aE(e.expression)||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!==`TSTypeReference`||dE(e.body))&&(e.body.type===`BlockStatement`||e.body.type===`ArrowFunctionExpression`&&aE(e.body,!0)||Oy(e.body)||Dy(e.body)||!t&&(eb(e.body)||e.body.type===`ConditionalExpression`)||Vy(e.body))||e.type===`DoExpression`||e.type===`ModuleExpression`}function oE(e,t,n){let r=lv(0,e,-1);if(e.length===1){let e=lv(0,t,-1);if(e.label?.embed&&e.label?.hug!==!1)return!0}let i=lv(0,e,-2);return!K(r,G.Leading)&&!K(r,G.Trailing)&&aE(r)&&(!i||i.type!==r.type)&&(e.length!==2||i.type!==`ArrowFunctionExpression`||!Dy(r))&&!(e.length>1&&eE(r,n))}function sE(e){if(e.length!==2)return!1;let[t,n]=e;return t.type===`ModuleExpression`&&fE(n)?!0:!K(t)&&(t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`&&t.body.type===`BlockStatement`)&&n.type!==`FunctionExpression`&&n.type!==`ArrowFunctionExpression`&&n.type!==`ConditionalExpression`&&cE(n)&&!aE(n)}function cE(e){if(e.type===`ParenthesizedExpression`)return cE(e.expression);if(Rb(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 Jy(t)&&pb(e.expression,1)}return Ib(e)&&Ob(e).length>1?!1:Gy(e)?pb(e.left,1)&&pb(e.right,1):Py(e)||pb(e)}function lE(e){return e.length===2?uE(e,0):e.length===3&&e[0].type===`Identifier`&&uE(e,1)}function uE(e,t){let n=e[t],r=e[t+1];return n.type===`ArrowFunctionExpression`&&Tb(n).length===0&&n.body.type===`BlockStatement`&&r.type===`ArrayExpression`&&!e.some(e=>K(e))}function dE(e){return e.type===`BlockStatement`&&(e.body.some(e=>e.type!==`EmptyStatement`)||K(e,G.Dangling))}function fE(e){if(e.type!==`ObjectExpression`||e.properties.length!==1)return!1;let[t]=e.properties;return Lb(t)?!t.computed&&(t.key.type===`Identifier`&&t.key.name===`type`||Ny(t.key)&&t.key.value===`type`)&&Ny(t.value)&&t.value.value===`module`:!1}var pE=iE;function mE(e,t,n){return[n(`object`),J(q([Q,hE(e,t,n)]))]}function hE(e,t,n){return[`::`,n(`callee`)]}var gE=e=>((e.type===`ChainExpression`||e.type===`TSNonNullExpression`)&&(e=e.expression),eb(e)&&Ob(e).length>0);function _E(e){let{node:t,ancestors:n}=e;for(let e of n){if(!(tb(e)&&e.object===t||e.type===`TSNonNullExpression`&&e.expression===t))return e.type===`NewExpression`&&e.callee===t;t=e}return!1}function vE(e,t,n){let r=n(`object`),i=yE(e,t,n),{node:a}=e,o=e.findAncestor(e=>!(tb(e)||e.type===`TSNonNullExpression`)),s=e.findAncestor(e=>e.type!==`ChainExpression`&&e.type!==`TSNonNullExpression`),c=o.type===`BindExpression`||o.type===`AssignmentExpression`&&o.left.type!==`Identifier`||_E(e)||a.computed||a.object.type===`Identifier`&&a.property.type===`Identifier`&&!tb(s)||(s.type===`AssignmentExpression`||s.type===`VariableDeclarator`)&&(gE(a.object)||r.label?.memberChain);return pC(r.label,[r,c?i:J(q([Q,i]))])}function yE(e,t,n){let r=n(`property`),{node:i}=e,a=wT(e);return i.computed?!i.property||Ay(i.property)?[a,`[`,r,`]`]:J([a,`[`,q([Q,r]),Q,`]`]):[a,`.`,r]}function bE(e,t,n){if(e.node.type===`ChainExpression`)return e.call(()=>bE(e,t,n),`expression`);let r=(e.parent.type===`ChainExpression`?e.grandparent:e.parent).type===`ExpressionStatement`,i=[];function a(e){let{originalText:n}=t,r=cx(n,H(e));return n.charAt(r)===`)`?r!==!1&&Lv(n,r+1):Fb(e,t)}function o(){let{node:r}=e;if(r.type===`ChainExpression`)return e.call(o,`expression`);if(eb(r)&&(Ky(r.callee)||eb(r.callee))){let s=a(r);i.unshift({node:r,hasTrailingEmptyLine:s,printed:[hT(e,[wT(e),n(`typeArguments`),pE(e,t,n)],t),s?$:``]}),e.call(o,`callee`)}else Ky(r)?(i.unshift({node:r,needsParens:oT(e,t),printed:hT(e,tb(r)?yE(e,t,n):hE(e,t,n),t)}),e.call(o,`object`)):r.type===`TSNonNullExpression`?(i.unshift({node:r,printed:hT(e,`!`,t)}),e.call(o,`expression`)):i.unshift({node:r,printed:n()})}let{node:s}=e;i.unshift({node:s,printed:[wT(e),n(`typeArguments`),pE(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`||eb(i[u].node)||tb(i[u].node)&&i[u].node.computed&&Ay(i[u].node.property));++u)l.push(i[u]);if(!eb(i[0].node))for(;u+1<i.length&&Ky(i[u].node)&&Ky(i[u+1].node);++u)l.push(i[u]);c.push(l),l=[];let d=!1;for(;u<i.length;++u){if(d&&Ky(i[u].node)){if(i[u].node.computed&&Ay(i[u].node.property)){l.push(i[u]);continue}c.push(l),l=[],d=!1}(eb(i[u].node)||i[u].node.type===`ImportExpression`)&&(d=!0),l.push(i[u]),K(i[u].node,G.Trailing)&&(c.push(l),l=[],d=!1)}l.length>0&&c.push(l);function f(e){return/^[A-Z]|^[$_]+$/u.test(e)}function p(e){return e.length<=t.tabWidth}function m(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`&&(f(n.name)||r&&p(n.name)||t)}let n=lv(0,e[0],-1).node;return tb(n)&&n.property.type===`Identifier`&&(f(n.property.name)||t)}let h=c.length>=2&&!K(c[1][0].node)&&m(c);function g(e){let t=e.map(e=>e.printed);return e.length>0&&lv(0,e,-1).needsParens?[`(`,...t,`)`]:t}function _(e){return e.length===0?``:q([$,X($,e.map(g))])}let v=c.map(g),y=v,b=h?3:2,x=c.flat(),S=x.slice(1,-1).some(e=>K(e.node,G.Leading))||x.slice(0,-1).some(e=>K(e.node,G.Trailing))||c[b]&&K(c[b][0].node,G.Leading);if(c.length<=b&&!S&&!c.some(e=>lv(0,e,-1).hasTrailingEmptyLine))return db(e)?y:J(y);let C=lv(0,c[+!!h],-1).node,w=!eb(C)&&a(C),T=[g(c[0]),h?c.slice(1,2).map(g):``,w?$:``,_(c.slice(h?2:1))],ee=i.map(({node:e})=>e).filter(eb);function E(){let e=lv(0,lv(0,c,-1),-1).node,t=lv(0,v,-1);return eb(e)&&HS(t)&&ee.slice(0,-1).some(e=>e.arguments.some(Ry))}let te;return te=S||ee.length>2&&ee.some(e=>!e.arguments.every(e=>pb(e)))||v.slice(0,-1).some(HS)||E()?J(T):[HS(y)||w?cC:``,dC([y,T])],pC({memberChain:!0},te)}var xE=bE;function SE(e,t,n){let{node:r}=e,i=r.type===`NewExpression`,a=wT(e),o=Ob(r),s=r.type!==`TSImportType`&&r.typeArguments?n(`typeArguments`):``,c=o.length===1&&cb(o[0],t.originalText);if(c||TE(e)||EE(e)||Qy(r,e.parent)){let t=[];if(kb(e,()=>{t.push(n())}),!(c&&t[0].label?.embed))return[i?`new `:``,CE(e,n),a,s,`(`,X(`, `,t),`)`]}let l=r.type===`ImportExpression`||r.type===`TSImportType`||r.type===`TSExternalModuleReference`;if(!l&&!i&&Ky(r.callee)&&!e.call(()=>oT(e,t),`callee`,...r.callee.type===`ChainExpression`?[`expression`]:[]))return xE(e,t,n);let u=[i?`new `:``,CE(e,n),a,s,pE(e,t,n)];return l||eb(r.callee)?J(u):u}function CE(e,t){let{node:n}=e;return n.type===`ImportExpression`?`import${n.phase?`.${n.phase}`:``}`:n.type===`TSImportType`?`import`:n.type===`TSExternalModuleReference`?`require`:t(`callee`)}var wE=[`require`,`require.resolve`,`require.resolve.paths`,`import.meta.resolve`];function TE(e){let{node:t}=e;if(!(t.type===`ImportExpression`||t.type===`TSImportType`||t.type===`TSExternalModuleReference`||t.type===`CallExpression`&&!t.optional&&_y(t.callee,wE)))return!1;let n=Ob(t);return n.length===1&&Ny(n[0])&&!K(n[0])}function EE(e){let{node:t}=e;if(t.type!==`CallExpression`||t.optional||t.callee.type!==`Identifier`)return!1;let n=Ob(t);return t.callee.name===`require`?(n.length===1&&Ny(n[0])||n.length>1)&&!K(n[0]):t.callee.name===`define`&&e.parent.type===`ExpressionStatement`?n.length===1||n.length===2&&n[0].type===`ArrayExpression`||n.length===3&&Ny(n[0])&&n[1].type===`ArrayExpression`:!1}function DE(e,t,n,r,i,a){let o=AE(e,t,n,r,a),s=a?n(a,{assignmentLayout:o}):``;switch(o){case`break-after-operator`:return J([J(r),i,J(q([Z,s]))]);case`never-break-after-operator`:return J([J(r),i,` `,s]);case`fluid`:{let e=Symbol(`assignment`);return J([J(r),i,J(q(Z),{id:e}),_C,fC(s,{groupId:e})])}case`break-lhs`:return J([r,i,` `,J(s)]);case`chain`:return[J(r),i,Z,s];case`chain-tail`:return[J(r),i,q([Z,s])];case`chain-tail-arrow-chain`:return[J(r),i,s];case`only-left`:return r}}function OE(e,t,n){let{node:r}=e;return DE(e,t,n,n(`left`),[` `,r.operator],`right`)}function kE(e,t,n){return DE(e,t,n,n(`id`),` =`,`init`)}function AE(e,t,n,r,i){let{node:a}=e,o=a[i];if(!o)return`only-left`;let s=!NE(o);if(e.match(NE,PE,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&&NE(o.right)||ob(t.originalText,o))return`break-after-operator`;if(a.type===`ImportAttribute`||o.type===`CallExpression`&&o.callee.name===`require`||t.parser===`json5`||t.parser===`jsonc`||t.parser===`json`)return`never-break-after-operator`;let c=ZS(r);if(ME(a)||LE(a)||RE(a)&&c)return`break-lhs`;let l=VE(a,r,t);return e.call(()=>jE(e,t,n,l),i)?`break-after-operator`:FE(a)?`break-lhs`:!c&&(l||o.type===`TemplateLiteral`||o.type===`TaggedTemplateExpression`||jy(o)||Ay(o)||o.type===`ClassExpression`)?`never-break-after-operator`:`fluid`}function jE(e,t,n,r){let i=e.node;if(Gy(i)&&!zT(i))return!0;switch(i.type){case`StringLiteralTypeAnnotation`:case`SequenceExpression`:return!0;case`TSConditionalType`:case`ConditionalTypeAnnotation`:if(!t.experimentalTernaries&&!GE(i))break;return!0;case`ConditionalExpression`:{if(!t.experimentalTernaries){let{test:e}=i;return Gy(e)&&!zT(e)}let{consequent:e,alternate:n}=i;return e.type===`ConditionalExpression`||n.type===`ConditionalExpression`}case`ClassExpression`:return zv(i.decorators)}if(r)return!1;let a=i,o=[];for(;;)if(a.type===`UnaryExpression`||a.type===`AwaitExpression`||a.type===`YieldExpression`&&a.argument!==null)a=a.argument,o.push(`argument`);else if(a.type===`TSNonNullExpression`)a=a.expression,o.push(`expression`);else break;return!!(Ny(a)||e.call(()=>BE(e,t,n),...o))}function ME(e){if(PE(e)){let t=e.left||e.id;return t.type===`ObjectPattern`&&t.properties.length>2&&t.properties.some(e=>Lb(e)&&(!e.shorthand||e.value?.type===`AssignmentPattern`))}return!1}function NE(e){return e.type===`AssignmentExpression`}function PE(e){return NE(e)||e.type===`VariableDeclarator`}function FE(e){let t=IE(e);if(zv(t)){let n=e.type===`TSTypeAliasDeclaration`?`constraint`:`bound`;if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}function IE(e){if(Ub(e))return e.typeParameters?.params}function LE(e){if(e.type!==`VariableDeclarator`)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=zE(t.typeAnnotation);return zv(n)&&n.length>1&&n.some(e=>zv(zE(e))||e.type===`TSConditionalType`)}function RE(e){return e.type===`VariableDeclarator`&&e.init?.type===`ArrowFunctionExpression`}function zE(e){let t;switch(e.type){case`GenericTypeAnnotation`:t=e.typeParameters;break;case`TSTypeReference`:t=e.typeArguments}return t?.params}function BE(e,t,n,r=!1){let{node:i}=e,a=()=>BE(e,t,n,!0);if(i.type===`ChainExpression`||i.type===`TSNonNullExpression`)return e.call(a,`expression`);if(eb(i)){if(SE(e,t,n).label?.memberChain)return!1;let r=Ob(i);return!(r.length===0||r.length===1&&ab(r[0],t))||HE(i,n)?!1:e.call(a,`callee`)}return tb(i)?e.call(a,`object`):r&&(i.type===`Identifier`||i.type===`ThisExpression`)}function VE(e,t,n){return Lb(e)?(t=JS(t),typeof t==`string`&&Sv(t)<n.tabWidth+3):!1}function HE(e,t){let n=UE(e);if(zv(n)){if(n.length>1)return!0;if(n.length===1){let e=n[0];if(zb(e)||Bb(e)||e.type===`TSTypeLiteral`||e.type===`ObjectTypeAnnotation`)return!0}if(HS(t(e.typeParameters?`typeParameters`:`typeArguments`)))return!0}return!1}function UE(e){return(e.typeParameters??e.typeArguments)?.params}function WE(e){switch(e.type){case`FunctionTypeAnnotation`:case`GenericTypeAnnotation`:case`TSFunctionType`:return!!e.typeParameters;case`TSTypeReference`:return!!e.typeArguments;default:return!1}}function GE(e){return WE(e.checkType)||WE(e.extendsType)}var KE=new WeakMap;function qE(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function JE(e,t){return t.parser===`json`||t.parser===`jsonc`||!Ny(e.key)||Zv(dy(e.key),t).slice(1,-1)!==e.key.value?!1:!!(NT(e.key.value)&&!(t.parser===`babel-ts`&&e.type===`ClassProperty`||(t.parser===`typescript`||t.parser===`oxc-ts`)&&e.type===`PropertyDefinition`)||qE(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!==`ImportAttribute`&&(t.parser===`babel`||t.parser===`acorn`||t.parser===`oxc`||t.parser===`espree`||t.parser===`meriyah`||t.parser===`__babel_estree`))}function YE(e,t){let{key:n}=e.node;return(n.type===`Identifier`||Ay(n)&&qE(FT(dy(n)))&&String(n.value)===FT(dy(n))&&t.parser!==`typescript`&&t.parser!==`babel-ts`&&t.parser!==`oxc-ts`)&&(t.parser===`json`||t.parser===`jsonc`||t.quoteProps===`consistent`&&KE.get(e.parent))}function XE(e,t,n){let{node:r}=e;if(r.computed)return[`[`,n(`key`),`]`];let{parent:i}=e,{key:a}=r;if(t.quoteProps===`consistent`&&!KE.has(i)){let n=e.siblings.some(e=>!e.computed&&Ny(e.key)&&!JE(e,t));KE.set(i,n)}if(YE(e,t)){let n=Zv(JSON.stringify(a.type===`Identifier`?a.name:a.value.toString()),t);return e.call(()=>hT(e,n,t),`key`)}return JE(r,t)&&(t.quoteProps===`as-needed`||t.quoteProps===`consistent`&&!KE.get(i))?e.call(()=>hT(e,/^\d/u.test(a.value)?FT(a.value):a.value,t),`key`):n(`key`)}function ZE(e,t,n){let{node:r}=e;return r.shorthand?n(`value`):DE(e,t,n,XE(e,t,n),`:`,`value`)}var QE=({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`&&Hy(n));function $E(e,t,n,r){if(QE(e))return tD(e,t,n);let{node:i}=e,a=!1;if((i.type===`FunctionDeclaration`||i.type===`FunctionExpression`)&&r?.expandLastArg){let{parent:t}=e;eb(t)&&(Ob(t).length>1||Tb(i).every(e=>e.type===`Identifier`&&!e.typeAnnotation))&&(a=!0)}let o=[DT(e),i.async?`async `:``,`function${i.generator?`*`:``} `,i.id?n(`id`):``],s=_T(e,t,n,a),c=iD(e,n),l=bT(i,c);return o.push(n(`typeParameters`),J([l?J(s):s,c]),i.body?` `:``,n(`body`)),t.semi&&(i.declare||!i.body)&&o.push(`;`),o}function eD(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(XE(e,t,n),r.optional?`?`:``,r===a?tD(e,t,n):n(`value`)),o}function tD(e,t,n){let{node:r}=e,i=_T(e,t,n),a=iD(e,n),o=ST(r),s=bT(r,a),c=[n(`typeParameters`),J([o?J(i,{shouldBreak:!0}):s?J(i):i,a])];return r.body?c.push(` `,n(`body`)):c.push(t.semi?`;`:``),c}function nD(e){let t=Tb(e);return t.length===1&&!e.typeParameters&&!K(e,G.Dangling)&&t[0].type===`Identifier`&&!t[0].typeAnnotation&&!K(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function rD(e,t){if(t.arrowParens===`always`)return!1;if(t.arrowParens===`avoid`){let{node:t}=e;return nD(t)}return!1}function iD(e,t){let{node:n}=e,r=[YT(e,t,`returnType`)];return n.predicate&&r.push(t(`predicate`)),r}function aD(e,t,n){let{node:r}=e,i=[];if(r.argument){let e=n(`argument`);cD(t,r.argument)?e=[`(`,q([$,e]),$,`)`]:(Gy(r.argument)||t.experimentalTernaries&&r.argument.type===`ConditionalExpression`&&(r.argument.consequent.type===`ConditionalExpression`||r.argument.alternate.type===`ConditionalExpression`))&&(e=J([Y(`(`),q([Q,e]),Q,Y(`)`)])),i.push(` `,e)}let a=K(r,G.Dangling),o=t.semi&&a&&K(r,G.Last|G.Line);return o&&i.push(`;`),a&&i.push(` `,pT(e,t)),!o&&t.semi&&i.push(`;`),i}function oD(e,t,n){return[`return`,aD(e,t,n)]}function sD(e,t,n){return[`throw`,aD(e,t,n)]}function cD(e,t){if(ob(e.originalText,t)||K(t,G.Leading,t=>fx(e.originalText,V(t),H(t)))&&!Vy(t))return!0;if(Cy(t)){let n=t,r;for(;r=wy(n);)if(n=r,ob(e.originalText,n))return!0}return!1}function lD(e,t){if(t.semi||fD(e,t)||mD(e,t)||pD(e,t))return!1;let{node:n,key:r,parent:i}=e;return!!(n.type===`ExpressionStatement`&&(r===`body`&&(i.type===`Program`||i.type===`BlockStatement`||i.type===`StaticBlock`||i.type===`TSModuleBlock`)||r===`consequent`&&i.type===`SwitchCase`)&&e.call(()=>uD(e,t),`expression`))}function uD(e,t){let{node:n}=e;switch(n.type){case`ParenthesizedExpression`:case`TypeCastExpression`:case`ArrayExpression`:case`ArrayPattern`:case`TemplateLiteral`:case`TemplateElement`:case`RegExpLiteral`:return!0;case`ArrowFunctionExpression`:if(!rD(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(Vy(n))return!0}return oT(e,t)?!0:Cy(n)?e.call(()=>uD(e,t),...Ty(n)):!1}var dD=({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 fD(e,t){return(t.parentParser===`markdown`||t.parentParser===`mdx`)&&dD(e)&&Vy(e.node.expression)}function pD(e,t){return t.__isHtmlInlineEventHandler&&dD(e)}function mD(e,t){return(t.parser===`__vue_event_binding`||t.parser===`__vue_ts_event_binding`)&&dD(e)}var hD=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function gD(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var _D=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(lv(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=`[${gD([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,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(`
340
- `)){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(`
341
- `).map(e=>e.slice(t)).join(`
342
- `)}}(`
343
- \r `),vD=e=>e===``||e===Z||e===$||e===Q;function yD(e,t,n){let{node:r}=e;if(r.type===`JSXElement`&&LD(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=>zD(e)?{type:`JSXText`,value:` `,raw:` `}:e);let o=r.children.some(Vy),s=r.children.filter(e=>e.type===`JSXExpressionContainer`).length>1,c=r.type===`JSXElement`&&r.openingElement.attributes.length>1,l=HS(i)||o||c||s,u=e.parent.rootMarker===`mdx`,d=t.singleQuote?`{' '}`:`{" "}`,f=u?Z:Y([d,Q],` `),p=bD(e,t,n,f,r.openingElement?.name?.name===`fbt`),m=r.children.some(e=>RD(e));for(let e=p.length-2;e>=0;e--){let t=p[e]===``&&p[e+1]===``,n=p[e]===$&&p[e+1]===``&&p[e+2]===$,r=(p[e]===Q||p[e]===$)&&p[e+1]===``&&p[e+2]===f,i=p[e]===f&&p[e+1]===``&&(p[e+2]===Q||p[e+2]===$),a=p[e]===f&&p[e+1]===``&&p[e+2]===f,o=p[e]===Q&&p[e+1]===``&&p[e+2]===$||p[e]===$&&p[e+1]===``&&p[e+2]===Q;n&&m||t||r||a||o?p.splice(e,2):i&&p.splice(e+1,2)}for(;p.length>0&&vD(lv(0,p,-1));)p.pop();for(;p.length>1&&vD(p[0])&&vD(p[1]);)p.shift(),p.shift();let h=[``];for(let[e,t]of p.entries()){if(t===f){if(e===1&&$S(p[e-1])){if(p.length===2){h.push([h.pop(),d]);continue}h.push([d,$],``);continue}if(e===p.length-1){h.push([h.pop(),d]);continue}if(p[e-1]===``&&p[e-2]===$){h.push([h.pop(),d]);continue}}e%2==0?h.push([h.pop(),t]):h.push(t,``),HS(t)&&(l=!0)}let g=m?uC(h):J(h,{shouldBreak:!0});if(t.cursorNode?.type===`JSXText`&&r.children.includes(t.cursorNode)?g=[lC,g,lC]:t.nodeBeforeCursor?.type===`JSXText`&&r.children.includes(t.nodeBeforeCursor)?g=[lC,g]:t.nodeAfterCursor?.type===`JSXText`&&r.children.includes(t.nodeAfterCursor)&&(g=[g,lC]),u)return g;let _=J([i,q([$,g]),$,a]);return l?_:dC([J([i,...p,a]),_])}function bD(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=dy(e);if(RD(e)){let o=_D.split(n,!0);o[0]===``&&(o.shift(),/\n/u.test(o[0])?c(SD(i,o[1],e,t)):c(r),o.shift());let l;if(lv(0,o,-1)===``&&(o.pop(),l=o.pop()),o.length===0)return;for(let[e,t]of o.entries())e%2==1?c(Z):s(t);l===void 0?c(xD(i,a,e,t)):/\n/u.test(l)?c(SD(i,a,e,t)):c(r)}else/\n/u.test(n)?n.match(/\n/gu).length>1&&c($):c(r)}else if(s(n()),t&&RD(t)){let n=_D.trim(dy(t)),[r]=_D.split(n);c(xD(i,r,e,t))}else c($)},`children`),o}function xD(e,t,n,r){return e?``:n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?t.length===1?Q:$:Q}function SD(e,t,n,r){return e?$:t.length===1?n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?$:Q:$}var CD=W([`ArrayExpression`,`JSXAttribute`,`JSXElement`,`JSXExpressionContainer`,`JSXFragment`,`ExpressionStatement`,`NewExpression`,`CallExpression`,`OptionalCallExpression`,`ConditionalExpression`,`JsExpressionRoot`,`MatchExpressionCase`]);function wD(e,t,n){let{parent:r}=e;if(CD(r))return t;let i=TD(e),a=oT(e,n);return J([a?``:Y(`(`),q([Q,t]),Q,a?``:Y(`)`)],{shouldBreak:i})}function TD(e){return e.match(void 0,(e,t)=>t===`body`&&e.type===`ArrowFunctionExpression`,(e,t)=>t===`arguments`&&eb(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 ED(e,t,n){let{node:r}=e,i=[n(`name`)];if(r.value){let a;if(Ny(r.value)){let n=sv(0,sv(0,dy(r.value).slice(1,-1),`&apos;`,`'`),`&quot;`,`"`),i=Kv(n,t.jsxSingleQuote);n=i===`"`?sv(0,n,`"`,`&quot;`):sv(0,n,`'`,`&apos;`),a=e.call(()=>hT(e,YS(i+n+i),t),`value`)}else a=n(`value`);i.push(`=`,a)}return i}function DD(e,t,n){let{node:r}=e,i=(e,t)=>e.type===`JSXEmptyExpression`||!K(e)&&(Dy(e)||Oy(e)||e.type===`ArrowFunctionExpression`||e.type===`AwaitExpression`&&(i(e.argument,e)||e.argument.type===`JSXElement`)||eb(e)||e.type===`ChainExpression`&&eb(e.expression)||e.type===`FunctionExpression`||e.type===`TemplateLiteral`||e.type===`TaggedTemplateExpression`||e.type===`DoExpression`||Vy(t)&&(e.type===`ConditionalExpression`||Gy(e)));return i(r.expression,e.parent)?J([`{`,n(`expression`),_C,`}`]):J([`{`,q([Q,n(`expression`)]),Q,_C,`}`])}function OD(e,t,n){let{node:r}=e,i=K(r.name)||K(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!i)return[`<`,n(`name`),n(`typeArguments`),` />`];if(r.attributes?.length===1&&Ny(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
344
- `)&&!i&&!K(r.attributes[0]))return J([`<`,n(`name`),n(`typeArguments`),` `,...e.map(n,`attributes`),r.selfClosing?` />`:`>`]);let a=r.attributes?.some(e=>Ny(e.value)&&e.value.value.includes(`
345
- `)),o=t.singleAttributePerLine&&r.attributes.length>1?$:Z;return J([`<`,n(`name`),n(`typeArguments`),q(e.map(()=>[o,n()],`attributes`)),...kD(r,t,i)],{shouldBreak:a})}function kD(e,t,n){return e.selfClosing?[Z,`/>`]:AD(e,t,n)?[`>`]:[Q,`>`]}function AD(e,t,n){let r=e.attributes.length>0&&K(lv(0,e.attributes,-1),G.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function jD(e,t,n){let{node:r}=e,i=[`</`],a=n(`name`);return K(r.name,G.Leading|G.Line)?i.push(q([$,a]),$):K(r.name,G.Leading|G.Block)?i.push(` `,a):i.push(a),i.push(`>`),i}function MD(e,t){let{node:n}=e,r=K(n),i=K(n,G.Line),a=n.type===`JSXOpeningFragment`;return[a?`<`:`</`,q([i?$:r&&!a?` `:``,pT(e,t)]),i?$:``,`>`]}function ND(e,t,n){return wD(e,hT(e,yD(e,t,n),t),t)}function PD(e,t){let{node:n}=e,r=K(n,G.Line);return[pT(e,t,{indent:r}),r?$:``]}function FD(e,t,n){let{node:r}=e;return[`{`,e.call(({node:r})=>{let i=[`...`,n()];return K(r)?[q([Q,hT(e,i,t)]),Q]:i},r.type===`JSXSpreadAttribute`?`argument`:`expression`),`}`]}function ID(e,t,n){let{node:r}=e;if(r.type.startsWith(`JSX`))switch(r.type){case`JSXAttribute`:return ED(e,t,n);case`JSXIdentifier`:return r.name;case`JSXNamespacedName`:return X(`:`,[n(`namespace`),n(`name`)]);case`JSXMemberExpression`:return X(`.`,[n(`object`),n(`property`)]);case`JSXSpreadAttribute`:case`JSXSpreadChild`:return FD(e,t,n);case`JSXExpressionContainer`:return DD(e,t,n);case`JSXFragment`:case`JSXElement`:return ND(e,t,n);case`JSXOpeningElement`:return OD(e,t,n);case`JSXClosingElement`:return jD(e,t,n);case`JSXOpeningFragment`:case`JSXClosingFragment`:return MD(e,t);case`JSXEmptyExpression`:return PD(e,t);case`JSXText`:throw Error(`JSXText should be handled by JSXElement`);default:throw new hD(r,`JSX`)}}function LD(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type===`JSXText`&&!RD(t)}function RD(e){return e.type===`JSXText`&&(_D.hasNonWhitespaceCharacter(dy(e))||!/\n/u.test(dy(e)))}function zD(e){return e.type===`JSXExpressionContainer`&&Ny(e.expression)&&e.expression.value===` `&&!K(e.expression)}function BD(e){let{node:t,parent:n}=e;if(!Vy(t)||!Vy(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`&&!RD(t))){a=t;break}}return a?.type===`JSXExpressionContainer`&&a.expression.type===`JSXEmptyExpression`&&Mb(a.expression)}function VD(e){return Mb(e.node)||BD(e)}var HD=VD;function UD(e,t,n){let{node:r}=e;if(r.type.startsWith(`NG`))switch(r.type){case`NGRoot`:return n(`node`);case`NGPipeExpression`:return LT(e,t,n);case`NGChainedExpression`:return J(X([`;`,Z],e.map(()=>qD(e)?n():[`(`,n(),`)`],`expressions`)));case`NGEmptyExpression`:return``;case`NGMicrosyntax`:return e.map(()=>[e.isFirst?``:WD(e)?` `:[`;`,Z],n()],`body`);case`NGMicrosyntaxKey`:return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case`NGMicrosyntaxExpression`:return[n(`expression`),r.alias===null?``:[` as `,n(`alias`)]];case`NGMicrosyntaxKeyedExpression`:{let{index:t,parent:i}=e,a=WD(e)||GD(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 hD(r,`Angular`)}}function WD({node:e,index:t}){return e.type===`NGMicrosyntaxKeyedExpression`&&e.key.name===`of`&&t===1}function GD(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 KD=W([`CallExpression`,`OptionalCallExpression`,`AssignmentExpression`]);function qD({node:e}){return Sy(e,KD)}function JD(e,t,n){let{node:r}=e;return J([X(Z,e.map(n,`decorators`)),ZD(r,t)?$:Z])}function YD(e,t,n){return QD(e.node)?[X($,e.map(n,`declaration`,`decorators`)),$]:``}function XD(e,t,n){let{node:r,parent:i}=e,{decorators:a}=r;if(!zv(a)||QD(i)||HD(e))return``;let o=r.type===`ClassExpression`||r.type===`ClassDeclaration`||ZD(r,t);return[e.key===`declaration`&&Ey(i)?$:o?cC:``,X(Z,e.map(n,`decorators`)),Z]}function ZD(e,t){return e.decorators.some(e=>jv(t.originalText,H(e)))}function QD(e){if(e.type!==`ExportDefaultDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`DeclareExportDeclaration`)return!1;let t=e.declaration?.decorators;return zv(t)&&$v(e,t[0])}var $D=new WeakMap;function eO(e){return $D.has(e)||$D.set(e,e.type===`ConditionalExpression`&&!hb(e,e=>e.type===`ObjectExpression`)),$D.get(e)}var tO=e=>e.type===`SequenceExpression`;function nO(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=rO(e,t,n,r);if(i.length===0)i.push(f);else{let{leading:n,trailing:r}=mT(e,t);i.push([n,f]),o.unshift(r)}c&&(s||=d.returnType&&Tb(d).length>0||d.typeParameters||Tb(d).some(e=>e.type!==`Identifier`)),!c||d.body.type!==`ArrowFunctionExpression`?(a=n(`body`,r),l=d.body):e.call(u,`body`)})();let u=!ob(t.originalText,l)&&(tO(l)||iO(l,a,t)||!s&&eO(l)),d=e.key===`callee`&&Ib(e.parent),f=Symbol(`arrow-chain`),p=aO(e,r,{signatureDocs:i,shouldBreak:s}),m=!1,h=!1,g=!1;return c&&(d||r.assignmentLayout)&&(h=!0,g=!K(e.node,G.Leading&G.Line),m=r.assignmentLayout===`chain-tail-arrow-chain`||d&&!u),a=oO(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:u}),J([J(h?q([g?Q:``,p]):p,{shouldBreak:m,id:f}),` =>`,c?fC(a,{groupId:f}):J(a),c&&d?Y(Q,``,{groupId:f}):``])}function rO(e,t,n,r){let{node:i}=e,a=[];if(i.async&&a.push(`async `),rD(e,t))a.push(n([`params`,0]));else{let i=r.expandLastArg||r.expandFirstArg,o=iD(e,n);if(i){if(HS(o))throw new gT;o=J(KS(o))}a.push(J([_T(e,t,n,i,!0),o]))}let o=pT(e,t,{filter(e){let n=cx(t.originalText,H(e));return n!==!1&&t.originalText.slice(n,n+2)===`=>`}});return o&&a.push(` `,o),a}function iO(e,t,n){return Dy(e)||Oy(e)||e.type===`ArrowFunctionExpression`||e.type===`DoExpression`||e.type===`BlockStatement`||Vy(e)||t.label?.hug!==!1&&(t.label?.embed||cb(e,n.originalText))}function aO(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:i,key:a}=e;return a!==`callee`&&Ib(i)||Gy(i)?J([n[0],` =>`,q([Z,X([` =>`,Z],n.slice(1))])],{shouldBreak:r}):a===`callee`&&Ib(i)||t.assignmentLayout?J(X([` =>`,Z],n),{shouldBreak:r}):J(q(X([` =>`,Z],n)),{shouldBreak:r})}function oO(e,t,n,{bodyDoc:r,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:s,parent:c}=e,l=n.expandLastArg&&mb(t,`all`)?Y(`,`):``,u=(n.expandLastArg||c.type===`JSXExpressionContainer`)&&!K(s)?Q:``;return o&&eO(a)?[` `,J([Y(``,`(`),q([Q,r]),Y(``,`)`),l,u]),i]:o?[` `,r,i]:[q([Z,r,i]),l,u]}var sO=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}},cO=av(`findLast`,function(){if(Array.isArray(this))return sO});function lO(e,t,n,r){let{node:i}=e,a=[],o=cO(0,i[r],e=>e.type!==`EmptyStatement`);return e.each(({node:e})=>{e.type!==`EmptyStatement`&&(a.push(n()),e!==o&&(a.push($),Fb(e,t)&&a.push($)))},r),a}function uO(e,t,n){let r=dO(e,t,n),{node:i,parent:a}=e;if(i.type===`Program`&&a?.type!==`ModuleExpression`)return r?[r,$]:``;let o=[];if(i.type===`StaticBlock`&&o.push(`static `),o.push(`{`),r)o.push(q([$,r]),$);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===`MatchStatementCase`||i.type===`StaticBlock`||o.push($)}return o.push(`}`),o}function dO(e,t,n){let{node:r}=e,i=zv(r.directives),a=r.body.some(e=>e.type!==`EmptyStatement`),o=K(r,G.Dangling);if(!i&&!a&&!o)return``;let s=[];return i&&(s.push(lO(e,t,n,`directives`)),(a||o)&&(s.push($),Fb(lv(0,r.directives,-1),t)&&s.push($))),a&&s.push(lO(e,t,n,`body`)),o&&s.push(pT(e,t)),s}function fO(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}var pO=fO;function mO(e,t,n){let{node:r}=e,i=[],a=r.type===`ObjectTypeAnnotation`,o=!hO(e),s=o?Z:$,c=K(r,G.Dangling),[l,u]=a&&r.exact?[`{|`,`|}`]:`{}`,d;if(gO(e,({node:r,next:c,isLast:l})=>{if(d??=r,i.push(n()),o&&a){let{parent:n}=e;n.inexact||!l?i.push(`,`):mb(t)&&i.push(Y(`,`))}!o&&(bO({node:r,next:c},t)||SO({node:r,next:c},t))&&i.push(`;`),l||(i.push(s),Fb(r,t)&&i.push($))}),c&&i.push(pT(e,t)),r.type===`ObjectTypeAnnotation`&&r.inexact){let e;e=K(r,G.Dangling)?[K(r,G.Line)||jv(t.originalText,H(lv(0,Pb(r),-1)))?$:Z,`...`]:[d?Z:``,`...`],i.push(e)}if(o){let n=c||t.objectWrap===`preserve`&&d&&fx(t.originalText,V(r),V(d)),a;if(i.length===0)a=l+u;else{let e=t.bracketSpacing?Z:Q;a=[l,q([e,...i]),e,u]}return e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,CT)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,CT)?a:J(a,{shouldBreak:n})}return[l,i.length>0?[q([$,i]),$]:``,u]}function hO(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`}function gO(e,t){let{node:n}=e;if(n.type===`ClassBody`||n.type===`TSInterfaceBody`){e.each(t,`body`);return}if(n.type===`TSTypeLiteral`){e.each(t,`members`);return}if(n.type===`ObjectTypeAnnotation`){let n=[`properties`,`indexers`,`callProperties`,`internalSlots`].flatMap(t=>e.map(({node:e,index:n})=>({node:e,loc:V(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 _O(e,t){let{parent:n}=e;return e.callParent(hO)?t.semi||n.type===`ObjectTypeAnnotation`?`;`:``:n.type===`TSTypeLiteral`?e.isLast?t.semi?Y(`;`):``:t.semi||SO({node:e.node,next:e.next},t)?`;`:Y(``,`;`):``}var vO=W([`ClassProperty`,`PropertyDefinition`,`ClassPrivateProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]),yO=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 bO({node:e,next:t},n){if(n.semi||!vO(e))return!1;if(!e.value&&yO(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(vO(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case`ClassProperty`:case`PropertyDefinition`:case`TSAbstractPropertyDefinition`:return t.computed;case`MethodDefinition`:case`TSAbstractMethodDefinition`:case`ClassMethod`:case`ClassPrivateMethod`:{if((t.value?t.value.async:t.async)||t.kind===`get`||t.kind===`set`)return!1;let e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case`TSIndexSignature`:return!0}return!1}var xO=W([`TSPropertySignature`]);function SO({node:e,next:t},n){return n.semi||!xO(e)?!1:yO(e)?!0:t?t.type===`TSCallSignatureDeclaration`:!1}var CO=pO(`heritageGroup`),wO=W([`TSInterfaceDeclaration`,`DeclareInterface`,`InterfaceDeclaration`,`InterfaceTypeAnnotation`]);function TO(e,t,n){let{node:r}=e,i=wO(r),a=[DT(e),kT(e),i?`interface`:`class`],o=AO(e),s=[],c=[];if(r.type!==`InterfaceTypeAnnotation`){r.id&&s.push(` `);for(let i of[`id`,`typeParameters`])if(r[i]){let{leading:r,trailing:a}=e.call(()=>mT(e,t),i);s.push(r,n(i),q(a))}}if(r.superClass){let i=[MO(e,t,n),n(r.superTypeArguments?`superTypeArguments`:`superTypeParameters`)],a=e.call(()=>[`extends `,hT(e,i,t)],`superClass`);o?c.push(Z,J(a)):c.push(` `,a)}else c.push(jO(e,t,n,`extends`));c.push(jO(e,t,n,`mixins`),jO(e,t,n,`implements`));let l;return o?(l=CO(r),a.push(J([...s,q(c)],{id:l}))):a.push(...s,...c),!i&&o&&EO(r.body)?a.push(Y($,` `,{groupId:l})):a.push(` `),a.push(n(`body`)),a}function EO(e){return e.type===`ObjectTypeAnnotation`?[`properties`,`indexers`,`callProperties`,`internalSlots`].some(t=>zv(e[t])):zv(e.body)}function DO(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 OO(e){let{node:t}=e;if(K(t.id,G.Trailing)||K(t.typeParameters,G.Trailing)||K(t.superClass)||DO(t))return!0;if(t.superClass)return e.parent.type!==`AssignmentExpression`&&!(t.superTypeArguments??t.superTypeParameters)&&tb(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`)&&tb(n.expression)&&!n.typeArguments:!1}var kO=new WeakMap;function AO(e){let{node:t}=e;return kO.has(t)||kO.set(t,OO(e)),kO.get(t)}function jO(e,t,n,r){let{node:i}=e;if(!zv(i[r]))return``;let a=pT(e,t,{marker:r}),o=X([`,`,Z],e.map(n,r));if(!DO(i)){let t=[`${r} `,a,o];return AO(e)?[Z,J(t)]:[` `,t]}return[Z,a,a&&$,r,J(q([Z,o]))]}function MO(e,t,n){let r=n(`superClass`),{parent:i}=e;return i.type===`AssignmentExpression`?J(Y([`(`,q([Q,r]),Q,`)`],r)):r}function NO(e,t,n){let{node:r}=e,i=[];return zv(r.decorators)&&i.push(JD(e,t,n)),i.push(jT(r)),r.static&&i.push(`static `),i.push(kT(e)),r.override&&i.push(`override `),i.push(eD(e,t,n)),i}function PO(e,t,n){let{node:r}=e,i=[];return zv(r.decorators)&&i.push(JD(e,t,n)),i.push(DT(e),jT(r)),r.static&&i.push(`static `),i.push(kT(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(XE(e,t,n),wT(e),TT(e),YT(e,n)),[DE(e,t,n,i,` =`,r.type===`TSAbstractPropertyDefinition`||r.type===`TSAbstractAccessorProperty`?void 0:`value`),t.semi?`;`:``]}var FO=W([`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`]);function IO(e){return FO(e)?IO(e.expression):e}var LO=W([`FunctionExpression`,`ArrowFunctionExpression`]);function RO(e){return e.type===`MemberExpression`||e.type===`OptionalMemberExpression`||e.type===`Identifier`&&e.name!==`undefined`}function zO(e,t){if(mD(e,t)){let t=IO(e.node.expression);return LO(t)||RO(t)}return!(!t.semi||fD(e,t)||pD(e,t))}function BO(e,t,n){return[n(`expression`),zO(e,t)?`;`:``]}function VO(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=X([`,`,Z],r);return t.__isVueForBindingLeft?[`(`,q([Q,J(i)]),Q,`)`]:i}if(t.__isEmbeddedTypescriptGenericParameters){let t=e.map(n,`program`,`body`,0,`typeParameters`,`params`);return X([`,`,Z],t)}}function HO(e,t){let{node:n}=e;switch(n.type){case`RegExpLiteral`:return GO(n);case`BigIntLiteral`:return WO(n.extra.raw);case`NumericLiteral`:return FT(n.extra.raw);case`StringLiteral`:return YS(Zv(n.extra.raw,t));case`NullLiteral`:return`null`;case`BooleanLiteral`:return String(n.value);case`DirectiveLiteral`:return qO(n.extra.raw,t);case`Literal`:{if(n.regex)return GO(n.regex);if(n.bigint)return WO(n.raw);let{value:r}=n;return typeof r==`number`?FT(n.raw):typeof r==`string`?UO(e)?qO(n.raw,t):YS(Zv(n.raw,t)):String(r)}}}function UO(e){if(e.key!==`expression`)return;let{parent:t}=e;return t.type===`ExpressionStatement`&&typeof t.directive==`string`}function WO(e){return e.toLowerCase()}function GO({pattern:e,flags:t}){return t=[...t].sort().join(``),`/${e}/${t}`}var KO=`use strict`;function qO(e,t){let n=e.slice(1,-1);if(n===KO||!(n.includes(`"`)||n.includes(`'`))){let e=t.singleQuote?`'`:`"`;return e+n+e}return e}function JO(e,t,n){let r=e.originalText.slice(t,n);for(let i of e[Symbol.for(`comments`)]){let e=V(i);if(e>n)break;let a=H(i);if(a<t)continue;let o=e-t,s=a-t;r=r.slice(0,o)+sv(0,r.slice(o,s),/[^\n]/gu,` `)+r.slice(s)}return r}var YO=JO,XO=W([`ImportDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`]),ZO=W([`EnumBooleanBody`,`EnumNumberBody`,`EnumBigIntBody`,`EnumStringBody`,`EnumSymbolBody`]);function QO(e,t,n){let{node:r,parent:i}=e,a=ZO(r),o=r.type===`TSEnumBody`||a,s=XO(r),c=a&&r.hasUnknownMembers,l=o?`members`:s?`attributes`:`properties`,u=r[l],d=o||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`&&u.length>0&&$O(r,u[0],t),f=[],p=e.map(({node:e})=>{let r=[...f,J(n())];return f=[`,`,Z],Fb(e,t)&&f.push($),r},l);if(c){let n;if(K(r,G.Dangling)){let i=K(r,G.Line);n=[pT(e,t),i||jv(t.originalText,H(lv(0,Pb(r),-1)))?$:Z,`...`]}else n=[`...`];p.push([...f,...n])}let m=!(c||lv(0,u,-1)?.type===`RestElement`),h;if(p.length===0){if(!K(r,G.Dangling))return[`{}`,YT(e,n)];h=J([`{`,pT(e,t,{indent:!0}),Q,`}`,wT(e),YT(e,n)])}else{let r=t.bracketSpacing?Z:Q;h=[`{`,q([r,...p]),Y(m&&mb(t)?`,`:``),r,`}`,wT(e),YT(e,n)]}return e.match(e=>e.type===`ObjectPattern`&&!zv(e.decorators),CT)||Ly(r)&&(e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,CT)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,CT))||!d&&e.match(e=>e.type===`ObjectPattern`,e=>e.type===`AssignmentExpression`||e.type===`VariableDeclarator`)?h:J(h,{shouldBreak:d})}function $O(e,t,n){let r=n.originalText,i=V(e),a=V(t);if(XO(e)){let t=V(e);i=t+YO(n,t,a).lastIndexOf(`{`)}return fx(r,i,a)}function ek(e,t,n){let{node:r}=e;return[`import`,r.phase?` ${r.phase}`:``,ok(r),lk(e,t,n),ck(e,t,n),pk(e,t,n),t.semi?`;`:``]}var tk=e=>e.type===`ExportDefaultDeclaration`||e.type===`DeclareExportDeclaration`&&e.default;function nk(e,t,n){let{node:r}=e,i=[YD(e,t,n),DT(e),`export`,tk(r)?` default`:``],{declaration:a,exported:o}=r;return K(r,G.Dangling)&&(i.push(` `,pT(e,t)),lb(r)&&i.push($)),a?i.push(` `,n(`declaration`)):(i.push(sk(r)),r.type===`ExportAllDeclaration`||r.type===`DeclareExportAllDeclaration`?(i.push(` *`),o&&i.push(` as `,n(`exported`))):i.push(lk(e,t,n)),i.push(ck(e,t,n),pk(e,t,n))),i.push(ik(r,t)),i}var rk=W([`ClassDeclaration`,`ComponentDeclaration`,`FunctionDeclaration`,`TSInterfaceDeclaration`,`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`HookDeclaration`,`TSDeclareFunction`,`EnumDeclaration`]);function ik(e,t){return t.semi&&(!e.declaration||tk(e)&&!rk(e.declaration))?`;`:``}function ak(e,t=!0){return e&&e!==`value`?`${t?` `:``}${e}${t?``:` `}`:``}function ok(e,t){return ak(e.importKind,t)}function sk(e){return ak(e.exportKind)}function ck(e,t,n){let{node:r}=e;return r.source?[uk(r,t)?` from`:``,` `,n(`source`)]:``}function lk(e,t,n){let{node:r}=e;if(!uk(r,t))return``;let i=[` `];if(zv(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 hD(r,`specifier`)},`specifiers`),i.push(X(`, `,a)),o.length>0&&(a.length>0&&i.push(`, `),o.length>1||a.length>0||r.specifiers.some(e=>K(e))?i.push(J([`{`,q([t.bracketSpacing?Z:Q,X([`,`,Z],o)]),Y(mb(t)?`,`:``),t.bracketSpacing?Z:Q,`}`])):i.push([`{`,t.bracketSpacing?` `:``,...o,t.bracketSpacing?` `:``,`}`]))}else i.push(`{}`);return i}function uk(e,t){return e.type!==`ImportDeclaration`||zv(e.specifiers)||e.importKind===`type`?!0:YO(t,V(e),V(e.source)).trimEnd().endsWith(`from`)}function dk(e,t){if(e.extra?.deprecatedAssertSyntax)return`assert`;let n=YO(t,H(e.source),e.attributes?.[0]?V(e.attributes[0]):H(e)).trimStart();return n.startsWith(`assert`)?`assert`:n.startsWith(`with`)||zv(e.attributes)?`with`:void 0}var fk=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`||Ny(i)&&i.value===`type`)&&Ny(a)&&!K(n)&&!K(i)&&!K(a)};function pk(e,t,n){let{node:r}=e;if(!r.source)return``;let i=dk(r,t);if(!i)return``;let a=QO(e,t,n);return fk(r)&&(a=KS(a)),[` ${i} `,a]}function mk(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&&!hk(r)&&(d=n(s)),[ak(i===`ImportSpecifier`?r.importKind:r.exportKind,!1),u,u&&d?` as `:``,d]}function hk(e){if(e.type!==`ImportSpecifier`&&e.type!==`ExportSpecifier`)return!1;let{local:t,[e.type===`ImportSpecifier`?`imported`:`exported`]:n}=e;if(t.type!==n.type||!ty(t,n))return!1;if(Ny(t))return t.value===n.value&&dy(t)===dy(n);switch(t.type){case`Identifier`:return t.name===n.name;default:return!1}}function gk(e,t){return[`...`,t(`argument`),YT(e,t)]}function _k(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(Vy(r))return!0;r.type===`ConditionalExpression`&&t.push(r)}}return!1}function vk(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?iC(2,s):s}var yk=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function bk(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(i.type===`ChainExpression`&&i.expression===r||eb(i)&&i.callee===r||tb(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||Rb(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r!==t&&n[yk.get(n.type)]===r}function xk(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&&(Vy(r[s[0]])||Vy(c)||Vy(l)||_k(y))){d=!0,m=!0;let e=e=>[Y(`(`),q([Q,e]),Q,Y(`)`)],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?q(n(e)):iC(2,n(e)),i=[Z,`? `,c.type===r.type?Y(``,`(`):``,e(a),c.type===r.type?Y(``,`)`):``,Z,`: `,e(o)];u.push(f.type!==r.type||f[o]===r||p?i:t.useTabs?oC(q(i)):iC(Math.max(0,t.tabWidth-2),i))}let b=e=>f===v?J(e):e,x=!d&&(tb(f)||f.type===`NGPipeExpression`&&f.left===r)&&!f.computed,S=bk(e),C=b([vk(e,t,n),m?u:q(u),i&&x&&!S?Q:``]);return p||S?J([q([Q,C]),Q]):C}function Sk(e,t){return(tb(t)||t.type===`NGPipeExpression`&&t.left===e)&&!t.computed}function Ck(e,t,n,r){return[...e.map(e=>Pb(e)),Pb(t),Pb(n)].flat().some(e=>fy(e)&&fx(r.originalText,V(e),H(e)))}var wk=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function Tk(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(i.type===`ChainExpression`&&i.expression===r||eb(i)&&i.callee===r||tb(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||Rb(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r!==t&&n[wk.get(n.type)]===r}var Ek=e=>[Y(`(`),q([Q,e]),Q,Y(`)`)];function Dk(e,t,n,r){if(!t.experimentalTernaries)return xk(e,t,n);let{node:i}=e,a=i.type===`ConditionalExpression`,o=Vb(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,b=t.tabWidth>2||t.useTabs,x,S,C=0;do S=x||i,x=e.getParentNode(C),C++;while(x&&x.type===i.type&&l.every(e=>x[e]!==S));let w=x||p,T=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`),ee=(p.type===`ReturnStatement`||p.type===`ThrowStatement`)&&!(_||v),E=a&&w.type===`JSXExpressionContainer`&&e.grandparent.type!==`JSXAttribute`,te=Tk(e),D=Sk(i,p),ne=o&&oT(e,t),re=b?t.useTabs?` `:` `.repeat(t.tabWidth-1):``,O=Ck(f,u,d,t)||_||v,ie=!y&&!m&&!o&&(E?u.type===`NullLiteral`||u.type===`Literal`&&u.value===null:ab(u,t)&&nb(i.test,3)),ae=y||g||o&&!m||m&&a&&nb(i.test,1)||ie,oe=[];!_&&K(u,G.Dangling)&&e.call(()=>{oe.push(pT(e,t),$)},`consequent`);let se=[];K(i.test,G.Dangling)&&e.call(()=>{se.push(pT(e,t))},`test`),!v&&K(d,G.Dangling)&&e.call(()=>{se.push(pT(e,t))},`alternate`),K(i,G.Dangling)&&se.push(pT(e,t));let ce=Symbol(`test`),le=Symbol(`consequent`),ue=Symbol(`test-and-consequent`),de=J([a?[Ek(n(`test`)),i.test.type===`ConditionalExpression`?cC:``]:[n(`checkType`),` `,`extends`,` `,Vb(i.extendsType)||i.extendsType.type===`TSMappedType`?n(`extendsType`):J(Ek(n(`extendsType`)))],` ?`],{id:ce}),fe=n(s),pe=q([_||E&&(Vy(u)||m||y)?$:Z,oe,fe]),me=ae?J([de,y?pe:Y(pe,J(pe,{id:le}),{groupId:ce})],{id:ue}):[de,pe],he=n(c),ge=ie?Y(he,oC(Ek(he)),{groupId:ue}):he,_e=[me,se.length>0?[q([$,se]),$]:v?$:ie?Y(Z,` `,{groupId:ue}):Z,`:`,v?` `:b?ae?Y(re,Y(y||ie?` `:re,` `),{groupId:ue}):Y(re,` `):` `,v?ge:J([q(ge),E&&!ie?Q:``]),D&&!te?Q:``,O?cC:``];return T&&!O?J(q([Q,J(_e)])):T||ee?J(q(_e)):te||o&&h?J([q([Q,_e]),ne?Q:``]):p===w?J(_e):_e}function Ok(e,t,n,r){let{node:i}=e;if(Fy(i))return HO(e,t);switch(i.type){case`JsExpressionRoot`:return n(`node`);case`JsonRoot`:return[pT(e,t),n(`node`),$];case`File`:return VO(e,t,n)??n(`program`);case`ExpressionStatement`:return BO(e,t,n);case`ChainExpression`:return n(`expression`);case`ParenthesizedExpression`:return!K(i.expression)&&(Oy(i.expression)||Dy(i.expression))?[`(`,n(`expression`),`)`]:J([`(`,q([Q,n(`expression`)]),Q,`)`]);case`AssignmentExpression`:return OE(e,t,n);case`VariableDeclarator`:return kE(e,t,n);case`BinaryExpression`:case`LogicalExpression`:return LT(e,t,n);case`AssignmentPattern`:return[n(`left`),` = `,n(`right`)];case`OptionalMemberExpression`:case`MemberExpression`:return vE(e,t,n);case`MetaProperty`:return[n(`meta`),`.`,n(`property`)];case`BindExpression`:return mE(e,t,n);case`Identifier`:return[i.name,wT(e),TT(e),YT(e,n)];case`V8IntrinsicIdentifier`:return[`%`,i.name];case`SpreadElement`:return gk(e,n);case`RestElement`:return gk(e,n);case`FunctionDeclaration`:case`FunctionExpression`:return $E(e,t,n,r);case`ArrowFunctionExpression`:return nO(e,t,n,r);case`YieldExpression`:return[`yield${i.delegate?`*`:``}`,i.argument?[` `,n(`argument`)]:``];case`AwaitExpression`:{let t=[`await`];if(i.argument){t.push(` `,n(`argument`));let{parent:r}=e;if(eb(r)&&r.callee===i||tb(r)&&r.object===i){t=[q([Q,...t]),Q];let n=e.findAncestor(e=>e.type===`AwaitExpression`||e.type===`BlockStatement`);if(n?.type!==`AwaitExpression`||!hb(n.argument,e=>e===i))return J(t)}}return t}case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return nk(e,t,n);case`ImportDeclaration`:return ek(e,t,n);case`ImportSpecifier`:case`ExportSpecifier`:case`ImportNamespaceSpecifier`:case`ExportNamespaceSpecifier`:case`ImportDefaultSpecifier`:case`ExportDefaultSpecifier`:return mk(e,t,n);case`ImportAttribute`:return ZE(e,t,n);case`Program`:case`BlockStatement`:case`StaticBlock`:return uO(e,t,n);case`ClassBody`:return mO(e,t,n);case`ThrowStatement`:return sD(e,t,n);case`ReturnStatement`:return oD(e,t,n);case`NewExpression`:case`ImportExpression`:case`OptionalCallExpression`:case`CallExpression`:return SE(e,t,n);case`ObjectExpression`:case`ObjectPattern`:return QO(e,t,n);case`Property`:return Hy(i)?eD(e,t,n):ZE(e,t,n);case`ObjectProperty`:return ZE(e,t,n);case`ObjectMethod`:return eD(e,t,n);case`Decorator`:return[`@`,n(`expression`)];case`ArrayExpression`:case`ArrayPattern`:return $T(e,t,n);case`SequenceExpression`:{let{parent:t}=e;if(t.type===`ExpressionStatement`||t.type===`ForStatement`){let t=[];return e.each(({isFirst:e})=>{e?t.push(n()):t.push(`,`,q([Z,n()]))},`expressions`),J(t)}let r=X([`,`,Z],e.map(n,`expressions`));return(t.type===`ReturnStatement`||t.type===`ThrowStatement`)&&e.key===`argument`||t.type===`ArrowFunctionExpression`&&e.key===`body`?J(Y([q([Q,r]),Q],r)):J(r)}case`ThisExpression`:return`this`;case`Super`:return`super`;case`Directive`:return[n(`value`),t.semi?`;`:``];case`UnaryExpression`:{let e=[i.operator];return/[a-z]$/u.test(i.operator)&&e.push(` `),K(i.argument)?e.push(J([`(`,q([Q,n(`argument`)]),Q,`)`])):e.push(n(`argument`)),e}case`UpdateExpression`:return[i.prefix?i.operator:``,n(`argument`),i.prefix?``:i.operator];case`ConditionalExpression`:return Dk(e,t,n,r);case`VariableDeclaration`:{let r=e.map(n,`declarations`),a=e.parent,o=a.type===`ForStatement`||a.type===`ForInStatement`||a.type===`ForOfStatement`,s=i.declarations.some(e=>e.init),c;return r.length===1&&!K(i.declarations[0])?c=r[0]:r.length>0&&(c=q(r[0])),J([DT(e),i.kind,c?[` `,c]:``,q(r.slice(1).map(e=>[`,`,s&&!o?$:Z,e])),t.semi&&!(o&&a.body!==i)?`;`:``])}case`WithStatement`:return J([`with (`,n(`object`),`)`,AT(i.body,n(`body`))]);case`IfStatement`:{let r=AT(i.consequent,n(`consequent`)),a=[J([`if (`,J([q([Q,n(`test`)]),Q]),`)`,r])];if(i.alternate){let r=K(i.consequent,G.Trailing|G.Line)||lb(i),o=i.consequent.type===`BlockStatement`&&!r;a.push(o?` `:$),K(i,G.Dangling)&&a.push(pT(e,t),r?$:` `),a.push(`else`,J(AT(i.alternate,n(`alternate`),i.alternate.type===`IfStatement`)))}return a}case`ForStatement`:{let r=AT(i.body,n(`body`)),a=pT(e,t),o=a?[a,Q]:``;return!i.init&&!i.test&&!i.update?[o,J([`for (;;)`,r])]:[o,J([`for (`,J([q([Q,n(`init`),`;`,Z,n(`test`),`;`,i.update?[Z,n(`update`)]:Y(``,Z)]),Q]),`)`,r])]}case`WhileStatement`:return J([`while (`,J([q([Q,n(`test`)]),Q]),`)`,AT(i.body,n(`body`))]);case`ForInStatement`:return J([`for (`,n(`left`),` in `,n(`right`),`)`,AT(i.body,n(`body`))]);case`ForOfStatement`:return J([`for`,i.await?` await`:``,` (`,n(`left`),` of `,n(`right`),`)`,AT(i.body,n(`body`))]);case`DoWhileStatement`:return[J([`do`,AT(i.body,n(`body`))]),i.body.type===`BlockStatement`?` `:$,`while (`,J([q([Q,n(`test`)]),Q]),`)`,t.semi?`;`:``];case`DoExpression`:return[i.async?`async `:``,`do `,n(`body`)];case`BreakStatement`:case`ContinueStatement`:return[i.type===`BreakStatement`?`break`:`continue`,i.label?[` `,n(`label`)]:``,t.semi?`;`:``];case`LabeledStatement`:return[n(`label`),`:${i.body.type===`EmptyStatement`&&!K(i.body,G.Leading)?``:` `}`,n(`body`)];case`TryStatement`:return[`try `,n(`block`),i.handler?[` `,n(`handler`)]:``,i.finalizer?[` finally `,n(`finalizer`)]:``];case`CatchClause`:if(i.param){let e=K(i.param,e=>!fy(e)||e.leading&&jv(t.originalText,H(e))||e.trailing&&jv(t.originalText,V(e),{backwards:!0})),r=n(`param`);return[`catch `,e?[`(`,q([Q,r]),Q,`) `]:[`(`,r,`) `],n(`body`)]}return[`catch `,n(`body`)];case`SwitchStatement`:return[J([`switch (`,q([Q,n(`discriminant`)]),Q,`)`]),` {`,i.cases.length>0?q([$,X($,e.map(({node:e,isLast:r})=>[n(),!r&&Fb(e,t)?$:``],`cases`))]):``,$,`}`];case`SwitchCase`:{let r=[];i.test?r.push(`case `,n(`test`),`:`):r.push(`default:`),K(i,G.Dangling)&&r.push(` `,pT(e,t));let a=i.consequent.filter(e=>e.type!==`EmptyStatement`);if(a.length>0){let i=lO(e,t,n,`consequent`);r.push(a.length===1&&a[0].type===`BlockStatement`?[` `,i]:q([$,i]))}return r}case`DebuggerStatement`:return[`debugger`,t.semi?`;`:``];case`ClassDeclaration`:case`ClassExpression`:return TO(e,t,n);case`ClassMethod`:case`ClassPrivateMethod`:case`MethodDefinition`:return NO(e,t,n);case`ClassProperty`:case`PropertyDefinition`:case`ClassPrivateProperty`:case`ClassAccessorProperty`:case`AccessorProperty`:return PO(e,t,n);case`TemplateElement`:return YS(i.value.raw);case`TemplateLiteral`:return VC(e,t,n);case`TaggedTemplateExpression`:return HC(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(xy(e))return`;`;default:throw new hD(i,`ESTree`)}}function kk(e){return[e(`elementType`),`[]`]}var Ak=W([`SatisfiesExpression`,`TSSatisfiesExpression`]);function jk(e,t,n){let{parent:r,node:i,key:a}=e,o=i.type===`AsConstExpression`?`const`:n(`typeAnnotation`),s=[n(`expression`),` `,Ak(i)?`satisfies`:`as`,` `,o];return a===`callee`&&eb(r)||a===`object`&&tb(r)?J([q([Q,...s]),Q]):s}function Mk(e,t,n){let{node:r}=e,i=[DT(e),`component`];r.id&&i.push(` `,n(`id`)),i.push(n(`typeParameters`));let a=Nk(e,t,n);return r.rendersType?i.push(J([a,` `,n(`rendersType`)])):i.push(J([a])),r.body&&i.push(` `,n(`body`)),t.semi&&r.type===`DeclareComponent`&&i.push(`;`),i}function Nk(e,t,n){let{node:r}=e,i=r.params;if(r.rest&&(i=[...i,r.rest]),i.length===0)return[`(`,pT(e,t,{filter:e=>ux(t.originalText,H(e))===`)`}),`)`];let a=[];return Fk(e,(e,o)=>{let s=o===i.length-1;s&&r.rest&&a.push(`...`),a.push(n()),!s&&(a.push(`,`),Fb(i[o],t)?a.push($,$):a.push(Z))}),[`(`,q([Q,...a]),Y(mb(t,`all`)&&!Pk(r,i)?`,`:``),Q,`)`]}function Pk(e,t){return e.rest||lv(0,t,-1)?.type===`RestElement`}function Fk(e,t){let{node:n}=e,r=0,i=e=>t(e,r++);e.each(i,`params`),n.rest&&e.call(i,`rest`)}function Ik(e,t,n){let{node:r}=e;return r.shorthand?n(`local`):[n(`name`),` as `,n(`local`)]}function Lk(e,t,n){let{node:r}=e,i=[];return r.name&&i.push(n(`name`),r.optional?`?: `:`: `),i.push(n(`typeAnnotation`)),i}function Rk(e,t,n){return QO(e,t,n)}function zk(e,t,n){let{node:r}=e;return[r.type===`EnumSymbolBody`||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:``,Rk(e,t,n)]}function Bk(e,t){let{node:n}=e,r=t(`id`);n.computed&&(r=[`[`,r,`]`]);let i=``;return n.initializer&&(i=t(`initializer`)),n.init&&(i=t(`init`)),i?[r,` = `,i]:r}function Vk(e,t){let{node:n}=e;return[DT(e),n.const?`const `:``,`enum `,t(`id`),` `,t(`body`)]}function Hk(e,t,n){let{node:r}=e,i=[kT(e)];(r.type===`TSConstructorType`||r.type===`TSConstructSignatureDeclaration`)&&i.push(`new `);let a=_T(e,t,n,!1,!0),o=[];return r.type===`FunctionTypeAnnotation`?o.push(Uk(e)?` => `:`: `,n(`returnType`)):o.push(YT(e,n,`returnType`)),bT(r,o)&&(a=J(a)),i.push(a,o),[J(i),r.type===`TSConstructSignatureDeclaration`||r.type===`TSCallSignatureDeclaration`?_O(e,t):``]}function Uk(e){let{node:t,parent:n}=e;return t.type===`FunctionTypeAnnotation`&&(Uy(n)||!((n.type===`ObjectTypeProperty`||n.type===`ObjectTypeInternalSlot`)&&!n.variance&&!n.optional&&$v(n,t)||n.type===`ObjectTypeCallProperty`||e.getParentNode(2)?.type===`DeclareFunction`))}function Wk(e,t,n){let{node:r}=e,i=[`hook`];r.id&&i.push(` `,n(`id`));let a=_T(e,t,n,!1,!0),o=iD(e,n),s=bT(r,o);return i.push(J([s?J(a):a,o]),r.body?` `:``,n(`body`)),i}function Gk(e,t,n){let{node:r}=e,i=[DT(e),`hook`];return r.id&&i.push(` `,n(`id`)),t.semi&&i.push(`;`),i}function Kk(e){let{node:t}=e;return t.type===`HookTypeAnnotation`&&e.getParentNode(2)?.type===`DeclareHook`}function qk(e,t,n){let{node:r}=e,i=_T(e,t,n,!1,!0),a=[Kk(e)?`: `:` => `,n(`returnType`)];return J([Kk(e)?``:`hook `,bT(r,a)?J(i):i,a])}function Jk(e,t,n){return[n(`objectType`),wT(e),`[`,n(`indexType`),`]`]}function Yk(e,t,n){return[`infer `,n(`typeParameter`)]}function Xk(e,t,n){let r=!1;return J(e.map(({isFirst:e,previous:i,node:a,index:o})=>{let s=n();if(e)return s;let c=Ly(a),l=Ly(i);return l&&c?[` & `,r?q(s):s]:!l&&!c||ob(t.originalText,a)?t.experimentalOperatorPosition===`start`?q([Z,`& `,s]):q([` &`,Z,s]):(o>1&&(r=!0),[` & `,o>1?q(s):s])},`types`))}function Zk(e){switch(e){case null:return``;case`PlusOptional`:return`+?`;case`MinusOptional`:return`-?`;case`Optional`:return`?`}}function Qk(e,t,n){let{node:r}=e;return[J([r.variance?n(`variance`):``,`[`,q([n(`keyTparam`),` in `,n(`sourceType`)]),`]`,Zk(r.optional),`: `,n(`propType`)]),_O(e,t)]}function $k(e,t){return e===`+`||e===`-`?e+t:t}function eA(e,t,n){let{node:r}=e,i=!1;if(t.objectWrap===`preserve`){let e=V(r),n=YO(t,e+1,V(r.key)),a=e+1+n.search(/\S/u);fx(t.originalText,e,a)&&(i=!0)}return J([`{`,q([t.bracketSpacing?Z:Q,K(r,G.Dangling)?J([pT(e,t),$]):``,J([r.readonly?[$k(r.readonly,`readonly`),` `]:``,`[`,n(`key`),` in `,n(`constraint`),r.nameType?[` as `,n(`nameType`)]:``,`]`,r.optional?$k(r.optional,`?`):``,r.typeAnnotation?`: `:``,n(`typeAnnotation`)]),t.semi?Y(`;`):``]),t.bracketSpacing?Z:Q,`}`],{shouldBreak:i})}function tA(e,t,n){let{node:r}=e;return[J([`match (`,q([Q,n(`argument`)]),Q,`)`]),` {`,r.cases.length>0?q([$,X($,e.map(({node:e,isLast:r})=>[n(),!r&&Fb(e,t)?$:``],`cases`))]):``,$,`}`]}function nA(e,t,n){let{node:r}=e,i=K(r,G.Dangling)?[` `,pT(e,t)]:[],a=r.type===`MatchStatementCase`?[` `,n(`body`)]:q([Z,n(`body`),`,`]);return[n(`pattern`),r.guard?J([q([Z,`if (`,n(`guard`),`)`])]):``,J([` =>`,i,a])]}function rA(e,t,n){let{node:r}=e;switch(r.type){case`MatchOrPattern`:return sA(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`)]:[`[`,q([Q,n(`property`)]),Q,`]`];return J([n(`base`),e])}case`MatchBindingPattern`:return[r.kind,` `,n(`id`)];case`MatchObjectPattern`:{let t=e.map(n,`properties`);return r.rest&&t.push(n(`rest`)),J([`{`,q([Q,X([`,`,Z],t)]),r.rest?``:Y(`,`),Q,`}`])}case`MatchArrayPattern`:{let t=e.map(n,`elements`);return r.rest&&t.push(n(`rest`)),J([`[`,q([Q,X([`,`,Z],t)]),r.rest?``:Y(`,`),Q,`]`])}case`MatchObjectPatternProperty`:return r.shorthand?n(`pattern`):J([n(`key`),`:`,q([Z,n(`pattern`)])]);case`MatchRestPattern`:{let e=[`...`];return r.argument&&e.push(n(`argument`)),e}}}var iA=W([`MatchWildcardPattern`,`MatchLiteralPattern`,`MatchUnaryPattern`,`MatchIdentifierPattern`]);function aA(e){let{patterns:t}=e;if(t.some(e=>K(e)))return!1;let n=t.find(e=>e.type===`MatchObjectPattern`);return n?t.every(e=>e===n||iA(e)):!1}function oA(e){return iA(e)||e.type===`MatchObjectPattern`?!0:e.type===`MatchOrPattern`&&aA(e)}function sA(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`MatchStatementCase`&&i.type!==`MatchExpressionCase`&&i.type!==`MatchArrayPattern`&&i.type!==`MatchObjectPatternProperty`&&!ob(t.originalText,r),o=oA(r),s=e.map(()=>{let r=n();return o||(r=iC(2,r)),hT(e,r,t)},`patterns`);if(o)return X(` | `,s);let c=[Y([`| `]),X([Z,`| `],s)];return oT(e,t)?J([q([Y([Q]),c]),Q]):i.type===`MatchArrayPattern`&&i.elements.length>1?J([q([Y([`(`,Q]),c]),Q,Y(`)`)]):J(a?q(c):c)}function cA(e,t,n){let{node:r}=e,i=[DT(e),`opaque type `,n(`id`),n(`typeParameters`)];if(r.supertype&&i.push(`: `,n(`supertype`)),r.lowerBound||r.upperBound){let e=[];r.lowerBound&&e.push(q([Z,`super `,n(`lowerBound`)])),r.upperBound&&e.push(q([Z,`extends `,n(`upperBound`)])),i.push(J(e))}return r.impltype&&i.push(` = `,n(`impltype`)),i.push(t.semi?`;`:``),i}function lA(e,t,n){let{node:r}=e;return[`...`,...r.type===`TupleTypeSpreadElement`&&r.label?[n(`label`),`: `]:[],n(`typeAnnotation`)]}function uA(e,t,n){let{node:r}=e;return[r.variance?n(`variance`):``,n(`label`),r.optional?`?`:``,`: `,n(`elementType`)]}function dA(e,t,n){let{node:r}=e;return[DE(e,t,n,[DT(e),`type `,n(`id`),n(`typeParameters`)],` =`,r.type===`TSTypeAliasDeclaration`?`typeAnnotation`:`right`),t.semi?`;`:``]}function fA(e,t,n){let{node:r}=e;return Tb(r).length===1&&r.type.startsWith(`TS`)&&!r[n][0].constraint&&e.parent.type===`ArrowFunctionExpression`&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function pA(e,t,n,r){let{node:i}=e;if(!i[r])return``;if(!Array.isArray(i[r]))return n(r);let a=Qy(e.grandparent),o=e.match(e=>!(e[r].length===1&&Ly(e[r][0])),void 0,(e,t)=>t===`typeAnnotation`,e=>e.type===`Identifier`,RE);if(i[r].length===0||!o&&(a||i[r].length===1&&(i[r][0].type===`NullableTypeAnnotation`||qT(i[r][0]))))return[`<`,X(`, `,e.map(n,r)),mA(e,t),`>`];let s=i.type===`TSTypeParameterInstantiation`?``:fA(e,t,r)?`,`:mb(t)?Y(`,`):``;return J([`<`,q([Q,X([`,`,Z],e.map(n,r))]),s,Q,`>`])}function mA(e,t){let{node:n}=e;if(!K(n,G.Dangling))return``;let r=!K(n,G.Line),i=pT(e,t,{indent:!r});return r?i:[i,$]}function hA(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(YT(e,n,`bound`))),r.constraint){let e=Symbol(`constraint`);i.push(` extends`,J(q(Z),{id:e}),_C,fC(n(`constraint`),{groupId:e}))}if(r.default){let e=Symbol(`default`);i.push(` =`,J(q(Z),{id:e}),_C,fC(n(`default`),{groupId:e}))}return J(i)}function gA(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 `,YT(e,t)]:``]}function _A({node:e},t){return[`typeof `,t(e.type===`TSTypeQuery`?`exprName`:`argument`),t(`typeArguments`)]}function vA(e,t,n){let{node:r}=e;if(py(r))return r.type.slice(0,-14).toLowerCase();switch(r.type){case`ComponentDeclaration`:case`DeclareComponent`:case`ComponentTypeAnnotation`:return Mk(e,t,n);case`ComponentParameter`:return Ik(e,t,n);case`ComponentTypeParameter`:return Lk(e,t,n);case`HookDeclaration`:return Wk(e,t,n);case`DeclareHook`:return Gk(e,t,n);case`HookTypeAnnotation`:return qk(e,t,n);case`DeclareFunction`:return[DT(e),`function `,n(`id`),n(`predicate`),t.semi?`;`:``];case`DeclareModule`:return[`declare module `,n(`id`),` `,n(`body`)];case`DeclareModuleExports`:return[`declare module.exports`,YT(e,n),t.semi?`;`:``];case`DeclareNamespace`:return[`declare namespace `,n(`id`),` `,n(`body`)];case`DeclareVariable`:return[DT(e),r.kind??`var`,` `,n(`id`),t.semi?`;`:``];case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:return nk(e,t,n);case`DeclareOpaqueType`:case`OpaqueType`:return cA(e,t,n);case`DeclareTypeAlias`:case`TypeAlias`:return dA(e,t,n);case`IntersectionTypeAnnotation`:return Xk(e,t,n);case`UnionTypeAnnotation`:return UT(e,t,n);case`ConditionalTypeAnnotation`:return Dk(e,t,n);case`InferTypeAnnotation`:return Yk(e,t,n);case`FunctionTypeAnnotation`:return Hk(e,t,n);case`TupleTypeAnnotation`:return $T(e,t,n);case`TupleTypeLabeledElement`:return uA(e,t,n);case`TupleTypeSpreadElement`:return lA(e,t,n);case`GenericTypeAnnotation`:return[n(`id`),pA(e,t,n,`typeParameters`)];case`IndexedAccessType`:case`OptionalIndexedAccessType`:return Jk(e,t,n);case`TypeAnnotation`:return ZT(e,t,n);case`TypeParameter`:return hA(e,t,n);case`TypeofTypeAnnotation`:return _A(e,n);case`ExistsTypeAnnotation`:return`*`;case`ArrayTypeAnnotation`:return kk(n);case`DeclareEnum`:case`EnumDeclaration`:return Vk(e,n);case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumBigIntBody`:case`EnumStringBody`:case`EnumSymbolBody`:return zk(e,t,n);case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumBigIntMember`:case`EnumStringMember`:case`EnumDefaultedMember`:return Bk(e,n);case`FunctionTypeParam`:{let t=r.name?n(`name`):e.parent.this===r?`this`:``;return[t,wT(e),t?`: `:``,n(`typeAnnotation`)]}case`DeclareClass`:case`DeclareInterface`:case`InterfaceDeclaration`:case`InterfaceTypeAnnotation`:return TO(e,t,n);case`ObjectTypeAnnotation`:return mO(e,t,n);case`ClassImplements`:case`InterfaceExtends`:return[n(`id`),n(`typeParameters`)];case`NullableTypeAnnotation`:return[`?`,n(`typeAnnotation`)];case`Variance`:{let{kind:e}=r;return e===`plus`?`+`:`-`}case`KeyofTypeAnnotation`:return[`keyof `,n(`argument`)];case`ObjectTypeCallProperty`:return[r.static?`static `:``,n(`value`),_O(e,t)];case`ObjectTypeMappedTypeProperty`:return Qk(e,t,n);case`ObjectTypeIndexer`:return[r.static?`static `:``,r.variance?n(`variance`):``,`[`,n(`id`),r.id?`: `:``,n(`key`),`]: `,n(`value`),_O(e,t)];case`ObjectTypeProperty`:{let i=``;return r.proto?i=`proto `:r.static&&(i=`static `),[i,r.kind===`init`?``:r.kind+` `,r.variance?n(`variance`):``,XE(e,t,n),wT(e),Hy(r)?``:`: `,n(`value`),_O(e,t)]}case`ObjectTypeInternalSlot`:return[r.static?`static `:``,`[[`,n(`id`),`]]`,wT(e),r.method?``:`: `,n(`value`),_O(e,t)];case`ObjectTypeSpreadProperty`:return gk(e,n);case`QualifiedTypeofIdentifier`:case`QualifiedTypeIdentifier`:return[n(`qualification`),`.`,n(`id`)];case`NullLiteralTypeAnnotation`:return`null`;case`BooleanLiteralTypeAnnotation`:return String(r.value);case`StringLiteralTypeAnnotation`:return YS(Zv(dy(r),t));case`NumberLiteralTypeAnnotation`:return FT(dy(r));case`BigIntLiteralTypeAnnotation`:return WO(dy(r));case`TypeCastExpression`:return[`(`,n(`expression`),YT(e,n),`)`];case`TypePredicate`:return gA(e,n);case`TypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:return pA(e,t,n,`params`);case`InferredPredicate`:case`DeclaredPredicate`:return[e.key===`predicate`&&e.parent.type!==`DeclareFunction`&&!e.parent.returnType?`: `:` `,`%checks`,...r.type===`DeclaredPredicate`?[`(`,n(`value`),`)`]:[]];case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return jk(e,t,n);case`MatchExpression`:case`MatchStatement`:return tA(e,t,n);case`MatchExpressionCase`:case`MatchStatementCase`:return nA(e,t,n);case`MatchOrPattern`:case`MatchAsPattern`:case`MatchWildcardPattern`:case`MatchLiteralPattern`:case`MatchUnaryPattern`:case`MatchIdentifierPattern`:case`MatchMemberPattern`:case`MatchBindingPattern`:case`MatchObjectPattern`:case`MatchObjectPatternProperty`:case`MatchRestPattern`:case`MatchArrayPattern`:return rA(e,t,n)}}function yA(e,t,n){let{node:r}=e,i=r.parameters.length>1?Y(mb(t)?`,`:``):``,a=J([q([Q,X([`, `,Q],e.map(n,`parameters`))]),i,Q]);return[e.key===`body`&&e.parent.type===`ClassBody`&&r.static?`static `:``,r.readonly?`readonly `:``,`[`,r.parameters?a:``,`]`,YT(e,n),_O(e,t)]}function bA(e,t,n){let{node:r}=e;return[r.postfix?``:n,YT(e,t),r.postfix?n:``]}function xA(e,t,n){let{node:r}=e,i=[],a=r.kind&&r.kind!==`method`?`${r.kind} `:``;i.push(jT(r),a,r.computed?`[`:``,n(`key`),r.computed?`]`:``,wT(e));let o=_T(e,t,n,!1,!0),s=YT(e,n,`returnType`),c=bT(r,s);return i.push(c?J(o):o),r.returnType&&i.push(J(s)),[J(i),_O(e,t)]}function SA(e,t,n){let{node:r}=e;return[DT(e),r.kind===`global`?``:`${r.kind} `,n(`id`),r.body?[` `,J(n(`body`))]:t.semi?`;`:``]}function CA(e,t,n){let{node:r}=e,i=!(Dy(r.expression)||Oy(r.expression)),a=J([`<`,q([Q,n(`typeAnnotation`)]),Q,`>`]),o=[Y(`(`),q([Q,n(`expression`)]),Q,Y(`)`)];return i?dC([[a,n(`expression`)],[a,J(o,{shouldBreak:!0})],[a,n(`expression`)]]):J([a,n(`expression`)])}function wA(e,t,n){let{node:r}=e;if(r.type.startsWith(`TS`)){if(yy(r))return r.type.slice(2,-7).toLowerCase();switch(r.type){case`TSThisType`:return`this`;case`TSTypeAssertion`:return CA(e,t,n);case`TSDeclareFunction`:return $E(e,t,n);case`TSExportAssignment`:return[`export = `,n(`expression`),t.semi?`;`:``];case`TSModuleBlock`:return uO(e,t,n);case`TSInterfaceBody`:case`TSTypeLiteral`:return mO(e,t,n);case`TSTypeAliasDeclaration`:return dA(e,t,n);case`TSQualifiedName`:return[n(`left`),`.`,n(`right`)];case`TSAbstractMethodDefinition`:case`TSDeclareMethod`:return NO(e,t,n);case`TSAbstractAccessorProperty`:case`TSAbstractPropertyDefinition`:return PO(e,t,n);case`TSInterfaceHeritage`:case`TSClassImplements`:case`TSInstantiationExpression`:return[n(`expression`),n(`typeArguments`)];case`TSTemplateLiteralType`:return VC(e,t,n);case`TSNamedTupleMember`:return uA(e,t,n);case`TSRestType`:return lA(e,t,n);case`TSOptionalType`:return[n(`typeAnnotation`),`?`];case`TSInterfaceDeclaration`:return TO(e,t,n);case`TSTypeParameterDeclaration`:case`TSTypeParameterInstantiation`:return pA(e,t,n,`params`);case`TSTypeParameter`:return hA(e,t,n);case`TSAsExpression`:case`TSSatisfiesExpression`:return jk(e,t,n);case`TSArrayType`:return kk(n);case`TSPropertySignature`:return[r.readonly?`readonly `:``,XE(e,t,n),wT(e),YT(e,n),_O(e,t)];case`TSParameterProperty`:return[jT(r),r.static?`static `:``,r.override?`override `:``,r.readonly?`readonly `:``,n(`parameter`)];case`TSTypeQuery`:return _A(e,n);case`TSIndexSignature`:return yA(e,t,n);case`TSTypePredicate`:return gA(e,n);case`TSNonNullExpression`:return[n(`expression`),`!`];case`TSImportType`:return[SE(e,t,n),r.qualifier?[`.`,n(`qualifier`)]:``,pA(e,t,n,`typeArguments`)];case`TSLiteralType`:return n(`literal`);case`TSIndexedAccessType`:return Jk(e,t,n);case`TSTypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TSMappedType`:return eA(e,t,n);case`TSMethodSignature`:return xA(e,t,n);case`TSNamespaceExportDeclaration`:return[`export as namespace `,n(`id`),t.semi?`;`:``];case`TSEnumDeclaration`:return Vk(e,n);case`TSEnumBody`:return Rk(e,t,n);case`TSEnumMember`:return Bk(e,n);case`TSImportEqualsDeclaration`:return[`import `,ok(r,!1),n(`id`),` = `,n(`moduleReference`),t.semi?`;`:``];case`TSExternalModuleReference`:return SE(e,t,n);case`TSModuleDeclaration`:return SA(e,t,n);case`TSConditionalType`:return Dk(e,t,n);case`TSInferType`:return Yk(e,t,n);case`TSIntersectionType`:return Xk(e,t,n);case`TSUnionType`:return UT(e,t,n);case`TSFunctionType`:case`TSCallSignatureDeclaration`:case`TSConstructorType`:case`TSConstructSignatureDeclaration`:return Hk(e,t,n);case`TSTupleType`:return $T(e,t,n);case`TSTypeReference`:return[n(`typeName`),pA(e,t,n,`typeArguments`)];case`TSTypeAnnotation`:return ZT(e,t,n);case`TSEmptyBodyFunctionExpression`:return tD(e,t,n);case`TSJSDocAllType`:return`*`;case`TSJSDocUnknownType`:return`?`;case`TSJSDocNullableType`:return bA(e,n,`?`);case`TSJSDocNonNullableType`:return bA(e,n,`!`);default:throw new hD(r,`TypeScript`)}}}function TA(e,t,n,r){for(let i of[UD,ID,vA,wA,Ok]){let a=i(e,t,n,r);if(a!==void 0)return a}}var EA=W([`ClassMethod`,`ClassPrivateMethod`,`ClassProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`ClassPrivateProperty`,`MethodDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`]);function DA(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:i}=e,a=HD(e)?t.originalText.slice(V(i),H(i)):TA(e,t,n,r);if(!a)return``;if(EA(i))return a;let o=zv(i.decorators),s=XD(e,t,n),c=i.type===`ClassExpression`;if(o&&!c)return QS(a,e=>J([s,e]));let l=oT(e,t),u=lD(e,t);return!s&&!l&&!u?a:QS(a,e=>[u?`;`:``,l?`(`:``,l&&c&&o?[q([Z,s,e]),Z]:[s,e],l?`)`:``])}var OA=DA,kA={experimental_avoidAstMutation:!0},AA=[{name:`JSON.stringify`,type:`data`,aceMode:`json`,extensions:[`.importmap`],filenames:[`package.json`,`package-lock.json`,`composer.json`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json-stringify`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON`,type:`data`,aceMode:`json`,extensions:[`.json`,`.4DForm`,`.4DProject`,`.avsc`,`.geojson`,`.gltf`,`.har`,`.ice`,`.JSON-tmLanguage`,`.json.example`,`.mcmeta`,`.sarif`,`.tact`,`.tfstate`,`.tfstate.backup`,`.topojson`,`.webapp`,`.webmanifest`,`.yy`,`.yyp`],filenames:[`.all-contributorsrc`,`.arcconfig`,`.auto-changelog`,`.c8rc`,`.htmlhintrc`,`.imgbotconfig`,`.nycrc`,`.tern-config`,`.tern-project`,`.watchmanconfig`,`.babelrc`,`.jscsrc`,`.jshintrc`,`.jslintrc`,`.swcrc`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON with Comments`,type:`data`,aceMode:`javascript`,extensions:[`.jsonc`,`.code-snippets`,`.code-workspace`,`.sublime-build`,`.sublime-color-scheme`,`.sublime-commands`,`.sublime-completions`,`.sublime-keymap`,`.sublime-macro`,`.sublime-menu`,`.sublime-mousemap`,`.sublime-project`,`.sublime-settings`,`.sublime-theme`,`.sublime-workspace`,`.sublime_metrics`,`.sublime_session`],filenames:[],tmScope:`source.json.comments`,aliases:[`jsonc`],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,group:`JSON`,parsers:[`jsonc`],vscodeLanguageIds:[`jsonc`],linguistLanguageId:423},{name:`JSON5`,type:`data`,aceMode:`json5`,extensions:[`.json5`],tmScope:`source.js`,codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json5`],vscodeLanguageIds:[`json5`],linguistLanguageId:175}],jA={};tv(jA,{getVisitorKeys:()=>NA,massageAstNode:()=>LA,print:()=>PA});var MA=[[]],NA=sy({JsonRoot:[`node`],ArrayExpression:[`elements`],ObjectExpression:[`properties`],ObjectProperty:[`key`,`value`],UnaryExpression:[`argument`],NullLiteral:MA[0],BooleanLiteral:MA[0],StringLiteral:MA[0],NumericLiteral:MA[0],Identifier:MA[0],TemplateLiteral:[`quasis`],TemplateElement:MA[0]});function PA(e,t,n){let{node:r}=e;switch(r.type){case`JsonRoot`:return[n(`node`),$];case`ArrayExpression`:{if(r.elements.length===0)return`[]`;let t=e.map(()=>e.node===null?`null`:n(),`elements`);return[`[`,q([$,X([`,`,$],t)]),$,`]`]}case`ObjectExpression`:return r.properties.length===0?`{}`:[`{`,q([$,X([`,`,$],e.map(n,`properties`))]),$,`}`];case`ObjectProperty`:return[n(`key`),`: `,n(`value`)];case`UnaryExpression`:return[r.operator===`+`?``:r.operator,n(`argument`)];case`NullLiteral`:return`null`;case`BooleanLiteral`:return r.value?`true`:`false`;case`StringLiteral`:return JSON.stringify(r.value);case`NumericLiteral`:return FA(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case`Identifier`:return FA(e)?JSON.stringify(r.name):r.name;case`TemplateLiteral`:return n([`quasis`,0]);case`TemplateElement`:return JSON.stringify(r.value.cooked);default:throw new hD(r,`JSON`)}}function FA(e){return e.key===`key`&&e.parent.type===`ObjectProperty`}var IA=new Set([`start`,`end`,`extra`,`loc`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`errors`,`range`,`tokens`]);function LA(e,t){let{type:n}=e;if(n===`ObjectProperty`){let{key:n}=e;n.type===`Identifier`?t.key={type:`StringLiteral`,value:n.name}:n.type===`NumericLiteral`&&(t.key={type:`StringLiteral`,value:String(n.value)});return}if(n===`UnaryExpression`&&e.operator===`+`)return t.argument;if(n===`ArrayExpression`){for(let[n,r]of e.elements.entries())r===null&&t.elements.splice(n,0,{type:`NullLiteral`});return}if(n===`TemplateLiteral`)return{type:`StringLiteral`,value:e.quasis[0].value.cooked}}LA.ignoredProperties=IA;var RA={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.`}},zA=`JavaScript`,BA={arrowParens:{category:zA,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:RA.bracketSameLine,objectWrap:RA.objectWrap,bracketSpacing:RA.bracketSpacing,jsxBracketSameLine:{category:zA,type:`boolean`,description:`Put > on the last line instead of at a new line.`,deprecated:`2.4.0`},semi:{category:zA,type:`boolean`,default:!0,description:`Print semicolons.`,oppositeDescription:`Do not print semicolons, except at the beginning of lines which may need them.`},experimentalOperatorPosition:{category:zA,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:zA,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:RA.singleQuote,jsxSingleQuote:{category:zA,type:`boolean`,default:!1,description:`Use single quotes in JSX.`},quoteProps:{category:zA,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:zA,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:RA.singleAttributePerLine},VA={estree:iv,"estree-json":jA},HA=[...rv,...AA],UA=Object.create,WA=Object.defineProperty,GA=Object.getOwnPropertyDescriptor,KA=Object.getOwnPropertyNames,qA=Object.getPrototypeOf,JA=Object.prototype.hasOwnProperty,YA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),XA=(e,t)=>{for(var n in t)WA(e,n,{get:t[n],enumerable:!0})},ZA=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of KA(t))!JA.call(e,i)&&i!==n&&WA(e,i,{get:()=>t[i],enumerable:!(r=GA(t,i))||r.enumerable});return e},QA=(e,t,n)=>(n=e==null?{}:UA(qA(e)),ZA(t||!e||!e.__esModule?WA(n,`default`,{value:e,enumerable:!0}):n,e)),$A=YA((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,h,g,_,v,y,b;p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,n=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,g=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,_=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,b=/[\t\v\f\ufeff\p{Zs}]+/uy,l=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,r=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,a=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,o=/[^<>{}]+/y,y=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,d=RegExp(l.source),t.exports=function*(e,{jsx:t=!1}={}){var x,S,C,w,T,ee,E,te,D,ne,re,O,ie,ae;for({length:ee}=e,w=0,T=``,ae=[{tag:`JS`}],x=[],re=0,O=!1;w<ee;){switch(te=ae[ae.length-1],te.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(e[w]===`/`&&(y.test(T)||s.test(T))&&(m.lastIndex=w,E=m.exec(e))){w=m.lastIndex,T=E[0],O=!0,yield{type:`RegularExpressionLiteral`,value:E[0],closed:E[1]!==void 0&&E[1]!==`\\`};continue}if(p.lastIndex=w,E=p.exec(e)){switch(ie=E[0],D=p.lastIndex,ne=ie,ie){case`(`:T===`?NonExpressionParenKeyword`&&ae.push({tag:`JSNonExpressionParen`,nesting:re}),re++,O=!1;break;case`)`:re--,O=!0,te.tag===`JSNonExpressionParen`&&re===te.nesting&&(ae.pop(),ne=`?NonExpressionParenEnd`,O=!1);break;case`{`:p.lastIndex=0,C=!v.test(T)&&(y.test(T)||s.test(T)),x.push(C),O=!1;break;case`}`:switch(te.tag){case`InterpolationInTemplate`:if(x.length===te.nesting){_.lastIndex=w,E=_.exec(e),w=_.lastIndex,T=E[0],E[1]==="${"?(T=`?InterpolationInTemplate`,O=!1,yield{type:`TemplateMiddle`,value:E[0]}):(ae.pop(),O=!0,yield{type:`TemplateTail`,value:E[0],closed:E[1]==="`"});continue}break;case`InterpolationInJSX`:if(x.length===te.nesting){ae.pop(),w+=1,T=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}O=x.pop(),ne=O?`?ExpressionBraceEnd`:`}`;break;case`]`:O=!0;break;case`++`:case`--`:ne=O?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(t&&(y.test(T)||s.test(T))){ae.push({tag:`JSXTag`}),w+=1,T=`<`,yield{type:`JSXPunctuator`,value:ie};continue}O=!1;break;default:O=!1}w=D,T=ne,yield{type:`Punctuator`,value:ie};continue}if(n.lastIndex=w,E=n.exec(e)){switch(w=n.lastIndex,ne=E[0],E[0]){case`for`:case`if`:case`while`:case`with`:T!==`.`&&T!==`?.`&&(ne=`?NonExpressionParenKeyword`)}T=ne,O=!s.test(E[0]),yield{type:E[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:E[0]};continue}if(g.lastIndex=w,E=g.exec(e)){w=g.lastIndex,T=E[0],O=!0,yield{type:`StringLiteral`,value:E[0],closed:E[2]!==void 0};continue}if(f.lastIndex=w,E=f.exec(e)){w=f.lastIndex,T=E[0],O=!0,yield{type:`NumericLiteral`,value:E[0]};continue}if(_.lastIndex=w,E=_.exec(e)){w=_.lastIndex,T=E[0],E[1]==="${"?(T=`?InterpolationInTemplate`,ae.push({tag:`InterpolationInTemplate`,nesting:x.length}),O=!1,yield{type:`TemplateHead`,value:E[0]}):(O=!0,yield{type:`NoSubstitutionTemplate`,value:E[0],closed:E[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(i.lastIndex=w,E=i.exec(e)){switch(w=i.lastIndex,ne=E[0],E[0]){case`<`:ae.push({tag:`JSXTag`});break;case`>`:ae.pop(),T===`/`||te.tag===`JSXTagEnd`?(ne=`?JSX`,O=!0):ae.push({tag:`JSXChildren`});break;case`{`:ae.push({tag:`InterpolationInJSX`,nesting:x.length}),ne=`?InterpolationInJSX`,O=!1;break;case`/`:T===`<`&&(ae.pop(),ae[ae.length-1].tag===`JSXChildren`&&ae.pop(),ae.push({tag:`JSXTagEnd`}))}T=ne,yield{type:`JSXPunctuator`,value:E[0]};continue}if(r.lastIndex=w,E=r.exec(e)){w=r.lastIndex,T=E[0],yield{type:`JSXIdentifier`,value:E[0]};continue}if(a.lastIndex=w,E=a.exec(e)){w=a.lastIndex,T=E[0],yield{type:`JSXString`,value:E[0],closed:E[2]!==void 0};continue}break;case`JSXChildren`:if(o.lastIndex=w,E=o.exec(e)){w=o.lastIndex,T=E[0],yield{type:`JSXText`,value:E[0]};continue}switch(e[w]){case`<`:ae.push({tag:`JSXTag`}),w++,T=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:ae.push({tag:`InterpolationInJSX`,nesting:x.length}),w++,T=`?InterpolationInJSX`,O=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(b.lastIndex=w,E=b.exec(e)){w=b.lastIndex,yield{type:`WhiteSpace`,value:E[0]};continue}if(l.lastIndex=w,E=l.exec(e)){w=l.lastIndex,O=!1,c.test(T)&&(T=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:E[0]};continue}if(u.lastIndex=w,E=u.exec(e)){w=u.lastIndex,d.test(E[0])&&(O=!1,c.test(T)&&(T=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:E[0],closed:E[1]!==void 0};continue}if(h.lastIndex=w,E=h.exec(e)){w=h.lastIndex,O=!1,yield{type:`SingleLineComment`,value:E[0]};continue}S=String.fromCodePoint(e.codePointAt(w)),w+=S.length,T=S,O=!1,yield{type:te.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:S}}}});XA({},{__debug:()=>IL,check:()=>PL,doc:()=>qI,format:()=>NL,formatWithCursor:()=>ML,getSupportInfo:()=>FL,util:()=>QI,version:()=>ZI});var ej=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),tj=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},nj=ej(`replaceAll`,function(){if(typeof this==`string`)return tj}),rj=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},ij=new class extends rj{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function aj(e,t,n){return ij.diff(e,t,n)}var oj=()=>{},sj=`cr`,cj=`crlf`,lj=`lf`,uj=`\r`,dj=`\r
346
- `,fj=`
347
- `,pj=fj;function mj(e){let t=e.indexOf(uj);return t===-1?lj:e.charAt(t+1)===fj?cj:sj}function hj(e){return e===sj?uj:e===cj?dj:pj}var gj=new Map([[fj,/\n/gu],[uj,/\r/gu],[dj,/\r\n/gu]]);function _j(e,t){let n=gj.get(t);return e.match(n)?.length??0}var vj=/\r\n?/gu;function yj(e){return nj(0,e,vj,fj)}function bj(e){return this[e<0?this.length+e:e]}var xj=ej(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return bj}),Sj=`string`,Cj=`array`,wj=`cursor`,Tj=`indent`,Ej=`align`,Dj=`trim`,Oj=`group`,kj=`fill`,Aj=`if-break`,jj=`indent-if-break`,Mj=`line-suffix`,Nj=`line-suffix-boundary`,Pj=`line`,Fj=`label`,Ij=`break-parent`,Lj=new Set([wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij]);function Rj(e){let t=e.length;for(;t>0&&(e[t-1]===`\r`||e[t-1]===`
348
- `);)t--;return t<e.length?e.slice(0,t):e}function zj(e){if(typeof e==`string`)return Sj;if(Array.isArray(e))return Cj;if(!e)return;let{type:t}=e;if(Lj.has(t))return t}var Bj=zj,Vj=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Hj(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
349
- Expected it to be 'string' or 'object'.`;if(Bj(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Vj([...Lj].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
350
- Expected it to be ${r}.`}var Uj=class extends Error{name=`InvalidDocError`;constructor(e){super(Hj(e)),this.doc=e}},Wj={};function Gj(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===Wj){n(i.pop());continue}n&&i.push(e,Wj);let a=Bj(e);if(!a)throw new Uj(e);if(t?.(e)!==!1)switch(a){case Cj:case kj:{let t=a===Cj?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Aj:i.push(e.flatContents,e.breakContents);break;case Oj: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 Ej:case Tj:case jj:case Fj:case Mj:i.push(e.contents);break;case Sj:case wj:case Dj:case Nj:case Pj:case Ij:break;default:throw new Uj(e)}}}var Kj=Gj;function qj(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(Bj(e)){case Cj:return t(e.map(r));case kj:return t({...e,parts:e.parts.map(r)});case Aj:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case Oj:{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 Ej:case Tj:case jj:case Fj:case Mj:return t({...e,contents:r(e.contents)});case Sj:case wj:case Dj:case Nj:case Pj:case Ij:return t(e);default:throw new Uj(e)}}}function Jj(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 Kj(e,a),r}function Yj(e){if(e.type===Oj&&e.break||e.type===Pj&&e.hard||e.type===Ij)return!0}function Xj(e){return Jj(e,Yj,!1)}function Zj(e){if(e.length>0){let t=xj(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function Qj(e){let t=new Set,n=[];function r(e){if(e.type===Ij&&Zj(n),e.type===Oj){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===Oj&&n.pop().break&&Zj(n)}Kj(e,r,i,!0)}function $j(e){return e.type===Pj&&!e.hard?e.soft?``:` `:e.type===Aj?e.flatContents:e}function eM(e){return qj(e,$j)}function tM(e){for(e=[...e];e.length>=2&&xj(0,e,-2).type===Pj&&xj(0,e,-1).type===Ij;)e.length-=2;if(e.length>0){let t=nM(xj(0,e,-1));e[e.length-1]=t}return e}function nM(e){switch(Bj(e)){case Tj:case jj:case Oj:case Mj:case Fj:{let t=nM(e.contents);return{...e,contents:t}}case Aj:return{...e,breakContents:nM(e.breakContents),flatContents:nM(e.flatContents)};case kj:return{...e,parts:tM(e.parts)};case Cj:return tM(e);case Sj:return Rj(e);case Ej:case wj:case Dj:case Nj:case Pj:case Ij:break;default:throw new Uj(e)}return e}function rM(e){return nM(aM(e))}function iM(e){switch(Bj(e)){case kj:if(e.parts.every(e=>e===``))return``;break;case Oj:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===Oj&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ej:case Tj:case jj:case Mj:if(!e.contents)return``;break;case Aj:if(!e.flatContents&&!e.breakContents)return``;break;case Cj:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof xj(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 Sj:case wj:case Dj:case Nj:case Pj:case Fj:case Ij:break;default:throw new Uj(e)}return e}function aM(e){return qj(e,e=>iM(e))}function oM(e,t=PM){return qj(e,e=>typeof e==`string`?DM(t,e.split(`
351
- `)):e)}function sM(e){if(e.type===Pj)return!0}function cM(e){return Jj(e,sM,!1)}function lM(e,t){return e.type===Fj?{...e,contents:t(e.contents)}:t(e)}var uM=oj,dM=oj,fM=oj,pM=oj;function mM(e){return uM(e),{type:Tj,contents:e}}function hM(e,t){return pM(e),uM(t),{type:Ej,contents:t,n:e}}function gM(e){return hM(-1/0,e)}function _M(e){return hM({type:`root`},e)}function vM(e){return hM(-1,e)}function yM(e,t,n){uM(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=mM(r);r=hM(t%n,r),r=hM(-1/0,r)}return r}var bM={type:Ij},xM={type:wj};function SM(e){return fM(e),{type:kj,parts:e}}function CM(e,t={}){return uM(e),dM(t.expandedStates,!0),{type:Oj,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function wM(e,t){return CM(e[0],{...t,expandedStates:e})}function TM(e,t=``,n={}){return uM(e),t!==``&&uM(t),{type:Aj,breakContents:e,flatContents:t,groupId:n.groupId}}function EM(e,t){return uM(e),{type:jj,contents:e,groupId:t.groupId,negate:t.negate}}function DM(e,t){uM(e),dM(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function OM(e,t){return uM(t),e?{type:Fj,label:e,contents:t}:t}var kM={type:Pj},AM={type:Pj,soft:!0},jM={type:Pj,hard:!0},MM=[jM,bM],NM={type:Pj,hard:!0,literal:!0},PM=[NM,bM];function FM(e){return uM(e),{type:Mj,contents:e}}var IM={type:Nj},LM={type:Dj};function RM(e){if(!e)return``;if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...RM(n));else{let e=RM(n);e!==``&&t.push(e)}return t}return e.type===Aj?{...e,breakContents:RM(e.breakContents),flatContents:RM(e.flatContents)}:e.type===Oj?{...e,contents:RM(e.contents),expandedStates:e.expandedStates?.map(RM)}:e.type===kj?{type:`fill`,parts:e.parts.map(RM)}:e.contents?{...e,contents:RM(e.contents)}:e}function zM(e){let t=Object.create(null),n=new Set;return r(RM(e));function r(e,t,n){if(typeof e==`string`)return JSON.stringify(e);if(Array.isArray(e)){let t=e.map(r).filter(Boolean);return t.length===1?t[0]:`[${t.join(`, `)}]`}if(e.type===Pj){let r=n?.[t+1]?.type===Ij;return e.literal?r?`literalline`:`literallineWithoutBreakParent`:e.hard?r?`hardline`:`hardlineWithoutBreakParent`:e.soft?`softline`:`line`}if(e.type===Ij)return n?.[t-1]?.type===Pj&&n[t-1].hard?void 0:`breakParent`;if(e.type===Dj)return`trim`;if(e.type===Tj)return`indent(`+r(e.contents)+`)`;if(e.type===Ej)return e.n===-1/0?`dedentToRoot(`+r(e.contents)+`)`:e.n<0?`dedent(`+r(e.contents)+`)`:e.n.type===`root`?`markAsRoot(`+r(e.contents)+`)`:`align(`+JSON.stringify(e.n)+`, `+r(e.contents)+`)`;if(e.type===Aj)return`ifBreak(`+r(e.breakContents)+(e.flatContents?`, `+r(e.flatContents):``)+(e.groupId?(e.flatContents?``:`, ""`)+`, { groupId: ${i(e.groupId)} }`:``)+`)`;if(e.type===jj){let t=[];e.negate&&t.push(`negate: true`),e.groupId&&t.push(`groupId: ${i(e.groupId)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return`indentIfBreak(${r(e.contents)}${n})`}if(e.type===Oj){let t=[];e.break&&e.break!==`propagated`&&t.push(`shouldBreak: true`),e.id&&t.push(`id: ${i(e.id)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return e.expandedStates?`conditionalGroup([${e.expandedStates.map(e=>r(e)).join(`,`)}]${n})`:`group(${r(e.contents)}${n})`}if(e.type===kj)return`fill([${e.parts.map(e=>r(e)).join(`, `)}])`;if(e.type===Mj)return`lineSuffix(`+r(e.contents)+`)`;if(e.type===Nj)return`lineSuffixBoundary`;if(e.type===Fj)return`label(${JSON.stringify(e.label)}, ${r(e.contents)})`;if(e.type===wj)return`cursor`;throw Error(`Unknown doc type `+e.type)}function i(e){if(typeof e!=`symbol`)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||`symbol`;for(let i=0;;i++){let a=r+(i>0?` #${i}`:``);if(!n.has(a))return n.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}var BM=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function VM(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function HM(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var UM=`©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇`,WM=/[^\x20-\x7F]/u,GM=new Set(UM);function KM(e){if(!e)return 0;if(!WM.test(e))return e.length;e=e.replace(BM(),e=>GM.has(e)?` `:` `);let t=0;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+=VM(e)||HM(e)?2:1)}return t}var qM=KM,JM={type:0},YM={type:1},XM={value:``,length:0,queue:[],get root(){return XM}};function ZM(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 QM(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?YM:{type:2,width:t}:{type:3,string:t},ZM(e,r,n)}function $M(e,t){return ZM(e,JM,t)}function eN(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 tN(e){let t=eN(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var nN=Symbol(`MODE_BREAK`),rN=Symbol(`MODE_FLAT`),iN=Symbol(`DOC_FILL_PRINTED_LENGTH`);function aN(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(),d=Bj(u);switch(d){case Sj:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=qM(u));break;case Cj:case kj:{let t=d===Cj?u:u.parts,n=u[iN]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case Tj:case Ej:case jj:case Fj:c.push({mode:e,doc:u.contents});break;case Dj:{let{text:e,count:t}=tN(l);l=e,n+=t;break}case Oj:{if(a&&u.break)return!1;let t=u.break?nN:e,n=u.expandedStates&&t===nN?xj(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case Aj:{let t=(u.groupId?i[u.groupId]||rN:e)===nN?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case Pj:if(e===nN||u.hard)return!0;u.soft||(s=!0);break;case Mj:r=!0;break;case Nj:if(r)return!1}}return!1}function oN(e,t){let n=Object.create(null),r=t.printWidth,i=hj(t.endOfLine),a=0,o=[{indent:XM,mode:nN,doc:e}],s=``,c=!1,l=[],u=[],d=[],f=[],p=0;for(Qj(e);o.length>0;){let{indent:e,mode:d,doc:f}=o.pop();switch(Bj(f)){case Sj:{let e=i===`
352
- `?f:nj(0,f,`
353
- `,i);e&&(s+=e,o.length>0&&(a+=qM(e)));break}case Cj:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:d,doc:f[t]});break;case wj:if(u.length>=2)throw Error(`There are too many 'cursor' in doc.`);u.push(p+s.length);break;case Tj:o.push({indent:$M(e,t),mode:d,doc:f.contents});break;case Ej:o.push({indent:QM(e,f.n,t),mode:d,doc:f.contents});break;case Dj:_();break;case Oj:switch(d){case rN:if(!c){o.push({indent:e,mode:f.break?nN:rN,doc:f.contents});break}case nN:{c=!1;let t={indent:e,mode:rN,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&aN(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=xj(0,f.expandedStates,-1);if(f.break){o.push({indent:e,mode:nN,doc:t});break}for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({indent:e,mode:nN,doc:t});break}else{let t={indent:e,mode:rN,doc:f.expandedStates[r]};if(aN(t,o,i,s,n)){o.push(t);break}}}else o.push({indent:e,mode:nN,doc:f.contents});break}}f.id&&(n[f.id]=xj(0,o,-1).mode);break;case kj:{let t=r-a,i=f[iN]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={indent:e,mode:rN,doc:u},h={indent:e,mode:nN,doc:u},g=aN(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:rN,doc:p},v={indent:e,mode:nN,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={indent:e,mode:d,doc:{...f,[iN]:i+2}},x=aN({indent:e,mode:rN,doc:[u,p,y]},[],t,l.length>0,n,!0);o.push(b),x?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case Aj:case jj:{let t=f.groupId?n[f.groupId]:d;if(t===nN){let t=f.type===Aj?f.breakContents:f.negate?f.contents:mM(f.contents);t&&o.push({indent:e,mode:d,doc:t})}if(t===rN){let t=f.type===Aj?f.flatContents:f.negate?mM(f.contents):f.contents;t&&o.push({indent:e,mode:d,doc:t})}break}case Mj:l.push({indent:e,mode:d,doc:f.contents});break;case Nj:l.length>0&&o.push({indent:e,mode:d,doc:jM});break;case Pj:switch(d){case rN:if(f.hard)c=!0;else{f.soft||(s+=` `,a+=1);break}case nN:if(l.length>0){o.push({indent:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?(s+=i,a=0,e.root&&(e.root.value&&(s+=e.root.value),a=e.root.length)):(_(),s+=i+e.value,a=e.length)}break;case Fj:o.push({indent:e,mode:d,doc:f.contents});break;case Ij:break;default:throw new Uj(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let m=d.join(``)+s,h=[...f,...u];if(h.length!==2)return{formatted:m};let g=h[0];return{formatted:m,cursorNodeStart:g,cursorNodeText:m.slice(g,xj(0,h,-1))};function _(){let{text:e,count:t}=tN(s);e&&(d.push(e),p+=e.length),s=``,a-=t,u.length>0&&(f.push(...u.map(e=>Math.min(e,p))),u.length=0)}}function sN(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 cN=sN,lN=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return xj(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:xj(0,this.stack,-2)}get node(){return xj(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=xj(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:t}=e;return t>1?xj(0,e,-2):null}getValue(){return xj(0,this.stack,-1)}getNode(e=0){let t=this.#e(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1}call(e,...t){let{stack:n}=this,{length:r}=n,i=xj(0,n,-1);for(let e of t)i=i?.[e],n.push(e,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=this.#e(t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=xj(0,n,-1);for(let e of t)i=i[e],n.push(e,i);try{for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((t,r,i)=>{n[r]=e(t,r,i)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let e=null;if(typeof n==`number`&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#t())if(e(t))return t}hasAncestor(e){for(let t of this.#t())if(e(t))return!0;return!1}*#t(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}}};function uN(e){return typeof e==`object`&&!!e}var dN=uN;function fN(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{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 pN=fN(/\s/u),mN=fN(` `),hN=fN(`,; `),gN=fN(/[^\n\r]/u),_N=e=>e===`
354
- `||e===`\r`||e===`\u2028`||e===`\u2029`;function vN(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
355
- `)return t-2;if(_N(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
356
- `)return t+2;if(_N(i))return t+1}return t}var yN=vN;function bN(e,t,n={}){let r=mN(e,n.backwards?t-1:t,n);return r!==yN(e,r,n)}var xN=bN;function SN(e){return Array.isArray(e)&&e.length>0}var CN=SN;function*wN(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>dN(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*TN(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of wN(r,t))yield e,n.push(e)}}function EN(e,t){return wN(e,t).next().done}function DN(e,t,n){let{cache:r}=n;if(r.has(e))return r.get(e);let{filter:i}=n;if(!i)return[];let a,o=(n.getChildren?.(e,n)??[...wN(e,{getVisitorKeys:n.getVisitorKeys})]).flatMap(r=>(a??=[e,...t],i(r,a)?[r]:DN(r,a,n))),{locStart:s,locEnd:c}=n;return o.sort((e,t)=>s(e)-s(t)||c(e)-c(t)),r.set(e,o),o}var ON=DN;function kN(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 AN(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=kN(e)}function jN(e,t){t.leading=!0,t.trailing=!1,AN(e,t)}function MN(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),AN(e,t)}function NN(e,t){t.leading=!1,t.trailing=!0,AN(e,t)}var PN=new WeakMap;function FN(e,t,n,r,i=[]){let{locStart:a,locEnd:o}=n,s=a(t),c=o(t),l=ON(e,i,{cache:PN,locStart:a,locEnd:o,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes}),u,d,f=0,p=l.length;for(;f<p;){let e=f+p>>1,r=l[e],m=a(r),h=o(r);if(m<=s&&c<=h)return FN(r,t,n,r,[r,...i]);if(h<=s){u=r,f=e+1;continue}if(c<=m){d=r,p=e;continue}throw Error(`Comment location overlaps with node location`)}if(r?.type===`TemplateLiteral`){let{quasis:e}=r,i=HN(e,t,n);u&&HN(e,u,n)!==i&&(u=null),d&&HN(e,d,n)!==i&&(d=null)}return{enclosingNode:r,precedingNode:u,followingNode:d}}var IN=()=>!1;function LN(e,t){let{comments:n}=e;if(delete e.comments,!CN(n)||!t.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:a={}},originalText:o}=t,{ownLine:s=IN,endOfLine:c=IN,remaining:l=IN}=a,u=n.map((r,i)=>({...FN(e,r,t),comment:r,text:o,options:t,ast:e,isLastComment:n.length-1===i}));for(let[e,t]of u.entries()){let{comment:n,precedingNode:a,enclosingNode:o,followingNode:d,text:f,options:p,ast:m,isLastComment:h}=t,g;if(i?g=[t]:(n.enclosingNode=o,n.precedingNode=a,n.followingNode=d,g=[n,f,p,m,h]),zN(f,p,u,e))n.placement=`ownLine`,s(...g)||(d?jN(d,n):a?NN(a,n):MN(o||m,n));else if(BN(f,p,u,e))n.placement=`endOfLine`,c(...g)||(a?NN(a,n):d?jN(d,n):MN(o||m,n));else if(n.placement=`remaining`,!l(...g)){if(a&&d){let e=r.length;e>0&&r[e-1].followingNode!==d&&VN(r,p),r.push(t)}else a?NN(a,n):d?jN(d,n):MN(o||m,n)}}if(VN(r,t),!i)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}var RN=e=>!/[\S\n\u2028\u2029]/u.test(e);function zN(e,t,n,r){let{comment:i,precedingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=o(i);if(a)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:i}=n[t];if(i!==a||!RN(e.slice(s(r),c)))break;c=o(r)}return xN(e,c,{backwards:!0})}function BN(e,t,n,r){let{comment:i,followingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=s(i);if(a)for(let t=r+1;t<n.length;t++){let{comment:r,followingNode:i}=n[t];if(i!==a||!RN(e.slice(c,o(r))))break;c=s(r)}return xN(e,c)}function VN(e,t){let n=e.length;if(n===0)return;let{precedingNode:r,followingNode:i}=e[0],a=t.locStart(i),o;for(o=n;o>0;--o){let{comment:n,precedingNode:r,followingNode:i}=e[o-1],s=t.originalText.slice(t.locEnd(n),a);if(t.printer.isGap?.(s,t)??/^[\s(]*$/u.test(s))a=t.locStart(n);else break}for(let[t,{comment:n}]of e.entries())t<o?NN(r,n):jN(i,n);for(let e of[r,i])e.comments&&e.comments.length>1&&e.comments.sort((e,n)=>t.locStart(e)-t.locStart(n));e.length=0}function HN(e,t,n){let r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}function UN(e,t){let n=t-1;n=mN(e,n,{backwards:!0}),n=yN(e,n,{backwards:!0}),n=mN(e,n,{backwards:!0});let r=yN(e,n,{backwards:!0});return n!==r}var WN=UN;function GN(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function KN(e,t){let n=e.node,r=[GN(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.(n)){let e=xN(a,s(n))?xN(a,o(n),{backwards:!0})?MM:kM:` `;r.push(e)}else r.push(MM);let c=yN(a,mN(a,s(n)));return c!==!1&&xN(a,c)&&r.push(MM),r}function qN(e,t,n){let r=e.node,i=GN(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||xN(o,s(r),{backwards:!0})?{doc:FM([MM,WN(o,s(r))?MM:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n?.hasLineSuffix?{doc:[FM([` `,i]),bM],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function JN(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r?.has(n))return;let{leading:s,trailing:c}=n;s?i.push(KN(e,t)):c&&(o=qN(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function YN(e,t,n){let{leading:r,trailing:i}=JN(e,n);return!r&&!i?t:lM(t,e=>[r,e,i])}function XN(e){let{[Symbol.for(`comments`)]:t,[Symbol.for(`printedComments`)]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw Error(`Comment "`+e.value.trim()+`" was not printed. Please report this error!`);delete e.printed}}var ZN=()=>oj,QN=class extends Error{name=`ConfigError`},$N=class extends Error{name=`UndefinedParserError`},eP={checkIgnorePragma:{category:`Special`,type:`boolean`,default:!1,description:`Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.`,cliCategory:`Other`},cursorOffset:{category:`Special`,type:`int`,default:-1,range:{start:-1,end:1/0,step:1},description:`Print (to stderr) where a cursor at the given position would move to after formatting.`,cliCategory:`Editor`},endOfLine:{category:`Global`,type:`choice`,default:`lf`,description:`Which end of line characters to apply.`,choices:[{value:`lf`,description:`Line Feed only (\\n), common on Linux and macOS as well as inside git repos`},{value:`crlf`,description:`Carriage Return + Line Feed characters (\\r\\n), common on Windows`},{value:`cr`,description:`Carriage Return character only (\\r), used very rarely`},{value:`auto`,description:`Maintain existing
357
- (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:`Special`,type:`path`,description:`Specify the input filepath. This will be used to do parser inference.`,cliName:`stdin-filepath`,cliCategory:`Other`,cliDescription:`Path to the file to pretend that stdin comes from.`},insertPragma:{category:`Special`,type:`boolean`,default:!1,description:`Insert @format pragma into file's first docblock comment.`,cliCategory:`Other`},parser:{category:`Global`,type:`choice`,default:void 0,description:`Which parser to use.`,exception:e=>typeof e==`string`||typeof e==`function`,choices:[{value:`flow`,description:`Flow`},{value:`babel`,description:`JavaScript`},{value:`babel-flow`,description:`Flow`},{value:`babel-ts`,description:`TypeScript`},{value:`typescript`,description:`TypeScript`},{value:`acorn`,description:`JavaScript`},{value:`espree`,description:`JavaScript`},{value:`meriyah`,description:`JavaScript`},{value:`css`,description:`CSS`},{value:`less`,description:`Less`},{value:`scss`,description:`SCSS`},{value:`json`,description:`JSON`},{value:`json5`,description:`JSON5`},{value:`jsonc`,description:`JSON with Comments`},{value:`json-stringify`,description:`JSON.stringify`},{value:`graphql`,description:`GraphQL`},{value:`markdown`,description:`Markdown`},{value:`mdx`,description:`MDX`},{value:`vue`,description:`Vue`},{value:`yaml`,description:`YAML`},{value:`glimmer`,description:`Ember / Handlebars`},{value:`html`,description:`HTML`},{value:`angular`,description:`Angular`},{value:`lwc`,description:`Lightning Web Components`},{value:`mjml`,description:`MJML`}]},plugins:{type:`path`,array:!0,default:[{value:[]}],category:`Global`,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e==`string`||typeof e==`object`,cliName:`plugin`,cliCategory:`Config`},printWidth:{category:`Global`,type:`int`,default:80,description:`The line length where Prettier will try wrap.`,range:{start:0,end:1/0,step:1}},rangeEnd:{category:`Special`,type:`int`,default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
358
- The range will extend forwards to the end of the selected statement.`,cliCategory:`Editor`},rangeStart:{category:`Special`,type:`int`,default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
359
- The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:`Editor`},requirePragma:{category:`Special`,type:`boolean`,default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.`,cliCategory:`Other`},tabWidth:{type:`int`,category:`Global`,default:2,description:`Number of spaces per indentation level.`,range:{start:0,end:1/0,step:1}},useTabs:{category:`Global`,type:`boolean`,default:!1,description:`Indent with tabs instead of spaces.`},embeddedLanguageFormatting:{category:`Global`,type:`choice`,default:`auto`,description:`Control how Prettier formats quoted code embedded in the file.`,choices:[{value:`auto`,description:`Format embedded code if Prettier can automatically identify it.`},{value:`off`,description:`Never automatically format embedded code.`}]}};function tP({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(e=>e.languages??[]),r=[];for(let i of rP(Object.assign({},...e.map(({options:e})=>e),eP)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(e=>!e.deprecated)),i.name===`parser`&&(i.choices=[...i.choices,...nP(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(e=>e.defaultOptions?.[i.name]!==void 0).map(e=>[e.name,e.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*nP(e,t,n){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let i=n.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;i?.name&&(a+=` (plugin: ${i.name})`),yield{value:t,description:a}}}}function rP(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=xj(0,e.default,-1).value),t.push(e)}return t}var iP=Array.prototype.toReversed??function(){return[...this].reverse()},aP=ej(`toReversed`,function(){if(Array.isArray(this))return iP});function oP(){let e=globalThis,t=e.Deno?.build?.os;return typeof t==`string`?t===`windows`:e.navigator?.platform?.startsWith(`Win`)??e.process?.platform?.startsWith(`win`)??!1}var sP=oP();function cP(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function lP(e){return e=cP(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function uP(e){e=cP(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function dP(e){return sP?uP(e):lP(e)}var fP=e=>String(e).split(/[/\\]/u).pop(),pP=e=>String(e).startsWith(`file:`);function mP(e,t){if(!t)return;let n=fP(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function hP(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var gP=void 0;function _P(e,t){if(t){if(pP(t))try{t=dP(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function vP(e,t){let n=aP(0,e.plugins).flatMap(e=>e.languages??[]);return(hP(n,t.language)??mP(n,t.physicalFile)??mP(n,t.file)??_P(n,t.physicalFile)??_P(n,t.file)??gP?.(n,t.physicalFile))?.parsers[0]}var yP=vP,bP={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>bP.value(e)).join(`, `)}]`;let t=Object.keys(e);return t.length===0?`{}`:`{ ${t.map(t=>`${bP.key(t)}: ${bP.value(e[t])}`).join(`, `)} }`},pair:({key:e,value:t})=>bP.value({[e]:t})},xP=new Proxy(String,{get:()=>xP}),SP=xP,CP=()=>xP,wP=(e,t,{descriptor:n})=>{let r=[`${SP.yellow(typeof e==`string`?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${SP.blue(typeof t==`string`?n.key(t):n.pair(t))}`),r.join(`; `)+`.`},TP=Symbol.for(`vnopts.VALUE_NOT_EXIST`),EP=Symbol.for(`vnopts.VALUE_UNCHANGED`),DP=` `.repeat(2),OP=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),a=[];return r&&a.push(kP(e,t,r,n.descriptor)),i&&a.push([kP(e,t,i.title,n.descriptor)].concat(i.values.map(e=>AP(e,n.loggerPrintWidth))).join(`
360
- `)),jP(a,n.loggerPrintWidth)};function kP(e,t,n,r){return[`Invalid ${SP.red(r.key(e))} value.`,`Expected ${SP.blue(n)},`,`but received ${t===TP?SP.gray(`nothing`):SP.red(r.value(t))}.`].join(` `)}function AP({text:e,list:t},n){let r=[];return e&&r.push(`- ${SP.blue(e)}`),t&&r.push([`- ${SP.blue(t.title)}:`].concat(t.values.map(e=>AP(e,n-DP.length).replace(/^|\n/g,`$&${DP}`))).join(`
361
- `)),jP(r,n)}function jP(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,a]=e.map(e=>e.split(`
362
- `,1)[0].length);return i>t&&i>a?r:n}var MP=[],NP=[];function PP(e,t,n){if(e===t)return 0;let r=n?.maxDistance,i=e;e.length>t.length&&(e=t,t=i);let a=e.length,o=t.length;for(;a>0&&e.charCodeAt(~-a)===t.charCodeAt(~-o);)a--,o--;let s=0;for(;s<a&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(a-=s,o-=s,r!==void 0&&o-a>r)return r;if(a===0)return r!==void 0&&o>r?r:o;let c,l,u,d,f=0,p=0;for(;f<a;)NP[f]=e.charCodeAt(s+f),MP[f]=++f;for(;p<o;){for(c=t.charCodeAt(s+p),u=p++,l=p,f=0;f<a;f++)d=c===NP[f]?u:u+1,u=MP[f],l=MP[f]=u>l?d>l?l+1:d:d>u?u+1:d;if(r!==void 0){let e=l;for(f=0;f<a;f++)MP[f]<e&&(e=MP[f]);if(e>r)return r}}return MP.length=a,NP.length=a,r!==void 0&&l>r?r:l}function FP(e,t,n){if(!Array.isArray(t)||t.length===0)return;let r=n?.maxDistance,i=e.length;for(let n of t)if(n===e)return n;if(r===0)return;let a,o=1/0,s=new Set;for(let n of t){if(s.has(n))continue;s.add(n);let t=Math.abs(n.length-i);if(t>=o||r!==void 0&&t>r)continue;let c=Number.isFinite(o)?r===void 0?o:Math.min(o,r):r,l=c===void 0?PP(e,n):PP(e,n,{maxDistance:c});if(r!==void 0&&l>r)continue;let u=l;if(c!==void 0&&l===c&&c===r&&(u=PP(e,n)),u<o&&(o=u,a=n,o===0))break}if(!(r!==void 0&&o>r))return a}var IP=(e,t,{descriptor:n,logger:r,schemas:i})=>{let a=[`Ignored unknown option ${SP.yellow(n.pair({key:e,value:t}))}.`],o=FP(e,Object.keys(i),{maxDistance:3});o&&a.push(`Did you mean ${SP.blue(n.key(o))}?`),r.warn(a.join(` `))},LP=[`default`,`expected`,`validate`,`deprecated`,`forward`,`redirect`,`overlap`,`preprocess`,`postprocess`];function RP(e,t){let n=new e(t),r=Object.create(n);for(let e of LP)e in t&&(r[e]=BP(t[e],n,zP.prototype[e].length));return r}var zP=class{static create(e){return RP(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return`nothing`}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return EP}};function BP(e,t,n){return typeof e==`function`?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var VP=class extends zP{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},HP=class extends zP{expected(){return`anything`}validate(){return!0}},UP=class extends zP{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:`an array of the following values`,values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);e!==!0&&n.push(e.value)}return n.length===0||{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);e!==!1&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(WP))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);`remain`in e&&n.push(e.remain),r.push(...e.redirect.map(WP))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function WP({from:e,to:t}){return{from:[e],to:t}}var GP=class extends zP{expected(){return`true or false`}validate(e){return typeof e==`boolean`}};function KP(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function qP(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}function JP(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function YP(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function XP(e){return e===Math.floor(e)}function ZP(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=[`undefined`,`object`,`boolean`,`number`,`string`];return n===r?n===`string`?e.localeCompare(t):Number(e)-Number(t):i.indexOf(n)-i.indexOf(r)}function QP(e){return(...t)=>{let n=e(...t);return typeof n==`string`?Error(n):n}}function $P(e){return e===void 0?{}:e}function eF(e){if(typeof e==`string`)return{text:e};let{text:t,list:n}=e;return oF((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(eF)}}:{text:t}}function tF(e,t){return e===!0?!0:e===!1?{value:t}:e}function nF(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:`value`in e?[e]:e.length!==0&&e}function rF(e,t){return typeof e==`string`||`key`in e?{from:t,to:e}:`from`in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function iF(e,t){return e===void 0?[]:Array.isArray(e)?e.map(e=>rF(e,t)):[rF(e,t)]}function aF(e,t){let n=iF(typeof e==`object`&&`redirect`in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e==`object`&&`remain`in e?{remain:e.remain,redirect:n}:{redirect:n}}function oF(e,t){if(!e)throw Error(t)}var sF=class extends zP{constructor(e){super(e),this._choices=qP(e.choices.map(e=>e&&typeof e==`object`?e:{value:e}),`value`)}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(ZP).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(` or `)).join(`, `),list:{title:`one of the following values`,values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},cF=class extends zP{expected(){return`a number`}validate(e,t){return typeof e==`number`}},lF=class extends cF{expected(){return`an integer`}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&XP(e)}},uF=class extends zP{expected(){return`a string`}validate(e){return typeof e==`string`}},dF=bP,fF=IP,pF=OP,mF=wP,hF=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=dF,unknown:a=fF,invalid:o=pF,deprecated:s=mF,missing:c=()=>!1,required:l=()=>!1,preprocess:u=e=>e,postprocess:d=()=>EP}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:KP(e,`name`),normalizeDefaultResult:$P,normalizeExpectedResult:eF,normalizeDeprecatedResult:nF,normalizeForwardResult:iF,normalizeRedirectResult:aF,normalizeValidateResult:tF},this._unknownHandler=a,this._invalidHandler=QP(o),this._deprecatedHandler=s,this._identifyMissing=(e,t)=>!(e in t)||c(e,t),this._identifyRequired=l,this._preprocess=u,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=JP()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];if(!(e in t)){let t=$P(r.default(this._utils));`value`in t&&n.push({[e]:t.value})}}r();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],i=n.postprocess(r,this._utils);i!==EP&&(this._applyValidation(i,e,n),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of r){let r=this._utils.schemas[i],a=r.preprocess(e[i],this._utils);this._applyValidation(a,i,r);let o=({from:e,to:t})=>{n.push(typeof t==`string`?{[t]:e}:{[t.key]:t.value})},s=({value:e,redirectTo:t})=>{let n=nF(r.deprecated(e,this._utils),a,!0);if(n!==!1){if(n===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of n){let n={key:i,value:e};if(!this._hasDeprecationWarned(n)){let r=typeof t==`string`?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}}};iF(r.forward(a,this._utils),a).forEach(o);let c=aF(r.redirect(a,this._utils),a);if(c.redirect.forEach(o),`remain`in c){let e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,s({value:e})}for(let{from:e,to:t}of c.redirect)s({value:e,redirectTo:t})}for(let r of i){let i=e[r];this._applyUnknownHandler(r,i,t,(e,t)=>{n.push({[e]:t})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,TP,this._utils)}_partitionOptionKeys(e){let[t,n]=YP(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=tF(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==EP){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,(t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n})}}}}},gF;function _F(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:a,descriptor:o}={}){if(r){if(!a)throw Error(`'FlagSchema' option is required.`);if(!o)throw Error(`'descriptor' option is required.`)}else o=bP;let s=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...i}=n.schemas;return IP(e,t,{...n,schemas:i})},c=new hF(vF(t,{isCLI:r,FlagSchema:a}),{logger:n,unknown:s,descriptor:o}),l=n!==!1;l&&gF&&(c._hasDeprecationWarned=gF);let u=c.normalize(e);return l&&(gF=c._hasDeprecationWarned),u}function vF(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(HP.create({name:`_`}));for(let i of e)r.push(yF(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(VP.create({name:i.alias,sourceName:i.name}));return r}function yF(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,a={name:i},o,s={};switch(e.type){case`int`:o=lF,t&&(a.preprocess=Number);break;case`string`:o=uF;break;case`choice`:o=sF,a.choices=e.choices.map(t=>t?.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case`boolean`:o=GP;break;case`flag`:o=r,a.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;case`path`:o=uF;break;default:throw Error(`Unexpected type ${e.type}`)}if(a.validate=e.exception?(t,n,r)=>e.exception(t)||n.validate(t,r):(e,t,n)=>e===void 0||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:typeof e.redirect==`string`?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?xj(0,t,-1):t),r)}return e.array?UP.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...s,valueSchema:o.create(a)}):o.create({...a,...s})}var bF=_F,xF=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}},SF=ej(`findLast`,function(){if(Array.isArray(this))return xF}),CF=Symbol.for(`PRETTIER_IS_FRONT_MATTER`),wF=[];function TF(e){return!!e?.[CF]}var EF=TF,DF=new Set([`yaml`,`toml`]),OF=({node:e})=>EF(e)&&DF.has(e.language);async function kF(e,t,n,r){let{node:i}=n,{language:a}=i;if(!DF.has(a))return;let o=i.value.trim(),s;if(o){let t=a===`yaml`?a:yP(r,{language:a});if(!t)return;s=o?await e(o,{parser:t}):``}else s=o;return _M([i.startDelimiter,i.explicitLanguage??``,MM,s,s?MM:``,i.endDelimiter])}function AF(e,t){return OF({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var jF=AF;function MF({node:e}){return e.raw}var NF=MF,PF=new Set([`tokens`,`comments`,`parent`,`enclosingNode`,`precedingNode`,`followingNode`]),FF=e=>Object.keys(e).filter(e=>!PF.has(e));function IF(e,t){let n=e?t=>e(t,PF):FF;return t?new Proxy(n,{apply:(e,t,n)=>EF(n[0])?wF:Reflect.apply(e,t,n)}):n}var LF=IF;function RF(e,t){if(!t)throw Error(`parserName is required.`);let n=SF(0,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new QN(r)}function zF(e,t){if(!t)throw Error(`astFormat is required.`);let n=SF(0,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new QN(r)}function BF({plugins:e,parser:t}){return VF(RF(e,t),t)}function VF(e,t){let n=e.parsers[t];return typeof n==`function`?n():n}async function HF(e,t){let n=e.printers[t];return WF(typeof n==`function`?await n():n)}var UF=new WeakMap;function WF(e){if(UF.has(e))return UF.get(e);let{features:t,getVisitorKeys:n,embed:r,massageAstNode:i,print:a,...o}=e;t=qF(t);let s=t.experimental_frontMatterSupport;n=LF(n,s.massageAstNode||s.embed||s.print);let c=i;i&&s.massageAstNode&&(c=new Proxy(i,{apply(e,t,n){return jF(...n),Reflect.apply(e,t,n)}}));let l=r;if(r){let e;l=new Proxy(r,{get(t,i,a){return i===`getVisitorKeys`?(e??=r.getVisitorKeys?LF(r.getVisitorKeys,s.massageAstNode||s.embed):n,e):Reflect.get(t,i,a)},apply:(e,t,n)=>s.embed&&OF(...n)?kF:Reflect.apply(e,t,n)})}let u=a;s.print&&(u=new Proxy(a,{apply(e,t,n){let[r]=n;return EF(r.node)?NF(r):Reflect.apply(e,t,n)}}));let d={features:t,getVisitorKeys:n,embed:l,massageAstNode:c,print:u,...o};return UF.set(e,d),d}var GF=Object.fromEntries([`clean`,`embed`,`print`].map(e=>[e,!1]));function KF(e){return{...GF,...e}}function qF(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:KF(e?.experimental_frontMatterSupport)}}var JF={astFormat:`estree`,printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function YF(e,t={}){let n={...e};if(!n.parser){if(n.filepath){if(n.parser=yP(n,{physicalFile:n.filepath}),!n.parser)throw new $N(`No parser could be inferred for file "${n.filepath}".`)}else throw new $N(`No parser and no file path given, couldn't infer a parser.`)}let r=tP({plugins:e.plugins,showDeprecated:!0}).options,i={...JF,...Object.fromEntries(r.filter(e=>e.default!==void 0).map(e=>[e.name,e.default]))},a=RF(n.plugins,n.parser),o=await VF(a,n.parser);n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;let s=a.printers?.[o.astFormat]?a:zF(n.plugins,o.astFormat),c=await HF(s,o.astFormat);n.printer=c,n.getVisitorKeys=c.getVisitorKeys;let l=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,e])=>e!==void 0)):{},u={...i,...l};for(let[e,t]of Object.entries(u))(n[e]===null||n[e]===void 0)&&(n[e]=t);return n.parser===`json`&&(n.trailingComma=`none`),bF(n,r,{passThrough:Object.keys(JF),...t})}var XF=YF;QA($A(),1);var ZF=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,QF=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`;RegExp(`[`+ZF+`]`),RegExp(`[`+ZF+QF+`]`),ZF=QF=null;var $F={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]};new Set($F.keyword),new Set($F.strict),new Set($F.strictBind);var eI=(e,t)=>n=>e(t(n));function tI(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:eI(eI(e.white,e.bgRed),e.bold),gutter:e.gray,marker:eI(e.red,e.bold),message:eI(e.red,e.bold),reset:e.reset}}tI(CP(!0)),tI(CP(!1));function nI(){return new Proxy({},{get:()=>e=>e})}var rI=/\r\n|[\n\r\u2028\u2029]/;function iI(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,c=r.column,l=i.line,u=i.column,d=Math.max(s-(a+1),0),f=Math.min(t.length,l+o);s===-1&&(d=0),l===-1&&(f=t.length);let p=l-s,m={};if(p)for(let e=0;e<=p;e++){let n=e+s;m[n]=c?e===0?[c,t[n-1].length-c+1]:e===p?[0,u]:[0,t[n-e].length]:!0}else m[s]=c===u?!c||[c,0]:[c,u-c];return{start:d,end:f,markerLines:m}}function aI(e,t,n={}){let r=nI(!1),{start:i,end:a,markerLines:o}=iI(t,e.split(rI),n),s=t.start&&typeof t.start.column==`number`,c=String(a).length,l=e.split(rI,a).slice(i,a).map((e,t)=>{let a=i+1+t,s=` ${` ${a}`.slice(-c)} |`,l=o[a],u=!o[a+1];if(l){let t=``;if(Array.isArray(l)){let i=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g,` `),a=l[1]||1;t=[`
363
- `,r.gutter(s.replace(/\d/g,` `)),` `,i,r.marker(`^`).repeat(a)].join(``),u&&n.message&&(t+=` `+r.message(n.message))}return[r.marker(`>`),r.gutter(s),e.length>0?` ${e}`:``,t].join(``)}return` ${r.gutter(s)}${e.length>0?` ${e}`:``}`}).join(`
364
- `);return n.message&&!s&&(l=`${` `.repeat(c+1)}${n.message}
365
- ${l}`),l}async function oI(e,t){let n=await BF(t),r=n.preprocess?await n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(t){sI(t,e)}return{text:r,ast:i}}function sI(e,t){let{loc:n}=e;if(n){let r=aI(t,n,{highlightCode:!0});throw e.message+=`
366
- `+r,e.codeFrame=r,e}throw e}var cI=oI;async function lI(e,t,n,r,i){if(n.embeddedLanguageFormatting!==`auto`)return;let{printer:a}=n,{embed:o}=a;if(!o)return;if(o.length>2)throw Error(`printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed`);let{hasPrettierIgnore:s}=a,{getVisitorKeys:c}=o,l=[];f();let u=e.stack;for(let{print:r,node:a,pathStack:o}of l)try{e.stack=o;let s=await r(d,t,e,n);s&&i.set(a,s)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}e.stack=u;function d(e,t){return uI(e,t,n,r)}function f(){let{node:t}=e;if(typeof t!=`object`||!t||s?.(e))return;for(let n of c(t))Array.isArray(t[n])?e.each(f,n):e.call(f,n);let r=o(e,n);if(r){if(typeof r==`function`){l.push({print:r,node:t,pathStack:[...e.stack]});return}i.set(t,r)}}}async function uI(e,t,n,r){let i=await XF({...n,...t,parentParser:n.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:a}=await cI(e,i);return rM(await r(a,i))}function dI(e,t,n,r){let{originalText:i,[Symbol.for(`comments`)]:a,locStart:o,locEnd:s,[Symbol.for(`printedComments`)]:c}=t,{node:l}=e,u=o(l),d=s(l);for(let e of a)o(e)>=u&&s(e)<=d&&c.add(e);let{printPrettierIgnored:f}=t.printer;return f?f(e,t,n,r):i.slice(u,d)}var fI=dI;async function pI(e,t){({ast:e}=await hI(e,t));let n=new Map,r=new lN(e),i=ZN(t),a=new Map;await lI(r,s,t,pI,a);let o=await mI(r,t,s,void 0,a);if(XN(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[xM,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,xM]}return o;function s(e,t){return e===void 0||e===r?c(t):Array.isArray(e)?r.call(()=>c(t),...e):r.call(()=>c(t),e)}function c(e){i(r);let o=r.node;if(o==null)return``;let c=dN(o)&&e===void 0;if(c&&n.has(o))return n.get(o);let l=mI(r,t,s,e,a);return c&&n.set(o,l),l}}function mI(e,t,n,r,i){let{node:a}=e,{printer:o}=t,s;switch(s=o.hasPrettierIgnore?.(e)?fI(e,t,n,r):i.has(a)?i.get(a):o.print(e,t,n,r),a){case t.cursorNode:s=lM(s,e=>[xM,e,xM]);break;case t.nodeBeforeCursor:s=lM(s,e=>[e,xM]);break;case t.nodeAfterCursor:s=lM(s,e=>[xM,e])}return o.printComment&&!o.willPrintOwnComments?.(e,t)&&(s=YN(e,s,t)),s}async function hI(e,t){let n=e.comments??[];t[Symbol.for(`comments`)]=n,t[Symbol.for(`printedComments`)]=new Set,LN(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function gI(e,t){let{cursorOffset:n,locStart:r,locEnd:i,getVisitorKeys:a}=t,o=e=>r(e)<=n&&i(e)>=n,s=e,c=[e];for(let t of TN(e,{getVisitorKeys:a,filter:o}))c.push(t),s=t;if(EN(s,{getVisitorKeys:a}))return{cursorNode:s};let l,u,d=-1,f=1/0;for(;c.length>0&&(l===void 0||u===void 0);){s=c.pop();let e=l!==void 0,t=u!==void 0;for(let o of wN(s,{getVisitorKeys:a})){if(!e){let e=i(o);e<=n&&e>d&&(l=o,d=e)}if(!t){let e=r(o);e>=n&&e<f&&(u=o,f=e)}}}return{nodeBeforeCursor:l,nodeAfterCursor:u}}var _I=gI;function vI(e,t){let{printer:n}=t,r=n.massageAstNode;if(!r)return e;let{getVisitorKeys:i}=n,{ignoredProperties:a}=r;return o(e);function o(e,t){if(!dN(e))return e;if(Array.isArray(e))return e.map(e=>o(e,t)).filter(Boolean);let n={},s=new Set(i(e));for(let t in e)!Object.prototype.hasOwnProperty.call(e,t)||a?.has(t)||(n[t]=s.has(t)?o(e[t],e):e[t]);let c=r(e,n,t);if(c!==null)return c??n}}var yI=vI,bI=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return t}return-1},xI=ej(`findLastIndex`,function(){if(Array.isArray(this))return bI}),SI=({parser:e})=>e===`json`||e===`json5`||e===`jsonc`||e===`json-stringify`;function CI(e,t){return t=new Set(t),e.find(e=>OI.has(e.type)&&t.has(e))}function wI(e){let t=xI(0,e,e=>e.type!==`Program`&&e.type!==`File`);return t===-1?e:e.slice(0,t+1)}function TI(e,t,{locStart:n,locEnd:r}){let[i,...a]=e,[o,...s]=t;if(i===o)return[i,o];let c=n(i);for(let e of wI(s))if(n(e)>=c)o=e;else break;let l=r(o);for(let e of wI(a)){if(r(e)<=l)i=e;else break;if(i===o)break}return[i,o]}function EI(e,t,n,r,i=[],a){let{locStart:o,locEnd:s}=n,c=o(e),l=s(e);if(t>l||t<c||a===`rangeEnd`&&t===c||a===`rangeStart`&&t===l)return;let u=[e,...i],d=ON(e,u,{cache:PN,locStart:o,locEnd:s,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes});for(let e of d){let i=EI(e,t,n,r,u,a);if(i)return i}if(r(e,i[0]))return u}function DI(e,t){return t!==`DeclareExportDeclaration`&&e!==`TypeParameterDeclaration`&&(e===`Directive`||e===`TypeAlias`||e===`TSExportAssignment`||e.startsWith(`Declare`)||e.startsWith(`TSDeclare`)||e.endsWith(`Statement`)||e.endsWith(`Declaration`))}var OI=new Set([`JsonRoot`,`ObjectExpression`,`ArrayExpression`,`StringLiteral`,`NumericLiteral`,`BooleanLiteral`,`NullLiteral`,`UnaryExpression`,`TemplateLiteral`]),kI=new Set([`OperationDefinition`,`FragmentDefinition`,`VariableDefinition`,`TypeExtensionDefinition`,`ObjectTypeDefinition`,`FieldDefinition`,`DirectiveDefinition`,`EnumTypeDefinition`,`EnumValueDefinition`,`InputValueDefinition`,`InputObjectTypeDefinition`,`SchemaDefinition`,`OperationTypeDefinition`,`InterfaceTypeDefinition`,`UnionTypeDefinition`,`ScalarTypeDefinition`]);function AI(e,t,n){if(!t)return!1;switch(e.parser){case`flow`:case`hermes`:case`babel`:case`babel-flow`:case`babel-ts`:case`typescript`:case`acorn`:case`espree`:case`meriyah`:case`oxc`:case`oxc-ts`:case`__babel_estree`:return DI(t.type,n?.type);case`json`:case`json5`:case`jsonc`:case`json-stringify`:return OI.has(t.type);case`graphql`:return kI.has(t.kind);case`vue`:return t.tag!==`root`}return!1}function jI(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:a,locEnd:o}=t,s=e.slice(r,i).search(/\S/u),c=s===-1;if(!c)for(r+=s;i>r&&!/\S/u.test(e[i-1]);--i);let l=EI(n,r,t,(e,n)=>AI(t,e,n),[],`rangeStart`);if(!l)return;let u=c?l:EI(n,i,t,e=>AI(t,e),[],`rangeEnd`);if(!u)return;let d,f;if(SI(t)){let e=CI(l,u);d=e,f=e}else[d,f]=TI(l,u,t);return[Math.min(a(d),a(f)),Math.max(o(d),o(f))]}var MI=``,NI=Symbol(`cursor`);async function PI(e,t,n=0){if(!e||e.trim().length===0)return{formatted:``,cursorOffset:-1,comments:[]};let{ast:r,text:i}=await cI(e,t);t.cursorOffset>=0&&(t={...t,..._I(r,t)});let a=await pI(r,t,n);n>0&&(a=yM([MM,a],n,t.tabWidth));let o=oN(a,t);if(n>0){let e=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(e),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>e.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=e+hj(t.endOfLine)}let s=t[Symbol.for(`comments`)];if(t.cursorOffset>=0){let e,n,r,a;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText){if(r=o.cursorNodeStart,a=o.cursorNodeText,t.cursorNode)e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw Error(`Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor`);e=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let r=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;n=i.slice(e,r)}}else e=0,n=i,r=0,a=o.formatted;let c=t.cursorOffset-e;if(n===a)return{formatted:o.formatted,cursorOffset:r+c,comments:s};let l=n.split(``);l.splice(c,0,NI);let u=aj(l,a.split(``)),d=r;for(let e of u)if(e.removed){if(e.value.includes(NI))break}else d+=e.count;return{formatted:o.formatted,cursorOffset:d,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function FI(e,t){let{ast:n,text:r}=await cI(e,t),[i,a]=jI(r,t,n)??[0,0],o=r.slice(i,a),s=Math.min(i,r.lastIndexOf(`
367
- `,i)+1),c=r.slice(s,i).match(/^\s*/u)[0],l=cN(c,t.tabWidth),u=await PI(o,{...t,rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:`lf`},l),d=u.formatted.trimEnd(),{cursorOffset:f}=t;f>a?f+=d.length-o.length:u.cursorOffset>=0&&(f=u.cursorOffset+i);let p=r.slice(0,i)+d+r.slice(a);if(t.endOfLine!==`lf`){let e=hj(t.endOfLine);f>=0&&e===`\r
368
- `&&(f+=_j(p.slice(0,f),`
369
- `)),p=nj(0,p,`
370
- `,e)}return{formatted:p,cursorOffset:f,comments:u.comments}}function II(e,t,n){return typeof t!=`number`||Number.isNaN(t)||t<0||t>e.length?n:t}function LI(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=II(e,n,-1),r=II(e,r,0),i=II(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function RI(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a}=LI(e,t),o=e.charAt(0)===MI;if(o&&(e=e.slice(1),n--,r--,i--),a===`auto`&&(a=mj(e)),e.includes(`\r`)){let t=t=>_j(e.slice(0,Math.max(t,0)),`\r
371
- `);n-=t(n),r-=t(r),i-=t(i),e=yj(e)}return{hasBOM:o,text:e,options:LI(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a})}}async function zI(e,t){let n=await BF(t);return!n.hasPragma||n.hasPragma(e)}async function BI(e,t){return(await BF(t)).hasIgnorePragma?.(e)}async function VI(e,t){let{hasBOM:n,text:r,options:i}=RI(e,await XF(t));if(i.rangeStart>=i.rangeEnd&&r!==``||i.requirePragma&&!await zI(r,i)||i.checkIgnorePragma&&await BI(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<r.length?a=await FI(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await zI(r,i)&&(r=i.printer.insertPragma(r)),a=await PI(r,i)),n&&(a.formatted=MI+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function HI(e,t,n){let{text:r,options:i}=RI(e,await XF(t)),a=await cI(r,i);return n&&(n.preprocessForPrint&&(a.ast=await hI(a.ast,i)),n.massage&&(a.ast=yI(a.ast,i))),a}async function UI(e,t){return t=await XF(t),oN(await pI(e,t),t)}async function WI(e,t){let{formatted:n}=await VI(zM(e),{...t,parser:`__js_expression`});return n}async function GI(e,t){t=await XF(t);let{ast:n}=await cI(e,t);return t.cursorOffset>=0&&(t={...t,..._I(n,t)}),pI(n,t)}async function KI(e,t){return oN(e,await XF(t))}var qI={};XA(qI,{builders:()=>JI,printer:()=>YI,utils:()=>XI});var JI={join:DM,line:kM,softline:AM,hardline:MM,literalline:PM,group:CM,conditionalGroup:wM,fill:SM,lineSuffix:FM,lineSuffixBoundary:IM,cursor:xM,breakParent:bM,ifBreak:TM,trim:LM,indent:mM,indentIfBreak:EM,align:hM,addAlignmentToDoc:yM,markAsRoot:_M,dedentToRoot:gM,dedent:vM,hardlineWithoutBreakParent:jM,literallineWithoutBreakParent:NM,label:OM,concat:e=>e},YI={printDocToString:oN},XI={willBreak:Xj,traverseDoc:Kj,findInDoc:Jj,mapDoc:qj,removeLines:eM,stripTrailingHardline:rM,replaceEndOfLine:oM,canBreak:cM},ZI=`3.8.3`,QI={};XA(QI,{addDanglingComment:()=>MN,addLeadingComment:()=>jN,addTrailingComment:()=>NN,getAlignmentSize:()=>cN,getIndentSize:()=>cL,getMaxContinuousCount:()=>dL,getNextNonSpaceNonCommentCharacter:()=>pL,getNextNonSpaceNonCommentCharacterIndex:()=>TL,getPreferredQuote:()=>yL,getStringWidth:()=>qM,hasNewline:()=>xN,hasNewlineInRange:()=>xL,hasSpaces:()=>CL,isNextLineEmpty:()=>AL,isNextLineEmptyAfterIndex:()=>oL,isPreviousLineEmpty:()=>DL,makeString:()=>kL,skip:()=>fN,skipEverythingButNewLine:()=>gN,skipInlineComment:()=>eL,skipNewline:()=>yN,skipSpaces:()=>mN,skipToLineEnd:()=>hN,skipTrailingComment:()=>nL,skipWhitespace:()=>pN});function $I(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 eL=$I;function tL(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?gN(e,t):t}var nL=tL;function rL(e,t){let n=null,r=t;for(;r!==n;)n=r,r=mN(e,r),r=eL(e,r),r=nL(e,r),r=yN(e,r);return r}var iL=rL;function aL(e,t){let n=null,r=t;for(;r!==n;)n=r,r=hN(e,r),r=eL(e,r),r=mN(e,r);return r=nL(e,r),r=yN(e,r),r!==!1&&xN(e,r)}var oL=aL;function sL(e,t){let n=e.lastIndexOf(`
372
- `);return n===-1?0:cN(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var cL=sL;function lL(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function uL(e,t){let n=e.matchAll(RegExp(`(?:${lL(t)})+`,`gu`));return n.reduce||(n=[...n]),n.reduce((e,[t])=>Math.max(e,t.length),0)/t.length}var dL=uL;function fL(e,t){let n=iL(e,t);return n===!1?``:e.charAt(n)}var pL=fL,mL=Object.freeze({character:`'`,codePoint:39}),hL=Object.freeze({character:`"`,codePoint:34}),gL=Object.freeze({preferred:mL,alternate:hL}),_L=Object.freeze({preferred:hL,alternate:mL});function vL(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?gL:_L,{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 yL=vL;function bL(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
373
- `)return!0;return!1}var xL=bL;function SL(e,t,n={}){return mN(e,n.backwards?t-1:t,n)!==t}var CL=SL;function wL(e,t,n){return iL(e,n(t))}function TL(e,t){return arguments.length===2||typeof t==`number`?iL(e,t):wL(...arguments)}function EL(e,t,n){return WN(e,n(t))}function DL(e,t){return arguments.length===2||typeof t==`number`?WN(e,t):EL(...arguments)}function OL(e,t,n){return oL(e,n(t))}function kL(e,t,n){let r=t===`"`?`'`:`"`;return t+nj(0,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}function AL(e,t){return arguments.length===2||typeof t==`number`?oL(e,t):OL(...arguments)}function jL(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var ML=jL(VI);async function NL(e,t){let{formatted:n}=await ML(e,{...t,cursorOffset:-1});return n}async function PL(e,t){return await NL(e,t)===e}var FL=jL(tP,0),IL={parse:jL(HI),formatAST:jL(UI),formatDoc:jL(WI),printToDoc:jL(GI),printDocToString:jL(KI)},LL=Object.getOwnPropertyNames,RL=((e,t)=>function(){return t||(0,e[LL(e)[0]])((t={exports:{}}).exports,t),t.exports})({"fillers/json-schema.json"(e,t){t.exports={}}});function zL(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function BL(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0&&e===t}function VL(e){return zL(e,`(?i)`)?new RegExp(e.substring(4),`i`):new RegExp(e)}function HL(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!HL(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var a=[];for(r in t)a.push(r);if(a.sort(),!HL(i,a))return!1;for(n=0;n<i.length;n++)if(!HL(e[i[n]],t[i[n]]))return!1}return!0}function UL(e){return typeof e==`number`}function WL(e){return e!==void 0}function GL(e){return typeof e==`boolean`}function KL(e){return typeof e==`string`}var qL;(function(e){e[e.Undefined=0]=`Undefined`,e[e.EnumValueMismatch=1]=`EnumValueMismatch`,e[e.Deprecated=2]=`Deprecated`,e[e.UnexpectedEndOfComment=257]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=258]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=259]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=260]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=261]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=262]=`InvalidCharacter`,e[e.PropertyExpected=513]=`PropertyExpected`,e[e.CommaExpected=514]=`CommaExpected`,e[e.ColonExpected=515]=`ColonExpected`,e[e.ValueExpected=516]=`ValueExpected`,e[e.CommaOrCloseBacketExpected=517]=`CommaOrCloseBacketExpected`,e[e.CommaOrCloseBraceExpected=518]=`CommaOrCloseBraceExpected`,e[e.TrailingComma=519]=`TrailingComma`,e[e.DuplicateKey=520]=`DuplicateKey`,e[e.CommentNotPermitted=521]=`CommentNotPermitted`,e[e.SchemaResolveError=768]=`SchemaResolveError`})(qL||={});var JL;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[dc.Markdown,dc.PlainText],commitCharactersSupport:!0}}}}})(JL||={});var YL=(e,t,...n)=>n.length===0?t:t.replaceAll(/{(\d+)}/g,(e,[t])=>t in n?String(n[t]):e);function XL(){return YL}var ZL=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),QL=XL(),$L={"color-hex":{errorMessage:QL(`colorHexFormatWarning`,`Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.`),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:QL(`dateTimeFormatWarning`,`String is not a RFC3339 date-time.`),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:QL(`dateFormatWarning`,`String is not a RFC3339 date.`),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:QL(`timeFormatWarning`,`String is not a RFC3339 time.`),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:QL(`emailFormatWarning`,`String is not an e-mail address.`),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},eR=(function(){function e(e,t,n){n===void 0&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return`type: `+this.type+` (`+this.offset+`/`+this.length+`)`+(this.parent?` parent: {`+this.parent.toString()+`}`:``)},e})();(function(e){ZL(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.type=`null`,r.value=null,r}return t})(eR),(function(e){ZL(t,e);function t(t,n,r){var i=e.call(this,t,r)||this;return i.type=`boolean`,i.value=n,i}return t})(eR),(function(e){ZL(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.type=`array`,r.items=[],r}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t})(eR),(function(e){ZL(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.type=`number`,r.isInteger=!0,r.value=NaN,r}return t})(eR),(function(e){ZL(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`string`,i.value=``,i}return t})(eR),(function(e){ZL(t,e);function t(t,n,r){var i=e.call(this,t,n)||this;return i.type=`property`,i.colonOffset=-1,i.keyNode=r,i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t})(eR),(function(e){ZL(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.type=`object`,r.properties=[],r}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t})(eR);function tR(e){return GL(e)?e?{}:{not:{}}:e}var nR;(function(e){e[e.Key=0]=`Key`,e[e.Enum=1]=`Enum`})(nR||={});var rR=(function(){function e(e,t){e===void 0&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(this.focusOffset===-1||sR(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e})(),iR=(function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e})(),aR=(function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===qL.EnumValueMismatch&&(r.message=QL(`enumWarning`,`Value is not accepted. Valid values: {0}.`,this.enumValues.map(function(e){return JSON.stringify(e)}).join(`, `)))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&e.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t===e.hasProblems()?this.enumValueMatch===e.enumValueMatch?this.primaryValueMatches===e.primaryValueMatches?this.propertiesValueMatches===e.propertiesValueMatches?this.propertiesMatches-e.propertiesMatches:this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches-e.primaryValueMatches:e.enumValueMatch?-1:1:t?-1:1},e})();function oR(e){return Os(e)}function sR(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(function(){function e(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}return e.prototype.getNodeFromOffset=function(e,t){if(t===void 0&&(t=!1),this.root)return Ds(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var a=0;a<i.length&&r;a++)r=t(i[a]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(n===void 0&&(n=I.Warning),this.root&&t){var r=new aR;return cR(this.root,t,r,iR.instance),r.problems.map(function(t){var r=F.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return Js.create(r,t.message,t.severity??n,t.code)})}},e.prototype.getMatchingSchemas=function(e,t,n){t===void 0&&(t=-1);var r=new rR(t,n);return this.root&&e&&cR(this.root,e,new aR,r),r.schemas},e})();function cR(e,t,n,r){if(!e||!r.include(e))return;var i=e;switch(i.type){case`object`:l(i,t,n,r);break;case`array`:c(i,t,n,r);break;case`string`:s(i,t,n,r);break;case`number`:o(i,t,n,r);break;case`property`:return cR(i.valueNode,t,n,r)}a(),r.add({node:i,schema:t});function a(){function e(e){return i.type===e||e===`integer`&&i.type===`number`&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||QL(`typeArrayMismatchWarning`,`Incorrect type. Expected one of {0}.`,t.type.join(`, `))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||QL(`typeMismatchWarning`,`Incorrect type. Expected "{0}".`,t.type)})),Array.isArray(t.allOf))for(var a=0,o=t.allOf;a<o.length;a++){var s=o[a];cR(i,tR(s),n,r)}var c=tR(t.not);if(c){var l=new aR,u=r.newSub();cR(i,c,l,u),l.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:QL(`notSchemaWarning`,`Matches a schema that is not allowed.`)});for(var d=0,f=u.schemas;d<f.length;d++){var p=f[d];p.inverted=!p.inverted,r.add(p)}}var m=function(e,t){for(var a=[],o=void 0,s=0,c=e;s<c.length;s++){var l=c[s],u=tR(l),d=new aR,f=r.newSub();if(cR(i,u,d,f),d.hasProblems()||a.push(u),!o)o={schema:u,validationResult:d,matchingSchemas:f};else if(!t&&!d.hasProblems()&&!o.validationResult.hasProblems())o.matchingSchemas.merge(f),o.validationResult.propertiesMatches+=d.propertiesMatches,o.validationResult.propertiesValueMatches+=d.propertiesValueMatches;else{var p=d.compare(o.validationResult);p>0?o={schema:u,validationResult:d,matchingSchemas:f}:p===0&&(o.matchingSchemas.merge(f),o.validationResult.mergeEnumValues(d))}}return a.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:QL(`oneOfWarning`,`Matches multiple schemas when only one must validate.`)}),o&&(n.merge(o.validationResult),n.propertiesMatches+=o.validationResult.propertiesMatches,n.propertiesValueMatches+=o.validationResult.propertiesValueMatches,r.merge(o.matchingSchemas)),a.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1),Array.isArray(t.oneOf)&&m(t.oneOf,!0);var h=function(e){var t=new aR,a=r.newSub();cR(i,tR(e),t,a),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(a)},g=function(e,t,n){var a=tR(e),o=new aR,s=r.newSub();cR(i,a,o,s),r.merge(s),o.hasProblems()?n&&h(n):t&&h(t)},_=tR(t.if);if(_&&g(_,tR(t.then),tR(t.else)),Array.isArray(t.enum)){for(var v=oR(i),y=!1,b=0,x=t.enum;b<x.length;b++){var S=x[b];if(HL(v,S)){y=!0;break}}n.enumValues=t.enum,n.enumValueMatch=y,y||n.problems.push({location:{offset:i.offset,length:i.length},code:qL.EnumValueMismatch,message:t.errorMessage||QL(`enumWarning`,`Value is not accepted. Valid values: {0}.`,t.enum.map(function(e){return JSON.stringify(e)}).join(`, `))})}if(WL(t.const)){var v=oR(i);HL(v,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:qL.EnumValueMismatch,message:t.errorMessage||QL(`constWarning`,`Value must be {0}.`,JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:I.Warning,message:t.deprecationMessage,code:qL.Deprecated})}function o(e,t,n,r){var i=e.value;function a(e){var t=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return t&&{value:Number(t[1]+(t[2]||``)),multiplier:(t[2]?.length||0)-(parseInt(t[3])||0)}}if(UL(t.multipleOf)){var o=-1;if(Number.isInteger(t.multipleOf))o=i%t.multipleOf;else{var s=a(t.multipleOf),c=a(i);if(s&&c){var l=10**Math.abs(c.multiplier-s.multiplier);c.multiplier<s.multiplier?c.value*=l:s.value*=l,o=c.value%s.value}}o!==0&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`multipleOfWarning`,`Value is not divisible by {0}.`,t.multipleOf)})}function u(e,t){if(UL(t))return t;if(GL(t)&&t)return e}function d(e,t){if(!GL(t)||!t)return e}var f=u(t.minimum,t.exclusiveMinimum);UL(f)&&i<=f&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`exclusiveMinimumWarning`,`Value is below the exclusive minimum of {0}.`,f)});var p=u(t.maximum,t.exclusiveMaximum);UL(p)&&i>=p&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`exclusiveMaximumWarning`,`Value is above the exclusive maximum of {0}.`,p)});var m=d(t.minimum,t.exclusiveMinimum);UL(m)&&i<m&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`minimumWarning`,`Value is below the minimum of {0}.`,m)});var h=d(t.maximum,t.exclusiveMaximum);UL(h)&&i>h&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`maximumWarning`,`Value is above the maximum of {0}.`,h)})}function s(e,t,n,r){if(UL(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`minLengthWarning`,`String is shorter than the minimum length of {0}.`,t.minLength)}),UL(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`maxLengthWarning`,`String is longer than the maximum length of {0}.`,t.maxLength)}),KL(t.pattern)&&(VL(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||QL(`patternWarning`,`String does not match the pattern of "{0}".`,t.pattern)})),t.format)switch(t.format){case`uri`:case`uri-reference`:var i=void 0;if(!e.value)i=QL(`uriEmpty`,`URI expected.`);else{var a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);a?!a[2]&&t.format===`uri`&&(i=QL(`uriSchemeMissing`,`URI with a scheme is expected.`)):i=QL(`uriMissing`,`URI is expected.`)}i&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||QL(`uriFormatWarning`,`String is not a URI: {0}`,i)});break;case`color-hex`:case`date-time`:case`date`:case`time`:case`email`:var o=$L[t.format];(!e.value||!o.pattern.exec(e.value))&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||o.errorMessage})}}function c(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,a=0;a<i.length;a++){var o=i[a],s=tR(o),c=new aR,l=e.items[a];l?(cR(l,s,c,r),n.mergePropertyMatch(c)):e.items.length>=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length){if(typeof t.additionalItems==`object`)for(var u=i.length;u<e.items.length;u++){var c=new aR;cR(e.items[u],t.additionalItems,c,r),n.mergePropertyMatch(c)}else t.additionalItems===!1&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`additionalItemsWarning`,`Array has too many items according to schema. Expected {0} or fewer.`,i.length)})}}else{var d=tR(t.items);if(d)for(var f=0,p=e.items;f<p.length;f++){var l=p[f],c=new aR;cR(l,d,c,r),n.mergePropertyMatch(c)}}var m=tR(t.contains);if(m&&(e.items.some(function(e){var t=new aR;return cR(e,m,t,iR.instance),!t.hasProblems()})||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||QL(`requiredItemMissingWarning`,`Array does not contain required item.`)})),UL(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`minItemsWarning`,`Array has too few items. Expected {0} or more.`,t.minItems)}),UL(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`maxItemsWarning`,`Array has too many items. Expected {0} or fewer.`,t.maxItems)}),t.uniqueItems===!0){var h=oR(e);h.some(function(e,t){return t!==h.lastIndexOf(e)})&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`uniqueItemsWarning`,`Array has duplicate items.`)})}}function l(e,t,n,r){for(var i=Object.create(null),a=[],o=0,s=e.properties;o<s.length;o++){var c=s[o],l=c.keyNode.value;i[l]=c.valueNode,a.push(l)}if(Array.isArray(t.required))for(var u=0,d=t.required;u<d.length;u++){var f=d[u];if(!i[f]){var p=e.parent&&e.parent.type===`property`&&e.parent.keyNode,m=p?{offset:p.offset,length:p.length}:{offset:e.offset,length:1};n.problems.push({location:m,message:QL(`MissingRequiredPropWarning`,`Missing property "{0}".`,f)})}}var h=function(e){for(var t=a.indexOf(e);t>=0;)a.splice(t,1),t=a.indexOf(e)};if(t.properties)for(var g=0,_=Object.keys(t.properties);g<_.length;g++){var f=_[g];h(f);var v=t.properties[f],y=i[f];if(y){if(GL(v)){if(v)n.propertiesMatches++,n.propertiesValueMatches++;else{var c=y.parent;n.problems.push({location:{offset:c.keyNode.offset,length:c.keyNode.length},message:t.errorMessage||QL(`DisallowedExtraPropWarning`,`Property {0} is not allowed.`,f)})}}else{var b=new aR;cR(y,v,b,r),n.mergePropertyMatch(b)}}}if(t.patternProperties)for(var x=0,S=Object.keys(t.patternProperties);x<S.length;x++)for(var C=S[x],w=VL(C),T=0,ee=a.slice(0);T<ee.length;T++){var f=ee[T];if(w.test(f)){h(f);var y=i[f];if(y){var v=t.patternProperties[C];if(GL(v)){if(v)n.propertiesMatches++,n.propertiesValueMatches++;else{var c=y.parent;n.problems.push({location:{offset:c.keyNode.offset,length:c.keyNode.length},message:t.errorMessage||QL(`DisallowedExtraPropWarning`,`Property {0} is not allowed.`,f)})}}else{var b=new aR;cR(y,v,b,r),n.mergePropertyMatch(b)}}}}if(typeof t.additionalProperties==`object`)for(var E=0,te=a;E<te.length;E++){var f=te[E],y=i[f];if(y){var b=new aR;cR(y,t.additionalProperties,b,r),n.mergePropertyMatch(b)}}else if(t.additionalProperties===!1&&a.length>0)for(var D=0,ne=a;D<ne.length;D++){var f=ne[D],y=i[f];if(y){var c=y.parent;n.problems.push({location:{offset:c.keyNode.offset,length:c.keyNode.length},message:t.errorMessage||QL(`DisallowedExtraPropWarning`,`Property {0} is not allowed.`,f)})}}if(UL(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`MaxPropWarning`,`Object has more properties than limit of {0}.`,t.maxProperties)}),UL(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`MinPropWarning`,`Object has fewer properties than the required number of {0}`,t.minProperties)}),t.dependencies)for(var re=0,O=Object.keys(t.dependencies);re<O.length;re++){var l=O[re];if(i[l]){var ie=t.dependencies[l];if(Array.isArray(ie))for(var ae=0,oe=ie;ae<oe.length;ae++){var se=oe[ae];i[se]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:QL(`RequiredDependentPropWarning`,`Object is missing property {0} required by property {1}.`,se,l)})}else{var v=tR(ie);if(v){var b=new aR;cR(e,v,b,r),n.mergePropertyMatch(b)}}}}var ce=tR(t.propertyNames);if(ce)for(var le=0,ue=e.properties;le<ue.length;le++){var l=ue[le].keyNode;l&&cR(l,ce,n,iR.instance)}}}function lR(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string`);for(var n=String(e),r=``,i=t?!!t.extended:!1,a=t?!!t.globstar:!1,o=!1,s=t&&typeof t.flags==`string`?t.flags:``,c,l=0,u=n.length;l<u;l++)switch(c=n[l],c){case`/`:case`$`:case`^`:case`+`:case`.`:case`(`:case`)`:case`=`:case`!`:case`|`:r+=`\\`+c;break;case`?`:if(i){r+=`.`;break}case`[`:case`]`:if(i){r+=c;break}case`{`:if(i){o=!0,r+=`(`;break}case`}`:if(i){o=!1,r+=`)`;break}case`,`:if(o){r+=`|`;break}r+=`\\`+c;break;case`*`:for(var d=n[l-1],f=1;n[l+1]===`*`;)f++,l++;var p=n[l+1];a?f>1&&(d===`/`||d===void 0||d===`{`||d===`,`)&&(p===`/`||p===void 0||p===`,`||p===`}`)?(p===`/`?l++:d===`/`&&r.endsWith(`\\/`)&&(r=r.substr(0,r.length-2)),r+=`((?:[^/]*(?:/|$))*)`):r+=`([^/]*)`:r+=`.*`;break;default:r+=c}return(!s||!~s.indexOf(`g`))&&(r=`^`+r+`$`),new RegExp(r,s)}var uR=XL(),dR=`!`,fR=`/`,pR=(function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],a=i[0]!==dR;a||(i=i.substring(1)),i.length>0&&(i[0]===fR&&(i=i.substring(1)),this.globWrappers.push({regexp:lR(`**/`+i,{extended:!0,globstar:!0}),include:a}))}this.uris=t}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],a=i.regexp,o=i.include;a.test(e)&&(t=o)}return t},e.prototype.getURIs=function(){return this.uris},e})(),mR=(function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new hR(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||=this.service.loadSchema(this.url),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||=this.getUnresolvedSchema().then(function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e})(),hR=(function(){function e(e,t){t===void 0&&(t=[]),this.schema=e,this.errors=t}return e})(),gR=(function(){function e(e,t){t===void 0&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return tR(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||typeof t==`boolean`||e.length===0)return t;var n=e.shift();if(t.properties&&typeof t.properties[n])return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var a=i[r];if(VL(a).test(n))return this.getSectionRecursive(e,t.patternProperties[a])}else if(typeof t.additionalProperties==`object`)return this.getSectionRecursive(e,t.additionalProperties);else if(n.match(`[0-9]+`)){if(Array.isArray(t.items)){var o=parseInt(n,10);if(!isNaN(o)&&t.items[o])return this.getSectionRecursive(e,t.items[o])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e})(),_R=(function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter(function(t){var n=js.parse(t).scheme;return n!==`schemaservice`&&(!e||e(n))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;var n=!1;e=yR(e);for(var r=[e],i=Object.keys(this.schemasById).map(function(e){return t.schemasById[e]});r.length;)for(var a=r.pop(),o=0;o<i.length;o++){var s=i[o];s&&(s.url===a||s.dependencies[a])&&(s.url!==a&&r.push(s.url),s.clearSchema(),i[o]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=yR(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=e.schemaAssociations,a=0,o=i;a<o.length;a++){var s=o[a],c=s.uris.map(yR),l=this.addFilePatternAssociation(s.pattern,c);this.contributionAssociations.push(l)}},e.prototype.addSchemaHandle=function(e,t){var n=new mR(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new pR(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=yR(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=yR(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=uR(`json.schema.norequestservice`,`Unable to load schema from '{0}'. No schema request service available`,xR(e));return this.promise.resolve(new hR({},[t]))}return this.requestService(e).then(function(t){if(!t)return new hR({},[uR(`json.schema.nocontent`,`Unable to load schema from '{0}': No content.`,xR(e))]);var n={},r=[];n=Es(t,r);var i=r.length?[uR(`json.schema.invalidFormat`,`Unable to parse content from '{0}': Parse error at offset {1}.`,xR(e),r[0].offset)]:[];return new hR(n,i)},function(t){var n=t.toString(),r=t.toString().split(`Error: `);return r.length>1&&(n=r[1]),BL(n,`.`)&&(n=n.substr(0,n.length-1)),new hR({},[uR(`json.schema.nocontent`,`Unable to load schema from '{0}': {1}.`,xR(e),n)])})},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),a=e.schema;if(a.$schema){var o=yR(a.$schema);if(o===`http://json-schema.org/draft-03/schema`)return this.promise.resolve(new gR({},[uR(`json.schema.draft03.notsupported`,`Draft-03 schemas are not supported.`)]));o===`https://json-schema.org/draft/2019-09/schema`&&i.push(uR(`json.schema.draft201909.notsupported`,`Draft 2019-09 schemas are not yet fully supported.`))}var s=this.contextService,c=function(e,t){if(!t)return e;var n=e;return t[0]===`/`&&(t=t.substr(1)),t.split(`/`).some(function(e){return e=e.replace(/~1/g,`/`).replace(/~0/g,`~`),n=n[e],!n}),n},l=function(e,t,n,r){var a=r?decodeURIComponent(r):void 0,o=c(t,a);if(o)for(var s in o)o.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(e[s]=o[s]);else i.push(uR(`json.schema.invalidref`,`$ref '{0}' in '{1}' can not be resolved.`,a,n))},u=function(e,t,n,a,o){s&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,a)),t=yR(t);var c=r.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then(function(r){if(o[t]=!0,r.errors.length){var a=n?t+`#`+n:t;i.push(uR(`json.schema.problemloadingref`,`Problems loading reference '{0}': {1}`,a,r.errors[0]))}return l(e,r.schema,t,n),d(e,r.schema,t,c.dependencies)})},d=function(e,t,n,i){if(!e||typeof e!=`object`)return Promise.resolve(null);for(var a=[e],o=[],s=[],c=function(){for(var e=[...arguments],t=0,n=e;t<n.length;t++){var r=n[t];typeof r==`object`&&a.push(r)}},d=function(){for(var e=[...arguments],t=0,n=e;t<n.length;t++){var r=n[t];if(typeof r==`object`)for(var i in r){var o=r[i];typeof o==`object`&&a.push(o)}}},f=function(){for(var e=[...arguments],t=0,n=e;t<n.length;t++){var r=n[t];if(Array.isArray(r))for(var i=0,o=r;i<o.length;i++){var s=o[i];typeof s==`object`&&a.push(s)}}},p=function(e){for(var r=[];e.$ref;){var a=e.$ref,o=a.split(`#`,2);if(delete e.$ref,o[0].length>0){s.push(u(e,o[0],o[1],n,i));return}r.indexOf(a)===-1&&(l(e,t,n,o[1]),r.push(a))}c(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),d(e.definitions,e.properties,e.patternProperties,e.dependencies),f(e.anyOf,e.allOf,e.oneOf,e.items)};a.length;){var m=a.pop();o.indexOf(m)>=0||(o.push(m),p(m))}return r.promise.all(s)};return d(a,a,t,n).then(function(e){return new gR(a,i)})},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&t.root.type===`object`){var n=t.root.properties.filter(function(e){return e.keyNode.value===`$schema`&&e.valueNode&&e.valueNode.type===`string`});if(n.length>0){var r=n[0].valueNode;if(r&&r.type===`string`){var i=oR(r);if(i&&zL(i,`.`)&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var a=yR(i);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),s=[],c=bR(e),l=0,u=this.filePatternAssociations;l<u.length;l++){var d=u[l];if(d.matchesPattern(c))for(var f=0,p=d.getURIs();f<p.length;f++){var m=p[f];o[m]||(s.push(m),o[m]=!0)}}var h=s.length>0?this.createCombinedSchema(e,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:h},h},e.prototype.createCombinedSchema=function(e,t){if(t.length===1)return this.getOrAddSchemaHandle(t[0]);var n=`schemaservice://combinedSchema/`+encodeURIComponent(e),r={allOf:t.map(function(e){return{$ref:e}})};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||`schemaservice://untitled/matchingSchemas/`+vR++;return this.resolveSchemaContent(new hR(n),r,{}).then(function(e){return t.getMatchingSchemas(e.schema).filter(function(e){return!e.inverted})})}return this.getSchemaForResource(e.uri,t).then(function(e){return e?t.getMatchingSchemas(e.schema).filter(function(e){return!e.inverted}):[]})},e})(),vR=0;function yR(e){try{return js.parse(e).toString()}catch{return e}}function bR(e){try{return js.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function xR(e){try{var t=js.parse(e);if(t.scheme===`file`)return t.fsPath}catch{}return e}var SR;(function(e){e.draft04=`draft04`,e.draft07=`draft07`,e.draft2019=`draft2019-09`,e.draft2020=`draft2020-12`})(SR||={});function CR(e){switch(e.type){case`array`:return e.children.map(CR);case`object`:{let t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){let e=r[n],i=e.children[1];i&&(t[e.children[0].value]=CR(i))}return t}case`null`:case`string`:case`number`:return e.value;case`boolean`:return e.source;default:return}}function wR(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function TR(e,t,n){if(n===void 0&&(n=!1),wR(e,t,n)){let r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){let i=TR(r[e],t,n);if(i)return i}return e}}function ER(e){if([`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`].lastIndexOf(e)>=0)return!0;if([`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}function DR(e,t,n){if(n===`boolean`&&typeof e==`string`&&(e=ER(e)),e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;let r,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!DR(e[r],t[r]))return!1}else{let n=[];for(i in e)n.push(i);n.sort();let a=[];for(i in t)a.push(i);if(a.sort(),!DR(n,a))return!1;for(r=0;r<n.length;r++)if(!DR(e[n[r]],t[n[r]]))return!1}return!0}function OR(e){return typeof e==`number`}function kR(e){return e!==void 0}function AR(e){return typeof e==`boolean`}function jR(e){return typeof e==`string`}function MR(e){return Symbol.iterator in Object(e)}function NR(e){let t=e.type&&e.closestTitle;return e.title?e.title:e.$id?PR(e.$id):e.$ref||e._$ref?PR(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(` | `):t?e.type.concat(`(`,e.closestTitle,`)`):e.type||e.closestTitle}function PR(e){let t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/),n=!!t&&t[1];return n||(n=`typeNotFound`,console.error(`$ref (${e}) not parsed properly`)),n}function FR(e,t){let n=js.parse(t),r=xl(n.fsPath);return Sl(n.fsPath)||(r+=`.json`),Object.getOwnPropertyDescriptor(e,`name`)?Object.getOwnPropertyDescriptor(e,`name`).value+` (${r})`:e.title?e.description?e.title+` - `+e.description+` (${r})`:e.title+` (${r})`:r}function IR(e){return e.type!==`object`&&!LR(e)}function LR(e){return!!(e.anyOf||e.allOf||e.oneOf)}function RR(e,t){for(let n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return t.documents.length===1?t.documents[0]:null}function zR(e){let t=[`mapping`,`scalar`,`sequence`];return e?e.filter(e=>{if(typeof e==`string`){let n=e.split(` `),r=n[1]&&n[1].toLowerCase()||`scalar`;return r!==`map`&&t.indexOf(r)!==-1}return!1}):[]}function BR(e,t){if(!t||!e||t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}function VR(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,`\\$&`).replace(/[*]/g,`.*`)}function HR(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return t}function UR(e){let t=``;e=e.replace(/\(\?([ims]+)\)/g,(e,n)=>{for(let e of n)t.includes(e)||(t+=e);return``});try{return new RegExp(e,t+`u`)}catch{try{return new RegExp(e,t)}catch{return}}}function WR(e,t){t++;for(let n=t;n<e.length;n++){let r=e.charAt(n);if(r===` `||r===` `)t++;else return t}return t}var GR=class{constructor(e){try{this.patternRegExp=RegExp(VR(e)+`$`)}catch{this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}};function KR(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=Math.max(n,r);return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var qR=XL(),JR=(function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=e.validate!==!1,this.commentSeverity=e.allowComments?void 0:I.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},s=function(e){var t=e.range.start.line+` `+e.range.start.character+` `+e.message;o[t]||(o[t]=!0,a.push(e))},c=function(r){var o=n?.trailingCommas?QR(n.trailingCommas):I.Error,c=n?.comments?QR(n.comments):i.commentSeverity,l=n?.schemaValidation?QR(n.schemaValidation):I.Warning,u=n?.schemaRequest?QR(n.schemaRequest):I.Warning;if(r){if(r.errors.length&&t.root&&u){var d=t.root,f=d.type===`object`?d.properties[0]:void 0;if(f&&f.keyNode.value===`$schema`){var p=f.valueNode||f,m=F.create(e.positionAt(p.offset),e.positionAt(p.offset+p.length));s(Js.create(m,r.errors[0],u,qL.SchemaResolveError))}else{var m=F.create(e.positionAt(d.offset),e.positionAt(d.offset+1));s(Js.create(m,r.errors[0],u,qL.SchemaResolveError))}}else if(l){var h=t.validate(e,r.schema,l);h&&h.forEach(s)}XR(r.schema)&&(c=void 0),ZR(r.schema)&&(o=void 0)}for(var g=0,_=t.syntaxErrors;g<_.length;g++){var v=_[g];if(v.code===qL.TrailingComma){if(typeof o!=`number`)continue;v.severity=o}s(v)}if(typeof c==`number`){var y=qR(`InvalidCommentToken`,`Comments are not permitted in JSON.`);t.comments.forEach(function(e){s(Js.create(e,y,c,qL.CommentNotPermitted))})}return a};if(r){var l=r.id||`schemaservice://untitled/`+YR++;return this.jsonSchemaService.resolveSchemaContent(new hR(r),l,{}).then(function(e){return c(e)})}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then(function(e){return c(e)})},e})(),YR=0;function XR(e){if(e&&typeof e==`object`){if(GL(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=XR(r);if(GL(i))return i}}}function ZR(e){if(e&&typeof e==`object`){if(GL(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(GL(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],a=ZR(i);if(GL(a))return a}}}function QR(e){switch(e){case`error`:return I.Error;case`warning`:return I.Warning;case`ignore`:return}}var $R=48,ez=57,tz=65,nz=97,rz=102;function iz(e){return e<$R?0:e<=ez?e-$R:(e<nz&&(e+=nz-tz),e>=nz&&e<=rz?e-nz+10:0)}function az(e){if(e[0]===`#`)switch(e.length){case 4:return{red:iz(e.charCodeAt(1))*17/255,green:iz(e.charCodeAt(2))*17/255,blue:iz(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:iz(e.charCodeAt(1))*17/255,green:iz(e.charCodeAt(2))*17/255,blue:iz(e.charCodeAt(3))*17/255,alpha:iz(e.charCodeAt(4))*17/255};case 7:return{red:(iz(e.charCodeAt(1))*16+iz(e.charCodeAt(2)))/255,green:(iz(e.charCodeAt(3))*16+iz(e.charCodeAt(4)))/255,blue:(iz(e.charCodeAt(5))*16+iz(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(iz(e.charCodeAt(1))*16+iz(e.charCodeAt(2)))/255,green:(iz(e.charCodeAt(3))*16+iz(e.charCodeAt(4)))/255,blue:(iz(e.charCodeAt(5))*16+iz(e.charCodeAt(6)))/255,alpha:(iz(e.charCodeAt(7))*16+iz(e.charCodeAt(8)))/255}}}var oz=(function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var a=n.resultLimit||Number.MAX_VALUE,o=e.uri;if((o===`vscode://defaultsettings/keybindings.json`||BL(o.toLowerCase(),`/user/keybindings.json`))&&i.type===`array`){for(var s=[],c=0,l=i.items;c<l.length;c++){var u=l[c];if(u.type===`object`)for(var d=0,f=u.properties;d<f.length;d++){var p=f[d];if(p.keyNode.value===`key`&&p.valueNode){var m=Rs.create(e.uri,sz(e,u));if(s.push({name:oR(p.valueNode),kind:Oc.Function,location:m}),a--,a<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),s}}}return s}for(var h=[{node:i,containerName:``}],g=0,_=!1,v=[],y=function(t,n){t.type===`array`?t.items.forEach(function(e){e&&h.push({node:e,containerName:n})}):t.type===`object`&&t.properties.forEach(function(t){var i=t.valueNode;if(i){if(a>0){a--;var o=Rs.create(e.uri,sz(e,t)),s=n?n+`.`+t.keyNode.value:t.keyNode.value;v.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:o,containerName:n}),h.push({node:i,containerName:s})}else _=!0}})};g<h.length;){var b=h[g++];y(b.node,b.containerName)}return _&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),v},e.prototype.findDocumentSymbols2=function(e,t,n){var r=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var a=n.resultLimit||Number.MAX_VALUE,o=e.uri;if((o===`vscode://defaultsettings/keybindings.json`||BL(o.toLowerCase(),`/user/keybindings.json`))&&i.type===`array`){for(var s=[],c=0,l=i.items;c<l.length;c++){var u=l[c];if(u.type===`object`)for(var d=0,f=u.properties;d<f.length;d++){var p=f[d];if(p.keyNode.value===`key`&&p.valueNode){var m=sz(e,u),h=sz(e,p.keyNode);if(s.push({name:oR(p.valueNode),kind:Oc.Function,range:m,selectionRange:h}),a--,a<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),s}}}return s}for(var g=[],_=[{node:i,result:g}],v=0,y=!1,b=function(t,n){t.type===`array`?t.items.forEach(function(t,i){if(t){if(a>0){a--;var o=sz(e,t),s=o,c={name:String(i),kind:r.getSymbolKind(t.type),range:o,selectionRange:s,children:[]};n.push(c),_.push({result:c.children,node:t})}else y=!0}}):t.type===`object`&&t.properties.forEach(function(t){var i=t.valueNode;if(i){if(a>0){a--;var o=sz(e,t),s=sz(e,t.keyNode),c=[],l={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:o,selectionRange:s,children:c,detail:r.getDetail(i)};n.push(l),_.push({result:c,node:i})}else y=!0}})};v<_.length;){var x=_[v++];b(x.node,x.result)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),g},e.prototype.getSymbolKind=function(e){switch(e){case`object`:return Oc.Module;case`string`:return Oc.String;case`number`:return Oc.Number;case`array`:return Oc.Array;case`boolean`:return Oc.Boolean;default:return Oc.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&=t.replace(/[\n]/g,`↵`),t&&t.trim()?t:`"`+t+`"`},e.prototype.getDetail=function(e){if(e){if(e.type===`boolean`||e.type===`number`||e.type===`null`||e.type===`string`)return String(e.value);if(e.type===`array`)return e.children.length?void 0:`[]`;if(e.type===`object`)return e.children.length?void 0:`{}`}},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then(function(r){var i=[];if(r)for(var a=n&&typeof n.resultLimit==`number`?n.resultLimit:Number.MAX_VALUE,o=t.getMatchingSchemas(r.schema),s={},c=0,l=o;c<l.length;c++){var u=l[c];if(!u.inverted&&u.schema&&(u.schema.format===`color`||u.schema.format===`color-hex`)&&u.node&&u.node.type===`string`){var d=String(u.node.offset);if(!s[d]){var f=az(oR(u.node));if(f){var p=sz(e,u.node);i.push({color:f,range:p})}if(s[d]=!0,a--,a<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i})},e.prototype.getColorPresentations=function(e,t,n,r){var i=[],a=Math.round(n.red*255),o=Math.round(n.green*255),s=Math.round(n.blue*255);function c(e){var t=e.toString(16);return t.length===2?t:`0`+t}var l=n.alpha===1?`#`+c(a)+c(o)+c(s):`#`+c(a)+c(o)+c(s)+c(Math.round(n.alpha*255));return i.push({label:l,textEdit:Xs.replace(r,JSON.stringify(l))}),i},e})();function sz(e,t){return F.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function cz(e,t){var n=[];return t.visit(function(r){if(r.type===`property`&&r.keyNode.value===`$ref`&&r.valueNode?.type===`string`){var i=r.valueNode.value,a=uz(t,i);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+`#`+(o.line+1)+`,`+(o.character+1),range:lz(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function lz(e,t){return F.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function uz(e,t){var n=fz(t);return n?dz(n,e.root):null}function dz(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type===`object`){var r=t.properties.find(function(e){return e.keyNode.value===n});return r?dz(e,r.valueNode):null}if(t&&t.type===`array`&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),a=t.items[i];return a?dz(e,a):null}return null}function fz(e){return e===`#`?[]:e[0]!==`#`||e[1]!==`/`?null:e.substring(2).split(/\//).map(pz)}function pz(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}var mz=`YAML`,hz=`yaml-schema: `,gz;(function(e){e.missingRequiredPropWarning=`missingRequiredPropWarning`,e.typeMismatchWarning=`typeMismatchWarning`,e.constWarning=`constWarning`})(gz||={});var _z={[gz.missingRequiredPropWarning]:`Missing property "{0}".`,[gz.typeMismatchWarning]:`Incorrect type. Expected "{0}".`,[gz.constWarning]:`Value must be {0}.`},vz=class e{constructor(e=-1,t=null){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){this.schemas.push(...e.schemas)}include(e){return(this.focusOffset===-1||wR(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},yz=class{constructor(){}get schemas(){return[]}add(){}merge(){}include(){return!0}newSub(){return this}};yz.instance=new yz;var bz={"color-hex":{errorMessage:R(`Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.`),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:R(`String is not a RFC3339 date-time.`),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:R(`String is not a RFC3339 date.`),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:R(`String is not a RFC3339 time.`),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:R(`String is not an e-mail address.`),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:R(`String does not match IPv4 format.`),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:R(`String does not match IPv6 format.`),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},xz=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null,e&&(this.enumValues=[])}getEvaluatedItems(e){this.evaluatedItemsByNode??=new Map;let t=this.evaluatedItemsByNode.get(e);return t||(t=new Set,this.evaluatedItemsByNode.set(e,t)),t}hasProblems(){return this.problems.length>0}merge(e){if(this.problems=this.problems.concat(e.problems),e.evaluatedProperties){this.evaluatedProperties??=new Set;for(let t of e.evaluatedProperties)this.evaluatedProperties.add(t)}if(e.evaluatedItemsByNode){this.evaluatedItemsByNode??=new Map;for(let[t,n]of e.evaluatedItemsByNode){let e=this.evaluatedItemsByNode.get(t);if(e)for(let t of n)e.add(t);else this.evaluatedItemsByNode.set(t,new Set(n))}}}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(let e of this.problems)e.code===qL.EnumValueMismatch&&(e.message=R(`Value is not accepted. Valid values: {0}.`,[...new Set(this.enumValues)].map(e=>JSON.stringify(e)).join(`, `)))}}mergeWarningGeneric(e,t){if(this.problems?.length)for(let n of t){let t=this.problems.filter(e=>e.problemType===n);for(let r of t){let t=e.problems?.find(e=>e.problemType===n&&r.location.offset===e.location.offset&&(n!==gz.missingRequiredPropWarning||BR(e.problemArgs,r.problemArgs)));t&&(t.problemArgs?.length&&(t.problemArgs.filter(e=>!r.problemArgs.includes(e)).forEach(e=>r.problemArgs.push(e)),r.problemType&&(r.message=wz(r.problemType,r.problemArgs??[]))),this.mergeSources(t,r))}}}mergePropertyMatch(e,t=!0){t?this.merge(e):this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){let n=(e.source??``).replace(hz,``);n&&t.source&&!t.source.includes(n)&&(t.source=t.source+` | `+n),t.schemaUri&&e.schemaUri&&!t.schemaUri.includes(e.schemaUri[0])&&(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){let t=this.hasProblems();return t===e.hasProblems()?this.enumValueMatch===e.enumValueMatch?this.propertiesValueMatches===e.propertiesValueMatches?this.primaryValueMatches===e.primaryValueMatches?this.propertiesMatches-e.propertiesMatches:this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches-e.propertiesValueMatches:e.enumValueMatch?-1:1:t?-1:1}compareKubernetes(e){let t=this.hasProblems();return this.propertiesMatches===e.propertiesMatches?this.enumValueMatch===e.enumValueMatch?this.primaryValueMatches===e.primaryValueMatches?this.propertiesValueMatches===e.propertiesValueMatches?t===e.hasProblems()?this.propertiesMatches-e.propertiesMatches:t?-1:1:this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches-e.primaryValueMatches:e.enumValueMatch?-1:1:this.propertiesMatches-e.propertiesMatches}},Sz=class{collectSeenKeys(e){let t=Object.create(null),n=[...e.properties];for(;n.length>0;){let e=n.pop();if(!e)continue;let r=e.keyNode.value;if(r===`<<`&&e.valueNode){let t=e.valueNode;switch(t.type){case`object`:n.push(...t.properties);break;case`array`:t.items.forEach(e=>{e&&e.type===`object`&&MR(e.properties)&&n.push(...e.properties)})}}else t[r]=e.valueNode}return t}validateDocument(e,t,n,r){let i=new xz(r.isKubernetes);return this.validateNode(e,n,n,i,yz.instance,r),i.problems.map(e=>{let n=F.create(t.positionAt(e.location.offset),t.positionAt(e.location.offset+e.location.length)),r=Js.create(n,e.message,e.severity,e.code?e.code:qL.Undefined,e.source);return r.data={schemaUri:e.schemaUri,...e.data},r})}getMatchingSchemas(e,t,n,r,i){let a=new vz(r,i);return this.validateNode(e,t,t,new xz(n.isKubernetes),a,n),a.schemas}getNoOpCollector(){return yz.instance}getSchemaSource(e,t){let n;if(e.title)n=e.title;else if(e.closestTitle)n=e.closestTitle;else if(t.closestTitle)n=t.closestTitle;else{let r=e.url??t.url;r&&(n=js.parse(r).toString())}return n?`${hz}${n}`:mz}getSchemaUri(e,t){let n=e.url??t.url;return n?[n]:[]}validateNode(e,t,n,r,i,a){if(e&&!(!t||typeof t!=`object`)){if(t._dialect){let o=t._dialect;if(o!==this.getCurrentDialect()){Az(o).validateNode(e,t,n,r,i,a);return}}switch(t.url||=n.url,t.closestTitle=t.title||n.closestTitle,e.type){case`object`:this.validateObjectNode(e,t,n,r,i,a);break;case`array`:this.validateArrayNode(e,t,n,r,i,a);break;case`string`:this.validateStringNode(e,t,n,r);break;case`number`:this.validateNumberNode(e,t,n,r);break;case`property`:this.validateNode(e.valueNode,t,t,r,i,a)}if(this.validateGenericNode(e,t,n,r,i,a),i.add({node:e,schema:t}),this.applyUnevaluatedItems(e,t,n,r,i,a),e.type===`object`){let o=this.collectSeenKeys(e);this.applyUnevaluatedProperties(e,t,n,r,i,a,o)}}}validateGenericNode(e,t,n,r,i,a){let{isKubernetes:o,callFromAutoComplete:s}=a,c=t=>e.type===t||t===`integer`&&e.type===`number`&&e.isInteger,l=(e,t)=>{if(t.evaluatedProperties){e.evaluatedProperties??=new Set;for(let n of t.evaluatedProperties)e.evaluatedProperties.add(n)}if(t.evaluatedItemsByNode){e.evaluatedItemsByNode??=new Map;for(let[n,r]of t.evaluatedItemsByNode){let t=e.evaluatedItemsByNode.get(n);if(t)for(let e of r)t.add(e);else e.evaluatedItemsByNode.set(n,new Set(r))}}};if(Array.isArray(t.type))t.type.some(c)||r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Incorrect type. Expected one of {0}.`,t.type.join(`, `)),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});else if(t.type&&!c(t.type)){let i=t.type===`object`?NR(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||wz(gz.typeMismatchWarning,[i]),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n),problemType:gz.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(let n of t.allOf){let s=Cz(n),c=new xz(o),l=i.newSub();this.validateNode(e,s,t,c,l,a),r.merge(c),r.propertiesMatches+=c.propertiesMatches,r.propertiesValueMatches+=c.propertiesValueMatches,i.merge(l)}let u=Cz(t.not);if(u){let s=new xz(o),c=i.newSub();this.validateNode(e,u,t,s,c,a),s.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Matches a schema that is not allowed.`),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});for(let e of c.schemas)e.inverted=!e.inverted,i.add(e)}let d=(c,u)=>{let d=[],f=[],p=[],m=null;for(let n of c){let r={...Cz(n)},c=new xz(o),l=i.newSub();this.validateNode(e,r,t,c,l,a),(!c.hasProblems()||s)&&(d.push(r),c.propertiesMatches===0&&f.push(r),r.format&&d.pop()),c.hasProblems()||p.push(c),m=m?o?this.alternativeComparison(c,m,r,l):this.genericComparison(e,u,c,m,r,l):{schema:r,validationResult:c,matchingSchemas:l}}if(d.length>1&&(d.length>1||f.length===0)&&u&&r.problems.push({location:{offset:e.offset,length:1},severity:I.Warning,message:R(`Matches multiple schemas when only one must validate.`),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),m&&(r.merge(m.validationResult),r.propertiesMatches+=m.validationResult.propertiesMatches,r.propertiesValueMatches+=m.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||m.validationResult.enumValueMatch,m.validationResult.enumValues?.length&&(r.enumValues=(r.enumValues||[]).concat(m.validationResult.enumValues)),i.merge(m.matchingSchemas)),p.length>0)for(let e of p)l(r,e)};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);let f=(t,n)=>{let s=new xz(o),c=i.newSub();this.validateNode(e,Cz(t),n,s,c,a),r.merge(s),r.propertiesMatches+=s.propertiesMatches,r.propertiesValueMatches+=s.propertiesValueMatches,i.merge(c)},p=(s,c,u,d)=>{let p=Cz(s),m=new xz(o),h=i.newSub();this.validateNode(e,p,c,m,h,a),i.merge(h);let g=p?.filePatternAssociation;g&&(new GR(g).matchesPattern(a.uri)||m.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`filePatternAssociation '{0}' does not match with doc uri '{1}'`,g,a.uri),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})),m.hasProblems()?d&&f(d,c):(l(r,m),u&&f(u,c))},m=Cz(t.if);if(m&&p(m,t,Cz(t.then),Cz(t.else)),Array.isArray(t.enum)){let i=CR(e),a=!1;for(let n of t.enum)if(DR(i,n,e.type)||Tz(s,e,i,n)){a=!0;break}r.enumValues=t.enum,r.enumValueMatch=a,a||r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,code:qL.EnumValueMismatch,message:t.errorMessage||R(`Value is not accepted. Valid values: {0}.`,(t.enum??[]).map(e=>JSON.stringify(e)).join(`, `)),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n),data:{values:t.enum}})}if(kR(t.const)){let i=CR(e),a=t.const;!DR(i,a,e.type)&&!Tz(s,e,i,a)?(r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,code:qL.EnumValueMismatch,problemType:gz.constWarning,message:t.errorMessage||wz(gz.constWarning,[JSON.stringify(a)]),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n),problemArgs:[JSON.stringify(a)],data:{values:[a]}}),r.enumValueMatch=!1):r.enumValueMatch=!0,r.enumValues=[a]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:I.Warning,message:t.deprecationMessage,source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}validateStringNode(e,t,n,r){let i=e.value;if(OR(t.minLength)&&i.length<(t.minLength??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`String is shorter than the minimum length of {0}.`,t.minLength),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(t.maxLength)&&i.length>(t.maxLength??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`String is longer than the maximum length of {0}.`,t.maxLength),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),jR(t.pattern)){let a=UR(t.pattern);a?a.test(i)||r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.patternErrorMessage||t.errorMessage||R(`String does not match the pattern of "{0}".`,t.pattern),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}):r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Invalid pattern: "{0}"`,t.pattern),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}if(t.format)switch(t.format){case`uri`:case`uri-reference`:{let a;if(!i)a=R(`URI expected.`);else try{!js.parse(i).scheme&&t.format===`uri`&&(a=R(`URI with a scheme is expected.`))}catch(e){a=e instanceof Error?e.message:String(e)}a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.patternErrorMessage||t.errorMessage||R(`String is not a URI: {0}`,a),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});break}case`color-hex`:case`date-time`:case`date`:case`time`:case`email`:case`ipv4`:case`ipv6`:{let a=bz[t.format];(!i||!a.pattern.test(i))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.patternErrorMessage||t.errorMessage||R(a.errorMessage),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});break}}}validateNumberNode(e,t,n,r){let i=e.value;OR(t.multipleOf)&&KR(i,t.multipleOf??0)!==0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Value is not divisible by {0}.`,t.multipleOf),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});let a=this.getNumberLimits(t);OR(a.exclusiveMinimum)&&i<=a.exclusiveMinimum&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Value is below the exclusive minimum of {0}.`,a.exclusiveMinimum),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(a.exclusiveMaximum)&&i>=a.exclusiveMaximum&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Value is above the exclusive maximum of {0}.`,a.exclusiveMaximum),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(a.minimum)&&i<a.minimum&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Value is below the minimum of {0}.`,a.minimum),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(a.maximum)&&i>a.maximum&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Value is above the maximum of {0}.`,a.maximum),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}validateArrayNode(e,t,n,r,i,a){let{isKubernetes:o}=a,s=e.items??[],c=t.items?r.getEvaluatedItems(e):void 0;if(Array.isArray(t.items)){let l=t.items;for(let e=0;e<l.length;e++){let n=Cz(l[e]),u=new xz(o),d=s[e];d?(this.validateNode(d,n,t,u,i,a),r.mergePropertyMatch(u,!1),r.mergeEnumValues(u),c?.add(e)):s.length>=l.length&&r.propertiesValueMatches++}if(s.length>l.length){let u=t.additionalItems;if(u===!1){r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Array has too many items according to schema. Expected {0} or fewer.`,l.length),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});for(let e=l.length;e<s.length;e++)c?.add(e)}else if(typeof u==`object`)for(let e=l.length;e<s.length;e++){let n=new xz(o);this.validateNode(s[e],u,t,n,i,a),r.mergePropertyMatch(n,!1),r.mergeEnumValues(n),c?.add(e)}else if(u===!0)for(let e=l.length;e<s.length;e++)c?.add(e)}}else{let n=Cz(t.items);if(n){let c=r.getEvaluatedItems(e);for(let e=0;e<s.length;e++){let l=s[e],u=new xz(o);this.validateNode(l,n,t,u,i,a),r.mergePropertyMatch(u,!1),r.mergeEnumValues(u),c.add(e)}}}this.applyContains(e,t,n,r,i,a),this.applyArrayLength(e,t,n,r,a),this.applyUniqueItems(e,t,n,r)}applyContains(e,t,n,r,i,a){let{isKubernetes:o}=a,s=Cz(t.contains);s&&((e.items??[]).some(e=>{let n=new xz(o);return this.validateNode(e,s,t,n,yz.instance,a),!n.hasProblems()})||r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Array does not contain required item.`),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}))}applyArrayLength(e,t,n,r,i){OR(t.minItems)&&e.items.length<(t.minItems??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Array has too few items. Expected {0} or more.`,t.minItems),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(t.maxItems)&&e.items.length>(t.maxItems??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Array has too many items. Expected {0} or fewer.`,t.maxItems),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}applyUniqueItems(e,t,n,r){if(t.uniqueItems===!0){let i=CR(e);Array.isArray(i)&&i.some((e,t)=>t!==i.lastIndexOf(e))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Array has duplicate items.`),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}}validateObjectNode(e,t,n,r,i,a){let o=Object.create(null),s=[],c=[...e.properties];for(;c.length>0;){let e=c.pop();if(!e)continue;let t=e.keyNode.value;if(t===`<<`&&e.valueNode)switch(e.valueNode.type){case`object`:c.push(...e.valueNode.properties);break;case`array`:e.valueNode.items.forEach(e=>{e&&e.type===`object`&&MR(e.properties)&&c.push(...e.properties)})}else o[t]=e.valueNode,s.push(t)}let l=e=>{let t=s.indexOf(e);for(;t>=0;)s.splice(t,1),t=s.indexOf(e)};this.applyRequired(e,t,n,r,a,o),this.applyProperties(e,t,n,r,i,a,o,s,l),this.applyPatternProperties(e,t,n,r,i,a,o,s,l),this.applyAdditionalProperties(e,t,n,r,i,a,o,s),this.applyPropertyCount(e,t,n,r),this.applyDependencies(e,t,n,r,i,a,o),this.applyPropertyNames(e,t,r,a)}applyRequired(e,t,n,r,i,a){if(Array.isArray(t.required)){for(let i of t.required)if(a[i]===void 0){let a=e.parent&&e.parent.type===`property`&&e.parent.keyNode,o=a?{offset:a.offset,length:a.length}:{offset:e.offset,length:1};r.problems.push({location:o,severity:I.Warning,message:t.errorMessage||wz(gz.missingRequiredPropWarning,[i]),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n),problemArgs:[i],problemType:gz.missingRequiredPropWarning})}}}applyProperties(e,t,n,r,i,a,o,s,c){let{isKubernetes:l}=a,u=t.properties;if(u)for(let e of Object.keys(u)){c(e);let s=u[e],d=o[e];if(d){if(r.evaluatedProperties??=new Set,r.evaluatedProperties.add(e),AR(s)){if(s)r.propertiesMatches++,r.propertiesValueMatches++;else{let i=d.parent;r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:I.Warning,message:t.errorMessage||R(`Property {0} is not allowed.`,e),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}}else{s.url=t.url??n.url;let e=new xz(l);this.validateNode(d,s,t,e,i,a),r.mergePropertyMatch(e,!1),r.mergeEnumValues(e)}}}}applyPatternProperties(e,t,n,r,i,a,o,s,c){let{isKubernetes:l}=a,u=t.patternProperties;if(u)for(let e of Object.keys(u)){let d=UR(e);if(d)for(let f of s.slice(0)){if(!d.test(f))continue;c(f);let s=o[f];if(!s)continue;r.evaluatedProperties??=new Set,r.evaluatedProperties.add(f);let p=u[e];if(AR(p)){if(p)r.propertiesMatches++,r.propertiesValueMatches++;else{let e=s.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:I.Warning,message:t.errorMessage||R(`Property {0} is not allowed.`,f),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}}else{let e=new xz(l);this.validateNode(s,p,t,e,i,a),r.mergePropertyMatch(e,!1),r.mergeEnumValues(e)}}}}applyAdditionalProperties(e,t,n,r,i,a,o,s){let{isKubernetes:c}=a,l=t.additionalProperties;if(typeof l==`object`){for(let e of s){let n=o[e];if(!n)continue;r.evaluatedProperties??=new Set,r.evaluatedProperties.add(e);let s=new xz(c);this.validateNode(n,l,t,s,i,a),r.mergePropertyMatch(s,!1),r.mergeEnumValues(s)}return}if(l===!0){if(s.length>0){r.evaluatedProperties??=new Set;for(let e of s)o[e]&&r.evaluatedProperties.add(e)}return}if(!(l===!1||t.type===`object`&&l===void 0&&a.disableAdditionalProperties===!0)||s.length===0)return;let u=t.properties&&Object.entries(t.properties).filter(([e,t])=>!(o[e]||t&&typeof t==`object`&&(t.doNotSuggest||t.deprecationMessage))).map(([e])=>e);for(let e of s){let i=o[e];if(!i)continue;let a=i.type===`property`?i:i.parent??i;a.type===`object`&&(a=a.properties[0]??a);let s=a.type===`property`?a.keyNode:a,c={location:{offset:s.offset,length:s.length},severity:I.Warning,code:qL.PropertyExpected,message:t.errorMessage||R(`Property {0} is not allowed.`,e),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)};u?.length&&(c.data={properties:u}),r.problems.push(c)}}applyPropertyCount(e,t,n,r){OR(t.maxProperties)&&e.properties.length>(t.maxProperties??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Object has more properties than limit of {0}.`,t.maxProperties),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),OR(t.minProperties)&&e.properties.length<(t.minProperties??0)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Object has fewer properties than the required number of {0}`,t.minProperties),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}applyDependencies(e,t,n,r,i,a,o){let{isKubernetes:s}=a,c=t.dependencies;if(c)for(let l of Object.keys(c)){if(!o[l])continue;let u=c[l];if(Array.isArray(u))for(let i of u)o[i]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Object is missing property {0} required by property {1}.`,i,l),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});else{let n=Cz(u);if(n){let o=new xz(s);this.validateNode(e,n,t,o,i,a),r.mergePropertyMatch(o),r.mergeEnumValues(o)}}}}applyPropertyNames(e,t,n,r){let i=Cz(t.propertyNames);if(i)for(let a of e.properties){let e=a.keyNode;e&&this.validateNode(e,i,t,n,yz.instance,r)}}applyUnevaluatedProperties(e,t,n,r,i,a,o,s){}applyUnevaluatedItems(e,t,n,r,i,a){}alternativeComparison(e,t,n,r){let i=e.compareKubernetes(t.validationResult);return i>0?{schema:n,validationResult:e,matchingSchemas:r}:(i===0&&(t.matchingSchemas.merge(r),t.validationResult.mergeEnumValues(e)),t)}genericComparison(e,t,n,r,i,a){if(!t&&!n.hasProblems()&&!r.validationResult.hasProblems())r.matchingSchemas.merge(a),r.validationResult.propertiesMatches+=n.propertiesMatches,r.validationResult.propertiesValueMatches+=n.propertiesValueMatches;else{let o=n.compareGeneric(r.validationResult);o>0||o===0&&t&&r.schema.type===`object`&&e.type!==`null`&&e.type!==r.schema.type?r={schema:i,validationResult:n,matchingSchemas:a}:(o===0||(e.value===null||e.type===`null`)&&e.length===0)&&this.mergeValidationMatches(r,a,n)}return r}mergeValidationMatches(e,t,n){e.matchingSchemas.merge(t),e.validationResult.mergeEnumValues(n),e.validationResult.mergeWarningGeneric(n,[gz.missingRequiredPropWarning,gz.typeMismatchWarning,gz.constWarning])}};function Cz(e){if(e!==void 0)return AR(e)?e?{}:{not:{}}:typeof e==`object`?e:(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),{type:e})}function wz(e,t){return R(_z[e],t.join(` | `))}function Tz(e,t,n,r){return e?n===null&&t.length===0||jR(n)&&jR(r)&&r.startsWith(n):!1}var Ez=class extends Sz{getCurrentDialect(){return SR.draft04}getNumberLimits(e){let t=OR(e.minimum)?e.minimum:void 0,n=OR(e.maximum)?e.maximum:void 0,r=AR(e.exclusiveMinimum)&&e.exclusiveMinimum?t:void 0,i=AR(e.exclusiveMaximum)&&e.exclusiveMaximum?n:void 0;return{minimum:r===void 0?t:void 0,maximum:i===void 0?n:void 0,exclusiveMinimum:r,exclusiveMaximum:i}}},Dz=class extends Sz{getCurrentDialect(){return SR.draft07}getNumberLimits(e){let t=OR(e.minimum)?e.minimum:void 0,n=OR(e.maximum)?e.maximum:void 0,r=OR(e.exclusiveMinimum)?e.exclusiveMinimum:void 0,i=OR(e.exclusiveMaximum)?e.exclusiveMaximum:void 0;return{minimum:r===void 0?t:void 0,maximum:i===void 0?n:void 0,exclusiveMinimum:r,exclusiveMaximum:i}}},Oz=class extends Dz{getCurrentDialect(){return SR.draft2019}applyContains(e,t,n,r,i,a){let o=Cz(t.contains);if(!o)return;let s=t.minContains,c=t.maxContains,l=OR(s)?s:1,u=OR(c)?c:void 0,d=0,f=e.items??[];for(let e of f){let n=new xz(a.isKubernetes);if(this.validateNode(e,o,t,n,this.getNoOpCollector(),a),!n.hasProblems()&&(d++,u!==void 0&&d>u))break}d<l&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Array has too few items matching "contains". Expected {0} or more.`,l),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),u!==void 0&&d>u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Array has too many items matching "contains". Expected {0} or fewer.`,u),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}applyDependencies(e,t,n,r,i,a,o){super.applyDependencies(e,t,n,r,i,a,o);let s=t.dependentRequired;if(s&&typeof s==`object`)for(let i of Object.keys(s)){if(!o[i])continue;let a=s[i];if(Array.isArray(a))for(let s of a)o[s]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Object is missing property {0} required by property {1}.`,s,i),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}let c=t.dependentSchemas;if(c&&typeof c==`object`)for(let n of Object.keys(c)){if(!o[n])continue;let s=Cz(c[n]);if(!s)continue;let l=new xz(a.isKubernetes);this.validateNode(e,s,t,l,i,a),r.mergePropertyMatch(l),r.mergeEnumValues(l)}}applyUnevaluatedProperties(e,t,n,r,i,a,o){let s=t.unevaluatedProperties;if(s===void 0||!o)return;r.evaluatedProperties??=new Set;let c=Object.keys(o).filter(e=>!r.evaluatedProperties?.has(e));if(c.length===0)return;if(s===!1){for(let e of c){let i=o[e];if(!i)continue;let a=(i.type===`property`?i:i.parent).keyNode;a&&(r.problems.push({location:{offset:a.offset,length:a.length},severity:I.Warning,code:qL.PropertyExpected,message:t.errorMessage||R(`Property {0} is not allowed.`,e),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),r.evaluatedProperties?.add(e))}return}if(s===!0){for(let e of c)r.evaluatedProperties?.add(e);return}let l=Cz(s);if(l)for(let e of c){let n=o[e];if(!n)continue;let s=n.type===`property`?n.valueNode:n;if(!s)continue;let c=new xz(a.isKubernetes);this.validateNode(s,l,t,c,i,a),r.mergePropertyMatch(c),r.mergeEnumValues(c),r.evaluatedProperties?.add(e)}}applyUnevaluatedItems(e,t,n,r,i,a){let o=t.unevaluatedItems;if(o===void 0)return;let s=e.items??[];if(s.length===0)return;let c=r.getEvaluatedItems(e),l=[];for(let e=0;e<s.length;e++)c.has(e)||l.push(e);if(l.length===0)return;if(o===!1){for(let e of l){let i=s[e];r.problems.push({location:{offset:i.offset,length:i.length||1},severity:I.Warning,code:qL.PropertyExpected,message:t.errorMessage||R(`Array has too many items according to schema. Expected {0} or fewer.`,e),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),c.add(e)}return}if(o===!0){for(let e of l)c.add(e);return}let u=Cz(o);if(u)for(let e of l){let n=s[e],o=new xz(a.isKubernetes);this.validateNode(n,u,t,o,i,a),r.merge(o),r.mergeEnumValues(o),c.add(e)}}},kz=class extends Oz{getCurrentDialect(){return SR.draft2020}validateArrayNode(e,t,n,r,i,a){let o=e.items??[],s=r.getEvaluatedItems(e),c=t.prefixItems;if(Array.isArray(c)){let e=Math.min(c.length,o.length);for(let n=0;n<e;n++){let e=Cz(c[n]);if(!e){s.add(n);continue}let l=new xz(a.isKubernetes);this.validateNode(o[n],e,t,l,i,a),r.mergePropertyMatch(l,!1),r.mergeEnumValues(l),s.add(n)}}let l=t.items,u=Array.isArray(c)?c.length:0;if(o.length>u){if(l===!1){r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:R(`Array has too many items according to schema. Expected {0} or fewer.`,u),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)});for(let e=u;e<o.length;e++)s.add(e)}else{let e=Cz(l);if(e)for(let n=u;n<o.length;n++){let c=new xz(a.isKubernetes);this.validateNode(o[n],e,t,c,i,a),r.mergePropertyMatch(c,!1),r.mergeEnumValues(c),s.add(n)}}}this.applyContains(e,t,n,r,i,a),this.applyArrayLength(e,t,n,r,a),this.applyUniqueItems(e,t,n,r)}applyContains(e,t,n,r,i,a){let o=Cz(t.contains);if(!o)return;let s=e.items??[],c=t.minContains,l=t.maxContains,u=OR(c)?c:1,d=OR(l)?l:void 0,f=0,p=r.getEvaluatedItems(e);for(let e=0;e<s.length;e++){let n=new xz(a.isKubernetes);if(this.validateNode(s[e],o,t,n,this.getNoOpCollector(),a),!n.hasProblems()&&(p.add(e),f++,d!==void 0&&f>d))break}f<u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Array has too few items matching "contains". Expected {0} or more.`,u),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)}),d!==void 0&&f>d&&r.problems.push({location:{offset:e.offset,length:e.length},severity:I.Warning,message:t.errorMessage||R(`Array has too many items matching "contains". Expected {0} or fewer.`,d),source:this.getSchemaSource(t,n),schemaUri:this.getSchemaUri(t,n)})}};function Az(e){switch(e){case SR.draft04:return new Ez;case SR.draft07:return new Dz;case SR.draft2019:return new Oz;case SR.draft2020:return new kz;default:return new Dz}}var jz=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){let t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){let i=r.children;for(let r=0;r<i.length&&i[r].offset<=e;r++){let e=n(i[r]);e&&t.push(e)}return r}return null},r=n(this),i=Number.MAX_VALUE,a=null;for(let n of t){let t=n.length+n.offset-e+(e-n.offset);t<i&&(a=n,i=t)}return a||r}get children(){return[]}toString(){return`type: `+this.type+` (`+this.offset+`/`+this.length+`)`+(this.parent?` parent: {`+this.parent.toString()+`}`:``)}},Mz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`null`,this.value=null}},Nz=class extends jz{constructor(e,t,n,r,i,a){super(e,t,i,a),this.type=`boolean`,this.value=n,this.source=r}},Pz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`array`,this.items=[]}get children(){return this.items}},Fz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`number`,this.isInteger=!0,this.value=NaN}},Iz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`string`,this.value=``}},Lz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`property`,this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Rz=class extends jz{constructor(e,t,n,r){super(e,t,n,r),this.type=`object`,this.properties=[]}get children(){return this.properties}},zz;(function(e){e[e.Key=0]=`Key`,e[e.Enum=1]=`Enum`})(zz||={});var Bz=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return TR(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){let t=n=>{let r=e(n),i=n.children;if(Array.isArray(i))for(let e=0;e<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t){return!this.root||!t?null:Az(t._dialect).validateDocument(this.root,e,t,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri})}getMatchingSchemas(e,t=-1,n=null,r){return!this.root||!e?[]:Az(e._dialect).getMatchingSchemas(this.root,e,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r},t,n)}},Vz={maxRefCount:1e3,currentRefDepth:0,aliasResolutionCache:new Map};function Hz(e,t,n,r){if(e||(Vz.currentRefDepth=0,Vz.aliasResolutionCache=new Map),!t)return null;if(Ll(t))return Uz(t,e,n,r);if(Rl(t))return Wz(t,e,n,r);if(zl(t))return Gz(t,e,n,r);if(z(t))return Kz(t,e);if(Fl(t)&&Vz.currentRefDepth<Vz.maxRefCount)return qz(t,e,n,r)}function Uz(e,t,n,r){let i;i=e.flow&&!e.range?Xz(e):e.range;let a=new Rz(t,e,...Yz(i,r));for(let t of e.items)Rl(t)&&a.properties.push(Hz(a,t,n,r));return a}function Wz(e,t,n,r){let i=e.key,a=e.value,o=i.range[0],s=i.range[1],c=i.range[2];a&&(s=a.range[1],c=a.range[2]);let l=new Lz(t,e,...Yz([o,s,c],r));if(Fl(i)){let e=new Iz(t,i,...Jz(i.range));e.value=i.source,l.keyNode=e}else l.keyNode=Hz(l,i,n,r);return l.valueNode=Hz(l,a,n,r),l}function Gz(e,t,n,r){let i=new Pz(t,e,...Jz(e.range));for(let t of e.items)if(Vl(t)){let e=Hz(i,t,n,r);e&&i.children.push(e)}return i}function Kz(e,t){if(e.value===null)return new Mz(t,e,...Jz(e.range));switch(typeof e.value){case`string`:{let n=new Iz(t,e,...Jz(e.range));return n.value=e.value,n}case`boolean`:return new Nz(t,e,e.value,e.source,...Jz(e.range));case`number`:{let n=new Fz(t,e,...Jz(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{let n=new Iz(t,e,...Jz(e.range));return n.value=e.source,n}}}function qz(e,t,n,r){if(Vz.aliasResolutionCache.has(e))return Vz.aliasResolutionCache.get(e);Vz.currentRefDepth++;let i=e.resolve(n),a;if(i)a=Hz(t,i,n,r);else{let n=new Iz(t,e,...Jz(e.range));n.value=e.source,a=n}return Vz.currentRefDepth--,Vz.aliasResolutionCache.set(e,a),a}function Jz(e){return[e[0],e[1]-e[0]]}function Yz(e,t){let n=t.linePos(e[0]),r=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return n.line!==r.line&&(t.lineStarts.length!==r.line||r.col===1)&&i[1]--,i}function Xz(e){let t=2**53-1,n=0;for(let r of e.items)Rl(r)&&(Vl(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),Vl(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function Zz(e,t){let n;if(Kl(e,(e,r,i)=>{if(r===t)return n=i[i.length-1],Kl.BREAK}),!Il(n))return n}function Qz(e){if(e.items.length>1)return!1;let t=e.items[0];return z(t.key)&&z(t.value)&&t.key.value===``&&!t.value.value}function $z(e,t){for(let[n,r]of e.items.entries())if(t===r)return n}function eB(e,t){let n=!1;for(let r of e){if(r.type===`document`)nB([],r,e=>{if(tB(e)&&e.value?.type===`comment`){if(r.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,Kl.BREAK}else if(e.type===`comment`&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,Kl.BREAK});else if(r.type===`comment`&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function tB(e){return e.start!==void 0}function nB(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=nB(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Kl.BREAK)return Kl.BREAK;else r===Kl.REMOVE&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}let i=t.sep;if(i)for(let t=0;t<i.length;++t){let r=nB(Object.freeze(e),i[t],n);if(typeof r==`number`)t=r-1;else if(r===Kl.BREAK)return Kl.BREAK;else r===Kl.REMOVE&&(i.items.splice(t,1),--t)}return typeof r==`function`?r(t,e):r}var rB=class e extends Bz{constructor(e){super(null,[]),this.lineCounter=e}clone(){let t=new e(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
374
- `).forEach(e=>this._lineComments.push(`#${e}`)),Kl(this.internalDocument,(e,t)=>{t?.commentBefore&&(t?.commentBefore.split(`
375
- `)).forEach(e=>this._lineComments.push(`#${e}`)),t?.comment&&this._lineComments.push(`#${t.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=Hz(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(e){this._internalDocument=e,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(oB)}get warnings(){return this.internalDocument.warnings.map(oB)}getNodeFromPosition(e,t,n){let r=t.getPosition(e),i=t.getLineContent(r.line);if(i.trim().length===0)return[this.findClosestNode(e,t,n),!0];let a=i.substring(r.character).match(/^([ ]+)\n?$/),o=!!a,s=a?.[1].length,c;return Kl(this.internalDocument,(t,n)=>{if(!n)return;let r=n.range;if(r){if(r[0]<=e&&r[1]>=e||o&&e+s===r[2]&&z(n)&&n.value===null)c=n;else return Kl.SKIP}}),[c,!1]}findClosestNode(e,t,n){let r=this.internalDocument.range[2],i=this.internalDocument.range[0],a;Kl(this.internalDocument,(t,n)=>{if(!n)return;let o=n.range;if(!o)return;let s=o[1]-e;i<=o[0]&&s<=0&&Math.abs(s)<=r&&(r=Math.abs(s),i=o[0],a=n)});let o=t.getPosition(e),s=HR(t.getLineContent(o.line),o.character);return z(a)&&a.value===null||s===o.character&&(a=this.getProperParentByIndentation(s,a,t,``,n)),a}getProperParentByIndentation(e,t,n,r,i,a){if(!t)return this.internalDocument.contents;if(i||=2,Vl(t)&&t.range){let o=n.getPosition(t.range[0]),s=n.getLineContent(o.line);if(r=r===``?s.trim():r,r.startsWith(`-`)&&e===i&&r===s.trim()&&(o.character+=e),o.character>e&&o.character>0){let o=this.getParent(t);if(o)return this.getProperParentByIndentation(e,o,n,r,i,a)}else if(o.character<e){let e=this.getParent(t);if(Rl(e)&&Vl(e.value))return e.value;if(Rl(a)&&Vl(a.value))return a.value}else return t}else if(Rl(t)){a=t;let o=this.getParent(t);return this.getProperParentByIndentation(e,o,n,r,i,a)}return t}getParent(e){return Zz(this.internalDocument,e)}},iB=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},aB=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??dB,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){let r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new iB([],[]),parserOptions:dB});let i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!BR(i.parserOptions.customTags,t.customTags)){let r=e.getText();n&&!/\S/.test(r)&&(r=`{${r}}`),i.document=fB(r,t,e),i.version=e.version,i.parserOptions=t}}};function oB(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:qL.Undefined}}var sB=class{constructor(e,t){this.tag=e,this.type=t}get collection(){if(this.type===`mapping`)return`map`;if(this.type===`sequence`)return`seq`}resolve(e){if(Ll(e)&&this.type===`mapping`||zl(e)&&this.type===`sequence`||typeof e==`string`&&this.type===`scalar`)return e}},cB=class{constructor(){this.tag=`!include`,this.type=`scalar`}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t(`!include without value`)}};function lB(e){let t=[],n=zR(e);for(let e of n){let n=e.split(` `),r=n[0],i=n[1]&&n[1].toLowerCase()||`scalar`;t.push(new sB(r,i))}return t.push(new cB),t}var uB=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){let t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){let t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return``;let n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(F.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},dB={customTags:[],yamlVersion:`1.2`};function fB(e,t=dB,n){let r=new Hf({strict:!1,customTags:lB(t.customTags),version:t.yamlVersion??dB.yamlVersion,keepSourceTokens:!0}),i=new sp,a=!1;if(n){let t=new uB(n),r=t.getPosition(e.length);a=t.getLineContent(r.line).trim().length===0}let o=(a?new hp:new hp(i.addNewLine)).parse(e),s=Array.from(o),c=r.compose(s,!0,e.length);return new iB(Array.from(c,e=>pB(e,i)),s)}function pB(e,t){let n=new rB(t);return n.internalDocument=e,n}function mB(e){if(e instanceof rB){let t=e.lineComments.find(e=>hB(e));if(t!=null){let e=t.match(/\$schema(?:=|:\s*)(\S+)/);if(e!==null&&e.length===2)return e[1]}}}function hB(e){let t=e.match(/^#\s+(?:yaml-language-server\s*:|\$schema:)/g);return t!==null&&t.length===1}function gB(){return!0}var _B=class{compile(){return gB}defaultMeta(){return`http://json-schema.org/draft-07/schema`}},vB=class extends _B{defaultMeta(){return`http://json-schema.org/draft-04/schema`}},yB=class extends _B{defaultMeta(){return`https://json-schema.org/draft/2019-09/schema`}},bB=class extends _B{defaultMeta(){return`https://json-schema.org/draft/2020-12/schema`}},xB=`https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.32.1-standalone-strict/`,SB=xB+`all.json`,CB=`https://raw.githubusercontent.com/datreeio/CRDs-catalog/main`;function wB(e){let t=new Map;return e&&(e.url?e.url.startsWith(`schemaservice://combinedSchema/`)?TB(e,t):t.set(e.url,e):TB(e,t)),t}function TB(e,t){e.allOf&&EB(e.allOf,t),e.anyOf&&EB(e.anyOf,t),e.oneOf&&EB(e.oneOf,t)}function EB(e,t){for(let n of e)!AR(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}function DB(e,t,n){let r=AB(e);if(!r||!r.group||!r.version||!r.kind)return;let i=OB(r,t);if(i)return i;let a=kB(r,n);if(a)return a}function OB(e,t){let{group:n,version:r,kind:i}=e,a=`io.k8s.api.${n.replace(`.k8s.io`,``).replace(`rbac.authorization`,`rbac`).toLowerCase()}.${r.toLowerCase()}.${i.toLowerCase()}`,o=(t.schema.oneOf||[]).map(e=>{if(typeof e!=`boolean`)return e._$ref||e.$ref}).find(e=>e?e.replace(`_definitions.json#/definitions/`,``).toLowerCase()===a:!1);if(o)return xB+o}function kB(e,t){let{group:n,version:r,kind:i}=e;return`io.k8s.api.${n.replace(`.k8s.io`,``).replace(`rbac.authorization`,`rbac`).toLowerCase()}.${r.toLowerCase()}.${i.toLowerCase()}`.includes(`openshift.io`)?`${t}/openshift/v4.15-strict/${i.toLowerCase()}_${n.toLowerCase()}_${r.toLowerCase()}.json`:`${t}/${n.toLowerCase()}/${i.toLowerCase()}_${r.toLowerCase()}.json`}function AB(e){if(e instanceof rB)try{let t=e.root.internalNode.toJSON();if(!t)return;let n=t.apiVersion;if(!n)return;let[r,i]=n.split(`/`);if(!r||!i)return;let a=t.kind;return a?{group:r,version:i,kind:a}:void 0}catch(e){console.error(`Error parsing YAML document:`,e);return}}var jB=new vB({allErrors:!0}),MB=new _B({allErrors:!0}),NB=new yB({allErrors:!0}),PB=new bB({allErrors:!0}),FB=RL(),IB=void 0,LB=RL(),RB=RL(),zB=RL(),BB=jB.compile(FB),VB=MB.compile(IB),HB=NB.compile(LB),UB=PB.compile(RB),WB=new Map,GB=new Map,KB=new Map([[`zh-cn`,`zh`],[`zh-tw`,`zh-TW`]]),qB=new Set(`$ref._$ref.$schema.$id.id._baseUri._sourceUri._dialect.$anchor.$dynamicAnchor.$dynamicRef.$recursiveAnchor.$recursiveRef.definitions.$defs.$comment.title.description.markdownDescription.$vocabulary.examples.default.url.closestTitle.unevaluatedProperties.unevaluatedItems`.split(`.`)),JB;(function(e){e[e.delete=0]=`delete`,e[e.add=1]=`add`,e[e.deleteAll=2]=`deleteAll`})(JB||={});var YB=class extends _R{constructor(e,t,n,r){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map,this.yamlSettings=r}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){let e=[],t=new Set;for(let n of this.filePatternAssociations){let r=n.uris[0];if(t.has(r))continue;t.add(r);let i={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){let{name:e,description:t,versions:n}=this.schemaUriToNameAndDescription.get(r);i.name=e,i.description=t,i.fromStore=!0,i.versions=n}e.push(i)}return e}collectSchemaNodes(e,...t){let n=t=>{if(!(!t||typeof t!=`object`)){if(Array.isArray(t)){for(let e of t)n(e);return}e(t)}};for(let e of t)n(e)}schemaMapValues(e){if(!(!e||typeof e!=`object`))return Object.values(e)}async resolveSchemaContent(e,t,n){let r=e.errors.slice(0),i=XB(t),a=e.schema;if(a===null||Array.isArray(a)||typeof a!=`object`&&typeof a!=`boolean`){let e=a===null?`null`:Array.isArray(a)?`array`:typeof a;return r.push(R(`Schema '{0}' is not valid: {1}`,i,`expected a JSON Schema object or boolean, got "${e}".`)),new gR({},r)}let o=(e,t)=>{!e||typeof e!=`object`||!t||(e._sourceUri=t)},s=(e,t,n)=>{if(typeof e!=`object`||!e)return e;if(n){let r=n(e,t.size);if(r!==void 0)return r}if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=[];t.set(e,r);for(let i of e)r.push(s(i,t,n));return r}let r={};t.set(e,r);for(let i in e)r[i]=s(e[i],t,n);return o(r,e._sourceUri),r},c=this.loadSchema.bind(this),l=this.yamlSettings?.locale;async function u(e,t){if(!e||typeof e!=`object`)return;let n=await nV(e.$schema,c);n&&(e._dialect=n);let a=rV(n);if(!a)return;let o=e;if(t&&(o=s(e,new Map,(e,t)=>{if(t!==0&&e&&typeof e==`object`&&e.$schema)return{}})),!a(o)){tV(a.errors,l);let e=[];for(let t of a.errors)e.push(`${t.instancePath} : ${t.message}`);r.push(R(`Schema '{0}' is not valid: {1}`,i,`
376
- ${e.join(`
377
- `)}`))}}let d=new Map,f=e=>{let t=d.get(e);return t||(t={fragments:new Map},d.set(e,t)),t},p=(e,t)=>{let n=d.get(t);if(!n||n.fragments.size===0)return e;let r=e;for(let[i,a]of n.fragments){if(!a.dynamic)continue;let n=r?.get(i)??[];n.some(e=>e._baseUri===t)||(r===e&&(r=e?new Map(e):new Map),r.set(i,n.concat(a.node)))}return r},m=(e,t)=>this.contextService?this.contextService.resolveRelativePath(t,e):this.normalizeId(t),h=async(e,t)=>{let n=[{node:e,baseUri:t,sourceUri:t}],r=[],i=new WeakMap,a=new Set;for(;n.length;){let e=n.pop();if(!e)continue;let t=e.node;if(!t||typeof t!=`object`||a.has(t))continue;a.add(t);let s=e.baseUri;o(t,e.sourceUri);let c=t.$id||t.id;if(c){let e=m(s,c);t._baseUri=e;let n=e.indexOf(`#`);if(n!==-1&&n<e.length-1){let r=e.slice(n+1);f(s).fragments.set(r,{node:t})}else{s=e;let n=f(e);n.root||=t}}t.$anchor&&f(s).fragments.set(t.$anchor,{node:t}),t.$dynamicAnchor&&(t._baseUri=s,f(s).fragments.set(t.$dynamicAnchor,{node:t,dynamic:!0}));let l=[];i.set(t,l),this.collectSchemaNodes(t=>{l.push(t),n.push({node:t,baseUri:s,sourceUri:e.sourceUri})},t.not,t.if,t.then,t.else,t.contains,t.propertyNames,t.additionalProperties,t.items,t.additionalItems,t.prefixItems,this.schemaMapValues(t.properties),this.schemaMapValues(t.patternProperties),this.schemaMapValues(t.definitions),this.schemaMapValues(t.$defs),this.schemaMapValues(t.dependentSchemas),this.schemaMapValues(t.dependencies),t.allOf,t.anyOf,t.oneOf,t.schemaSequence),r.push(t)}let s=new WeakMap;for(;r.length;){let t=r.pop(),n=!1;for(let e of i.get(t))if(e.$schema||s.get(e)){n=!0;break}s.set(t,n),(t===e||t.$schema)&&await u(t,n)}},g=a,_=e.uri??t;await h(g,_);let v=(e,t,n)=>{if(!t)return e;if(t[0]===`/`){let n=e,r=t.substr(1).split(`/`);for(let e of r)if(n=n?.[e.replace(/~1/g,`/`).replace(/~0/g,`~`)],n===null)return;return n}return f(n).fragments.get(t).node},y=(e,t,n,i,a=!1)=>{let c=v(t,i,n);if(typeof c==`boolean`){c||(e.not={});return}if(typeof c==`object`&&c){let t=a?s(c,new Map):c;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n]);o(e,t._sourceUri);return}r.push(R(`$ref '{0}' in '{1}' cannot be resolved.`,i,n))},b=(e,t)=>{let n=m(e,t);if(!t.startsWith(`/`))return n;let r=d.get(e)?.root,i=r?.$id||r?.id;if(!i)return n;let a=m(e,i);return!a.startsWith(`http://`)&&!a.startsWith(`https://`)?n:m(a,t)},x=(e,t)=>{try{let n=js.parse(e),r=js.parse(t);if(n.scheme!==`file`||r.scheme!==`http`&&r.scheme!==`https`)return;let i=pl.basename(r.path);if(!i)return;let a=pl.dirname(n.path),o=pl.join(a,i);return n.with({path:o,query:r.query,fragment:r.fragment}).toString()}catch{return}},S=(e,t,n,i,a,o,s,c,l)=>{let u=(e,t,n,r,i,a,o,s,c)=>{i[n]=!0,y(e,t,n,r,!!c||!!s),(!s||!e._baseUri)&&(e._baseUri=n),e.url=n;let l=new Set(o);return l.add(n),C(e,t,n,a,l,s,c)},f=(t,i=0)=>{let a=t[i],p=d.get(a)?.root;if(p)return u(e,p,a,n,o,o,s,c,l);let m=this.getOrAddSchemaHandle(a);return m.getUnresolvedSchema().then(async d=>{if(d.errors?.some(e=>e.toLowerCase().includes(`unable to load schema from`))&&i+1<t.length)return f(t,i+1);if(d.errors.length){let e=n?a+`#`+n:a;r.push(R(`Problems loading reference '{0}': {1}`,e,d.errors[0]))}return await h(d.schema,a),u(e,d.schema,a,n,o,m.dependencies,s,c,l)})},p=b(i,t),m=d.get(p)?.root?void 0:x(a,p);return f(m&&m!==p?[m,p]:[p])},C=async(e,t,n,r,i,a,o)=>{if(!e||typeof e!=`object`)return null;let s=[{node:e,baseUri:n,sourceUri:e._sourceUri??n,recursiveAnchorBase:a,inheritedDynamicScope:o}],c=new WeakSet,l=[],u=(e,n,a,o,c,u,f)=>{let h=p(u,n);this.collectSchemaNodes(e=>s.push({node:e,baseUri:n,sourceUri:a,recursiveAnchorBase:c,inheritedDynamicScope:h}),this.schemaMapValues(e.definitions||e.$defs));let g=e=>{for(let t of Object.keys(e))if(!qB.has(t))return!0;return!1},_=e=>{let t={};for(let n of Object.keys(e))qB.has(n)||(t[n]=e[n],delete e[n]);let n=e.$dynamicRef??e.$recursiveRef??e.$ref;typeof n==`string`&&(e.allOf=[{[e.$dynamicRef?`$dynamicRef`:e.$recursiveRef?`$recursiveRef`:`$ref`]:n},t],delete e.$dynamicRef,delete e.$recursiveRef,delete e.$ref)},v=e=>{for(let t of Object.keys(e))qB.has(t)||delete e[t]},b=new Set,x=(t,n,r)=>{if(!i.has(n))return!1;if(!b.has(t)){let i=d.get(n)?.root;i&&typeof i==`object`&&y(e,i,n,r,!!c),b.add(t)}return!0};for(;e.$dynamicRef||e.$recursiveRef||e.$ref;){let u=typeof e.$dynamicRef==`string`,p=!u&&typeof e.$recursiveRef==`string`,C=e.$dynamicRef??e.$recursiveRef??e.$ref;if(typeof C!=`string`)break;e._$ref=C;let w=decodeURIComponent(C),T=w.split(`#`,2),ee=T[0],E=T.length>1?T[1]:``,te=`${ee?m(n,ee):n}#${E}`;if(g(e)){if(o===SR.draft04||o===SR.draft07)v(e);else{if(f?.has(te))break;if(_(e),Array.isArray(e.allOf))for(let t=0;t<e.allOf.length;t++){let r=e.allOf[t];if(r&&typeof r==`object`){let e;t===0&&(e=new Set(f),e.add(te)),s.push({node:r,baseUri:n,sourceUri:a,recursiveAnchorBase:c,inheritedDynamicScope:h,siblingRefCycleKeys:e})}}return}}if(delete e.$dynamicRef,delete e.$recursiveRef,delete e.$ref,p&&(w===`#`||w===``)){let o=d.get(n)?.root?.$recursiveAnchor&&c?c:n;if(o.length>0){if(i?.has(o)||o===n){let n=d.get(o)?.root??t;b.has(w)||(y(e,n,o,``,!1),b.add(w));continue}l.push(S(e,o,``,n,a,r,i,c,h));return}continue}if(u){let t=ee.length>0?m(n,ee):n,o=d.get(t)?.fragments,s=E.length>0&&o?.get(E)?.dynamic,u=s?h?.get(E)?.[0]:void 0,f=u?u._baseUri:t;if(u&&(f===n||i.has(f))){b.has(w)||(y(e,u,f,``,!1),b.add(w));continue}if(ee.length>0||s){if(x(w,f,E))continue;l.push(S(e,f,E,n,a,r,i,c,h));return}}else if(ee.length>0){if(x(w,m(n,ee),E))continue;l.push(S(e,ee,E,n,a,r,i,c,h));return}b.has(w)||(y(e,t,n,E,u&&!!h),b.add(w))}this.collectSchemaNodes(t=>s.push({node:t,baseUri:e._baseUri||n,sourceUri:e._sourceUri||a,dialect:o,recursiveAnchorBase:c,inheritedDynamicScope:h}),e.not,e.if,e.then,e.else,e.contains,e.propertyNames,e.additionalProperties,e.items,e.additionalItems,e.prefixItems,this.schemaMapValues(e.properties),this.schemaMapValues(e.patternProperties),this.schemaMapValues(e.dependentSchemas),this.schemaMapValues(e.dependencies),e.allOf,e.anyOf,e.oneOf,e.schemaSequence)};if(n.indexOf(`#`)>0){let e=n.split(`#`,2);if(e[0].length>0&&e[1].length>0){let t={};await S(t,e[0],e[1],n,g._sourceUri??n,r,i,a,o);for(let e in g)e!==`required`&&Object.prototype.hasOwnProperty.call(g,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=g[e]);g=t}}for(;s.length;){let e=s.pop(),t=e.node,n=t._baseUri||e.baseUri,r=t._sourceUri||n,i=t._dialect||e.dialect,a=e.recursiveAnchorBase??(t.$recursiveAnchor?n:void 0);c.has(t)||(c.add(t),u(t,n,r,i,a,e.inheritedDynamicScope,e.siblingRefCycleKeys))}return Promise.all(l)},w=new Set,T=g._baseUri||t;return T&&w.add(T),await C(g,g,t,n,w),new gR(g,r)}getSchemaForResource(e,t){let n=()=>{let n=mB(t);if(n!==void 0){if(!n.startsWith(`file:`)&&!n.startsWith(`http`)){let t=``;if(n.indexOf(`#`)>0){let e=n.split(`#`,2);n=e[0],t=e[1]}if(gl(n))n=js.file(n).toString();else{let t=js.parse(e);n=js.file(ml(wl(t.fsPath).dir,n)).toString()}t.length>0&&(n+=`#`+t)}return n}},r=n=>{let r=super.createCombinedSchema(e,n);return r.getResolvedSchema().then(e=>this.finalizeResolvedSchema(e,r.url,t,!1))},i=async()=>{let n=Object.create(null),i=[],a;for(let r of this.filePatternAssociations)if(r.matchesPattern(e)){for(let e of r.getURIs())if(!n[e]){if(this.yamlSettings?.kubernetesCRDStoreEnabled&&e===SB){a||=await this.getResolvedSchema(SB);let r=DB(t,a,this.yamlSettings.kubernetesCRDStoreUrl??CB);r?(i.push(r),n[e]=!0):(i.push(e),n[e]=!0)}else i.push(e),n[e]=!0}}if(i.length>0){let e=this.highestPrioritySchemas(i);return r(e)}return Promise.resolve(null)},a=n();return a?r([a]):this.customSchemaProvider?this.customSchemaProvider(e).then(e=>Array.isArray(e)?e.length===0?i():Promise.all(e.map(e=>this.resolveCustomSchema(e,t))).then(e=>({errors:[],schema:{allOf:e.map(e=>e.schema)}}),()=>i()):e?this.resolveCustomSchema(e,t):i()).then(e=>e,()=>i()):i()}finalizeResolvedSchema(e,t,n,r){if(e.schema&&typeof e.schema==`object`&&(e.schema.url=t,e.schema.schemaSequence&&e.schema.schemaSequence[n.currentDocIndex])){let t=e.schema.schemaSequence[n.currentDocIndex];return r?new gR(t,e.errors):new gR(t)}return e}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,new Set().add(t))}highestPrioritySchemas(e){let t=0,n=new Map;return e.forEach(e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach(r=>{r>t&&(t=r);let i=n.get(r);i?(i=i.concat(e),n.set(r,i)):n.set(r,[e])})}),n.get(t)||[]}async resolveCustomSchema(e,t){let n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return this.finalizeResolvedSchema(r,e,t,!0)}async saveSchema(e,t){let n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(ZV.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach(e=>{this.deleteSchema(e)}),Promise.resolve(void 0)}async deleteSchema(e){let t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){let t=await this.getResolvedSchema(e.schema);if(t){let n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n==`object`&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){let t=await this.getResolvedSchema(e.schema);if(t){let n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n==`object`&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){let n=t.split(`/`),r=e;for(let e of n)e!==``&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw Error(`Expected a number after the array object`);if(typeof e==`object`&&typeof t!=`string`)throw Error(`Expected a string after the object`)}normalizeId(e){try{return js.parse(e).toString()}catch{return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){let t=this.requestService;return super.loadSchema(e).then(async n=>{if(n.errors&&(n.schema===void 0||typeof n.schema==`number`))return t(e).then(t=>{if(!t)return new hR({},[R(`Unable to load schema from '{0}': No content. {1}`,XB(e),n.errors)]);try{return new hR(vp(t),[])}catch(t){return new hR({},[R(`Unable to parse content from '{0}': {1}.`,XB(e),t)])}},e=>{let t=e.toString(),n=e.toString().split(`Error: `);return n.length>1&&(t=n[1]),new hR({},[t])});if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){let{name:t,description:r,versions:i}=this.schemaUriToNameAndDescription.get(e);n.schema.title=t??n.schema.title,n.schema.description=r??n.schema.description,n.schema.versions=i??n.schema.versions}else if(n.errors&&n.errors.length>0){let r=n.errors[0];if(r.toLowerCase().indexOf(`load`)!==-1)r=R(`Unable to load schema from '{0}': No content.`,XB(e));else if(r.toLowerCase().indexOf(`parse`)!==-1){let n=await t(e),i=[],a=Es(n,i);if(i.length&&a){let{offset:t}=i[0],{line:a,column:o}=ZB(n,t);r=R(`Unable to parse content from '{0}': Parse error at line: {1} column: {2}`,XB(e),a,o)}}return new hR({},[r])}return n})}registerExternalSchema(e,t,n,r,i,a){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:a}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function XB(e){try{let t=js.parse(e);if(t.scheme===`file`)return t.fsPath}catch{}return e}function ZB(e,t){let n=e.slice(0,t).split(/\r?\n/);return{line:n.length,column:n[n.length-1].length+1}}function QB(e){if(!e)return``;let t;t=typeof e==`string`?e:e.$id||e.id||``,t=t.trim();let n=t.indexOf(`#`);return t=n===-1?t:t.slice(0,n),t=t.replace(/^http:\/\/json-schema\.org\//i,`https://json-schema.org/`),t=t.replace(/\/+$/g,``),t}function $B(e){if(e===QB(jB.defaultMeta()))return SR.draft04;if(e===QB(MB.defaultMeta()))return SR.draft07;if(e===QB(NB.defaultMeta()))return SR.draft2019;if(e===QB(PB.defaultMeta()))return SR.draft2020}function eV(e){if(!e)return;let t=e.trim().toLowerCase(),n=KB.get(t);return zB[e]||zB[t]||(n?zB[n]:void 0)}function tV(e,t){(eV(t)||zB.en)(e)}async function nV(e,t){if(!e)return;let n=QB(e||``),r=$B(n);if(r)return r;let i=WB.get(n);if(i)return i;let a=GB.get(n);if(a)return a;if(!t)return;let o=(async()=>{let e=await t(n);if(e.errors?.length)return;let r=e.schema;if(!r||typeof r!=`object`)return;let i=$B(r.$schema);if(i)return i})();GB.set(n,o);try{let e=await o;return WB.set(n,e),e}finally{GB.delete(n)}}function rV(e){switch(e){case SR.draft04:return BB;case SR.draft07:return VB;case SR.draft2019:return HB;case SR.draft2020:return UB;default:return}}var iV=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new oz(e),this.jsonDocumentSymbols.getKeyLabel=e=>{let t=e.keyNode.internalNode,n=``;return n=Ll(t)?`{}`:zl(t)?`[]`:t.source,n}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{let r=aB.getYamlDocument(e);if(!r||r.documents.length===0)return null;for(let i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(e){this.telemetry?.sendError(`yaml.documentSymbols.error`,e)}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{let r=aB.getYamlDocument(e);if(!r||r.documents.length===0)return null;for(let i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(e){this.telemetry?.sendError(`yaml.hierarchicalDocumentSymbols.error`,e)}return n}};function aV(e,t){for(let n of e)n.isKubernetes=t}function oV(e,t=!1){let n=t?`'`:`"`;if(e.length===0)return`${n}${n}`;if(e.length===1&&e===`"`)return`"\\""`;if(e.length===2&&(e[0]===`"`&&e[1]===`"`||e[0]===`'`&&e[1]===`'`))return e[0]===`"`?`"\\"\\""`:`"''"`;if(e.length>=2){let t=e[0],n=e[e.length-1];if(t===`"`&&n===`"`||t===`'`&&n===`'`)return e}return/["\\]/.test(e)?JSON.stringify(e):/^(?:on|off|true|false|yes|no|null|~)$/i.test(e)?`${n}${e}${n}`:/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/.test(e)||/^0x[0-9a-fA-F]+$/.test(e)||/^0o[0-7]+$/.test(e)||/^0[0-7]+$/.test(e)?`"${e}"`:/^\s|\s$/.test(e)||/(?:^|\s)#/.test(e)||/^[\][{}#&*!|>'"%@`]/.test(e)||/^[-?:](\s|$)/.test(e)||/(?:^|[^:]):(?:\s|$)/.test(e)?t?`'${e.replace(/'/g,`''`)}'`:JSON.stringify(e):/[\n\t\r]/.test(e)?JSON.stringify(e):e}var sV=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.shouldHoverAnchor=e.hoverAnchor,this.indentation=e.indentation,this.hoverSchemaSource=e.hoverSchemaSource??!0)}doHover(e,t,n=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);let r=aB.getYamlDocument(e),i=RR(e.offsetAt(t),r);return i===null?Promise.resolve(void 0):(aV(r.documents,n),i.currentDocIndex=r.documents.indexOf(i),this.getHover(e,t,i))}catch(e){this.telemetry?.sendError(`yaml.hover.error`,e)}}getHover(e,t,n){let r=e.offsetAt(t),i=n.getNodeFromOffset(r);if(!i||(i.type===`object`||i.type===`array`)&&r>i.offset+1&&r<i.offset+i.length-1)return Promise.resolve(null);let a=i;if(i.type===`string`){let e=i.parent;if(e&&e.type===`property`&&e.keyNode===i&&(i=e.valueNode,!i))return Promise.resolve(null)}let o=F.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length)),s=e=>({contents:{kind:dc.Markdown,value:e},range:o});if(this.shouldHoverAnchor&&i.type===`property`&&i.valueNode&&i.valueNode.type===`object`){let e="```yaml\n"+yp(this.resolveMergeKeys(i.valueNode,n),null,2)+"\n```";return Promise.resolve(s(e))}let c=e=>e.replace(/\s\|\|\s*$/,``);return this.schemaService.getSchemaForResource(e.uri,n).then(e=>{if(e&&i&&!e.errors.length){let t=n.getMatchingSchemas(e.schema,i.offset),r,a,o=[],l=[],u=[],d;t.every(e=>((e.node===i||i.type===`property`&&i.valueNode===e.node)&&!e.inverted&&e.schema&&(r=r||e.schema.title||e.schema.closestTitle,a=a||e.schema.markdownDescription||this.toMarkdown(e.schema.description),e.schema.enum&&(d=e.schema.enum.indexOf(CR(i)),o=e.schema.markdownEnumDescriptions?e.schema.markdownEnumDescriptions:e.schema.enumDescriptions?e.schema.enumDescriptions.map(this.toMarkdown,this):[],e.schema.enum.forEach((e,t)=>{var n;e=typeof e==`string`?oV(e,!1):JSON.stringify(e);let r=u.findIndex(t=>t.value===e);r<0?u.push({value:e,description:o[t]}):(n=u[r]).description||(n.description=o[t])})),e.schema.anyOf&&dV(i,t,e.schema)&&(r=``,a=e.schema.description?e.schema.description+`
378
- `:``,e.schema.anyOf.forEach((t,n)=>{r+=t.title||e.schema.closestTitle||``,a+=t.markdownDescription||this.toMarkdown(t.description)||``,n!==e.schema.anyOf.length-1&&(r+=` || `,a+=` || `)}),r=c(r),a=c(a)),e.schema.examples&&e.schema.examples.forEach(e=>{l.push(yp(e,null,2))})),!0));let f=``;return r&&(f=`#### `+this.toMarkdown(r)),a&&(f=cV(f),f+=a),u.length!==0&&(f=cV(f),f+=R(`Allowed Values:`)+`
379
-
380
- `,d&&u.unshift(u.splice(d,1)[0]),u.forEach(e=>{e.description?f+=`* \`${uV(e.value)}\`: ${e.description}
381
- `:f+=`* \`${uV(e.value)}\`
382
- `})),l.length!==0&&l.forEach(e=>{f=cV(f),f+=R(`Example:`)+`
383
-
384
- `,f+=`\`\`\`yaml
385
- ${e}\`\`\`
386
- `}),f.length>0&&e.schema.url&&this.hoverSchemaSource&&(f=cV(f),f+=R(`Source: [{0}]({1})`,lV(e.schema),e.schema.url)),s(f)}return null})}resolveMergeKeys(e,t,n=0){let r={},i=[...e.properties];for(;i.length>0;){let e=i.shift(),a=e.keyNode.value;if(a===`<<`&&e.valueNode){let i=this.resolveMergeValue(e.valueNode,t,n+1);if(i&&typeof i==`object`&&!Array.isArray(i)){let e=Object.keys(i);for(let t of e)r[t]=i[t]}}else r[a]=this.astNodeToValue(e.valueNode,t,n)}return r}resolveMergeValue(e,t,n){return n>=10?{"<<":e.parent.internalNode.value+` (recursion limit reached)`}:e.type===`object`?this.resolveMergeKeys(e,t,n):this.astNodeToValue(e,t,n)}astNodeToValue(e,t,n){if(!e)return null;switch(e.type){case`object`:return this.resolveMergeKeys(e,t,n);case`array`:return e.children.map(e=>this.astNodeToValue(e,t,n));case`string`:case`number`:case`boolean`:case`null`:return e.value;default:return this.nodeToValue(e.internalNode)}}nodeToValue(e){if(Fl(e))return e.source;if(Ll(e)){let t={};for(let n of e.items)if(n.key&&n.value){let e=this.nodeToValue(n.key),r=this.nodeToValue(n.value);typeof e==`string`&&(t[e]=r)}return t}return zl(e)?e.items.map(e=>this.nodeToValue(e)):e.value}toMarkdown(e){if(e){let t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
387
-
388
- $3`);if(t=t.replace(/[\\`*_{}[\]#+!]/g,`\\$&`),this.indentation!==void 0){let e=RegExp(` {${this.indentation.length}}`,`g`);t=t.replace(e,`&emsp;`)}return t}}};function cV(e){return e.length===0?e:(e.endsWith(`
389
- `)||(e+=`
390
- `),e+`
391
- `)}function lV(e){let t=`JSON Schema`,n=e.url;if(n){let e=js.parse(n);t=xl(e.fsPath)}else e.title&&(t=e.title);return t}function uV(e){return e.indexOf("`")===-1?e:"`` "+e+" ``"}function dV(e,t,n){let r=0;for(let i of t)e===i.node&&i.schema!==n&&n.anyOf.forEach(e=>{i.schema.title===e.title&&i.schema.description===e.description&&i.schema.properties===e.properties&&r++});return r===n.anyOf.length}var fV=/^\s*#\s*yaml-language-server-disable\b(.*)$/;function pV(e){let t=e.trim();return t?t.split(`,`).map(e=>e.trim().toLowerCase()).filter(e=>e.length>0):[]}function mV(e,t){if(e.length===0)return!0;let n=t.toLowerCase();return e.some(e=>n.includes(e))}function hV(e,t,n,r){return e.filter(e=>{let i=t(e);if(i===0)return!0;let a=r(i-1);if(a===void 0)return!0;let o=fV.exec(a);return!o||!mV(pV(o[1]),n(e))})}var gV=class{validate(e,t){let n=[],r=new Set,i=new Set,a=new Set,o=new Map;Kl(t.internalDocument,(e,n,s)=>{Vl(n)&&((Bl(n)||z(n))&&n.anchor&&(r.add(n),o.set(n,s[s.length-1])),Fl(n)&&(n.resolve(t.internalDocument)?i.add(n.resolve(t.internalDocument)):a.add(n)))});for(let t of r)if(!i.has(t)){let r=this.getAnchorNode(o.get(t),t);if(r){let t=F.create(e.positionAt(r.offset),e.positionAt(r.offset+r.source.length)),i=Js.create(t,R(`Unused anchor "{0}"`,r.source),I.Information,0);i.tags=[Ks.Unnecessary],n.push(i)}}return a.forEach(t=>{let r=t.range;if(r){let i=r[0],a=r[1],o=F.create(e.positionAt(i),e.positionAt(a)),s=Js.create(o,R(`Unresolved alias "{0}"`,t.toString()),I.Information,0);s.tags=[Ks.Unnecessary],n.push(s)}}),n}getAnchorNode(e,t){if(e&&e.srcToken){let n=e.srcToken;if(tB(n))return _V(n);if(Zf(n))for(let e of n.items){if(t.srcToken!==e.value)continue;let n=_V(e);if(n)return n}}}};function _V(e){for(let t of e.start)if(t.type===`anchor`)return t;if(e.sep&&Array.isArray(e.sep)){for(let t of e.sep)if(t.type===`anchor`)return t}}var vV=class{constructor(e){this.forbidMapping=e.flowMapping===`forbid`,this.forbidSequence=e.flowSequence===`forbid`}validate(e,t){let n=[];return Kl(t.internalDocument,(t,r)=>{this.forbidMapping&&Ll(r)&&r.srcToken?.type===`flow-collection`&&n.push(Js.create(this.getRangeOf(e,r.srcToken),R(`Flow style mapping is forbidden`),I.Error,`flowMap`)),this.forbidSequence&&zl(r)&&r.srcToken?.type===`flow-collection`&&n.push(Js.create(this.getRangeOf(e,r.srcToken),R(`Flow style sequence is forbidden`),I.Error,`flowSeq`))}),n}getRangeOf(e,t){let n=t.end[0].offset,r=e.positionAt(n);return r={character:r.character+1,line:r.line},F.create(e.positionAt(t.start.offset),r)}},yV=class{validate(e,t){let n=[];return Kl(t.internalDocument,(t,r)=>{if(Ll(r)){for(let t=1;t<r.items.length;t++)if(xV(r.items[t-1],r.items[t])>0){let i=bV(e,r.items[t-1]);n.push(Js.create(i,`Wrong ordering of key "${r.items[t-1].key}" in mapping`,I.Error,`mapKeyOrder`));break}}}),n}};function bV(e,t){let n=t.key.srcToken,r=n.offset,i=r+n.source.length;return F.create(e.positionAt(r),e.positionAt(i))}function xV(e,t){let n=String(t.key);return String(e.key).localeCompare(n)}var SV=(e,t)=>{let n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Ls.create(n.line,new uB(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Js.create(r,e.message,e.severity,e.code,mz)},CV=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE=`Matches multiple schemas when only one must validate.`,this.validationEnabled=!0,this.jsonValidation=new JR(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping===`forbid`||e.flowSequence===`forbid`)&&this.validators.push(new vV(e)),e.keyOrdering&&this.validators.push(new yV)),this.validators.push(new gV)}async doValidation(e,t=!1){if(!this.validationEnabled)return Promise.resolve([]);let n=[];try{let r=aB.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),i=0;for(let a of r.documents){a.isKubernetes=t,a.currentDocIndex=i,a.disableAdditionalProperties=this.disableAdditionalProperties,a.uri=e.uri;let r=await this.jsonValidation.doValidation(e,a),o=a;o.errors.length>0&&n.push(...o.errors),o.warnings.length>0&&n.push(...o.warnings),n.push(...r),n.push(...this.runAdditionalValidators(e,a)),i++}}catch(e){this.telemetry?.sendError(`yaml.validation.error`,e)}let r,i=new Set,a=[];for(let o of n){if(t&&o.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(o,`location`)&&(o=SV(o,e)),o.source||(o.source=mz),r&&r.message===o.message&&r.range.end.line===o.range.start.line&&Math.abs(r.range.end.character-o.range.end.character)>=1){r.range.end=o.range.end;continue}r=o;let n=o.range.start.line+` `+o.range.start.character+` `+o.message;i.has(n)||(a.push(o),i.add(n))}let o=new uB(e);return hV(a,e=>e.range.start.line,e=>e.message,e=>{if(!(e<0||e>=o.getLineCount()))return o.getLineContent(e).replace(/[\r\n]+$/,``)})}runAdditionalValidators(e,t){let n=[];for(let r of this.validators)n.push(...r.validate(e,t));return n}},wV=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}async format(e,t={}){if(!this.formatterEnabled)return[];try{let n=e.getText(),r=await NL(n,{parser:`yaml`,plugins:[bp,$_],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:t.proseWrap===`always`?`always`:t.proseWrap===`never`?`never`:`preserve`,printWidth:t.printWidth,trailingComma:t.trailingComma===!1?`none`:`all`});return r===n?[]:[Xs.replace(F.create(Ls.create(0,0),e.positionAt(n.length)),r)]}catch{return[]}}},TV=class{constructor(e){this.telemetry=e}findLinks(e){try{let t=aB.getYamlDocument(e),n=[];for(let r of t.documents)n.push(cz(e,r));return Promise.all(n).then(e=>[].concat(...e))}catch(e){this.telemetry?.sendError(`yaml.documentLink.error`,e)}}};function EV(e,t){if(!e)return;let n=[],r=aB.getYamlDocument(e);for(let t of r.documents)r.documents.length>1&&n.push(DV(e,t.root)),t.visit(t=>{if(t.type===`object`&&t.parent?.type===`array`&&n.push(DV(e,t)),t.type===`property`&&t.valueNode)switch(t.valueNode.type){case`array`:case`object`:n.push(DV(e,t));break;case`string`:{let r=e.positionAt(t.offset),i=e.positionAt(t.valueNode.offset+t.valueNode.length);r.line!==i.line&&n.push(DV(e,t));break}default:return!0}return!0});let i=t&&t.rangeLimit;return typeof i!=`number`||n.length<=i?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function DV(e,t){let n=e.positionAt(t.offset),r=e.positionAt(t.offset+t.length),i=e.getText(F.create(n,r)),a=i.length-i.trimRight().length;return a>0&&(r=e.positionAt(t.offset+t.length-a)),Ws.create(n.line,r.line,n.character,r.character)}var OV;(function(e){e.JUMP_TO_SCHEMA=`jumpToSchema`})(OV||={});var kV=class{constructor(e,t){this.indentation=e,this.maxLineLength=t}writeFoldedBlockScalar(e){if(e.type!==`QUOTE_DOUBLE`&&e.type!==`QUOTE_SINGLE`)return null;let t=e.value,n=e.srcToken.indent,r=this.indentation;for(let e=0;e<n/this.indentation.length;e++)r+=this.indentation;let i=[],a=t.split(`
392
- `);for(let e of a){let t=e;slicing:for(;t.length>this.maxLineLength;){let e=this.maxLineLength;for(;!/ /.test(t.charAt(e));)if(e++,e>=t.length)break slicing;for(;/ /.test(t.charAt(e));)if(e++,e>=t.length)break slicing;let n=t.substring(0,e-1);i.push(n),t=t.substring(e)}i.push(t),i.push(`
393
- `)}i.pop();for(let e=1;e<i.length;){if(/^[ \t]+$/.test(i[e])){if(i[e-1]===`
394
- `||i[e-1]===``){i.splice(e-1,1);continue}return null}e++}let o=`>`;i[i.length-1]!==`
395
- `&&i[i.length-1]!==``?o+=`-`:(i[i.length-2]===`
396
- `||i[i.length-2]===``)&&i[i.length-3]!==`
397
- `&&i[i.length-3]!==``?i.splice(i.length-2,2):o+=`+`,/ /.test(t.charAt(0))&&(o+=`${r.length}`);let s=i.flatMap(t=>t===`
398
- `||t===``?[{type:`newline`,indent:0,offset:e.srcToken.offset,source:`
399
- `}]:[{type:`newline`,indent:0,offset:e.srcToken.offset,source:`
400
- `},{type:`space`,indent:0,offset:e.srcToken.offset,source:r},{type:`scalar`,indent:0,offset:e.srcToken.offset,source:t}]);s.unshift({type:`block-scalar-header`,source:o,offset:e.srcToken.offset,indent:0});let c={type:`block-scalar`,offset:e.srcToken.offset,indent:0,source:``,props:s};return Uf(c)}writeLiteralBlockScalar(e){if(e.type!==`QUOTE_DOUBLE`&&e.type!==`QUOTE_SINGLE`)return null;let t=e.value;if(t.indexOf(`
401
- `)<0)return null;let n=e.srcToken.indent,r=this.indentation;for(let e=0;e<n/this.indentation.length;e++)r+=this.indentation;let i=t.split(`
402
- `),a=`|`;i[i.length-1]!==`
403
- `&&i[i.length-1]!==``?a+=`-`:i[i.length-2]!==`
404
- `&&i[i.length-2]!==``?i.splice(i.length-1,1):a+=`+`,/ /.test(t.charAt(0))&&(a+=`${r.length}`);let o=i.flatMap(t=>t===``?[{type:`newline`,indent:0,offset:e.srcToken.offset,source:`
405
- `}]:[{type:`newline`,indent:0,offset:e.srcToken.offset,source:`
406
- `},{type:`space`,indent:0,offset:e.srcToken.offset,source:r},{type:`scalar`,indent:0,offset:e.srcToken.offset,source:t}]);o.unshift({type:`block-scalar-header`,source:a,offset:e.srcToken.offset,indent:0});let s={type:`block-scalar`,offset:e.srcToken.offset,indent:0,source:``,props:o};return Uf(s)}},AV=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!==`flow-collection`)return null;let t=e.internalNode.srcToken,n=t.start.type===`flow-map-start`?`block-map`:`block-seq`,r=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(let e of t.items)Yf(e,({key:e,sep:t,value:a})=>{if(n===`block-map`){let n=[{type:`space`,indent:0,offset:e.offset,source:this.indentation}];r===`property`&&n.unshift({type:`newline`,indent:0,offset:e.offset,source:`
407
- `}),i.items.push({start:n,key:e,sep:t,value:a})}else n===`block-seq`&&i.items.push({start:[{type:`newline`,indent:0,offset:a.offset,source:`
408
- `},{type:`space`,indent:0,offset:a.offset,source:this.indentation},{type:`seq-item-ind`,indent:0,offset:a.offset,source:`-`},{type:`space`,indent:0,offset:a.offset,source:` `}],value:a});if(a.type===`flow-collection`)return Kl.SKIP});return Uf(i)}},jV=class{constructor(e){this.clientCapabilities=e,this.indentation=` `,this.lineWidth=80}configure(e,t){this.indentation=e.indentation,this.lineWidth=t}getCodeAction(e,t){if(!t.context.diagnostics)return;let n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getConvertStringToBlockStyleActions(t.range,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n.push(...this.getQuickFixForPropertyOrValueMismatch(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){if(!(this.clientCapabilities?.window?.showDocument?.support??!1))return[];let t=new Map;for(let n of e){let e=n.data?.schemaUri||[];for(let r of e)r&&(t.has(r)||t.set(r,[]),t.get(r).push(n))}let n=[];for(let e of t.keys()){let r=Lc.create(R(`Jump to schema location ({0})`,xl(e)),Ys.create(`JumpToSchema`,OV.JUMP_TO_SCHEMA,e));r.diagnostics=t.get(e),n.push(r)}return n}getTabToSpaceConverting(e,t){let n=[],r=new uB(t),i=[];for(let a of e)if(a.message===`Tabs are not allowed as indentation`){if(i.includes(a.range.start.line))continue;let e=r.getLineContent(a.range.start.line),o=0,s=``;for(let t=a.range.start.character;t<=a.range.end.character&&e.charAt(t)===` `;t++)o++,s+=this.indentation;i.push(a.range.start.line);let c=a.range;o!==a.range.end.character-a.range.start.character&&(c=F.create(a.range.start,Ls.create(a.range.end.line,a.range.start.character+o))),n.push(Lc.create(R(`Convert Tab to Spaces`),NV(t.uri,[Xs.replace(c,s)]),Nc.QuickFix))}if(n.length!==0){let e=[];for(let t=0;t<=r.getLineCount();t++){let n=r.getLineContent(t),i=0,a=``;for(let r=0;r<n.length;r++){let o=n.charAt(r);if(o!==` `&&o!==` `){i!==0&&(e.push(Xs.replace(F.create(t,r-i,t,r),a)),i=0,a=``);break}if(o===` `&&i!==0){e.push(Xs.replace(F.create(t,r-i,t,r),a)),i=0,a=``;continue}o===` `&&(a+=this.indentation,i++)}i!==0&&e.push(Xs.replace(F.create(t,0,t,r.getLineLength(t)),a))}e.length>0&&n.push(Lc.create(R(`Convert all Tabs to Spaces`),NV(t.uri,e),Nc.QuickFix))}return n}getUnusedAnchorsDelete(e,t){let n=[],r=new uB(t);for(let i of e)if(i.message.startsWith(`Unused anchor`)&&i.source===mz){let e=F.create(i.range.start,i.range.end),a=r.getText(e),o=WR(r.getLineContent(e.end.line),e.end.character);e.end.character=o;let s=Lc.create(R(`Delete unused anchor: {0}`,a),NV(t.uri,[Xs.del(e)]),Nc.QuickFix);s.diagnostics=[i],n.push(s)}return n}getConvertToBooleanActions(e,t){let n=[];for(let r of e)if(r.message===`Incorrect type. Expected "boolean".`){let e=t.getText(r.range).toLocaleLowerCase();if(e===`"true"`||e===`"false"`||e===`'true'`||e===`'false'`){let i=e.includes(`true`)?`true`:`false`;n.push(Lc.create(R(`Convert to boolean`),NV(t.uri,[Xs.replace(r.range,i)]),Nc.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){let n=[];for(let r of e)if(r.code===`flowMap`||r.code===`flowSeq`){let e=MV(t,r);if(Ll(e.internalNode)||zl(e.internalNode)){let i=Ll(e.internalNode)?`map`:`sequence`,a=new AV(this.indentation);n.push(Lc.create(R(`Convert to block style {0}`,i),NV(t.uri,[Xs.replace(r.range,a.write(e))]),Nc.QuickFix))}}return n}getConvertStringToBlockStyleActions(e,t){let n=aB.getYamlDocument(t),r=e?t.offsetAt(e.start):0,i=e?t.offsetAt(e.end):1/0,a=[];for(let e of n.documents){let n=[];Kl(e.internalDocument,(e,t)=>{z(t)&&(r<=t.range[0]&&t.range[2]<=i||t.range[0]<=r&&i<=t.range[2])&&(t.type===`QUOTE_DOUBLE`||t.type===`QUOTE_SINGLE`)&&typeof t.value==`string`&&(t.value.indexOf(`
409
- `)>=0||t.value.length>this.lineWidth)&&n.push(t)});for(let e of n){let n=F.create(t.positionAt(e.range[0]),t.positionAt(e.range[1])),r=new kV(this.indentation,this.lineWidth),i=r.writeFoldedBlockScalar(e);i!==null&&a.push(Lc.create(R(`Convert string to folded block string`),NV(t.uri,[Xs.replace(n,i)]),Nc.Refactor));let o=r.writeLiteralBlockScalar(e);o!==null&&a.push(Lc.create(R(`Convert string to literal block string`),NV(t.uri,[Xs.replace(n,o)]),Nc.Refactor))}}return a}getKeyOrderActions(e,t){let n=[];for(let r of e)if(r?.code===`mapKeyOrder`){let e=MV(t,r);for(;e&&e.type!==`object`;)e=e.parent;if(e&&Ll(e.internalNode)){let r=structuredClone(e.internalNode),i=e=>{if(e){if(Qf(e))return e.type===`block-scalar`?(e.props??=[],e.props):(e.end??=[],e.end);if(e.type===`flow-collection`)return e.end??=[],e.end;if(e.type===`block-map`){let t=e.items[e.items.length-1];return t?i(t.value):void 0}}};if((r.srcToken.type===`block-map`||r.srcToken.type===`flow-collection`)&&(e.internalNode.srcToken.type===`block-map`||e.internalNode.srcToken.type===`flow-collection`)){r.srcToken.items.sort((e,t)=>{if(e.key&&t.key&&Qf(e.key)&&Qf(t.key))return e.key.source.localeCompare(t.key.source);if(!e.key&&t.key)return-1;if(e.key&&!t.key)return 1;if(!e.key&&!t.key)return 0});for(let t=0;t<r.srcToken.items.length;t++){let n=r.srcToken.items[t],a=e.internalNode.srcToken.items[t];for(n.start=a.start;n.start?.[0]?.type===`newline`;)n.start.shift();let o=i(n.value),s=o?.findIndex(e=>e.type===`newline`)??-1,c=i(a.value)?.find(t=>t.type===`newline`&&t.offset<e.offset+e.length)??null;c&&s<0&&o&&o.push({type:`newline`,indent:0,offset:n.value.offset,source:`
410
- `}),!c&&s>-1&&o&&o.splice(s,1)}}let a=F.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length));n.push(Lc.create(R(`Fix key order for this map`),NV(t.uri,[Xs.replace(a,Uf(r.srcToken))]),Nc.QuickFix))}}return n}getPossibleQuickFixValues(e){if(typeof e.data==`object`){if(e.code===qL.EnumValueMismatch&&`values`in e.data&&Array.isArray(e.data.values))return e.data.values;if(e.code===qL.PropertyExpected&&`properties`in e.data&&Array.isArray(e.data.properties))return e.data.properties}}getQuickFixForPropertyOrValueMismatch(e,t){let n=[];for(let r of e){let e=this.getPossibleQuickFixValues(r);if(e?.length)for(let i of e){let e=typeof i==`string`?oV(i):String(i);n.push(Lc.create(e,NV(t.uri,[Xs.replace(r.range,e)]),Nc.QuickFix))}}return n}};function MV(e,t){let n=aB.getYamlDocument(e),r=e.offsetAt(t.range.start),i=e.offsetAt(t.range.end),a=RR(r,n),o=a.getNodeFromOffset(r);if(o&&r<i&&o.offset+o.length===r){let e=a.getNodeFromOffset(r+1);e&&(o=e)}return o}function NV(e,t){let n={};return n[e]=t,{changes:n}}function PV(e,t){let{position:n}=t,r=new uB(e);if(t.ch===`
411
- `){let e=r.getLineContent(n.line-1);if(e.trimRight().endsWith(`:`)){let i=r.getLineContent(n.line),a=i.substring(n.character,i.length),o=e.indexOf(` - `)!==-1;if(a.trimRight().length===0){let r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!o)return;let a=[];return i.length>0&&a.push(Xs.del(F.create(n,Ls.create(n.line,i.length-1)))),a.push(Xs.insert(n,` `.repeat(t.options.tabSize+(o?2-r:0)))),a}if(o)return[Xs.insert(n,` `.repeat(t.options.tabSize))]}if(e.trimRight().endsWith(`|`))return[Xs.insert(n,` `.repeat(t.options.tabSize))];if(e.includes(` - `)&&!e.includes(`: `))return[Xs.insert(n,`- `)];if(e.includes(` - `)&&e.includes(`: `))return[Xs.insert(n,` `)]}}var FV=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){let t=[];try{let n=aB.getYamlDocument(e),r=new Map;for(let t of n.documents){let n=await this.schemaService.getSchemaForResource(e.uri,t);n?.schema&&(r=new Map([...wB(n?.schema),...r]))}for(let e of r){let n=Rc.create(F.create(0,0,0,0));n.command={title:FR(e[1],e[0]),command:OV.JUMP_TO_SCHEMA,arguments:[e[0]]},t.push(n)}}catch(e){this.telemetry?.sendError(`yaml.codeLens.error`,e)}return t}resolveCodeLens(e){return e}},IV=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function LV(e,t,n,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;let a;for(a=0;a<t&&a<r&&e.charCodeAt(a)===n.charCodeAt(a);a++);let o=0,s=0;for(let n=a;n<t;n++)e.charCodeAt(n)===32?o++:s++;let c=0,l=0;for(let e=a;e<r;e++)n.charCodeAt(e)===32?c++:l++;if(o>0&&s>0||c>0&&l>0)return;let u=Math.abs(s-l),d=Math.abs(o-c);if(u===0){i.spacesDiff=d,d>0&&0<=c-1&&c-1<e.length&&c<n.length&&n.charCodeAt(c)!==32&&e.charCodeAt(c-1)===32&&e.charCodeAt(e.length-1)===44&&(i.looksLikeAlignment=!0);return}d%u===0&&(i.spacesDiff=d/u)}function RV(e,t,n){let r=Math.min(e.getLineCount(),1e4),i=0,a=0,o=``,s=0,c=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],u=new IV;for(let c=1;c<=r;c++){let r=e.getLineLength(c),d=e.getLineContent(c),f=r<=65536,p=!1,m=0,h=0,g=0;for(let t=0,n=r;t<n;t++){let n=f?d.charCodeAt(t):e.getLineCharCode(c,t);if(n===9)g++;else if(n===32)h++;else{p=!0,m=t;break}}if(!p||(g>0?i++:h>1&&a++,LV(o,s,d,m,u),u.looksLikeAlignment&&!(n&&t===u.spacesDiff)))continue;let _=u.spacesDiff;_<=8&&l[_]++,o=d,s=m}let d=n;i!==a&&(d=i<a);let f=t;if(d){let e=d?0:.1*r;c.forEach(t=>{let n=l[t];n>e&&(e=n,f=t)}),f===4&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(f=2)}return{insertSpaces:d,tabSize:f}}function zV(e,t,n,r,i=0,a=0){if(typeof e==`object`&&e){let o=i===0&&r.shouldIndentWithTab||i>0?t+r.indentation:``;if(Array.isArray(e)){if(a+=1,e.length===0)return``;let s=``;for(let c=0;c<e.length;c++){let l=e[c];if(typeof e[c]!=`object`){s+=`
412
- `+o+`- `+n(e[c]);continue}Array.isArray(e[c])||(l=BV(e[c],a)),s+=zV(l,t,n,r,i+=1,a)}return s}{let a=Object.keys(e);if(a.length===0)return``;let s=i===0&&r.newLineFirst||i>0?`
413
- `:``,c=!0;for(let l=0;l<a.length;l++){let u=a[l];if(i===0&&r.existingProps.includes(u))continue;let d=typeof e[u]==`object`,f=d?`:`:`: `,p=o+(d&&/^\s|-/.test(u)?r.indentation:``),m=c?``:`
414
- `;if(i===0&&c&&!r.indentFirstObject){let a=zV(e[u],p,n,r,i+1,0);s+=m+t+u+f+a}else{let t=zV(e[u],p,n,r,i+1,0);s+=m+o+u+f+t}c=!1}return s}}return n(e)}function BV(e,t){let n={};for(let r=0;r<Object.keys(e).length;r++){let i=Object.keys(e)[r];r===0?n[`- `.repeat(t)+i]=e[i]:n[` `.repeat(t)+i]=e[i]}return n}var VV=pc.Class,HV=`__`,UV=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=``}configure(e,t){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.isSingleQuote=t?.yamlFormatterSettings?.singleQuote||!1,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){let i=xc.create([],!1);if(!this.completionEnabled)return i;let a=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),o=new uB(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{let e=RV(o,2,!0);this.indentation=e.insertSpaces?` `.repeat(e.tabSize):` `}aV(a.documents,n);for(let t of a.documents)t.uri=e.uri;let s=e.offsetAt(t),c=e.getText();if(c.charAt(s-1)===`:`)return Promise.resolve(i);let l=RR(s,a);if(l===null)return Promise.resolve(i);l=l.clone();let[u,d]=l.getNodeFromPosition(s,o,this.indentation.length),f=this.getCurrentWord(e,s),p=o.getLineContent(t.line),m=p.substring(t.character),h=/^[ ]+\n?$/.test(m);this.arrayPrefixIndentation=``;let g=null;if(h){g=F.create(t,Ls.create(t.line,p.length));let e=p.trim().length===0,n=p.match(/^\s*(-)\s*$/);if(u&&z(u)&&!e&&!n){let e=p.substring(0,t.character),n=e.match(/^[\s-]*([^:]+)?$/)||e.match(/:[ \t]((?!:[ \t]).*)$/);n?.[1]&&(g=F.create(Ls.create(t.line,t.character-n[1].length),Ls.create(t.line,p.length)))}}else if(u&&z(u)&&u.value===`null`){let t=e.positionAt(u.range[0]);t.character+=1;let n=e.positionAt(u.range[2]);n.character+=1,g=F.create(t,n)}else if(u&&z(u)&&u.value){let t=e.positionAt(u.range[0]);g=F.create(t,e.positionAt(u.range[1]))}else if(u&&z(u)&&u.value===null&&f===`-`)g=F.create(t,t),this.arrayPrefixIndentation=` `;else{let n=s-f.length;n>0&&c[n-1]===`"`&&n--,g=F.create(e.positionAt(n),t)}let _={},v={add:(e,t)=>{let n=function(e){if(_[e.label]?.label===HV)return;let t=e.parent.schema,n=NR(t),r=t.markdownDescription||t.description,a=i.items.find(e=>e.parent?.schema===t&&e.kind===VV);a&&a.parent.insertTexts.includes(e.insertText)||(a?a.parent.insertTexts.push(e.insertText):(a={...e,label:n,documentation:r,sortText:`_`+n,kind:VV},a.label=a.label||e.label,a.parent.insertTexts=[e.insertText],i.items.push(a)))},r=!!e.parent,a=e.label;if(!a){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`);return}if(jR(a)||(a=String(a)),a=a.replace(/\n|\\n/g,`↵`),a.length>60){let e=a.substr(0,57).trim()+`...`;_[e]||(a=e)}if(e.label.toLowerCase()===`regular expression`){let t=e.documentation.value.split(`:`);a=t.length>0?`${this.getQuote()}\\${JSON.parse(t[1])}${this.getQuote()}`:e.label,e.insertText=a,e.textEdit=Xs.replace(g,a)}else{let t=e.insertText.replace(/\${[0-9]+[:|](.*)}/g,(e,t)=>t).replace(/\$([0-9]+)/g,``).match(/^([^:"]+):\s*(['\\"\\])$/);if(t){let n=t[1],r=t[2];e.insertText=`${n}: ${this.getQuote()}\\${r}${this.getQuote()}`}e.insertText.endsWith(`$1`)&&!r&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),g&&g.start.line===g.end.line&&(e.textEdit=Xs.replace(g,e.insertText))}if(e.label=a,r){n(e);return}this.arrayPrefixIndentation&&this.updateCompletionText(e,this.arrayPrefixIndentation+e.insertText);let o=_[a],s=o?.label!==HV&&o?.insertText!==e.insertText;if(!o)_[a]=e,i.items.push(e);else if(s){let n=this.mergeSimpleInsertTexts(a,o.insertText,e.insertText,t);n?this.updateCompletionText(o,n):(_[a]=e,i.items.push(e))}o&&!o.documentation&&e.documentation&&(o.documentation=e.documentation),o&&!o.detail&&e.detail&&(o.detail=e.detail)},error:e=>{this.telemetry?.sendError(`yaml.completion.error`,e)},log:e=>{console.log(e)},getNumberOfProposals:()=>i.items.length,result:i,proposed:_};this.customTags&&this.customTags.length>0&&this.getCustomTagValueCompletions(v),p.endsWith(`
415
- `)&&(p=p.substr(0,p.length-1));try{let n=await this.schemaService.getSchemaForResource(e.uri,l);if((!n||n.errors.length)&&t.line===0&&t.character===0&&!hB(p)){let e={kind:pc.Text,label:R(`Inline schema`),insertText:`# yaml-language-server: $schema=`,insertTextFormat:mc.PlainText};i.items.push(e)}if(hB(p)||eB(a.tokens,s)){let e=p.match(/\$schema[=:]/);if(e)return e.index+e[0].length<=t.character&&this.schemaService.getAllSchemas().forEach(e=>{let t={kind:pc.Constant,label:e.name??e.uri,detail:e.description,insertText:e.uri,insertTextFormat:mc.PlainText,insertTextMode:_c.asIs};i.items.push(t)}),i}if(!n||n.errors.length)return i;let m=null;if(!u){if(!l.internalDocument.contents||z(l.internalDocument.contents)){let e=l.internalDocument.createNode({});e.range=[s,s+1,s+1],l.internalDocument.contents=e,l.updateFromInternalDocument(),u=e}else u=l.findClosestNode(s,o),d=!0}let h=u;if(u){if(p.length===0)u=l.internalDocument.contents;else{let n=l.getParent(u);if(n){if(z(u)){if(u.value){if(Rl(n)){if(n.value===u){if(p.trim().length>0&&p.indexOf(`:`)<0){let e=this.createTempObjNode(f,u,l),t=l.getParent(n);if(zl(l.internalDocument.contents)){let t=$z(l.internalDocument.contents,n);typeof t==`number`&&(l.internalDocument.set(t,e),l.updateFromInternalDocument())}else t&&(Ll(t)||zl(t))?(t.set(n.key,e),l.updateFromInternalDocument()):(l.internalDocument.set(n.key,e),l.updateFromInternalDocument());m=e.items[0],u=e}else if(p.trim().length===0){let e=l.getParent(n);e&&(u=e)}}else if(n.key===u){let e=l.getParent(n);m=n,e&&(u=e)}}else if(zl(n)){if(p.trim().length>0){let e=this.createTempObjNode(f,u,l);n.delete(u),n.add(e),l.updateFromInternalDocument(),u=e}else u=n}}else if(u.value===null){if(Rl(n)){if(n.key===u)u=n;else if(Vl(n.key)&&n.key.range){let r=l.getParent(n);if(d&&r&&Ll(r)&&Qz(r))u=r;else{let i=e.positionAt(n.key.range[0]);if(t.character>i.character&&t.line!==i.line){let e=this.createTempObjNode(f,u,l);r&&(Ll(r)||zl(r))?(r.set(n.key,e),l.updateFromInternalDocument()):(l.internalDocument.set(n.key,e),l.updateFromInternalDocument()),m=e.items[0],u=e}else i.character===t.character&&r&&(u=r)}}}else if(zl(n)){if(p.charAt(t.character-1)!==`-`){let e=this.createTempObjNode(f,u,l);n.delete(u),n.add(e),l.updateFromInternalDocument(),u=e}else if(p.charAt(t.character-1)===`-`){let e=this.createTempObjNode(``,u,l);n.delete(u),n.add(e),l.updateFromInternalDocument(),u=e}else u=n}}}else if(Ll(u)&&!d&&p.trim().length===0&&zl(n)){let e=o.getLineContent(t.line+1);(o.getLineCount()===t.line+1||e.trim().length===0)&&(u=n)}}else if(z(u)){let e=this.createTempObjNode(f,u,l);l.internalDocument.contents=e,l.updateFromInternalDocument(),m=e.items[0],u=e}else if(Ll(u))for(let e of u.items)Vl(e.value)&&e.value.range&&e.value.range[0]===s+1&&(u=e.value);else if(zl(u)&&p.charAt(t.character-1)!==`-`){let e=this.createTempObjNode(f,u,l);e.items=[],l.updateFromInternalDocument();for(let t of u.items)Ll(t)&&t.items.forEach(t=>{e.items.push(t)});u=e}}}let y=o.getLineContent(g.start.line).trim().length===0&&h&&(z(h)&&h.value===null||zl(h));if(u&&Ll(u)){let e=u.items;for(let t of e)(!m||m!==t)&&z(t.key)&&(_[t.key.value+``]=bc.create(HV));this.addPropertyCompletions(n,l,u,h,``,v,o,g,r,y),!n&&f.length>0&&c.charAt(s-f.length-1)!==`"`&&v.add({kind:pc.Property,label:f,insertText:this.getInsertTextForProperty(f,null,``),insertTextFormat:mc.Snippet})}this.getValueCompletions(n,l,u,s,e,v,{},r,y)}catch(e){this.telemetry?.sendError(`yaml.completion.error`,e)}this.finalizeParentCompletion(i);let y=i.items.filter((e,t,n)=>t===n.findIndex(t=>t.label===e.label&&t.insertText===e.insertText&&t.kind===e.kind));return y?.length>0&&(i.items=y),i}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){let i=e=>e.includes(`
416
- `),a=e=>e.startsWith(`
417
- `),o=e=>{let t=e.indexOf(`
418
- `);return t>0&&e.substring(t,e.length).trim().length===0};if(i(t)||i(n))return r&&o(t)&&!o(n)&&!a(n)?n:void 0;let s=this.getValuesFromInsertText(t),c=this.getValuesFromInsertText(n),l=Array.prototype.concat(s,c);if(l.length)return l.length===1?`${e}: \${1:${l[0]}}`:`${e}: \${1|${l.join(`,`)}|}`}getValuesFromInsertText(e){let t=e.substring(e.indexOf(`:`)+1).trim();if(!t)return[];let n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(`,`):[t]}finalizeParentCompletion(e){let t=e=>{let t=0;return e.map(e=>{let n=e.match(/\$([0-9]+)|\${[0-9]+:/g);if(!n)return e;let r=n.map(e=>+e.replace(/\${([0-9]+)[:|]/g,`$1`).replace(`$`,``)).reduce((e,t)=>t>e?t:e,0),i=e.replace(/\$([0-9]+)/g,(e,n)=>`$`+(+n+t)).replace(/\${([0-9]+)[:|]/g,(e,n)=>"${"+(+n+t)+`:`);return t+=r,i})};e.items.forEach(e=>{if(this.isParentCompletionItem(e)){let n=e.parent.indent||``,r=t(e.parent.insertTexts).join(`
419
- ${n}`);r.endsWith(`$1`)&&(r=r.substring(0,r.length-2)),e.insertText=this.arrayPrefixIndentation+r,e.textEdit&&(e.textEdit.newText=e.insertText);let i=r.replace(/\${[0-9]+[:|](.*)}/g,(e,t)=>t).replace(/\$([0-9]+)/g,``),a=e.documentation?[e.documentation,``,`----`,``]:[];e.documentation={kind:dc.Markdown,value:[...a,"```yaml",n+i,"```"].join(`
420
- `)},delete e.parent}})}createTempObjNode(e,t,n){let r={};r[e]=null;let i=n.internalDocument.createNode(r);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,n,r,i,a,o,s,c,l){let u=t.getMatchingSchemas(e.schema,-1,null,c),d=o.getText(s),f=o.getLineContent(s.start.line),p=f.trim().length===0,m=f.indexOf(`:`)!==-1,h=f.trimLeft().indexOf(`-`)===0,g=t.getParent(n),_=u.find(e=>e.node.internalNode===r&&e.schema.properties),v=u.filter(e=>e.schema.oneOf).map(e=>e.schema.oneOf)[0],y=!1;v?.length<u.length&&v?.forEach((e,t)=>{!u[t]?.schema.oneOf&&u[t]?.schema.properties===e.properties&&(y=!0)});for(let e of u){if((e.node.internalNode===n&&!_||e.node.internalNode===r&&!m||e.node.parent?.internalNode===r&&!m)&&!e.inverted){this.collectDefaultSnippets(e.schema,i,a,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:h});let t=e.schema.properties;if(t){let c=e.schema.maxProperties;if(c===void 0||n.items===void 0||n.items.length<c||n.items.length===c&&!p){for(let c in t)if(Object.prototype.hasOwnProperty.call(t,c)){let u=t[c];if(typeof u==`object`&&!u.deprecationMessage&&!u.doNotSuggest){let t=``;if(g&&zl(g)&&n.items.length<=1&&!p){let e=o.getText(),r=e.lastIndexOf(`-`,n.range[0]-1);if(r>=0){let i=s.end.character-s.start.character;t=` `+e.slice(r+1,n.range[1]-i)}}t+=this.arrayPrefixIndentation;let f;u.type===`array`&&(f=n.items.find(e=>z(e.key)&&e.key.range&&e.key.value===c&&z(e.value)&&!e.value.value&&o.getPosition(e.key.range[2]).line===s.end.line-1))&&f&&(Array.isArray(u.items)?this.addSchemaValueCompletions(u.items[0],i,a,{},l,!0):typeof u.items==`object`&&u.items.type===`object`&&this.addArrayItemValueCompletion(u.items,i,a));let h=c,_=Array.isArray(e.schema.required)?e.schema.required.includes(c):!1;(!c.startsWith(d)||!m)&&(h=this.getInsertTextForProperty(c,u,i,t+this.indentation,_));let v=z(r)&&r.value===null||Ll(r)&&r.items.length===0,b=e.schema.required?.length>0;(!this.parentSkeletonSelectedFirst||!v||!b)&&a.add({kind:pc.Property,label:c,insertText:h,insertTextFormat:mc.Snippet,documentation:this.fromMarkup(u.markdownDescription)||u.description||``},y),e.schema.required?.includes(c)&&a.add({label:c,insertText:this.getInsertTextForProperty(c,u,i,t+this.indentation,!0),insertTextFormat:mc.Snippet,documentation:this.fromMarkup(u.markdownDescription)||u.description||``,parent:{schema:e.schema,indent:t}})}}}}if(g&&zl(g)&&IR(e.schema)&&this.addSchemaValueCompletions(e.schema,i,a,{},l),e.schema.type===`object`&&e.schema.propertyNames&&e.schema.additionalProperties!==!1){let t=Cz(e.schema.propertyNames);if(!t.deprecationMessage&&!t.doNotSuggest){let e=this.fromMarkup((t.markdownDescription||t.description||``)+(t.pattern?`
421
-
422
- **Pattern:** \`${t.pattern}\``:``)),{candidates:n,impossible:r}=this.getPropertyNamesCandidates(t);if(!r){if(n.length)for(let t of n)a.add({kind:pc.Property,label:t,insertText:`${t}: `,insertTextFormat:mc.PlainText,documentation:e});else{let n=t.title||`property`;a.add({kind:pc.Property,label:n,insertText:`\${1:${n}}: `,insertTextFormat:mc.Snippet,documentation:e})}}}}}g&&e.node.internalNode===g&&e.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(e.schema,i,a,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,i,a,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,a,o,s,c){let l=null;if(n&&z(n)&&(n=t.getParent(n)),!n){this.addSchemaValueCompletions(e.schema,``,a,o,!1);return}if(Rl(n)){let e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;l=z(n.key)?n.key.value+``:null,n=t.getParent(n)}if(n&&(l!==null||zl(n))){let u=t.getMatchingSchemas(e.schema,-1,null,s);for(let e of u)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,``,a,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),zl(n)&&n.items)){if(Array.isArray(e.schema.items)){let t=this.findItemAtOffset(n,i,r);t<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[t],``,a,o,!1)}else this.addSchemaValueCompletions(e.schema.items,``,a,o,c,typeof e.schema.items==`object`&&(e.schema.items.type===`object`||LR(e.schema.items)))}if(e.schema.properties){let t=e.schema.properties[l];t&&this.addSchemaValueCompletions(t,``,a,o,c)}e.schema.additionalProperties&&this.addSchemaValueCompletions(e.schema.additionalProperties,``,a,o,c)}o.boolean&&(this.addBooleanValueCompletion(!0,``,a),this.addBooleanValueCompletion(!1,``,a)),o.null&&this.addNullValueCompletion(``,a)}}addArrayItemValueCompletion(e,t,n,r){let i=NR(e),a=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,o=i?" type `"+i+"`":``,s=e.description?` (`+e.description+`)`:``,c=this.getDocumentationWithMarkdownText(R(`Create an item of an array{0}{1}`,o,s),a);n.add({kind:this.getSuggestionKind(e.type),label:R(`- (array item) `)+(i||r),documentation:c,insertText:a,insertTextFormat:mc.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation,i=!1){let a=this.getInsertTextForValue(e,``,`string`),o=a+`:`,s=t&&i&&kR(t.default),c,l=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e=`object`:t.items?e=`array`:t.anyOf&&(e=`anyOf`)),Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){let e=t.defaultSnippets[0].body;kR(e)&&(c=this.getInsertTextForSnippetValue(e,``,{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),!c.startsWith(` `)&&!c.startsWith(`
423
- `)&&(c=` `+c))}l+=t.defaultSnippets.length}if(t.enum&&(!c&&t.enum.length===1&&(c=` `+this.getInsertTextForGuessedValue(t.enum[0],``,e)),l+=t.enum.length),kR(t.const)&&(c||=(c=this.getInsertTextForGuessedValue(t.const,``,e),c=this.evaluateTab1Symbol(c),` `+c),l++),kR(t.default)){if(!c||s){let n=this.getInsertTextForGuessedValue(t.default,``,e);s&&(n=this.evaluateTab1Symbol(n)),c=` `+n}l++}if(Array.isArray(t.examples)&&t.examples.length&&(c||=` `+this.getInsertTextForGuessedValue(t.examples[0],``,e),l+=t.examples.length),t.properties)return`${o}
424
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${o}
425
- ${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(l===0)switch(e){case`boolean`:case`string`:case`anyOf`:c=` $1`;break;case`object`:c=`
426
- ${r}`;break;case`array`:c=`
427
- ${r}- `;break;case`number`:case`integer`:c=" ${1:0}";break;case`null`:c=" ${1:null}";break;default:return a}}return(!c||l>1&&!s)&&(c=` $1`),o+c+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let i=``;return e.properties?(Object.keys(e.properties).forEach(a=>{let o=e.properties[a],s=Array.isArray(o.type)?o.type[0]:o.type;if(s||(o.anyOf&&(s=`anyOf`),o.properties&&(s=`object`),o.items&&(s=`array`)),e.required&&e.required.indexOf(a)>-1)switch(s){case`boolean`:case`string`:case`number`:case`integer`:case`anyOf`:{let e=o.default===void 0?o.const:o.default;e===void 0?i+=`${n}${a}: $${r++}
428
- `:(s===`string`&&(e=oV(e)),i+=`${n}${a}: \${${r++}:${e}}
429
- `);break}case`array`:{let e=this.getInsertTextForArray(o.items,t,r++,n),s=e.insertText.split(`
430
- `),c=e.insertText;if(s.length>1){for(let e=1;e<s.length;e++){let t=s[e];s[e]=` ${t}`}c=s.join(`
431
- `)}r=e.insertIndex,i+=`${n}${a}:
432
- ${n}${this.indentation}- ${c}
433
- `}break;case`object`:{let e=this.getInsertTextForObject(o,t,`${n}${this.indentation}`,r++);r=e.insertIndex,i+=`${n}${a}:
434
- ${e.insertText}
435
- `}}else if(!this.disableDefaultProperties&&o.default!==void 0)switch(s){case`boolean`:case`number`:case`integer`:i+=`${n}${a===`null`?this.getInsertTextForValue(a,``,`string`):a}: \${${r++}:${o.default}}
436
- `;break;case`string`:i+=`${n}${a}: \${${r++}:${oV(o.default)}}
437
- `}}),i.trim().length===0&&(i=`${n}$${r++}
438
- `),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}
439
- `,{insertText:i,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let i=``;if(!e)return i=`$${n++}`,{insertText:i,insertIndex:n};let a=Array.isArray(e.type)?e.type[0]:e.type;switch(a||(e.properties&&(a=`object`),e.items&&(a=`array`)),e.type){case`boolean`:i=`\${${n++}:false}`;break;case`number`:case`integer`:i=`\${${n++}:0}`;break;case`string`:i=`\${${n++}}`;break;case`object`:{let a=this.getInsertTextForObject(e,t,`${r} `,n++);i=a.insertText.trimLeft(),n=a.insertIndex}}return{insertText:i,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case`object`:return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case`string`:return n===`number`||n===`integer`?"${1:"+e+`}`+t:"${1:"+this.getInsertTextForPlainText(oV(e))+`}`+t;case`number`:case`boolean`:return"${1:"+e+`}`+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/\\(?=[$}\\])/g,`\\\\`).replace(/[$}]/g,`\\$&`)}getInsertTextForValue(e,t,n){if(e===null)return`null`;switch(typeof e){case`object`:{let n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}case`number`:case`boolean`:return this.getInsertTextForPlainText(e+t)}return n=Array.isArray(n)?n[0]:n,n===`string`&&(e=oV(String(e),this.isSingleQuote)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r=`
440
- `;for(let i of e)r+=`${t}- \${${n.index++}:${i}}
441
- `;return r}if(typeof e==`object`){let i=`
442
- `;for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)){let o=e[a];i+=`${t}\${${n.index++}:${a}}:`;let s;s=typeof o==`object`?`${this.getInsertTemplateForValue(o,t+this.indentation,n,r)}`:` \${${n.index++}:${this.getInsertTextForPlainText(o+r)}}
443
- `,i+=`${s}`}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i=!1,a=!1){typeof e==`object`&&(this.addEnumValueCompletions(e,t,n,i),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),a&&!LR(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach(e=>this.addSchemaValueCompletions(e,t,n,r,i,a)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>this.addSchemaValueCompletions(e,t,n,r,i,a)),Array.isArray(e.oneOf)&&e.oneOf.forEach(e=>this.addSchemaValueCompletions(e,t,n,r,i,a)))}collectTypes(e,t){if(Array.isArray(e.enum)||kR(e.const))return;let n=e.type;Array.isArray(n)?n.forEach(function(e){return t[e]=!0}):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(kR(e.default)){let a=e.type,o=e.default;for(let e=r;e>0;e--)o=[o],a=`array`;let s;s=typeof o==`object`?R(`Default value`):this.getLabelForValue(o),n.add({kind:this.getSuggestionKind(a),label:s,insertText:this.getInsertTextForValue(o,t,a),insertTextFormat:mc.Snippet,detail:R(`Default value`)}),i=!0}Array.isArray(e.examples)&&e.examples.forEach(a=>{let o=e.type,s=a;for(let e=r;e>0;e--)s=[s],o=`array`;n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t,o),insertTextFormat:mc.Snippet}),i=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),!i&&typeof e.items==`object`&&!Array.isArray(e.items)&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(kR(e.const)&&(!r||typeof e.const==`object`)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:mc.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let i=0,a=e.enum.length;i<a;i++){let a=e.enum[i];if(r&&typeof a!=`object`)continue;let o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&i<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[i]):e.enumDescriptions&&i<e.enumDescriptions.length&&(o=e.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,e.type),insertTextFormat:mc.Snippet,documentation:o})}}getLabelForValue(e){return e===null?`null`:Array.isArray(e)?JSON.stringify(e):typeof e==`string`?oV(e,this.isSingleQuote):String(e)}collectDefaultSnippets(e,t,n,r,i=0){if(Array.isArray(e.defaultSnippets))for(let a of e.defaultSnippets){let o=e.type,s=a.body,c=a.label,l,u;if(kR(s)){let o=a.type||e.type;if(i===0&&o===`array`){let e={};Object.keys(s).forEach((t,n)=>{n===0&&!t.startsWith(`-`)?e[`- ${t}`]=s[t]:e[` ${t}`]=s[t]}),s=e}let u=Object.keys(n.proposed).filter(e=>n.proposed[e].label===HV);if(l=this.getInsertTextForSnippetValue(s,t,r,u),l===``&&s)continue;c||=this.getLabelForSnippetValue(s)}else if(typeof a.bodyText==`string`){let e=``,n=``,r=``;for(let t=i;t>0;t--)e=e+r+`[
444
- `,n=n+`
445
- `+r+`]`,r+=this.indentation,o=`array`;l=e+r+a.bodyText.split(`
446
- `).join(`
447
- `+r)+n+t,c||=l,u=l.replace(/[\n]/g,``)}n.add({kind:a.suggestionKind||this.getSuggestionKind(o),label:c,sortText:a.sortText||a.label,documentation:this.fromMarkup(a.markdownDescription)||a.description,insertText:l,insertTextFormat:mc.Snippet,filterText:u})}}getInsertTextForSnippetValue(e,t,n,r,i){return zV(e,``,e=>{if(typeof e==`string`){if(e[0]===`^`)return e.substr(1);if(e===`true`||e===`false`)return`"${e}"`}return e},{...n,indentation:this.indentation,existingProps:r},i)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind(`boolean`),label:e?`true`:`false`,insertText:this.getInsertTextForValue(e,t,`boolean`),insertTextFormat:mc.Snippet,documentation:``})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind(`null`),label:`null`,insertText:`null`+e,insertTextFormat:mc.Snippet,documentation:``})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,`$1`)}getCustomTagValueCompletions(e){zR(this.customTags).forEach(t=>{let n=t.split(` `)[0];this.addCustomTagValueCompletion(e,` `,n)})}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind(`string`),label:n,insertText:n+t,insertTextFormat:mc.Snippet,documentation:``})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(e,t)=>t).replace(/\$([0-9]+)/g,``),n=this.fromMarkup(`${e}
448
- \`\`\`
449
- ${t}
450
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){let t=e;e=t.length>0?t[0]:null}if(!e)return pc.Value;switch(e){case`string`:return pc.Value;case`object`:return pc.Module;case`property`:return pc.Property;default:return pc.Value}}getCurrentWord(e,t){let n=t-1,r=e.getText();for(;n>=0&&`
451
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:dc.Markdown,value:e}}doesSupportMarkdown(){if(this.supportsMarkdown===void 0){let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&e.completionItem.documentationFormat.indexOf(dc.Markdown)!==-1}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let t=e.items.length-1;t>=0;t--){let r=e.items[t];if(Vl(r)&&r.range&&(n>r.range[1]||n>=r.range[0]))return t}return 0}getPropertyNamesCandidates(e){let t=!1,n=e=>{if(!e||typeof e!=`object`)return null;if(Array.isArray(e.allOf)&&e.allOf.length){let r=null;for(let i of e.allOf){let e=n(i);if(e&&(r=r?new Set([...r].filter(t=>e.has(t))):new Set(e),r.size===0))return t=!0,new Set}if(r)return r}let r=new Set;return typeof e.const==`string`&&r.add(e.const),e.enum?.forEach(e=>typeof e==`string`&&r.add(e)),e.anyOf?.forEach(e=>n(e)?.forEach(e=>r.add(e))),e.oneOf?.forEach(e=>n(e)?.forEach(e=>r.add(e))),r.size?r:null},r=n(e);return{candidates:r?[...r]:[],impossible:t}}getQuote(){return this.isSingleQuote?`'`:`"`}evaluateTab1Symbol(e){return e.replace(/\$\{1:(.*)\}/,`$1`)}isParentCompletionItem(e){return`parent`in e}};function WV(){}var GV=class{constructor(e){this.telemetry=e}getDefinition(e,t){try{let n=aB.getYamlDocument(e),r=e.offsetAt(t.position),i=RR(r,n);if(i){let[t]=i.getNodeFromPosition(r,new uB(e));if(t&&Fl(t)){let n=t.resolve(i.internalDocument);if(n&&n.range){let t=F.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),r=F.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[zs.create(e.uri,t,r)]}}}}catch(e){this.telemetry?.sendError(`yaml.definition.error`,e)}}};function KV(e,t){let n=aB.getYamlDocument(e);return t.map(e=>{let t=r(e),n;for(let e of t)n=Vc.create(e,n);return n??Vc.create({start:e,end:e})});function r(t){let r=e.offsetAt(t),o=[];for(let s of n.documents){let n,c;for(s.visit(e=>{let o=e.offset+e.length;if(o<r||a(o-1,o)===`
452
- `&&o-1<r)return!0;let s=e.offset;if(s>r){let n=i(e,t);if(!n||n>r)return!0;s=n}return(!n||s>=n.offset)&&(n=e,c=s),!0});n;){let t=c??n.offset,i=n.offset+n.length,a={start:e.positionAt(t),end:e.positionAt(i)},s=qV(e.getText(a)),l=t+s.length;l>=r&&(a.end=e.positionAt(l));let u=(e,t)=>s.startsWith(e)&&s.endsWith(t||e);(n.type===`string`&&(u(`'`)||u(`"`))||n.type===`object`&&u(`{`,`}`)||n.type===`array`&&u(`[`,`]`))&&o.push({start:e.positionAt(t+1),end:e.positionAt(i-1)}),o.push(a),n=n.parent,c=void 0}if(o.length>0)break}return o.reverse()}function i(t,n){let r=e.positionAt(t.offset);if(r.line===n.line){if(t.parent?.type===`array`&&a(t.offset-2,t.offset)===`- `)return t.offset-2;if(t.type===`array`||t.type===`object`){let t={line:r.line,character:0};if(e.getText({start:t,end:r}).trim().length===0)return e.offsetAt(t)}}}function a(t,n){return e.getText({start:e.positionAt(t),end:e.positionAt(n)})}}function qV(e){return e.endsWith(`\r
453
- `)?e.substring(0,e.length-2):e.endsWith(`
454
- `)?e.substring(0,e.length-1):e}var JV={},YV=class extends Error{name=`ResponseError`;constructor(e,t){super(t)}},XV=class{constructor(e){this.telemetry=e}prepareRename(e,t){try{let n=this.findTarget(e,t.position);return!n||!this.findAnchorToken(n.yamlDoc,n.anchorNode)?null:this.getNameRange(e,n.token)}catch(e){return this.telemetry?.sendError(`yaml.prepareRename.error`,e),null}}doRename(e,t){try{let n=this.findTarget(e,t.position);if(!n)return null;let r=this.findAnchorToken(n.yamlDoc,n.anchorNode);if(!r)return null;let i=t.newName,a=this.findInvalidAnchorChar(i);if(a!==null)throw new YV(JV.InvalidParams,`Anchor name cannot contain '${a}'`);let o=[];return o.push(Xs.replace(this.getNameRange(e,r),i)),Kl(n.yamlDoc.internalDocument,(t,r)=>{Fl(r)&&r.srcToken&&r.resolve(n.yamlDoc.internalDocument)===n.anchorNode&&o.push(Xs.replace(this.getNameRange(e,r.srcToken),i))}),{changes:{[e.uri]:o}}}catch(e){if(e instanceof YV)throw e;return this.telemetry?.sendError(`yaml.rename.error`,e),null}}findTarget(e,t){let n=aB.getYamlDocument(e),r=e.offsetAt(t),i=RR(r,n);if(!i)return null;let[a]=i.getNodeFromPosition(r,new uB(e));if(!a)return this.findByToken(i,r);if(Fl(a)&&a.srcToken&&this.isOffsetInsideToken(a.srcToken,r)){let e=a.resolve(i.internalDocument);return e?{anchorNode:e,token:a.srcToken,yamlDoc:i}:null}if((Bl(a)||z(a))&&a.anchor){let e=this.findAnchorToken(i,a);if(e&&this.isOffsetInsideToken(e,r))return{anchorNode:a,token:e,yamlDoc:i}}return this.findByToken(i,r)}findByToken(e,t){let n;return Kl(e.internalDocument,(r,i)=>{if(Fl(i)&&i.srcToken&&this.isOffsetInsideToken(i.srcToken,t)){let t=i.resolve(e.internalDocument);if(t)return n={anchorNode:t,token:i.srcToken,yamlDoc:e},Kl.BREAK}if((Bl(i)||z(i))&&i.anchor){let r=this.findAnchorToken(e,i);if(r&&this.isOffsetInsideToken(r,t))return n={anchorNode:i,token:r,yamlDoc:e},Kl.BREAK}}),n??null}findAnchorToken(e,t){let n=e.getParent(t),r=[];n&&n.srcToken&&r.push(n.srcToken),t.srcToken&&r.push(t.srcToken);for(let e of r){let n=this.getAnchorFromToken(e,t);if(n)return n}}getAnchorFromToken(e,t){if(tB(e))return this.getAnchorFromCollectionItem(e);if(Zf(e)){let n=e;for(let e of n.items??[]){if(e.value!==t.srcToken)continue;let n=this.getAnchorFromCollectionItem(e);if(n)return n}}}getAnchorFromCollectionItem(e){for(let t of e.start)if(t.type===`anchor`)return t;if(e.sep&&Array.isArray(e.sep)){for(let t of e.sep)if(t.type===`anchor`)return t}}getNameRange(e,t){let n=t.offset+1,r=t.offset+t.source.length;return F.create(e.positionAt(n),e.positionAt(r))}isOffsetInsideToken(e,t){return t>=e.offset&&t<=e.offset+e.source.length}findInvalidAnchorChar(e){for(let t of[`[`,`]`,`{`,`}`,`,`,` `,` `])if(e.includes(t))return t===` `?`space`:t===` `?`tab`:t;return null}},ZV;(function(e){e[e.SchemaStore=1]=`SchemaStore`,e[e.SchemaAssociation=2]=`SchemaAssociation`,e[e.Settings=3]=`Settings`})(ZV||={});function QV(e){let t=new YB(e.schemaRequestService,e.workspaceContext,null,e.yamlSettings),n=new UV(t,e.clientCapabilities,aB,e.telemetry),r=new sV(t,e.telemetry),i=new iV(t,e.telemetry),a=new CV(t,e.telemetry),o=new wV,s=new jV(e.clientCapabilities),c=new FV(t,e.telemetry),l=new TV(e.telemetry),u=new GV(e.telemetry),d=new XV(e.telemetry);return new WV(t,e.yamlSettings,e.connection),{configure:i=>{t.clearExternalSchemas(),i.schemas&&(t.schemaPriorityMapping=new Map,i.schemas.forEach(e=>{let n=e.priority?e.priority:0;t.addSchemaPriority(e.uri,n),t.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)})),a.configure(i),r.configure(i),n.configure(i,e.yamlSettings),o.configure(i),s.configure(i,e?.yamlSettings?.yamlFormatterSettings?.printWidth||80)},registerCustomSchemaProvider:e=>{t.registerCustomSchemaProvider(e)},findLinks:l.findLinks.bind(l),doComplete:n.doComplete.bind(n),doValidation:a.doValidation.bind(a),doHover:r.doHover.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findHierarchicalDocumentSymbols.bind(i),doDefinition:u.getDefinition.bind(u),resetSchema:e=>t.onResourceChange(e),doFormat:o.format.bind(o),doDocumentOnTypeFormatting:PV,addSchema:(e,n)=>t.saveSchema(e,n),deleteSchema:e=>t.deleteSchema(e),modifySchemaContent:e=>t.addContent(e),deleteSchemaContent:e=>t.deleteContent(e),deleteSchemasWhole:e=>t.deleteSchemas(e),getFoldingRanges:EV,getSelectionRanges:KV,getCodeAction:(e,t)=>s.getCodeAction(e,t),getCodeLens:e=>c.getCodeLens(e),resolveCodeLens:e=>c.resolveCodeLens(e),prepareRename:(e,t)=>d.prepareRename(e,t),doRename:(e,t)=>d.doRename(e,t)}}async function $V(e){let t=await fetch(e);if(t.ok)return t.text();throw Error(`Schema request failed for ${e}`)}var eH={send(){},sendError(e,t){console.error(`monaco-yaml`,e,t)},sendTrack(){}};as((e,{enableSchemaRequest:t,format:n,...r})=>{let i=QV({schemaRequestService:t?$V:null,telemetry:eH,workspaceContext:{resolveRelativePath(e,t){return String(new URL(e,t))}},clientCapabilities:{textDocument:{completion:{completionItem:{commitCharactersSupport:!0,documentationFormat:[`markdown`,`plaintext`],labelDetailsSupport:!0}}}}}),a=t=>(n,...r)=>{let i=e.getMirrorModels();for(let e of i)if(String(e.uri)===n)return t(ss.create(n,`yaml`,e.version,e.getValue()),...r)};return i.configure({...r,format:!!n?.enable}),{doValidation:a(e=>i.doValidation(e,!!r.isKubernetes)),doComplete:a((e,t)=>i.doComplete(e,t,!!r.isKubernetes)),doDefinition:a((e,t)=>i.doDefinition(e,{position:t,textDocument:e})),doDocumentOnTypeFormatting:a((e,t,n,r)=>i.doDocumentOnTypeFormatting(e,{ch:n,options:r,position:t,textDocument:e})),doHover:a(i.doHover),doRename:a((e,t,n)=>i.doRename(e,{newName:n,position:t,textDocument:e})),format:a(e=>i.doFormat(e,n)),resetSchema:i.resetSchema,findDocumentSymbols:a(i.findDocumentSymbols2),findLinks:a(i.findLinks),getCodeAction:a((e,t,n)=>i.getCodeAction(e,{range:t,textDocument:e,context:n})),getCodeLens:a(i.getCodeLens),getFoldingRanges:a(e=>i.getFoldingRanges(e,{lineFoldingOnly:!0})),getSelectionRanges:a(i.getSelectionRanges),prepareRename:a((e,t)=>i.prepareRename(e,{position:t,textDocument:e}))}});