zudoku 0.0.0-e068f8b → 0.0.0-e097cbb

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 (1426) hide show
  1. package/README.md +121 -0
  2. package/cli.js +5 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +19 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +21 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -2
  18. package/dist/app/main.js +40 -39
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/app/tailwind.d.ts +2 -1
  26. package/dist/app/tailwind.js +80 -48
  27. package/dist/app/tailwind.js.map +1 -1
  28. package/dist/cli/build/handler.d.ts +1 -3
  29. package/dist/cli/build/handler.js +9 -1
  30. package/dist/cli/build/handler.js.map +1 -1
  31. package/dist/cli/cli.js +18 -5
  32. package/dist/cli/cli.js.map +1 -1
  33. package/dist/cli/cmds/build.d.ts +11 -3
  34. package/dist/cli/cmds/build.js +21 -13
  35. package/dist/cli/cmds/build.js.map +1 -1
  36. package/dist/cli/cmds/dev.d.ts +1 -1
  37. package/dist/cli/cmds/dev.js +5 -0
  38. package/dist/cli/cmds/dev.js.map +1 -1
  39. package/dist/cli/cmds/preview.d.ts +16 -0
  40. package/dist/cli/cmds/preview.js +25 -0
  41. package/dist/cli/cmds/preview.js.map +1 -0
  42. package/dist/cli/common/logger.js +9 -0
  43. package/dist/cli/common/logger.js.map +1 -1
  44. package/dist/cli/common/machine-id/lib.js +1 -0
  45. package/dist/cli/common/machine-id/lib.js.map +1 -1
  46. package/dist/cli/common/outdated.js +2 -1
  47. package/dist/cli/common/outdated.js.map +1 -1
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/box.js.map +1 -1
  50. package/dist/cli/common/utils/ports.d.ts +1 -1
  51. package/dist/cli/common/utils/ports.js +16 -15
  52. package/dist/cli/common/utils/ports.js.map +1 -1
  53. package/dist/cli/dev/handler.d.ts +1 -0
  54. package/dist/cli/dev/handler.js +16 -13
  55. package/dist/cli/dev/handler.js.map +1 -1
  56. package/dist/cli/preview/handler.d.ts +3 -0
  57. package/dist/cli/preview/handler.js +35 -0
  58. package/dist/cli/preview/handler.js.map +1 -0
  59. package/dist/codegen.d.ts +3 -0
  60. package/dist/codegen.js +45 -0
  61. package/dist/codegen.js.map +1 -0
  62. package/dist/config/common.d.ts +10 -0
  63. package/dist/config/common.js +2 -0
  64. package/dist/config/common.js.map +1 -0
  65. package/dist/config/config.d.ts +20 -16
  66. package/dist/config/loader.d.ts +6 -0
  67. package/dist/config/loader.js +65 -0
  68. package/dist/config/loader.js.map +1 -0
  69. package/dist/config/validators/BuildSchema.d.ts +60 -0
  70. package/dist/config/validators/BuildSchema.js +31 -0
  71. package/dist/config/validators/BuildSchema.js.map +1 -0
  72. package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
  73. package/dist/config/validators/InputSidebarSchema.js +17 -28
  74. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  75. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  76. package/dist/config/validators/SidebarSchema.js +80 -44
  77. package/dist/config/validators/SidebarSchema.js.map +1 -1
  78. package/dist/config/validators/common.d.ts +7676 -0
  79. package/dist/config/validators/common.js +402 -0
  80. package/dist/config/validators/common.js.map +1 -0
  81. package/dist/config/validators/icon-types.d.ts +1 -0
  82. package/dist/config/validators/icon-types.js +2 -0
  83. package/dist/config/validators/icon-types.js.map +1 -0
  84. package/dist/config/validators/validate.d.ts +1921 -511
  85. package/dist/config/validators/validate.js +14 -213
  86. package/dist/config/validators/validate.js.map +1 -1
  87. package/dist/index.d.ts +7 -2
  88. package/dist/index.js +2 -1
  89. package/dist/index.js.map +1 -1
  90. package/dist/lib/MissingIcon.d.ts +2 -0
  91. package/dist/lib/MissingIcon.js +7 -0
  92. package/dist/lib/MissingIcon.js.map +1 -0
  93. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  94. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  95. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  96. package/dist/lib/authentication/authentication.d.ts +4 -3
  97. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  98. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  99. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  100. package/dist/lib/authentication/components/SignIn.js +5 -2
  101. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  102. package/dist/lib/authentication/components/SignOut.js +2 -2
  103. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  104. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  105. package/dist/lib/authentication/components/SignUp.js +4 -1
  106. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  107. package/dist/lib/authentication/hook.d.ts +6 -4
  108. package/dist/lib/authentication/hook.js +12 -4
  109. package/dist/lib/authentication/hook.js.map +1 -1
  110. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  111. package/dist/lib/authentication/providers/auth0.js +14 -12
  112. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  113. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  114. package/dist/lib/authentication/providers/clerk.js +54 -12
  115. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  116. package/dist/lib/authentication/providers/openid.d.ts +15 -5
  117. package/dist/lib/authentication/providers/openid.js +62 -46
  118. package/dist/lib/authentication/providers/openid.js.map +1 -1
  119. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  120. package/dist/lib/authentication/providers/supabase.js +117 -0
  121. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  122. package/dist/lib/authentication/state.d.ts +23 -3
  123. package/dist/lib/authentication/state.js +34 -2
  124. package/dist/lib/authentication/state.js.map +1 -1
  125. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  126. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  127. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  128. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  129. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  130. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  131. package/dist/lib/components/AnchorLink.d.ts +2 -2
  132. package/dist/lib/components/AnchorLink.js +9 -5
  133. package/dist/lib/components/AnchorLink.js.map +1 -1
  134. package/dist/lib/components/Autocomplete.d.ts +13 -0
  135. package/dist/lib/components/Autocomplete.js +47 -0
  136. package/dist/lib/components/Autocomplete.js.map +1 -0
  137. package/dist/lib/components/Banner.js +7 -1
  138. package/dist/lib/components/Banner.js.map +1 -1
  139. package/dist/lib/components/Bootstrap.d.ts +5 -3
  140. package/dist/lib/components/Bootstrap.js +13 -6
  141. package/dist/lib/components/Bootstrap.js.map +1 -1
  142. package/dist/lib/components/BuildCheck.d.ts +4 -0
  143. package/dist/lib/components/BuildCheck.js +38 -0
  144. package/dist/lib/components/BuildCheck.js.map +1 -0
  145. package/dist/lib/components/ClientOnly.d.ts +4 -2
  146. package/dist/lib/components/ClientOnly.js +1 -1
  147. package/dist/lib/components/ClientOnly.js.map +1 -1
  148. package/dist/lib/components/DeveloperHint.js +2 -1
  149. package/dist/lib/components/DeveloperHint.js.map +1 -1
  150. package/dist/lib/components/ErrorPage.js +1 -2
  151. package/dist/lib/components/ErrorPage.js.map +1 -1
  152. package/dist/lib/components/Footer.d.ts +1 -0
  153. package/dist/lib/components/Footer.js +32 -0
  154. package/dist/lib/components/Footer.js.map +1 -0
  155. package/dist/lib/components/Header.js +22 -11
  156. package/dist/lib/components/Header.js.map +1 -1
  157. package/dist/lib/components/Heading.d.ts +4 -4
  158. package/dist/lib/components/Heading.js +1 -1
  159. package/dist/lib/components/Heading.js.map +1 -1
  160. package/dist/lib/components/InlineCode.d.ts +3 -1
  161. package/dist/lib/components/InlineCode.js +2 -1
  162. package/dist/lib/components/InlineCode.js.map +1 -1
  163. package/dist/lib/components/Layout.js +9 -20
  164. package/dist/lib/components/Layout.js.map +1 -1
  165. package/dist/lib/components/Main.d.ts +2 -0
  166. package/dist/lib/components/Main.js +17 -0
  167. package/dist/lib/components/Main.js.map +1 -0
  168. package/dist/lib/components/Markdown.d.ts +2 -2
  169. package/dist/lib/components/Markdown.js +4 -2
  170. package/dist/lib/components/Markdown.js.map +1 -1
  171. package/dist/lib/components/MobileTopNavigation.js +13 -7
  172. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  173. package/dist/lib/components/NotFoundPage.js +1 -1
  174. package/dist/lib/components/NotFoundPage.js.map +1 -1
  175. package/dist/lib/components/Pagination.d.ts +11 -0
  176. package/dist/lib/components/Pagination.js +10 -0
  177. package/dist/lib/components/Pagination.js.map +1 -0
  178. package/dist/lib/components/PathRenderer.d.ts +11 -0
  179. package/dist/lib/components/PathRenderer.js +28 -0
  180. package/dist/lib/components/PathRenderer.js.map +1 -0
  181. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  182. package/dist/lib/components/ReactMarkdown.js +182 -0
  183. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  184. package/dist/lib/components/Search.d.ts +3 -1
  185. package/dist/lib/components/Search.js +9 -3
  186. package/dist/lib/components/Search.js.map +1 -1
  187. package/dist/lib/components/SlotletProvider.d.ts +11 -3
  188. package/dist/lib/components/SlotletProvider.js +4 -2
  189. package/dist/lib/components/SlotletProvider.js.map +1 -1
  190. package/dist/lib/components/StatusPage.d.ts +7 -0
  191. package/dist/lib/components/StatusPage.js +71 -0
  192. package/dist/lib/components/StatusPage.js.map +1 -0
  193. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  194. package/dist/lib/components/ThemeSwitch.js +16 -0
  195. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  196. package/dist/lib/components/TopNavigation.d.ts +6 -0
  197. package/dist/lib/components/TopNavigation.js +61 -8
  198. package/dist/lib/components/TopNavigation.js.map +1 -1
  199. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  200. package/dist/lib/components/{DevPortal.js → Zudoku.js} +22 -18
  201. package/dist/lib/components/Zudoku.js.map +1 -0
  202. package/dist/lib/components/cache.d.ts +13 -0
  203. package/dist/lib/components/cache.js +20 -0
  204. package/dist/lib/components/cache.js.map +1 -0
  205. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  206. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  207. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  208. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  209. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  210. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  211. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  212. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  213. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  214. package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
  215. package/dist/lib/components/context/ZudokuContext.js +41 -27
  216. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  217. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  218. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  219. package/dist/lib/components/index.d.ts +58 -16
  220. package/dist/lib/components/index.js +27 -6
  221. package/dist/lib/components/index.js.map +1 -1
  222. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  223. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  224. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  225. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  226. package/dist/lib/components/navigation/Sidebar.js +3 -7
  227. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  228. package/dist/lib/components/navigation/SidebarBadge.d.ts +13 -1
  229. package/dist/lib/components/navigation/SidebarBadge.js +13 -2
  230. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  231. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  232. package/dist/lib/components/navigation/SidebarCategory.js +27 -13
  233. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  234. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  235. package/dist/lib/components/navigation/SidebarItem.js +23 -16
  236. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  237. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  238. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  239. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  240. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  241. package/dist/lib/components/navigation/Toc.js.map +1 -0
  242. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  243. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  244. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  245. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  246. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  247. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  248. package/dist/lib/components/navigation/utils.js +11 -15
  249. package/dist/lib/components/navigation/utils.js.map +1 -1
  250. package/dist/lib/core/RouteGuard.d.ts +2 -0
  251. package/dist/lib/core/RouteGuard.js +52 -0
  252. package/dist/lib/core/RouteGuard.js.map +1 -0
  253. package/dist/lib/core/ZudokuContext.d.ts +99 -0
  254. package/dist/lib/core/ZudokuContext.js +69 -0
  255. package/dist/lib/core/ZudokuContext.js.map +1 -0
  256. package/dist/lib/core/plugins.d.ts +32 -17
  257. package/dist/lib/core/plugins.js +3 -0
  258. package/dist/lib/core/plugins.js.map +1 -1
  259. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  260. package/dist/lib/errors/ErrorAlert.js +13 -3
  261. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  262. package/dist/lib/errors/RouterError.js +1 -1
  263. package/dist/lib/errors/RouterError.js.map +1 -1
  264. package/dist/lib/hooks/index.d.ts +3 -0
  265. package/dist/lib/hooks/index.js +5 -0
  266. package/dist/lib/hooks/index.js.map +1 -0
  267. package/dist/lib/hooks/useEvent.d.ts +11 -0
  268. package/dist/lib/hooks/useEvent.js +19 -0
  269. package/dist/lib/hooks/useEvent.js.map +1 -0
  270. package/dist/lib/hooks/useEvent.test.js +100 -0
  271. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  272. package/dist/lib/icons.d.ts +1 -0
  273. package/dist/lib/icons.js +1 -0
  274. package/dist/lib/icons.js.map +1 -1
  275. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  276. package/dist/lib/oas/graphql/circular.js +38 -0
  277. package/dist/lib/oas/graphql/circular.js.map +1 -0
  278. package/dist/lib/oas/graphql/index.d.ts +26 -1
  279. package/dist/lib/oas/graphql/index.js +228 -73
  280. package/dist/lib/oas/graphql/index.js.map +1 -1
  281. package/dist/lib/oas/parser/dereference/index.js +8 -3
  282. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  283. package/dist/lib/oas/parser/index.d.ts +6 -3
  284. package/dist/lib/oas/parser/index.js +2 -23
  285. package/dist/lib/oas/parser/index.js.map +1 -1
  286. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  287. package/dist/lib/oas/parser/upgrade/index.js +22 -22
  288. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  289. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  290. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  291. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  292. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  293. package/dist/lib/plugins/api-catalog/index.js +46 -0
  294. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  295. package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
  296. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  297. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  298. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  299. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  300. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  301. package/dist/lib/plugins/api-keys/index.d.ts +10 -9
  302. package/dist/lib/plugins/api-keys/index.js +4 -0
  303. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  304. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  305. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  306. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  307. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  308. package/dist/lib/plugins/custom-pages/index.js +11 -0
  309. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  310. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  311. package/dist/lib/plugins/markdown/MdxPage.js +18 -5
  312. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  313. package/dist/lib/plugins/markdown/index.d.ts +8 -7
  314. package/dist/lib/plugins/markdown/index.js +31 -3
  315. package/dist/lib/plugins/markdown/index.js.map +1 -1
  316. package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
  317. package/dist/lib/plugins/markdown/resolver.js +46 -0
  318. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  319. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  320. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  321. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  322. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  323. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  324. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  325. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
  326. package/dist/lib/plugins/openapi/Endpoint.js +43 -8
  327. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  328. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  329. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  330. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  331. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  332. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  333. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  334. package/dist/lib/plugins/openapi/OperationListItem.d.ts +3 -2
  335. package/dist/lib/plugins/openapi/OperationListItem.js +7 -3
  336. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  337. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  338. package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
  339. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  340. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  341. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  342. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  343. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  344. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  345. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -2
  346. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  347. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  348. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  349. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  350. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  351. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  352. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  353. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  354. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  355. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  356. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  357. package/dist/lib/plugins/openapi/Sidecar.js +88 -48
  358. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  359. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  360. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  361. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  362. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  363. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  364. package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
  365. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  366. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  367. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  368. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  369. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  370. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  371. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  372. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  373. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  374. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  375. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  376. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
  377. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
  378. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  379. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  380. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  381. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  382. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  383. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  384. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  385. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  386. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  387. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  388. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  389. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  390. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  391. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  392. package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -41
  393. package/dist/lib/plugins/openapi/graphql/gql.js +8 -14
  394. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  395. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +165 -23
  396. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -575
  397. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  398. package/dist/lib/plugins/openapi/index.d.ts +11 -7
  399. package/dist/lib/plugins/openapi/index.js +72 -103
  400. package/dist/lib/plugins/openapi/index.js.map +1 -1
  401. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  402. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  403. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  404. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  405. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  406. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  407. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  408. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  409. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  410. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  411. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  412. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  413. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  414. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  415. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  416. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  417. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  418. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  419. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  420. package/dist/lib/plugins/openapi/playground/Playground.d.ts +38 -2
  421. package/dist/lib/plugins/openapi/playground/Playground.js +134 -63
  422. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  423. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  424. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  425. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  426. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  428. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  429. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  430. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  431. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  432. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  433. package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
  434. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  435. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  436. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  437. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  438. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  439. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  440. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  442. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  443. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  445. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  446. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  448. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  449. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  451. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  452. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  453. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  454. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  455. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  456. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  457. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  458. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  459. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  460. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  461. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  462. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  463. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  464. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  465. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  466. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  467. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  468. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  469. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  470. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  471. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  472. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  473. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  474. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  475. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  476. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  477. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  478. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  479. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  480. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  481. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  482. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  483. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  484. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  485. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  486. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  487. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  488. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  489. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
  490. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  491. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  492. package/dist/lib/plugins/openapi/schema/utils.js +8 -1
  493. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  494. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  495. package/dist/lib/plugins/openapi/state.js +18 -0
  496. package/dist/lib/plugins/openapi/state.js.map +1 -0
  497. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  498. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  499. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  500. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  501. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +73 -39
  502. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  503. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  504. package/dist/lib/plugins/openapi/util/getRoutes.js +87 -0
  505. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  506. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  507. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  508. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  509. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  510. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  511. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  512. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  513. package/dist/lib/plugins/redirect/index.js +2 -2
  514. package/dist/lib/plugins/redirect/index.js.map +1 -1
  515. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  516. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  517. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  518. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  519. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  520. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  521. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  522. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  523. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  524. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  525. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  526. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  527. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  528. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  529. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  530. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  531. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  532. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  533. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  534. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  535. package/dist/lib/ui/Accordion.d.ts +7 -0
  536. package/dist/lib/ui/Accordion.js +14 -0
  537. package/dist/lib/ui/Accordion.js.map +1 -0
  538. package/dist/lib/ui/ActionButton.d.ts +4 -0
  539. package/dist/lib/ui/ActionButton.js +10 -0
  540. package/dist/lib/ui/ActionButton.js.map +1 -0
  541. package/dist/lib/ui/Alert.d.ts +8 -0
  542. package/dist/lib/ui/Alert.js +23 -0
  543. package/dist/lib/ui/Alert.js.map +1 -0
  544. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  545. package/dist/lib/ui/AlertDialog.js +27 -0
  546. package/dist/lib/ui/AlertDialog.js.map +1 -0
  547. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  548. package/dist/lib/ui/AspectRatio.js +4 -0
  549. package/dist/lib/ui/AspectRatio.js.map +1 -0
  550. package/dist/lib/ui/Badge.d.ts +9 -0
  551. package/dist/lib/ui/Badge.js +22 -0
  552. package/dist/lib/ui/Badge.js.map +1 -0
  553. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  554. package/dist/lib/ui/Breadcrumb.js +24 -0
  555. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  556. package/dist/lib/ui/Button.d.ts +3 -4
  557. package/dist/lib/ui/Button.js +2 -1
  558. package/dist/lib/ui/Button.js.map +1 -1
  559. package/dist/lib/ui/Callout.d.ts +38 -36
  560. package/dist/lib/ui/Callout.js +3 -2
  561. package/dist/lib/ui/Callout.js.map +1 -1
  562. package/dist/lib/ui/Card.js +1 -1
  563. package/dist/lib/ui/Card.js.map +1 -1
  564. package/dist/lib/ui/Carousel.d.ts +18 -0
  565. package/dist/lib/ui/Carousel.js +99 -0
  566. package/dist/lib/ui/Carousel.js.map +1 -0
  567. package/dist/lib/ui/Checkbox.d.ts +4 -0
  568. package/dist/lib/ui/Checkbox.js +9 -0
  569. package/dist/lib/ui/Checkbox.js.map +1 -0
  570. package/dist/lib/ui/Collapsible.d.ts +5 -0
  571. package/dist/lib/ui/Collapsible.js +6 -0
  572. package/dist/lib/ui/Collapsible.js.map +1 -0
  573. package/dist/lib/ui/Command.d.ts +94 -0
  574. package/dist/lib/ui/Command.js +35 -0
  575. package/dist/lib/ui/Command.js.map +1 -0
  576. package/dist/lib/{components → ui}/Dialog.js +2 -2
  577. package/dist/lib/ui/Dialog.js.map +1 -0
  578. package/dist/lib/ui/Drawer.d.ts +8 -10
  579. package/dist/lib/ui/Drawer.js.map +1 -1
  580. package/dist/lib/ui/Form.d.ts +23 -0
  581. package/dist/lib/ui/Form.js +63 -0
  582. package/dist/lib/ui/Form.js.map +1 -0
  583. package/dist/lib/ui/HoverCard.d.ts +6 -0
  584. package/dist/lib/ui/HoverCard.js +10 -0
  585. package/dist/lib/ui/HoverCard.js.map +1 -0
  586. package/dist/lib/ui/Input.d.ts +1 -2
  587. package/dist/lib/ui/Input.js.map +1 -1
  588. package/dist/lib/ui/Label.d.ts +5 -0
  589. package/dist/lib/ui/Label.js +10 -0
  590. package/dist/lib/ui/Label.js.map +1 -0
  591. package/dist/lib/ui/Pagination.d.ts +28 -0
  592. package/dist/lib/ui/Pagination.js +24 -0
  593. package/dist/lib/ui/Pagination.js.map +1 -0
  594. package/dist/lib/ui/Popover.d.ts +6 -0
  595. package/dist/lib/ui/Popover.js +10 -0
  596. package/dist/lib/ui/Popover.js.map +1 -0
  597. package/dist/lib/ui/Progress.d.ts +4 -0
  598. package/dist/lib/ui/Progress.js +8 -0
  599. package/dist/lib/ui/Progress.js.map +1 -0
  600. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  601. package/dist/lib/ui/RadioGroup.js +15 -0
  602. package/dist/lib/ui/RadioGroup.js.map +1 -0
  603. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  604. package/dist/lib/ui/ScrollArea.js +12 -0
  605. package/dist/lib/ui/ScrollArea.js.map +1 -0
  606. package/dist/lib/{components → ui}/Select.js +3 -3
  607. package/dist/lib/ui/Select.js.map +1 -0
  608. package/dist/lib/ui/Skeleton.d.ts +2 -0
  609. package/dist/lib/ui/Skeleton.js +7 -0
  610. package/dist/lib/ui/Skeleton.js.map +1 -0
  611. package/dist/lib/ui/Slider.d.ts +4 -0
  612. package/dist/lib/ui/Slider.js +8 -0
  613. package/dist/lib/ui/Slider.js.map +1 -0
  614. package/dist/lib/ui/Stepper.d.ts +3 -0
  615. package/dist/lib/ui/Stepper.js +7 -0
  616. package/dist/lib/ui/Stepper.js.map +1 -0
  617. package/dist/lib/ui/Switch.d.ts +4 -0
  618. package/dist/lib/ui/Switch.js +8 -0
  619. package/dist/lib/ui/Switch.js.map +1 -0
  620. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  621. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  622. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  623. package/dist/lib/ui/Textarea.d.ts +4 -0
  624. package/dist/lib/ui/Textarea.js +9 -0
  625. package/dist/lib/ui/Textarea.js.map +1 -0
  626. package/dist/lib/ui/Toggle.d.ts +12 -0
  627. package/dist/lib/ui/Toggle.js +26 -0
  628. package/dist/lib/ui/Toggle.js.map +1 -0
  629. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  630. package/dist/lib/ui/ToggleGroup.js +21 -0
  631. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  632. package/dist/lib/ui/Tooltip.d.ts +7 -0
  633. package/dist/lib/ui/Tooltip.js +11 -0
  634. package/dist/lib/ui/Tooltip.js.map +1 -0
  635. package/dist/lib/ui/util.d.ts +2 -0
  636. package/dist/lib/ui/util.js +3 -0
  637. package/dist/lib/ui/util.js.map +1 -0
  638. package/dist/lib/util/MdxComponents.d.ts +24 -21
  639. package/dist/lib/util/MdxComponents.js +10 -7
  640. package/dist/lib/util/MdxComponents.js.map +1 -1
  641. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  642. package/dist/lib/util/detectOS.d.ts +1 -0
  643. package/dist/lib/util/detectOS.js +11 -0
  644. package/dist/lib/util/detectOS.js.map +1 -0
  645. package/dist/lib/util/ensureArray.d.ts +1 -0
  646. package/dist/lib/util/ensureArray.js +2 -0
  647. package/dist/lib/util/ensureArray.js.map +1 -0
  648. package/dist/lib/util/invariant.d.ts +9 -0
  649. package/dist/lib/util/invariant.js +7 -3
  650. package/dist/lib/util/invariant.js.map +1 -1
  651. package/dist/lib/util/joinPath.d.ts +3 -0
  652. package/dist/lib/util/joinPath.js +3 -0
  653. package/dist/lib/util/joinPath.js.map +1 -1
  654. package/dist/lib/util/joinUrl.d.ts +1 -0
  655. package/dist/lib/util/joinUrl.js +40 -0
  656. package/dist/lib/util/joinUrl.js.map +1 -0
  657. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  658. package/dist/lib/util/joinUrl.test.js +43 -0
  659. package/dist/lib/util/joinUrl.test.js.map +1 -0
  660. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  661. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  662. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  663. package/dist/lib/util/traverse.d.ts +3 -0
  664. package/dist/lib/util/traverse.js +22 -0
  665. package/dist/lib/util/traverse.js.map +1 -0
  666. package/dist/lib/util/types.d.ts +7 -0
  667. package/dist/lib/util/types.js +2 -0
  668. package/dist/lib/util/types.js.map +1 -0
  669. package/dist/lib/util/useExposedProps.d.ts +2 -0
  670. package/dist/lib/util/useExposedProps.js +9 -0
  671. package/dist/lib/util/useExposedProps.js.map +1 -0
  672. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  673. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  674. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  675. package/dist/lib/util/useLatest.d.ts +1 -0
  676. package/dist/lib/util/useLatest.js +15 -0
  677. package/dist/lib/util/useLatest.js.map +1 -0
  678. package/dist/lib/util/useOnScreen.d.ts +5 -0
  679. package/dist/lib/util/useOnScreen.js +19 -0
  680. package/dist/lib/util/useOnScreen.js.map +1 -0
  681. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  682. package/dist/lib/util/useScrollToAnchor.js +42 -37
  683. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  684. package/dist/lib/util/useScrollToTop.js +7 -5
  685. package/dist/lib/util/useScrollToTop.js.map +1 -1
  686. package/dist/vite/api/SchemaManager.d.ts +36 -0
  687. package/dist/vite/api/SchemaManager.js +120 -0
  688. package/dist/vite/api/SchemaManager.js.map +1 -0
  689. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  690. package/dist/vite/api/SchemaManager.test.js +106 -0
  691. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  692. package/dist/vite/api/schema-codegen.d.ts +12 -0
  693. package/dist/vite/api/schema-codegen.js +85 -0
  694. package/dist/vite/api/schema-codegen.js.map +1 -0
  695. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  696. package/dist/vite/api/schema-codegen.test.js +313 -0
  697. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  698. package/dist/vite/build.js +47 -13
  699. package/dist/vite/build.js.map +1 -1
  700. package/dist/vite/config.d.ts +7 -14
  701. package/dist/vite/config.js +133 -118
  702. package/dist/vite/config.js.map +1 -1
  703. package/dist/vite/config.test.js +11 -5
  704. package/dist/vite/config.test.js.map +1 -1
  705. package/dist/vite/create-pagefind-index.d.ts +4 -0
  706. package/dist/vite/create-pagefind-index.js +12 -0
  707. package/dist/vite/create-pagefind-index.js.map +1 -0
  708. package/dist/vite/css/collect.d.ts +2 -0
  709. package/dist/vite/css/collect.js +27 -0
  710. package/dist/vite/css/collect.js.map +1 -0
  711. package/dist/vite/css/plugin.d.ts +5 -0
  712. package/dist/vite/css/plugin.js +79 -0
  713. package/dist/vite/css/plugin.js.map +1 -0
  714. package/dist/vite/debug.d.ts +1 -0
  715. package/dist/vite/debug.js +10 -0
  716. package/dist/vite/debug.js.map +1 -0
  717. package/dist/vite/dev-server.d.ts +11 -3
  718. package/dist/vite/dev-server.js +76 -16
  719. package/dist/vite/dev-server.js.map +1 -1
  720. package/dist/vite/error-handler.d.ts +1 -1
  721. package/dist/vite/error-handler.js +1 -1
  722. package/dist/vite/error-handler.js.map +1 -1
  723. package/dist/vite/html.js +0 -2
  724. package/dist/vite/html.js.map +1 -1
  725. package/dist/vite/output.d.ts +113 -0
  726. package/dist/vite/output.js +60 -0
  727. package/dist/vite/output.js.map +1 -0
  728. package/dist/vite/plugin-api-keys.d.ts +2 -2
  729. package/dist/vite/plugin-api-keys.js +5 -5
  730. package/dist/vite/plugin-api-keys.js.map +1 -1
  731. package/dist/vite/plugin-api.d.ts +2 -2
  732. package/dist/vite/plugin-api.js +145 -35
  733. package/dist/vite/plugin-api.js.map +1 -1
  734. package/dist/vite/plugin-auth.d.ts +2 -2
  735. package/dist/vite/plugin-auth.js +7 -4
  736. package/dist/vite/plugin-auth.js.map +1 -1
  737. package/dist/vite/plugin-component.d.ts +2 -2
  738. package/dist/vite/plugin-component.js +22 -13
  739. package/dist/vite/plugin-component.js.map +1 -1
  740. package/dist/vite/plugin-config-reload.d.ts +4 -4
  741. package/dist/vite/plugin-config-reload.js +13 -8
  742. package/dist/vite/plugin-config-reload.js.map +1 -1
  743. package/dist/vite/plugin-config.d.ts +2 -3
  744. package/dist/vite/plugin-config.js +26 -3
  745. package/dist/vite/plugin-config.js.map +1 -1
  746. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  747. package/dist/vite/plugin-custom-pages.js +30 -0
  748. package/dist/vite/plugin-custom-pages.js.map +1 -0
  749. package/dist/vite/plugin-docs.d.ts +3 -3
  750. package/dist/vite/plugin-docs.js +57 -29
  751. package/dist/vite/plugin-docs.js.map +1 -1
  752. package/dist/vite/plugin-docs.test.js +15 -23
  753. package/dist/vite/plugin-docs.test.js.map +1 -1
  754. package/dist/vite/plugin-frontmatter.d.ts +3 -0
  755. package/dist/vite/plugin-frontmatter.js +34 -0
  756. package/dist/vite/plugin-frontmatter.js.map +1 -0
  757. package/dist/vite/plugin-mdx.d.ts +2 -8
  758. package/dist/vite/plugin-mdx.js +97 -7
  759. package/dist/vite/plugin-mdx.js.map +1 -1
  760. package/dist/vite/plugin-redirect.d.ts +2 -2
  761. package/dist/vite/plugin-redirect.js +3 -3
  762. package/dist/vite/plugin-redirect.js.map +1 -1
  763. package/dist/vite/plugin-search.d.ts +3 -0
  764. package/dist/vite/plugin-search.js +30 -0
  765. package/dist/vite/plugin-search.js.map +1 -0
  766. package/dist/vite/plugin-sidebar.d.ts +5 -3
  767. package/dist/vite/plugin-sidebar.js +38 -9
  768. package/dist/vite/plugin-sidebar.js.map +1 -1
  769. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  770. package/dist/vite/plugin-theme-css.js +117 -0
  771. package/dist/vite/plugin-theme-css.js.map +1 -0
  772. package/dist/vite/plugin.d.ts +2 -3
  773. package/dist/vite/plugin.js +13 -7
  774. package/dist/vite/plugin.js.map +1 -1
  775. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  776. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  777. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  778. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  779. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  780. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  781. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  782. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  783. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  784. package/dist/vite/prerender/prerender.d.ts +15 -0
  785. package/dist/vite/prerender/prerender.js +109 -0
  786. package/dist/vite/prerender/prerender.js.map +1 -0
  787. package/dist/vite/prerender/worker.d.ts +13 -0
  788. package/dist/vite/prerender/worker.js +59 -0
  789. package/dist/vite/prerender/worker.js.map +1 -0
  790. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  791. package/dist/vite/remarkStaticGeneration.js +125 -0
  792. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  793. package/dist/vite/reporter.d.ts +3 -0
  794. package/dist/vite/reporter.js +33 -0
  795. package/dist/vite/reporter.js.map +1 -0
  796. package/dist/vite/sitemap.d.ts +1 -1
  797. package/dist/vite/sitemap.js +2 -1
  798. package/dist/vite/sitemap.js.map +1 -1
  799. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  800. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  801. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  802. package/dist/zuplo/policy-types.d.ts +33 -0
  803. package/dist/zuplo/policy-types.js +8 -0
  804. package/dist/zuplo/policy-types.js.map +1 -0
  805. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  806. package/dist/zuplo/with-zuplo-processors.js +26 -0
  807. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  808. package/dist/zuplo/with-zuplo.d.ts +6 -0
  809. package/dist/zuplo/with-zuplo.js +10 -0
  810. package/dist/zuplo/with-zuplo.js.map +1 -0
  811. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  812. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  813. package/lib/Button-BBNrKpQd.js +49 -0
  814. package/lib/Button-BBNrKpQd.js.map +1 -0
  815. package/lib/Callout-D3Ja4OPX.js +230 -0
  816. package/lib/Callout-D3Ja4OPX.js.map +1 -0
  817. package/lib/Card-BtheiD7j.js +61 -0
  818. package/lib/Card-BtheiD7j.js.map +1 -0
  819. package/lib/CategoryHeading-D06WK_Wo.js +10 -0
  820. package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  821. package/lib/ClientOnly-E7hGysn1.js +11 -0
  822. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  823. package/lib/Dialog-ByYz4ABw.js +98 -0
  824. package/lib/Dialog-ByYz4ABw.js.map +1 -0
  825. package/lib/Drawer-CEwbkLDb.js +1133 -0
  826. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  827. package/lib/Markdown-mFpg_n9p.js +17125 -0
  828. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  829. package/lib/MdxPage-Cm7atiW3.js +85 -0
  830. package/lib/MdxPage-Cm7atiW3.js.map +1 -0
  831. package/lib/OasProvider-DBJ3ZUTp.js +34 -0
  832. package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
  833. package/lib/OperationList-zUAJl5qO.js +5125 -0
  834. package/lib/OperationList-zUAJl5qO.js.map +1 -0
  835. package/lib/Pagination-DLPL5z77.js +48 -0
  836. package/lib/Pagination-DLPL5z77.js.map +1 -0
  837. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  838. package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
  839. package/lib/SchemaList-YsfrEmpL.js +148 -0
  840. package/lib/SchemaList-YsfrEmpL.js.map +1 -0
  841. package/lib/SchemaView-C3JbhWHn.js +367 -0
  842. package/lib/SchemaView-C3JbhWHn.js.map +1 -0
  843. package/lib/Select-CT64Ou40.js +223 -0
  844. package/lib/Select-CT64Ou40.js.map +1 -0
  845. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  846. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  847. package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
  848. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  849. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  850. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  851. package/lib/Toc-D_tV8_Ri.js +92 -0
  852. package/lib/Toc-D_tV8_Ri.js.map +1 -0
  853. package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
  854. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  855. package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
  856. package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
  857. package/lib/circular-ByJI6Mci.js +15877 -0
  858. package/lib/circular-ByJI6Mci.js.map +1 -0
  859. package/lib/cn-qaFjX9_3.js +2279 -0
  860. package/lib/cn-qaFjX9_3.js.map +1 -0
  861. package/lib/context-Lrf2Y9bR.js +22 -0
  862. package/lib/context-Lrf2Y9bR.js.map +1 -0
  863. package/lib/createServer-IW7v5hWm.js +12318 -0
  864. package/lib/createServer-IW7v5hWm.js.map +1 -0
  865. package/lib/hook-CldJlP5c.js +1478 -0
  866. package/lib/hook-CldJlP5c.js.map +1 -0
  867. package/lib/index-BBgdF7h4.js +2184 -0
  868. package/lib/index-BBgdF7h4.js.map +1 -0
  869. package/lib/index-Bn6Lc9tq.js +9 -0
  870. package/lib/index-Bn6Lc9tq.js.map +1 -0
  871. package/lib/index-CPNSgwSb.js +36 -0
  872. package/lib/index-CPNSgwSb.js.map +1 -0
  873. package/lib/index-CuBIgTKC.js +316 -0
  874. package/lib/index-CuBIgTKC.js.map +1 -0
  875. package/lib/{index-CLd8ycZz.js → index-DcHeSvkE.js} +1070 -1010
  876. package/lib/index-DcHeSvkE.js.map +1 -0
  877. package/lib/index-DnQftvP4.js +5031 -0
  878. package/lib/index-DnQftvP4.js.map +1 -0
  879. package/lib/index-DwT-v3zK.js +86 -0
  880. package/lib/index-DwT-v3zK.js.map +1 -0
  881. package/lib/index-LNp6rxyU.js +2094 -0
  882. package/lib/index-LNp6rxyU.js.map +1 -0
  883. package/lib/index.esm-D2ZUREQN.js +1216 -0
  884. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  885. package/lib/invariant-Caa8-XvF.js +26 -0
  886. package/lib/invariant-Caa8-XvF.js.map +1 -0
  887. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  888. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  889. package/lib/mutation-DBQh7AOZ.js +211 -0
  890. package/lib/mutation-DBQh7AOZ.js.map +1 -0
  891. package/lib/objectEntries-yMIkr2mI.js +5 -0
  892. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  893. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  894. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  895. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  896. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  897. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  898. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  899. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  900. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  901. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  902. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  903. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  904. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  905. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  906. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  907. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  908. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  909. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  910. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  911. package/lib/processors/removeExtensions.js +11 -0
  912. package/lib/processors/removeExtensions.js.map +1 -0
  913. package/lib/processors/removeParameters.js +48 -0
  914. package/lib/processors/removeParameters.js.map +1 -0
  915. package/lib/processors/removePaths.js +28 -0
  916. package/lib/processors/removePaths.js.map +1 -0
  917. package/lib/processors/traverse.js +15 -0
  918. package/lib/processors/traverse.js.map +1 -0
  919. package/lib/ui/Accordion.js +47 -0
  920. package/lib/ui/Accordion.js.map +1 -0
  921. package/lib/ui/ActionButton.js +25 -0
  922. package/lib/ui/ActionButton.js.map +1 -0
  923. package/lib/ui/Alert.js +51 -0
  924. package/lib/ui/Alert.js.map +1 -0
  925. package/lib/ui/AlertDialog.js +114 -0
  926. package/lib/ui/AlertDialog.js.map +1 -0
  927. package/lib/ui/AspectRatio.js +6 -0
  928. package/lib/ui/AspectRatio.js.map +1 -0
  929. package/lib/ui/Badge.js +28 -0
  930. package/lib/ui/Badge.js.map +1 -0
  931. package/lib/ui/Breadcrumb.js +94 -0
  932. package/lib/ui/Breadcrumb.js.map +1 -0
  933. package/lib/ui/Button.js +50 -0
  934. package/lib/ui/Button.js.map +1 -0
  935. package/lib/ui/Callout.js +96 -0
  936. package/lib/ui/Callout.js.map +1 -0
  937. package/lib/ui/Card.js +62 -0
  938. package/lib/ui/Card.js.map +1 -0
  939. package/lib/ui/Carousel.js +1416 -0
  940. package/lib/ui/Carousel.js.map +1 -0
  941. package/lib/ui/Checkbox.js +29 -0
  942. package/lib/ui/Checkbox.js.map +1 -0
  943. package/lib/ui/Collapsible.js +8 -0
  944. package/lib/ui/Collapsible.js.map +1 -0
  945. package/lib/ui/Command.js +156 -0
  946. package/lib/ui/Command.js.map +1 -0
  947. package/lib/ui/Dialog.js +101 -0
  948. package/lib/ui/Dialog.js.map +1 -0
  949. package/lib/ui/Drawer.js +17 -0
  950. package/lib/ui/Drawer.js.map +1 -0
  951. package/lib/ui/DropdownMenu.js +145 -0
  952. package/lib/ui/DropdownMenu.js.map +1 -0
  953. package/lib/ui/Form.js +95 -0
  954. package/lib/ui/Form.js.map +1 -0
  955. package/lib/ui/HoverCard.js +24 -0
  956. package/lib/ui/HoverCard.js.map +1 -0
  957. package/lib/ui/Input.js +22 -0
  958. package/lib/ui/Input.js.map +1 -0
  959. package/lib/ui/Label.js +20 -0
  960. package/lib/ui/Label.js.map +1 -0
  961. package/lib/ui/Pagination.js +106 -0
  962. package/lib/ui/Pagination.js.map +1 -0
  963. package/lib/ui/Popover.js +24 -0
  964. package/lib/ui/Popover.js.map +1 -0
  965. package/lib/ui/Progress.js +27 -0
  966. package/lib/ui/Progress.js.map +1 -0
  967. package/lib/ui/RadioGroup.js +32 -0
  968. package/lib/ui/RadioGroup.js.map +1 -0
  969. package/lib/ui/ScrollArea.js +39 -0
  970. package/lib/ui/ScrollArea.js.map +1 -0
  971. package/lib/ui/Select.js +122 -0
  972. package/lib/ui/Select.js.map +1 -0
  973. package/lib/ui/Skeleton.js +18 -0
  974. package/lib/ui/Skeleton.js.map +1 -0
  975. package/lib/ui/Slider.js +24 -0
  976. package/lib/ui/Slider.js.map +1 -0
  977. package/lib/ui/Stepper.js +6 -0
  978. package/lib/ui/Stepper.js.map +1 -0
  979. package/lib/ui/Switch.js +28 -0
  980. package/lib/ui/Switch.js.map +1 -0
  981. package/lib/ui/SyntaxHighlight.js +11 -0
  982. package/lib/ui/SyntaxHighlight.js.map +1 -0
  983. package/lib/ui/Tabs.js +47 -0
  984. package/lib/ui/Tabs.js.map +1 -0
  985. package/lib/ui/Textarea.js +21 -0
  986. package/lib/ui/Textarea.js.map +1 -0
  987. package/lib/ui/Toggle.js +38 -0
  988. package/lib/ui/Toggle.js.map +1 -0
  989. package/lib/ui/ToggleGroup.js +42 -0
  990. package/lib/ui/ToggleGroup.js.map +1 -0
  991. package/lib/ui/Tooltip.js +24 -0
  992. package/lib/ui/Tooltip.js.map +1 -0
  993. package/lib/ui/util.js +6 -0
  994. package/lib/ui/util.js.map +1 -0
  995. package/lib/useExposedProps-DbIZXspi.js +9 -0
  996. package/lib/useExposedProps-DbIZXspi.js.map +1 -0
  997. package/lib/useLatest-hmRS46UF.js +11 -0
  998. package/lib/useLatest-hmRS46UF.js.map +1 -0
  999. package/lib/zudoku.auth-auth0.js +30 -25
  1000. package/lib/zudoku.auth-auth0.js.map +1 -1
  1001. package/lib/zudoku.auth-clerk.js +101 -55
  1002. package/lib/zudoku.auth-clerk.js.map +1 -1
  1003. package/lib/zudoku.auth-openid.js +649 -672
  1004. package/lib/zudoku.auth-openid.js.map +1 -1
  1005. package/lib/zudoku.components.js +33 -3381
  1006. package/lib/zudoku.components.js.map +1 -1
  1007. package/lib/zudoku.hooks.js +19 -0
  1008. package/lib/zudoku.hooks.js.map +1 -0
  1009. package/lib/zudoku.icons.js +10 -0
  1010. package/lib/zudoku.icons.js.map +1 -1
  1011. package/lib/zudoku.plugin-api-catalog.js +117 -0
  1012. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1013. package/lib/zudoku.plugin-api-keys.js +104 -108
  1014. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1015. package/lib/zudoku.plugin-custom-pages.js +22 -0
  1016. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1017. package/lib/zudoku.plugin-markdown.js +73 -27
  1018. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1019. package/lib/zudoku.plugin-openapi.js +7 -11
  1020. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1021. package/lib/zudoku.plugin-redirect.js +2 -2
  1022. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1023. package/lib/zudoku.plugin-search-inkeep.js +53 -28
  1024. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1025. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  1026. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1027. package/lib/zudoku.plugins.js +14 -0
  1028. package/lib/zudoku.plugins.js.map +1 -0
  1029. package/package.json +181 -102
  1030. package/src/app/ZuploBuildConfig.ts +33 -0
  1031. package/src/app/demo-cdn.html +31 -31
  1032. package/src/app/demo.tsx +1 -5
  1033. package/src/app/entry.client.tsx +30 -3
  1034. package/src/app/entry.server.tsx +81 -60
  1035. package/src/app/env.ts +35 -0
  1036. package/src/app/main.css +105 -41
  1037. package/src/app/main.tsx +70 -44
  1038. package/src/app/sentry.ts +24 -0
  1039. package/src/app/standalone.tsx +2 -6
  1040. package/src/app/tailwind.ts +83 -48
  1041. package/src/lib/MissingIcon.tsx +22 -0
  1042. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  1043. package/src/lib/authentication/authentication.ts +5 -3
  1044. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  1045. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1046. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1047. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1048. package/src/lib/authentication/hook.ts +13 -4
  1049. package/src/lib/authentication/providers/auth0.tsx +20 -16
  1050. package/src/lib/authentication/providers/clerk.tsx +70 -15
  1051. package/src/lib/authentication/providers/openid.tsx +86 -58
  1052. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1053. package/src/lib/authentication/state.ts +56 -8
  1054. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  1055. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1056. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1057. package/src/lib/components/AnchorLink.tsx +13 -8
  1058. package/src/lib/components/Autocomplete.tsx +113 -0
  1059. package/src/lib/components/Banner.tsx +13 -2
  1060. package/src/lib/components/Bootstrap.tsx +43 -16
  1061. package/src/lib/components/BuildCheck.tsx +75 -0
  1062. package/src/lib/components/ClientOnly.tsx +6 -3
  1063. package/src/lib/components/DeveloperHint.tsx +6 -1
  1064. package/src/lib/components/ErrorPage.tsx +0 -2
  1065. package/src/lib/components/Footer.tsx +139 -0
  1066. package/src/lib/components/Header.tsx +104 -51
  1067. package/src/lib/components/Heading.tsx +13 -13
  1068. package/src/lib/components/InlineCode.tsx +15 -8
  1069. package/src/lib/components/Layout.tsx +34 -54
  1070. package/src/lib/components/Main.tsx +50 -0
  1071. package/src/lib/components/Markdown.tsx +15 -16
  1072. package/src/lib/components/MobileTopNavigation.tsx +42 -28
  1073. package/src/lib/components/NotFoundPage.tsx +1 -1
  1074. package/src/lib/components/Pagination.tsx +50 -0
  1075. package/src/lib/components/PathRenderer.tsx +61 -0
  1076. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1077. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1078. package/src/lib/components/Search.tsx +18 -7
  1079. package/src/lib/components/SlotletProvider.tsx +29 -4
  1080. package/src/lib/components/StatusPage.tsx +91 -0
  1081. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1082. package/src/lib/components/TopNavigation.tsx +107 -25
  1083. package/src/lib/components/Zudoku.tsx +119 -0
  1084. package/src/lib/components/cache.ts +23 -0
  1085. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1086. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1087. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1088. package/src/lib/components/context/ZudokuContext.ts +54 -29
  1089. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  1090. package/src/lib/components/index.ts +33 -6
  1091. package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
  1092. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  1093. package/src/lib/components/navigation/SidebarBadge.tsx +17 -2
  1094. package/src/lib/components/navigation/SidebarCategory.tsx +61 -52
  1095. package/src/lib/components/navigation/SidebarItem.tsx +38 -50
  1096. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1097. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  1098. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1099. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1100. package/src/lib/components/navigation/utils.ts +12 -17
  1101. package/src/lib/core/RouteGuard.tsx +96 -0
  1102. package/src/lib/core/ZudokuContext.ts +180 -0
  1103. package/src/lib/core/plugins.ts +46 -22
  1104. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1105. package/src/lib/errors/RouterError.tsx +1 -1
  1106. package/src/lib/hooks/index.ts +5 -0
  1107. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1108. package/src/lib/hooks/useEvent.ts +41 -0
  1109. package/src/lib/icons.ts +1 -0
  1110. package/src/lib/oas/graphql/circular.ts +50 -0
  1111. package/src/lib/oas/graphql/index.ts +320 -114
  1112. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1113. package/src/lib/oas/parser/index.ts +10 -30
  1114. package/src/lib/oas/parser/upgrade/index.ts +25 -30
  1115. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1116. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1117. package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
  1118. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1119. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  1120. package/src/lib/plugins/api-keys/index.tsx +16 -10
  1121. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  1122. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  1123. package/src/lib/plugins/markdown/MdxPage.tsx +54 -50
  1124. package/src/lib/plugins/markdown/index.tsx +53 -13
  1125. package/src/lib/plugins/markdown/resolver.ts +57 -0
  1126. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  1127. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1128. package/src/lib/plugins/openapi/Endpoint.tsx +83 -22
  1129. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1130. package/src/lib/plugins/openapi/OperationList.tsx +240 -69
  1131. package/src/lib/plugins/openapi/OperationListItem.tsx +130 -94
  1132. package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
  1133. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1134. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1135. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +24 -2
  1136. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1137. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  1138. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  1139. package/src/lib/plugins/openapi/Sidecar.tsx +153 -90
  1140. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1141. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1142. package/src/lib/plugins/openapi/SimpleSelect.tsx +11 -3
  1143. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1144. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1145. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1146. package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
  1147. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1148. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1149. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1150. package/src/lib/plugins/openapi/context.tsx +2 -2
  1151. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1152. package/src/lib/plugins/openapi/graphql/gql.ts +46 -30
  1153. package/src/lib/plugins/openapi/graphql/graphql.ts +410 -594
  1154. package/src/lib/plugins/openapi/index.tsx +110 -137
  1155. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  1156. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1157. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1158. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1159. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  1160. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1161. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1162. package/src/lib/plugins/openapi/playground/Playground.tsx +395 -220
  1163. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1164. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  1165. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1166. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1167. package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
  1168. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1169. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1170. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1171. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1172. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1173. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1174. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1175. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1176. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1177. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1178. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1179. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1180. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1181. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1182. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1183. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1184. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  1185. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
  1186. package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
  1187. package/src/lib/plugins/openapi/schema/utils.ts +16 -1
  1188. package/src/lib/plugins/openapi/state.ts +36 -0
  1189. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1190. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +88 -43
  1191. package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -0
  1192. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1193. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1194. package/src/lib/plugins/redirect/index.tsx +6 -10
  1195. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1196. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1197. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1198. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1199. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1200. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1201. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1202. package/src/lib/ui/Accordion.tsx +56 -0
  1203. package/src/lib/ui/ActionButton.tsx +28 -0
  1204. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  1205. package/src/lib/ui/AlertDialog.tsx +139 -0
  1206. package/src/lib/ui/AspectRatio.tsx +5 -0
  1207. package/src/lib/ui/Badge.tsx +37 -0
  1208. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1209. package/src/lib/ui/Button.tsx +5 -3
  1210. package/src/lib/ui/Callout.tsx +36 -16
  1211. package/src/lib/ui/Card.tsx +1 -1
  1212. package/src/lib/ui/Carousel.tsx +260 -0
  1213. package/src/lib/ui/Checkbox.tsx +29 -0
  1214. package/src/lib/ui/Collapsible.tsx +9 -0
  1215. package/src/lib/ui/Command.tsx +193 -0
  1216. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  1217. package/src/lib/ui/Drawer.tsx +38 -36
  1218. package/src/lib/ui/Form.tsx +177 -0
  1219. package/src/lib/ui/HoverCard.tsx +27 -0
  1220. package/src/lib/ui/Input.tsx +1 -2
  1221. package/src/lib/ui/Label.tsx +24 -0
  1222. package/src/lib/ui/Pagination.tsx +117 -0
  1223. package/src/lib/ui/Popover.tsx +29 -0
  1224. package/src/lib/ui/Progress.tsx +26 -0
  1225. package/src/lib/ui/RadioGroup.tsx +42 -0
  1226. package/src/lib/ui/ScrollArea.tsx +46 -0
  1227. package/src/lib/{components → ui}/Select.tsx +2 -2
  1228. package/src/lib/ui/Skeleton.tsx +15 -0
  1229. package/src/lib/ui/Slider.tsx +26 -0
  1230. package/src/lib/ui/Stepper.tsx +8 -0
  1231. package/src/lib/ui/Switch.tsx +27 -0
  1232. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1233. package/src/lib/ui/Textarea.tsx +23 -0
  1234. package/src/lib/ui/Toggle.tsx +43 -0
  1235. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1236. package/src/lib/ui/Tooltip.tsx +28 -0
  1237. package/src/lib/ui/util.tsx +3 -0
  1238. package/src/lib/util/MdxComponents.tsx +12 -12
  1239. package/src/lib/util/createVariantComponent.tsx +2 -2
  1240. package/src/lib/util/detectOS.ts +9 -0
  1241. package/src/lib/util/ensureArray.ts +3 -0
  1242. package/src/lib/util/invariant.ts +15 -3
  1243. package/src/lib/util/joinPath.tsx +3 -0
  1244. package/src/lib/util/joinUrl.test.ts +62 -0
  1245. package/src/lib/util/joinUrl.ts +57 -0
  1246. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1247. package/src/lib/util/traverse.ts +31 -0
  1248. package/src/lib/util/types.ts +7 -0
  1249. package/src/lib/util/useExposedProps.tsx +16 -0
  1250. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1251. package/src/lib/util/useLatest.ts +18 -0
  1252. package/src/lib/util/useOnScreen.ts +34 -0
  1253. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1254. package/src/lib/util/useScrollToTop.ts +9 -4
  1255. package/client.d.ts +0 -1
  1256. package/dist/internal.d.ts +0 -1
  1257. package/dist/internal.js +0 -2
  1258. package/dist/internal.js.map +0 -1
  1259. package/dist/lib/components/DevPortal.js.map +0 -1
  1260. package/dist/lib/components/Dialog.js.map +0 -1
  1261. package/dist/lib/components/Select.js.map +0 -1
  1262. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1263. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1264. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1265. package/dist/lib/components/context/PluginSystem.js +0 -2
  1266. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1267. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1268. package/dist/lib/components/context/ThemeContext.js +0 -7
  1269. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1270. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1271. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1272. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1273. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1274. package/dist/lib/core/DevPortalContext.js +0 -49
  1275. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1276. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1277. package/dist/lib/plugins/custom-page/index.js +0 -12
  1278. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1279. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1280. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1281. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1282. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1283. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1284. package/dist/lib/plugins/openapi/Route.js +0 -8
  1285. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1286. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1287. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1288. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1289. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1290. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1291. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1292. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1293. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1294. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1295. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1296. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1297. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1298. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1299. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1300. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1301. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1302. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1303. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1304. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1305. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1306. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1307. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1308. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1309. package/dist/lib/plugins/openapi-worker.js +0 -2
  1310. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1311. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1312. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1313. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1314. package/dist/lib/themeToggle.d.ts +0 -1
  1315. package/dist/lib/themeToggle.js +0 -7
  1316. package/dist/lib/themeToggle.js.map +0 -1
  1317. package/dist/lib/ui/Note.d.ts +0 -8
  1318. package/dist/lib/ui/Note.js +0 -23
  1319. package/dist/lib/ui/Note.js.map +0 -1
  1320. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1321. package/dist/lib/util/createWaitForNotify.js +0 -15
  1322. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1323. package/dist/lib/util/slugify.d.ts +0 -2
  1324. package/dist/lib/util/slugify.js +0 -3
  1325. package/dist/lib/util/slugify.js.map +0 -1
  1326. package/dist/vite/plugin-custom-css.js +0 -55
  1327. package/dist/vite/plugin-custom-css.js.map +0 -1
  1328. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1329. package/dist/vite/plugin-html-transform.js +0 -15
  1330. package/dist/vite/plugin-html-transform.js.map +0 -1
  1331. package/dist/vite/plugin-icons.d.ts +0 -3
  1332. package/dist/vite/plugin-icons.js +0 -47
  1333. package/dist/vite/plugin-icons.js.map +0 -1
  1334. package/dist/vite/prerender.d.ts +0 -17
  1335. package/dist/vite/prerender.js +0 -87
  1336. package/dist/vite/prerender.js.map +0 -1
  1337. package/lib/AuthenticationPlugin-gtf8JS3V.js +0 -55
  1338. package/lib/AuthenticationPlugin-gtf8JS3V.js.map +0 -1
  1339. package/lib/CategoryHeading-XnFqN2lJ.js +0 -10
  1340. package/lib/DeveloperHint-FBb2uXJe.js +0 -16
  1341. package/lib/DeveloperHint-FBb2uXJe.js.map +0 -1
  1342. package/lib/ErrorPage-knunPbKI.js +0 -18
  1343. package/lib/ErrorPage-knunPbKI.js.map +0 -1
  1344. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1345. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1346. package/lib/Input-B1kkVL1R.js +0 -2198
  1347. package/lib/Input-B1kkVL1R.js.map +0 -1
  1348. package/lib/Markdown-B4aR03g6.js +0 -20279
  1349. package/lib/Markdown-B4aR03g6.js.map +0 -1
  1350. package/lib/MdxPage-BcftTg5g.js +0 -172
  1351. package/lib/MdxPage-BcftTg5g.js.map +0 -1
  1352. package/lib/OperationList-CtTj2A8I.js +0 -572
  1353. package/lib/OperationList-CtTj2A8I.js.map +0 -1
  1354. package/lib/Route-CQh7DxAK.js +0 -14
  1355. package/lib/Route-CQh7DxAK.js.map +0 -1
  1356. package/lib/SlotletProvider-DJMaOUDs.js +0 -238
  1357. package/lib/SlotletProvider-DJMaOUDs.js.map +0 -1
  1358. package/lib/ZudokuContext-em1gHkIY.js +0 -1084
  1359. package/lib/ZudokuContext-em1gHkIY.js.map +0 -1
  1360. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1361. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1362. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1363. package/lib/assets/worker-TYRbYl6N.js +0 -15839
  1364. package/lib/assets/worker-TYRbYl6N.js.map +0 -1
  1365. package/lib/index-B6CA76hx.js +0 -124
  1366. package/lib/index-B6CA76hx.js.map +0 -1
  1367. package/lib/index-BG0g4WW0.js +0 -1771
  1368. package/lib/index-BG0g4WW0.js.map +0 -1
  1369. package/lib/index-BoXX7LeD.js +0 -2814
  1370. package/lib/index-BoXX7LeD.js.map +0 -1
  1371. package/lib/index-CLd8ycZz.js.map +0 -1
  1372. package/lib/index-DiaK-Aw5.js +0 -464
  1373. package/lib/index-DiaK-Aw5.js.map +0 -1
  1374. package/lib/index-DmeT5AaO.js +0 -5693
  1375. package/lib/index-DmeT5AaO.js.map +0 -1
  1376. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1377. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1378. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1379. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1380. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1381. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1382. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1383. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1384. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1385. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1386. package/lib/router-D2p7Olpn.js +0 -2971
  1387. package/lib/router-D2p7Olpn.js.map +0 -1
  1388. package/lib/slugify-DbLhpSPt.js +0 -28
  1389. package/lib/slugify-DbLhpSPt.js.map +0 -1
  1390. package/lib/state-BUM4jc0J.js +0 -288
  1391. package/lib/state-BUM4jc0J.js.map +0 -1
  1392. package/lib/urql-YhcsXYy8.js +0 -1591
  1393. package/lib/urql-YhcsXYy8.js.map +0 -1
  1394. package/lib/utils-DtEHoAvg.js +0 -752
  1395. package/lib/utils-DtEHoAvg.js.map +0 -1
  1396. package/lib/zudoku.openapi-worker.js +0 -16053
  1397. package/lib/zudoku.openapi-worker.js.map +0 -1
  1398. package/lib/zudoku.plugin-custom-page.js +0 -13
  1399. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1400. package/src/lib/components/DevPortal.tsx +0 -111
  1401. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1402. package/src/lib/components/context/PluginSystem.ts +0 -0
  1403. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1404. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1405. package/src/lib/core/DevPortalContext.ts +0 -135
  1406. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1407. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1408. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1409. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1410. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1411. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1412. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1413. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1414. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -77
  1415. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1416. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1417. package/src/lib/plugins/openapi-worker.ts +0 -1
  1418. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1419. package/src/lib/themeToggle.ts +0 -7
  1420. package/src/lib/util/createWaitForNotify.ts +0 -18
  1421. package/src/lib/util/slugify.ts +0 -3
  1422. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1423. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1424. /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
  1425. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1426. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,102 +1,102 @@
1
- const ut = Symbol.for("yaml.alias"), rt = Symbol.for("yaml.document"), V = Symbol.for("yaml.map"), Kt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), fe = Symbol.for("yaml.seq"), K = Symbol.for("yaml.node.type"), Z = (s) => !!s && typeof s == "object" && s[K] === ut, ue = (s) => !!s && typeof s == "object" && s[K] === rt, he = (s) => !!s && typeof s == "object" && s[K] === V, I = (s) => !!s && typeof s == "object" && s[K] === Kt, E = (s) => !!s && typeof s == "object" && s[K] === R, de = (s) => !!s && typeof s == "object" && s[K] === fe;
1
+ const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === G, T = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === R, pe = (s) => !!s && typeof s == "object" && s[j] === he;
2
2
  function L(s) {
3
3
  if (s && typeof s == "object")
4
- switch (s[K]) {
5
- case V:
6
- case fe:
4
+ switch (s[j]) {
5
+ case G:
6
+ case he:
7
7
  return !0;
8
8
  }
9
9
  return !1;
10
10
  }
11
11
  function $(s) {
12
12
  if (s && typeof s == "object")
13
- switch (s[K]) {
14
- case ut:
15
- case V:
13
+ switch (s[j]) {
14
+ case dt:
15
+ case G:
16
16
  case R:
17
- case fe:
17
+ case he:
18
18
  return !0;
19
19
  }
20
20
  return !1;
21
21
  }
22
- const $s = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Dt = Symbol("skip children"), U = Symbol("remove node");
23
- function J(s, e) {
24
- const t = qt(e);
25
- ue(s) ? se(null, s.contents, t, Object.freeze([s])) === U && (s.contents = null) : se(null, s, t, Object.freeze([]));
22
+ const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
23
+ function Q(s, e) {
24
+ const t = Rt(e);
25
+ ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : ie(null, s, t, Object.freeze([]));
26
26
  }
27
- J.BREAK = M;
28
- J.SKIP = Dt;
29
- J.REMOVE = U;
30
- function se(s, e, t, n) {
27
+ Q.BREAK = M;
28
+ Q.SKIP = Ft;
29
+ Q.REMOVE = F;
30
+ function ie(s, e, t, n) {
31
31
  const i = Ut(s, e, t, n);
32
- if ($(i) || I(i))
33
- return Ft(s, n, i), se(s, i, t, n);
32
+ if ($(i) || T(i))
33
+ return Vt(s, n, i), ie(s, i, t, n);
34
34
  if (typeof i != "symbol") {
35
35
  if (L(e)) {
36
36
  n = Object.freeze(n.concat(e));
37
37
  for (let r = 0; r < e.items.length; ++r) {
38
- const o = se(r, e.items[r], t, n);
38
+ const o = ie(r, e.items[r], t, n);
39
39
  if (typeof o == "number")
40
40
  r = o - 1;
41
41
  else {
42
42
  if (o === M)
43
43
  return M;
44
- o === U && (e.items.splice(r, 1), r -= 1);
44
+ o === F && (e.items.splice(r, 1), r -= 1);
45
45
  }
46
46
  }
47
- } else if (I(e)) {
47
+ } else if (T(e)) {
48
48
  n = Object.freeze(n.concat(e));
49
- const r = se("key", e.key, t, n);
49
+ const r = ie("key", e.key, t, n);
50
50
  if (r === M)
51
51
  return M;
52
- r === U && (e.key = null);
53
- const o = se("value", e.value, t, n);
52
+ r === F && (e.key = null);
53
+ const o = ie("value", e.value, t, n);
54
54
  if (o === M)
55
55
  return M;
56
- o === U && (e.value = null);
56
+ o === F && (e.value = null);
57
57
  }
58
58
  }
59
59
  return i;
60
60
  }
61
- async function De(s, e) {
62
- const t = qt(e);
63
- ue(s) ? await ne(null, s.contents, t, Object.freeze([s])) === U && (s.contents = null) : await ne(null, s, t, Object.freeze([]));
61
+ async function Fe(s, e) {
62
+ const t = Rt(e);
63
+ ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : await re(null, s, t, Object.freeze([]));
64
64
  }
65
- De.BREAK = M;
66
- De.SKIP = Dt;
67
- De.REMOVE = U;
68
- async function ne(s, e, t, n) {
65
+ Fe.BREAK = M;
66
+ Fe.SKIP = Ft;
67
+ Fe.REMOVE = F;
68
+ async function re(s, e, t, n) {
69
69
  const i = await Ut(s, e, t, n);
70
- if ($(i) || I(i))
71
- return Ft(s, n, i), ne(s, i, t, n);
70
+ if ($(i) || T(i))
71
+ return Vt(s, n, i), re(s, i, t, n);
72
72
  if (typeof i != "symbol") {
73
73
  if (L(e)) {
74
74
  n = Object.freeze(n.concat(e));
75
75
  for (let r = 0; r < e.items.length; ++r) {
76
- const o = await ne(r, e.items[r], t, n);
76
+ const o = await re(r, e.items[r], t, n);
77
77
  if (typeof o == "number")
78
78
  r = o - 1;
79
79
  else {
80
80
  if (o === M)
81
81
  return M;
82
- o === U && (e.items.splice(r, 1), r -= 1);
82
+ o === F && (e.items.splice(r, 1), r -= 1);
83
83
  }
84
84
  }
85
- } else if (I(e)) {
85
+ } else if (T(e)) {
86
86
  n = Object.freeze(n.concat(e));
87
- const r = await ne("key", e.key, t, n);
87
+ const r = await re("key", e.key, t, n);
88
88
  if (r === M)
89
89
  return M;
90
- r === U && (e.key = null);
91
- const o = await ne("value", e.value, t, n);
90
+ r === F && (e.key = null);
91
+ const o = await re("value", e.value, t, n);
92
92
  if (o === M)
93
93
  return M;
94
- o === U && (e.value = null);
94
+ o === F && (e.value = null);
95
95
  }
96
96
  }
97
97
  return i;
98
98
  }
99
- function qt(s) {
99
+ function Rt(s) {
100
100
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
101
101
  Alias: s.Node,
102
102
  Map: s.Node,
@@ -115,38 +115,38 @@ function Ut(s, e, t, n) {
115
115
  var i, r, o, l, a;
116
116
  if (typeof t == "function")
117
117
  return t(s, e, n);
118
- if (he(e))
119
- return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
120
118
  if (de(e))
119
+ return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
120
+ if (pe(e))
121
121
  return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
122
- if (I(e))
122
+ if (T(e))
123
123
  return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
124
124
  if (E(e))
125
125
  return (l = t.Scalar) == null ? void 0 : l.call(t, s, e, n);
126
- if (Z(e))
126
+ if (x(e))
127
127
  return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
128
128
  }
129
- function Ft(s, e, t) {
129
+ function Vt(s, e, t) {
130
130
  const n = e[e.length - 1];
131
131
  if (L(n))
132
132
  n.items[s] = t;
133
- else if (I(n))
133
+ else if (T(n))
134
134
  s === "key" ? n.key = t : n.value = t;
135
- else if (ue(n))
135
+ else if (ee(n))
136
136
  n.contents = t;
137
137
  else {
138
- const i = Z(n) ? "alias" : "scalar";
138
+ const i = x(n) ? "alias" : "scalar";
139
139
  throw new Error(`Cannot replace node with ${i} parent`);
140
140
  }
141
141
  }
142
- const _s = {
142
+ const Bs = {
143
143
  "!": "%21",
144
144
  ",": "%2C",
145
145
  "[": "%5B",
146
146
  "]": "%5D",
147
147
  "{": "%7B",
148
148
  "}": "%7D"
149
- }, Cs = (s) => s.replace(/[!,[\]{}]/g, (e) => _s[e]);
149
+ }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => Bs[e]);
150
150
  class B {
151
151
  constructor(e, t) {
152
152
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
@@ -236,7 +236,7 @@ class B {
236
236
  tagString(e) {
237
237
  for (const [t, n] of Object.entries(this.tags))
238
238
  if (e.startsWith(n))
239
- return t + Cs(e.substring(n.length));
239
+ return t + Ms(e.substring(n.length));
240
240
  return e[0] === "!" ? e : `!<${e}>`;
241
241
  }
242
242
  toString(e) {
@@ -244,7 +244,7 @@ class B {
244
244
  let i;
245
245
  if (e && n.length > 0 && $(e.contents)) {
246
246
  const r = {};
247
- J(e.contents, (o, l) => {
247
+ Q(e.contents, (o, l) => {
248
248
  $(l) && l.tag && (r[l.tag] = !0);
249
249
  }), i = Object.keys(r);
250
250
  } else
@@ -257,35 +257,35 @@ class B {
257
257
  }
258
258
  B.defaultYaml = { explicit: !1, version: "1.2" };
259
259
  B.defaultTags = { "!!": "tag:yaml.org,2002:" };
260
- function Rt(s) {
260
+ function Jt(s) {
261
261
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
262
262
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
263
263
  throw new Error(t);
264
264
  }
265
265
  return !0;
266
266
  }
267
- function Vt(s) {
267
+ function Yt(s) {
268
268
  const e = /* @__PURE__ */ new Set();
269
- return J(s, {
269
+ return Q(s, {
270
270
  Value(t, n) {
271
271
  n.anchor && e.add(n.anchor);
272
272
  }
273
273
  }), e;
274
274
  }
275
- function Jt(s, e) {
275
+ function Gt(s, e) {
276
276
  for (let t = 1; ; ++t) {
277
277
  const n = `${s}${t}`;
278
278
  if (!e.has(n))
279
279
  return n;
280
280
  }
281
281
  }
282
- function vs(s, e) {
282
+ function Ks(s, e) {
283
283
  const t = [], n = /* @__PURE__ */ new Map();
284
284
  let i = null;
285
285
  return {
286
286
  onAnchor: (r) => {
287
- t.push(r), i || (i = Vt(s));
288
- const o = Jt(e, i);
287
+ t.push(r), i || (i = Yt(s));
288
+ const o = Gt(e, i);
289
289
  return i.add(o), o;
290
290
  },
291
291
  /**
@@ -307,35 +307,35 @@ function vs(s, e) {
307
307
  sourceObjects: n
308
308
  };
309
309
  }
310
- function ie(s, e, t, n) {
310
+ function oe(s, e, t, n) {
311
311
  if (n && typeof n == "object")
312
312
  if (Array.isArray(n))
313
313
  for (let i = 0, r = n.length; i < r; ++i) {
314
- const o = n[i], l = ie(s, n, String(i), o);
314
+ const o = n[i], l = oe(s, n, String(i), o);
315
315
  l === void 0 ? delete n[i] : l !== o && (n[i] = l);
316
316
  }
317
317
  else if (n instanceof Map)
318
318
  for (const i of Array.from(n.keys())) {
319
- const r = n.get(i), o = ie(s, n, i, r);
319
+ const r = n.get(i), o = oe(s, n, i, r);
320
320
  o === void 0 ? n.delete(i) : o !== r && n.set(i, o);
321
321
  }
322
322
  else if (n instanceof Set)
323
323
  for (const i of Array.from(n)) {
324
- const r = ie(s, n, i, i);
324
+ const r = oe(s, n, i, i);
325
325
  r === void 0 ? n.delete(i) : r !== i && (n.delete(i), n.add(r));
326
326
  }
327
327
  else
328
328
  for (const [i, r] of Object.entries(n)) {
329
- const o = ie(s, n, i, r);
329
+ const o = oe(s, n, i, r);
330
330
  o === void 0 ? delete n[i] : o !== r && (n[i] = o);
331
331
  }
332
332
  return s.call(e, t, n);
333
333
  }
334
- function j(s, e, t) {
334
+ function P(s, e, t) {
335
335
  if (Array.isArray(s))
336
- return s.map((n, i) => j(n, String(i), t));
336
+ return s.map((n, i) => P(n, String(i), t));
337
337
  if (s && typeof s.toJSON == "function") {
338
- if (!t || !$s(s))
338
+ if (!t || !vs(s))
339
339
  return s.toJSON(e, t);
340
340
  const n = { aliasCount: 0, count: 1, res: void 0 };
341
341
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -346,9 +346,9 @@ function j(s, e, t) {
346
346
  }
347
347
  return typeof s == "bigint" && !(t != null && t.keep) ? Number(s) : s;
348
348
  }
349
- class ht {
349
+ class pt {
350
350
  constructor(e) {
351
- Object.defineProperty(this, K, { value: e });
351
+ Object.defineProperty(this, j, { value: e });
352
352
  }
353
353
  /** Create a copy of this node. */
354
354
  clone() {
@@ -357,7 +357,7 @@ class ht {
357
357
  }
358
358
  /** A plain JavaScript representation of this node. */
359
359
  toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: i, reviver: r } = {}) {
360
- if (!ue(e))
360
+ if (!ee(e))
361
361
  throw new TypeError("A document argument is required");
362
362
  const o = {
363
363
  anchors: /* @__PURE__ */ new Map(),
@@ -366,16 +366,16 @@ class ht {
366
366
  mapAsMap: t === !0,
367
367
  mapKeyWarned: !1,
368
368
  maxAliasCount: typeof n == "number" ? n : 100
369
- }, l = j(this, "", o);
369
+ }, l = P(this, "", o);
370
370
  if (typeof i == "function")
371
371
  for (const { count: a, res: c } of o.anchors.values())
372
372
  i(c, a);
373
- return typeof r == "function" ? ie(r, { "": l }, "", l) : l;
373
+ return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
374
374
  }
375
375
  }
376
- class qe extends ht {
376
+ class Re extends pt {
377
377
  constructor(e) {
378
- super(ut), this.source = e, Object.defineProperty(this, "tag", {
378
+ super(dt), this.source = e, Object.defineProperty(this, "tag", {
379
379
  set() {
380
380
  throw new Error("Alias nodes cannot have tags");
381
381
  }
@@ -387,10 +387,10 @@ class qe extends ht {
387
387
  */
388
388
  resolve(e) {
389
389
  let t;
390
- return J(e, {
390
+ return Q(e, {
391
391
  Node: (n, i) => {
392
392
  if (i === this)
393
- return J.BREAK;
393
+ return Q.BREAK;
394
394
  i.anchor === this.source && (t = i);
395
395
  }
396
396
  }), t;
@@ -404,11 +404,11 @@ class qe extends ht {
404
404
  throw new ReferenceError(a);
405
405
  }
406
406
  let l = n.get(o);
407
- if (l || (j(o, null, t), l = n.get(o)), !l || l.res === void 0) {
407
+ if (l || (P(o, null, t), l = n.get(o)), !l || l.res === void 0) {
408
408
  const a = "This should not happen: Alias anchor was not resolved?";
409
409
  throw new ReferenceError(a);
410
410
  }
411
- if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = _e(i, o, n)), l.count * l.aliasCount > r)) {
411
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = ve(i, o, n)), l.count * l.aliasCount > r)) {
412
412
  const a = "Excessive alias count indicates a resource exhaustion attack";
413
413
  throw new ReferenceError(a);
414
414
  }
@@ -417,7 +417,7 @@ class qe extends ht {
417
417
  toString(e, t, n) {
418
418
  const i = `*${this.source}`;
419
419
  if (e) {
420
- if (Rt(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
420
+ if (Jt(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
421
421
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
422
422
  throw new Error(r);
423
423
  }
@@ -427,42 +427,42 @@ class qe extends ht {
427
427
  return i;
428
428
  }
429
429
  }
430
- function _e(s, e, t) {
431
- if (Z(e)) {
430
+ function ve(s, e, t) {
431
+ if (x(e)) {
432
432
  const n = e.resolve(s), i = t && n && t.get(n);
433
433
  return i ? i.count * i.aliasCount : 0;
434
434
  } else if (L(e)) {
435
435
  let n = 0;
436
436
  for (const i of e.items) {
437
- const r = _e(s, i, t);
437
+ const r = ve(s, i, t);
438
438
  r > n && (n = r);
439
439
  }
440
440
  return n;
441
- } else if (I(e)) {
442
- const n = _e(s, e.key, t), i = _e(s, e.value, t);
441
+ } else if (T(e)) {
442
+ const n = ve(s, e.key, t), i = ve(s, e.value, t);
443
443
  return Math.max(n, i);
444
444
  }
445
445
  return 1;
446
446
  }
447
- const Yt = (s) => !s || typeof s != "function" && typeof s != "object";
448
- class O extends ht {
447
+ const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
448
+ class A extends pt {
449
449
  constructor(e) {
450
450
  super(R), this.value = e;
451
451
  }
452
452
  toJSON(e, t) {
453
- return t != null && t.keep ? this.value : j(this.value, e, t);
453
+ return t != null && t.keep ? this.value : P(this.value, e, t);
454
454
  }
455
455
  toString() {
456
456
  return String(this.value);
457
457
  }
458
458
  }
459
- O.BLOCK_FOLDED = "BLOCK_FOLDED";
460
- O.BLOCK_LITERAL = "BLOCK_LITERAL";
461
- O.PLAIN = "PLAIN";
462
- O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
- O.QUOTE_SINGLE = "QUOTE_SINGLE";
464
- const Bs = "tag:yaml.org,2002:";
465
- function Ms(s, e, t) {
459
+ A.BLOCK_FOLDED = "BLOCK_FOLDED";
460
+ A.BLOCK_LITERAL = "BLOCK_LITERAL";
461
+ A.PLAIN = "PLAIN";
462
+ A.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
+ A.QUOTE_SINGLE = "QUOTE_SINGLE";
464
+ const Ps = "tag:yaml.org,2002:";
465
+ function js(s, e, t) {
466
466
  if (e) {
467
467
  const n = t.filter((r) => r.tag === e), i = n.find((r) => !r.format) ?? n[0];
468
468
  if (!i)
@@ -474,12 +474,12 @@ function Ms(s, e, t) {
474
474
  return ((i = n.identify) == null ? void 0 : i.call(n, s)) && !n.format;
475
475
  });
476
476
  }
477
- function Se(s, e, t) {
477
+ function ke(s, e, t) {
478
478
  var f, d, h;
479
- if (ue(s) && (s = s.contents), $(s))
479
+ if (ee(s) && (s = s.contents), $(s))
480
480
  return s;
481
- if (I(s)) {
482
- const y = (d = (f = t.schema[V]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
481
+ if (T(s)) {
482
+ const y = (d = (f = t.schema[G]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
483
483
  return y.items.push(s), y;
484
484
  }
485
485
  (s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
@@ -487,23 +487,23 @@ function Se(s, e, t) {
487
487
  let a;
488
488
  if (n && s && typeof s == "object") {
489
489
  if (a = l.get(s), a)
490
- return a.anchor || (a.anchor = i(s)), new qe(a.anchor);
490
+ return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
491
491
  a = { anchor: null, node: null }, l.set(s, a);
492
492
  }
493
- e != null && e.startsWith("!!") && (e = Bs + e.slice(2));
494
- let c = Ms(s, e, o.tags);
493
+ e != null && e.startsWith("!!") && (e = Ps + e.slice(2));
494
+ let c = js(s, e, o.tags);
495
495
  if (!c) {
496
496
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
497
- const y = new O(s);
497
+ const y = new A(s);
498
498
  return a && (a.node = y), y;
499
499
  }
500
- c = s instanceof Map ? o[V] : Symbol.iterator in Object(s) ? o[fe] : o[V];
500
+ c = s instanceof Map ? o[G] : Symbol.iterator in Object(s) ? o[he] : o[G];
501
501
  }
502
502
  r && (r(c), delete t.onTagObj);
503
- const m = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new O(s);
504
- return e ? m.tag = e : c.default || (m.tag = c.tag), a && (a.node = m), m;
503
+ const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new A(s);
504
+ return e ? p.tag = e : c.default || (p.tag = c.tag), a && (a.node = p), p;
505
505
  }
506
- function Me(s, e, t) {
506
+ function Pe(s, e, t) {
507
507
  let n = t;
508
508
  for (let i = e.length - 1; i >= 0; --i) {
509
509
  const r = e[i];
@@ -513,7 +513,7 @@ function Me(s, e, t) {
513
513
  } else
514
514
  n = /* @__PURE__ */ new Map([[r, n]]);
515
515
  }
516
- return Se(n, void 0, {
516
+ return ke(n, void 0, {
517
517
  aliasDuplicateObjects: !1,
518
518
  keepUndefined: !1,
519
519
  onAnchor: () => {
@@ -523,8 +523,8 @@ function Me(s, e, t) {
523
523
  sourceObjects: /* @__PURE__ */ new Map()
524
524
  });
525
525
  }
526
- const be = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
527
- class Gt extends ht {
526
+ const we = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
527
+ class Wt extends pt {
528
528
  constructor(e, t) {
529
529
  super(e), Object.defineProperty(this, "schema", {
530
530
  value: t,
@@ -540,7 +540,7 @@ class Gt extends ht {
540
540
  */
541
541
  clone(e) {
542
542
  const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
543
- return e && (t.schema = e), t.items = t.items.map((n) => $(n) || I(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
543
+ return e && (t.schema = e), t.items = t.items.map((n) => $(n) || T(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
544
544
  }
545
545
  /**
546
546
  * Adds a value to the collection. For `!!map` and `!!omap` the value must
@@ -548,14 +548,14 @@ class Gt extends ht {
548
548
  * that already exists in the map.
549
549
  */
550
550
  addIn(e, t) {
551
- if (be(e))
551
+ if (we(e))
552
552
  this.add(t);
553
553
  else {
554
554
  const [n, ...i] = e, r = this.get(n, !0);
555
555
  if (L(r))
556
556
  r.addIn(i, t);
557
557
  else if (r === void 0 && this.schema)
558
- this.set(n, Me(this.schema, i, t));
558
+ this.set(n, Pe(this.schema, i, t));
559
559
  else
560
560
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
561
561
  }
@@ -584,7 +584,7 @@ class Gt extends ht {
584
584
  }
585
585
  hasAllNullValues(e) {
586
586
  return this.items.every((t) => {
587
- if (!I(t))
587
+ if (!T(t))
588
588
  return !1;
589
589
  const n = t.value;
590
590
  return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
@@ -613,20 +613,20 @@ class Gt extends ht {
613
613
  if (L(r))
614
614
  r.setIn(i, t);
615
615
  else if (r === void 0 && this.schema)
616
- this.set(n, Me(this.schema, i, t));
616
+ this.set(n, Pe(this.schema, i, t));
617
617
  else
618
618
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
619
619
  }
620
620
  }
621
621
  }
622
- const Ps = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
623
- function F(s, e) {
622
+ const Ds = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
623
+ function U(s, e) {
624
624
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
625
625
  }
626
- const W = (s, e, t) => s.endsWith(`
627
- `) ? F(t, e) : t.includes(`
626
+ const H = (s, e, t) => s.endsWith(`
627
+ `) ? U(t, e) : t.includes(`
628
628
  `) ? `
629
- ` + F(t, e) : (s.endsWith(" ") ? "" : " ") + t, Qt = "flow", ot = "block", Ce = "quoted";
629
+ ` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", Be = "quoted";
630
630
  function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
631
631
  if (!i || i < 0)
632
632
  return s;
@@ -634,14 +634,14 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
634
634
  const a = Math.max(1 + r, 1 + i - e.length);
635
635
  if (s.length <= a)
636
636
  return s;
637
- const c = [], m = {};
637
+ const c = [], p = {};
638
638
  let f = i - e.length;
639
639
  typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
640
- let d, h, y = !1, u = -1, p = -1, g = -1;
641
- t === ot && (u = It(s, u, e.length), u !== -1 && (f = u + a));
640
+ let d, h, y = !1, u = -1, m = -1, b = -1;
641
+ t === at && (u = $t(s, u, e.length), u !== -1 && (f = u + a));
642
642
  for (let N; N = s[u += 1]; ) {
643
- if (t === Ce && N === "\\") {
644
- switch (p = u, s[u + 1]) {
643
+ if (t === Be && N === "\\") {
644
+ switch (m = u, s[u + 1]) {
645
645
  case "x":
646
646
  u += 3;
647
647
  break;
@@ -654,28 +654,28 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
654
654
  default:
655
655
  u += 1;
656
656
  }
657
- g = u;
657
+ b = u;
658
658
  }
659
659
  if (N === `
660
660
  `)
661
- t === ot && (u = It(s, u, e.length)), f = u + e.length + a, d = void 0;
661
+ t === at && (u = $t(s, u, e.length)), f = u + e.length + a, d = void 0;
662
662
  else {
663
663
  if (N === " " && h && h !== " " && h !== `
664
664
  ` && h !== " ") {
665
- const S = s[u + 1];
666
- S && S !== " " && S !== `
667
- ` && S !== " " && (d = u);
665
+ const w = s[u + 1];
666
+ w && w !== " " && w !== `
667
+ ` && w !== " " && (d = u);
668
668
  }
669
669
  if (u >= f)
670
670
  if (d)
671
671
  c.push(d), f = d + a, d = void 0;
672
- else if (t === Ce) {
672
+ else if (t === Be) {
673
673
  for (; h === " " || h === " "; )
674
674
  h = N, N = s[u += 1], y = !0;
675
- const S = u > g + 1 ? u - 2 : p - 1;
676
- if (m[S])
675
+ const w = u > b + 1 ? u - 2 : m - 1;
676
+ if (p[w])
677
677
  return s;
678
- c.push(S), m[S] = !0, f = S + a, d = void 0;
678
+ c.push(w), p[w] = !0, f = w + a, d = void 0;
679
679
  } else
680
680
  y = !0;
681
681
  }
@@ -684,16 +684,16 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
684
684
  if (y && l && l(), c.length === 0)
685
685
  return s;
686
686
  o && o();
687
- let w = s.slice(0, c[0]);
687
+ let S = s.slice(0, c[0]);
688
688
  for (let N = 0; N < c.length; ++N) {
689
- const S = c[N], A = c[N + 1] || s.length;
690
- S === 0 ? w = `
691
- ${e}${s.slice(0, A)}` : (t === Ce && m[S] && (w += `${s[S]}\\`), w += `
692
- ${e}${s.slice(S + 1, A)}`);
689
+ const w = c[N], k = c[N + 1] || s.length;
690
+ w === 0 ? S = `
691
+ ${e}${s.slice(0, k)}` : (t === Be && p[w] && (S += `${s[w]}\\`), S += `
692
+ ${e}${s.slice(w + 1, k)}`);
693
693
  }
694
- return w;
694
+ return S;
695
695
  }
696
- function It(s, e, t) {
696
+ function $t(s, e, t) {
697
697
  let n = e, i = e + 1, r = s[i];
698
698
  for (; r === " " || r === " "; )
699
699
  if (e < i + t)
@@ -707,12 +707,12 @@ function It(s, e, t) {
707
707
  }
708
708
  return n;
709
709
  }
710
- const Fe = (s, e) => ({
710
+ const Ve = (s, e) => ({
711
711
  indentAtStart: e ? s.indent.length : s.indentAtStart,
712
712
  lineWidth: s.options.lineWidth,
713
713
  minContentWidth: s.options.minContentWidth
714
- }), Re = (s) => /^(%|---|\.\.\.)/m.test(s);
715
- function js(s, e, t) {
714
+ }), Je = (s) => /^(%|---|\.\.\.)/m.test(s);
715
+ function qs(s, e, t) {
716
716
  if (!e || e < 0)
717
717
  return !1;
718
718
  const n = e - t, i = s.length;
@@ -728,11 +728,11 @@ function js(s, e, t) {
728
728
  }
729
729
  return !0;
730
730
  }
731
- function we(s, e) {
731
+ function Se(s, e) {
732
732
  const t = JSON.stringify(s);
733
733
  if (e.options.doubleQuotedAsJSON)
734
734
  return t;
735
- const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (Re(s) ? " " : "");
735
+ const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (Je(s) ? " " : "");
736
736
  let o = "", l = 0;
737
737
  for (let a = 0, c = t[a]; c; c = t[++a])
738
738
  if (c === " " && t[a + 1] === "\\" && t[a + 2] === "n" && (o += t.slice(l, a) + "\\ ", a += 1, l = a, c = "\\"), c === "\\")
@@ -740,8 +740,8 @@ function we(s, e) {
740
740
  case "u":
741
741
  {
742
742
  o += t.slice(l, a);
743
- const m = t.substr(a + 2, 4);
744
- switch (m) {
743
+ const p = t.substr(a + 2, 4);
744
+ switch (p) {
745
745
  case "0000":
746
746
  o += "\\0";
747
747
  break;
@@ -767,7 +767,7 @@ function we(s, e) {
767
767
  o += "\\P";
768
768
  break;
769
769
  default:
770
- m.substr(0, 2) === "00" ? o += "\\x" + m.substr(2) : o += t.substr(a, 6);
770
+ p.substr(0, 2) === "00" ? o += "\\x" + p.substr(2) : o += t.substr(a, 6);
771
771
  }
772
772
  a += 5, l = a + 1;
773
773
  }
@@ -787,43 +787,43 @@ function we(s, e) {
787
787
  default:
788
788
  a += 1;
789
789
  }
790
- return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Ce, Fe(e, !1));
790
+ return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Be, Ve(e, !1));
791
791
  }
792
- function lt(s, e) {
792
+ function ct(s, e) {
793
793
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
794
794
  `) || /[ \t]\n|\n[ \t]/.test(s))
795
- return we(s, e);
796
- const t = e.indent || (Re(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
795
+ return Se(s, e);
796
+ const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
797
797
  ${t}`) + "'";
798
- return e.implicitKey ? n : Ue(n, t, Qt, Fe(e, !1));
798
+ return e.implicitKey ? n : Ue(n, t, Ht, Ve(e, !1));
799
799
  }
800
- function re(s, e) {
800
+ function le(s, e) {
801
801
  const { singleQuote: t } = e.options;
802
802
  let n;
803
803
  if (t === !1)
804
- n = we;
804
+ n = Se;
805
805
  else {
806
806
  const i = s.includes('"'), r = s.includes("'");
807
- i && !r ? n = lt : r && !i ? n = we : n = t ? lt : we;
807
+ i && !r ? n = ct : r && !i ? n = Se : n = t ? ct : Se;
808
808
  }
809
809
  return n(s, e);
810
810
  }
811
- let at;
811
+ let ft;
812
812
  try {
813
- at = new RegExp(`(^|(?<!
813
+ ft = new RegExp(`(^|(?<!
814
814
  ))
815
815
  +(?!
816
816
  |$)`, "g");
817
817
  } catch {
818
- at = /\n+(?!\n|$)/g;
818
+ ft = /\n+(?!\n|$)/g;
819
819
  }
820
- function ve({ comment: s, type: e, value: t }, n, i, r) {
820
+ function Me({ comment: s, type: e, value: t }, n, i, r) {
821
821
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
822
822
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
823
- return re(t, n);
824
- const c = n.indent || (n.forceBlockIndent || Re(t) ? " " : ""), m = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !js(t, a, c.length);
823
+ return le(t, n);
824
+ const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
825
825
  if (!t)
826
- return m ? `|
826
+ return p ? `|
827
827
  ` : `>
828
828
  `;
829
829
  let f, d;
@@ -837,90 +837,97 @@ function ve({ comment: s, type: e, value: t }, n, i, r) {
837
837
  const y = h.indexOf(`
838
838
  `);
839
839
  y === -1 ? f = "-" : t === h || y !== h.length - 1 ? (f = "+", r && r()) : f = "", h && (t = t.slice(0, -h.length), h[h.length - 1] === `
840
- ` && (h = h.slice(0, -1)), h = h.replace(at, `$&${c}`));
841
- let u = !1, p, g = -1;
842
- for (p = 0; p < t.length; ++p) {
843
- const k = t[p];
840
+ ` && (h = h.slice(0, -1)), h = h.replace(ft, `$&${c}`));
841
+ let u = !1, m, b = -1;
842
+ for (m = 0; m < t.length; ++m) {
843
+ const k = t[m];
844
844
  if (k === " ")
845
845
  u = !0;
846
846
  else if (k === `
847
847
  `)
848
- g = p;
848
+ b = m;
849
849
  else
850
850
  break;
851
851
  }
852
- let w = t.substring(0, g < p ? g + 1 : p);
853
- w && (t = t.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
854
- let S = (m ? "|" : ">") + (u ? c ? "2" : "1" : "") + f;
855
- if (s && (S += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), m)
856
- return t = t.replace(/\n+/g, `$&${c}`), `${S}
857
- ${c}${w}${t}${h}`;
858
- t = t.replace(/\n+/g, `
852
+ let S = t.substring(0, b < m ? b + 1 : m);
853
+ S && (t = t.substring(S.length), S = S.replace(/\n+/g, `$&${c}`));
854
+ let w = (u ? c ? "2" : "1" : "") + f;
855
+ if (s && (w += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !p) {
856
+ const k = t.replace(/\n+/g, `
859
857
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
860
- const A = Ue(`${w}${t}${h}`, c, ot, Fe(n, !0));
861
- return `${S}
862
- ${c}${A}`;
858
+ let O = !1;
859
+ const I = Ve(n, !0);
860
+ o !== "folded" && e !== A.BLOCK_FOLDED && (I.onOverflow = () => {
861
+ O = !0;
862
+ });
863
+ const g = Ue(`${S}${k}${h}`, c, at, I);
864
+ if (!O)
865
+ return `>${w}
866
+ ${c}${g}`;
867
+ }
868
+ return t = t.replace(/\n+/g, `$&${c}`), `|${w}
869
+ ${c}${S}${t}${h}`;
863
870
  }
864
- function Ks(s, e, t, n) {
865
- const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: m } = e;
871
+ function Fs(s, e, t, n) {
872
+ const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: p } = e;
866
873
  if (l && r.includes(`
867
- `) || m && /[[\]{},]/.test(r))
868
- return re(r, e);
874
+ `) || p && /[[\]{},]/.test(r))
875
+ return le(r, e);
869
876
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
870
- return l || m || !r.includes(`
871
- `) ? re(r, e) : ve(s, e, t, n);
872
- if (!l && !m && i !== O.PLAIN && r.includes(`
877
+ return l || p || !r.includes(`
878
+ `) ? le(r, e) : Me(s, e, t, n);
879
+ if (!l && !p && i !== A.PLAIN && r.includes(`
873
880
  `))
874
- return ve(s, e, t, n);
875
- if (Re(r)) {
881
+ return Me(s, e, t, n);
882
+ if (Je(r)) {
876
883
  if (a === "")
877
- return e.forceBlockIndent = !0, ve(s, e, t, n);
884
+ return e.forceBlockIndent = !0, Me(s, e, t, n);
878
885
  if (l && a === c)
879
- return re(r, e);
886
+ return le(r, e);
880
887
  }
881
888
  const f = r.replace(/\n+/g, `$&
882
889
  ${a}`);
883
890
  if (o) {
884
891
  const d = (u) => {
885
- var p;
886
- return u.default && u.tag !== "tag:yaml.org,2002:str" && ((p = u.test) == null ? void 0 : p.test(f));
892
+ var m;
893
+ return u.default && u.tag !== "tag:yaml.org,2002:str" && ((m = u.test) == null ? void 0 : m.test(f));
887
894
  }, { compat: h, tags: y } = e.doc.schema;
888
895
  if (y.some(d) || h != null && h.some(d))
889
- return re(r, e);
896
+ return le(r, e);
890
897
  }
891
- return l ? f : Ue(f, a, Qt, Fe(e, !1));
898
+ return l ? f : Ue(f, a, Ht, Ve(e, !1));
892
899
  }
893
- function Oe(s, e, t, n) {
900
+ function Ae(s, e, t, n) {
894
901
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
895
902
  let { type: l } = s;
896
- l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
897
- const a = (m) => {
898
- switch (m) {
899
- case O.BLOCK_FOLDED:
900
- case O.BLOCK_LITERAL:
901
- return i || r ? re(o.value, e) : ve(o, e, t, n);
902
- case O.QUOTE_DOUBLE:
903
- return we(o.value, e);
904
- case O.QUOTE_SINGLE:
905
- return lt(o.value, e);
906
- case O.PLAIN:
907
- return Ks(o, e, t, n);
903
+ l !== A.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = A.QUOTE_DOUBLE);
904
+ const a = (p) => {
905
+ switch (p) {
906
+ case A.BLOCK_FOLDED:
907
+ case A.BLOCK_LITERAL:
908
+ return i || r ? le(o.value, e) : Me(o, e, t, n);
909
+ case A.QUOTE_DOUBLE:
910
+ return Se(o.value, e);
911
+ case A.QUOTE_SINGLE:
912
+ return ct(o.value, e);
913
+ case A.PLAIN:
914
+ return Fs(o, e, t, n);
908
915
  default:
909
916
  return null;
910
917
  }
911
918
  };
912
919
  let c = a(l);
913
920
  if (c === null) {
914
- const { defaultKeyType: m, defaultStringType: f } = e.options, d = i && m || f;
921
+ const { defaultKeyType: p, defaultStringType: f } = e.options, d = i && p || f;
915
922
  if (c = a(d), c === null)
916
923
  throw new Error(`Unsupported default string type ${d}`);
917
924
  }
918
925
  return c;
919
926
  }
920
- function Wt(s, e) {
927
+ function Xt(s, e) {
921
928
  const t = Object.assign({
922
929
  blockQuote: !0,
923
- commentString: Ps,
930
+ commentString: Ds,
924
931
  defaultKeyType: null,
925
932
  defaultStringType: "PLAIN",
926
933
  directives: null,
@@ -958,7 +965,7 @@ function Wt(s, e) {
958
965
  options: t
959
966
  };
960
967
  }
961
- function Ds(s, e) {
968
+ function Rs(s, e) {
962
969
  var i;
963
970
  if (e.tag) {
964
971
  const r = s.filter((o) => o.tag === e.tag);
@@ -968,10 +975,14 @@ function Ds(s, e) {
968
975
  let t, n;
969
976
  if (E(e)) {
970
977
  n = e.value;
971
- const r = s.filter((o) => {
978
+ let r = s.filter((o) => {
972
979
  var l;
973
980
  return (l = o.identify) == null ? void 0 : l.call(o, n);
974
981
  });
982
+ if (r.length > 1) {
983
+ const o = r.filter((l) => l.test);
984
+ o.length > 0 && (r = o);
985
+ }
975
986
  t = r.find((o) => o.format === e.format) ?? r.find((o) => !o.format);
976
987
  } else
977
988
  n = e, t = s.find((r) => r.nodeClass && n instanceof r.nodeClass);
@@ -981,19 +992,19 @@ function Ds(s, e) {
981
992
  }
982
993
  return t;
983
994
  }
984
- function qs(s, e, { anchors: t, doc: n }) {
995
+ function Us(s, e, { anchors: t, doc: n }) {
985
996
  if (!n.directives)
986
997
  return "";
987
998
  const i = [], r = (E(s) || L(s)) && s.anchor;
988
- r && Rt(r) && (t.add(r), i.push(`&${r}`));
999
+ r && Jt(r) && (t.add(r), i.push(`&${r}`));
989
1000
  const o = s.tag ? s.tag : e.default ? null : e.tag;
990
1001
  return o && i.push(n.directives.tagString(o)), i.join(" ");
991
1002
  }
992
- function ae(s, e, t, n) {
1003
+ function fe(s, e, t, n) {
993
1004
  var a;
994
- if (I(s))
1005
+ if (T(s))
995
1006
  return s.toString(e, t, n);
996
- if (Z(s)) {
1007
+ if (x(s)) {
997
1008
  if (e.doc.directives)
998
1009
  return s.toString(e);
999
1010
  if ((a = e.resolvedAliases) != null && a.has(s))
@@ -1002,98 +1013,126 @@ function ae(s, e, t, n) {
1002
1013
  }
1003
1014
  let i;
1004
1015
  const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (c) => i = c });
1005
- i || (i = Ds(e.doc.schema.tags, r));
1006
- const o = qs(r, i, e);
1016
+ i || (i = Rs(e.doc.schema.tags, r));
1017
+ const o = Us(r, i, e);
1007
1018
  o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
1008
- const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Oe(r, e, t, n) : r.toString(e, t, n);
1019
+ const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
1009
1020
  return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1010
1021
  ${e.indent}${l}` : l;
1011
1022
  }
1012
- function Us({ key: s, value: e }, t, n, i) {
1013
- const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: m, simpleKeys: f } } = t;
1023
+ function Vs({ key: s, value: e }, t, n, i) {
1024
+ const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: p, simpleKeys: f } } = t;
1014
1025
  let d = $(s) && s.comment || null;
1015
1026
  if (f) {
1016
1027
  if (d)
1017
1028
  throw new Error("With simple keys, key nodes cannot have comments");
1018
1029
  if (L(s) || !$(s) && typeof s == "object") {
1019
- const T = "With simple keys, collection cannot be used as a key value";
1020
- throw new Error(T);
1030
+ const I = "With simple keys, collection cannot be used as a key value";
1031
+ throw new Error(I);
1021
1032
  }
1022
1033
  }
1023
- let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
1034
+ let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === A.BLOCK_FOLDED || s.type === A.BLOCK_LITERAL : typeof s == "object"));
1024
1035
  t = Object.assign({}, t, {
1025
1036
  allNullValues: !1,
1026
1037
  implicitKey: !h && (f || !r),
1027
1038
  indent: l + a
1028
1039
  });
1029
- let y = !1, u = !1, p = ae(s, t, () => y = !0, () => u = !0);
1030
- if (!h && !t.inFlow && p.length > 1024) {
1040
+ let y = !1, u = !1, m = fe(s, t, () => y = !0, () => u = !0);
1041
+ if (!h && !t.inFlow && m.length > 1024) {
1031
1042
  if (f)
1032
1043
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
1033
1044
  h = !0;
1034
1045
  }
1035
1046
  if (t.inFlow) {
1036
1047
  if (r || e == null)
1037
- return y && n && n(), p === "" ? "?" : h ? `? ${p}` : p;
1048
+ return y && n && n(), m === "" ? "?" : h ? `? ${m}` : m;
1038
1049
  } else if (r && !f || e == null && h)
1039
- return p = `? ${p}`, d && !y ? p += W(p, t.indent, c(d)) : u && i && i(), p;
1040
- y && (d = null), h ? (d && (p += W(p, t.indent, c(d))), p = `? ${p}
1041
- ${l}:`) : (p = `${p}:`, d && (p += W(p, t.indent, c(d))));
1042
- let g, w, N;
1043
- $(e) ? (g = !!e.spaceBefore, w = e.commentBefore, N = e.comment) : (g = !1, w = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = p.length + 1), u = !1, !m && a.length >= 2 && !t.inFlow && !h && de(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1044
- let S = !1;
1045
- const A = ae(e, t, () => S = !0, () => u = !0);
1046
- let k = " ";
1047
- if (d || g || w) {
1048
- if (k = g ? `
1049
- ` : "", w) {
1050
- const T = c(w);
1051
- k += `
1052
- ${F(T, t.indent)}`;
1050
+ return m = `? ${m}`, d && !y ? m += H(m, t.indent, c(d)) : u && i && i(), m;
1051
+ y && (d = null), h ? (d && (m += H(m, t.indent, c(d))), m = `? ${m}
1052
+ ${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
1053
+ let b, S, N;
1054
+ $(e) ? (b = !!e.spaceBefore, S = e.commentBefore, N = e.comment) : (b = !1, S = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1055
+ let w = !1;
1056
+ const k = fe(e, t, () => w = !0, () => u = !0);
1057
+ let O = " ";
1058
+ if (d || b || S) {
1059
+ if (O = b ? `
1060
+ ` : "", S) {
1061
+ const I = c(S);
1062
+ O += `
1063
+ ${U(I, t.indent)}`;
1053
1064
  }
1054
- A === "" && !t.inFlow ? k === `
1055
- ` && (k = `
1065
+ k === "" && !t.inFlow ? O === `
1066
+ ` && (O = `
1056
1067
 
1057
- `) : k += `
1068
+ `) : O += `
1058
1069
  ${t.indent}`;
1059
1070
  } else if (!h && L(e)) {
1060
- const T = A[0], b = A.indexOf(`
1061
- `), _ = b !== -1, G = t.inFlow ?? e.flow ?? e.items.length === 0;
1062
- if (_ || !G) {
1063
- let x = !1;
1064
- if (_ && (T === "&" || T === "!")) {
1065
- let C = A.indexOf(" ");
1066
- T === "&" && C !== -1 && C < b && A[C + 1] === "!" && (C = A.indexOf(" ", C + 1)), (C === -1 || b < C) && (x = !0);
1071
+ const I = k[0], g = k.indexOf(`
1072
+ `), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
1073
+ if (_ || !J) {
1074
+ let te = !1;
1075
+ if (_ && (I === "&" || I === "!")) {
1076
+ let C = k.indexOf(" ");
1077
+ I === "&" && C !== -1 && C < g && k[C + 1] === "!" && (C = k.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1067
1078
  }
1068
- x || (k = `
1079
+ te || (O = `
1069
1080
  ${t.indent}`);
1070
1081
  }
1071
- } else (A === "" || A[0] === `
1072
- `) && (k = "");
1073
- return p += k + A, t.inFlow ? S && n && n() : N && !S ? p += W(p, t.indent, c(N)) : u && i && i(), p;
1074
- }
1075
- function Ht(s, e) {
1076
- (s === "debug" || s === "warn") && (typeof process < "u" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1077
- }
1078
- const Tt = "<<";
1079
- function Xt(s, e, { key: t, value: n }) {
1080
- if (s != null && s.doc.schema.merge && Fs(t))
1081
- if (n = Z(n) ? n.resolve(s.doc) : n, de(n))
1082
- for (const i of n.items)
1083
- Ze(s, e, i);
1084
- else if (Array.isArray(n))
1085
- for (const i of n)
1086
- Ze(s, e, i);
1087
- else
1088
- Ze(s, e, n);
1082
+ } else (k === "" || k[0] === `
1083
+ `) && (O = "");
1084
+ return m += O + k, t.inFlow ? w && n && n() : N && !w ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1085
+ }
1086
+ function zt(s, e) {
1087
+ (s === "debug" || s === "warn") && console.warn(e);
1088
+ }
1089
+ const Te = "<<", V = {
1090
+ identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
1091
+ default: "key",
1092
+ tag: "tag:yaml.org,2002:merge",
1093
+ test: /^<<$/,
1094
+ resolve: () => Object.assign(new A(Symbol(Te)), {
1095
+ addToJSMap: Zt
1096
+ }),
1097
+ stringify: () => Te
1098
+ }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === A.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
1099
+ function Zt(s, e, t) {
1100
+ if (t = s && x(t) ? t.resolve(s.doc) : t, pe(t))
1101
+ for (const n of t.items)
1102
+ et(s, e, n);
1103
+ else if (Array.isArray(t))
1104
+ for (const n of t)
1105
+ et(s, e, n);
1106
+ else
1107
+ et(s, e, t);
1108
+ }
1109
+ function et(s, e, t) {
1110
+ const n = s && x(t) ? t.resolve(s.doc) : t;
1111
+ if (!de(n))
1112
+ throw new Error("Merge sources must be maps or map aliases");
1113
+ const i = n.toJSON(null, s, Map);
1114
+ for (const [r, o] of i)
1115
+ e instanceof Map ? e.has(r) || e.set(r, o) : e instanceof Set ? e.add(r) : Object.prototype.hasOwnProperty.call(e, r) || Object.defineProperty(e, r, {
1116
+ value: o,
1117
+ writable: !0,
1118
+ enumerable: !0,
1119
+ configurable: !0
1120
+ });
1121
+ return e;
1122
+ }
1123
+ function xt(s, e, { key: t, value: n }) {
1124
+ if ($(t) && t.addToJSMap)
1125
+ t.addToJSMap(s, e, n);
1126
+ else if (Js(s, t))
1127
+ Zt(s, e, n);
1089
1128
  else {
1090
- const i = j(t, "", s);
1129
+ const i = P(t, "", s);
1091
1130
  if (e instanceof Map)
1092
- e.set(i, j(n, i, s));
1131
+ e.set(i, P(n, i, s));
1093
1132
  else if (e instanceof Set)
1094
1133
  e.add(i);
1095
1134
  else {
1096
- const r = Rs(t, i, s), o = j(n, r, s);
1135
+ const r = Ys(t, i, s), o = P(n, r, s);
1097
1136
  r in e ? Object.defineProperty(e, r, {
1098
1137
  value: o,
1099
1138
  writable: !0,
@@ -1104,28 +1143,13 @@ function Xt(s, e, { key: t, value: n }) {
1104
1143
  }
1105
1144
  return e;
1106
1145
  }
1107
- const Fs = (s) => s === Tt || E(s) && s.value === Tt && (!s.type || s.type === O.PLAIN);
1108
- function Ze(s, e, t) {
1109
- const n = s && Z(t) ? t.resolve(s.doc) : t;
1110
- if (!he(n))
1111
- throw new Error("Merge sources must be maps or map aliases");
1112
- const i = n.toJSON(null, s, Map);
1113
- for (const [r, o] of i)
1114
- e instanceof Map ? e.has(r) || e.set(r, o) : e instanceof Set ? e.add(r) : Object.prototype.hasOwnProperty.call(e, r) || Object.defineProperty(e, r, {
1115
- value: o,
1116
- writable: !0,
1117
- enumerable: !0,
1118
- configurable: !0
1119
- });
1120
- return e;
1121
- }
1122
- function Rs(s, e, t) {
1146
+ function Ys(s, e, t) {
1123
1147
  if (e === null)
1124
1148
  return "";
1125
1149
  if (typeof e != "object")
1126
1150
  return String(e);
1127
1151
  if ($(s) && (t != null && t.doc)) {
1128
- const n = Wt(t.doc, {});
1152
+ const n = Xt(t.doc, {});
1129
1153
  n.anchors = /* @__PURE__ */ new Set();
1130
1154
  for (const r of t.anchors.keys())
1131
1155
  n.anchors.add(r.anchor);
@@ -1133,19 +1157,19 @@ function Rs(s, e, t) {
1133
1157
  const i = s.toString(n);
1134
1158
  if (!t.mapKeyWarned) {
1135
1159
  let r = JSON.stringify(i);
1136
- r.length > 40 && (r = r.substring(0, 36) + '..."'), Ht(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;
1160
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), zt(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;
1137
1161
  }
1138
1162
  return i;
1139
1163
  }
1140
1164
  return JSON.stringify(e);
1141
1165
  }
1142
- function dt(s, e, t) {
1143
- const n = Se(s, void 0, t), i = Se(e, void 0, t);
1166
+ function mt(s, e, t) {
1167
+ const n = ke(s, void 0, t), i = ke(e, void 0, t);
1144
1168
  return new v(n, i);
1145
1169
  }
1146
1170
  class v {
1147
1171
  constructor(e, t = null) {
1148
- Object.defineProperty(this, K, { value: Kt }), this.key = e, this.value = t;
1172
+ Object.defineProperty(this, j, { value: qt }), this.key = e, this.value = t;
1149
1173
  }
1150
1174
  clone(e) {
1151
1175
  let { key: t, value: n } = this;
@@ -1153,31 +1177,31 @@ class v {
1153
1177
  }
1154
1178
  toJSON(e, t) {
1155
1179
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1156
- return Xt(t, n, this);
1180
+ return xt(t, n, this);
1157
1181
  }
1158
1182
  toString(e, t, n) {
1159
- return e != null && e.doc ? Us(this, e, t, n) : JSON.stringify(this);
1183
+ return e != null && e.doc ? Vs(this, e, t, n) : JSON.stringify(this);
1160
1184
  }
1161
1185
  }
1162
- function zt(s, e, t) {
1163
- return (e.inFlow ?? s.flow ? Js : Vs)(s, e, t);
1186
+ function es(s, e, t) {
1187
+ return (e.inFlow ?? s.flow ? Qs : Gs)(s, e, t);
1164
1188
  }
1165
- function Vs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1166
- const { indent: a, options: { commentString: c } } = t, m = Object.assign({}, t, { indent: r, type: null });
1189
+ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1190
+ const { indent: a, options: { commentString: c } } = t, p = Object.assign({}, t, { indent: r, type: null });
1167
1191
  let f = !1;
1168
1192
  const d = [];
1169
1193
  for (let y = 0; y < e.length; ++y) {
1170
1194
  const u = e[y];
1171
- let p = null;
1195
+ let m = null;
1172
1196
  if ($(u))
1173
- !f && u.spaceBefore && d.push(""), Pe(t, d, u.commentBefore, f), u.comment && (p = u.comment);
1174
- else if (I(u)) {
1175
- const w = $(u.key) ? u.key : null;
1176
- w && (!f && w.spaceBefore && d.push(""), Pe(t, d, w.commentBefore, f));
1197
+ !f && u.spaceBefore && d.push(""), je(t, d, u.commentBefore, f), u.comment && (m = u.comment);
1198
+ else if (T(u)) {
1199
+ const S = $(u.key) ? u.key : null;
1200
+ S && (!f && S.spaceBefore && d.push(""), je(t, d, S.commentBefore, f));
1177
1201
  }
1178
1202
  f = !1;
1179
- let g = ae(u, m, () => p = null, () => f = !0);
1180
- p && (g += W(g, r, c(p))), f && p && (f = !1), d.push(n + g);
1203
+ let b = fe(u, p, () => m = null, () => f = !0);
1204
+ m && (b += H(b, r, c(m))), f && m && (f = !1), d.push(n + b);
1181
1205
  }
1182
1206
  let h;
1183
1207
  if (d.length === 0)
@@ -1192,9 +1216,9 @@ ${a}${u}` : `
1192
1216
  }
1193
1217
  }
1194
1218
  return s ? (h += `
1195
- ` + F(c(s), a), l && l()) : f && o && o(), h;
1219
+ ` + U(c(s), a), l && l()) : f && o && o(), h;
1196
1220
  }
1197
- function Js({ items: s }, e, { flowChars: t, itemIndent: n }) {
1221
+ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1198
1222
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1199
1223
  n += r;
1200
1224
  const a = Object.assign({}, e, {
@@ -1202,29 +1226,29 @@ function Js({ items: s }, e, { flowChars: t, itemIndent: n }) {
1202
1226
  inFlow: !0,
1203
1227
  type: null
1204
1228
  });
1205
- let c = !1, m = 0;
1229
+ let c = !1, p = 0;
1206
1230
  const f = [];
1207
1231
  for (let y = 0; y < s.length; ++y) {
1208
1232
  const u = s[y];
1209
- let p = null;
1233
+ let m = null;
1210
1234
  if ($(u))
1211
- u.spaceBefore && f.push(""), Pe(e, f, u.commentBefore, !1), u.comment && (p = u.comment);
1212
- else if (I(u)) {
1213
- const w = $(u.key) ? u.key : null;
1214
- w && (w.spaceBefore && f.push(""), Pe(e, f, w.commentBefore, !1), w.comment && (c = !0));
1235
+ u.spaceBefore && f.push(""), je(e, f, u.commentBefore, !1), u.comment && (m = u.comment);
1236
+ else if (T(u)) {
1237
+ const S = $(u.key) ? u.key : null;
1238
+ S && (S.spaceBefore && f.push(""), je(e, f, S.commentBefore, !1), S.comment && (c = !0));
1215
1239
  const N = $(u.value) ? u.value : null;
1216
- N ? (N.comment && (p = N.comment), N.commentBefore && (c = !0)) : u.value == null && (w != null && w.comment) && (p = w.comment);
1240
+ N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (m = S.comment);
1217
1241
  }
1218
- p && (c = !0);
1219
- let g = ae(u, a, () => p = null);
1220
- y < s.length - 1 && (g += ","), p && (g += W(g, n, l(p))), !c && (f.length > m || g.includes(`
1221
- `)) && (c = !0), f.push(g), m = f.length;
1242
+ m && (c = !0);
1243
+ let b = fe(u, a, () => m = null);
1244
+ y < s.length - 1 && (b += ","), m && (b += H(b, n, l(m))), !c && (f.length > p || b.includes(`
1245
+ `)) && (c = !0), f.push(b), p = f.length;
1222
1246
  }
1223
1247
  const { start: d, end: h } = t;
1224
1248
  if (f.length === 0)
1225
1249
  return d + h;
1226
1250
  if (!c) {
1227
- const y = f.reduce((u, p) => u + p.length + 2, 2);
1251
+ const y = f.reduce((u, m) => u + m.length + 2, 2);
1228
1252
  c = e.options.lineWidth > 0 && y > e.options.lineWidth;
1229
1253
  }
1230
1254
  if (c) {
@@ -1238,24 +1262,24 @@ ${i}${h}`;
1238
1262
  } else
1239
1263
  return `${d}${o}${f.join(" ")}${o}${h}`;
1240
1264
  }
1241
- function Pe({ indent: s, options: { commentString: e } }, t, n, i) {
1265
+ function je({ indent: s, options: { commentString: e } }, t, n, i) {
1242
1266
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1243
- const r = F(e(n), s);
1267
+ const r = U(e(n), s);
1244
1268
  t.push(r.trimStart());
1245
1269
  }
1246
1270
  }
1247
- function H(s, e) {
1271
+ function X(s, e) {
1248
1272
  const t = E(e) ? e.value : e;
1249
1273
  for (const n of s)
1250
- if (I(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1274
+ if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1251
1275
  return n;
1252
1276
  }
1253
- class P extends Gt {
1277
+ class K extends Wt {
1254
1278
  static get tagName() {
1255
1279
  return "tag:yaml.org,2002:map";
1256
1280
  }
1257
1281
  constructor(e) {
1258
- super(V, e), this.items = [];
1282
+ super(G, e), this.items = [];
1259
1283
  }
1260
1284
  /**
1261
1285
  * A generic collection parsing method that can be extended
@@ -1267,7 +1291,7 @@ class P extends Gt {
1267
1291
  c = r.call(t, a, c);
1268
1292
  else if (Array.isArray(r) && !r.includes(a))
1269
1293
  return;
1270
- (c !== void 0 || i) && o.items.push(dt(a, c, n));
1294
+ (c !== void 0 || i) && o.items.push(mt(a, c, n));
1271
1295
  };
1272
1296
  if (t instanceof Map)
1273
1297
  for (const [a, c] of t)
@@ -1286,12 +1310,12 @@ class P extends Gt {
1286
1310
  add(e, t) {
1287
1311
  var o;
1288
1312
  let n;
1289
- I(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e == null ? void 0 : e.value) : n = new v(e.key, e.value);
1290
- const i = H(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
1313
+ T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e == null ? void 0 : e.value) : n = new v(e.key, e.value);
1314
+ const i = X(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
1291
1315
  if (i) {
1292
1316
  if (!t)
1293
1317
  throw new Error(`Key ${n.key} already set`);
1294
- E(i.value) && Yt(n.value) ? i.value.value = n.value : i.value = n.value;
1318
+ E(i.value) && Qt(n.value) ? i.value.value = n.value : i.value = n.value;
1295
1319
  } else if (r) {
1296
1320
  const l = this.items.findIndex((a) => r(n, a) < 0);
1297
1321
  l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
@@ -1299,15 +1323,15 @@ class P extends Gt {
1299
1323
  this.items.push(n);
1300
1324
  }
1301
1325
  delete(e) {
1302
- const t = H(this.items, e);
1326
+ const t = X(this.items, e);
1303
1327
  return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
1304
1328
  }
1305
1329
  get(e, t) {
1306
- const n = H(this.items, e), i = n == null ? void 0 : n.value;
1330
+ const n = X(this.items, e), i = n == null ? void 0 : n.value;
1307
1331
  return (!t && E(i) ? i.value : i) ?? void 0;
1308
1332
  }
1309
1333
  has(e) {
1310
- return !!H(this.items, e);
1334
+ return !!X(this.items, e);
1311
1335
  }
1312
1336
  set(e, t) {
1313
1337
  this.add(new v(e, t), !0);
@@ -1321,16 +1345,16 @@ class P extends Gt {
1321
1345
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1322
1346
  t != null && t.onCreate && t.onCreate(i);
1323
1347
  for (const r of this.items)
1324
- Xt(t, i, r);
1348
+ xt(t, i, r);
1325
1349
  return i;
1326
1350
  }
1327
1351
  toString(e, t, n) {
1328
1352
  if (!e)
1329
1353
  return JSON.stringify(this);
1330
1354
  for (const i of this.items)
1331
- if (!I(i))
1355
+ if (!T(i))
1332
1356
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1333
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), zt(this, e, {
1357
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), es(this, e, {
1334
1358
  blockItemPrefix: "",
1335
1359
  flowChars: { start: "{", end: "}" },
1336
1360
  itemIndent: e.indent || "",
@@ -1339,22 +1363,22 @@ class P extends Gt {
1339
1363
  });
1340
1364
  }
1341
1365
  }
1342
- const pe = {
1366
+ const me = {
1343
1367
  collection: "map",
1344
1368
  default: !0,
1345
- nodeClass: P,
1369
+ nodeClass: K,
1346
1370
  tag: "tag:yaml.org,2002:map",
1347
1371
  resolve(s, e) {
1348
- return he(s) || e("Expected a mapping for this tag"), s;
1372
+ return de(s) || e("Expected a mapping for this tag"), s;
1349
1373
  },
1350
- createNode: (s, e, t) => P.from(s, e, t)
1374
+ createNode: (s, e, t) => K.from(s, e, t)
1351
1375
  };
1352
- class Y extends Gt {
1376
+ class W extends Wt {
1353
1377
  static get tagName() {
1354
1378
  return "tag:yaml.org,2002:seq";
1355
1379
  }
1356
1380
  constructor(e) {
1357
- super(fe, e), this.items = [];
1381
+ super(he, e), this.items = [];
1358
1382
  }
1359
1383
  add(e) {
1360
1384
  this.items.push(e);
@@ -1368,11 +1392,11 @@ class Y extends Gt {
1368
1392
  * @returns `true` if the item was found and removed.
1369
1393
  */
1370
1394
  delete(e) {
1371
- const t = Ie(e);
1395
+ const t = Le(e);
1372
1396
  return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
1373
1397
  }
1374
1398
  get(e, t) {
1375
- const n = Ie(e);
1399
+ const n = Le(e);
1376
1400
  if (typeof n != "number")
1377
1401
  return;
1378
1402
  const i = this.items[n];
@@ -1385,7 +1409,7 @@ class Y extends Gt {
1385
1409
  * It may be wrapped in a `Scalar`.
1386
1410
  */
1387
1411
  has(e) {
1388
- const t = Ie(e);
1412
+ const t = Le(e);
1389
1413
  return typeof t == "number" && t < this.items.length;
1390
1414
  }
1391
1415
  /**
@@ -1396,22 +1420,22 @@ class Y extends Gt {
1396
1420
  * It may be wrapped in a `Scalar`.
1397
1421
  */
1398
1422
  set(e, t) {
1399
- const n = Ie(e);
1423
+ const n = Le(e);
1400
1424
  if (typeof n != "number")
1401
1425
  throw new Error(`Expected a valid index, not ${e}.`);
1402
1426
  const i = this.items[n];
1403
- E(i) && Yt(t) ? i.value = t : this.items[n] = t;
1427
+ E(i) && Qt(t) ? i.value = t : this.items[n] = t;
1404
1428
  }
1405
1429
  toJSON(e, t) {
1406
1430
  const n = [];
1407
1431
  t != null && t.onCreate && t.onCreate(n);
1408
1432
  let i = 0;
1409
1433
  for (const r of this.items)
1410
- n.push(j(r, String(i++), t));
1434
+ n.push(P(r, String(i++), t));
1411
1435
  return n;
1412
1436
  }
1413
1437
  toString(e, t, n) {
1414
- return e ? zt(this, e, {
1438
+ return e ? es(this, e, {
1415
1439
  blockItemPrefix: "- ",
1416
1440
  flowChars: { start: "[", end: "]" },
1417
1441
  itemIndent: (e.indent || "") + " ",
@@ -1428,49 +1452,49 @@ class Y extends Gt {
1428
1452
  const a = t instanceof Set ? l : String(o++);
1429
1453
  l = i.call(t, a, l);
1430
1454
  }
1431
- r.items.push(Se(l, void 0, n));
1455
+ r.items.push(ke(l, void 0, n));
1432
1456
  }
1433
1457
  }
1434
1458
  return r;
1435
1459
  }
1436
1460
  }
1437
- function Ie(s) {
1461
+ function Le(s) {
1438
1462
  let e = E(s) ? s.value : s;
1439
1463
  return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
1440
1464
  }
1441
- const me = {
1465
+ const ye = {
1442
1466
  collection: "seq",
1443
1467
  default: !0,
1444
- nodeClass: Y,
1468
+ nodeClass: W,
1445
1469
  tag: "tag:yaml.org,2002:seq",
1446
1470
  resolve(s, e) {
1447
- return de(s) || e("Expected a sequence for this tag"), s;
1471
+ return pe(s) || e("Expected a sequence for this tag"), s;
1448
1472
  },
1449
- createNode: (s, e, t) => Y.from(s, e, t)
1450
- }, Ve = {
1473
+ createNode: (s, e, t) => W.from(s, e, t)
1474
+ }, Ye = {
1451
1475
  identify: (s) => typeof s == "string",
1452
1476
  default: !0,
1453
1477
  tag: "tag:yaml.org,2002:str",
1454
1478
  resolve: (s) => s,
1455
1479
  stringify(s, e, t, n) {
1456
- return e = Object.assign({ actualString: !0 }, e), Oe(s, e, t, n);
1480
+ return e = Object.assign({ actualString: !0 }, e), Ae(s, e, t, n);
1457
1481
  }
1458
- }, Je = {
1482
+ }, Ge = {
1459
1483
  identify: (s) => s == null,
1460
- createNode: () => new O(null),
1484
+ createNode: () => new A(null),
1461
1485
  default: !0,
1462
1486
  tag: "tag:yaml.org,2002:null",
1463
1487
  test: /^(?:~|[Nn]ull|NULL)?$/,
1464
- resolve: () => new O(null),
1465
- stringify: ({ source: s }, e) => typeof s == "string" && Je.test.test(s) ? s : e.options.nullStr
1466
- }, pt = {
1488
+ resolve: () => new A(null),
1489
+ stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
1490
+ }, yt = {
1467
1491
  identify: (s) => typeof s == "boolean",
1468
1492
  default: !0,
1469
1493
  tag: "tag:yaml.org,2002:bool",
1470
1494
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1471
- resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1495
+ resolve: (s) => new A(s[0] === "t" || s[0] === "T"),
1472
1496
  stringify({ source: s, value: e }, t) {
1473
- if (s && pt.test.test(s)) {
1497
+ if (s && yt.test.test(s)) {
1474
1498
  const n = s[0] === "t" || s[0] === "T";
1475
1499
  if (e === n)
1476
1500
  return s;
@@ -1494,14 +1518,14 @@ function q({ format: s, minFractionDigits: e, tag: t, value: n }) {
1494
1518
  }
1495
1519
  return r;
1496
1520
  }
1497
- const Zt = {
1521
+ const ts = {
1498
1522
  identify: (s) => typeof s == "number",
1499
1523
  default: !0,
1500
1524
  tag: "tag:yaml.org,2002:float",
1501
1525
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1502
1526
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1503
1527
  stringify: q
1504
- }, xt = {
1528
+ }, ss = {
1505
1529
  identify: (s) => typeof s == "number",
1506
1530
  default: !0,
1507
1531
  tag: "tag:yaml.org,2002:float",
@@ -1512,92 +1536,92 @@ const Zt = {
1512
1536
  const e = Number(s.value);
1513
1537
  return isFinite(e) ? e.toExponential() : q(s);
1514
1538
  }
1515
- }, es = {
1539
+ }, ns = {
1516
1540
  identify: (s) => typeof s == "number",
1517
1541
  default: !0,
1518
1542
  tag: "tag:yaml.org,2002:float",
1519
1543
  test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
1520
1544
  resolve(s) {
1521
- const e = new O(parseFloat(s)), t = s.indexOf(".");
1545
+ const e = new A(parseFloat(s)), t = s.indexOf(".");
1522
1546
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1523
1547
  },
1524
1548
  stringify: q
1525
- }, Ye = (s) => typeof s == "bigint" || Number.isInteger(s), mt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1526
- function ts(s, e, t) {
1549
+ }, Qe = (s) => typeof s == "bigint" || Number.isInteger(s), gt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1550
+ function is(s, e, t) {
1527
1551
  const { value: n } = s;
1528
- return Ye(n) && n >= 0 ? t + n.toString(e) : q(s);
1552
+ return Qe(n) && n >= 0 ? t + n.toString(e) : q(s);
1529
1553
  }
1530
- const ss = {
1531
- identify: (s) => Ye(s) && s >= 0,
1554
+ const rs = {
1555
+ identify: (s) => Qe(s) && s >= 0,
1532
1556
  default: !0,
1533
1557
  tag: "tag:yaml.org,2002:int",
1534
1558
  format: "OCT",
1535
1559
  test: /^0o[0-7]+$/,
1536
- resolve: (s, e, t) => mt(s, 2, 8, t),
1537
- stringify: (s) => ts(s, 8, "0o")
1538
- }, ns = {
1539
- identify: Ye,
1560
+ resolve: (s, e, t) => gt(s, 2, 8, t),
1561
+ stringify: (s) => is(s, 8, "0o")
1562
+ }, os = {
1563
+ identify: Qe,
1540
1564
  default: !0,
1541
1565
  tag: "tag:yaml.org,2002:int",
1542
1566
  test: /^[-+]?[0-9]+$/,
1543
- resolve: (s, e, t) => mt(s, 0, 10, t),
1567
+ resolve: (s, e, t) => gt(s, 0, 10, t),
1544
1568
  stringify: q
1545
- }, is = {
1546
- identify: (s) => Ye(s) && s >= 0,
1569
+ }, ls = {
1570
+ identify: (s) => Qe(s) && s >= 0,
1547
1571
  default: !0,
1548
1572
  tag: "tag:yaml.org,2002:int",
1549
1573
  format: "HEX",
1550
1574
  test: /^0x[0-9a-fA-F]+$/,
1551
- resolve: (s, e, t) => mt(s, 2, 16, t),
1552
- stringify: (s) => ts(s, 16, "0x")
1553
- }, Ys = [
1554
- pe,
1575
+ resolve: (s, e, t) => gt(s, 2, 16, t),
1576
+ stringify: (s) => is(s, 16, "0x")
1577
+ }, Ws = [
1555
1578
  me,
1556
- Ve,
1557
- Je,
1558
- pt,
1579
+ ye,
1580
+ Ye,
1581
+ Ge,
1582
+ yt,
1583
+ rs,
1584
+ os,
1585
+ ls,
1586
+ ts,
1559
1587
  ss,
1560
- ns,
1561
- is,
1562
- Zt,
1563
- xt,
1564
- es
1588
+ ns
1565
1589
  ];
1566
- function Lt(s) {
1590
+ function _t(s) {
1567
1591
  return typeof s == "bigint" || Number.isInteger(s);
1568
1592
  }
1569
- const Te = ({ value: s }) => JSON.stringify(s), Gs = [
1593
+ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1570
1594
  {
1571
1595
  identify: (s) => typeof s == "string",
1572
1596
  default: !0,
1573
1597
  tag: "tag:yaml.org,2002:str",
1574
1598
  resolve: (s) => s,
1575
- stringify: Te
1599
+ stringify: $e
1576
1600
  },
1577
1601
  {
1578
1602
  identify: (s) => s == null,
1579
- createNode: () => new O(null),
1603
+ createNode: () => new A(null),
1580
1604
  default: !0,
1581
1605
  tag: "tag:yaml.org,2002:null",
1582
1606
  test: /^null$/,
1583
1607
  resolve: () => null,
1584
- stringify: Te
1608
+ stringify: $e
1585
1609
  },
1586
1610
  {
1587
1611
  identify: (s) => typeof s == "boolean",
1588
1612
  default: !0,
1589
1613
  tag: "tag:yaml.org,2002:bool",
1590
- test: /^true|false$/,
1614
+ test: /^true$|^false$/,
1591
1615
  resolve: (s) => s === "true",
1592
- stringify: Te
1616
+ stringify: $e
1593
1617
  },
1594
1618
  {
1595
- identify: Lt,
1619
+ identify: _t,
1596
1620
  default: !0,
1597
1621
  tag: "tag:yaml.org,2002:int",
1598
1622
  test: /^-?(?:0|[1-9][0-9]*)$/,
1599
1623
  resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1600
- stringify: ({ value: s }) => Lt(s) ? s.toString() : JSON.stringify(s)
1624
+ stringify: ({ value: s }) => _t(s) ? s.toString() : JSON.stringify(s)
1601
1625
  },
1602
1626
  {
1603
1627
  identify: (s) => typeof s == "number",
@@ -1605,16 +1629,16 @@ const Te = ({ value: s }) => JSON.stringify(s), Gs = [
1605
1629
  tag: "tag:yaml.org,2002:float",
1606
1630
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1607
1631
  resolve: (s) => parseFloat(s),
1608
- stringify: Te
1632
+ stringify: $e
1609
1633
  }
1610
- ], Qs = {
1634
+ ], Xs = {
1611
1635
  default: !0,
1612
1636
  tag: "",
1613
1637
  test: /^/,
1614
1638
  resolve(s, e) {
1615
1639
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1616
1640
  }
1617
- }, Ws = [pe, me].concat(Gs, Qs), yt = {
1641
+ }, zs = [me, ye].concat(Hs, Xs), bt = {
1618
1642
  identify: (s) => s instanceof Uint8Array,
1619
1643
  // Buffer inherits from Uint8Array
1620
1644
  default: !1,
@@ -1628,8 +1652,6 @@ const Te = ({ value: s }) => JSON.stringify(s), Gs = [
1628
1652
  * document.querySelector('#photo').src = URL.createObjectURL(blob)
1629
1653
  */
1630
1654
  resolve(s, e) {
1631
- if (typeof Buffer == "function")
1632
- return Buffer.from(s, "base64");
1633
1655
  if (typeof atob == "function") {
1634
1656
  const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
1635
1657
  for (let i = 0; i < t.length; ++i)
@@ -1639,35 +1661,35 @@ const Te = ({ value: s }) => JSON.stringify(s), Gs = [
1639
1661
  return e("This environment does not support reading binary tags; either Buffer or atob is required"), s;
1640
1662
  },
1641
1663
  stringify({ comment: s, type: e, value: t }, n, i, r) {
1664
+ if (!t)
1665
+ return "";
1642
1666
  const o = t;
1643
1667
  let l;
1644
- if (typeof Buffer == "function")
1645
- l = o instanceof Buffer ? o.toString("base64") : Buffer.from(o.buffer).toString("base64");
1646
- else if (typeof btoa == "function") {
1668
+ if (typeof btoa == "function") {
1647
1669
  let a = "";
1648
1670
  for (let c = 0; c < o.length; ++c)
1649
1671
  a += String.fromCharCode(o[c]);
1650
1672
  l = btoa(a);
1651
1673
  } else
1652
1674
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
1653
- if (e || (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
1654
- const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), m = new Array(c);
1675
+ if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
1676
+ const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
1655
1677
  for (let f = 0, d = 0; f < c; ++f, d += a)
1656
- m[f] = l.substr(d, a);
1657
- l = m.join(e === O.BLOCK_LITERAL ? `
1678
+ p[f] = l.substr(d, a);
1679
+ l = p.join(e === A.BLOCK_LITERAL ? `
1658
1680
  ` : " ");
1659
1681
  }
1660
- return Oe({ comment: s, type: e, value: l }, n, i, r);
1682
+ return Ae({ comment: s, type: e, value: l }, n, i, r);
1661
1683
  }
1662
1684
  };
1663
- function rs(s, e) {
1664
- if (de(s))
1685
+ function as(s, e) {
1686
+ if (pe(s))
1665
1687
  for (let t = 0; t < s.items.length; ++t) {
1666
1688
  let n = s.items[t];
1667
- if (!I(n)) {
1668
- if (he(n)) {
1689
+ if (!T(n)) {
1690
+ if (de(n)) {
1669
1691
  n.items.length > 1 && e("Each pair must have its own sequence indicator");
1670
- const i = n.items[0] || new v(new O(null));
1692
+ const i = n.items[0] || new v(new A(null));
1671
1693
  if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
1672
1694
  ${i.key.commentBefore}` : n.commentBefore), n.comment) {
1673
1695
  const r = i.value ?? i.key;
@@ -1676,15 +1698,15 @@ ${r.comment}` : n.comment;
1676
1698
  }
1677
1699
  n = i;
1678
1700
  }
1679
- s.items[t] = I(n) ? n : new v(n);
1701
+ s.items[t] = T(n) ? n : new v(n);
1680
1702
  }
1681
1703
  }
1682
1704
  else
1683
1705
  e("Expected a sequence for this tag");
1684
1706
  return s;
1685
1707
  }
1686
- function os(s, e, t) {
1687
- const { replacer: n } = t, i = new Y(s);
1708
+ function cs(s, e, t) {
1709
+ const { replacer: n } = t, i = new W(s);
1688
1710
  i.tag = "tag:yaml.org,2002:pairs";
1689
1711
  let r = 0;
1690
1712
  if (e && Symbol.iterator in Object(e))
@@ -1704,20 +1726,20 @@ function os(s, e, t) {
1704
1726
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
1705
1727
  } else
1706
1728
  l = o;
1707
- i.items.push(dt(l, a, t));
1729
+ i.items.push(mt(l, a, t));
1708
1730
  }
1709
1731
  return i;
1710
1732
  }
1711
- const gt = {
1733
+ const wt = {
1712
1734
  collection: "seq",
1713
1735
  default: !1,
1714
1736
  tag: "tag:yaml.org,2002:pairs",
1715
- resolve: rs,
1716
- createNode: os
1737
+ resolve: as,
1738
+ createNode: cs
1717
1739
  };
1718
- class oe extends Y {
1740
+ class ae extends W {
1719
1741
  constructor() {
1720
- super(), this.add = P.prototype.add.bind(this), this.delete = P.prototype.delete.bind(this), this.get = P.prototype.get.bind(this), this.has = P.prototype.has.bind(this), this.set = P.prototype.set.bind(this), this.tag = oe.tag;
1742
+ super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ae.tag;
1721
1743
  }
1722
1744
  /**
1723
1745
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
@@ -1730,57 +1752,57 @@ class oe extends Y {
1730
1752
  t != null && t.onCreate && t.onCreate(n);
1731
1753
  for (const i of this.items) {
1732
1754
  let r, o;
1733
- if (I(i) ? (r = j(i.key, "", t), o = j(i.value, r, t)) : r = j(i, "", t), n.has(r))
1755
+ if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1734
1756
  throw new Error("Ordered maps must not include duplicate keys");
1735
1757
  n.set(r, o);
1736
1758
  }
1737
1759
  return n;
1738
1760
  }
1739
1761
  static from(e, t, n) {
1740
- const i = os(e, t, n), r = new this();
1762
+ const i = cs(e, t, n), r = new this();
1741
1763
  return r.items = i.items, r;
1742
1764
  }
1743
1765
  }
1744
- oe.tag = "tag:yaml.org,2002:omap";
1745
- const bt = {
1766
+ ae.tag = "tag:yaml.org,2002:omap";
1767
+ const St = {
1746
1768
  collection: "seq",
1747
1769
  identify: (s) => s instanceof Map,
1748
- nodeClass: oe,
1770
+ nodeClass: ae,
1749
1771
  default: !1,
1750
1772
  tag: "tag:yaml.org,2002:omap",
1751
1773
  resolve(s, e) {
1752
- const t = rs(s, e), n = [];
1774
+ const t = as(s, e), n = [];
1753
1775
  for (const { key: i } of t.items)
1754
1776
  E(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1755
- return Object.assign(new oe(), t);
1777
+ return Object.assign(new ae(), t);
1756
1778
  },
1757
- createNode: (s, e, t) => oe.from(s, e, t)
1779
+ createNode: (s, e, t) => ae.from(s, e, t)
1758
1780
  };
1759
- function ls({ value: s, source: e }, t) {
1760
- return e && (s ? as : cs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1781
+ function fs({ value: s, source: e }, t) {
1782
+ return e && (s ? us : hs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1761
1783
  }
1762
- const as = {
1784
+ const us = {
1763
1785
  identify: (s) => s === !0,
1764
1786
  default: !0,
1765
1787
  tag: "tag:yaml.org,2002:bool",
1766
1788
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1767
- resolve: () => new O(!0),
1768
- stringify: ls
1769
- }, cs = {
1789
+ resolve: () => new A(!0),
1790
+ stringify: fs
1791
+ }, hs = {
1770
1792
  identify: (s) => s === !1,
1771
1793
  default: !0,
1772
1794
  tag: "tag:yaml.org,2002:bool",
1773
1795
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1774
- resolve: () => new O(!1),
1775
- stringify: ls
1776
- }, Hs = {
1796
+ resolve: () => new A(!1),
1797
+ stringify: fs
1798
+ }, Zs = {
1777
1799
  identify: (s) => typeof s == "number",
1778
1800
  default: !0,
1779
1801
  tag: "tag:yaml.org,2002:float",
1780
1802
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1781
1803
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1782
1804
  stringify: q
1783
- }, Xs = {
1805
+ }, xs = {
1784
1806
  identify: (s) => typeof s == "number",
1785
1807
  default: !0,
1786
1808
  tag: "tag:yaml.org,2002:float",
@@ -1791,13 +1813,13 @@ const as = {
1791
1813
  const e = Number(s.value);
1792
1814
  return isFinite(e) ? e.toExponential() : q(s);
1793
1815
  }
1794
- }, zs = {
1816
+ }, en = {
1795
1817
  identify: (s) => typeof s == "number",
1796
1818
  default: !0,
1797
1819
  tag: "tag:yaml.org,2002:float",
1798
1820
  test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
1799
1821
  resolve(s) {
1800
- const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1822
+ const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1801
1823
  if (t !== -1) {
1802
1824
  const n = s.substring(t + 1).replace(/_/g, "");
1803
1825
  n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
@@ -1805,8 +1827,8 @@ const as = {
1805
1827
  return e;
1806
1828
  },
1807
1829
  stringify: q
1808
- }, Ae = (s) => typeof s == "bigint" || Number.isInteger(s);
1809
- function Ge(s, e, t, { intAsBigInt: n }) {
1830
+ }, Ee = (s) => typeof s == "bigint" || Number.isInteger(s);
1831
+ function We(s, e, t, { intAsBigInt: n }) {
1810
1832
  const i = s[0];
1811
1833
  if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
1812
1834
  switch (t) {
@@ -1826,66 +1848,66 @@ function Ge(s, e, t, { intAsBigInt: n }) {
1826
1848
  const r = parseInt(s, t);
1827
1849
  return i === "-" ? -1 * r : r;
1828
1850
  }
1829
- function wt(s, e, t) {
1851
+ function kt(s, e, t) {
1830
1852
  const { value: n } = s;
1831
- if (Ae(n)) {
1853
+ if (Ee(n)) {
1832
1854
  const i = n.toString(e);
1833
1855
  return n < 0 ? "-" + t + i.substr(1) : t + i;
1834
1856
  }
1835
1857
  return q(s);
1836
1858
  }
1837
- const Zs = {
1838
- identify: Ae,
1859
+ const tn = {
1860
+ identify: Ee,
1839
1861
  default: !0,
1840
1862
  tag: "tag:yaml.org,2002:int",
1841
1863
  format: "BIN",
1842
1864
  test: /^[-+]?0b[0-1_]+$/,
1843
- resolve: (s, e, t) => Ge(s, 2, 2, t),
1844
- stringify: (s) => wt(s, 2, "0b")
1845
- }, xs = {
1846
- identify: Ae,
1865
+ resolve: (s, e, t) => We(s, 2, 2, t),
1866
+ stringify: (s) => kt(s, 2, "0b")
1867
+ }, sn = {
1868
+ identify: Ee,
1847
1869
  default: !0,
1848
1870
  tag: "tag:yaml.org,2002:int",
1849
1871
  format: "OCT",
1850
1872
  test: /^[-+]?0[0-7_]+$/,
1851
- resolve: (s, e, t) => Ge(s, 1, 8, t),
1852
- stringify: (s) => wt(s, 8, "0")
1853
- }, en = {
1854
- identify: Ae,
1873
+ resolve: (s, e, t) => We(s, 1, 8, t),
1874
+ stringify: (s) => kt(s, 8, "0")
1875
+ }, nn = {
1876
+ identify: Ee,
1855
1877
  default: !0,
1856
1878
  tag: "tag:yaml.org,2002:int",
1857
1879
  test: /^[-+]?[0-9][0-9_]*$/,
1858
- resolve: (s, e, t) => Ge(s, 0, 10, t),
1880
+ resolve: (s, e, t) => We(s, 0, 10, t),
1859
1881
  stringify: q
1860
- }, tn = {
1861
- identify: Ae,
1882
+ }, rn = {
1883
+ identify: Ee,
1862
1884
  default: !0,
1863
1885
  tag: "tag:yaml.org,2002:int",
1864
1886
  format: "HEX",
1865
1887
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1866
- resolve: (s, e, t) => Ge(s, 2, 16, t),
1867
- stringify: (s) => wt(s, 16, "0x")
1888
+ resolve: (s, e, t) => We(s, 2, 16, t),
1889
+ stringify: (s) => kt(s, 16, "0x")
1868
1890
  };
1869
- class le extends P {
1891
+ class ce extends K {
1870
1892
  constructor(e) {
1871
- super(e), this.tag = le.tag;
1893
+ super(e), this.tag = ce.tag;
1872
1894
  }
1873
1895
  add(e) {
1874
1896
  let t;
1875
- I(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new v(e.key, null) : t = new v(e, null), H(this.items, t.key) || this.items.push(t);
1897
+ T(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new v(e.key, null) : t = new v(e, null), X(this.items, t.key) || this.items.push(t);
1876
1898
  }
1877
1899
  /**
1878
1900
  * If `keepPair` is `true`, returns the Pair matching `key`.
1879
1901
  * Otherwise, returns the value of that Pair's key.
1880
1902
  */
1881
1903
  get(e, t) {
1882
- const n = H(this.items, e);
1883
- return !t && I(n) ? E(n.key) ? n.key.value : n.key : n;
1904
+ const n = X(this.items, e);
1905
+ return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
1884
1906
  }
1885
1907
  set(e, t) {
1886
1908
  if (typeof t != "boolean")
1887
1909
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1888
- const n = H(this.items, e);
1910
+ const n = X(this.items, e);
1889
1911
  n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
1890
1912
  }
1891
1913
  toJSON(e, t) {
@@ -1902,33 +1924,33 @@ class le extends P {
1902
1924
  const { replacer: i } = n, r = new this(e);
1903
1925
  if (t && Symbol.iterator in Object(t))
1904
1926
  for (let o of t)
1905
- typeof i == "function" && (o = i.call(t, o, o)), r.items.push(dt(o, null, n));
1927
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push(mt(o, null, n));
1906
1928
  return r;
1907
1929
  }
1908
1930
  }
1909
- le.tag = "tag:yaml.org,2002:set";
1910
- const St = {
1931
+ ce.tag = "tag:yaml.org,2002:set";
1932
+ const Nt = {
1911
1933
  collection: "map",
1912
1934
  identify: (s) => s instanceof Set,
1913
- nodeClass: le,
1935
+ nodeClass: ce,
1914
1936
  default: !1,
1915
1937
  tag: "tag:yaml.org,2002:set",
1916
- createNode: (s, e, t) => le.from(s, e, t),
1938
+ createNode: (s, e, t) => ce.from(s, e, t),
1917
1939
  resolve(s, e) {
1918
- if (he(s)) {
1940
+ if (de(s)) {
1919
1941
  if (s.hasAllNullValues(!0))
1920
- return Object.assign(new le(), s);
1942
+ return Object.assign(new ce(), s);
1921
1943
  e("Set items must all have null values");
1922
1944
  } else
1923
1945
  e("Expected a mapping for this tag");
1924
1946
  return s;
1925
1947
  }
1926
1948
  };
1927
- function kt(s, e) {
1949
+ function Ot(s, e) {
1928
1950
  const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
1929
1951
  return t === "-" ? i(-1) * r : r;
1930
1952
  }
1931
- function fs(s) {
1953
+ function ds(s) {
1932
1954
  let { value: e } = s, t = (o) => o;
1933
1955
  if (typeof e == "bigint")
1934
1956
  t = (o) => BigInt(o);
@@ -1939,23 +1961,23 @@ function fs(s) {
1939
1961
  const i = t(60), r = [e % i];
1940
1962
  return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
1941
1963
  }
1942
- const us = {
1964
+ const ps = {
1943
1965
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
1944
1966
  default: !0,
1945
1967
  tag: "tag:yaml.org,2002:int",
1946
1968
  format: "TIME",
1947
1969
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
1948
- resolve: (s, e, { intAsBigInt: t }) => kt(s, t),
1949
- stringify: fs
1950
- }, hs = {
1970
+ resolve: (s, e, { intAsBigInt: t }) => Ot(s, t),
1971
+ stringify: ds
1972
+ }, ms = {
1951
1973
  identify: (s) => typeof s == "number",
1952
1974
  default: !0,
1953
1975
  tag: "tag:yaml.org,2002:float",
1954
1976
  format: "TIME",
1955
1977
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
1956
- resolve: (s) => kt(s, !1),
1957
- stringify: fs
1958
- }, Qe = {
1978
+ resolve: (s) => Ot(s, !1),
1979
+ stringify: ds
1980
+ }, He = {
1959
1981
  identify: (s) => s instanceof Date,
1960
1982
  default: !0,
1961
1983
  tag: "tag:yaml.org,2002:timestamp",
@@ -1964,105 +1986,110 @@ const us = {
1964
1986
  // assumed to be 00:00:00Z (start of day, UTC).
1965
1987
  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})?))?)?$"),
1966
1988
  resolve(s) {
1967
- const e = s.match(Qe.test);
1989
+ const e = s.match(He.test);
1968
1990
  if (!e)
1969
1991
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
1970
1992
  const [, t, n, i, r, o, l] = e.map(Number), a = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
1971
1993
  let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
1972
- const m = e[8];
1973
- if (m && m !== "Z") {
1974
- let f = kt(m, !1);
1994
+ const p = e[8];
1995
+ if (p && p !== "Z") {
1996
+ let f = Ot(p, !1);
1975
1997
  Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
1976
1998
  }
1977
1999
  return new Date(c);
1978
2000
  },
1979
- stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
1980
- }, $t = [
1981
- pe,
2001
+ stringify: ({ value: s }) => (s == null ? void 0 : s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")) ?? ""
2002
+ }, Ct = [
1982
2003
  me,
1983
- Ve,
1984
- Je,
1985
- as,
1986
- cs,
2004
+ ye,
2005
+ Ye,
2006
+ Ge,
2007
+ us,
2008
+ hs,
2009
+ tn,
2010
+ sn,
2011
+ nn,
2012
+ rn,
1987
2013
  Zs,
1988
2014
  xs,
1989
2015
  en,
1990
- tn,
1991
- Hs,
1992
- Xs,
1993
- zs,
1994
- yt,
1995
2016
  bt,
1996
- gt,
2017
+ V,
1997
2018
  St,
1998
- us,
1999
- hs,
2000
- Qe
2001
- ], _t = /* @__PURE__ */ new Map([
2002
- ["core", Ys],
2003
- ["failsafe", [pe, me, Ve]],
2004
- ["json", Ws],
2005
- ["yaml11", $t],
2006
- ["yaml-1.1", $t]
2007
- ]), Ct = {
2008
- binary: yt,
2009
- bool: pt,
2010
- float: es,
2011
- floatExp: xt,
2012
- floatNaN: Zt,
2013
- floatTime: hs,
2014
- int: ns,
2015
- intHex: is,
2016
- intOct: ss,
2017
- intTime: us,
2018
- map: pe,
2019
- null: Je,
2020
- omap: bt,
2021
- pairs: gt,
2022
- seq: me,
2023
- set: St,
2024
- timestamp: Qe
2025
- }, sn = {
2026
- "tag:yaml.org,2002:binary": yt,
2027
- "tag:yaml.org,2002:omap": bt,
2028
- "tag:yaml.org,2002:pairs": gt,
2029
- "tag:yaml.org,2002:set": St,
2030
- "tag:yaml.org,2002:timestamp": Qe
2019
+ wt,
2020
+ Nt,
2021
+ ps,
2022
+ ms,
2023
+ He
2024
+ ], vt = /* @__PURE__ */ new Map([
2025
+ ["core", Ws],
2026
+ ["failsafe", [me, ye, Ye]],
2027
+ ["json", zs],
2028
+ ["yaml11", Ct],
2029
+ ["yaml-1.1", Ct]
2030
+ ]), Bt = {
2031
+ binary: bt,
2032
+ bool: yt,
2033
+ float: ns,
2034
+ floatExp: ss,
2035
+ floatNaN: ts,
2036
+ floatTime: ms,
2037
+ int: os,
2038
+ intHex: ls,
2039
+ intOct: rs,
2040
+ intTime: ps,
2041
+ map: me,
2042
+ merge: V,
2043
+ null: Ge,
2044
+ omap: St,
2045
+ pairs: wt,
2046
+ seq: ye,
2047
+ set: Nt,
2048
+ timestamp: He
2049
+ }, on = {
2050
+ "tag:yaml.org,2002:binary": bt,
2051
+ "tag:yaml.org,2002:merge": V,
2052
+ "tag:yaml.org,2002:omap": St,
2053
+ "tag:yaml.org,2002:pairs": wt,
2054
+ "tag:yaml.org,2002:set": Nt,
2055
+ "tag:yaml.org,2002:timestamp": He
2031
2056
  };
2032
- function xe(s, e) {
2033
- let t = _t.get(e);
2034
- if (!t)
2057
+ function tt(s, e, t) {
2058
+ const n = vt.get(e);
2059
+ if (n && !s)
2060
+ return t && !n.includes(V) ? n.concat(V) : n.slice();
2061
+ let i = n;
2062
+ if (!i)
2035
2063
  if (Array.isArray(s))
2036
- t = [];
2064
+ i = [];
2037
2065
  else {
2038
- const n = Array.from(_t.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2039
- throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`);
2066
+ const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2067
+ throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
2040
2068
  }
2041
2069
  if (Array.isArray(s))
2042
- for (const n of s)
2043
- t = t.concat(n);
2044
- else typeof s == "function" && (t = s(t.slice()));
2045
- return t.map((n) => {
2046
- if (typeof n != "string")
2047
- return n;
2048
- const i = Ct[n];
2049
- if (i)
2050
- return i;
2051
- const r = Object.keys(Ct).map((o) => JSON.stringify(o)).join(", ");
2052
- throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2053
- });
2070
+ for (const r of s)
2071
+ i = i.concat(r);
2072
+ else typeof s == "function" && (i = s(i.slice()));
2073
+ return t && (i = i.concat(V)), i.reduce((r, o) => {
2074
+ const l = typeof o == "string" ? Bt[o] : o;
2075
+ if (!l) {
2076
+ const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
2077
+ throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
2078
+ }
2079
+ return r.includes(l) || r.push(l), r;
2080
+ }, []);
2054
2081
  }
2055
- const nn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2056
- class We {
2082
+ const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2083
+ class Xe {
2057
2084
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2058
- this.compat = Array.isArray(e) ? xe(e, "compat") : e ? xe(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? sn : {}, this.tags = xe(t, this.name), this.toStringOptions = l ?? null, Object.defineProperty(this, V, { value: pe }), Object.defineProperty(this, R, { value: Ve }), Object.defineProperty(this, fe, { value: me }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? nn : null;
2085
+ this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
2059
2086
  }
2060
2087
  clone() {
2061
- const e = Object.create(We.prototype, Object.getOwnPropertyDescriptors(this));
2088
+ const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
2062
2089
  return e.tags = this.tags.slice(), e;
2063
2090
  }
2064
2091
  }
2065
- function rn(s, e) {
2092
+ function an(s, e) {
2066
2093
  var a;
2067
2094
  const t = [];
2068
2095
  let n = e.directives === !0;
@@ -2071,44 +2098,44 @@ function rn(s, e) {
2071
2098
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2072
2099
  }
2073
2100
  n && t.push("---");
2074
- const i = Wt(s, e), { commentString: r } = i.options;
2101
+ const i = Xt(s, e), { commentString: r } = i.options;
2075
2102
  if (s.commentBefore) {
2076
2103
  t.length !== 1 && t.unshift("");
2077
2104
  const c = r(s.commentBefore);
2078
- t.unshift(F(c, ""));
2105
+ t.unshift(U(c, ""));
2079
2106
  }
2080
2107
  let o = !1, l = null;
2081
2108
  if (s.contents) {
2082
2109
  if ($(s.contents)) {
2083
2110
  if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2084
2111
  const f = r(s.contents.commentBefore);
2085
- t.push(F(f, ""));
2112
+ t.push(U(f, ""));
2086
2113
  }
2087
2114
  i.forceBlockIndent = !!s.comment, l = s.contents.comment;
2088
2115
  }
2089
2116
  const c = l ? void 0 : () => o = !0;
2090
- let m = ae(s.contents, i, () => l = null, c);
2091
- l && (m += W(m, "", r(l))), (m[0] === "|" || m[0] === ">") && t[t.length - 1] === "---" ? t[t.length - 1] = `--- ${m}` : t.push(m);
2117
+ let p = fe(s.contents, i, () => l = null, c);
2118
+ l && (p += H(p, "", r(l))), (p[0] === "|" || p[0] === ">") && t[t.length - 1] === "---" ? t[t.length - 1] = `--- ${p}` : t.push(p);
2092
2119
  } else
2093
- t.push(ae(s.contents, i));
2120
+ t.push(fe(s.contents, i));
2094
2121
  if ((a = s.directives) != null && a.docEnd)
2095
2122
  if (s.comment) {
2096
2123
  const c = r(s.comment);
2097
2124
  c.includes(`
2098
- `) ? (t.push("..."), t.push(F(c, ""))) : t.push(`... ${c}`);
2125
+ `) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
2099
2126
  } else
2100
2127
  t.push("...");
2101
2128
  else {
2102
2129
  let c = s.comment;
2103
- c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(F(r(c), "")));
2130
+ c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
2104
2131
  }
2105
2132
  return t.join(`
2106
2133
  `) + `
2107
2134
  `;
2108
2135
  }
2109
- class ye {
2136
+ class ge {
2110
2137
  constructor(e, t, n) {
2111
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, K, { value: rt });
2138
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, j, { value: lt });
2112
2139
  let i = null;
2113
2140
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2114
2141
  const r = Object.assign({
@@ -2117,6 +2144,7 @@ class ye {
2117
2144
  logLevel: "warn",
2118
2145
  prettyErrors: !0,
2119
2146
  strict: !0,
2147
+ stringKeys: !1,
2120
2148
  uniqueKeys: !0,
2121
2149
  version: "1.2"
2122
2150
  }, n);
@@ -2130,18 +2158,18 @@ class ye {
2130
2158
  * Custom Node values that inherit from `Object` still refer to their original instances.
2131
2159
  */
2132
2160
  clone() {
2133
- const e = Object.create(ye.prototype, {
2134
- [K]: { value: rt }
2161
+ const e = Object.create(ge.prototype, {
2162
+ [j]: { value: lt }
2135
2163
  });
2136
2164
  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 = $(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2137
2165
  }
2138
2166
  /** Adds a value to the document. */
2139
2167
  add(e) {
2140
- ee(this.contents) && this.contents.add(e);
2168
+ se(this.contents) && this.contents.add(e);
2141
2169
  }
2142
2170
  /** Adds a value to the document. */
2143
2171
  addIn(e, t) {
2144
- ee(this.contents) && this.contents.addIn(e, t);
2172
+ se(this.contents) && this.contents.addIn(e, t);
2145
2173
  }
2146
2174
  /**
2147
2175
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -2154,21 +2182,21 @@ class ye {
2154
2182
  */
2155
2183
  createAlias(e, t) {
2156
2184
  if (!e.anchor) {
2157
- const n = Vt(this);
2185
+ const n = Yt(this);
2158
2186
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2159
- !t || n.has(t) ? Jt(t || "a", n) : t;
2187
+ !t || n.has(t) ? Gt(t || "a", n) : t;
2160
2188
  }
2161
- return new qe(e.anchor);
2189
+ return new Re(e.anchor);
2162
2190
  }
2163
2191
  createNode(e, t, n) {
2164
2192
  let i;
2165
2193
  if (typeof t == "function")
2166
2194
  e = t.call({ "": e }, "", e), i = t;
2167
2195
  else if (Array.isArray(t)) {
2168
- const p = (w) => typeof w == "number" || w instanceof String || w instanceof Number, g = t.filter(p).map(String);
2169
- g.length > 0 && (t = t.concat(g)), i = t;
2196
+ const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
2197
+ b.length > 0 && (t = t.concat(b)), i = t;
2170
2198
  } else n === void 0 && t && (n = t, t = void 0);
2171
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: m } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = vs(
2199
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
2172
2200
  this,
2173
2201
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2174
2202
  o || "a"
@@ -2180,7 +2208,7 @@ class ye {
2180
2208
  replacer: i,
2181
2209
  schema: this.schema,
2182
2210
  sourceObjects: h
2183
- }, u = Se(e, m, y);
2211
+ }, u = ke(e, p, y);
2184
2212
  return l && L(u) && (u.flow = !0), d(), u;
2185
2213
  }
2186
2214
  /**
@@ -2196,14 +2224,14 @@ class ye {
2196
2224
  * @returns `true` if the item was found and removed.
2197
2225
  */
2198
2226
  delete(e) {
2199
- return ee(this.contents) ? this.contents.delete(e) : !1;
2227
+ return se(this.contents) ? this.contents.delete(e) : !1;
2200
2228
  }
2201
2229
  /**
2202
2230
  * Removes a value from the document.
2203
2231
  * @returns `true` if the item was found and removed.
2204
2232
  */
2205
2233
  deleteIn(e) {
2206
- return be(e) ? this.contents == null ? !1 : (this.contents = null, !0) : ee(this.contents) ? this.contents.deleteIn(e) : !1;
2234
+ return we(e) ? this.contents == null ? !1 : (this.contents = null, !0) : se(this.contents) ? this.contents.deleteIn(e) : !1;
2207
2235
  }
2208
2236
  /**
2209
2237
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -2219,7 +2247,7 @@ class ye {
2219
2247
  * `true` (collections are always returned intact).
2220
2248
  */
2221
2249
  getIn(e, t) {
2222
- return be(e) ? !t && E(this.contents) ? this.contents.value : this.contents : L(this.contents) ? this.contents.getIn(e, t) : void 0;
2250
+ return we(e) ? !t && E(this.contents) ? this.contents.value : this.contents : L(this.contents) ? this.contents.getIn(e, t) : void 0;
2223
2251
  }
2224
2252
  /**
2225
2253
  * Checks if the document includes a value with the key `key`.
@@ -2231,21 +2259,21 @@ class ye {
2231
2259
  * Checks if the document includes a value at `path`.
2232
2260
  */
2233
2261
  hasIn(e) {
2234
- return be(e) ? this.contents !== void 0 : L(this.contents) ? this.contents.hasIn(e) : !1;
2262
+ return we(e) ? this.contents !== void 0 : L(this.contents) ? this.contents.hasIn(e) : !1;
2235
2263
  }
2236
2264
  /**
2237
2265
  * Sets a value in this document. For `!!set`, `value` needs to be a
2238
2266
  * boolean to add/remove the item from the set.
2239
2267
  */
2240
2268
  set(e, t) {
2241
- this.contents == null ? this.contents = Me(this.schema, [e], t) : ee(this.contents) && this.contents.set(e, t);
2269
+ this.contents == null ? this.contents = Pe(this.schema, [e], t) : se(this.contents) && this.contents.set(e, t);
2242
2270
  }
2243
2271
  /**
2244
2272
  * Sets a value in this document. For `!!set`, `value` needs to be a
2245
2273
  * boolean to add/remove the item from the set.
2246
2274
  */
2247
2275
  setIn(e, t) {
2248
- be(e) ? this.contents = t : this.contents == null ? this.contents = Me(this.schema, Array.from(e), t) : ee(this.contents) && this.contents.setIn(e, t);
2276
+ we(e) ? this.contents = t : this.contents == null ? this.contents = Pe(this.schema, Array.from(e), t) : se(this.contents) && this.contents.setIn(e, t);
2249
2277
  }
2250
2278
  /**
2251
2279
  * Change the YAML version and schema used by the document.
@@ -2259,11 +2287,11 @@ class ye {
2259
2287
  let n;
2260
2288
  switch (e) {
2261
2289
  case "1.1":
2262
- this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { merge: !0, resolveKnownTags: !1, schema: "yaml-1.1" };
2290
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2263
2291
  break;
2264
2292
  case "1.2":
2265
2293
  case "next":
2266
- this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { merge: !1, resolveKnownTags: !0, schema: "core" };
2294
+ this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2267
2295
  break;
2268
2296
  case null:
2269
2297
  this.directives && delete this.directives, n = null;
@@ -2276,7 +2304,7 @@ class ye {
2276
2304
  if (t.schema instanceof Object)
2277
2305
  this.schema = t.schema;
2278
2306
  else if (n)
2279
- this.schema = new We(Object.assign(n, t));
2307
+ this.schema = new Xe(Object.assign(n, t));
2280
2308
  else
2281
2309
  throw new Error("With a null YAML version, the { schema: Schema } option is required");
2282
2310
  }
@@ -2289,11 +2317,11 @@ class ye {
2289
2317
  mapAsMap: n === !0,
2290
2318
  mapKeyWarned: !1,
2291
2319
  maxAliasCount: typeof i == "number" ? i : 100
2292
- }, a = j(this.contents, t ?? "", l);
2320
+ }, a = P(this.contents, t ?? "", l);
2293
2321
  if (typeof r == "function")
2294
- for (const { count: c, res: m } of l.anchors.values())
2295
- r(m, c);
2296
- return typeof o == "function" ? ie(o, { "": a }, "", a) : a;
2322
+ for (const { count: c, res: p } of l.anchors.values())
2323
+ r(p, c);
2324
+ return typeof o == "function" ? oe(o, { "": a }, "", a) : a;
2297
2325
  }
2298
2326
  /**
2299
2327
  * A JSON representation of the document `contents`.
@@ -2312,30 +2340,30 @@ class ye {
2312
2340
  const t = JSON.stringify(e.indent);
2313
2341
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2314
2342
  }
2315
- return rn(this, e);
2343
+ return an(this, e);
2316
2344
  }
2317
2345
  }
2318
- function ee(s) {
2346
+ function se(s) {
2319
2347
  if (L(s))
2320
2348
  return !0;
2321
2349
  throw new Error("Expected a YAML collection as document contents");
2322
2350
  }
2323
- class Nt extends Error {
2351
+ class At extends Error {
2324
2352
  constructor(e, t, n, i) {
2325
2353
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2326
2354
  }
2327
2355
  }
2328
- class X extends Nt {
2356
+ class z extends At {
2329
2357
  constructor(e, t, n) {
2330
2358
  super("YAMLParseError", e, t, n);
2331
2359
  }
2332
2360
  }
2333
- class ds extends Nt {
2361
+ class ys extends At {
2334
2362
  constructor(e, t, n) {
2335
2363
  super("YAMLWarning", e, t, n);
2336
2364
  }
2337
2365
  }
2338
- const je = (s, e) => (t) => {
2366
+ const De = (s, e) => (t) => {
2339
2367
  if (t.pos[0] === -1)
2340
2368
  return;
2341
2369
  t.linePos = t.pos.map((l) => e.linePos(l));
@@ -2363,55 +2391,56 @@ ${c}
2363
2391
  `;
2364
2392
  }
2365
2393
  };
2366
- function ce(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
2367
- let a = !1, c = l, m = l, f = "", d = "", h = !1, y = !1, u = null, p = null, g = null, w = null, N = null, S = null, A = null;
2368
- for (const b of s)
2369
- switch (y && (b.type !== "space" && b.type !== "newline" && b.type !== "comma" && r(b.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), u && (c && b.type !== "comment" && b.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), b.type) {
2394
+ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
2395
+ let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, S = null, N = null, w = null, k = null;
2396
+ for (const g of s)
2397
+ switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), u && (c && g.type !== "comment" && g.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), g.type) {
2370
2398
  case "space":
2371
- !e && (t !== "doc-start" || (n == null ? void 0 : n.type) !== "flow-collection") && b.source.includes(" ") && (u = b), m = !0;
2399
+ !e && (t !== "doc-start" || (n == null ? void 0 : n.type) !== "flow-collection") && g.source.includes(" ") && (u = g), p = !0;
2372
2400
  break;
2373
2401
  case "comment": {
2374
- m || r(b, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
2375
- const _ = b.source.substring(1) || " ";
2402
+ p || r(g, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
2403
+ const _ = g.source.substring(1) || " ";
2376
2404
  f ? f += d + _ : f = _, d = "", c = !1;
2377
2405
  break;
2378
2406
  }
2379
2407
  case "newline":
2380
- c ? f ? f += b.source : a = !0 : d += b.source, c = !0, h = !0, (p || g) && (w = b), m = !0;
2408
+ c ? f ? f += g.source : (!w || t !== "seq-item-ind") && (a = !0) : d += g.source, c = !0, h = !0, (m || b) && (S = g), p = !0;
2381
2409
  break;
2382
2410
  case "anchor":
2383
- p && r(b, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), b.source.endsWith(":") && r(b.offset + b.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), p = b, A === null && (A = b.offset), c = !1, m = !1, y = !0;
2411
+ m && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), m = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2384
2412
  break;
2385
2413
  case "tag": {
2386
- g && r(b, "MULTIPLE_TAGS", "A node can have at most one tag"), g = b, A === null && (A = b.offset), c = !1, m = !1, y = !0;
2414
+ b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2387
2415
  break;
2388
2416
  }
2389
2417
  case t:
2390
- (p || g) && r(b, "BAD_PROP_ORDER", `Anchors and tags must be after the ${b.source} indicator`), S && r(b, "UNEXPECTED_TOKEN", `Unexpected ${b.source} in ${e ?? "collection"}`), S = b, c = t === "seq-item-ind" || t === "explicit-key-ind", m = !1;
2418
+ (m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), w && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), w = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
2391
2419
  break;
2392
2420
  case "comma":
2393
2421
  if (e) {
2394
- N && r(b, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = b, c = !1, m = !1;
2422
+ N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
2395
2423
  break;
2396
2424
  }
2425
+ // else fallthrough
2397
2426
  default:
2398
- r(b, "UNEXPECTED_TOKEN", `Unexpected ${b.type} token`), c = !1, m = !1;
2427
+ r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
2399
2428
  }
2400
- const k = s[s.length - 1], T = k ? k.offset + k.source.length : i;
2429
+ const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
2401
2430
  return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), u && (c && u.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2402
2431
  comma: N,
2403
- found: S,
2432
+ found: w,
2404
2433
  spaceBefore: a,
2405
2434
  comment: f,
2406
2435
  hasNewline: h,
2407
- anchor: p,
2408
- tag: g,
2409
- newlineAfterProp: w,
2410
- end: T,
2411
- start: A ?? T
2436
+ anchor: m,
2437
+ tag: b,
2438
+ newlineAfterProp: S,
2439
+ end: I,
2440
+ start: k ?? I
2412
2441
  };
2413
2442
  }
2414
- function ke(s) {
2443
+ function Ne(s) {
2415
2444
  if (!s)
2416
2445
  return null;
2417
2446
  switch (s.type) {
@@ -2438,7 +2467,7 @@ function ke(s) {
2438
2467
  if (t.type === "newline")
2439
2468
  return !0;
2440
2469
  }
2441
- if (ke(e.key) || ke(e.value))
2470
+ if (Ne(e.key) || Ne(e.value))
2442
2471
  return !0;
2443
2472
  }
2444
2473
  return !1;
@@ -2446,45 +2475,46 @@ function ke(s) {
2446
2475
  return !0;
2447
2476
  }
2448
2477
  }
2449
- function ct(s, e, t) {
2478
+ function ut(s, e, t) {
2450
2479
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2451
2480
  const n = e.end[0];
2452
- n.indent === s && (n.source === "]" || n.source === "}") && ke(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2481
+ n.indent === s && (n.source === "]" || n.source === "}") && Ne(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2453
2482
  }
2454
2483
  }
2455
- function ps(s, e, t) {
2484
+ function gs(s, e, t) {
2456
2485
  const { uniqueKeys: n } = s.options;
2457
2486
  if (n === !1)
2458
2487
  return !1;
2459
- const i = typeof n == "function" ? n : (r, o) => r === o || E(r) && E(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
2488
+ const i = typeof n == "function" ? n : (r, o) => r === o || E(r) && E(o) && r.value === o.value;
2460
2489
  return e.some((r) => i(r.key, t));
2461
2490
  }
2462
- const vt = "All mapping items must start at the same column";
2463
- function on({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2464
- var m;
2465
- const o = (r == null ? void 0 : r.nodeClass) ?? P, l = new o(t.schema);
2491
+ const Mt = "All mapping items must start at the same column";
2492
+ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2493
+ var p;
2494
+ const o = (r == null ? void 0 : r.nodeClass) ?? K, l = new o(t.schema);
2466
2495
  t.atRoot && (t.atRoot = !1);
2467
2496
  let a = n.offset, c = null;
2468
2497
  for (const f of n.items) {
2469
- const { start: d, key: h, sep: y, value: u } = f, p = ce(d, {
2498
+ const { start: d, key: h, sep: y, value: u } = f, m = ue(d, {
2470
2499
  indicator: "explicit-key-ind",
2471
2500
  next: h ?? (y == null ? void 0 : y[0]),
2472
2501
  offset: a,
2473
2502
  onError: i,
2474
2503
  parentIndent: n.indent,
2475
2504
  startOnNewline: !0
2476
- }), g = !p.found;
2477
- if (g) {
2478
- if (h && (h.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in h && h.indent !== n.indent && i(a, "BAD_INDENT", vt)), !p.anchor && !p.tag && !y) {
2479
- c = p.end, p.comment && (l.comment ? l.comment += `
2480
- ` + p.comment : l.comment = p.comment);
2505
+ }), b = !m.found;
2506
+ if (b) {
2507
+ if (h && (h.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in h && h.indent !== n.indent && i(a, "BAD_INDENT", Mt)), !m.anchor && !m.tag && !y) {
2508
+ c = m.end, m.comment && (l.comment ? l.comment += `
2509
+ ` + m.comment : l.comment = m.comment);
2481
2510
  continue;
2482
2511
  }
2483
- (p.newlineAfterProp || ke(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2484
- } else ((m = p.found) == null ? void 0 : m.indent) !== n.indent && i(a, "BAD_INDENT", vt);
2485
- const w = p.end, N = h ? s(t, h, p, i) : e(t, w, d, null, p, i);
2486
- t.schema.compat && ct(n.indent, h, i), ps(t, l.items, N) && i(w, "DUPLICATE_KEY", "Map keys must be unique");
2487
- const S = ce(y ?? [], {
2512
+ (m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2513
+ } else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
2514
+ t.atKey = !0;
2515
+ const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
2516
+ t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(S, "DUPLICATE_KEY", "Map keys must be unique");
2517
+ const w = ue(y ?? [], {
2488
2518
  indicator: "map-value-ind",
2489
2519
  next: u,
2490
2520
  offset: N.range[2],
@@ -2492,27 +2522,27 @@ function on({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2492
2522
  parentIndent: n.indent,
2493
2523
  startOnNewline: !h || h.type === "block-scalar"
2494
2524
  });
2495
- if (a = S.end, S.found) {
2496
- g && ((u == null ? void 0 : u.type) === "block-map" && !S.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && p.start < S.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2497
- const A = u ? s(t, u, S, i) : e(t, a, y, null, S, i);
2498
- t.schema.compat && ct(n.indent, u, i), a = A.range[2];
2499
- const k = new v(N, A);
2500
- t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2525
+ if (a = w.end, w.found) {
2526
+ b && ((u == null ? void 0 : u.type) === "block-map" && !w.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < w.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2527
+ const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
2528
+ t.schema.compat && ut(n.indent, u, i), a = k.range[2];
2529
+ const O = new v(N, k);
2530
+ t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
2501
2531
  } else {
2502
- g && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (N.comment ? N.comment += `
2503
- ` + S.comment : N.comment = S.comment);
2504
- const A = new v(N);
2505
- t.options.keepSourceTokens && (A.srcToken = f), l.items.push(A);
2532
+ b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
2533
+ ` + w.comment : N.comment = w.comment);
2534
+ const k = new v(N);
2535
+ t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2506
2536
  }
2507
2537
  }
2508
2538
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
2509
2539
  }
2510
- function ln({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2511
- const o = (r == null ? void 0 : r.nodeClass) ?? Y, l = new o(t.schema);
2512
- t.atRoot && (t.atRoot = !1);
2540
+ function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2541
+ const o = (r == null ? void 0 : r.nodeClass) ?? W, l = new o(t.schema);
2542
+ t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2513
2543
  let a = n.offset, c = null;
2514
- for (const { start: m, value: f } of n.items) {
2515
- const d = ce(m, {
2544
+ for (const { start: p, value: f } of n.items) {
2545
+ const d = ue(p, {
2516
2546
  indicator: "seq-item-ind",
2517
2547
  next: f,
2518
2548
  offset: a,
@@ -2527,12 +2557,12 @@ function ln({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2527
2557
  c = d.end, d.comment && (l.comment = d.comment);
2528
2558
  continue;
2529
2559
  }
2530
- const h = f ? s(t, f, d, i) : e(t, d.end, m, null, d, i);
2531
- t.schema.compat && ct(n.indent, f, i), a = h.range[2], l.items.push(h);
2560
+ const h = f ? s(t, f, d, i) : e(t, d.end, p, null, d, i);
2561
+ t.schema.compat && ut(n.indent, f, i), a = h.range[2], l.items.push(h);
2532
2562
  }
2533
2563
  return l.range = [n.offset, a, c ?? a], l;
2534
2564
  }
2535
- function Ee(s, e, t, n) {
2565
+ function Ie(s, e, t, n) {
2536
2566
  let i = "";
2537
2567
  if (s) {
2538
2568
  let r = !1, o = "";
@@ -2544,8 +2574,8 @@ function Ee(s, e, t, n) {
2544
2574
  break;
2545
2575
  case "comment": {
2546
2576
  t && !r && n(l, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
2547
- const m = a.substring(1) || " ";
2548
- i ? i += o + m : i = m, o = "";
2577
+ const p = a.substring(1) || " ";
2578
+ i ? i += o + p : i = p, o = "";
2549
2579
  break;
2550
2580
  }
2551
2581
  case "newline":
@@ -2559,76 +2589,77 @@ function Ee(s, e, t, n) {
2559
2589
  }
2560
2590
  return { comment: i, offset: e };
2561
2591
  }
2562
- const et = "Block collections are not allowed within flow collections", tt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2563
- function an({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2564
- const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? P : Y), c = new a(t.schema);
2592
+ const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2593
+ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2594
+ const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? K : W), c = new a(t.schema);
2565
2595
  c.flow = !0;
2566
- const m = t.atRoot;
2567
- m && (t.atRoot = !1);
2596
+ const p = t.atRoot;
2597
+ p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2568
2598
  let f = n.offset + n.start.source.length;
2569
- for (let p = 0; p < n.items.length; ++p) {
2570
- const g = n.items[p], { start: w, key: N, sep: S, value: A } = g, k = ce(w, {
2599
+ for (let m = 0; m < n.items.length; ++m) {
2600
+ const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
2571
2601
  flow: l,
2572
2602
  indicator: "explicit-key-ind",
2573
- next: N ?? (S == null ? void 0 : S[0]),
2603
+ next: N ?? (w == null ? void 0 : w[0]),
2574
2604
  offset: f,
2575
2605
  onError: i,
2576
2606
  parentIndent: n.indent,
2577
2607
  startOnNewline: !1
2578
2608
  });
2579
- if (!k.found) {
2580
- if (!k.anchor && !k.tag && !S && !A) {
2581
- p === 0 && k.comma ? i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : p < n.items.length - 1 && i(k.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), k.comment && (c.comment ? c.comment += `
2582
- ` + k.comment : c.comment = k.comment), f = k.end;
2609
+ if (!O.found) {
2610
+ if (!O.anchor && !O.tag && !w && !k) {
2611
+ m === 0 && O.comma ? i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(O.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), O.comment && (c.comment ? c.comment += `
2612
+ ` + O.comment : c.comment = O.comment), f = O.end;
2583
2613
  continue;
2584
2614
  }
2585
- !o && t.options.strict && ke(N) && i(
2615
+ !o && t.options.strict && Ne(N) && i(
2586
2616
  N,
2587
2617
  // checked by containsNewline()
2588
2618
  "MULTILINE_IMPLICIT_KEY",
2589
2619
  "Implicit keys of flow sequence pairs need to be on a single line"
2590
2620
  );
2591
2621
  }
2592
- if (p === 0)
2593
- k.comma && i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2594
- else if (k.comma || i(k.start, "MISSING_CHAR", `Missing , between ${l} items`), k.comment) {
2595
- let T = "";
2596
- e: for (const b of w)
2597
- switch (b.type) {
2622
+ if (m === 0)
2623
+ O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2624
+ else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
2625
+ let I = "";
2626
+ e: for (const g of S)
2627
+ switch (g.type) {
2598
2628
  case "comma":
2599
2629
  case "space":
2600
2630
  break;
2601
2631
  case "comment":
2602
- T = b.source.substring(1);
2632
+ I = g.source.substring(1);
2603
2633
  break e;
2604
2634
  default:
2605
2635
  break e;
2606
2636
  }
2607
- if (T) {
2608
- let b = c.items[c.items.length - 1];
2609
- I(b) && (b = b.value ?? b.key), b.comment ? b.comment += `
2610
- ` + T : b.comment = T, k.comment = k.comment.substring(T.length + 1);
2637
+ if (I) {
2638
+ let g = c.items[c.items.length - 1];
2639
+ T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2640
+ ` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
2611
2641
  }
2612
2642
  }
2613
- if (!o && !S && !k.found) {
2614
- const T = A ? s(t, A, k, i) : e(t, k.end, S, null, k, i);
2615
- c.items.push(T), f = T.range[2], tt(A) && i(T.range, "BLOCK_IN_FLOW", et);
2643
+ if (!o && !w && !O.found) {
2644
+ const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
2645
+ c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
2616
2646
  } else {
2617
- const T = k.end, b = N ? s(t, N, k, i) : e(t, T, w, null, k, i);
2618
- tt(N) && i(b.range, "BLOCK_IN_FLOW", et);
2619
- const _ = ce(S ?? [], {
2647
+ t.atKey = !0;
2648
+ const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
2649
+ nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
2650
+ const _ = ue(w ?? [], {
2620
2651
  flow: l,
2621
2652
  indicator: "map-value-ind",
2622
- next: A,
2623
- offset: b.range[2],
2653
+ next: k,
2654
+ offset: g.range[2],
2624
2655
  onError: i,
2625
2656
  parentIndent: n.indent,
2626
2657
  startOnNewline: !1
2627
2658
  });
2628
2659
  if (_.found) {
2629
- if (!o && !k.found && t.options.strict) {
2630
- if (S)
2631
- for (const C of S) {
2660
+ if (!o && !O.found && t.options.strict) {
2661
+ if (w)
2662
+ for (const C of w) {
2632
2663
  if (C === _.found)
2633
2664
  break;
2634
2665
  if (C.type === "newline") {
@@ -2636,21 +2667,23 @@ function an({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2636
2667
  break;
2637
2668
  }
2638
2669
  }
2639
- k.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2670
+ O.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2640
2671
  }
2641
- } else A && ("source" in A && A.source && A.source[0] === ":" ? i(A, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2642
- const G = A ? s(t, A, _, i) : _.found ? e(t, _.end, S, null, _, i) : null;
2643
- G ? tt(A) && i(G.range, "BLOCK_IN_FLOW", et) : _.comment && (b.comment ? b.comment += `
2644
- ` + _.comment : b.comment = _.comment);
2645
- const x = new v(b, G);
2646
- if (t.options.keepSourceTokens && (x.srcToken = g), o) {
2672
+ } else k && ("source" in k && k.source && k.source[0] === ":" ? i(k, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2673
+ const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
2674
+ J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2675
+ ` + _.comment : g.comment = _.comment);
2676
+ const te = new v(g, J);
2677
+ if (t.options.keepSourceTokens && (te.srcToken = b), o) {
2647
2678
  const C = c;
2648
- ps(t, C.items, b) && i(T, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(x);
2679
+ gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2649
2680
  } else {
2650
- const C = new P(t.schema);
2651
- C.flow = !0, C.items.push(x), c.items.push(C);
2681
+ const C = new K(t.schema);
2682
+ C.flow = !0, C.items.push(te);
2683
+ const Lt = (J ?? g).range;
2684
+ C.range = [g.range[0], Lt[1], Lt[2]], c.items.push(C);
2652
2685
  }
2653
- f = G ? G.range[2] : _.end;
2686
+ f = J ? J.range[2] : _.end;
2654
2687
  }
2655
2688
  }
2656
2689
  const d = o ? "}" : "]", [h, ...y] = n.end;
@@ -2658,22 +2691,22 @@ function an({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2658
2691
  if (h && h.source === d)
2659
2692
  u = h.offset + h.source.length;
2660
2693
  else {
2661
- const p = l[0].toUpperCase() + l.substring(1), g = m ? `${p} must end with a ${d}` : `${p} in block collection must be sufficiently indented and end with a ${d}`;
2662
- i(f, m ? "MISSING_CHAR" : "BAD_INDENT", g), h && h.source.length !== 1 && y.unshift(h);
2694
+ const m = l[0].toUpperCase() + l.substring(1), b = p ? `${m} must end with a ${d}` : `${m} in block collection must be sufficiently indented and end with a ${d}`;
2695
+ i(f, p ? "MISSING_CHAR" : "BAD_INDENT", b), h && h.source.length !== 1 && y.unshift(h);
2663
2696
  }
2664
2697
  if (y.length > 0) {
2665
- const p = Ee(y, u, t.options.strict, i);
2666
- p.comment && (c.comment ? c.comment += `
2667
- ` + p.comment : c.comment = p.comment), c.range = [n.offset, u, p.offset];
2698
+ const m = Ie(y, u, t.options.strict, i);
2699
+ m.comment && (c.comment ? c.comment += `
2700
+ ` + m.comment : c.comment = m.comment), c.range = [n.offset, u, m.offset];
2668
2701
  } else
2669
2702
  c.range = [n.offset, u, u];
2670
2703
  return c;
2671
2704
  }
2672
- function st(s, e, t, n, i, r) {
2673
- const o = t.type === "block-map" ? on(s, e, t, n, r) : t.type === "block-seq" ? ln(s, e, t, n, r) : an(s, e, t, n, r), l = o.constructor;
2705
+ function it(s, e, t, n, i, r) {
2706
+ const o = t.type === "block-map" ? cn(s, e, t, n, r) : t.type === "block-seq" ? fn(s, e, t, n, r) : un(s, e, t, n, r), l = o.constructor;
2674
2707
  return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2675
2708
  }
2676
- function cn(s, e, t, n, i) {
2709
+ function hn(s, e, t, n, i) {
2677
2710
  var d;
2678
2711
  const r = n.tag, o = r ? e.directives.tagName(r.source, (h) => i(r, "TAG_RESOLVE_FAILED", h)) : null;
2679
2712
  if (t.type === "block-seq") {
@@ -2681,28 +2714,28 @@ function cn(s, e, t, n, i) {
2681
2714
  u && (!y || y.offset < u.offset) && i(u, "MISSING_CHAR", "Missing newline after block sequence props");
2682
2715
  }
2683
2716
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2684
- if (!r || !o || o === "!" || o === P.tagName && l === "map" || o === Y.tagName && l === "seq")
2685
- return st(s, e, t, i, o);
2717
+ if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === W.tagName && l === "seq")
2718
+ return it(s, e, t, i, o);
2686
2719
  let a = e.schema.tags.find((h) => h.tag === o && h.collection === l);
2687
2720
  if (!a) {
2688
2721
  const h = e.schema.knownTags[o];
2689
2722
  if (h && h.collection === l)
2690
2723
  e.schema.tags.push(Object.assign({}, h, { default: !1 })), a = h;
2691
2724
  else
2692
- return h != null && h.collection ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), st(s, e, t, i, o);
2725
+ return h ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
2693
2726
  }
2694
- const c = st(s, e, t, i, o, a), m = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(m) ? m : new O(m);
2727
+ const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new A(p);
2695
2728
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2696
2729
  }
2697
- function ms(s, e, t) {
2698
- const n = e.offset, i = fn(e, s.options.strict, t);
2730
+ function bs(s, e, t) {
2731
+ const n = e.offset, i = dn(e, s.options.strict, t);
2699
2732
  if (!i)
2700
2733
  return { value: "", type: null, comment: "", range: [n, n, n] };
2701
- const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? un(e.source) : [];
2734
+ const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2702
2735
  let l = o.length;
2703
2736
  for (let u = o.length - 1; u >= 0; --u) {
2704
- const p = o[u][1];
2705
- if (p === "" || p === "\r")
2737
+ const m = o[u][1];
2738
+ if (m === "" || m === "\r")
2706
2739
  l = u;
2707
2740
  else
2708
2741
  break;
@@ -2710,44 +2743,44 @@ function ms(s, e, t) {
2710
2743
  if (l === 0) {
2711
2744
  const u = i.chomp === "+" && o.length > 0 ? `
2712
2745
  `.repeat(Math.max(1, o.length - 1)) : "";
2713
- let p = n + i.length;
2714
- return e.source && (p += e.source.length), { value: u, type: r, comment: i.comment, range: [n, p, p] };
2746
+ let m = n + i.length;
2747
+ return e.source && (m += e.source.length), { value: u, type: r, comment: i.comment, range: [n, m, m] };
2715
2748
  }
2716
- let a = e.indent + i.indent, c = e.offset + i.length, m = 0;
2749
+ let a = e.indent + i.indent, c = e.offset + i.length, p = 0;
2717
2750
  for (let u = 0; u < l; ++u) {
2718
- const [p, g] = o[u];
2719
- if (g === "" || g === "\r")
2720
- i.indent === 0 && p.length > a && (a = p.length);
2751
+ const [m, b] = o[u];
2752
+ if (b === "" || b === "\r")
2753
+ i.indent === 0 && m.length > a && (a = m.length);
2721
2754
  else {
2722
- p.length < a && t(c + p.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), i.indent === 0 && (a = p.length), m = u, a === 0 && !s.atRoot && t(c, "BAD_INDENT", "Block scalar values in collections must be indented");
2755
+ m.length < a && t(c + m.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), i.indent === 0 && (a = m.length), p = u, a === 0 && !s.atRoot && t(c, "BAD_INDENT", "Block scalar values in collections must be indented");
2723
2756
  break;
2724
2757
  }
2725
- c += p.length + g.length + 1;
2758
+ c += m.length + b.length + 1;
2726
2759
  }
2727
2760
  for (let u = o.length - 1; u >= l; --u)
2728
2761
  o[u][0].length > a && (l = u + 1);
2729
2762
  let f = "", d = "", h = !1;
2730
- for (let u = 0; u < m; ++u)
2763
+ for (let u = 0; u < p; ++u)
2731
2764
  f += o[u][0].slice(a) + `
2732
2765
  `;
2733
- for (let u = m; u < l; ++u) {
2734
- let [p, g] = o[u];
2735
- c += p.length + g.length + 1;
2736
- const w = g[g.length - 1] === "\r";
2737
- if (w && (g = g.slice(0, -1)), g && p.length < a) {
2738
- const S = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2739
- t(c - g.length - (w ? 2 : 1), "BAD_INDENT", S), p = "";
2766
+ for (let u = p; u < l; ++u) {
2767
+ let [m, b] = o[u];
2768
+ c += m.length + b.length + 1;
2769
+ const S = b[b.length - 1] === "\r";
2770
+ if (S && (b = b.slice(0, -1)), b && m.length < a) {
2771
+ const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2772
+ t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
2740
2773
  }
2741
- r === O.BLOCK_LITERAL ? (f += d + p.slice(a) + g, d = `
2742
- `) : p.length > a || g[0] === " " ? (d === " " ? d = `
2774
+ r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2775
+ `) : m.length > a || b[0] === " " ? (d === " " ? d = `
2743
2776
  ` : !h && d === `
2744
2777
  ` && (d = `
2745
2778
 
2746
- `), f += d + p.slice(a) + g, d = `
2747
- `, h = !0) : g === "" ? d === `
2779
+ `), f += d + m.slice(a) + b, d = `
2780
+ `, h = !0) : b === "" ? d === `
2748
2781
  ` ? f += `
2749
2782
  ` : d = `
2750
- ` : (f += d + g, d = " ", h = !1);
2783
+ ` : (f += d + b, d = " ", h = !1);
2751
2784
  }
2752
2785
  switch (i.chomp) {
2753
2786
  case "-":
@@ -2767,7 +2800,7 @@ function ms(s, e, t) {
2767
2800
  const y = n + i.length + e.source.length;
2768
2801
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2769
2802
  }
2770
- function fn({ offset: s, props: e }, t, n) {
2803
+ function dn({ offset: s, props: e }, t, n) {
2771
2804
  if (e[0].type !== "block-scalar-header")
2772
2805
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2773
2806
  const { source: i } = e[0], r = i[0];
@@ -2782,21 +2815,23 @@ function fn({ offset: s, props: e }, t, n) {
2782
2815
  }
2783
2816
  }
2784
2817
  a !== -1 && n(a, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${i}`);
2785
- let c = !1, m = "", f = i.length;
2818
+ let c = !1, p = "", f = i.length;
2786
2819
  for (let d = 1; d < e.length; ++d) {
2787
2820
  const h = e[d];
2788
2821
  switch (h.type) {
2789
2822
  case "space":
2790
2823
  c = !0;
2824
+ // fallthrough
2791
2825
  case "newline":
2792
2826
  f += h.source.length;
2793
2827
  break;
2794
2828
  case "comment":
2795
- t && !c && n(h, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"), f += h.source.length, m = h.source.substring(1);
2829
+ t && !c && n(h, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"), f += h.source.length, p = h.source.substring(1);
2796
2830
  break;
2797
2831
  case "error":
2798
2832
  n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
2799
2833
  break;
2834
+ /* istanbul ignore next should not happen */
2800
2835
  default: {
2801
2836
  const y = `Unexpected token in block scalar header: ${h.type}`;
2802
2837
  n(h, "UNEXPECTED_TOKEN", y);
@@ -2805,28 +2840,29 @@ function fn({ offset: s, props: e }, t, n) {
2805
2840
  }
2806
2841
  }
2807
2842
  }
2808
- return { mode: r, indent: o, chomp: l, comment: m, length: f };
2843
+ return { mode: r, indent: o, chomp: l, comment: p, length: f };
2809
2844
  }
2810
- function un(s) {
2845
+ function pn(s) {
2811
2846
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2812
2847
  for (let o = 1; o < e.length; o += 2)
2813
2848
  r.push([e[o], e[o + 1]]);
2814
2849
  return r;
2815
2850
  }
2816
- function ys(s, e, t) {
2851
+ function ws(s, e, t) {
2817
2852
  const { offset: n, type: i, source: r, end: o } = s;
2818
2853
  let l, a;
2819
2854
  const c = (d, h, y) => t(n + d, h, y);
2820
2855
  switch (i) {
2821
2856
  case "scalar":
2822
- l = O.PLAIN, a = hn(r, c);
2857
+ l = A.PLAIN, a = mn(r, c);
2823
2858
  break;
2824
2859
  case "single-quoted-scalar":
2825
- l = O.QUOTE_SINGLE, a = dn(r, c);
2860
+ l = A.QUOTE_SINGLE, a = yn(r, c);
2826
2861
  break;
2827
2862
  case "double-quoted-scalar":
2828
- l = O.QUOTE_DOUBLE, a = pn(r, c);
2863
+ l = A.QUOTE_DOUBLE, a = gn(r, c);
2829
2864
  break;
2865
+ /* istanbul ignore next should not happen */
2830
2866
  default:
2831
2867
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
2832
2868
  value: "",
@@ -2835,17 +2871,18 @@ function ys(s, e, t) {
2835
2871
  range: [n, n + r.length, n + r.length]
2836
2872
  };
2837
2873
  }
2838
- const m = n + r.length, f = Ee(o, m, e, t);
2874
+ const p = n + r.length, f = Ie(o, p, e, t);
2839
2875
  return {
2840
2876
  value: a,
2841
2877
  type: l,
2842
2878
  comment: f.comment,
2843
- range: [n, m, f.offset]
2879
+ range: [n, p, f.offset]
2844
2880
  };
2845
2881
  }
2846
- function hn(s, e) {
2882
+ function mn(s, e) {
2847
2883
  let t = "";
2848
2884
  switch (s[0]) {
2885
+ /* istanbul ignore next should not happen */
2849
2886
  case " ":
2850
2887
  t = "a tab character";
2851
2888
  break;
@@ -2866,12 +2903,12 @@ function hn(s, e) {
2866
2903
  break;
2867
2904
  }
2868
2905
  }
2869
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), gs(s);
2906
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Ss(s);
2870
2907
  }
2871
- function dn(s, e) {
2872
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), gs(s.slice(1, -1)).replace(/''/g, "'");
2908
+ function yn(s, e) {
2909
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Ss(s.slice(1, -1)).replace(/''/g, "'");
2873
2910
  }
2874
- function gs(s) {
2911
+ function Ss(s) {
2875
2912
  let e, t;
2876
2913
  try {
2877
2914
  e = new RegExp(`(.*?)(?<![ ])[ ]*\r?
@@ -2891,7 +2928,7 @@ function gs(s) {
2891
2928
  const l = /[ \t]*(.*)/sy;
2892
2929
  return l.lastIndex = o, n = l.exec(s), i + r + ((n == null ? void 0 : n[1]) ?? "");
2893
2930
  }
2894
- function pn(s, e) {
2931
+ function gn(s, e) {
2895
2932
  let t = "";
2896
2933
  for (let n = 1; n < s.length - 1; ++n) {
2897
2934
  const i = s[n];
@@ -2899,11 +2936,11 @@ function pn(s, e) {
2899
2936
  `))
2900
2937
  if (i === `
2901
2938
  `) {
2902
- const { fold: r, offset: o } = mn(s, n);
2939
+ const { fold: r, offset: o } = bn(s, n);
2903
2940
  t += r, n = o;
2904
2941
  } else if (i === "\\") {
2905
2942
  let r = s[++n];
2906
- const o = yn[r];
2943
+ const o = wn[r];
2907
2944
  if (o)
2908
2945
  t += o;
2909
2946
  else if (r === `
@@ -2916,7 +2953,7 @@ function pn(s, e) {
2916
2953
  r = s[++n + 1];
2917
2954
  else if (r === "x" || r === "u" || r === "U") {
2918
2955
  const l = { x: 2, u: 4, U: 8 }[r];
2919
- t += gn(s, n + 1, l, e), n += l;
2956
+ t += Sn(s, n + 1, l, e), n += l;
2920
2957
  } else {
2921
2958
  const l = s.substr(n - 1, 2);
2922
2959
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), t += l;
@@ -2934,7 +2971,7 @@ function pn(s, e) {
2934
2971
  }
2935
2972
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
2936
2973
  }
2937
- function mn(s, e) {
2974
+ function bn(s, e) {
2938
2975
  let t = "", n = s[e + 1];
2939
2976
  for (; (n === " " || n === " " || n === `
2940
2977
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -2944,7 +2981,7 @@ function mn(s, e) {
2944
2981
  `), e += 1, n = s[e + 1];
2945
2982
  return t || (t = " "), { fold: t, offset: e };
2946
2983
  }
2947
- const yn = {
2984
+ const wn = {
2948
2985
  0: "\0",
2949
2986
  // null character
2950
2987
  a: "\x07",
@@ -2978,7 +3015,7 @@ const yn = {
2978
3015
  "\\": "\\",
2979
3016
  " ": " "
2980
3017
  };
2981
- function gn(s, e, t, n) {
3018
+ function Sn(s, e, t, n) {
2982
3019
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
2983
3020
  if (isNaN(o)) {
2984
3021
  const l = s.substr(e - 2, t + 2);
@@ -2986,19 +3023,21 @@ function gn(s, e, t, n) {
2986
3023
  }
2987
3024
  return String.fromCodePoint(o);
2988
3025
  }
2989
- function bs(s, e, t, n) {
2990
- const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? ms(s, e, n) : ys(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? bn(s.schema, i, a, t, n) : e.type === "scalar" ? wn(s, i, e, n) : s.schema[R];
2991
- let m;
3026
+ function ks(s, e, t, n) {
3027
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? bs(s, e, n) : ws(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
3028
+ let c;
3029
+ s.options.stringKeys && s.atKey ? c = s.schema[R] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[R];
3030
+ let p;
2992
3031
  try {
2993
3032
  const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
2994
- m = E(f) ? f : new O(f);
3033
+ p = E(f) ? f : new A(f);
2995
3034
  } catch (f) {
2996
3035
  const d = f instanceof Error ? f.message : String(f);
2997
- n(t ?? e, "TAG_RESOLVE_FAILED", d), m = new O(i);
3036
+ n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
2998
3037
  }
2999
- return m.range = l, m.source = i, r && (m.type = r), a && (m.tag = a), c.format && (m.format = c.format), o && (m.comment = o), m;
3038
+ return p.range = l, p.source = i, r && (p.type = r), a && (p.tag = a), c.format && (p.format = c.format), o && (p.comment = o), p;
3000
3039
  }
3001
- function bn(s, e, t, n, i) {
3040
+ function kn(s, e, t, n, i) {
3002
3041
  var l;
3003
3042
  if (t === "!")
3004
3043
  return s[R];
@@ -3015,24 +3054,24 @@ function bn(s, e, t, n, i) {
3015
3054
  const o = s.knownTags[t];
3016
3055
  return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[R]);
3017
3056
  }
3018
- function wn({ directives: s, schema: e }, t, n, i) {
3019
- const r = e.tags.find((o) => {
3020
- var l;
3021
- return o.default && ((l = o.test) == null ? void 0 : l.test(t));
3022
- }) || e[R];
3023
- if (e.compat) {
3024
- const o = e.compat.find((l) => {
3025
- var a;
3026
- return l.default && ((a = l.test) == null ? void 0 : a.test(t));
3027
- }) ?? e[R];
3028
- if (r.tag !== o.tag) {
3029
- const l = s.tagString(r.tag), a = s.tagString(o.tag), c = `Value may be parsed as either ${l} or ${a}`;
3030
- i(n, "TAG_RESOLVE_FAILED", c, !0);
3057
+ function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
3058
+ const o = t.tags.find((l) => {
3059
+ var a;
3060
+ return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
3061
+ }) || t[R];
3062
+ if (t.compat) {
3063
+ const l = t.compat.find((a) => {
3064
+ var c;
3065
+ return a.default && ((c = a.test) == null ? void 0 : c.test(n));
3066
+ }) ?? t[R];
3067
+ if (o.tag !== l.tag) {
3068
+ const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
3069
+ r(i, "TAG_RESOLVE_FAILED", p, !0);
3031
3070
  }
3032
3071
  }
3033
- return r;
3072
+ return o;
3034
3073
  }
3035
- function Sn(s, e, t) {
3074
+ function On(s, e, t) {
3036
3075
  if (e) {
3037
3076
  t === null && (t = e.length);
3038
3077
  for (let n = t - 1; n >= 0; --n) {
@@ -3051,54 +3090,55 @@ function Sn(s, e, t) {
3051
3090
  }
3052
3091
  return s;
3053
3092
  }
3054
- const kn = { composeNode: ws, composeEmptyNode: Ot };
3055
- function ws(s, e, t, n) {
3056
- const { spaceBefore: i, comment: r, anchor: o, tag: l } = t;
3057
- let a, c = !0;
3093
+ const An = { composeNode: Ns, composeEmptyNode: Et };
3094
+ function Ns(s, e, t, n) {
3095
+ const i = s.atKey, { spaceBefore: r, comment: o, anchor: l, tag: a } = t;
3096
+ let c, p = !0;
3058
3097
  switch (e.type) {
3059
3098
  case "alias":
3060
- a = Nn(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3099
+ c = En(s, e, n), (l || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3061
3100
  break;
3062
3101
  case "scalar":
3063
3102
  case "single-quoted-scalar":
3064
3103
  case "double-quoted-scalar":
3065
3104
  case "block-scalar":
3066
- a = bs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3105
+ c = ks(s, e, a, n), l && (c.anchor = l.source.substring(1));
3067
3106
  break;
3068
3107
  case "block-map":
3069
3108
  case "block-seq":
3070
3109
  case "flow-collection":
3071
- a = cn(kn, s, e, t, n), o && (a.anchor = o.source.substring(1));
3110
+ c = hn(An, s, e, t, n), l && (c.anchor = l.source.substring(1));
3072
3111
  break;
3073
3112
  default: {
3074
- const m = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3075
- n(e, "UNEXPECTED_TOKEN", m), a = Ot(s, e.offset, void 0, null, t, n), c = !1;
3113
+ const f = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3114
+ n(e, "UNEXPECTED_TOKEN", f), c = Et(s, e.offset, void 0, null, t, n), p = !1;
3076
3115
  }
3077
3116
  }
3078
- return o && a.anchor === "" && n(o, "BAD_ALIAS", "Anchor cannot be an empty string"), i && (a.spaceBefore = !0), r && (e.type === "scalar" && e.source === "" ? a.comment = r : a.commentBefore = r), s.options.keepSourceTokens && c && (a.srcToken = e), a;
3117
+ return l && c.anchor === "" && n(l, "BAD_ALIAS", "Anchor cannot be an empty string"), i && s.options.stringKeys && (!E(c) || typeof c.value != "string" || c.tag && c.tag !== "tag:yaml.org,2002:str") && n(a ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), r && (c.spaceBefore = !0), o && (e.type === "scalar" && e.source === "" ? c.comment = o : c.commentBefore = o), s.options.keepSourceTokens && p && (c.srcToken = e), c;
3079
3118
  }
3080
- function Ot(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3081
- const m = {
3119
+ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3120
+ const p = {
3082
3121
  type: "scalar",
3083
- offset: Sn(e, t, n),
3122
+ offset: On(e, t, n),
3084
3123
  indent: -1,
3085
3124
  source: ""
3086
- }, f = bs(s, m, l, c);
3125
+ }, f = ks(s, p, l, c);
3087
3126
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3088
3127
  }
3089
- function Nn({ options: s }, { offset: e, source: t, end: n }, i) {
3090
- const r = new qe(t.substring(1));
3128
+ function En({ options: s }, { offset: e, source: t, end: n }, i) {
3129
+ const r = new Re(t.substring(1));
3091
3130
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3092
- const o = e + t.length, l = Ee(n, o, s.strict, i);
3131
+ const o = e + t.length, l = Ie(n, o, s.strict, i);
3093
3132
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3094
3133
  }
3095
- function On(s, e, { offset: t, start: n, value: i, end: r }, o) {
3096
- const l = Object.assign({ _directives: e }, s), a = new ye(void 0, l), c = {
3134
+ function In(s, e, { offset: t, start: n, value: i, end: r }, o) {
3135
+ const l = Object.assign({ _directives: e }, s), a = new ge(void 0, l), c = {
3136
+ atKey: !1,
3097
3137
  atRoot: !0,
3098
3138
  directives: a.directives,
3099
3139
  options: a.options,
3100
3140
  schema: a.schema
3101
- }, m = ce(n, {
3141
+ }, p = ue(n, {
3102
3142
  indicator: "doc-start",
3103
3143
  next: i ?? (r == null ? void 0 : r[0]),
3104
3144
  offset: t,
@@ -3106,11 +3146,11 @@ function On(s, e, { offset: t, start: n, value: i, end: r }, o) {
3106
3146
  parentIndent: 0,
3107
3147
  startOnNewline: !0
3108
3148
  });
3109
- m.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !m.hasNewline && o(m.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? ws(c, i, m, o) : Ot(c, m.end, n, null, m, o);
3110
- const f = a.contents.range[2], d = Ee(r, f, !1, o);
3149
+ p.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !p.hasNewline && o(p.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Ns(c, i, p, o) : Et(c, p.end, n, null, p, o);
3150
+ const f = a.contents.range[2], d = Ie(r, f, !1, o);
3111
3151
  return d.comment && (a.comment = d.comment), a.range = [t, f, d.offset], a;
3112
3152
  }
3113
- function ge(s) {
3153
+ function be(s) {
3114
3154
  if (typeof s == "number")
3115
3155
  return [s, s + 1];
3116
3156
  if (Array.isArray(s))
@@ -3118,7 +3158,7 @@ function ge(s) {
3118
3158
  const { offset: e, source: t } = s;
3119
3159
  return [e, e + (typeof t == "string" ? t.length : 1)];
3120
3160
  }
3121
- function Bt(s) {
3161
+ function Kt(s) {
3122
3162
  var i;
3123
3163
  let e = "", t = !1, n = !1;
3124
3164
  for (let r = 0; r < s.length; ++r) {
@@ -3139,15 +3179,15 @@ function Bt(s) {
3139
3179
  }
3140
3180
  return { comment: e, afterEmptyLine: n };
3141
3181
  }
3142
- class At {
3182
+ class It {
3143
3183
  constructor(e = {}) {
3144
3184
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3145
- const o = ge(t);
3146
- r ? this.warnings.push(new ds(o, n, i)) : this.errors.push(new X(o, n, i));
3185
+ const o = be(t);
3186
+ r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
3147
3187
  }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3148
3188
  }
3149
3189
  decorate(e, t) {
3150
- const { comment: n, afterEmptyLine: i } = Bt(this.prelude);
3190
+ const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
3151
3191
  if (n) {
3152
3192
  const r = e.contents;
3153
3193
  if (t)
@@ -3157,7 +3197,7 @@ ${n}` : n;
3157
3197
  e.commentBefore = n;
3158
3198
  else if (L(r) && !r.flow && r.items.length > 0) {
3159
3199
  let o = r.items[0];
3160
- I(o) && (o = o.key);
3200
+ T(o) && (o = o.key);
3161
3201
  const l = o.commentBefore;
3162
3202
  o.commentBefore = l ? `${n}
3163
3203
  ${l}` : n;
@@ -3176,7 +3216,7 @@ ${o}` : n;
3176
3216
  */
3177
3217
  streamInfo() {
3178
3218
  return {
3179
- comment: Bt(this.prelude).comment,
3219
+ comment: Kt(this.prelude).comment,
3180
3220
  directives: this.directives,
3181
3221
  errors: this.errors,
3182
3222
  warnings: this.warnings
@@ -3198,12 +3238,12 @@ ${o}` : n;
3198
3238
  switch (e.type) {
3199
3239
  case "directive":
3200
3240
  this.directives.add(e.source, (t, n, i) => {
3201
- const r = ge(e);
3241
+ const r = be(e);
3202
3242
  r[0] += t, this.onError(r, "BAD_DIRECTIVE", n, i);
3203
3243
  }), this.prelude.push(e.source), this.atDirectives = !0;
3204
3244
  break;
3205
3245
  case "document": {
3206
- const t = On(this.options, this.directives, e, this.onError);
3246
+ const t = In(this.options, this.directives, e, this.onError);
3207
3247
  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;
3208
3248
  break;
3209
3249
  }
@@ -3215,18 +3255,18 @@ ${o}` : n;
3215
3255
  this.prelude.push(e.source);
3216
3256
  break;
3217
3257
  case "error": {
3218
- const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new X(ge(e), "UNEXPECTED_TOKEN", t);
3258
+ const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new z(be(e), "UNEXPECTED_TOKEN", t);
3219
3259
  this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
3220
3260
  break;
3221
3261
  }
3222
3262
  case "doc-end": {
3223
3263
  if (!this.doc) {
3224
3264
  const n = "Unexpected doc-end without preceding document";
3225
- this.errors.push(new X(ge(e), "UNEXPECTED_TOKEN", n));
3265
+ this.errors.push(new z(be(e), "UNEXPECTED_TOKEN", n));
3226
3266
  break;
3227
3267
  }
3228
3268
  this.doc.directives.docEnd = !0;
3229
- const t = Ee(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3269
+ const t = Ie(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3230
3270
  if (this.decorate(this.doc, !0), t.comment) {
3231
3271
  const n = this.doc.comment;
3232
3272
  this.doc.comment = n ? `${n}
@@ -3236,7 +3276,7 @@ ${t.comment}` : t.comment;
3236
3276
  break;
3237
3277
  }
3238
3278
  default:
3239
- this.errors.push(new X(ge(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3279
+ this.errors.push(new z(be(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3240
3280
  }
3241
3281
  }
3242
3282
  /**
@@ -3249,33 +3289,33 @@ ${t.comment}` : t.comment;
3249
3289
  if (this.doc)
3250
3290
  this.decorate(this.doc, !0), yield this.doc, this.doc = null;
3251
3291
  else if (e) {
3252
- const n = Object.assign({ _directives: this.directives }, this.options), i = new ye(void 0, n);
3292
+ const n = Object.assign({ _directives: this.directives }, this.options), i = new ge(void 0, n);
3253
3293
  this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), i.range = [0, t, t], this.decorate(i, !1), yield i;
3254
3294
  }
3255
3295
  }
3256
3296
  }
3257
- function An(s, e = !0, t) {
3297
+ function Tn(s, e = !0, t) {
3258
3298
  if (s) {
3259
3299
  const n = (i, r, o) => {
3260
3300
  const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
3261
3301
  if (t)
3262
3302
  t(l, r, o);
3263
3303
  else
3264
- throw new X([l, l + 1], r, o);
3304
+ throw new z([l, l + 1], r, o);
3265
3305
  };
3266
3306
  switch (s.type) {
3267
3307
  case "scalar":
3268
3308
  case "single-quoted-scalar":
3269
3309
  case "double-quoted-scalar":
3270
- return ys(s, e, n);
3310
+ return ws(s, e, n);
3271
3311
  case "block-scalar":
3272
- return ms({ options: { strict: e } }, s, n);
3312
+ return bs({ options: { strict: e } }, s, n);
3273
3313
  }
3274
3314
  }
3275
3315
  return null;
3276
3316
  }
3277
- function En(s, e) {
3278
- const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Oe({ type: o, value: s }, {
3317
+ function Ln(s, e) {
3318
+ const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Ae({ type: o, value: s }, {
3279
3319
  implicitKey: t,
3280
3320
  indent: n > 0 ? " ".repeat(n) : "",
3281
3321
  inFlow: i,
@@ -3288,11 +3328,11 @@ function En(s, e) {
3288
3328
  case "|":
3289
3329
  case ">": {
3290
3330
  const c = l.indexOf(`
3291
- `), m = l.substring(0, c), f = l.substring(c + 1) + `
3331
+ `), p = l.substring(0, c), f = l.substring(c + 1) + `
3292
3332
  `, d = [
3293
- { type: "block-scalar-header", offset: r, indent: n, source: m }
3333
+ { type: "block-scalar-header", offset: r, indent: n, source: p }
3294
3334
  ];
3295
- return Ss(d, a) || d.push({ type: "newline", offset: -1, indent: n, source: `
3335
+ return Os(d, a) || d.push({ type: "newline", offset: -1, indent: n, source: `
3296
3336
  ` }), { type: "block-scalar", offset: r, indent: n, props: d, source: f };
3297
3337
  }
3298
3338
  case '"':
@@ -3303,7 +3343,7 @@ function En(s, e) {
3303
3343
  return { type: "scalar", offset: r, indent: n, source: l, end: a };
3304
3344
  }
3305
3345
  }
3306
- function In(s, e, t = {}) {
3346
+ function $n(s, e, t = {}) {
3307
3347
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3308
3348
  if (n && typeof l == "number" && (l += 2), !o)
3309
3349
  switch (s.type) {
@@ -3323,7 +3363,7 @@ function In(s, e, t = {}) {
3323
3363
  default:
3324
3364
  o = "PLAIN";
3325
3365
  }
3326
- const a = Oe({ type: o, value: e }, {
3366
+ const a = Ae({ type: o, value: e }, {
3327
3367
  implicitKey: i || l === null,
3328
3368
  indent: l !== null && l > 0 ? " ".repeat(l) : "",
3329
3369
  inFlow: r,
@@ -3332,19 +3372,19 @@ function In(s, e, t = {}) {
3332
3372
  switch (a[0]) {
3333
3373
  case "|":
3334
3374
  case ">":
3335
- Tn(s, a);
3375
+ _n(s, a);
3336
3376
  break;
3337
3377
  case '"':
3338
- nt(s, a, "double-quoted-scalar");
3378
+ rt(s, a, "double-quoted-scalar");
3339
3379
  break;
3340
3380
  case "'":
3341
- nt(s, a, "single-quoted-scalar");
3381
+ rt(s, a, "single-quoted-scalar");
3342
3382
  break;
3343
3383
  default:
3344
- nt(s, a, "scalar");
3384
+ rt(s, a, "scalar");
3345
3385
  }
3346
3386
  }
3347
- function Tn(s, e) {
3387
+ function _n(s, e) {
3348
3388
  const t = e.indexOf(`
3349
3389
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3350
3390
  `;
@@ -3357,14 +3397,14 @@ function Tn(s, e) {
3357
3397
  const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3358
3398
  { type: "block-scalar-header", offset: r, indent: o, source: n }
3359
3399
  ];
3360
- Ss(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3400
+ Os(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3361
3401
  ` });
3362
3402
  for (const a of Object.keys(s))
3363
3403
  a !== "type" && a !== "offset" && delete s[a];
3364
3404
  Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3365
3405
  }
3366
3406
  }
3367
- function Ss(s, e) {
3407
+ function Os(s, e) {
3368
3408
  if (e)
3369
3409
  for (const t of e)
3370
3410
  switch (t.type) {
@@ -3377,7 +3417,7 @@ function Ss(s, e) {
3377
3417
  }
3378
3418
  return !1;
3379
3419
  }
3380
- function nt(s, e, t) {
3420
+ function rt(s, e, t) {
3381
3421
  switch (s.type) {
3382
3422
  case "scalar":
3383
3423
  case "double-quoted-scalar":
@@ -3408,32 +3448,32 @@ function nt(s, e, t) {
3408
3448
  }
3409
3449
  }
3410
3450
  }
3411
- const Ln = (s) => "type" in s ? Ke(s) : Be(s);
3412
- function Ke(s) {
3451
+ const Cn = (s) => "type" in s ? qe(s) : Ke(s);
3452
+ function qe(s) {
3413
3453
  switch (s.type) {
3414
3454
  case "block-scalar": {
3415
3455
  let e = "";
3416
3456
  for (const t of s.props)
3417
- e += Ke(t);
3457
+ e += qe(t);
3418
3458
  return e + s.source;
3419
3459
  }
3420
3460
  case "block-map":
3421
3461
  case "block-seq": {
3422
3462
  let e = "";
3423
3463
  for (const t of s.items)
3424
- e += Be(t);
3464
+ e += Ke(t);
3425
3465
  return e;
3426
3466
  }
3427
3467
  case "flow-collection": {
3428
3468
  let e = s.start.source;
3429
3469
  for (const t of s.items)
3430
- e += Be(t);
3470
+ e += Ke(t);
3431
3471
  for (const t of s.end)
3432
3472
  e += t.source;
3433
3473
  return e;
3434
3474
  }
3435
3475
  case "document": {
3436
- let e = Be(s);
3476
+ let e = Ke(s);
3437
3477
  if (s.end)
3438
3478
  for (const t of s.end)
3439
3479
  e += t.source;
@@ -3448,23 +3488,23 @@ function Ke(s) {
3448
3488
  }
3449
3489
  }
3450
3490
  }
3451
- function Be({ start: s, key: e, sep: t, value: n }) {
3491
+ function Ke({ start: s, key: e, sep: t, value: n }) {
3452
3492
  let i = "";
3453
3493
  for (const r of s)
3454
3494
  i += r.source;
3455
- if (e && (i += Ke(e)), t)
3495
+ if (e && (i += qe(e)), t)
3456
3496
  for (const r of t)
3457
3497
  i += r.source;
3458
- return n && (i += Ke(n)), i;
3498
+ return n && (i += qe(n)), i;
3459
3499
  }
3460
- const ft = Symbol("break visit"), $n = Symbol("skip children"), ks = Symbol("remove item");
3461
- function z(s, e) {
3462
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Ns(Object.freeze([]), s, e);
3500
+ const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
3501
+ function Z(s, e) {
3502
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
3463
3503
  }
3464
- z.BREAK = ft;
3465
- z.SKIP = $n;
3466
- z.REMOVE = ks;
3467
- z.itemAtPath = (s, e) => {
3504
+ Z.BREAK = ht;
3505
+ Z.SKIP = vn;
3506
+ Z.REMOVE = As;
3507
+ Z.itemAtPath = (s, e) => {
3468
3508
  let t = s;
3469
3509
  for (const [n, i] of e) {
3470
3510
  const r = t == null ? void 0 : t[n];
@@ -3475,13 +3515,13 @@ z.itemAtPath = (s, e) => {
3475
3515
  }
3476
3516
  return t;
3477
3517
  };
3478
- z.parentCollection = (s, e) => {
3479
- const t = z.itemAtPath(s, e.slice(0, -1)), n = e[e.length - 1][0], i = t == null ? void 0 : t[n];
3518
+ Z.parentCollection = (s, e) => {
3519
+ const t = Z.itemAtPath(s, e.slice(0, -1)), n = e[e.length - 1][0], i = t == null ? void 0 : t[n];
3480
3520
  if (i && "items" in i)
3481
3521
  return i;
3482
3522
  throw new Error("Parent collection not found");
3483
3523
  };
3484
- function Ns(s, e, t) {
3524
+ function Es(s, e, t) {
3485
3525
  let n = t(e, s);
3486
3526
  if (typeof n == "symbol")
3487
3527
  return n;
@@ -3489,13 +3529,13 @@ function Ns(s, e, t) {
3489
3529
  const r = e[i];
3490
3530
  if (r && "items" in r) {
3491
3531
  for (let o = 0; o < r.items.length; ++o) {
3492
- const l = Ns(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3532
+ const l = Es(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3493
3533
  if (typeof l == "number")
3494
3534
  o = l - 1;
3495
3535
  else {
3496
- if (l === ft)
3497
- return ft;
3498
- l === ks && (r.items.splice(o, 1), o -= 1);
3536
+ if (l === ht)
3537
+ return ht;
3538
+ l === As && (r.items.splice(o, 1), o -= 1);
3499
3539
  }
3500
3540
  }
3501
3541
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3503,30 +3543,30 @@ function Ns(s, e, t) {
3503
3543
  }
3504
3544
  return typeof n == "function" ? n(e, s) : n;
3505
3545
  }
3506
- const He = "\uFEFF", Xe = "", ze = "", Ne = "", _n = (s) => !!s && "items" in s, Cn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3507
- function vn(s) {
3546
+ const ze = "\uFEFF", Ze = "", xe = "", Oe = "", Bn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3547
+ function Kn(s) {
3508
3548
  switch (s) {
3509
- case He:
3549
+ case ze:
3510
3550
  return "<BOM>";
3511
- case Xe:
3551
+ case Ze:
3512
3552
  return "<DOC>";
3513
- case ze:
3553
+ case xe:
3514
3554
  return "<FLOW_END>";
3515
- case Ne:
3555
+ case Oe:
3516
3556
  return "<SCALAR>";
3517
3557
  default:
3518
3558
  return JSON.stringify(s);
3519
3559
  }
3520
3560
  }
3521
- function Os(s) {
3561
+ function Is(s) {
3522
3562
  switch (s) {
3523
- case He:
3563
+ case ze:
3524
3564
  return "byte-order-mark";
3525
- case Xe:
3565
+ case Ze:
3526
3566
  return "doc-mode";
3527
- case ze:
3567
+ case xe:
3528
3568
  return "flow-error-end";
3529
- case Ne:
3569
+ case Oe:
3530
3570
  return "scalar";
3531
3571
  case "---":
3532
3572
  return "doc-start";
@@ -3579,21 +3619,21 @@ function Os(s) {
3579
3619
  }
3580
3620
  return null;
3581
3621
  }
3582
- const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3622
+ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3583
3623
  __proto__: null,
3584
- BOM: He,
3585
- DOCUMENT: Xe,
3586
- FLOW_END: ze,
3587
- SCALAR: Ne,
3588
- createScalarToken: En,
3589
- isCollection: _n,
3590
- isScalar: Cn,
3591
- prettyToken: vn,
3592
- resolveAsScalar: An,
3593
- setScalarValue: In,
3594
- stringify: Ln,
3595
- tokenType: Os,
3596
- visit: z
3624
+ BOM: ze,
3625
+ DOCUMENT: Ze,
3626
+ FLOW_END: xe,
3627
+ SCALAR: Oe,
3628
+ createScalarToken: Ln,
3629
+ isCollection: Bn,
3630
+ isScalar: Mn,
3631
+ prettyToken: Kn,
3632
+ resolveAsScalar: Tn,
3633
+ setScalarValue: $n,
3634
+ stringify: Cn,
3635
+ tokenType: Is,
3636
+ visit: Z
3597
3637
  }, Symbol.toStringTag, { value: "Module" }));
3598
3638
  function D(s) {
3599
3639
  switch (s) {
@@ -3608,9 +3648,9 @@ function D(s) {
3608
3648
  return !1;
3609
3649
  }
3610
3650
  }
3611
- const Mt = new Set("0123456789ABCDEFabcdef"), Mn = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Le = new Set(",[]{}"), Pn = new Set(` ,[]{}
3612
- \r `), it = (s) => !s || Pn.has(s);
3613
- class As {
3651
+ const Pt = new Set("0123456789ABCDEFabcdef"), jn = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), _e = new Set(",[]{}"), Dn = new Set(` ,[]{}
3652
+ \r `), ot = (s) => !s || Dn.has(s);
3653
+ class Ts {
3614
3654
  constructor() {
3615
3655
  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;
3616
3656
  }
@@ -3702,7 +3742,7 @@ class As {
3702
3742
  let e = this.getLine();
3703
3743
  if (e === null)
3704
3744
  return this.setNext("stream");
3705
- if (e[0] === He && (yield* this.pushCount(1), e = e.substring(1)), e[0] === "%") {
3745
+ if (e[0] === ze && (yield* this.pushCount(1), e = e.substring(1)), e[0] === "%") {
3706
3746
  let t = e.length, n = e.indexOf("#");
3707
3747
  for (; n !== -1; ) {
3708
3748
  const r = e[n - 1];
@@ -3726,7 +3766,7 @@ class As {
3726
3766
  const t = yield* this.pushSpaces(!0);
3727
3767
  return yield* this.pushCount(e.length - t), yield* this.pushNewline(), "stream";
3728
3768
  }
3729
- return yield Xe, yield* this.parseLineStart();
3769
+ return yield Ze, yield* this.parseLineStart();
3730
3770
  }
3731
3771
  *parseLineStart() {
3732
3772
  const e = this.charAt(0);
@@ -3760,6 +3800,7 @@ class As {
3760
3800
  switch (e[t]) {
3761
3801
  case "#":
3762
3802
  yield* this.pushCount(e.length - t);
3803
+ // fallthrough
3763
3804
  case void 0:
3764
3805
  return yield* this.pushNewline(), yield* this.parseLineStart();
3765
3806
  case "{":
@@ -3769,7 +3810,7 @@ class As {
3769
3810
  case "]":
3770
3811
  return yield* this.pushCount(1), "doc";
3771
3812
  case "*":
3772
- return yield* this.pushUntil(it), "doc";
3813
+ return yield* this.pushUntil(ot), "doc";
3773
3814
  case '"':
3774
3815
  case "'":
3775
3816
  return yield* this.parseQuotedScalar();
@@ -3789,7 +3830,7 @@ class As {
3789
3830
  if (i === null)
3790
3831
  return this.setNext("flow");
3791
3832
  if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && D(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
3792
- return this.flowLevel = 0, yield ze, yield* this.parseLineStart();
3833
+ return this.flowLevel = 0, yield xe, yield* this.parseLineStart();
3793
3834
  let r = 0;
3794
3835
  for (; i[r] === ","; )
3795
3836
  r += yield* this.pushCount(1), r += yield* this.pushSpaces(!0), this.flowKey = !1;
@@ -3805,7 +3846,7 @@ class As {
3805
3846
  case "]":
3806
3847
  return yield* this.pushCount(1), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3807
3848
  case "*":
3808
- return yield* this.pushUntil(it), "flow";
3849
+ return yield* this.pushUntil(ot), "flow";
3809
3850
  case '"':
3810
3851
  case "'":
3811
3852
  return this.flowKey = !0, yield* this.parseQuotedScalar();
@@ -3814,6 +3855,7 @@ class As {
3814
3855
  if (this.flowKey || D(o) || o === ",")
3815
3856
  return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3816
3857
  }
3858
+ // fallthrough
3817
3859
  default:
3818
3860
  return this.flowKey = !1, yield* this.parsePlainScalar();
3819
3861
  }
@@ -3886,6 +3928,7 @@ class As {
3886
3928
  `)
3887
3929
  break;
3888
3930
  }
3931
+ // fallthrough
3889
3932
  default:
3890
3933
  break e;
3891
3934
  }
@@ -3927,7 +3970,7 @@ class As {
3927
3970
  else
3928
3971
  break;
3929
3972
  } while (!0);
3930
- return yield Ne, yield* this.pushToIndex(e + 1, !0), yield* this.parseLineStart();
3973
+ return yield Oe, yield* this.pushToIndex(e + 1, !0), yield* this.parseLineStart();
3931
3974
  }
3932
3975
  *parsePlainScalar() {
3933
3976
  const e = this.flowLevel > 0;
@@ -3935,14 +3978,14 @@ class As {
3935
3978
  for (; i = this.buffer[++n]; )
3936
3979
  if (i === ":") {
3937
3980
  const r = this.buffer[n + 1];
3938
- if (D(r) || e && Le.has(r))
3981
+ if (D(r) || e && _e.has(r))
3939
3982
  break;
3940
3983
  t = n;
3941
3984
  } else if (D(i)) {
3942
3985
  let r = this.buffer[n + 1];
3943
3986
  if (i === "\r" && (r === `
3944
3987
  ` ? (n += 1, i = `
3945
- `, r = this.buffer[n + 1]) : t = n), r === "#" || e && Le.has(r))
3988
+ `, r = this.buffer[n + 1]) : t = n), r === "#" || e && _e.has(r))
3946
3989
  break;
3947
3990
  if (i === `
3948
3991
  `) {
@@ -3952,11 +3995,11 @@ class As {
3952
3995
  n = Math.max(n, o - 2);
3953
3996
  }
3954
3997
  } else {
3955
- if (e && Le.has(i))
3998
+ if (e && _e.has(i))
3956
3999
  break;
3957
4000
  t = n;
3958
4001
  }
3959
- return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Ne, yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
4002
+ return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Oe, yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
3960
4003
  }
3961
4004
  *pushCount(e) {
3962
4005
  return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
@@ -3970,12 +4013,14 @@ class As {
3970
4013
  case "!":
3971
4014
  return (yield* this.pushTag()) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3972
4015
  case "&":
3973
- return (yield* this.pushUntil(it)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
4016
+ return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3974
4017
  case "-":
4018
+ // this is an error
3975
4019
  case "?":
4020
+ // this is an error outside flow collections
3976
4021
  case ":": {
3977
4022
  const e = this.flowLevel > 0, t = this.charAt(1);
3978
- if (D(t) || e && Le.has(t))
4023
+ if (D(t) || e && _e.has(t))
3979
4024
  return e ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3980
4025
  }
3981
4026
  }
@@ -3990,9 +4035,9 @@ class As {
3990
4035
  } else {
3991
4036
  let e = this.pos + 1, t = this.buffer[e];
3992
4037
  for (; t; )
3993
- if (Mn.has(t))
4038
+ if (jn.has(t))
3994
4039
  t = this.buffer[++e];
3995
- else if (t === "%" && Mt.has(this.buffer[e + 1]) && Mt.has(this.buffer[e + 2]))
4040
+ else if (t === "%" && Pt.has(this.buffer[e + 1]) && Pt.has(this.buffer[e + 2]))
3996
4041
  t = this.buffer[e += 3];
3997
4042
  else
3998
4043
  break;
@@ -4020,7 +4065,7 @@ class As {
4020
4065
  return yield* this.pushToIndex(t, !1);
4021
4066
  }
4022
4067
  }
4023
- class Es {
4068
+ class Ls {
4024
4069
  constructor() {
4025
4070
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4026
4071
  let t = 0, n = this.lineStarts.length;
@@ -4037,13 +4082,13 @@ class Es {
4037
4082
  };
4038
4083
  }
4039
4084
  }
4040
- function Q(s, e) {
4085
+ function Y(s, e) {
4041
4086
  for (let t = 0; t < s.length; ++t)
4042
4087
  if (s[t].type === e)
4043
4088
  return !0;
4044
4089
  return !1;
4045
4090
  }
4046
- function Pt(s) {
4091
+ function jt(s) {
4047
4092
  for (let e = 0; e < s.length; ++e)
4048
4093
  switch (s[e].type) {
4049
4094
  case "space":
@@ -4055,7 +4100,7 @@ function Pt(s) {
4055
4100
  }
4056
4101
  return -1;
4057
4102
  }
4058
- function Is(s) {
4103
+ function $s(s) {
4059
4104
  switch (s == null ? void 0 : s.type) {
4060
4105
  case "alias":
4061
4106
  case "scalar":
@@ -4067,7 +4112,7 @@ function Is(s) {
4067
4112
  return !1;
4068
4113
  }
4069
4114
  }
4070
- function $e(s) {
4115
+ function Ce(s) {
4071
4116
  switch (s.type) {
4072
4117
  case "document":
4073
4118
  return s.start;
@@ -4077,11 +4122,12 @@ function $e(s) {
4077
4122
  }
4078
4123
  case "block-seq":
4079
4124
  return s.items[s.items.length - 1].start;
4125
+ /* istanbul ignore next should not happen */
4080
4126
  default:
4081
4127
  return [];
4082
4128
  }
4083
4129
  }
4084
- function te(s) {
4130
+ function ne(s) {
4085
4131
  var t;
4086
4132
  if (s.length === 0)
4087
4133
  return [];
@@ -4099,18 +4145,18 @@ function te(s) {
4099
4145
  ;
4100
4146
  return s.splice(e, s.length);
4101
4147
  }
4102
- function jt(s) {
4148
+ function Dt(s) {
4103
4149
  if (s.start.type === "flow-seq-start")
4104
4150
  for (const e of s.items)
4105
- e.sep && !e.value && !Q(e.start, "explicit-key-ind") && !Q(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Is(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4151
+ e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, $s(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4106
4152
  }
4107
- class Et {
4153
+ class Tt {
4108
4154
  /**
4109
4155
  * @param onNewLine - If defined, called separately with the start position of
4110
4156
  * each new line (in `parse()`, including the start of input).
4111
4157
  */
4112
4158
  constructor(e) {
4113
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new As(), this.onNewLine = e;
4159
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ts(), this.onNewLine = e;
4114
4160
  }
4115
4161
  /**
4116
4162
  * Parse `source` as a YAML stream.
@@ -4134,7 +4180,7 @@ class Et {
4134
4180
  this.atScalar = !1, yield* this.step(), this.offset += e.length;
4135
4181
  return;
4136
4182
  }
4137
- const t = Os(e);
4183
+ const t = Is(e);
4138
4184
  if (t)
4139
4185
  if (t === "scalar")
4140
4186
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4223,7 +4269,7 @@ class Et {
4223
4269
  yield t;
4224
4270
  else {
4225
4271
  const n = this.peek(1);
4226
- switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && jt(t), n.type) {
4272
+ switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && Dt(t), n.type) {
4227
4273
  case "document":
4228
4274
  n.value = t;
4229
4275
  break;
@@ -4253,12 +4299,13 @@ class Et {
4253
4299
  !i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
4254
4300
  return;
4255
4301
  }
4302
+ /* istanbul ignore next should not happen */
4256
4303
  default:
4257
4304
  yield* this.pop(), yield* this.pop(t);
4258
4305
  }
4259
4306
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4260
4307
  const i = t.items[t.items.length - 1];
4261
- i && !i.sep && !i.value && i.start.length > 0 && Pt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4308
+ i && !i.sep && !i.value && i.start.length > 0 && jt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4262
4309
  }
4263
4310
  }
4264
4311
  }
@@ -4296,7 +4343,7 @@ class Et {
4296
4343
  return yield* this.lineEnd(e);
4297
4344
  switch (this.type) {
4298
4345
  case "doc-start": {
4299
- Pt(e.start) !== -1 ? (yield* this.pop(), yield* this.step()) : e.start.push(this.sourceToken);
4346
+ jt(e.start) !== -1 ? (yield* this.pop(), yield* this.step()) : e.start.push(this.sourceToken);
4300
4347
  return;
4301
4348
  }
4302
4349
  case "anchor":
@@ -4317,7 +4364,7 @@ class Et {
4317
4364
  }
4318
4365
  *scalar(e) {
4319
4366
  if (this.type === "map-value-ind") {
4320
- const t = $e(this.peek(2)), n = te(t);
4367
+ const t = Ce(this.peek(2)), n = ne(t);
4321
4368
  let i;
4322
4369
  e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4323
4370
  const r = {
@@ -4347,6 +4394,7 @@ class Et {
4347
4394
  }
4348
4395
  yield* this.pop();
4349
4396
  break;
4397
+ /* istanbul ignore next should not happen */
4350
4398
  default:
4351
4399
  yield* this.pop(), yield* this.step();
4352
4400
  }
@@ -4419,15 +4467,15 @@ class Et {
4419
4467
  if (t.sep)
4420
4468
  if (t.value)
4421
4469
  e.items.push({ start: [], key: null, sep: [this.sourceToken] });
4422
- else if (Q(t.sep, "map-value-ind"))
4470
+ else if (Y(t.sep, "map-value-ind"))
4423
4471
  this.stack.push({
4424
4472
  type: "block-map",
4425
4473
  offset: this.offset,
4426
4474
  indent: this.indent,
4427
4475
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4428
4476
  });
4429
- else if (Is(t.key) && !Q(t.sep, "newline")) {
4430
- const l = te(t.start), a = t.key, c = t.sep;
4477
+ else if ($s(t.key) && !Y(t.sep, "newline")) {
4478
+ const l = ne(t.start), a = t.key, c = t.sep;
4431
4479
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4432
4480
  type: "block-map",
4433
4481
  offset: this.offset,
@@ -4435,10 +4483,10 @@ class Et {
4435
4483
  items: [{ start: l, key: a, sep: c }]
4436
4484
  });
4437
4485
  } else o.length > 0 ? t.sep = t.sep.concat(o, this.sourceToken) : t.sep.push(this.sourceToken);
4438
- else if (Q(t.start, "newline"))
4486
+ else if (Y(t.start, "newline"))
4439
4487
  Object.assign(t, { key: null, sep: [this.sourceToken] });
4440
4488
  else {
4441
- const l = te(t.start);
4489
+ const l = ne(t.start);
4442
4490
  this.stack.push({
4443
4491
  type: "block-map",
4444
4492
  offset: this.offset,
@@ -4447,7 +4495,7 @@ class Et {
4447
4495
  });
4448
4496
  }
4449
4497
  else
4450
- t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : Q(t.sep, "map-value-ind") ? this.stack.push({
4498
+ t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : Y(t.sep, "map-value-ind") ? this.stack.push({
4451
4499
  type: "block-map",
4452
4500
  offset: this.offset,
4453
4501
  indent: this.indent,
@@ -4466,7 +4514,18 @@ class Et {
4466
4514
  default: {
4467
4515
  const l = this.startBlockValue(e);
4468
4516
  if (l) {
4469
- i && l.type !== "block-seq" && e.items.push({ start: o }), this.stack.push(l);
4517
+ if (l.type === "block-seq") {
4518
+ if (!t.explicitKey && t.sep && !Y(t.sep, "newline")) {
4519
+ yield* this.pop({
4520
+ type: "error",
4521
+ offset: this.offset,
4522
+ message: "Unexpected block-seq-ind on same line with key",
4523
+ source: this.source
4524
+ });
4525
+ return;
4526
+ }
4527
+ } else i && e.items.push({ start: o });
4528
+ this.stack.push(l);
4470
4529
  return;
4471
4530
  }
4472
4531
  }
@@ -4509,7 +4568,7 @@ class Et {
4509
4568
  case "seq-item-ind":
4510
4569
  if (this.indent !== e.indent)
4511
4570
  break;
4512
- t.value || Q(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4571
+ t.value || Y(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4513
4572
  return;
4514
4573
  }
4515
4574
  if (this.indent > e.indent) {
@@ -4564,8 +4623,8 @@ class Et {
4564
4623
  if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4565
4624
  yield* this.pop(), yield* this.step();
4566
4625
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4567
- const i = $e(n), r = te(i);
4568
- jt(e);
4626
+ const i = Ce(n), r = ne(i);
4627
+ Dt(e);
4569
4628
  const o = e.end.splice(1, e.end.length);
4570
4629
  o.push(this.sourceToken);
4571
4630
  const l = {
@@ -4628,7 +4687,7 @@ class Et {
4628
4687
  };
4629
4688
  case "explicit-key-ind": {
4630
4689
  this.onKeyLine = !0;
4631
- const t = $e(e), n = te(t);
4690
+ const t = Ce(e), n = ne(t);
4632
4691
  return n.push(this.sourceToken), {
4633
4692
  type: "block-map",
4634
4693
  offset: this.offset,
@@ -4638,7 +4697,7 @@ class Et {
4638
4697
  }
4639
4698
  case "map-value-ind": {
4640
4699
  this.onKeyLine = !0;
4641
- const t = $e(e), n = te(t);
4700
+ const t = Ce(e), n = ne(t);
4642
4701
  return {
4643
4702
  type: "block-map",
4644
4703
  offset: this.offset,
@@ -4667,6 +4726,7 @@ class Et {
4667
4726
  break;
4668
4727
  case "newline":
4669
4728
  this.onKeyLine = !1;
4729
+ // fallthrough
4670
4730
  case "space":
4671
4731
  case "comment":
4672
4732
  default:
@@ -4674,43 +4734,43 @@ class Et {
4674
4734
  }
4675
4735
  }
4676
4736
  }
4677
- function Ts(s) {
4737
+ function _s(s) {
4678
4738
  const e = s.prettyErrors !== !1;
4679
- return { lineCounter: s.lineCounter || e && new Es() || null, prettyErrors: e };
4739
+ return { lineCounter: s.lineCounter || e && new Ls() || null, prettyErrors: e };
4680
4740
  }
4681
- function jn(s, e = {}) {
4682
- const { lineCounter: t, prettyErrors: n } = Ts(e), i = new Et(t == null ? void 0 : t.addNewLine), r = new At(e), o = Array.from(r.compose(i.parse(s)));
4741
+ function qn(s, e = {}) {
4742
+ const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t == null ? void 0 : t.addNewLine), r = new It(e), o = Array.from(r.compose(i.parse(s)));
4683
4743
  if (n && t)
4684
4744
  for (const l of o)
4685
- l.errors.forEach(je(s, t)), l.warnings.forEach(je(s, t));
4745
+ l.errors.forEach(De(s, t)), l.warnings.forEach(De(s, t));
4686
4746
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4687
4747
  }
4688
- function Ls(s, e = {}) {
4689
- const { lineCounter: t, prettyErrors: n } = Ts(e), i = new Et(t == null ? void 0 : t.addNewLine), r = new At(e);
4748
+ function Cs(s, e = {}) {
4749
+ const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t == null ? void 0 : t.addNewLine), r = new It(e);
4690
4750
  let o = null;
4691
4751
  for (const l of r.compose(i.parse(s), !0, s.length))
4692
4752
  if (!o)
4693
4753
  o = l;
4694
4754
  else if (o.options.logLevel !== "silent") {
4695
- o.errors.push(new X(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4755
+ o.errors.push(new z(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4696
4756
  break;
4697
4757
  }
4698
- return n && t && (o.errors.forEach(je(s, t)), o.warnings.forEach(je(s, t))), o;
4758
+ return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
4699
4759
  }
4700
- function Kn(s, e, t) {
4760
+ function Fn(s, e, t) {
4701
4761
  let n;
4702
4762
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4703
- const i = Ls(s, t);
4763
+ const i = Cs(s, t);
4704
4764
  if (!i)
4705
4765
  return null;
4706
- if (i.warnings.forEach((r) => Ht(i.options.logLevel, r)), i.errors.length > 0) {
4766
+ if (i.warnings.forEach((r) => zt(i.options.logLevel, r)), i.errors.length > 0) {
4707
4767
  if (i.options.logLevel !== "silent")
4708
4768
  throw i.errors[0];
4709
4769
  i.errors = [];
4710
4770
  }
4711
4771
  return i.toJS(Object.assign({ reviver: n }, t));
4712
4772
  }
4713
- function Dn(s, e, t) {
4773
+ function Rn(s, e, t) {
4714
4774
  let n = null;
4715
4775
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
4716
4776
  const i = Math.round(t);
@@ -4721,70 +4781,70 @@ function Dn(s, e, t) {
4721
4781
  if (!i)
4722
4782
  return;
4723
4783
  }
4724
- return new ye(s, n, t).toString(t);
4784
+ return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
4725
4785
  }
4726
- const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4786
+ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4727
4787
  __proto__: null,
4728
- Alias: qe,
4729
- CST: Bn,
4730
- Composer: At,
4731
- Document: ye,
4732
- Lexer: As,
4733
- LineCounter: Es,
4788
+ Alias: Re,
4789
+ CST: Pn,
4790
+ Composer: It,
4791
+ Document: ge,
4792
+ Lexer: Ts,
4793
+ LineCounter: Ls,
4734
4794
  Pair: v,
4735
- Parser: Et,
4736
- Scalar: O,
4737
- Schema: We,
4738
- YAMLError: Nt,
4739
- YAMLMap: P,
4740
- YAMLParseError: X,
4741
- YAMLSeq: Y,
4742
- YAMLWarning: ds,
4743
- isAlias: Z,
4795
+ Parser: Tt,
4796
+ Scalar: A,
4797
+ Schema: Xe,
4798
+ YAMLError: At,
4799
+ YAMLMap: K,
4800
+ YAMLParseError: z,
4801
+ YAMLSeq: W,
4802
+ YAMLWarning: ys,
4803
+ isAlias: x,
4744
4804
  isCollection: L,
4745
- isDocument: ue,
4746
- isMap: he,
4805
+ isDocument: ee,
4806
+ isMap: de,
4747
4807
  isNode: $,
4748
- isPair: I,
4808
+ isPair: T,
4749
4809
  isScalar: E,
4750
- isSeq: de,
4751
- parse: Kn,
4752
- parseAllDocuments: jn,
4753
- parseDocument: Ls,
4754
- stringify: Dn,
4755
- visit: J,
4756
- visitAsync: De
4810
+ isSeq: pe,
4811
+ parse: Fn,
4812
+ parseAllDocuments: qn,
4813
+ parseDocument: Cs,
4814
+ stringify: Rn,
4815
+ visit: Q,
4816
+ visitAsync: Fe
4757
4817
  }, Symbol.toStringTag, { value: "Module" }));
4758
4818
  export {
4759
- qe as Alias,
4760
- Bn as CST,
4761
- At as Composer,
4762
- ye as Document,
4763
- As as Lexer,
4764
- Es as LineCounter,
4819
+ Re as Alias,
4820
+ Pn as CST,
4821
+ It as Composer,
4822
+ ge as Document,
4823
+ Ts as Lexer,
4824
+ Ls as LineCounter,
4765
4825
  v as Pair,
4766
- Et as Parser,
4767
- O as Scalar,
4768
- We as Schema,
4769
- Nt as YAMLError,
4770
- P as YAMLMap,
4771
- X as YAMLParseError,
4772
- Y as YAMLSeq,
4773
- ds as YAMLWarning,
4774
- qn as default,
4775
- Z as isAlias,
4826
+ Tt as Parser,
4827
+ A as Scalar,
4828
+ Xe as Schema,
4829
+ At as YAMLError,
4830
+ K as YAMLMap,
4831
+ z as YAMLParseError,
4832
+ W as YAMLSeq,
4833
+ ys as YAMLWarning,
4834
+ Un as default,
4835
+ x as isAlias,
4776
4836
  L as isCollection,
4777
- ue as isDocument,
4778
- he as isMap,
4837
+ ee as isDocument,
4838
+ de as isMap,
4779
4839
  $ as isNode,
4780
- I as isPair,
4840
+ T as isPair,
4781
4841
  E as isScalar,
4782
- de as isSeq,
4783
- Kn as parse,
4784
- jn as parseAllDocuments,
4785
- Ls as parseDocument,
4786
- Dn as stringify,
4787
- J as visit,
4788
- De as visitAsync
4842
+ pe as isSeq,
4843
+ Fn as parse,
4844
+ qn as parseAllDocuments,
4845
+ Cs as parseDocument,
4846
+ Rn as stringify,
4847
+ Q as visit,
4848
+ Fe as visitAsync
4789
4849
  };
4790
- //# sourceMappingURL=index-CLd8ycZz.js.map
4850
+ //# sourceMappingURL=index-DcHeSvkE.js.map