openpond 0.2.53 → 0.2.55

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 (254) hide show
  1. package/dist/app-server.d.ts +1514 -100
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/actions-command-WTFZA7LF.js +2 -0
  4. package/dist/chunks/{app-layer-I7MZYVLL.js → app-layer-Y2UERCPY.js} +1 -1
  5. package/dist/chunks/app-server-runtime-2RM3N4I6.js +2 -0
  6. package/dist/chunks/apps-KDNWYO3G.js +2 -0
  7. package/dist/chunks/chunk-2DFR7PJ4.js +2460 -0
  8. package/dist/chunks/chunk-4CRM2ADK.js +2 -0
  9. package/dist/chunks/{chunk-7ZG3IT7C.js → chunk-4WEUCGJ3.js} +6 -6
  10. package/dist/chunks/chunk-55G6B54U.js +6 -0
  11. package/dist/chunks/chunk-73G5UYBB.js +12 -0
  12. package/dist/chunks/{chunk-DALJMSJG.js → chunk-ARQEJOEK.js} +24 -24
  13. package/dist/chunks/chunk-B7QDZPNX.js +2 -0
  14. package/dist/chunks/chunk-BFKYRQMA.js +2 -0
  15. package/dist/chunks/{chunk-AH22RHPS.js → chunk-BQAF5P7K.js} +2 -2
  16. package/dist/chunks/{chunk-YJ4PNAST.js → chunk-BTI4N7YO.js} +1 -1
  17. package/dist/chunks/chunk-C6D4WAYN.js +6 -0
  18. package/dist/chunks/chunk-CGBI2VYJ.js +2 -0
  19. package/dist/chunks/chunk-DLVPSCTB.js +2 -0
  20. package/dist/chunks/{chunk-UJ5EFSEC.js → chunk-G6JMQGX7.js} +1 -1
  21. package/dist/chunks/chunk-GGIG3XU7.js +3 -0
  22. package/dist/chunks/chunk-IODUCRBA.js +58 -0
  23. package/dist/chunks/chunk-JIMU3KDA.js +24 -0
  24. package/dist/chunks/chunk-JUJSA7KI.js +22 -0
  25. package/dist/chunks/chunk-K5SBVO3B.js +195 -0
  26. package/dist/chunks/chunk-KD3QVRIJ.js +21 -0
  27. package/dist/chunks/chunk-KGNCKIFP.js +3 -0
  28. package/dist/chunks/chunk-L4235TRQ.js +140 -0
  29. package/dist/chunks/{chunk-N5QNXMIS.js → chunk-MH3LHSGX.js} +1 -1
  30. package/dist/chunks/chunk-MVF3F5QS.js +2 -0
  31. package/dist/chunks/{chunk-N3DEA6PG.js → chunk-NNIRIUSY.js} +1 -1
  32. package/dist/chunks/{chunk-WITSXYEW.js → chunk-NOTXPD2T.js} +1 -1
  33. package/dist/chunks/{chunk-T5LE6R5S.js → chunk-OSIO7PLX.js} +1 -1
  34. package/dist/chunks/chunk-OULAKUIN.js +2 -0
  35. package/dist/chunks/chunk-OWNLDB2O.js +2 -0
  36. package/dist/chunks/{chunk-NAZ26IZL.js → chunk-Q7AXHFZV.js} +1 -1
  37. package/dist/chunks/chunk-QDHMP5FS.js +2 -0
  38. package/dist/chunks/chunk-QKD5OMDI.js +2 -0
  39. package/dist/chunks/{chunk-YD55Z5H3.js → chunk-QRAKXZOC.js} +10 -10
  40. package/dist/chunks/{chunk-JDLAHVAJ.js → chunk-R27YGT77.js} +1 -1
  41. package/dist/chunks/chunk-R2BSIRYL.js +3 -0
  42. package/dist/chunks/chunk-SHQOIROR.js +42 -0
  43. package/dist/chunks/chunk-STDMBJOQ.js +9 -0
  44. package/dist/chunks/chunk-T4QGDQHP.js +4 -0
  45. package/dist/chunks/{chunk-R3XFY7VL.js → chunk-TERVLCRG.js} +1 -1
  46. package/dist/chunks/{chunk-PA7XP42P.js → chunk-U2YMBCX7.js} +1 -1
  47. package/dist/chunks/{chunk-GXSTZBM6.js → chunk-UA5DA5I2.js} +1 -1
  48. package/dist/chunks/chunk-VJEZPDBS.js +5 -0
  49. package/dist/chunks/chunk-WDFLCNRC.js +8 -0
  50. package/dist/chunks/chunk-WZYRAR7X.js +16 -0
  51. package/dist/chunks/chunk-YDT7L3VZ.js +24 -0
  52. package/dist/chunks/chunk-YR5ID2SS.js +2 -0
  53. package/dist/chunks/chunk-YUPBAWBJ.js +554 -0
  54. package/dist/chunks/cli-465VC2WP.js +2 -0
  55. package/dist/chunks/{configuration-command-MATM4XR5.js → configuration-command-LAAP2EXT.js} +1 -1
  56. package/dist/chunks/connected-evidence-XM626247.js +2 -0
  57. package/dist/chunks/{continual-PKK2BOTB.js → continual-TTGJ6YTR.js} +1 -1
  58. package/dist/chunks/core-commands-W7EK552V.js +2 -0
  59. package/dist/chunks/datasets-QJWYTTQL.js +2 -0
  60. package/dist/chunks/desktop-test-3B2D34NF.js +3 -0
  61. package/dist/chunks/dist-FAJX2UBW.js +2 -0
  62. package/dist/chunks/{dist-4HV2W6V4.js → dist-HUAE2KFZ.js} +1 -1
  63. package/dist/chunks/{chunk-6VF3Q6QJ.js → dist-SKYG5LZO.js} +2 -4
  64. package/dist/chunks/evaluation-coordination-2MONR4AX.js +2 -0
  65. package/dist/chunks/experiment-improvements-WVQ5FK46.js +2 -0
  66. package/dist/chunks/experiments-S5UQ32QB.js +2 -0
  67. package/dist/chunks/extension-DWMY6D2R.js +4 -0
  68. package/dist/chunks/{help-WLKSACLZ.js → help-A72QDRNG.js} +1 -1
  69. package/dist/chunks/hosted-experiment-improvement-2OWOQLHC.js +3 -0
  70. package/dist/chunks/hosted-harness-runtime-TGFMAV7W.js +2 -0
  71. package/dist/chunks/hosted-profile-candidate-WQSI6HZO.js +3 -0
  72. package/dist/chunks/hosted-profile-compiler-Z2A4TEA6.js +2 -0
  73. package/dist/chunks/hosted-profile-evaluation-control-FKGARUEE.js +2 -0
  74. package/dist/chunks/hosted-profile-evaluation-inspection-QOY2JKV4.js +3 -0
  75. package/dist/chunks/hosted-profile-evaluation-preparation-WVP6CALP.js +3 -0
  76. package/dist/chunks/human-review-TGHQKXFZ.js +2 -0
  77. package/dist/chunks/{import-V3HUGRHR.js → import-4UE5XNSG.js} +1 -1
  78. package/dist/chunks/javascript-isolate-process-source-ZPQKKLR4.js +2 -0
  79. package/dist/chunks/javascript-verifier-worker-source-F3LSGPOY.js +2 -0
  80. package/dist/chunks/learning-R2XBMMEM.js +2 -0
  81. package/dist/chunks/opchat-WULL6CUP.js +3 -0
  82. package/dist/chunks/organizations-I37HISVX.js +2 -0
  83. package/dist/chunks/profile-NOZ6TVXL.js +3 -0
  84. package/dist/chunks/project-agent-T6XKC54C.js +2 -0
  85. package/dist/chunks/sandbox-command-STB47FRY.js +2 -0
  86. package/dist/chunks/{sandbox-template-BBGGPJMI.js → sandbox-template-LKGBDVJ4.js} +1 -1
  87. package/dist/chunks/sql-execution-process-source-B4HQM6ZV.js +2 -0
  88. package/dist/chunks/src-T3KWWCAH.js +322 -0
  89. package/dist/chunks/{src-CR6UZYTX.js → src-ZWJ5IO7A.js} +1 -1
  90. package/dist/chunks/{taskset-LUG3ZU6J.js → taskset-RNYDR4GS.js} +1 -1
  91. package/dist/chunks/{teams-bot-7I4BAUVO.js → teams-bot-H7XT23XB.js} +1 -1
  92. package/dist/chunks/{training-XHE6FVII.js → training-M6FAPRSJ.js} +1 -1
  93. package/dist/cli.js +1 -1
  94. package/dist/index.js +1 -1
  95. package/dist/web/assets/App-CLFfy_Av.js +154 -0
  96. package/dist/web/assets/App-CTlAPuCY.css +1 -0
  97. package/dist/web/assets/{AppDialog-BdusXgU0.js → AppDialog-CPHTPqrx.js} +1 -1
  98. package/dist/web/assets/{AppTerminalPanel-C4uRpnBz.js → AppTerminalPanel-BVj5Tj93.js} +2 -2
  99. package/dist/web/assets/AppsView-O69zEBY3.js +1 -0
  100. package/dist/web/assets/{BrowserSidebar-Bl7V6YO2.js → BrowserSidebar-Pr_Kpe8p.js} +1 -1
  101. package/dist/web/assets/{CartesianChart-BstFbsdn.js → CartesianChart-JPqo6YOf.js} +1 -1
  102. package/dist/web/assets/{CollaborationTabs-B8YAf0c1.js → CollaborationTabs-CAJcQFn2.js} +1 -1
  103. package/dist/web/assets/{CommandMenu-DZct7zUJ.js → CommandMenu-B-w53n9A.js} +1 -1
  104. package/dist/web/assets/{CommunityView-CR0-W-uG.js → CommunityView-DbZKK8_P.js} +1 -1
  105. package/dist/web/assets/{ComposerCreateImproveStrip-DR-Qo7b4.js → ComposerCreateImproveStrip-3_083PF4.js} +1 -1
  106. package/dist/web/assets/{GetStartedView-xqQoMMei.js → GetStartedView-D7JGm_6c.js} +1 -1
  107. package/dist/web/assets/HostedModelLearningReview-DwgMfZ7_.js +1 -0
  108. package/dist/web/assets/{HostedModelLearningSettings-De3i9wF4.js → HostedModelLearningSettings-JRfQadRl.js} +1 -1
  109. package/dist/web/assets/{LabModelVersionDetailPage-DAY1MmqP.js → LabModelVersionDetailPage-BUYflJY_.js} +1 -1
  110. package/dist/web/assets/{LabSkillSidebar-DLnIgnry.js → LabSkillSidebar-BBiqk7Rf.js} +1 -1
  111. package/dist/web/assets/LabsRoute-Ci6vUnSd.js +99 -0
  112. package/dist/web/assets/MainChatThread-BQK3oI2N.js +2 -0
  113. package/dist/web/assets/MainPane-D3ojiN-p.js +18 -0
  114. package/dist/web/assets/{MarkdownText-gJMuefaJ.js → MarkdownText-DOdOVFXL.js} +25 -25
  115. package/dist/web/assets/{NativeSkillSidebar-Dlxb8iOC.js → NativeSkillSidebar-CRI_ri8z.js} +1 -1
  116. package/dist/web/assets/{NewExperienceSwitcher-DM-cqJ-K.js → NewExperienceSwitcher-DhYtfE68.js} +1 -1
  117. package/dist/web/assets/{NewProjectDialog-Cu1q75gq.js → NewProjectDialog-D8sy1gOz.js} +1 -1
  118. package/dist/web/assets/{OutputsPage-DiXMkasl.js → OutputsPage-CbWgrhXA.js} +1 -1
  119. package/dist/web/assets/{ProjectsPage-DqiBHiCB.js → ProjectsPage-DLB67lyA.js} +1 -1
  120. package/dist/web/assets/RightChatPanelStack-ozSKnDyX.js +1 -0
  121. package/dist/web/assets/{RightSidebarHomePanel-CeSFJM5s.js → RightSidebarHomePanel-CKs3OwhD.js} +1 -1
  122. package/dist/web/assets/ScheduledWorkPage-Cafv_QnR.js +1 -0
  123. package/dist/web/assets/SettingsView-T1vYDPjh.js +5 -0
  124. package/dist/web/assets/{TeamChatView-DM0adMtj.js → TeamChatView-vIrmXOY_.js} +2 -2
  125. package/dist/web/assets/{TerminalOverlay-CFlH51DD.js → TerminalOverlay-CAmF__Dq.js} +1 -1
  126. package/dist/web/assets/{TrainingCreationPanel-CgIBVGha.js → TrainingCreationPanel-D75K0yk5.js} +1 -1
  127. package/dist/web/assets/{TrainingDraftPanel-Bbo3RRie.js → TrainingDraftPanel-D7XZePAk.js} +1 -1
  128. package/dist/web/assets/{UsageSettingsSection-CSRjJUSa.js → UsageSettingsSection-CYTmp7PG.js} +1 -1
  129. package/dist/web/assets/WorkSidebarPanel-CODMjVHY.js +1 -0
  130. package/dist/web/assets/WorkspaceDiffPanel-DQGoIjH9.js +14 -0
  131. package/dist/web/assets/WorkspaceEnvironmentMenu-c1pHDskn.js +63 -0
  132. package/dist/web/assets/{WorkspaceGitDialogs-Dgmg-6XG.js → WorkspaceGitDialogs-DrVtapQQ.js} +1 -1
  133. package/dist/web/assets/{WorkspaceMonacoEditor-BR4qxMgU.js → WorkspaceMonacoEditor-BCKzvSj2.js} +3 -3
  134. package/dist/web/assets/arrow-up-right-CP4hZdrJ.js +1 -0
  135. package/dist/web/assets/chunk-NOJECMB7-Bhcms-w5.js +1 -0
  136. package/dist/web/assets/{clipboard-BZzZ82Bk.js → clipboard-BgrXorn-.js} +1 -1
  137. package/dist/web/assets/{cloud-upload-CJPYPVl8.js → cloud-upload-B_zYztb6.js} +1 -1
  138. package/dist/web/assets/{cssMode-WC4Rg1l-.js → cssMode-DanjGgA8.js} +1 -1
  139. package/dist/web/assets/{folder-open-sLZJxLQy.js → folder-open-CdVKbtGq.js} +1 -1
  140. package/dist/web/assets/folder-plus-Cc5KElB6.js +1 -0
  141. package/dist/web/assets/{git-commit-horizontal-Cotm7KEC.js → git-commit-horizontal-CjGIIgRi.js} +1 -1
  142. package/dist/web/assets/{htmlMode-C6oZGeaB.js → htmlMode-DRGDF_UL.js} +1 -1
  143. package/dist/web/assets/index-B5re-RJy.css +1 -0
  144. package/dist/web/assets/{index-BxWTVKtn.js → index-BE-wXZ5R.js} +2 -2
  145. package/dist/web/assets/info-BLj0RvhA.js +1 -0
  146. package/dist/web/assets/{jsonMode-BET4LQIn.js → jsonMode-CCu0j2GD.js} +1 -1
  147. package/dist/web/assets/{lspLanguageFeatures-BPxA_-Kg.js → lspLanguageFeatures-s_Lhm7P6.js} +1 -1
  148. package/dist/web/assets/minimize-2-Cyg_zD9z.js +1 -0
  149. package/dist/web/assets/{monaco.contribution-DXzyQfVi.js → monaco.contribution-CAzXvYkn.js} +2 -2
  150. package/dist/web/assets/{monaco.contribution-DFzEyaHi.js → monaco.contribution-CY7mRgOB.js} +2 -2
  151. package/dist/web/assets/{monaco.contribution-7AUuf2NS.js → monaco.contribution-aUeLcBEg.js} +2 -2
  152. package/dist/web/assets/{monaco.contribution-BH6kkO4b.js → monaco.contribution-mUPNK9ra.js} +2 -2
  153. package/dist/web/assets/monitor-DZvOs_wC.js +1 -0
  154. package/dist/web/assets/play-BJPzemuY.js +1 -0
  155. package/dist/web/assets/{python-PzBkTjWx.js → python-B_qnnVaG.js} +1 -1
  156. package/dist/web/assets/{save-DpezrtH2.js → save-BDy9tA3E.js} +1 -1
  157. package/dist/web/assets/square-Cb2c5td4.js +1 -0
  158. package/dist/web/assets/{toggleHighContrast-Cto-fOXm.js → toggleHighContrast-MhO1JLyR.js} +1 -1
  159. package/dist/web/assets/{tsMode-BYA4LNc6.js → tsMode-DfBXJb9V.js} +1 -1
  160. package/dist/web/assets/{upload-C5YFNgtS.js → upload-D56kThRh.js} +1 -1
  161. package/dist/web/assets/{useLocalAgentSchedules-CnyTsqlf.js → useLocalAgentSchedules-DMnGfswi.js} +1 -1
  162. package/dist/web/assets/useProviderSettings-Bv5B9eNk.js +5 -0
  163. package/dist/web/assets/{useSessionTurnCache-DICuJSJW.js → useSessionTurnCache-ClAY8gze.js} +1 -1
  164. package/dist/web/assets/{wifi-off-nzHj7JXp.js → wifi-off-C9lWJmVm.js} +1 -1
  165. package/dist/web/assets/{workers-Dboaw6f_.js → workers-BYzrH8by.js} +1 -1
  166. package/dist/web/assets/{yaml-uuY5JmO8.js → yaml-D3T8UkT3.js} +1 -1
  167. package/dist/web/index.html +2 -2
  168. package/package.json +3 -3
  169. package/dist/chunks/actions-command-DSO6YOEE.js +0 -2
  170. package/dist/chunks/app-server-runtime-KZP2LB5X.js +0 -2
  171. package/dist/chunks/apps-TM74FFQB.js +0 -2
  172. package/dist/chunks/chunk-2JO2KWT3.js +0 -5
  173. package/dist/chunks/chunk-2SPZYBDN.js +0 -16
  174. package/dist/chunks/chunk-3LX6RU3C.js +0 -3
  175. package/dist/chunks/chunk-4SHKI3BH.js +0 -2
  176. package/dist/chunks/chunk-4TZHH5FC.js +0 -2409
  177. package/dist/chunks/chunk-5TNDPNS3.js +0 -2
  178. package/dist/chunks/chunk-6JAN4RMN.js +0 -42
  179. package/dist/chunks/chunk-7QEE4PBI.js +0 -8
  180. package/dist/chunks/chunk-AFUDIT36.js +0 -2
  181. package/dist/chunks/chunk-BX4J2VDU.js +0 -2
  182. package/dist/chunks/chunk-EMKZVP7Z.js +0 -2
  183. package/dist/chunks/chunk-FPUUZQUP.js +0 -6
  184. package/dist/chunks/chunk-GCOUYYHG.js +0 -5
  185. package/dist/chunks/chunk-GS2NKNKG.js +0 -4
  186. package/dist/chunks/chunk-H2VT22JK.js +0 -2
  187. package/dist/chunks/chunk-HA7EFTPF.js +0 -23
  188. package/dist/chunks/chunk-IKWDL3RB.js +0 -17
  189. package/dist/chunks/chunk-L3KS6MOV.js +0 -2
  190. package/dist/chunks/chunk-NHFGEVVH.js +0 -518
  191. package/dist/chunks/chunk-NNF6KCHD.js +0 -3
  192. package/dist/chunks/chunk-PJM2G7SG.js +0 -21
  193. package/dist/chunks/chunk-PQHTZ5CP.js +0 -2
  194. package/dist/chunks/chunk-PYABBF53.js +0 -53
  195. package/dist/chunks/chunk-QRWPEW3Z.js +0 -24
  196. package/dist/chunks/chunk-QXVIIM4T.js +0 -2
  197. package/dist/chunks/chunk-SDEDAHV6.js +0 -160
  198. package/dist/chunks/chunk-TGIB24K4.js +0 -22
  199. package/dist/chunks/chunk-USKE34VR.js +0 -9
  200. package/dist/chunks/chunk-WV2APYWG.js +0 -2
  201. package/dist/chunks/chunk-XGE2XI6M.js +0 -191
  202. package/dist/chunks/chunk-XM26DGML.js +0 -3
  203. package/dist/chunks/chunk-YIB3J4RC.js +0 -2
  204. package/dist/chunks/chunk-YL6VFJ4P.js +0 -2
  205. package/dist/chunks/chunk-Z3D4C7BG.js +0 -12
  206. package/dist/chunks/cli-JVB345H2.js +0 -2
  207. package/dist/chunks/connected-evidence-YDPGNHLP.js +0 -2
  208. package/dist/chunks/core-commands-MTV4EKXY.js +0 -2
  209. package/dist/chunks/datasets-CP3IT47T.js +0 -2
  210. package/dist/chunks/desktop-test-IAZC5MAH.js +0 -3
  211. package/dist/chunks/dist-SAABJU5F.js +0 -2
  212. package/dist/chunks/evaluation-coordination-EPHLZXYM.js +0 -2
  213. package/dist/chunks/experiment-improvements-6JTOPA74.js +0 -2
  214. package/dist/chunks/experiments-XHPFGECH.js +0 -2
  215. package/dist/chunks/extension-GX7DLW2X.js +0 -4
  216. package/dist/chunks/hosted-experiment-improvement-HAB3UE6A.js +0 -3
  217. package/dist/chunks/hosted-harness-runtime-YM23QNDK.js +0 -2
  218. package/dist/chunks/hosted-profile-candidate-EOBGKQAS.js +0 -3
  219. package/dist/chunks/hosted-profile-compiler-OZAOZ2ES.js +0 -2
  220. package/dist/chunks/hosted-profile-evaluation-control-RJ6XJZCS.js +0 -2
  221. package/dist/chunks/hosted-profile-evaluation-inspection-SJIDXPHI.js +0 -3
  222. package/dist/chunks/hosted-profile-evaluation-preparation-26EI5LJR.js +0 -3
  223. package/dist/chunks/human-review-AAVMISBF.js +0 -2
  224. package/dist/chunks/learning-FNBEIAY6.js +0 -2
  225. package/dist/chunks/opchat-QK43DXTY.js +0 -3
  226. package/dist/chunks/organizations-SRPAWKC7.js +0 -2
  227. package/dist/chunks/profile-C6CQNVYE.js +0 -3
  228. package/dist/chunks/project-agent-GZV5HNYI.js +0 -2
  229. package/dist/chunks/sandbox-command-4TJXQTKT.js +0 -2
  230. package/dist/chunks/src-P3VYLFLI.js +0 -329
  231. package/dist/web/assets/App-CO2F717V.css +0 -1
  232. package/dist/web/assets/App-CuhaCsfb.js +0 -235
  233. package/dist/web/assets/AppsView-BS1czXUP.js +0 -1
  234. package/dist/web/assets/HostedModelLearningReview-CHxxf_Lu.js +0 -1
  235. package/dist/web/assets/LabsRoute-CXJRJMhr.js +0 -99
  236. package/dist/web/assets/MainChatThread-BwAla81W.js +0 -2
  237. package/dist/web/assets/MainPane-CakOBCHw.js +0 -19
  238. package/dist/web/assets/RightChatPanelStack-VaOOmxwd.js +0 -1
  239. package/dist/web/assets/ScheduledWorkPage-D1jRQxFs.js +0 -1
  240. package/dist/web/assets/SettingsView-RA9OXgcu.js +0 -5
  241. package/dist/web/assets/WorkSidebarPanel-DwlEMEoG.js +0 -1
  242. package/dist/web/assets/WorkspaceDiffPanel-pGVezNMw.js +0 -14
  243. package/dist/web/assets/WorkspaceEnvironmentMenu-Byjngd9V.js +0 -32
  244. package/dist/web/assets/arrow-up-right-H0pvnH2s.js +0 -1
  245. package/dist/web/assets/chunk-UHVJOMWN-BqXRe639.js +0 -1
  246. package/dist/web/assets/folder-plus-C84wrpt_.js +0 -1
  247. package/dist/web/assets/index-dSmk3FLJ.css +0 -1
  248. package/dist/web/assets/info-Dc81lEfw.js +0 -1
  249. package/dist/web/assets/minimize-2-Bs7MVN3C.js +0 -1
  250. package/dist/web/assets/monitor-DXL019Wf.js +0 -1
  251. package/dist/web/assets/play-CXkxUZeU.js +0 -1
  252. package/dist/web/assets/square-oy7f5Ce6.js +0 -1
  253. package/dist/web/assets/useProviderSettings-B_KeQjE5.js +0 -5
  254. /package/dist/chunks/{chunk-OGPHXXCD.js → chunk-BT5YNE5U.js} +0 -0
@@ -0,0 +1,3 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{b as i}from"./chunk-ES2ISFJC.js";import{a as c}from"./chunk-FTQLQJQV.js";var U=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),j=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),L=class s{static{c(this,"Sha256State")}state=new Uint32Array(U);pending=new Uint8Array(64);pendingLength=0;byteLength=0;words=new Uint32Array(64);update(t){let n=typeof t=="string"?new TextEncoder().encode(t):t;if(!Number.isSafeInteger(this.byteLength+n.length))throw new RangeError("SHA-256 input is too large");this.byteLength+=n.length;let e=0;if(this.pendingLength){let r=Math.min(64-this.pendingLength,n.length);this.pending.set(n.subarray(0,r),this.pendingLength),this.pendingLength+=r,e+=r,this.pendingLength===64&&(this.compress(this.pending),this.pendingLength=0)}for(;e+64<=n.length;)this.compress(n.subarray(e,e+64)),e+=64;return e<n.length&&(this.pending.set(n.subarray(e)),this.pendingLength=n.length-e),this}clone(){let t=new s;return t.state.set(this.state),t.pending.set(this.pending),t.pendingLength=this.pendingLength,t.byteLength=this.byteLength,t}digestHex(){let t=this.clone(),n=new Uint8Array(t.pendingLength<56?64:128);n.set(t.pending.subarray(0,t.pendingLength)),n[t.pendingLength]=128;let e=t.byteLength*8,r=new DataView(n.buffer);return r.setUint32(n.length-8,Math.floor(e/4294967296),!1),r.setUint32(n.length-4,e>>>0,!1),t.compress(n.subarray(0,64)),n.length===128&&t.compress(n.subarray(64)),Array.from(t.state,o=>o.toString(16).padStart(8,"0")).join("")}compress(t){let n=new DataView(t.buffer,t.byteOffset,64),e=this.state,r=this.words;for(let a=0;a<16;a+=1)r[a]=n.getUint32(a*4,!1);for(let a=16;a<64;a+=1){let g=r[a-15],b=r[a-2],y=x(g,7)^x(g,18)^g>>>3,w=x(b,17)^x(b,19)^b>>>10;r[a]=r[a-16]+y+r[a-7]+w>>>0}let o=e[0],h=e[1],d=e[2],m=e[3],f=e[4],l=e[5],p=e[6],u=e[7];for(let a=0;a<64;a+=1){let g=f&l^~f&p,b=o&h^o&d^h&d,y=x(o,2)^x(o,13)^x(o,22),w=x(f,6)^x(f,11)^x(f,25),H=u+w+g+j[a]+r[a]>>>0,E=y+b>>>0;u=p,p=l,l=f,f=m+H>>>0,m=d,d=h,h=o,o=H+E>>>0}e[0]=e[0]+o>>>0,e[1]=e[1]+h>>>0,e[2]=e[2]+d>>>0,e[3]=e[3]+m>>>0,e[4]=e[4]+f>>>0,e[5]=e[5]+l>>>0,e[6]=e[6]+p>>>0,e[7]=e[7]+u>>>0}};function R(s){return new L().update(s).digestHex()}c(R,"sha256Hex");function x(s,t){return s>>>t|s<<32-t}c(x,"rotateRight");var I=2e3,T=25e7,S=i.string().trim().min(1).max(240),_=i.string().regex(/^[a-f0-9]{64}$/),v=i.string().datetime({offset:!0}),D=i.record(i.string(),i.unknown()).default({}),O=i.object({id:S,contentHash:_}).strict(),J=O.extend({revision:i.number().int().positive()}).strict(),X=i.object({id:S,path:i.string().trim().min(1).max(I).refine(M),contentHash:_,sizeBytes:i.number().int().nonnegative().max(T),mediaType:i.string().trim().min(1).max(200),visibility:i.enum(["policy","verifier","host_private"])}).strict(),Y=i.object({id:S,contentHash:_,mediaType:i.string().trim().min(1).max(200).nullable().default(null),sizeBytes:i.number().int().nonnegative().max(T).nullable().default(null)}).strict(),k=i.enum(["policy_failure","grader_failure","environment_failure","infrastructure_failure","timeout","cancelled"]);function B(s){return`${JSON.stringify(A(s),null,2)}
3
+ `}c(B,"canonicalJson");function N(s){return R(s)}c(N,"sha256");function C(s){return N(B(s))}c(C,"contentHash");function F(s,t){let{contentHash:n,...e}=s,r=C(e);if(n!==r)throw new Error(`${t} contentHash is ${n}; expected ${r}.`)}c(F,"assertContentHash");function M(s){let t=s.replaceAll("\\","/");return!t||t.startsWith("/")||t.includes("\0")?!1:!t.split("/").some(n=>!n||n==="."||n==="..")}c(M,"safeRelativePath");function A(s){return Array.isArray(s)?s.map(A):!s||typeof s!="object"?s:Object.fromEntries(Object.entries(s).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>[t,A(n)]))}c(A,"sortValue");export{L as a,S as b,_ as c,v as d,D as e,O as f,J as g,X as h,Y as i,k as j,B as k,N as l,C as m,F as n};
@@ -0,0 +1,140 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a as _i}from"./chunk-6FA3GG5B.js";import{q as Mi,s as $i}from"./chunk-KD3QVRIJ.js";import{b as M}from"./chunk-ES2ISFJC.js";import{a as o,b as He,c as y,e as Da}from"./chunk-FTQLQJQV.js";var O=y($=>{"use strict";var zt=Symbol.for("yaml.alias"),Vi=Symbol.for("yaml.document"),ze=Symbol.for("yaml.map"),Ji=Symbol.for("yaml.pair"),Zt=Symbol.for("yaml.scalar"),Ze=Symbol.for("yaml.seq"),Y=Symbol.for("yaml.node.type"),Wa=o(s=>!!s&&typeof s=="object"&&s[Y]===zt,"isAlias"),xa=o(s=>!!s&&typeof s=="object"&&s[Y]===Vi,"isDocument"),Qa=o(s=>!!s&&typeof s=="object"&&s[Y]===ze,"isMap"),Ga=o(s=>!!s&&typeof s=="object"&&s[Y]===Ji,"isPair"),Wi=o(s=>!!s&&typeof s=="object"&&s[Y]===Zt,"isScalar"),Ha=o(s=>!!s&&typeof s=="object"&&s[Y]===Ze,"isSeq");function xi(s){if(s&&typeof s=="object")switch(s[Y]){case ze:case Ze:return!0}return!1}o(xi,"isCollection");function Xa(s){if(s&&typeof s=="object")switch(s[Y]){case zt:case ze:case Zt:case Ze:return!0}return!1}o(Xa,"isNode");var za=o(s=>(Wi(s)||xi(s))&&!!s.anchor,"hasAnchor");$.ALIAS=zt;$.DOC=Vi;$.MAP=ze;$.NODE_TYPE=Y;$.PAIR=Ji;$.SCALAR=Zt;$.SEQ=Ze;$.hasAnchor=za;$.isAlias=Wa;$.isCollection=xi;$.isDocument=xa;$.isMap=Qa;$.isNode=Xa;$.isPair=Ga;$.isScalar=Wi;$.isSeq=Ha});var we=y(es=>{"use strict";var I=O(),_=Symbol("break visit"),Qi=Symbol("skip children"),R=Symbol("remove node");function et(s,e){let t=Gi(e);I.isDocument(s)?ce(null,s.contents,t,Object.freeze([s]))===R&&(s.contents=null):ce(null,s,t,Object.freeze([]))}o(et,"visit");et.BREAK=_;et.SKIP=Qi;et.REMOVE=R;function ce(s,e,t,i){let n=Hi(s,e,t,i);if(I.isNode(n)||I.isPair(n))return Xi(s,i,n),ce(s,n,t,i);if(typeof n!="symbol"){if(I.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let a=ce(r,e.items[r],t,i);if(typeof a=="number")r=a-1;else{if(a===_)return _;a===R&&(e.items.splice(r,1),r-=1)}}}else if(I.isPair(e)){i=Object.freeze(i.concat(e));let r=ce("key",e.key,t,i);if(r===_)return _;r===R&&(e.key=null);let a=ce("value",e.value,t,i);if(a===_)return _;a===R&&(e.value=null)}}return n}o(ce,"visit_");async function tt(s,e){let t=Gi(e);I.isDocument(s)?await fe(null,s.contents,t,Object.freeze([s]))===R&&(s.contents=null):await fe(null,s,t,Object.freeze([]))}o(tt,"visitAsync");tt.BREAK=_;tt.SKIP=Qi;tt.REMOVE=R;async function fe(s,e,t,i){let n=await Hi(s,e,t,i);if(I.isNode(n)||I.isPair(n))return Xi(s,i,n),fe(s,n,t,i);if(typeof n!="symbol"){if(I.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let a=await fe(r,e.items[r],t,i);if(typeof a=="number")r=a-1;else{if(a===_)return _;a===R&&(e.items.splice(r,1),r-=1)}}}else if(I.isPair(e)){i=Object.freeze(i.concat(e));let r=await fe("key",e.key,t,i);if(r===_)return _;r===R&&(e.key=null);let a=await fe("value",e.value,t,i);if(a===_)return _;a===R&&(e.value=null)}}return n}o(fe,"visitAsync_");function Gi(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}o(Gi,"initVisitor");function Hi(s,e,t,i){if(typeof t=="function")return t(s,e,i);if(I.isMap(e))return t.Map?.(s,e,i);if(I.isSeq(e))return t.Seq?.(s,e,i);if(I.isPair(e))return t.Pair?.(s,e,i);if(I.isScalar(e))return t.Scalar?.(s,e,i);if(I.isAlias(e))return t.Alias?.(s,e,i)}o(Hi,"callVisitor");function Xi(s,e,t){let i=e[e.length-1];if(I.isCollection(i))i.items[s]=t;else if(I.isPair(i))s==="key"?i.key=t:i.value=t;else if(I.isDocument(i))i.contents=t;else{let n=I.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}o(Xi,"replaceNode");es.visit=et;es.visitAsync=tt});var ts=y(Zi=>{"use strict";var zi=O(),Za=we(),eo={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},to=o(s=>s.replace(/[!,[\]{}]/g,e=>eo[e]),"escapeTagName"),ve=class s{static{o(this,"Directives")}constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[r,a]=i;return this.tags[r]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=i;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let a=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,a),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}let[,i,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let r=this.tags[i];if(r)try{return r+decodeURIComponent(n)}catch(a){return t(String(a)),null}return i==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+to(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(e&&i.length>0&&zi.isNode(e.contents)){let r={};Za.visit(e.contents,(a,l)=>{zi.isNode(l)&&l.tag&&(r[l.tag]=!0)}),n=Object.keys(r)}else n=[];for(let[r,a]of i)r==="!!"&&a==="tag:yaml.org,2002:"||(!e||n.some(l=>l.startsWith(a)))&&t.push(`%TAG ${r} ${a}`);return t.join(`
3
+ `)}};ve.defaultYaml={explicit:!1,version:"1.2"};ve.defaultTags={"!!":"tag:yaml.org,2002:"};Zi.Directives=ve});var st=y(ke=>{"use strict";var en=O(),so=we();function io(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}o(io,"anchorIsValid");function tn(s){let e=new Set;return so.visit(s,{Value(t,i){i.anchor&&e.add(i.anchor)}}),e}o(tn,"anchorNames");function sn(s,e){for(let t=1;;++t){let i=`${s}${t}`;if(!e.has(i))return i}}o(sn,"findNewAnchor");function no(s,e){let t=[],i=new Map,n=null;return{onAnchor:o(r=>{t.push(r),n??(n=tn(s));let a=sn(e,n);return n.add(a),a},"onAnchor"),setAnchors:o(()=>{for(let r of t){let a=i.get(r);if(typeof a=="object"&&a.anchor&&(en.isScalar(a.node)||en.isCollection(a.node)))a.node.anchor=a.anchor;else{let l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},"setAnchors"),sourceObjects:i}}o(no,"createNodeAnchors");ke.anchorIsValid=io;ke.anchorNames=tn;ke.createNodeAnchors=no;ke.findNewAnchor=sn});var ss=y(nn=>{"use strict";function Ne(s,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let a=i[n],l=Ne(s,i,String(n),a);l===void 0?delete i[n]:l!==a&&(i[n]=l)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=Ne(s,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=Ne(s,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=Ne(s,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return s.call(e,t,i)}o(Ne,"applyReviver");nn.applyReviver=Ne});var W=y(an=>{"use strict";var ro=O();function rn(s,e,t){if(Array.isArray(s))return s.map((i,n)=>rn(i,String(n),t));if(s&&typeof s.toJSON=="function"){if(!t||!ro.hasAnchor(s))return s.toJSON(e,t);let i={aliasCount:0,count:1,res:void 0};t.anchors.set(s,i),t.onCreate=r=>{i.res=r,delete t.onCreate};let n=s.toJSON(e,t);return t.onCreate&&t.onCreate(n),n}return typeof s=="bigint"&&!t?.keep?Number(s):s}o(rn,"toJS");an.toJS=rn});var it=y(ln=>{"use strict";var ao=ss(),on=O(),oo=W(),is=class{static{o(this,"NodeBase")}constructor(e){Object.defineProperty(this,on.NODE_TYPE,{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:i,onAnchor:n,reviver:r}={}){if(!on.isDocument(e))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=oo.toJS(this,"",a);if(typeof n=="function")for(let{count:c,res:f}of a.anchors.values())n(f,c);return typeof r=="function"?ao.applyReviver(r,{"":l},"",l):l}};ln.NodeBase=is});var Ae=y(cn=>{"use strict";var lo=st(),co=we(),ue=O(),fo=it(),uo=W(),ns=class extends fo.NodeBase{static{o(this,"Alias")}constructor(e){super(ue.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],co.visit(e,{Node:o((r,a)=>{(ue.isAlias(a)||ue.hasAnchor(a))&&i.push(a)},"Node")}),t&&(t.aliasResolveCache=i));let n;for(let r of i){if(r===this)break;r.anchor===this.source&&(n=r)}return n}toJSON(e,t){if(!t)return{source:this.source};let{anchors:i,doc:n,maxAliasCount:r}=t,a=this.resolve(n,t);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=i.get(a);if(l||(uo.toJS(a,null,t),l=i.get(a)),l?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(r>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=nt(n,a,i)),l.count*l.aliasCount>r)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,i){let n=`*${this.source}`;if(e){if(lo.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${n} `}return n}};function nt(s,e,t){if(ue.isAlias(e)){let i=e.resolve(s),n=t&&i&&t.get(i);return n?n.count*n.aliasCount:0}else if(ue.isCollection(e)){let i=0;for(let n of e.items){let r=nt(s,n,t);r>i&&(i=r)}return i}else if(ue.isPair(e)){let i=nt(s,e.key,t),n=nt(s,e.value,t);return Math.max(i,n)}return 1}o(nt,"getAliasCount");cn.Alias=ns});var C=y(rs=>{"use strict";var ho=O(),po=it(),mo=W(),go=o(s=>!s||typeof s!="function"&&typeof s!="object","isScalarValue"),x=class extends po.NodeBase{static{o(this,"Scalar")}constructor(e){super(ho.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:mo.toJS(this.value,e,t)}toString(){return String(this.value)}};x.BLOCK_FOLDED="BLOCK_FOLDED";x.BLOCK_LITERAL="BLOCK_LITERAL";x.PLAIN="PLAIN";x.QUOTE_DOUBLE="QUOTE_DOUBLE";x.QUOTE_SINGLE="QUOTE_SINGLE";rs.Scalar=x;rs.isScalarValue=go});var qe=y(un=>{"use strict";var yo=Ae(),se=O(),fn=C(),bo="tag:yaml.org,2002:";function So(s,e,t){if(e){let i=t.filter(r=>r.tag===e),n=i.find(r=>!r.format)??i[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return t.find(i=>i.identify?.(s)&&!i.format)}o(So,"findTagObject");function wo(s,e,t){if(se.isDocument(s)&&(s=s.contents),se.isNode(s))return s;if(se.isPair(s)){let u=t.schema[se.MAP].createNode?.(t.schema,null,t);return u.items.push(s),u}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:r,schema:a,sourceObjects:l}=t,c;if(i&&s&&typeof s=="object"){if(c=l.get(s),c)return c.anchor??(c.anchor=n(s)),new yo.Alias(c.anchor);c={anchor:null,node:null},l.set(s,c)}e?.startsWith("!!")&&(e=bo+e.slice(2));let f=So(s,e,a.tags);if(!f){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let u=new fn.Scalar(s);return c&&(c.node=u),u}f=s instanceof Map?a[se.MAP]:Symbol.iterator in Object(s)?a[se.SEQ]:a[se.MAP]}r&&(r(f),delete t.onTagObj);let p=f?.createNode?f.createNode(t.schema,s,t):typeof f?.nodeClass?.from=="function"?f.nodeClass.from(t.schema,s,t):new fn.Scalar(s);return e?p.tag=e:f.default||(p.tag=f.tag),c&&(c.node=p),p}o(wo,"createNode");un.createNode=wo});var at=y(rt=>{"use strict";var vo=qe(),U=O(),ko=it();function as(s,e,t){let i=t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let a=[];a[r]=i,i=a}else i=new Map([[r,i]])}return vo.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:o(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:s,sourceObjects:new Map})}o(as,"collectionFromPath");var hn=o(s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,"isEmptyPath"),os=class extends ko.NodeBase{static{o(this,"Collection")}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(i=>U.isNode(i)||U.isPair(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(hn(e))this.add(t);else{let[i,...n]=e,r=this.get(i,!0);if(U.isCollection(r))r.addIn(n,t);else if(r===void 0&&this.schema)this.set(i,as(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(e){let[t,...i]=e;if(i.length===0)return this.delete(t);let n=this.get(t,!0);if(U.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){let[i,...n]=e,r=this.get(i,!0);return n.length===0?!t&&U.isScalar(r)?r.value:r:U.isCollection(r)?r.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!U.isPair(t))return!1;let i=t.value;return i==null||e&&U.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[t,...i]=e;if(i.length===0)return this.has(t);let n=this.get(t,!0);return U.isCollection(n)?n.hasIn(i):!1}setIn(e,t){let[i,...n]=e;if(n.length===0)this.set(i,t);else{let r=this.get(i,!0);if(U.isCollection(r))r.setIn(n,t);else if(r===void 0&&this.schema)this.set(i,as(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};rt.Collection=os;rt.collectionFromPath=as;rt.isEmptyPath=hn});var Oe=y(ot=>{"use strict";var No=o(s=>s.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function ls(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}o(ls,"indentComment");var Ao=o((s,e,t)=>s.endsWith(`
4
+ `)?ls(t,e):t.includes(`
5
+ `)?`
6
+ `+ls(t,e):(s.endsWith(" ")?"":" ")+t,"lineComment");ot.indentComment=ls;ot.lineComment=Ao;ot.stringifyComment=No});var pn=y(Le=>{"use strict";var qo="flow",cs="block",lt="quoted";function Oo(s,e,t="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:r=20,onFold:a,onOverflow:l}={}){if(!n||n<0)return s;n<r&&(r=0);let c=Math.max(1+r,1+n-e.length);if(s.length<=c)return s;let f=[],p={},u=n-e.length;typeof i=="number"&&(i>n-Math.max(2,r)?f.push(0):u=n-i);let h,g,b=!1,d=-1,m=-1,w=-1;t===cs&&(d=dn(s,d,e.length),d!==-1&&(u=d+c));for(let k;k=s[d+=1];){if(t===lt&&k==="\\"){switch(m=d,s[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}w=d}if(k===`
7
+ `)t===cs&&(d=dn(s,d,e.length)),u=d+e.length+c,h=void 0;else{if(k===" "&&g&&g!==" "&&g!==`
8
+ `&&g!==" "){let N=s[d+1];N&&N!==" "&&N!==`
9
+ `&&N!==" "&&(h=d)}if(d>=u)if(h)f.push(h),u=h+c,h=void 0;else if(t===lt){for(;g===" "||g===" ";)g=k,k=s[d+=1],b=!0;let N=d>w+1?d-2:m-1;if(p[N])return s;f.push(N),p[N]=!0,u=N+c,h=void 0}else b=!0}g=k}if(b&&l&&l(),f.length===0)return s;a&&a();let v=s.slice(0,f[0]);for(let k=0;k<f.length;++k){let N=f[k],A=f[k+1]||s.length;N===0?v=`
10
+ ${e}${s.slice(0,A)}`:(t===lt&&p[N]&&(v+=`${s[N]}\\`),v+=`
11
+ ${e}${s.slice(N+1,A)}`)}return v}o(Oo,"foldFlowLines");function dn(s,e,t){let i=e,n=e+1,r=s[n];for(;r===" "||r===" ";)if(e<n+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
12
+ `);i=e,n=e+1,r=s[n]}return i}o(dn,"consumeMoreIndentedLines");Le.FOLD_BLOCK=cs;Le.FOLD_FLOW=qo;Le.FOLD_QUOTED=lt;Le.foldFlowLines=Oo});var Ce=y(mn=>{"use strict";var K=C(),Q=pn(),ft=o((s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),"getFoldOptions"),ut=o(s=>/^(%|---|\.\.\.)/m.test(s),"containsDocumentMarker");function Lo(s,e,t){if(!e||e<0)return!1;let i=e-t,n=s.length;if(n<=i)return!1;for(let r=0,a=0;r<n;++r)if(s[r]===`
13
+ `){if(r-a>i)return!0;if(a=r+1,n-a<=i)return!1}return!0}o(Lo,"lineLengthOverLimit");function Ee(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:i}=e,n=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(ut(s)?" ":""),a="",l=0;for(let c=0,f=t[c];f;f=t[++c])if(f===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(a+=t.slice(l,c)+"\\ ",c+=1,l=c,f="\\"),f==="\\")switch(t[c+1]){case"u":{a+=t.slice(l,c);let p=t.substr(c+2,4);switch(p){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:p.substr(0,2)==="00"?a+="\\x"+p.substr(2):a+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(i||t[c+2]==='"'||t.length<n)c+=1;else{for(a+=t.slice(l,c)+`
14
+
15
+ `;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)a+=`
16
+ `,c+=2;a+=r,t[c+2]===" "&&(a+="\\"),c+=1,l=c+1}break;default:c+=1}return a=l?a+t.slice(l):t,i?a:Q.foldFlowLines(a,r,Q.FOLD_QUOTED,ft(e,!1))}o(Ee,"doubleQuotedString");function fs(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
17
+ `)||/[ \t]\n|\n[ \t]/.test(s))return Ee(s,e);let t=e.indent||(ut(s)?" ":""),i="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
18
+ ${t}`)+"'";return e.implicitKey?i:Q.foldFlowLines(i,t,Q.FOLD_FLOW,ft(e,!1))}o(fs,"singleQuotedString");function he(s,e){let{singleQuote:t}=e.options,i;if(t===!1)i=Ee;else{let n=s.includes('"'),r=s.includes("'");n&&!r?i=fs:r&&!n?i=Ee:i=t?fs:Ee}return i(s,e)}o(he,"quotedString");var us;try{us=new RegExp(`(^|(?<!
19
+ ))
20
+ +(?!
21
+ |$)`,"g")}catch{us=/\n+(?!\n|$)/g}function ct({comment:s,type:e,value:t},i,n,r){let{blockQuote:a,commentString:l,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(t))return he(t,i);let f=i.indent||(i.forceBlockIndent||ut(t)?" ":""),p=a==="literal"?!0:a==="folded"||e===K.Scalar.BLOCK_FOLDED?!1:e===K.Scalar.BLOCK_LITERAL?!0:!Lo(t,c,f.length);if(!t)return p?`|
22
+ `:`>
23
+ `;let u,h;for(h=t.length;h>0;--h){let A=t[h-1];if(A!==`
24
+ `&&A!==" "&&A!==" ")break}let g=t.substring(h),b=g.indexOf(`
25
+ `);b===-1?u="-":t===g||b!==g.length-1?(u="+",r&&r()):u="",g&&(t=t.slice(0,-g.length),g[g.length-1]===`
26
+ `&&(g=g.slice(0,-1)),g=g.replace(us,`$&${f}`));let d=!1,m,w=-1;for(m=0;m<t.length;++m){let A=t[m];if(A===" ")d=!0;else if(A===`
27
+ `)w=m;else break}let v=t.substring(0,w<m?w+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${f}`));let N=(d?f?"2":"1":"")+u;if(s&&(N+=" "+l(s.replace(/ ?[\r\n]+/g," ")),n&&n()),!p){let A=t.replace(/\n+/g,`
28
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),q=!1,E=ft(i,!0);a!=="folded"&&e!==K.Scalar.BLOCK_FOLDED&&(E.onOverflow=()=>{q=!0});let S=Q.foldFlowLines(`${v}${A}${g}`,f,Q.FOLD_BLOCK,E);if(!q)return`>${N}
29
+ ${f}${S}`}return t=t.replace(/\n+/g,`$&${f}`),`|${N}
30
+ ${f}${v}${t}${g}`}o(ct,"blockString");function Eo(s,e,t,i){let{type:n,value:r}=s,{actualString:a,implicitKey:l,indent:c,indentStep:f,inFlow:p}=e;if(l&&r.includes(`
31
+ `)||p&&/[[\]{},]/.test(r))return he(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||p||!r.includes(`
32
+ `)?he(r,e):ct(s,e,t,i);if(!l&&!p&&n!==K.Scalar.PLAIN&&r.includes(`
33
+ `))return ct(s,e,t,i);if(ut(r)){if(c==="")return e.forceBlockIndent=!0,ct(s,e,t,i);if(l&&c===f)return he(r,e)}let u=r.replace(/\n+/g,`$&
34
+ ${c}`);if(a){let h=o(d=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(u),"test"),{compat:g,tags:b}=e.doc.schema;if(b.some(h)||g?.some(h))return he(r,e)}return l?u:Q.foldFlowLines(u,c,Q.FOLD_FLOW,ft(e,!1))}o(Eo,"plainString");function Co(s,e,t,i){let{implicitKey:n,inFlow:r}=e,a=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:l}=s;l!==K.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(l=K.Scalar.QUOTE_DOUBLE);let c=o(p=>{switch(p){case K.Scalar.BLOCK_FOLDED:case K.Scalar.BLOCK_LITERAL:return n||r?he(a.value,e):ct(a,e,t,i);case K.Scalar.QUOTE_DOUBLE:return Ee(a.value,e);case K.Scalar.QUOTE_SINGLE:return fs(a.value,e);case K.Scalar.PLAIN:return Eo(a,e,t,i);default:return null}},"_stringify"),f=c(l);if(f===null){let{defaultKeyType:p,defaultStringType:u}=e.options,h=n&&p||u;if(f=c(h),f===null)throw new Error(`Unsupported default string type ${h}`)}return f}o(Co,"stringifyString");mn.stringifyString=Co});var Te=y(hs=>{"use strict";var To=st(),G=O(),Po=Oe(),Io=Ce();function Mo(s,e){let t=Object.assign({blockQuote:!0,commentString:Po.stringifyComment,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},s.schema.toStringOptions,e),i;switch(t.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:i,options:t}}o(Mo,"createStringifyContext");function $o(s,e){if(e.tag){let n=s.filter(r=>r.tag===e.tag);if(n.length>0)return n.find(r=>r.format===e.format)??n[0]}let t,i;if(G.isScalar(e)){i=e.value;let n=s.filter(r=>r.identify?.(i));if(n.length>1){let r=n.filter(a=>a.test);r.length>0&&(n=r)}t=n.find(r=>r.format===e.format)??n.find(r=>!r.format)}else i=e,t=s.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!t){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return t}o($o,"getTagObject");function _o(s,e,{anchors:t,doc:i}){if(!i.directives)return"";let n=[],r=(G.isScalar(s)||G.isCollection(s))&&s.anchor;r&&To.anchorIsValid(r)&&(t.add(r),n.push(`&${r}`));let a=s.tag??(e.default?null:e.tag);return a&&n.push(i.directives.tagString(a)),n.join(" ")}o(_o,"stringifyProps");function Do(s,e,t,i){if(G.isPair(s))return s.toString(e,t,i);if(G.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let n,r=G.isNode(s)?s:e.doc.createNode(s,{onTagObj:o(c=>n=c,"onTagObj")});n??(n=$o(e.doc.schema.tags,r));let a=_o(r,n,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);let l=typeof n.stringify=="function"?n.stringify(r,e,t,i):G.isScalar(r)?Io.stringifyString(r,e,t,i):r.toString(e,t,i);return a?G.isScalar(r)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
35
+ ${e.indent}${l}`:l}o(Do,"stringify");hs.createStringifyContext=Mo;hs.stringify=Do});var Sn=y(bn=>{"use strict";var V=O(),gn=C(),yn=Te(),Pe=Oe();function Bo({key:s,value:e},t,i,n){let{allNullValues:r,doc:a,indent:l,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:u}}=t,h=V.isNode(s)&&s.comment||null;if(u){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(V.isCollection(s)||!V.isNode(s)&&typeof s=="object"){let E="With simple keys, collection cannot be used as a key value";throw new Error(E)}}let g=!u&&(!s||h&&e==null&&!t.inFlow||V.isCollection(s)||(V.isScalar(s)?s.type===gn.Scalar.BLOCK_FOLDED||s.type===gn.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!g&&(u||!r),indent:l+c});let b=!1,d=!1,m=yn.stringify(s,t,()=>b=!0,()=>d=!0);if(!g&&!t.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(t.inFlow){if(r||e==null)return b&&i&&i(),m===""?"?":g?`? ${m}`:m}else if(r&&!u||e==null&&g)return m=`? ${m}`,h&&!b?m+=Pe.lineComment(m,t.indent,f(h)):d&&n&&n(),m;b&&(h=null),g?(h&&(m+=Pe.lineComment(m,t.indent,f(h))),m=`? ${m}
36
+ ${l}:`):(m=`${m}:`,h&&(m+=Pe.lineComment(m,t.indent,f(h))));let w,v,k;V.isNode(e)?(w=!!e.spaceBefore,v=e.commentBefore,k=e.comment):(w=!1,v=null,k=null,e&&typeof e=="object"&&(e=a.createNode(e))),t.implicitKey=!1,!g&&!h&&V.isScalar(e)&&(t.indentAtStart=m.length+1),d=!1,!p&&c.length>=2&&!t.inFlow&&!g&&V.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let N=!1,A=yn.stringify(e,t,()=>N=!0,()=>d=!0),q=" ";if(h||w||v){if(q=w?`
37
+ `:"",v){let E=f(v);q+=`
38
+ ${Pe.indentComment(E,t.indent)}`}A===""&&!t.inFlow?q===`
39
+ `&&k&&(q=`
40
+
41
+ `):q+=`
42
+ ${t.indent}`}else if(!g&&V.isCollection(e)){let E=A[0],S=A.indexOf(`
43
+ `),T=S!==-1,J=t.inFlow??e.flow??e.items.length===0;if(T||!J){let le=!1;if(T&&(E==="&"||E==="!")){let P=A.indexOf(" ");E==="&"&&P!==-1&&P<S&&A[P+1]==="!"&&(P=A.indexOf(" ",P+1)),(P===-1||S<P)&&(le=!0)}le||(q=`
44
+ ${t.indent}`)}}else(A===""||A[0]===`
45
+ `)&&(q="");return m+=q+A,t.inFlow?N&&i&&i():k&&!N?m+=Pe.lineComment(m,t.indent,f(k)):d&&n&&n(),m}o(Bo,"stringifyPair");bn.stringifyPair=Bo});var ps=y(ds=>{"use strict";var wn=He("process");function Ko(s,...e){s==="debug"&&console.log(...e)}o(Ko,"debug");function jo(s,e){(s==="debug"||s==="warn")&&(typeof wn.emitWarning=="function"?wn.emitWarning(e):console.warn(e))}o(jo,"warn");ds.debug=Ko;ds.warn=jo});var gt=y(mt=>{"use strict";var pt=O(),vn=C(),ht="<<",dt={identify:o(s=>s===ht||typeof s=="symbol"&&s.description===ht,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:o(()=>Object.assign(new vn.Scalar(Symbol(ht)),{addToJSMap:kn}),"resolve"),stringify:o(()=>ht,"stringify")},Fo=o((s,e)=>(dt.identify(e)||pt.isScalar(e)&&(!e.type||e.type===vn.Scalar.PLAIN)&&dt.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===dt.tag&&t.default),"isMergeKey");function kn(s,e,t){let i=Nn(s,t);if(pt.isSeq(i))for(let n of i.items)ms(s,e,n);else if(Array.isArray(i))for(let n of i)ms(s,e,n);else ms(s,e,i)}o(kn,"addMergeToJSMap");function ms(s,e,t){let i=Nn(s,t);if(!pt.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,s,Map);for(let[r,a]of n)e instanceof Map?e.has(r)||e.set(r,a):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}o(ms,"mergeValue");function Nn(s,e){return s&&pt.isAlias(e)?e.resolve(s.doc,s):e}o(Nn,"resolveAliasValue");mt.addMergeToJSMap=kn;mt.isMergeKey=Fo;mt.merge=dt});var ys=y(On=>{"use strict";var Ro=ps(),An=gt(),Uo=Te(),qn=O(),gs=W();function Yo(s,e,{key:t,value:i}){if(qn.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,i);else if(An.isMergeKey(s,t))An.addMergeToJSMap(s,e,i);else{let n=gs.toJS(t,"",s);if(e instanceof Map)e.set(n,gs.toJS(i,n,s));else if(e instanceof Set)e.add(n);else{let r=Vo(t,n,s),a=gs.toJS(i,r,s);r in e?Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[r]=a}}return e}o(Yo,"addPairToJSMap");function Vo(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(qn.isNode(s)&&t?.doc){let i=Uo.createStringifyContext(t.doc,{});i.anchors=new Set;for(let r of t.anchors.keys())i.anchors.add(r.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=s.toString(i);if(!t.mapKeyWarned){let r=JSON.stringify(n);r.length>40&&(r=r.substring(0,36)+'..."'),Ro.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(e)}o(Vo,"stringifyKey");On.addPairToJSMap=Yo});var H=y(bs=>{"use strict";var Ln=qe(),Jo=Sn(),Wo=ys(),yt=O();function xo(s,e,t){let i=Ln.createNode(s,void 0,t),n=Ln.createNode(e,void 0,t);return new bt(i,n)}o(xo,"createPair");var bt=class s{static{o(this,"Pair")}constructor(e,t=null){Object.defineProperty(this,yt.NODE_TYPE,{value:yt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:i}=this;return yt.isNode(t)&&(t=t.clone(e)),yt.isNode(i)&&(i=i.clone(e)),new s(t,i)}toJSON(e,t){let i=t?.mapAsMap?new Map:{};return Wo.addPairToJSMap(t,i,this)}toString(e,t,i){return e?.doc?Jo.stringifyPair(this,e,t,i):JSON.stringify(this)}};bs.Pair=bt;bs.createPair=xo});var Ss=y(Cn=>{"use strict";var ie=O(),En=Te(),St=Oe();function Qo(s,e,t){return(e.inFlow??s.flow?Ho:Go)(s,e,t)}o(Qo,"stringifyCollection");function Go({comment:s,items:e},t,{blockItemPrefix:i,flowChars:n,itemIndent:r,onChompKeep:a,onComment:l}){let{indent:c,options:{commentString:f}}=t,p=Object.assign({},t,{indent:r,type:null}),u=!1,h=[];for(let b=0;b<e.length;++b){let d=e[b],m=null;if(ie.isNode(d))!u&&d.spaceBefore&&h.push(""),wt(t,h,d.commentBefore,u),d.comment&&(m=d.comment);else if(ie.isPair(d)){let v=ie.isNode(d.key)?d.key:null;v&&(!u&&v.spaceBefore&&h.push(""),wt(t,h,v.commentBefore,u))}u=!1;let w=En.stringify(d,p,()=>m=null,()=>u=!0);m&&(w+=St.lineComment(w,r,f(m))),u&&m&&(u=!1),h.push(i+w)}let g;if(h.length===0)g=n.start+n.end;else{g=h[0];for(let b=1;b<h.length;++b){let d=h[b];g+=d?`
46
+ ${c}${d}`:`
47
+ `}}return s?(g+=`
48
+ `+St.indentComment(f(s),c),l&&l()):u&&a&&a(),g}o(Go,"stringifyBlockCollection");function Ho({items:s},e,{flowChars:t,itemIndent:i}){let{indent:n,indentStep:r,flowCollectionPadding:a,options:{commentString:l}}=e;i+=r;let c=Object.assign({},e,{indent:i,inFlow:!0,type:null}),f=!1,p=0,u=[];for(let b=0;b<s.length;++b){let d=s[b],m=null;if(ie.isNode(d))d.spaceBefore&&u.push(""),wt(e,u,d.commentBefore,!1),d.comment&&(m=d.comment);else if(ie.isPair(d)){let v=ie.isNode(d.key)?d.key:null;v&&(v.spaceBefore&&u.push(""),wt(e,u,v.commentBefore,!1),v.comment&&(f=!0));let k=ie.isNode(d.value)?d.value:null;k?(k.comment&&(m=k.comment),k.commentBefore&&(f=!0)):d.value==null&&v?.comment&&(m=v.comment)}m&&(f=!0);let w=En.stringify(d,c,()=>m=null);f||(f=u.length>p||w.includes(`
49
+ `)),b<s.length-1?w+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(f||(f=u.reduce((v,k)=>v+k.length+2,2)+(w.length+2)>e.options.lineWidth)),f&&(w+=",")),m&&(w+=St.lineComment(w,i,l(m))),u.push(w),p=u.length}let{start:h,end:g}=t;if(u.length===0)return h+g;if(!f){let b=u.reduce((d,m)=>d+m.length+2,2);f=e.options.lineWidth>0&&b>e.options.lineWidth}if(f){let b=h;for(let d of u)b+=d?`
50
+ ${r}${n}${d}`:`
51
+ `;return`${b}
52
+ ${n}${g}`}else return`${h}${a}${u.join(" ")}${a}${g}`}o(Ho,"stringifyFlowCollection");function wt({indent:s,options:{commentString:e}},t,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let r=St.indentComment(e(i),s);t.push(r.trimStart())}}o(wt,"addCommentBefore");Cn.stringifyCollection=Qo});var z=y(vs=>{"use strict";var Xo=Ss(),zo=ys(),Zo=at(),X=O(),vt=H(),el=C();function Ie(s,e){let t=X.isScalar(e)?e.value:e;for(let i of s)if(X.isPair(i)&&(i.key===e||i.key===t||X.isScalar(i.key)&&i.key.value===t))return i}o(Ie,"findPair");var ws=class extends Zo.Collection{static{o(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(X.MAP,e),this.items=[]}static from(e,t,i){let{keepUndefined:n,replacer:r}=i,a=new this(e),l=o((c,f)=>{if(typeof r=="function")f=r.call(t,c,f);else if(Array.isArray(r)&&!r.includes(c))return;(f!==void 0||n)&&a.items.push(vt.createPair(c,f,i))},"add");if(t instanceof Map)for(let[c,f]of t)l(c,f);else if(t&&typeof t=="object")for(let c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,t){let i;X.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new vt.Pair(e,e?.value):i=new vt.Pair(e.key,e.value);let n=Ie(this.items,i.key),r=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${i.key} already set`);X.isScalar(n.value)&&el.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(r){let a=this.items.findIndex(l=>r(i,l)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(e){let t=Ie(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Ie(this.items,e)?.value;return(!t&&X.isScalar(n)?n.value:n)??void 0}has(e){return!!Ie(this.items,e)}set(e,t){this.add(new vt.Pair(e,t),!0)}toJSON(e,t,i){let n=i?new i:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(let r of this.items)zo.addPairToJSMap(t,n,r);return n}toString(e,t,i){if(!e)return JSON.stringify(this);for(let n of this.items)if(!X.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Xo.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:t})}};vs.YAMLMap=ws;vs.findPair=Ie});var de=y(Pn=>{"use strict";var tl=O(),Tn=z(),sl={collection:"map",default:!0,nodeClass:Tn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return tl.isMap(s)||e("Expected a mapping for this tag"),s},createNode:o((s,e,t)=>Tn.YAMLMap.from(s,e,t),"createNode")};Pn.map=sl});var Z=y(In=>{"use strict";var il=qe(),nl=Ss(),rl=at(),Nt=O(),al=C(),ol=W(),ks=class extends rl.Collection{static{o(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Nt.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=kt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let i=kt(e);if(typeof i!="number")return;let n=this.items[i];return!t&&Nt.isScalar(n)?n.value:n}has(e){let t=kt(e);return typeof t=="number"&&t<this.items.length}set(e,t){let i=kt(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[i];Nt.isScalar(n)&&al.isScalarValue(t)?n.value=t:this.items[i]=t}toJSON(e,t){let i=[];t?.onCreate&&t.onCreate(i);let n=0;for(let r of this.items)i.push(ol.toJS(r,String(n++),t));return i}toString(e,t,i){return e?nl.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:t}):JSON.stringify(this)}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t)){let a=0;for(let l of t){if(typeof n=="function"){let c=t instanceof Set?l:String(a++);l=n.call(t,c,l)}r.items.push(il.createNode(l,void 0,i))}}return r}};function kt(s){let e=Nt.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}o(kt,"asItemIndex");In.YAMLSeq=ks});var pe=y($n=>{"use strict";var ll=O(),Mn=Z(),cl={collection:"seq",default:!0,nodeClass:Mn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return ll.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:o((s,e,t)=>Mn.YAMLSeq.from(s,e,t),"createNode")};$n.seq=cl});var Me=y(_n=>{"use strict";var fl=Ce(),ul={identify:o(s=>typeof s=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:o(s=>s,"resolve"),stringify(s,e,t,i){return e=Object.assign({actualString:!0},e),fl.stringifyString(s,e,t,i)}};_n.string=ul});var At=y(Kn=>{"use strict";var Dn=C(),Bn={identify:o(s=>s==null,"identify"),createNode:o(()=>new Dn.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:o(()=>new Dn.Scalar(null),"resolve"),stringify:o(({source:s},e)=>typeof s=="string"&&Bn.test.test(s)?s:e.options.nullStr,"stringify")};Kn.nullTag=Bn});var Ns=y(Fn=>{"use strict";var hl=C(),jn={identify:o(s=>typeof s=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:o(s=>new hl.Scalar(s[0]==="t"||s[0]==="T"),"resolve"),stringify({source:s,value:e},t){if(s&&jn.test.test(s)){let i=s[0]==="t"||s[0]==="T";if(e===i)return s}return e?t.options.trueStr:t.options.falseStr}};Fn.boolTag=jn});var me=y(Rn=>{"use strict";function dl({format:s,minFractionDigits:e,tag:t,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=Object.is(i,-0)?"-0":JSON.stringify(i);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(r)&&!r.includes("e")){let a=r.indexOf(".");a<0&&(a=r.length,r+=".");let l=e-(r.length-a-1);for(;l-- >0;)r+="0"}return r}o(dl,"stringifyNumber");Rn.stringifyNumber=dl});var qs=y(qt=>{"use strict";var pl=C(),As=me(),ml={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:o(s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:As.stringifyNumber},gl={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:o(s=>parseFloat(s),"resolve"),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():As.stringifyNumber(s)}},yl={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new pl.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:As.stringifyNumber};qt.float=yl;qt.floatExp=gl;qt.floatNaN=ml});var Ls=y(Lt=>{"use strict";var Un=me(),Ot=o(s=>typeof s=="bigint"||Number.isInteger(s),"intIdentify"),Os=o((s,e,t,{intAsBigInt:i})=>i?BigInt(s):parseInt(s.substring(e),t),"intResolve");function Yn(s,e,t){let{value:i}=s;return Ot(i)&&i>=0?t+i.toString(e):Un.stringifyNumber(s)}o(Yn,"intStringify");var bl={identify:o(s=>Ot(s)&&s>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:o((s,e,t)=>Os(s,2,8,t),"resolve"),stringify:o(s=>Yn(s,8,"0o"),"stringify")},Sl={identify:Ot,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:o((s,e,t)=>Os(s,0,10,t),"resolve"),stringify:Un.stringifyNumber},wl={identify:o(s=>Ot(s)&&s>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:o((s,e,t)=>Os(s,2,16,t),"resolve"),stringify:o(s=>Yn(s,16,"0x"),"stringify")};Lt.int=Sl;Lt.intHex=wl;Lt.intOct=bl});var Jn=y(Vn=>{"use strict";var vl=de(),kl=At(),Nl=pe(),Al=Me(),ql=Ns(),Es=qs(),Cs=Ls(),Ol=[vl.map,Nl.seq,Al.string,kl.nullTag,ql.boolTag,Cs.intOct,Cs.int,Cs.intHex,Es.floatNaN,Es.floatExp,Es.float];Vn.schema=Ol});var Qn=y(xn=>{"use strict";var Ll=C(),El=de(),Cl=pe();function Wn(s){return typeof s=="bigint"||Number.isInteger(s)}o(Wn,"intIdentify");var Et=o(({value:s})=>JSON.stringify(s),"stringifyJSON"),Tl=[{identify:o(s=>typeof s=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:o(s=>s,"resolve"),stringify:Et},{identify:o(s=>s==null,"identify"),createNode:o(()=>new Ll.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:o(()=>null,"resolve"),stringify:Et},{identify:o(s=>typeof s=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:o(s=>s==="true","resolve"),stringify:Et},{identify:Wn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:o((s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),"resolve"),stringify:o(({value:s})=>Wn(s)?s.toString():JSON.stringify(s),"stringify")},{identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:o(s=>parseFloat(s),"resolve"),stringify:Et}],Pl={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},Il=[El.map,Cl.seq].concat(Tl,Pl);xn.schema=Il});var Ps=y(Gn=>{"use strict";var $e=He("buffer"),Ts=C(),Ml=Ce(),$l={identify:o(s=>s instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof $e.Buffer=="function")return $e.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),i=new Uint8Array(t.length);for(let n=0;n<t.length;++n)i[n]=t.charCodeAt(n);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},i,n,r){if(!t)return"";let a=t,l;if(typeof $e.Buffer=="function")l=a instanceof $e.Buffer?a.toString("base64"):$e.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let f=0;f<a.length;++f)c+=String.fromCharCode(a[f]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Ts.Scalar.BLOCK_LITERAL),e!==Ts.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),f=Math.ceil(l.length/c),p=new Array(f);for(let u=0,h=0;u<f;++u,h+=c)p[u]=l.substr(h,c);l=p.join(e===Ts.Scalar.BLOCK_LITERAL?`
53
+ `:" ")}return Ml.stringifyString({comment:s,type:e,value:l},i,n,r)}};Gn.binary=$l});var Pt=y(Tt=>{"use strict";var Ct=O(),Is=H(),_l=C(),Dl=Z();function Hn(s,e){if(Ct.isSeq(s))for(let t=0;t<s.items.length;++t){let i=s.items[t];if(!Ct.isPair(i)){if(Ct.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let n=i.items[0]||new Is.Pair(new _l.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
54
+ ${n.key.commentBefore}`:i.commentBefore),i.comment){let r=n.value??n.key;r.comment=r.comment?`${i.comment}
55
+ ${r.comment}`:i.comment}i=n}s.items[t]=Ct.isPair(i)?i:new Is.Pair(i)}}else e("Expected a sequence for this tag");return s}o(Hn,"resolvePairs");function Xn(s,e,t){let{replacer:i}=t,n=new Dl.YAMLSeq(s);n.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof i=="function"&&(a=i.call(e,String(r++),a));let l,c;if(Array.isArray(a))if(a.length===2)l=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let f=Object.keys(a);if(f.length===1)l=f[0],c=a[l];else throw new TypeError(`Expected tuple with one key, not ${f.length} keys`)}else l=a;n.items.push(Is.createPair(l,c,t))}return n}o(Xn,"createPairs");var Bl={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Hn,createNode:Xn};Tt.createPairs=Xn;Tt.pairs=Bl;Tt.resolvePairs=Hn});var _s=y($s=>{"use strict";var zn=O(),Ms=W(),_e=z(),Kl=Z(),Zn=Pt(),ne=class s extends Kl.YAMLSeq{static{o(this,"YAMLOMap")}constructor(){super(),this.add=_e.YAMLMap.prototype.add.bind(this),this.delete=_e.YAMLMap.prototype.delete.bind(this),this.get=_e.YAMLMap.prototype.get.bind(this),this.has=_e.YAMLMap.prototype.has.bind(this),this.set=_e.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let i=new Map;t?.onCreate&&t.onCreate(i);for(let n of this.items){let r,a;if(zn.isPair(n)?(r=Ms.toJS(n.key,"",t),a=Ms.toJS(n.value,r,t)):r=Ms.toJS(n,"",t),i.has(r))throw new Error("Ordered maps must not include duplicate keys");i.set(r,a)}return i}static from(e,t,i){let n=Zn.createPairs(e,t,i),r=new this;return r.items=n.items,r}};ne.tag="tag:yaml.org,2002:omap";var jl={collection:"seq",identify:o(s=>s instanceof Map,"identify"),nodeClass:ne,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=Zn.resolvePairs(s,e),i=[];for(let{key:n}of t.items)zn.isScalar(n)&&(i.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new ne,t)},createNode:o((s,e,t)=>ne.from(s,e,t),"createNode")};$s.YAMLOMap=ne;$s.omap=jl});var nr=y(Ds=>{"use strict";var er=C();function tr({value:s,source:e},t){return e&&(s?sr:ir).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}o(tr,"boolStringify");var sr={identify:o(s=>s===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:o(()=>new er.Scalar(!0),"resolve"),stringify:tr},ir={identify:o(s=>s===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:o(()=>new er.Scalar(!1),"resolve"),stringify:tr};Ds.falseTag=ir;Ds.trueTag=sr});var rr=y(It=>{"use strict";var Fl=C(),Bs=me(),Rl={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:o(s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:Bs.stringifyNumber},Ul={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:o(s=>parseFloat(s.replace(/_/g,"")),"resolve"),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Bs.stringifyNumber(s)}},Yl={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new Fl.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let i=s.substring(t+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length)}return e},stringify:Bs.stringifyNumber};It.float=Yl;It.floatExp=Ul;It.floatNaN=Rl});var or=y(Be=>{"use strict";var ar=me(),De=o(s=>typeof s=="bigint"||Number.isInteger(s),"intIdentify");function Mt(s,e,t,{intAsBigInt:i}){let n=s[0];if((n==="-"||n==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),i){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let a=BigInt(s);return n==="-"?BigInt(-1)*a:a}let r=parseInt(s,t);return n==="-"?-1*r:r}o(Mt,"intResolve");function Ks(s,e,t){let{value:i}=s;if(De(i)){let n=i.toString(e);return i<0?"-"+t+n.substr(1):t+n}return ar.stringifyNumber(s)}o(Ks,"intStringify");var Vl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:o((s,e,t)=>Mt(s,2,2,t),"resolve"),stringify:o(s=>Ks(s,2,"0b"),"stringify")},Jl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:o((s,e,t)=>Mt(s,1,8,t),"resolve"),stringify:o(s=>Ks(s,8,"0"),"stringify")},Wl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:o((s,e,t)=>Mt(s,0,10,t),"resolve"),stringify:ar.stringifyNumber},xl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:o((s,e,t)=>Mt(s,2,16,t),"resolve"),stringify:o(s=>Ks(s,16,"0x"),"stringify")};Be.int=Wl;Be.intBin=Vl;Be.intHex=xl;Be.intOct=Jl});var Fs=y(js=>{"use strict";var Dt=O(),$t=H(),_t=z(),re=class s extends _t.YAMLMap{static{o(this,"YAMLSet")}constructor(e){super(e),this.tag=s.tag}add(e){let t;Dt.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new $t.Pair(e.key,null):t=new $t.Pair(e,null),_t.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let i=_t.findPair(this.items,e);return!t&&Dt.isPair(i)?Dt.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=_t.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new $t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,i);throw new Error("Set items must all have null values")}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let a of t)typeof n=="function"&&(a=n.call(t,a,a)),r.items.push($t.createPair(a,null,i));return r}};re.tag="tag:yaml.org,2002:set";var Ql={collection:"map",identify:o(s=>s instanceof Set,"identify"),nodeClass:re,default:!1,tag:"tag:yaml.org,2002:set",createNode:o((s,e,t)=>re.from(s,e,t),"createNode"),resolve(s,e){if(Dt.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new re,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};js.YAMLSet=re;js.set=Ql});var Us=y(Bt=>{"use strict";var Gl=me();function Rs(s,e){let t=s[0],i=t==="-"||t==="+"?s.substring(1):s,n=o(a=>e?BigInt(a):Number(a),"num"),r=i.replace(/_/g,"").split(":").reduce((a,l)=>a*n(60)+n(l),n(0));return t==="-"?n(-1)*r:r}o(Rs,"parseSexagesimal");function lr(s){let{value:e}=s,t=o(a=>a,"num");if(typeof e=="bigint")t=o(a=>BigInt(a),"num");else if(isNaN(e)||!isFinite(e))return Gl.stringifyNumber(s);let i="";e<0&&(i="-",e*=t(-1));let n=t(60),r=[e%n];return e<60?r.unshift(0):(e=(e-r[0])/n,r.unshift(e%n),e>=60&&(e=(e-r[0])/n,r.unshift(e))),i+r.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}o(lr,"stringifySexagesimal");var Hl={identify:o(s=>typeof s=="bigint"||Number.isInteger(s),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:o((s,e,{intAsBigInt:t})=>Rs(s,t),"resolve"),stringify:lr},Xl={identify:o(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:o(s=>Rs(s,!1),"resolve"),stringify:lr},cr={identify:o(s=>s instanceof Date,"identify"),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(s){let e=s.match(cr.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,i,n,r,a,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0,f=Date.UTC(t,i-1,n,r||0,a||0,l||0,c),p=e[8];if(p&&p!=="Z"){let u=Rs(p,!1);Math.abs(u)<30&&(u*=60),f-=6e4*u}return new Date(f)},stringify:o(({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??"","stringify")};Bt.floatTime=Xl;Bt.intTime=Hl;Bt.timestamp=cr});var hr=y(ur=>{"use strict";var zl=de(),Zl=At(),ec=pe(),tc=Me(),sc=Ps(),fr=nr(),Ys=rr(),Kt=or(),ic=gt(),nc=_s(),rc=Pt(),ac=Fs(),Vs=Us(),oc=[zl.map,ec.seq,tc.string,Zl.nullTag,fr.trueTag,fr.falseTag,Kt.intBin,Kt.intOct,Kt.int,Kt.intHex,Ys.floatNaN,Ys.floatExp,Ys.float,sc.binary,ic.merge,nc.omap,rc.pairs,ac.set,Vs.intTime,Vs.floatTime,Vs.timestamp];ur.schema=oc});var kr=y(xs=>{"use strict";var gr=de(),lc=At(),yr=pe(),cc=Me(),fc=Ns(),Js=qs(),Ws=Ls(),uc=Jn(),hc=Qn(),br=Ps(),Ke=gt(),Sr=_s(),wr=Pt(),dr=hr(),vr=Fs(),jt=Us(),pr=new Map([["core",uc.schema],["failsafe",[gr.map,yr.seq,cc.string]],["json",hc.schema],["yaml11",dr.schema],["yaml-1.1",dr.schema]]),mr={binary:br.binary,bool:fc.boolTag,float:Js.float,floatExp:Js.floatExp,floatNaN:Js.floatNaN,floatTime:jt.floatTime,int:Ws.int,intHex:Ws.intHex,intOct:Ws.intOct,intTime:jt.intTime,map:gr.map,merge:Ke.merge,null:lc.nullTag,omap:Sr.omap,pairs:wr.pairs,seq:yr.seq,set:vr.set,timestamp:jt.timestamp},dc={"tag:yaml.org,2002:binary":br.binary,"tag:yaml.org,2002:merge":Ke.merge,"tag:yaml.org,2002:omap":Sr.omap,"tag:yaml.org,2002:pairs":wr.pairs,"tag:yaml.org,2002:set":vr.set,"tag:yaml.org,2002:timestamp":jt.timestamp};function pc(s,e,t){let i=pr.get(e);if(i&&!s)return t&&!i.includes(Ke.merge)?i.concat(Ke.merge):i.slice();let n=i;if(!n)if(Array.isArray(s))n=[];else{let r=Array.from(pr.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)n=n.concat(r);else typeof s=="function"&&(n=s(n.slice()));return t&&(n=n.concat(Ke.merge)),n.reduce((r,a)=>{let l=typeof a=="string"?mr[a]:a;if(!l){let c=JSON.stringify(a),f=Object.keys(mr).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${f}`)}return r.includes(l)||r.push(l),r},[])}o(pc,"getTags");xs.coreKnownTags=dc;xs.getTags=pc});var Hs=y(Nr=>{"use strict";var Qs=O(),mc=de(),gc=pe(),yc=Me(),Ft=kr(),bc=o((s,e)=>s.key<e.key?-1:s.key>e.key?1:0,"sortMapEntriesByKey"),Gs=class s{static{o(this,"Schema")}constructor({compat:e,customTags:t,merge:i,resolveKnownTags:n,schema:r,sortMapEntries:a,toStringDefaults:l}){this.compat=Array.isArray(e)?Ft.getTags(e,"compat"):e?Ft.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=n?Ft.coreKnownTags:{},this.tags=Ft.getTags(t,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Qs.MAP,{value:mc.map}),Object.defineProperty(this,Qs.SCALAR,{value:yc.string}),Object.defineProperty(this,Qs.SEQ,{value:gc.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?bc:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Nr.Schema=Gs});var qr=y(Ar=>{"use strict";var Sc=O(),Xs=Te(),je=Oe();function wc(s,e){let t=[],i=e.directives===!0;if(e.directives!==!1&&s.directives){let c=s.directives.toString(s);c?(t.push(c),i=!0):s.directives.docStart&&(i=!0)}i&&t.push("---");let n=Xs.createStringifyContext(s,e),{commentString:r}=n.options;if(s.commentBefore){t.length!==1&&t.unshift("");let c=r(s.commentBefore);t.unshift(je.indentComment(c,""))}let a=!1,l=null;if(s.contents){if(Sc.isNode(s.contents)){if(s.contents.spaceBefore&&i&&t.push(""),s.contents.commentBefore){let p=r(s.contents.commentBefore);t.push(je.indentComment(p,""))}n.forceBlockIndent=!!s.comment,l=s.contents.comment}let c=l?void 0:()=>a=!0,f=Xs.stringify(s.contents,n,()=>l=null,c);l&&(f+=je.lineComment(f,"",r(l))),(f[0]==="|"||f[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${f}`:t.push(f)}else t.push(Xs.stringify(s.contents,n));if(s.directives?.docEnd)if(s.comment){let c=r(s.comment);c.includes(`
56
+ `)?(t.push("..."),t.push(je.indentComment(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||l)&&t[t.length-1]!==""&&t.push(""),t.push(je.indentComment(r(c),"")))}return t.join(`
57
+ `)+`
58
+ `}o(wc,"stringifyDocument");Ar.stringifyDocument=wc});var Fe=y(Or=>{"use strict";var vc=Ae(),ge=at(),B=O(),kc=H(),Nc=W(),Ac=Hs(),qc=qr(),zs=st(),Oc=ss(),Lc=qe(),Zs=ts(),ei=class s{static{o(this,"Document")}constructor(e,t,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,B.NODE_TYPE,{value:B.DOC});let n=null;typeof t=="function"||Array.isArray(t)?n=t:i===void 0&&t&&(i=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=r;let{version:a}=r;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Zs.Directives({version:a}),this.setSchema(a,i),this.contents=e===void 0?null:this.createNode(e,n,i)}clone(){let e=Object.create(s.prototype,{[B.NODE_TYPE]:{value:B.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=B.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ye(this.contents)&&this.contents.add(e)}addIn(e,t){ye(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let i=zs.anchorNames(this);e.anchor=!t||i.has(t)?zs.findNewAnchor(t||"a",i):t}return new vc.Alias(e.anchor)}createNode(e,t,i){let n;if(typeof t=="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let m=o(v=>typeof v=="number"||v instanceof String||v instanceof Number,"keyToStr"),w=t.filter(m).map(String);w.length>0&&(t=t.concat(w)),n=t}else i===void 0&&t&&(i=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:a,flow:l,keepUndefined:c,onTagObj:f,tag:p}=i??{},{onAnchor:u,setAnchors:h,sourceObjects:g}=zs.createNodeAnchors(this,a||"a"),b={aliasDuplicateObjects:r??!0,keepUndefined:c??!1,onAnchor:u,onTagObj:f,replacer:n,schema:this.schema,sourceObjects:g},d=Lc.createNode(e,p,b);return l&&B.isCollection(d)&&(d.flow=!0),h(),d}createPair(e,t,i={}){let n=this.createNode(e,null,i),r=this.createNode(t,null,i);return new kc.Pair(n,r)}delete(e){return ye(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ge.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):ye(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return B.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ge.isEmptyPath(e)?!t&&B.isScalar(this.contents)?this.contents.value:this.contents:B.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return B.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return ge.isEmptyPath(e)?this.contents!==void 0:B.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ge.collectionFromPath(this.schema,[e],t):ye(this.contents)&&this.contents.set(e,t)}setIn(e,t){ge.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=ge.collectionFromPath(this.schema,Array.from(e),t):ye(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Zs.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Zs.Directives({version:e}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(i)this.schema=new Ac.Schema(Object.assign(i,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:i,maxAliasCount:n,onAnchor:r,reviver:a}={}){let l={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=Nc.toJS(this.contents,t??"",l);if(typeof r=="function")for(let{count:f,res:p}of l.anchors.values())r(p,f);return typeof a=="function"?Oc.applyReviver(a,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new 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 new Error(`"indent" option must be a positive integer, not ${t}`)}return qc.stringifyDocument(this,e)}};function ye(s){if(B.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}o(ye,"assertCollection");Or.Document=ei});var Ye=y(Ue=>{"use strict";var Re=class extends Error{static{o(this,"YAMLError")}constructor(e,t,i,n){super(),this.name=e,this.code=i,this.message=n,this.pos=t}},ti=class extends Re{static{o(this,"YAMLParseError")}constructor(e,t,i){super("YAMLParseError",e,t,i)}},si=class extends Re{static{o(this,"YAMLWarning")}constructor(e,t,i){super("YAMLWarning",e,t,i)}},Ec=o((s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));let{line:i,col:n}=t.linePos[0];t.message+=` at line ${i}, column ${n}`;let r=n-1,a=s.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(r>=60&&a.length>80){let l=Math.min(r-39,a.length-79);a="\u2026"+a.substring(l),r-=l-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(a.substring(0,r))){let l=s.substring(e.lineStarts[i-2],e.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
59
+ `),a=l+a}if(/[^ ]/.test(a)){let l=1,c=t.linePos[1];c?.line===i&&c.col>n&&(l=Math.max(1,Math.min(c.col-n,80-r)));let f=" ".repeat(r)+"^".repeat(l);t.message+=`:
60
+
61
+ ${a}
62
+ ${f}
63
+ `}},"prettifyError");Ue.YAMLError=Re;Ue.YAMLParseError=ti;Ue.YAMLWarning=si;Ue.prettifyError=Ec});var Ve=y(Lr=>{"use strict";function Cc(s,{flow:e,indicator:t,next:i,offset:n,onError:r,parentIndent:a,startOnNewline:l}){let c=!1,f=l,p=l,u="",h="",g=!1,b=!1,d=null,m=null,w=null,v=null,k=null,N=null,A=null;for(let S of s)switch(b&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),d&&(f&&S.type!=="comment"&&S.type!=="newline"&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=null),S.type){case"space":!e&&(t!=="doc-start"||i?.type!=="flow-collection")&&S.source.includes(" ")&&(d=S),p=!0;break;case"comment":{p||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let T=S.source.substring(1)||" ";u?u+=h+T:u=T,h="",f=!1;break}case"newline":f?u?u+=S.source:(!N||t!=="seq-item-ind")&&(c=!0):h+=S.source,f=!0,g=!0,(m||w)&&(v=S),p=!0;break;case"anchor":m&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&r(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=S,A??(A=S.offset),f=!1,p=!1,b=!0;break;case"tag":{w&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),w=S,A??(A=S.offset),f=!1,p=!1,b=!0;break}case t:(m||w)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),N&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),N=S,f=t==="seq-item-ind"||t==="explicit-key-ind",p=!1;break;case"comma":if(e){k&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),k=S,f=!1,p=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),f=!1,p=!1}let q=s[s.length-1],E=q?q.offset+q.source.length:n;return b&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&r(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d&&(f&&d.indent<=a||i?.type==="block-map"||i?.type==="block-seq")&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:N,spaceBefore:c,comment:u,hasNewline:g,anchor:m,tag:w,newlineAfterProp:v,end:E,start:A??E}}o(Cc,"resolveProps");Lr.resolveProps=Cc});var Rt=y(Er=>{"use strict";function ii(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
64
+ `))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(ii(e.key)||ii(e.value))return!0}return!1;default:return!0}}o(ii,"containsNewline");Er.containsNewline=ii});var ni=y(Cr=>{"use strict";var Tc=Rt();function Pc(s,e,t){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===s&&(i.source==="]"||i.source==="}")&&Tc.containsNewline(e)&&t(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}o(Pc,"flowIndentCheck");Cr.flowIndentCheck=Pc});var ri=y(Pr=>{"use strict";var Tr=O();function Ic(s,e,t){let{uniqueKeys:i}=s.options;if(i===!1)return!1;let n=typeof i=="function"?i:(r,a)=>r===a||Tr.isScalar(r)&&Tr.isScalar(a)&&r.value===a.value;return e.some(r=>n(r.key,t))}o(Ic,"mapIncludes");Pr.mapIncludes=Ic});var Br=y(Dr=>{"use strict";var Ir=H(),Mc=z(),Mr=Ve(),$c=Rt(),$r=ni(),_c=ri(),_r="All mapping items must start at the same column";function Dc({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=r?.nodeClass??Mc.YAMLMap,l=new a(t.schema);t.atRoot&&(t.atRoot=!1);let c=i.offset,f=null;for(let p of i.items){let{start:u,key:h,sep:g,value:b}=p,d=Mr.resolveProps(u,{indicator:"explicit-key-ind",next:h??g?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),m=!d.found;if(m){if(h&&(h.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==i.indent&&n(c,"BAD_INDENT",_r)),!d.anchor&&!d.tag&&!g){f=d.end,d.comment&&(l.comment?l.comment+=`
65
+ `+d.comment:l.comment=d.comment);continue}(d.newlineAfterProp||$c.containsNewline(h))&&n(h??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==i.indent&&n(c,"BAD_INDENT",_r);t.atKey=!0;let w=d.end,v=h?s(t,h,d,n):e(t,w,u,null,d,n);t.schema.compat&&$r.flowIndentCheck(i.indent,h,n),t.atKey=!1,_c.mapIncludes(t,l.items,v)&&n(w,"DUPLICATE_KEY","Map keys must be unique");let k=Mr.resolveProps(g??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:n,parentIndent:i.indent,startOnNewline:!h||h.type==="block-scalar"});if(c=k.end,k.found){m&&(b?.type==="block-map"&&!k.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&d.start<k.found.offset-1024&&n(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let N=b?s(t,b,k,n):e(t,c,g,null,k,n);t.schema.compat&&$r.flowIndentCheck(i.indent,b,n),c=N.range[2];let A=new Ir.Pair(v,N);t.options.keepSourceTokens&&(A.srcToken=p),l.items.push(A)}else{m&&n(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(v.comment?v.comment+=`
66
+ `+k.comment:v.comment=k.comment);let N=new Ir.Pair(v);t.options.keepSourceTokens&&(N.srcToken=p),l.items.push(N)}}return f&&f<c&&n(f,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,c,f??c],l}o(Dc,"resolveBlockMap");Dr.resolveBlockMap=Dc});var jr=y(Kr=>{"use strict";var Bc=Z(),Kc=Ve(),jc=ni();function Fc({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=r?.nodeClass??Bc.YAMLSeq,l=new a(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=i.offset,f=null;for(let{start:p,value:u}of i.items){let h=Kc.resolveProps(p,{indicator:"seq-item-ind",next:u,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||u)u?.type==="block-seq"?n(h.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{f=h.end,h.comment&&(l.comment=h.comment);continue}let g=u?s(t,u,h,n):e(t,h.end,p,null,h,n);t.schema.compat&&jc.flowIndentCheck(i.indent,u,n),c=g.range[2],l.items.push(g)}return l.range=[i.offset,c,f??c],l}o(Fc,"resolveBlockSeq");Kr.resolveBlockSeq=Fc});var be=y(Fr=>{"use strict";function Rc(s,e,t,i){let n="";if(s){let r=!1,a="";for(let l of s){let{source:c,type:f}=l;switch(f){case"space":r=!0;break;case"comment":{t&&!r&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let p=c.substring(1)||" ";n?n+=a+p:n=p,a="";break}case"newline":n&&(a+=c),r=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}e+=c.length}}return{comment:n,offset:e}}o(Rc,"resolveEnd");Fr.resolveEnd=Rc});var Vr=y(Yr=>{"use strict";var Uc=O(),Yc=H(),Rr=z(),Vc=Z(),Jc=be(),Ur=Ve(),Wc=Rt(),xc=ri(),ai="Block collections are not allowed within flow collections",oi=o(s=>s&&(s.type==="block-map"||s.type==="block-seq"),"isBlock");function Qc({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=i.start.source==="{",l=a?"flow map":"flow sequence",c=r?.nodeClass??(a?Rr.YAMLMap:Vc.YAMLSeq),f=new c(t.schema);f.flow=!0;let p=t.atRoot;p&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let u=i.offset+i.start.source.length;for(let m=0;m<i.items.length;++m){let w=i.items[m],{start:v,key:k,sep:N,value:A}=w,q=Ur.resolveProps(v,{flow:l,indicator:"explicit-key-ind",next:k??N?.[0],offset:u,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!N&&!A){m===0&&q.comma?n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):m<i.items.length-1&&n(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),q.comment&&(f.comment?f.comment+=`
67
+ `+q.comment:f.comment=q.comment),u=q.end;continue}!a&&t.options.strict&&Wc.containsNewline(k)&&n(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)q.comma&&n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(q.comma||n(q.start,"MISSING_CHAR",`Missing , between ${l} items`),q.comment){let E="";e:for(let S of v)switch(S.type){case"comma":case"space":break;case"comment":E=S.source.substring(1);break e;default:break e}if(E){let S=f.items[f.items.length-1];Uc.isPair(S)&&(S=S.value??S.key),S.comment?S.comment+=`
68
+ `+E:S.comment=E,q.comment=q.comment.substring(E.length+1)}}if(!a&&!N&&!q.found){let E=A?s(t,A,q,n):e(t,q.end,N,null,q,n);f.items.push(E),u=E.range[2],oi(A)&&n(E.range,"BLOCK_IN_FLOW",ai)}else{t.atKey=!0;let E=q.end,S=k?s(t,k,q,n):e(t,E,v,null,q,n);oi(k)&&n(S.range,"BLOCK_IN_FLOW",ai),t.atKey=!1;let T=Ur.resolveProps(N??[],{flow:l,indicator:"map-value-ind",next:A,offset:S.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(T.found){if(!a&&!q.found&&t.options.strict){if(N)for(let P of N){if(P===T.found)break;if(P.type==="newline"){n(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}q.start<T.found.offset-1024&&n(T.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else A&&("source"in A&&A.source?.[0]===":"?n(A,"MISSING_CHAR",`Missing space after : in ${l}`):n(T.start,"MISSING_CHAR",`Missing , or : between ${l} items`));let J=A?s(t,A,T,n):T.found?e(t,T.end,N,null,T,n):null;J?oi(A)&&n(J.range,"BLOCK_IN_FLOW",ai):T.comment&&(S.comment?S.comment+=`
69
+ `+T.comment:S.comment=T.comment);let le=new Yc.Pair(S,J);if(t.options.keepSourceTokens&&(le.srcToken=w),a){let P=f;xc.mapIncludes(t,P.items,S)&&n(E,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(le)}else{let P=new Rr.YAMLMap(t.schema);P.flow=!0,P.items.push(le);let Ii=(J??S).range;P.range=[S.range[0],Ii[1],Ii[2]],f.items.push(P)}u=J?J.range[2]:T.end}}let h=a?"}":"]",[g,...b]=i.end,d=u;if(g?.source===h)d=g.offset+g.source.length;else{let m=l[0].toUpperCase()+l.substring(1),w=p?`${m} must end with a ${h}`:`${m} in block collection must be sufficiently indented and end with a ${h}`;n(u,p?"MISSING_CHAR":"BAD_INDENT",w),g&&g.source.length!==1&&b.unshift(g)}if(b.length>0){let m=Jc.resolveEnd(b,d,t.options.strict,n);m.comment&&(f.comment?f.comment+=`
70
+ `+m.comment:f.comment=m.comment),f.range=[i.offset,d,m.offset]}else f.range=[i.offset,d,d];return f}o(Qc,"resolveFlowCollection");Yr.resolveFlowCollection=Qc});var Wr=y(Jr=>{"use strict";var Gc=O(),Hc=C(),Xc=z(),zc=Z(),Zc=Br(),ef=jr(),tf=Vr();function li(s,e,t,i,n,r){let a=t.type==="block-map"?Zc.resolveBlockMap(s,e,t,i,r):t.type==="block-seq"?ef.resolveBlockSeq(s,e,t,i,r):tf.resolveFlowCollection(s,e,t,i,r),l=a.constructor;return n==="!"||n===l.tagName?(a.tag=l.tagName,a):(n&&(a.tag=n),a)}o(li,"resolveCollection");function sf(s,e,t,i,n){let r=i.tag,a=r?e.directives.tagName(r.source,h=>n(r,"TAG_RESOLVE_FAILED",h)):null;if(t.type==="block-seq"){let{anchor:h,newlineAfterProp:g}=i,b=h&&r?h.offset>r.offset?h:r:h??r;b&&(!g||g.offset<b.offset)&&n(b,"MISSING_CHAR","Missing newline after block sequence props")}let l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!a||a==="!"||a===Xc.YAMLMap.tagName&&l==="map"||a===zc.YAMLSeq.tagName&&l==="seq")return li(s,e,t,n,a);let c=e.schema.tags.find(h=>h.tag===a&&h.collection===l);if(!c){let h=e.schema.knownTags[a];if(h?.collection===l)e.schema.tags.push(Object.assign({},h,{default:!1})),c=h;else return h?n(r,"BAD_COLLECTION_TYPE",`${h.tag} used for ${l} collection, but expects ${h.collection??"scalar"}`,!0):n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),li(s,e,t,n,a)}let f=li(s,e,t,n,a,c),p=c.resolve?.(f,h=>n(r,"TAG_RESOLVE_FAILED",h),e.options)??f,u=Gc.isNode(p)?p:new Hc.Scalar(p);return u.range=f.range,u.tag=a,c?.format&&(u.format=c.format),u}o(sf,"composeCollection");Jr.composeCollection=sf});var fi=y(xr=>{"use strict";var ci=C();function nf(s,e,t){let i=e.offset,n=rf(e,s.options.strict,t);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let r=n.mode===">"?ci.Scalar.BLOCK_FOLDED:ci.Scalar.BLOCK_LITERAL,a=e.source?af(e.source):[],l=a.length;for(let d=a.length-1;d>=0;--d){let m=a[d][1];if(m===""||m==="\r")l=d;else break}if(l===0){let d=n.chomp==="+"&&a.length>0?`
71
+ `.repeat(Math.max(1,a.length-1)):"",m=i+n.length;return e.source&&(m+=e.source.length),{value:d,type:r,comment:n.comment,range:[i,m,m]}}let c=e.indent+n.indent,f=e.offset+n.length,p=0;for(let d=0;d<l;++d){let[m,w]=a[d];if(w===""||w==="\r")n.indent===0&&m.length>c&&(c=m.length);else{m.length<c&&t(f+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=m.length),p=d,c===0&&!s.atRoot&&t(f,"BAD_INDENT","Block scalar values in collections must be indented");break}f+=m.length+w.length+1}for(let d=a.length-1;d>=l;--d)a[d][0].length>c&&(l=d+1);let u="",h="",g=!1;for(let d=0;d<p;++d)u+=a[d][0].slice(c)+`
72
+ `;for(let d=p;d<l;++d){let[m,w]=a[d];f+=m.length+w.length+1;let v=w[w.length-1]==="\r";if(v&&(w=w.slice(0,-1)),w&&m.length<c){let N=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;t(f-w.length-(v?2:1),"BAD_INDENT",N),m=""}r===ci.Scalar.BLOCK_LITERAL?(u+=h+m.slice(c)+w,h=`
73
+ `):m.length>c||w[0]===" "?(h===" "?h=`
74
+ `:!g&&h===`
75
+ `&&(h=`
76
+
77
+ `),u+=h+m.slice(c)+w,h=`
78
+ `,g=!0):w===""?h===`
79
+ `?u+=`
80
+ `:h=`
81
+ `:(u+=h+w,h=" ",g=!1)}switch(n.chomp){case"-":break;case"+":for(let d=l;d<a.length;++d)u+=`
82
+ `+a[d][0].slice(c);u[u.length-1]!==`
83
+ `&&(u+=`
84
+ `);break;default:u+=`
85
+ `}let b=i+n.length+e.source.length;return{value:u,type:r,comment:n.comment,range:[i,b,b]}}o(nf,"resolveBlockScalar");function rf({offset:s,props:e},t,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=e[0],r=n[0],a=0,l="",c=-1;for(let h=1;h<n.length;++h){let g=n[h];if(!l&&(g==="-"||g==="+"))l=g;else{let b=Number(g);!a&&b?a=b:c===-1&&(c=s+h)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let f=!1,p="",u=n.length;for(let h=1;h<e.length;++h){let g=e[h];switch(g.type){case"space":f=!0;case"newline":u+=g.source.length;break;case"comment":t&&!f&&i(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=g.source.length,p=g.source.substring(1);break;case"error":i(g,"UNEXPECTED_TOKEN",g.message),u+=g.source.length;break;default:{let b=`Unexpected token in block scalar header: ${g.type}`;i(g,"UNEXPECTED_TOKEN",b);let d=g.source;d&&typeof d=="string"&&(u+=d.length)}}}return{mode:r,indent:a,chomp:l,comment:p,length:u}}o(rf,"parseBlockScalarHeader");function af(s){let e=s.split(/\n( *)/),t=e[0],i=t.match(/^( *)/),r=[i?.[1]?[i[1],t.slice(i[1].length)]:["",t]];for(let a=1;a<e.length;a+=2)r.push([e[a],e[a+1]]);return r}o(af,"splitLines");xr.resolveBlockScalar=nf});var hi=y(Gr=>{"use strict";var ui=C(),of=be();function lf(s,e,t){let{offset:i,type:n,source:r,end:a}=s,l,c,f=o((h,g,b)=>t(i+h,g,b),"_onError");switch(n){case"scalar":l=ui.Scalar.PLAIN,c=cf(r,f);break;case"single-quoted-scalar":l=ui.Scalar.QUOTE_SINGLE,c=ff(r,f);break;case"double-quoted-scalar":l=ui.Scalar.QUOTE_DOUBLE,c=uf(r,f);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+r.length,i+r.length]}}let p=i+r.length,u=of.resolveEnd(a,p,e,t);return{value:c,type:l,comment:u.comment,range:[i,p,u.offset]}}o(lf,"resolveFlowScalar");function cf(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Qr(s)}o(cf,"plainValue");function ff(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Qr(s.slice(1,-1)).replace(/''/g,"'")}o(ff,"singleQuotedValue");function Qr(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
86
+ `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
87
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=e.exec(s);if(!i)return s;let n=i[1],r=" ",a=e.lastIndex;for(t.lastIndex=a;i=t.exec(s);)i[1]===""?r===`
88
+ `?n+=r:r=`
89
+ `:(n+=r+i[1],r=" "),a=t.lastIndex;let l=/[ \t]*(.*)/sy;return l.lastIndex=a,i=l.exec(s),n+r+(i?.[1]??"")}o(Qr,"foldLines");function uf(s,e){let t="";for(let i=1;i<s.length-1;++i){let n=s[i];if(!(n==="\r"&&s[i+1]===`
90
+ `))if(n===`
91
+ `){let{fold:r,offset:a}=hf(s,i);t+=r,i=a}else if(n==="\\"){let r=s[++i],a=df[r];if(a)t+=a;else if(r===`
92
+ `)for(r=s[i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="\r"&&s[i+1]===`
93
+ `)for(r=s[++i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="x"||r==="u"||r==="U"){let l=r==="x"?2:r==="u"?4:8;t+=pf(s,i+1,l,e),i+=l}else{let l=s.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(n===" "||n===" "){let r=i,a=s[i+1];for(;a===" "||a===" ";)a=s[++i+1];a!==`
94
+ `&&!(a==="\r"&&s[i+2]===`
95
+ `)&&(t+=i>r?s.slice(r,i+1):n)}else t+=n}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}o(uf,"doubleQuotedValue");function hf(s,e){let t="",i=s[e+1];for(;(i===" "||i===" "||i===`
96
+ `||i==="\r")&&!(i==="\r"&&s[e+2]!==`
97
+ `);)i===`
98
+ `&&(t+=`
99
+ `),e+=1,i=s[e+1];return t||(t=" "),{fold:t,offset:e}}o(hf,"foldNewline");var df={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
100
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function pf(s,e,t,i){let n=s.substr(e,t),a=n.length===t&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;try{return String.fromCodePoint(a)}catch{let l=s.substr(e-2,t+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}o(pf,"parseCharCode");Gr.resolveFlowScalar=lf});var zr=y(Xr=>{"use strict";var ae=O(),Hr=C(),mf=fi(),gf=hi();function yf(s,e,t,i){let{value:n,type:r,comment:a,range:l}=e.type==="block-scalar"?mf.resolveBlockScalar(s,e,i):gf.resolveFlowScalar(e,s.options.strict,i),c=t?s.directives.tagName(t.source,u=>i(t,"TAG_RESOLVE_FAILED",u)):null,f;s.options.stringKeys&&s.atKey?f=s.schema[ae.SCALAR]:c?f=bf(s.schema,n,c,t,i):e.type==="scalar"?f=Sf(s,n,e,i):f=s.schema[ae.SCALAR];let p;try{let u=f.resolve(n,h=>i(t??e,"TAG_RESOLVE_FAILED",h),s.options);p=ae.isScalar(u)?u:new Hr.Scalar(u)}catch(u){let h=u instanceof Error?u.message:String(u);i(t??e,"TAG_RESOLVE_FAILED",h),p=new Hr.Scalar(n)}return p.range=l,p.source=n,r&&(p.type=r),c&&(p.tag=c),f.format&&(p.format=f.format),a&&(p.comment=a),p}o(yf,"composeScalar");function bf(s,e,t,i,n){if(t==="!")return s[ae.SCALAR];let r=[];for(let l of s.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)r.push(l);else return l;for(let l of r)if(l.test?.test(e))return l;let a=s.knownTags[t];return a&&!a.collection?(s.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[ae.SCALAR])}o(bf,"findScalarTagByName");function Sf({atKey:s,directives:e,schema:t},i,n,r){let a=t.tags.find(l=>(l.default===!0||s&&l.default==="key")&&l.test?.test(i))||t[ae.SCALAR];if(t.compat){let l=t.compat.find(c=>c.default&&c.test?.test(i))??t[ae.SCALAR];if(a.tag!==l.tag){let c=e.tagString(a.tag),f=e.tagString(l.tag),p=`Value may be parsed as either ${c} or ${f}`;r(n,"TAG_RESOLVE_FAILED",p,!0)}}return a}o(Sf,"findScalarTagByTest");Xr.composeScalar=yf});var ea=y(Zr=>{"use strict";function wf(s,e,t){if(e){t??(t=e.length);for(let i=t-1;i>=0;--i){let n=e[i];switch(n.type){case"space":case"comment":case"newline":s-=n.source.length;continue}for(n=e[++i];n?.type==="space";)s+=n.source.length,n=e[++i];break}}return s}o(wf,"emptyScalarPosition");Zr.emptyScalarPosition=wf});var ia=y(pi=>{"use strict";var vf=Ae(),kf=O(),Nf=Wr(),ta=zr(),Af=be(),qf=ea(),Of={composeNode:sa,composeEmptyNode:di};function sa(s,e,t,i){let n=s.atKey,{spaceBefore:r,comment:a,anchor:l,tag:c}=t,f,p=!0;switch(e.type){case"alias":f=Lf(s,e,i),(l||c)&&i(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=ta.composeScalar(s,e,c,i),l&&(f.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{f=Nf.composeCollection(Of,s,e,t,i),l&&(f.anchor=l.source.substring(1))}catch(u){let h=u instanceof Error?u.message:String(u);i(e,"RESOURCE_EXHAUSTION",h)}break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",u),p=!1}}return f??(f=di(s,e.offset,void 0,null,t,i)),l&&f.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),n&&s.options.stringKeys&&(!kf.isScalar(f)||typeof f.value!="string"||f.tag&&f.tag!=="tag:yaml.org,2002:str")&&i(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(f.spaceBefore=!0),a&&(e.type==="scalar"&&e.source===""?f.comment=a:f.commentBefore=a),s.options.keepSourceTokens&&p&&(f.srcToken=e),f}o(sa,"composeNode");function di(s,e,t,i,{spaceBefore:n,comment:r,anchor:a,tag:l,end:c},f){let p={type:"scalar",offset:qf.emptyScalarPosition(e,t,i),indent:-1,source:""},u=ta.composeScalar(s,p,l,f);return a&&(u.anchor=a.source.substring(1),u.anchor===""&&f(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=c),u}o(di,"composeEmptyNode");function Lf({options:s},{offset:e,source:t,end:i},n){let r=new vf.Alias(t.substring(1));r.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&n(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=e+t.length,l=Af.resolveEnd(i,a,s.strict,n);return r.range=[e,a,l.offset],l.comment&&(r.comment=l.comment),r}o(Lf,"composeAlias");pi.composeEmptyNode=di;pi.composeNode=sa});var aa=y(ra=>{"use strict";var Ef=Fe(),na=ia(),Cf=be(),Tf=Ve();function Pf(s,e,{offset:t,start:i,value:n,end:r},a){let l=Object.assign({_directives:e},s),c=new Ef.Document(void 0,l),f={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Tf.resolveProps(i,{indicator:"doc-start",next:n??r?.[0],offset:t,onError:a,parentIndent:0,startOnNewline:!0});p.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!p.hasNewline&&a(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?na.composeNode(f,n,p,a):na.composeEmptyNode(f,p.end,i,null,p,a);let u=c.contents.range[2],h=Cf.resolveEnd(r,u,!1,a);return h.comment&&(c.comment=h.comment),c.range=[t,u,h.offset],c}o(Pf,"composeDoc");ra.composeDoc=Pf});var gi=y(ca=>{"use strict";var If=He("process"),Mf=ts(),$f=Fe(),Je=Ye(),oa=O(),_f=aa(),Df=be();function We(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}o(We,"getErrorPos");function la(s){let e="",t=!1,i=!1;for(let n=0;n<s.length;++n){let r=s[n];switch(r[0]){case"#":e+=(e===""?"":i?`
101
+
102
+ `:`
103
+ `)+(r.substring(1)||" "),t=!0,i=!1;break;case"%":s[n+1]?.[0]!=="#"&&(n+=1),t=!1;break;default:t||(i=!0),t=!1}}return{comment:e,afterEmptyLine:i}}o(la,"parsePrelude");var mi=class{static{o(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,i,n,r)=>{let a=We(t);r?this.warnings.push(new Je.YAMLWarning(a,i,n)):this.errors.push(new Je.YAMLParseError(a,i,n))},this.directives=new Mf.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:i,afterEmptyLine:n}=la(this.prelude);if(i){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
104
+ ${i}`:i;else if(n||e.directives.docStart||!r)e.commentBefore=i;else if(oa.isCollection(r)&&!r.flow&&r.items.length>0){let a=r.items[0];oa.isPair(a)&&(a=a.key);let l=a.commentBefore;a.commentBefore=l?`${i}
105
+ ${l}`:i}else{let a=r.commentBefore;r.commentBefore=a?`${i}
106
+ ${a}`:i}}if(t){for(let r=0;r<this.errors.length;++r)e.errors.push(this.errors[r]);for(let r=0;r<this.warnings.length;++r)e.warnings.push(this.warnings[r])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:la(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,i=-1){for(let n of e)yield*this.next(n);yield*this.end(t,i)}*next(e){switch(If.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,i,n)=>{let r=We(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",i,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=_f.composeDoc(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,i=new Je.YAMLParseError(We(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new Je.YAMLParseError(We(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let t=Df.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
107
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Je.YAMLParseError(We(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 i=Object.assign({_directives:this.directives},this.options),n=new $f.Document(void 0,i);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}};ca.Composer=mi});var ha=y(Ut=>{"use strict";var Bf=fi(),Kf=hi(),jf=Ye(),fa=Ce();function Ff(s,e=!0,t){if(s){let i=o((n,r,a)=>{let l=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(t)t(l,r,a);else throw new jf.YAMLParseError([l,l+1],r,a)},"_onError");switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Kf.resolveFlowScalar(s,e,i);case"block-scalar":return Bf.resolveBlockScalar({options:{strict:e}},s,i)}}return null}o(Ff,"resolveAsScalar");function Rf(s,e){let{implicitKey:t=!1,indent:i,inFlow:n=!1,offset:r=-1,type:a="PLAIN"}=e,l=fa.stringifyString({type:a,value:s},{implicitKey:t,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:i,source:`
108
+ `}];switch(l[0]){case"|":case">":{let f=l.indexOf(`
109
+ `),p=l.substring(0,f),u=l.substring(f+1)+`
110
+ `,h=[{type:"block-scalar-header",offset:r,indent:i,source:p}];return ua(h,c)||h.push({type:"newline",offset:-1,indent:i,source:`
111
+ `}),{type:"block-scalar",offset:r,indent:i,props:h,source:u}}case'"':return{type:"double-quoted-scalar",offset:r,indent:i,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:r,indent:i,source:l,end:c};default:return{type:"scalar",offset:r,indent:i,source:l,end:c}}}o(Rf,"createScalarToken");function Uf(s,e,t={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:r=!1,type:a}=t,l="indent"in s?s.indent:null;if(i&&typeof l=="number"&&(l+=2),!a)switch(s.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let f=s.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=fa.stringifyString({type:a,value:e},{implicitKey:n||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Yf(s,c);break;case'"':yi(s,c,"double-quoted-scalar");break;case"'":yi(s,c,"single-quoted-scalar");break;default:yi(s,c,"scalar")}}o(Uf,"setScalarValue");function Yf(s,e){let t=e.indexOf(`
112
+ `),i=e.substring(0,t),n=e.substring(t+1)+`
113
+ `;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=i,s.source=n}else{let{offset:r}=s,a="indent"in s?s.indent:-1,l=[{type:"block-scalar-header",offset:r,indent:a,source:i}];ua(l,"end"in s?s.end:void 0)||l.push({type:"newline",offset:-1,indent:a,source:`
114
+ `});for(let c of Object.keys(s))c!=="type"&&c!=="offset"&&delete s[c];Object.assign(s,{type:"block-scalar",indent:a,props:l,source:n})}}o(Yf,"setBlockScalarValue");function ua(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}o(ua,"addEndtoBlockProps");function yi(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let i=s.props.slice(1),n=e.length;s.props[0].type==="block-scalar-header"&&(n-=s.props[0].source.length);for(let r of i)r.offset+=n;delete s.props,Object.assign(s,{type:t,source:e,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
115
+ `};delete s.items,Object.assign(s,{type:t,source:e,end:[n]});break}default:{let i="indent"in s?s.indent:-1,n="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:i,source:e,end:n})}}}o(yi,"setFlowScalarValue");Ut.createScalarToken=Rf;Ut.resolveAsScalar=Ff;Ut.setScalarValue=Uf});var pa=y(da=>{"use strict";var Vf=o(s=>"type"in s?Vt(s):Yt(s),"stringify");function Vt(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=Vt(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=Yt(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=Yt(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=Yt(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}o(Vt,"stringifyToken");function Yt({start:s,key:e,sep:t,value:i}){let n="";for(let r of s)n+=r.source;if(e&&(n+=Vt(e)),t)for(let r of t)n+=r.source;return i&&(n+=Vt(i)),n}o(Yt,"stringifyItem");da.stringify=Vf});var ba=y(ya=>{"use strict";var bi=Symbol("break visit"),Jf=Symbol("skip children"),ma=Symbol("remove item");function oe(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),ga(Object.freeze([]),s,e)}o(oe,"visit");oe.BREAK=bi;oe.SKIP=Jf;oe.REMOVE=ma;oe.itemAtPath=(s,e)=>{let t=s;for(let[i,n]of e){let r=t?.[i];if(r&&"items"in r)t=r.items[n];else return}return t};oe.parentCollection=(s,e)=>{let t=oe.itemAtPath(s,e.slice(0,-1)),i=e[e.length-1][0],n=t?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function ga(s,e,t){let i=t(e,s);if(typeof i=="symbol")return i;for(let n of["key","value"]){let r=e[n];if(r&&"items"in r){for(let a=0;a<r.items.length;++a){let l=ga(Object.freeze(s.concat([[n,a]])),r.items[a],t);if(typeof l=="number")a=l-1;else{if(l===bi)return bi;l===ma&&(r.items.splice(a,1),a-=1)}}typeof i=="function"&&n==="key"&&(i=i(e,s))}}return typeof i=="function"?i(e,s):i}o(ga,"_visit");ya.visit=oe});var Jt=y(D=>{"use strict";var Si=ha(),Wf=pa(),xf=ba(),wi="\uFEFF",vi="",ki="",Ni="",Qf=o(s=>!!s&&"items"in s,"isCollection"),Gf=o(s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar"),"isScalar");function Hf(s){switch(s){case wi:return"<BOM>";case vi:return"<DOC>";case ki:return"<FLOW_END>";case Ni:return"<SCALAR>";default:return JSON.stringify(s)}}o(Hf,"prettyToken");function Xf(s){switch(s){case wi:return"byte-order-mark";case vi:return"doc-mode";case ki:return"flow-error-end";case Ni:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
116
+ `:case`\r
117
+ `: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(s[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}o(Xf,"tokenType");D.createScalarToken=Si.createScalarToken;D.resolveAsScalar=Si.resolveAsScalar;D.setScalarValue=Si.setScalarValue;D.stringify=Wf.stringify;D.visit=xf.visit;D.BOM=wi;D.DOCUMENT=vi;D.FLOW_END=ki;D.SCALAR=Ni;D.isCollection=Qf;D.isScalar=Gf;D.prettyToken=Hf;D.tokenType=Xf});var Oi=y(wa=>{"use strict";var xe=Jt();function j(s){switch(s){case void 0:case" ":case`
118
+ `:case"\r":case" ":return!0;default:return!1}}o(j,"isEmpty");var Sa=new Set("0123456789ABCDEFabcdef"),zf=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Wt=new Set(",[]{}"),Zf=new Set(` ,[]{}
119
+ \r `),Ai=o(s=>!s||Zf.has(s),"isNotAnchorChar"),qi=class{static{o(this,"Lexer")}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 i=this.next??"stream";for(;i&&(t||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
120
+ `?!0:t==="\r"?this.buffer[e+1]===`
121
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let i=0;for(;t===" ";)t=this.buffer[++i+e];if(t==="\r"){let n=this.buffer[i+e+1];if(n===`
122
+ `||!n&&!this.atEnd)return e+i+1}return t===`
123
+ `||i>=this.indentNext||!t&&!this.atEnd?e+i:-1}if(t==="-"||t==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&j(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(`
124
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),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]===xe.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,i=e.indexOf("#");for(;i!==-1;){let r=e[i-1];if(r===" "||r===" "){t=i-1;break}else i=e.indexOf("#",i+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),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 xe.DOCUMENT,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 t=this.peek(3);if((t==="---"||t==="...")&&j(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!j(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===":")&&j(t)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"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(Ai),"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,i=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=i=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&j(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield xe.FLOW_END,yield*this.parseLineStart();let r=0;for(;n[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),n[r]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-r),"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-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ai),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||j(a)||a===",")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 r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let i=this.buffer.substring(0,t),n=i.indexOf(`
125
+ `,this.pos);if(n!==-1){for(;n!==-1;){let r=this.continueScalar(n+1);if(r===-1)break;n=i.indexOf(`
126
+ `,r)}n!==-1&&(t=n-(i[n-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(t=>j(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,i;e:for(let r=this.pos;i=this.buffer[r];++r)switch(i){case" ":t+=1;break;case`
127
+ `:e=r,t=0;break;case"\r":{let a=this.buffer[r+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
128
+ `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
129
+ `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
130
+ `;)i=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let r=e-1,a=this.buffer[r];a==="\r"&&(a=this.buffer[--r]);let l=r;for(;a===" ";)a=this.buffer[--r];if(a===`
131
+ `&&r>=this.pos&&r+1+t>l)e=r;else break}while(!0);return yield xe.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let r=this.buffer[i+1];if(j(r)||e&&Wt.has(r))break;t=i}else if(j(n)){let r=this.buffer[i+1];if(n==="\r"&&(r===`
132
+ `?(i+=1,n=`
133
+ `,r=this.buffer[i+1]):t=i),r==="#"||e&&Wt.has(r))break;if(n===`
134
+ `){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(e&&Wt.has(n))break;t=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield xe.SCALAR,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 i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(t&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Ai),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,i=this.charAt(1);if(j(i)||t&&Wt.has(i)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!j(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(zf.has(t))t=this.buffer[++e];else if(t==="%"&&Sa.has(this.buffer[e+1])&&Sa.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===`
135
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
136
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,i;do i=this.buffer[++t];while(i===" "||e&&i===" ");let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let t=this.pos,i=this.buffer[t];for(;!e(i);)i=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};wa.Lexer=qi});var Ei=y(va=>{"use strict";var Li=class{static{o(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,i=this.lineStarts.length;for(;t<i;){let r=t+i>>1;this.lineStarts[r]<e?t=r+1:i=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}};va.LineCounter=Li});var Ti=y(Oa=>{"use strict";var eu=He("process"),ka=Jt(),tu=Oi();function ee(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}o(ee,"includesToken");function Na(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}o(Na,"findNonEmptyIndex");function qa(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}o(qa,"isFlowToken");function xt(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}o(xt,"getPrevProps");function Se(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}o(Se,"getFirstKeyStartProps");function Qt(s,e){if(e.length<1e5)Array.prototype.push.apply(s,e);else for(let t=0;t<e.length;++t)s.push(e[t])}o(Qt,"arrayPushArray");function Aa(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!ee(e.start,"explicit-key-ind")&&!ee(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,qa(e.value)?e.value.end?Qt(e.value.end,e.sep):e.value.end=e.sep:Qt(e.start,e.sep),delete e.sep)}o(Aa,"fixFlowSeqItems");var Ci=class{static{o(this,"Parser")}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 tu.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,t))yield*this.next(i);t||(yield*this.end())}*next(e){if(this.source=e,eu.env.LOG_TOKENS&&console.log("|",ka.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=ka.tokenType(e);if(t)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}else{let i=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:e}),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 i=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in i?i.indent:0:t.type==="flow-collection"&&i.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Aa(t),i.type){case"document":i.value=t;break;case"block-scalar":i.props.push(t);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.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((i.type==="document"||i.type==="block-map"||i.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&&Na(n.start)===-1&&(t.indent===0||n.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(i.type==="document"?i.end=n.start:i.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":{Na(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);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=xt(this.peek(2)),i=Se(t),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:i,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 t=this.source.indexOf(`
137
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
138
+ `,t)+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 i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.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)){Qt(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent,n=i&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(n&&t.sep&&!t.value){let a=[];for(let l=0;l<t.sep.length;++l){let c=t.sep[l];switch(c.type){case"newline":a.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(r=t.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),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):n||t.value?(r.push(this.sourceToken),e.items.push({start:r,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(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ee(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(qa(t.key)&&!ee(t.sep,"newline")){let a=Se(t.start),l=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:l,sep:c}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(ee(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let a=Se(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):ee(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 a=this.flowScalar(this.type);n||t.value?(e.items.push({start:r,key:a,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(a):(Object.assign(t,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(e);if(a){if(a.type==="block-seq"){if(!t.explicitKey&&t.sep&&!ee(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 i&&e.items.push({start:r});this.stack.push(a);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 i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.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)){Qt(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||ee(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.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 i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let n=xt(i),r=Se(n);Aa(e);let a=e.end.splice(1,e.end.length);a.push(this.sourceToken);let l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
139
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
140
+ `,t)+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=xt(e),i=Se(t);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=xt(e),i=Se(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(i=>i.type==="newline"||i.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())}}};Oa.Parser=Ci});var Pa=y(Ge=>{"use strict";var La=gi(),su=Fe(),Qe=Ye(),iu=ps(),nu=O(),ru=Ei(),Ea=Ti();function Ca(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new ru.LineCounter||null,prettyErrors:e}}o(Ca,"parseOptions");function au(s,e={}){let{lineCounter:t,prettyErrors:i}=Ca(e),n=new Ea.Parser(t?.addNewLine),r=new La.Composer(e),a=Array.from(r.compose(n.parse(s)));if(i&&t)for(let l of a)l.errors.forEach(Qe.prettifyError(s,t)),l.warnings.forEach(Qe.prettifyError(s,t));return a.length>0?a:Object.assign([],{empty:!0},r.streamInfo())}o(au,"parseAllDocuments");function Ta(s,e={}){let{lineCounter:t,prettyErrors:i}=Ca(e),n=new Ea.Parser(t?.addNewLine),r=new La.Composer(e),a=null;for(let l of r.compose(n.parse(s),!0,s.length))if(!a)a=l;else if(a.options.logLevel!=="silent"){a.errors.push(new Qe.YAMLParseError(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&t&&(a.errors.forEach(Qe.prettifyError(s,t)),a.warnings.forEach(Qe.prettifyError(s,t))),a}o(Ta,"parseDocument");function ou(s,e,t){let i;typeof e=="function"?i=e:t===void 0&&e&&typeof e=="object"&&(t=e);let n=Ta(s,t);if(!n)return null;if(n.warnings.forEach(r=>iu.warn(n.options.logLevel,r)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},t))}o(ou,"parse");function lu(s,e,t){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let n=Math.round(t);t=n<1?void 0:n>8?{indent:8}:{indent:n}}if(s===void 0){let{keepUndefined:n}=t??e??{};if(!n)return}return nu.isDocument(s)&&!i?s.toString(t):new su.Document(s,i,t).toString(t)}o(lu,"stringify");Ge.parse=ou;Ge.parseAllDocuments=au;Ge.parseDocument=Ta;Ge.stringify=lu});var Ma=y(L=>{"use strict";var cu=gi(),fu=Fe(),uu=Hs(),Pi=Ye(),hu=Ae(),te=O(),du=H(),pu=C(),mu=z(),gu=Z(),yu=Jt(),bu=Oi(),Su=Ei(),wu=Ti(),Gt=Pa(),Ia=we();L.Composer=cu.Composer;L.Document=fu.Document;L.Schema=uu.Schema;L.YAMLError=Pi.YAMLError;L.YAMLParseError=Pi.YAMLParseError;L.YAMLWarning=Pi.YAMLWarning;L.Alias=hu.Alias;L.isAlias=te.isAlias;L.isCollection=te.isCollection;L.isDocument=te.isDocument;L.isMap=te.isMap;L.isNode=te.isNode;L.isPair=te.isPair;L.isScalar=te.isScalar;L.isSeq=te.isSeq;L.Pair=du.Pair;L.Scalar=pu.Scalar;L.YAMLMap=mu.YAMLMap;L.YAMLSeq=gu.YAMLSeq;L.CST=yu;L.Lexer=bu.Lexer;L.LineCounter=Su.LineCounter;L.Parser=wu.Parser;L.parse=Gt.parse;L.parseAllDocuments=Gt.parseAllDocuments;L.parseDocument=Gt.parseDocument;L.stringify=Gt.stringify;L.visit=Ia.visit;L.visitAsync=Ia.visitAsync});import{createHash as Ba}from"node:crypto";import{existsSync as ji}from"node:fs";import{readdir as Fi,readFile as Ri,stat as Ka}from"node:fs/promises";import F from"node:path";var Xt="skills",Xe="SKILL.md",Di=8e4;async function ja(s){let e=F.join(s,Xt);if(!ji(e))return{skillCatalog:Bi({stale:!1}),skills:[]};try{let t=await Fi(e,{withFileTypes:!0}),i=(await Promise.all(t.filter(r=>r.isDirectory()).map(r=>Fa(s,r.name)))).sort((r,a)=>r.name.localeCompare(a.name)||r.path.localeCompare(a.path));Ua(i);let n=await Ya(s,i);return{skillCatalog:{skillCount:i.length,generatedAt:n,stale:!1,error:null},skills:i}}catch(t){return{skillCatalog:Bi({stale:!0,error:t instanceof Error?t.message:String(t)}),skills:[]}}}o(ja,"loadProfileSkills");function Ui(s){let e=[],t=/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)([\s\S]*)$/.exec(s);if(!t)return{name:null,description:null,body:s.trim(),messages:["SKILL.md must start with YAML frontmatter bounded by ---."]};let i=t[1]??"",n=(t[2]??"").trim(),r;try{r=_i.load(i)}catch(f){e.push(`SKILL.md frontmatter is invalid YAML: ${f instanceof Error?f.message:String(f)}`)}let a=Va(r),l=Ki(a?.name),c=Ki(a?.description);return l||e.push("Skill frontmatter must include a non-empty name."),c||e.push("Skill frontmatter must include a non-empty description."),n||e.push("Skill body must be non-empty markdown."),{name:l,description:c,body:n,messages:e}}o(Ui,"parseProfileSkillMarkdown");async function Tu(s){let e=s.name.trim();if(!Yi(e))throw new Error("Profile skill name must be lowercase kebab-case.");let i=(await ja(s.profileSourcePath)).skills.find(l=>l.name===e);if(!i)throw new Error(`Profile skill not found: ${e}`);if(!i.enabled||i.validationStatus!=="valid"){let l=i.validationMessages.length>0?` ${i.validationMessages.join(" ")}`:"";throw new Error(`Profile skill ${e} is not valid.${l}`)}let n=F.join(s.profileSourcePath,i.path),r=await Ri(n,"utf8"),a=Ui(r);if(a.messages.length>0)throw new Error(`Profile skill ${e} is not valid. ${a.messages.join(" ")}`);return{name:i.name,description:i.description,body:a.body,path:i.path,sourcePath:i.sourcePath,sourceHash:i.sourceHash,charCount:i.charCount,packagePath:F.dirname(n),resourceFiles:i.resourceFiles}}o(Tu,"readProfileSkill");function Bi(s={}){return{skillCount:0,generatedAt:null,stale:s.stale??!0,error:s.error??null}}o(Bi,"emptyProfileSkillCatalogState");async function Fa(s,e){let t=F.join(Xt,e,Xe).replace(/\\/g,"/"),i=F.join(s,t),n=[],r=F.join(s,Xt,e),a=await Ra(r),l="";ji(i)?l=await Ri(i,"utf8"):n.push(`Missing ${Xe}.`),l.length>Di&&n.push(`Skill markdown exceeds the limit of ${Di} characters.`);let c=Ui(l);n.push(...c.messages);let f=c.name??e,p=c.description??"";return Yi(f)||n.push("Skill name must be lowercase kebab-case."),f!==e&&n.push(`Skill name must match its directory name (${e}).`),{name:f,description:p,path:t,scope:"profile",enabled:n.length===0,sourcePath:s,charCount:l.length,sourceHash:Ja(l),validationStatus:n.length>0?"error":"valid",validationMessages:n,resourceFiles:a.filter(u=>u!==Xe)}}o(Fa,"loadProfileSkillDirectory");async function Ra(s){let e=[];async function t(i,n){let r=await Fi(i,{withFileTypes:!0});await Promise.all(r.map(async a=>{let l=n?`${n}/${a.name}`:a.name;a.isDirectory()?await t(F.join(i,a.name),l):a.isFile()&&e.push(l)}))}return o(t,"visit"),await t(s,""),e.sort()}o(Ra,"listPackageFiles");function Ua(s){let e=new Map;for(let t of s)e.set(t.name,(e.get(t.name)??0)+1);for(let t of s)(e.get(t.name)??0)<=1||(t.enabled=!1,t.validationStatus="error",t.validationMessages=[...t.validationMessages,`Duplicate skill name: ${t.name}`])}o(Ua,"markDuplicateSkillNames");async function Ya(s,e){let t=0;for(let i of e){let n=F.dirname(F.join(s,i.path)),r=[Xe,...i.resourceFiles];for(let a of r){let l=await Ka(F.join(n,a)).catch(()=>null);l?.isFile()&&(t=Math.max(t,l.mtimeMs))}}return t>0?new Date(t).toISOString():null}o(Ya,"latestSkillMtime");function Yi(s){return/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(s)}o(Yi,"isKebabCaseSkillName");function Va(s){return s&&typeof s=="object"&&!Array.isArray(s)?s:null}o(Va,"asRecord");function Ki(s){if(typeof s!="string")return null;let e=s.trim();return e.length>0?e:null}o(Ki,"text");function Ja(s){return Ba("sha256").update(s).digest("hex")}o(Ja,"sha256Hex");var $a=Da(Ma(),1);var Ht=M.string().min(1).max(2e3).refine(s=>!s.includes("\\")&&!s.includes(":")&&!s.startsWith("/")&&s.split("/").every(e=>e!==""&&e!=="."&&e!==".."),"source paths must be portable relative paths"),vu=M.string().regex(/^[a-z][a-z0-9_-]{0,119}$/),_a={type:"object",properties:{},additionalProperties:!1},ku=M.object({name:M.string().trim().min(1).max(240).optional(),description:M.string().max(4e3).optional(),skillPaths:M.array(Ht).max(100).optional(),assetPaths:M.array(Ht).max(100).optional()}).strict(),Nu=M.object({actionId:M.string().trim().min(1).max(240),name:M.string().trim().min(1).max(240),description:M.string().max(4e3).default(""),inputSchema:M.record(M.string(),M.unknown()).default(_a),skillPaths:M.array(Ht).max(100).default([]),assetPaths:M.array(Ht).max(100).default([])}).strict();function Au(s){let e=/^---\r?\n([\s\S]*?)\r?\n---\r?\n/.exec(s);if(!e)return{instructions:s,metadata:{}};let t=(0,$a.parseDocument)(e[1],{uniqueKeys:!0});if(t.errors.length)throw new Error(`Invalid Workflow prompt frontmatter: ${t.errors[0].message}`);return{instructions:s.slice(e[0].length),metadata:ku.parse(t.toJS())}}o(Au,"parseProfileWorkflowPrompt");function pp(s){let e=[...s.files.keys()].filter(a=>/^workflows\/[^/]+\/(PROMPT\.md|ACTION\.json)$/.test(a)).sort(),t=[],i=new Set,n=new Set;for(let a of e){let l=a.split("/")[1];if(vu.parse(l),n.has(l))throw new Error(`Profile Workflow ${l} has multiple primary files.`);n.add(l),i.add(a);let c=`workflows/${l}`,f=s.files.get(a),p=a.endsWith("/PROMPT.md")?Au(f):null,u=p?null:Nu.parse(JSON.parse(f));if(p&&(!p.instructions.trim()||p.instructions.length>1e5))throw new Error(`Profile Workflow ${l} needs a nonempty Markdown prompt under 100000 characters.`);let h=p?.metadata.assetPaths??u?.assetPaths??[];for(let g of h){let b=`${c}/${g}`;if(!s.files.has(b))throw new Error(`Profile Workflow ${l} references missing asset ${b}.`);i.add(b)}t.push({id:l,label:p?.metadata.name??u?.name??l.replace(/[-_]/g," "),description:p?.metadata.description??u?.description??"",inputSchema:u?.inputSchema??_a,invocation:p?{kind:"instructions",instructions:p.instructions}:{kind:"agent_action",actionId:u.actionId},skillPaths:p?.metadata.skillPaths??u?.skillPaths??[]})}for(let a of s.files.keys())if(!(!a.startsWith("workflows/")||a==="workflows/catalog.json"||/^workflows\/[^/]+\/evals\//.test(a))&&!i.has(a))throw new Error(`Unreferenced Profile Workflow source ${a}.`);return{catalog:$i({catalog:Mi.parse({schemaVersion:"openpond.profileWorkflows.v1",workflows:t}),sourcePaths:s.skillPaths,actionIds:s.actionIds}),referencedPaths:[...i].sort()}}o(pp,"compileProfileWorkflowPackages");export{Ma as a,ku as b,Nu as c,Au as d,pp as e,ja as f,Ui as g,Tu as h};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as be,b as Ae,c as Ie,d as ve}from"./chunk-JDLAHVAJ.js";import{a as Re}from"./chunk-6FA3GG5B.js";import{c as O,i as L}from"./chunk-R3XFY7VL.js";import{f as Oe}from"./chunk-H7IWJN7L.js";import{a as s}from"./chunk-FTQLQJQV.js";var W=class extends Error{static{s(this,"OpenPondProfileSetupRequiredError")}code="agent_source_setup_required";details;constructor(t,n){let o=n.blockingRequirements.map(r=>r.label);super(["agent_source_setup_required",`Profile action ${t} has unresolved required setup.`,o.length?`Missing setup: ${o.join(", ")}`:""].filter(Boolean).join(`
2
+ import{a as be,b as Ae,c as Ie,d as ve}from"./chunk-R27YGT77.js";import{a as Re}from"./chunk-6FA3GG5B.js";import{c as O,i as L}from"./chunk-TERVLCRG.js";import{f as Oe}from"./chunk-H7IWJN7L.js";import{a as s}from"./chunk-FTQLQJQV.js";var W=class extends Error{static{s(this,"OpenPondProfileSetupRequiredError")}code="agent_source_setup_required";details;constructor(t,n){let o=n.blockingRequirements.map(r=>r.label);super(["agent_source_setup_required",`Profile action ${t} has unresolved required setup.`,o.length?`Missing setup: ${o.join(", ")}`:""].filter(Boolean).join(`
3
3
  `)),this.name="OpenPondProfileSetupRequiredError",this.details={error:"agent_source_setup_required",actionId:t,setupGate:n,missing:o,blockingSetupRequirements:n.blockingRequirements,setupRequirements:n.requirements}}};function K(e){let t=new Map;for(let a of e.sourceSetupRequirements??[]){let l=bt(a);if(e.actionId&&l&&l!==e.actionId&&h(a.actionName)!==e.actionId&&h(a.sourceActionId)!==e.actionId)continue;let c=Ee({record:a,source:"source_upload_metadata",actionId:l});c&&t.set(c.ref,c)}for(let a of e.actionCatalog)if(!(e.actionId&&a.id!==e.actionId&&a.name!==e.actionId))for(let l of a.setupRequirements??[]){let c=Ee({record:l,source:"action_catalog",actionId:a.id});c&&t.set(c.ref,c)}let n=Array.from(t.values()),o=n.filter(a=>a.blocking),r=n.filter(a=>!a.required&&!ne(a.status)).length,i=n.filter(a=>ne(a.status)).length;return{status:It(o),requirementCount:n.length,blockingCount:o.length,optionalMissingCount:r,readyCount:i,requirements:n,blockingRequirements:o}}s(K,"buildOpenPondProfileSetupGate");function oe(e,t){if(t.blockingRequirements.length>0)throw new W(e,t)}s(oe,"assertOpenPondProfileActionReady");function Rt(e){let t=e.actionId?`${e.actionId}: `:"",n=e.required?"required":"optional";return`${t}${e.label} (${n}, ${e.status})`}s(Rt,"formatOpenPondProfileSetupRequirement");function Ee(e){let t=e.source==="action_catalog"&&h(e.record.source)==="source_upload_metadata"?"source_upload_metadata":e.source,n=h(e.record.kind)??h(e.record.type),o=h(e.record.label)??h(e.record.name)??h(e.record.key)??h(e.record.provider)??h(e.record.tool)??h(e.record.command)??h(e.record.packageName)??h(e.record.path)??h(e.record.repo)??h(e.record.url)??h(e.record.id)??n??"setup requirement",r=e.record.required!==!1,i=At(e.record);return{ref:[t,e.actionId??"source",n??"requirement",o].join(":"),source:t,actionId:e.actionId,kind:n,label:o,status:i,required:r,blocking:r&&!ne(i)}}s(Ee,"setupRequirementFromRecord");function bt(e){return h(e.actionId)??h(e.sourceActionId)??h(e.actionName)}s(bt,"setupRequirementActionId");function At(e){let t=h(e.status)??h(e.state);return t?t==="satisfied"||t==="connected"||t==="provided"?"ready":t:typeof e.satisfied=="boolean"?e.satisfied?"ready":"setup_required":typeof e.ready=="boolean"&&e.ready?"ready":"setup_required"}s(At,"setupStatus");function It(e){return e.length===0?"ready":e.some(t=>["blocked","unsupported","unsupported_dependency","stale"].includes(t.status))?"blocked":"setup_required"}s(It,"gateStatus");function ne(e){return e==="ready"||e==="disabled"}s(ne,"isReadyStatus");function h(e){return typeof e=="string"&&e.trim()?e.trim():null}s(h,"text");import{stat as qt}from"node:fs/promises";import se from"node:path";import{spawn as vt}from"node:child_process";import{existsSync as re}from"node:fs";import{readFile as Et,rm as Kn,writeFile as _e}from"node:fs/promises";import ie from"node:path";var Le=["**/node_modules/","**/.bun/","**/.env","**/.env.*","**/.openpond/traces/","**/.openpond/vendor/","**/.openpond/eval-results.json","**/.openpond/artifact-index.json","**/.openpond/source-upload-cache.json",""].join(`
4
4
  `);async function Me(e){if(!re(ie.join(e,".git"))){let i=await R(e,["init","-b","main"]);if(i.code!==0)throw new Error(H("git init",i))}let t=ie.join(e,".gitignore");if(re(t)?await xt(t):await _e(t,Le,"utf8"),await _t(e))return;let n=await N(e);if(!n.dirty&&n.files.length===0)return;let o=await R(e,["add","-A"]);if(o.code!==0)throw new Error(H("git add",o));let r=await R(e,["commit","-m","Initialize OpenPond profile"],{env:{...process.env,GIT_AUTHOR_NAME:process.env.GIT_AUTHOR_NAME||"OpenPond",GIT_AUTHOR_EMAIL:process.env.GIT_AUTHOR_EMAIL||"openpond@example.invalid",GIT_COMMITTER_NAME:process.env.GIT_COMMITTER_NAME||"OpenPond",GIT_COMMITTER_EMAIL:process.env.GIT_COMMITTER_EMAIL||"openpond@example.invalid"}});if(r.code!==0&&!/nothing to commit/i.test(r.stdout+r.stderr))throw new Error(H("git commit",r))}s(Me,"ensureProfileGitRepo");async function xt(e){let t=await Et(e,"utf8").catch(()=>""),n=Le.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).filter(r=>!t.split(/\r?\n/).some(i=>i.trim()===r));if(n.length===0)return;let o=t.endsWith(`
5
5
  `)||t.length===0?"":`
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{Va as r}from"./chunk-JIMU3KDA.js";import{I as o}from"./chunk-55G6B54U.js";import{I as t}from"./chunk-KD3QVRIJ.js";import{f as a}from"./chunk-KGNCKIFP.js";import{b as e}from"./chunk-ES2ISFJC.js";var s=e.object({profileRef:r,manifest:o,metric:t,gradeRefs:e.array(a),receiptRefs:e.array(a),passRate:e.number().min(0).max(1),passed:e.boolean(),completedAt:e.string().datetime(),contentHash:e.string().regex(/^[a-f0-9]{64}$/)}).strict();export{s as a};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{c as B}from"./chunk-PA7XP42P.js";import{e as D,f as k,g as K}from"./chunk-BSHAIAXY.js";import{f as w}from"./chunk-3M53YXEI.js";import{$ as N,W as y,X as L,Y as U,Z as M,_ as $,f as T,g as A,j as I,u as _}from"./chunk-QXVIIM4T.js";import{d as O}from"./chunk-R3XFY7VL.js";import{b as v}from"./chunk-GLUWATL5.js";import{h as C}from"./chunk-Z3D4C7BG.js";import{a as o}from"./chunk-FTQLQJQV.js";function ce(e){if(e.repoUrl)return e.repoUrl;if(e.gitHost&&e.gitOwner&&e.gitRepo)return`https://${e.gitHost}/${e.gitOwner}/${e.gitRepo}.git`;throw new Error("repoUrl missing from API response")}o(ce,"resolveRepoUrl");function le(e,t){let n=new URL(e),r=encodeURIComponent(t);return`${n.protocol}//x-access-token:${r}@${n.host}${n.pathname}`}o(le,"formatTokenizedRepoUrl");function fe(e){let t=new URL(e);return`${t.protocol}//x-access-token:$OPENPOND_API_KEY@${t.host}${t.pathname}`}o(fe,"formatTokenizedRepoUrlForPrint");function me(e){return e.replace(/x-access-token:[^@]+@/g,"x-access-token:***@")}o(me,"redactToken");function pe(e){let t=process.env.OPENPOND_BASE_URL;if(t)try{let n=new URL(t).hostname,r=new URL(e).hostname;n&&r&&n!==r&&(console.warn(`warning: repo host (${r}) does not match OPENPOND_BASE_URL (${n})`),console.warn("warning: verify your git host configuration matches OPENPOND_BASE_URL."))}catch{}}o(pe,"warnOnRepoHostMismatch");function W(e){let t=e.split("/").filter(Boolean);if(t.length!==2)throw new Error("expected <handle>/<repo>");return{handle:t[0],repo:t[1]}}o(W,"parseHandleRepo");function S(e){return(e||"").trim().toLowerCase()}o(S,"normalizeRepoName");async function ee(e){if(!e.forceRefresh){let n=await L({apiBase:e.apiBase,apiKey:e.apiKey,ttlMs:y});if(n)return n}let t=await I(e.apiBase,e.apiKey);return await U({apiBase:e.apiBase,apiKey:e.apiKey,apps:t}),t}o(ee,"fetchAppsWithCache");async function Re(e){if(!e.forceRefresh){let r=await M({apiBase:e.apiBase,apiKey:e.apiKey,ttlMs:y});if(r)return r}let t=await _(e.apiBase,e.apiKey),n=Array.isArray(t.tools)?t.tools:[];return await $({apiBase:e.apiBase,apiKey:e.apiKey,tools:n}),n}o(Re,"fetchToolsWithCache");async function Pe(e,t,n){let{handle:r,repo:s}=W(n),i=await ee({apiBase:e,apiKey:t}),a=S(s),d=i.find(u=>u.handle&&u.handle!==r?!1:[u.repo,u.gitRepo,u.id].map(S).includes(a));if(!d)throw new Error(`app not found for ${r}/${s}`);return{app:d,handle:r,repo:s}}o(Pe,"resolveAppTarget");async function Ee(e){let t=e.intervalMs??5e3,n=e.timeoutMs??240*1e3,r=new Set,s=Date.now();for(;Date.now()-s<n;){let a=(await T(e.baseUrl,e.apiKey,e.deploymentId)).filter(u=>!r.has(u.id));for(let u of a)r.add(u.id);for(let u of a)console.log(`${e.prefix}${u.message}`);let d=await A(e.baseUrl,e.apiKey,e.deploymentId);if(d.status==="failed"){console.log(`${e.prefix}deployment failed`);return}if(d.status==="running"||d.status==="deployed"){console.log(`${e.prefix}deployment complete`);return}await new Promise(u=>setTimeout(u,t))}console.log(`${e.prefix}deployment still in progress`)}o(Ee,"pollDeploymentLogs");import{stdin as q,stdout as H}from"node:process";import{createInterface as F}from"node:readline/promises";async function z(){let e=[];for await(let t of process.stdin)e.push(Buffer.isBuffer(t)?t:Buffer.from(String(t)));return Buffer.concat(e).toString("utf8").replace(/\r?\n$/,"")}o(z,"readAllStdin");function V(e){return new Promise((t,n)=>{let r=process.stdin,s=process.stderr,i="",a=r.isRaw;function d(){r.off("data",u),r.setRawMode&&r.setRawMode(a),r.pause(),s.write(`
2
+ import{c as B}from"./chunk-U2YMBCX7.js";import{e as D,f as k,g as K}from"./chunk-BSHAIAXY.js";import{f as w}from"./chunk-3M53YXEI.js";import{$ as N,W as y,X as L,Y as U,Z as M,_ as $,f as T,g as A,j as I,u as _}from"./chunk-B7QDZPNX.js";import{d as O}from"./chunk-TERVLCRG.js";import{b as v}from"./chunk-GLUWATL5.js";import{f as C}from"./chunk-73G5UYBB.js";import{a as o}from"./chunk-FTQLQJQV.js";function ce(e){if(e.repoUrl)return e.repoUrl;if(e.gitHost&&e.gitOwner&&e.gitRepo)return`https://${e.gitHost}/${e.gitOwner}/${e.gitRepo}.git`;throw new Error("repoUrl missing from API response")}o(ce,"resolveRepoUrl");function le(e,t){let n=new URL(e),r=encodeURIComponent(t);return`${n.protocol}//x-access-token:${r}@${n.host}${n.pathname}`}o(le,"formatTokenizedRepoUrl");function fe(e){let t=new URL(e);return`${t.protocol}//x-access-token:$OPENPOND_API_KEY@${t.host}${t.pathname}`}o(fe,"formatTokenizedRepoUrlForPrint");function me(e){return e.replace(/x-access-token:[^@]+@/g,"x-access-token:***@")}o(me,"redactToken");function pe(e){let t=process.env.OPENPOND_BASE_URL;if(t)try{let n=new URL(t).hostname,r=new URL(e).hostname;n&&r&&n!==r&&(console.warn(`warning: repo host (${r}) does not match OPENPOND_BASE_URL (${n})`),console.warn("warning: verify your git host configuration matches OPENPOND_BASE_URL."))}catch{}}o(pe,"warnOnRepoHostMismatch");function W(e){let t=e.split("/").filter(Boolean);if(t.length!==2)throw new Error("expected <handle>/<repo>");return{handle:t[0],repo:t[1]}}o(W,"parseHandleRepo");function S(e){return(e||"").trim().toLowerCase()}o(S,"normalizeRepoName");async function ee(e){if(!e.forceRefresh){let n=await L({apiBase:e.apiBase,apiKey:e.apiKey,ttlMs:y});if(n)return n}let t=await I(e.apiBase,e.apiKey);return await U({apiBase:e.apiBase,apiKey:e.apiKey,apps:t}),t}o(ee,"fetchAppsWithCache");async function Re(e){if(!e.forceRefresh){let r=await M({apiBase:e.apiBase,apiKey:e.apiKey,ttlMs:y});if(r)return r}let t=await _(e.apiBase,e.apiKey),n=Array.isArray(t.tools)?t.tools:[];return await $({apiBase:e.apiBase,apiKey:e.apiKey,tools:n}),n}o(Re,"fetchToolsWithCache");async function Pe(e,t,n){let{handle:r,repo:s}=W(n),i=await ee({apiBase:e,apiKey:t}),a=S(s),d=i.find(u=>u.handle&&u.handle!==r?!1:[u.repo,u.gitRepo,u.id].map(S).includes(a));if(!d)throw new Error(`app not found for ${r}/${s}`);return{app:d,handle:r,repo:s}}o(Pe,"resolveAppTarget");async function Ee(e){let t=e.intervalMs??5e3,n=e.timeoutMs??240*1e3,r=new Set,s=Date.now();for(;Date.now()-s<n;){let a=(await T(e.baseUrl,e.apiKey,e.deploymentId)).filter(u=>!r.has(u.id));for(let u of a)r.add(u.id);for(let u of a)console.log(`${e.prefix}${u.message}`);let d=await A(e.baseUrl,e.apiKey,e.deploymentId);if(d.status==="failed"){console.log(`${e.prefix}deployment failed`);return}if(d.status==="running"||d.status==="deployed"){console.log(`${e.prefix}deployment complete`);return}await new Promise(u=>setTimeout(u,t))}console.log(`${e.prefix}deployment still in progress`)}o(Ee,"pollDeploymentLogs");import{stdin as q,stdout as H}from"node:process";import{createInterface as F}from"node:readline/promises";async function z(){let e=[];for await(let t of process.stdin)e.push(Buffer.isBuffer(t)?t:Buffer.from(String(t)));return Buffer.concat(e).toString("utf8").replace(/\r?\n$/,"")}o(z,"readAllStdin");function V(e){return new Promise((t,n)=>{let r=process.stdin,s=process.stderr,i="",a=r.isRaw;function d(){r.off("data",u),r.setRawMode&&r.setRawMode(a),r.pause(),s.write(`
3
3
  `)}o(d,"cleanup");function u(m){let f=Buffer.isBuffer(m)?m:Buffer.from(m);for(let c of f){if(c===3){d(),n(new Error("secret prompt cancelled"));return}if(c===13||c===10){d(),t(i);return}if(c===127||c===8){i.length>0&&(i=i.slice(0,-1),s.write("\b \b"));continue}i+=Buffer.from([c]).toString("utf8"),s.write("*")}}o(u,"onData"),s.write(e),r.resume(),r.setRawMode&&r.setRawMode(!0),r.on("data",u)})}o(V,"readMaskedLine");async function Ae(e,t=!1){let n=F({input:q,output:H});try{let r=t?"[Y/n]":"[y/N]",s=(await n.question(`${e} ${r} `)).trim().toLowerCase();return s?s==="y"||s==="yes":t}finally{n.close()}}o(Ae,"promptConfirm");async function Ie(e){let t=F({input:q,output:H});try{return(await t.question(`Local path (default: ${e}): `)).trim()||e}finally{t.close()}}o(Ie,"promptForPath");var X=["readonly","attempt","feature","rollout","replay","template_build","scheduled_run","patch_only","hotfix","multi_feature_batch"],j=["none","manual","auto_after_checks"],G=[...N];function te(e,t){return(process.env.OPENPOND_SANDBOX_BASE_URL||process.env.OPENPOND_API_URL||e.apiBaseUrl||K(process.env.OPENPOND_BASE_URL||e.baseUrl)||v).replace(/\/$/,"")}o(te,"resolveSandboxBaseUrl");async function We(e){let t=await ne(e),n=k(t),r=await B(t,n),s=D(e)||process.env.OPENPOND_SANDBOX_API_URL?.trim()||null,i=te(t,e);return C(s?{apiKey:r,sandboxApiUrl:s}:{apiKey:r,baseUrl:i})}o(We,"resolveSandboxClient");async function ne(e){return O()}o(ne,"loadSandboxConfig");function qe(e){if(e===void 0)return;if(typeof e!="string"||!e.trim())throw new Error("workflow-mode must be a non-empty value");let t=e.trim();if(!X.includes(t))throw new Error(`workflow-mode must be one of ${X.join(", ")}`);return t}o(qe,"parseSandboxWorkflowModeOption");function He(e){if(e===void 0)return;if(typeof e!="string"||!e.trim())throw new Error("runtime-promotion-policy must be a non-empty value");let t=e.trim();if(!j.includes(t))throw new Error(`runtime-promotion-policy must be one of ${j.join(", ")}`);return t}o(He,"parseSandboxRuntimePromotionPolicyOption");function Fe(e){if(typeof e!="string"||!e.trim())return;let t=e.trim();if(!G.includes(t))throw new Error(`runtime-profile-id must be one of ${G.join(", ")}`);return t}o(Fe,"parseSandboxRuntimeProfileIdOption");function re(e){let t=Y(e.envRef,"env-ref").map(({name:i,value:a})=>({name:i,secretRef:a})),n=Y(e.envLiteral,"env-literal").map(({name:i,value:a})=>{if(oe(i)&&!w(e.allowPlainSecretEnv))throw new Error(`refusing plaintext value for secret-like env ${i}; create a sandbox secret and pass --env-ref ${i}=openpond://secret/...`);return{name:i,value:a}}),r=[...t,...n],s=new Set;for(let i of r){if(s.has(i.name))throw new Error(`duplicate sandbox env var: ${i.name}`);s.add(i.name)}return r}o(re,"parseSandboxEnvOptions");function ze(e,t){let n=re(t),r=new Set(n.map(a=>a.name)),s=new Map(n.map(a=>[a.name,a]));for(let a of e.inputs.env)if(s.get(a.name)?.value!==void 0&&a.secret!==!1)throw new Error(`sandbox template env ${a.name} requires a secret ref. Pass --env-ref ${a.name}=openpond://secret/...`);let i=e.inputs.env.filter(a=>a.required&&!r.has(a.name)).map(a=>a.name);if(i.length>0)throw new Error(`missing required sandbox template env refs: ${i.join(", ")}. Pass --env-ref NAME=openpond://secret/...`);return n}o(ze,"parseSandboxTemplateEnvOptions");function Y(e,t){return typeof e!="string"?[]:e.split(",").map(n=>n.trim()).filter(Boolean).map(n=>{let r=n.indexOf("=");if(r<=0)throw new Error(`${t} entries must use NAME=value`);let s=n.slice(0,r).trim(),i=n.slice(r+1).trim();if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(s))throw new Error(`${t} has invalid env name: ${s}`);if(!i)throw new Error(`${t} value is required for ${s}`);return{name:s,value:i}})}o(Y,"parseSandboxEnvAssignments");function oe(e){return/(?:SECRET|TOKEN|KEY|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|DATABASE_URL|DSN)/i.test(e)}o(oe,"isSecretLikeEnvName");async function Ve(e,t){if(typeof e.value=="string"||typeof e.secretValue=="string")throw new Error("sandbox secret values must be provided with --stdin or the masked prompt");if(w(e.stdin)){let s=await z();if(!s)throw new Error(`${t} read no secret value from stdin`);return s}if(!process.stdin.isTTY)throw new Error(`${t} requires --stdin when not running in a TTY`);let r=await V(`${t}: `);if(!r)throw new Error(`${t} cannot be empty`);return r}o(Ve,"readSandboxSecretValue");function Xe(e){return{id:e.id,teamId:e.teamId,name:e.name,scope:e.scope,status:e.status,secretRef:e.secretRef,currentVersion:e.currentVersion,updatedAt:e.updatedAt,lastUsedAt:e.lastUsedAt,attachedDestinations:e.attachments?.length??0}}o(Xe,"summarizeSandboxSecret");import{Buffer as b}from"node:buffer";import{spawn as Q}from"node:child_process";var ie=600*1e3,se=2*1024*1024;function R(e,t=[],n={}){return n.inherit&&n.terminateWhenStdoutIncludes!==void 0?Promise.reject(new Error("terminateWhenStdoutIncludes requires captured stdout")):n.terminateWhenStdoutIncludes===""?Promise.reject(new Error("terminateWhenStdoutIncludes must not be empty")):new Promise((r,s)=>{let i=Q(e,t,{cwd:n.cwd,env:n.env?{...process.env,...n.env}:void 0,shell:n.shell,detached:n.detached??process.platform!=="win32",stdio:n.inherit?"inherit":[n.stdin===void 0?"ignore":"pipe","pipe","pipe"]}),a=new h(J(n)),d=new h(J(n)),u=!1,m=n.timeoutMs??ie,f,c,x=null,g=!1,P=o(()=>{f&&clearTimeout(f),c&&clearTimeout(c)},"clearTimers"),E=o(l=>{x!==null||g||(x=l,u=l==="timeout",f&&(clearTimeout(f),f=void 0),Z(i.pid,"SIGTERM"),c=setTimeout(()=>{i.exitCode===null&&i.signalCode===null&&Z(i.pid,"SIGKILL")},5e3))},"requestTermination");m>0&&(f=setTimeout(()=>{E("timeout")},m)),n.inherit||(i.stdout?.on("data",l=>{a.append(l);let p=n.terminateWhenStdoutIncludes;p!==void 0&&a.text().includes(p)&&E("output")}),i.stderr?.on("data",l=>{d.append(l)})),i.on("error",l=>{P(),g=!0,s(l)}),i.on("close",(l,p)=>{g||(g=!0,P(),r({code:l,signal:p,terminationReason:x??(p?"signal":"exit"),stdout:a.text(),stderr:d.text(),timedOut:u,stdoutTruncated:a.truncated,stderrTruncated:d.truncated}))}),n.stdin!==void 0&&i.stdin?.end(n.stdin)})}o(R,"runProcessCommand");var h=class{static{o(this,"BoundedOutput")}#t=[];#n;#e=0;truncated=!1;constructor(t){this.#n=t}append(t){let n=b.isBuffer(t)?t:b.from(t),r=this.#n-this.#e;if(r<=0){n.byteLength>0&&(this.truncated=!0);return}if(n.byteLength<=r){this.#t.push(n),this.#e+=n.byteLength;return}this.#t.push(n.subarray(0,r)),this.#e+=r,this.truncated=!0}text(){let t=b.concat(this.#t,this.#e).toString("utf8");return this.truncated?`${t}
4
4
  [truncated after ${this.#n} bytes]
5
5
  `:t}};function J(e){let t=e.maxOutputBytes??se;return Math.max(0,Math.floor(t))}o(J,"maxOutputBytes");function Z(e,t){if(e){if(process.platform==="win32"){let n=["/PID",String(e),"/T"];t==="SIGKILL"&&n.push("/F"),Q("taskkill",n,{stdio:"ignore",windowsHide:!0}).unref();return}try{process.kill(-e,t)}catch(n){if(n.code!=="ESRCH")throw n}}}o(Z,"terminateProcessTree");async function ae(e,t,n={}){return R(e,t,{cwd:n.cwd,inherit:n.inherit,timeoutMs:n.timeoutMs,maxOutputBytes:n.maxOutputBytes,terminateWhenStdoutIncludes:n.terminateWhenStdoutIncludes})}o(ae,"runCommand");async function rt(e,t={}){let n=t.timeoutSeconds===void 0?void 0:t.timeoutSeconds*1e3;return R(e,[],{cwd:t.cwd,env:t.env,shell:!0,inherit:t.inherit,timeoutMs:n,maxOutputBytes:t.maxOutputBytes})}o(rt,"runShellCommand");async function ot(e,t){let n=await ae("git",["remote","get-url",t],{cwd:e});if(n.code!==0)return null;let r=n.stdout.trim();return r.length>0?r:null}o(ot,"getGitRemoteUrl");export{ce as a,le as b,fe as c,me as d,pe as e,S as f,ee as g,Re as h,Pe as i,Ee as j,Ae as k,Ie as l,We as m,qe as n,He as o,Fe as p,re as q,ze as r,Ve as s,Xe as t,R as u,ae as v,rt as w,ot as x};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{n as z,o as V,p as G,q}from"./chunk-N3DEA6PG.js";import{a as A,f as v,g as k,h as p,i as f}from"./chunk-3M53YXEI.js";import{a}from"./chunk-FTQLQJQV.js";import{Buffer as Y}from"node:buffer";import{readdirSync as H,readFileSync as Q,statSync as F}from"node:fs";import b from"node:path";var K=500,Z=8*1024*1024,W=8*1024*1024;async function me(e,t){if(!t.sandboxRuntime&&!t.runtimeId)return{sandbox:await X(e,await e.create(t.sandbox,{async:!0}))};let n=t.runtimeId?void 0:await e.createSandboxRuntime(t.sandboxRuntime),r=t.runtimeId??n.id,o=await e.createSandboxRuntimeSandbox(r,t.sandbox);return{sandbox:await X(e,o.sandbox),runtime:o.runtime??n}}a(me,"createSandboxFromPlan");async function X(e,t){if(t.state==="running"||t.state==="stopped")return t;if(t.state==="error")throw new Error(`sandbox create failed: ${t.id}
2
+ import{n as z,o as V,p as G,q}from"./chunk-NNIRIUSY.js";import{a as A,f as v,g as k,h as p,i as f}from"./chunk-3M53YXEI.js";import{a}from"./chunk-FTQLQJQV.js";import{Buffer as Y}from"node:buffer";import{readdirSync as H,readFileSync as Q,statSync as F}from"node:fs";import b from"node:path";var K=500,Z=8*1024*1024,W=8*1024*1024;async function me(e,t){if(!t.sandboxRuntime&&!t.runtimeId)return{sandbox:await X(e,await e.create(t.sandbox,{async:!0}))};let n=t.runtimeId?void 0:await e.createSandboxRuntime(t.sandboxRuntime),r=t.runtimeId??n.id,o=await e.createSandboxRuntimeSandbox(r,t.sandbox);return{sandbox:await X(e,o.sandbox),runtime:o.runtime??n}}a(me,"createSandboxFromPlan");async function X(e,t){if(t.state==="running"||t.state==="stopped")return t;if(t.state==="error")throw new Error(`sandbox create failed: ${t.id}
3
3
  ${t.logs.join(`
4
4
  `)}`);let n=12*6e4,r=3e3,o=Date.now()+n,i=t;for(;Date.now()<o;){if(await new Promise(s=>setTimeout(s,r)),i=await e.get(t.id),i.state==="running"||i.state==="stopped")return i;if(i.state==="error")throw new Error(`sandbox create failed: ${i.id}
5
5
  ${i.logs.join(`
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{k as f,l as m,m as d}from"./chunk-NNF6KCHD.js";import{b as e}from"./chunk-ES2ISFJC.js";import{a as s}from"./chunk-FTQLQJQV.js";function h(t){let{profileGitHead:i,...n}=t.manifest.metadata,o=t.sourceFiles.map(a=>{if(a.path!=="dependency-lock/profile-import.json")return{path:a.path,asset:a.asset};let l=e.object({source:e.literal("openpond.profile"),profileId:e.string(),profileGitHead:e.string().nullable(),dependenciesResolved:e.literal(!1)}).strict().parse(JSON.parse(Buffer.from(a.bytes).toString("utf8")));if(t.manifest.metadata.importedFrom!=="openpond.profile"||l.profileId!==t.manifest.metadata.profileId||l.profileGitHead!==i)throw new Error("Generated Profile provenance differs from compiler metadata.");let p=Buffer.from(f({...l,profileGitHead:null}));return{path:a.path,asset:{...a.asset,contentHash:m(p),sizeBytes:p.byteLength}}}),r={manifest:{...t.manifest,metadata:n},assets:o};return{contentHash:d(r),protectedClosureHash:d(t.sourceFiles.filter(a=>a.asset.visibility!=="policy").map(a=>({path:a.path,asset:a.asset}))),profileGitHead:typeof t.manifest.metadata.profileGitHead=="string"?t.manifest.metadata.profileGitHead:null}}s(h,"compiledCandidateExecutableIdentity");function v(t,i,n){let o=h(t),r=h(i);if(!/^[a-f0-9]{40}$/.test(n)||r.profileGitHead!==n||o.contentHash!==r.contentHash||o.protectedClosureHash!==r.protectedClosureHash)throw new Error("The actual committed Profile differs from tested executable source or its protected evaluator closure.");return{schemaVersion:"openpond.candidateExecutableEquivalence.v1",contentHash:o.contentHash,protectedClosureHash:o.protectedClosureHash,candidateProfileGitHead:o.profileGitHead,activeProfileGitHead:r.profileGitHead}}s(v,"qualifyCommittedCandidateEquivalence");var c=e.string().regex(/^[a-f0-9]{64}$/),H=e.object({id:e.string().min(1),contentHash:c}).strict(),u=e.object({schemaVersion:e.literal("openpond.candidateProfileAdoption.v1"),id:e.string().min(1),operationId:e.string().min(1),actorId:e.string().min(1),teamId:e.string().min(1),candidateId:e.string().min(1),testedCandidateRelease:H,activeRelease:H,expectedCommit:e.string().regex(/^[a-f0-9]{40}$/),committedProfileGit:e.string().regex(/^[a-f0-9]{40}$/),equivalence:e.object({schemaVersion:e.literal("openpond.candidateExecutableEquivalence.v1"),contentHash:c,protectedClosureHash:c,candidateProfileGitHead:e.string().nullable(),activeProfileGitHead:e.string()}).strict(),createdAt:e.string().datetime(),contentHash:c}).strict();function G(t){let i=u.parse({...t,contentHash:d(t)});if(i.equivalence.activeProfileGitHead!==i.committedProfileGit)throw new Error("Adoption receipt differs from its qualified committed source.");return i}s(G,"sealCandidateProfileAdoptionReceipt");export{h as a,v as b,u as c,G as d};
2
+ import{k as f,l as m,m as d}from"./chunk-KGNCKIFP.js";import{b as e}from"./chunk-ES2ISFJC.js";import{a as s}from"./chunk-FTQLQJQV.js";function h(t){let{profileGitHead:i,...n}=t.manifest.metadata,o=t.sourceFiles.map(a=>{if(a.path!=="dependency-lock/profile-import.json")return{path:a.path,asset:a.asset};let l=e.object({source:e.literal("openpond.profile"),profileId:e.string(),profileGitHead:e.string().nullable(),dependenciesResolved:e.literal(!1)}).strict().parse(JSON.parse(Buffer.from(a.bytes).toString("utf8")));if(t.manifest.metadata.importedFrom!=="openpond.profile"||l.profileId!==t.manifest.metadata.profileId||l.profileGitHead!==i)throw new Error("Generated Profile provenance differs from compiler metadata.");let p=Buffer.from(f({...l,profileGitHead:null}));return{path:a.path,asset:{...a.asset,contentHash:m(p),sizeBytes:p.byteLength}}}),r={manifest:{...t.manifest,metadata:n},assets:o};return{contentHash:d(r),protectedClosureHash:d(t.sourceFiles.filter(a=>a.asset.visibility!=="policy").map(a=>({path:a.path,asset:a.asset}))),profileGitHead:typeof t.manifest.metadata.profileGitHead=="string"?t.manifest.metadata.profileGitHead:null}}s(h,"compiledCandidateExecutableIdentity");function v(t,i,n){let o=h(t),r=h(i);if(!/^[a-f0-9]{40}$/.test(n)||r.profileGitHead!==n||o.contentHash!==r.contentHash||o.protectedClosureHash!==r.protectedClosureHash)throw new Error("The actual committed Profile differs from tested executable source or its protected evaluator closure.");return{schemaVersion:"openpond.candidateExecutableEquivalence.v1",contentHash:o.contentHash,protectedClosureHash:o.protectedClosureHash,candidateProfileGitHead:o.profileGitHead,activeProfileGitHead:r.profileGitHead}}s(v,"qualifyCommittedCandidateEquivalence");var c=e.string().regex(/^[a-f0-9]{64}$/),H=e.object({id:e.string().min(1),contentHash:c}).strict(),u=e.object({schemaVersion:e.literal("openpond.candidateProfileAdoption.v1"),id:e.string().min(1),operationId:e.string().min(1),actorId:e.string().min(1),teamId:e.string().min(1),candidateId:e.string().min(1),testedCandidateRelease:H,activeRelease:H,expectedCommit:e.string().regex(/^[a-f0-9]{40}$/),committedProfileGit:e.string().regex(/^[a-f0-9]{40}$/),equivalence:e.object({schemaVersion:e.literal("openpond.candidateExecutableEquivalence.v1"),contentHash:c,protectedClosureHash:c,candidateProfileGitHead:e.string().nullable(),activeProfileGitHead:e.string()}).strict(),createdAt:e.string().datetime(),contentHash:c}).strict();function G(t){let i=u.parse({...t,contentHash:d(t)});if(i.equivalence.activeProfileGitHead!==i.committedProfileGit)throw new Error("Adoption receipt differs from its qualified committed source.");return i}s(G,"sealCandidateProfileAdoptionReceipt");export{h as a,v as b,u as c,G as d};