@skmtc/core 0.0.491 → 0.0.492

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 (803) hide show
  1. package/package.json +27 -13
  2. package/script/_dnt.polyfills.d.ts +12 -0
  3. package/script/_dnt.polyfills.d.ts.map +1 -0
  4. package/script/_dnt.polyfills.js +16 -0
  5. package/script/_dnt.shims.d.ts +6 -0
  6. package/script/_dnt.shims.d.ts.map +1 -0
  7. package/script/_dnt.shims.js +65 -0
  8. package/script/context/CoreContext.d.ts +58 -0
  9. package/script/context/CoreContext.d.ts.map +1 -0
  10. package/script/context/CoreContext.js +227 -0
  11. package/script/context/GenerateContext.d.ts +232 -0
  12. package/script/context/GenerateContext.d.ts.map +1 -0
  13. package/script/context/GenerateContext.js +510 -0
  14. package/script/context/ParseContext.d.ts +34 -0
  15. package/script/context/ParseContext.d.ts.map +1 -0
  16. package/script/context/ParseContext.js +131 -0
  17. package/script/context/RenderContext.d.ts +38 -0
  18. package/script/context/RenderContext.d.ts.map +1 -0
  19. package/script/context/RenderContext.js +227 -0
  20. package/script/context/ResultsHandler.d.ts +19 -0
  21. package/script/context/ResultsHandler.d.ts.map +1 -0
  22. package/script/context/ResultsHandler.js +56 -0
  23. package/script/context/StackTrail.d.ts +14 -0
  24. package/script/context/StackTrail.d.ts.map +1 -0
  25. package/script/context/StackTrail.js +85 -0
  26. package/script/context/types.d.ts +23 -0
  27. package/script/context/types.d.ts.map +1 -0
  28. package/script/context/types.js +2 -0
  29. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts +700 -0
  30. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts.map +1 -0
  31. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.js +976 -0
  32. package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +218 -0
  33. package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
  34. package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +298 -0
  35. package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts +146 -0
  36. package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +1 -0
  37. package/script/deps/jsr.io/@std/io/0.224.9/types.js +18 -0
  38. package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts +51 -0
  39. package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts.map +1 -0
  40. package/script/deps/jsr.io/@std/io/0.224.9/write_all.js +65 -0
  41. package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts +4 -0
  42. package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts.map +1 -0
  43. package/script/deps/jsr.io/@std/log/0.224.8/_config.js +17 -0
  44. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts +8 -0
  45. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts.map +1 -0
  46. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.js +11 -0
  47. package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts +8 -0
  48. package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts.map +1 -0
  49. package/script/deps/jsr.io/@std/log/0.224.8/_state.js +10 -0
  50. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts +22 -0
  51. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts.map +1 -0
  52. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.js +64 -0
  53. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts +18 -0
  54. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts.map +1 -0
  55. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.js +63 -0
  56. package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts +5 -0
  57. package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts.map +1 -0
  58. package/script/deps/jsr.io/@std/log/0.224.8/critical.js +13 -0
  59. package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts +5 -0
  60. package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts.map +1 -0
  61. package/script/deps/jsr.io/@std/log/0.224.8/debug.js +13 -0
  62. package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts +5 -0
  63. package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts.map +1 -0
  64. package/script/deps/jsr.io/@std/log/0.224.8/error.js +13 -0
  65. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts +54 -0
  66. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +1 -0
  67. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.js +162 -0
  68. package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts +6 -0
  69. package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts.map +1 -0
  70. package/script/deps/jsr.io/@std/log/0.224.8/formatters.js +23 -0
  71. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts +4 -0
  72. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts.map +1 -0
  73. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.js +24 -0
  74. package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts +5 -0
  75. package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts.map +1 -0
  76. package/script/deps/jsr.io/@std/log/0.224.8/info.js +13 -0
  77. package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts +26 -0
  78. package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts.map +1 -0
  79. package/script/deps/jsr.io/@std/log/0.224.8/levels.js +48 -0
  80. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts +63 -0
  81. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +1 -0
  82. package/script/deps/jsr.io/@std/log/0.224.8/logger.js +185 -0
  83. package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts +390 -0
  84. package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts.map +1 -0
  85. package/script/deps/jsr.io/@std/log/0.224.8/mod.js +406 -0
  86. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts +53 -0
  87. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts.map +1 -0
  88. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.js +152 -0
  89. package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts +4 -0
  90. package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts.map +1 -0
  91. package/script/deps/jsr.io/@std/log/0.224.8/setup.js +44 -0
  92. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +51 -0
  93. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +1 -0
  94. package/script/deps/jsr.io/@std/log/0.224.8/warn.js +13 -0
  95. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
  96. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
  97. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
  98. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
  99. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
  100. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
  101. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
  102. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
  104. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
  105. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
  106. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
  107. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
  108. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
  110. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
  111. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
  112. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
  113. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
  114. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
  115. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
  116. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
  117. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
  118. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
  119. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
  120. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
  121. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
  122. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
  123. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
  124. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
  125. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
  126. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
  127. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
  128. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
  129. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
  130. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
  131. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
  132. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
  133. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
  134. package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
  135. package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
  136. package/script/deps/jsr.io/@std/path/1.0.6/_os.js +35 -0
  137. package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
  138. package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
  139. package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
  140. package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
  141. package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
  142. package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
  143. package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
  144. package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
  145. package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
  146. package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
  147. package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
  149. package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
  150. package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
  152. package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
  153. package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
  154. package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
  155. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
  156. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
  157. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
  158. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
  159. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
  160. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
  161. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
  162. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
  163. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
  164. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
  165. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
  166. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
  167. package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
  168. package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
  169. package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
  170. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
  171. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
  172. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
  173. package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
  174. package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
  175. package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
  176. package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
  177. package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
  178. package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
  179. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
  180. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
  181. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
  182. package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
  183. package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
  184. package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
  185. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
  186. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
  188. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
  189. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
  191. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
  192. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
  194. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
  195. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
  196. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
  197. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
  198. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
  200. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
  201. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
  202. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
  203. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
  204. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
  205. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
  206. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
  207. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
  209. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
  210. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
  212. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
  213. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
  214. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
  215. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
  216. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
  218. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
  219. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
  221. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
  222. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
  224. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
  225. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
  227. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
  228. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
  230. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
  231. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +85 -0
  233. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
  234. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
  236. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
  237. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
  239. package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
  240. package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
  242. package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
  243. package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
  245. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
  246. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
  248. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
  249. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
  251. package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
  252. package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
  254. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
  255. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
  257. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
  258. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
  260. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
  261. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
  263. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
  264. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
  266. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
  267. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
  269. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
  270. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
  272. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
  273. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
  275. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
  276. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
  278. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
  279. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
  281. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
  282. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
  284. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
  285. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
  287. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
  288. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
  290. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
  291. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
  293. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
  294. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
  296. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
  297. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
  299. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
  300. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +180 -0
  302. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
  303. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
  305. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
  306. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
  308. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
  309. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
  311. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
  312. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
  314. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
  315. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
  317. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
  318. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
  320. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
  321. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
  323. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
  324. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
  326. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
  327. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
  329. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
  330. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
  332. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
  333. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
  335. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
  336. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
  338. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
  339. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
  341. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
  342. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
  343. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
  344. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
  345. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
  347. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
  348. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
  350. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
  351. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
  353. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
  354. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
  356. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
  357. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
  359. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
  360. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
  362. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
  363. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
  365. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
  366. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
  368. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
  369. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
  371. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
  372. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
  374. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
  375. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
  377. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
  378. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
  379. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
  380. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
  381. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
  382. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
  383. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
  384. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
  385. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
  386. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
  387. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
  388. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
  389. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
  390. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
  391. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
  392. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
  393. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
  394. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
  395. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
  396. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
  397. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
  398. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
  399. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
  400. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
  401. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
  402. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
  403. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
  404. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
  405. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
  406. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
  407. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
  408. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
  409. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
  410. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
  411. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
  412. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
  413. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
  414. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
  415. package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
  416. package/script/dsl/ContentSettings.d.ts +19 -0
  417. package/script/dsl/ContentSettings.d.ts.map +1 -0
  418. package/script/dsl/ContentSettings.js +36 -0
  419. package/script/dsl/Definition.d.ts +19 -0
  420. package/script/dsl/Definition.d.ts.map +1 -0
  421. package/script/dsl/Definition.js +41 -0
  422. package/script/dsl/EntityType.d.ts +6 -0
  423. package/script/dsl/EntityType.d.ts.map +1 -0
  424. package/script/dsl/EntityType.js +22 -0
  425. package/script/dsl/File.d.ts +26 -0
  426. package/script/dsl/File.d.ts.map +1 -0
  427. package/script/dsl/File.js +101 -0
  428. package/script/dsl/GatewayBase.d.ts +13 -0
  429. package/script/dsl/GatewayBase.d.ts.map +1 -0
  430. package/script/dsl/GatewayBase.js +23 -0
  431. package/script/dsl/GeneratedValueList.d.ts +9 -0
  432. package/script/dsl/GeneratedValueList.d.ts.map +1 -0
  433. package/script/dsl/GeneratedValueList.js +31 -0
  434. package/script/dsl/Identifier.d.ts +11 -0
  435. package/script/dsl/Identifier.d.ts.map +1 -0
  436. package/script/dsl/Identifier.js +52 -0
  437. package/script/dsl/Import.d.ts +22 -0
  438. package/script/dsl/Import.d.ts.map +1 -0
  439. package/script/dsl/Import.js +60 -0
  440. package/script/dsl/Inserted.d.ts +18 -0
  441. package/script/dsl/Inserted.d.ts.map +1 -0
  442. package/script/dsl/Inserted.js +34 -0
  443. package/script/dsl/Stringable.d.ts +4 -0
  444. package/script/dsl/Stringable.d.ts.map +1 -0
  445. package/script/dsl/Stringable.js +2 -0
  446. package/script/dsl/ValueBase.d.ts +16 -0
  447. package/script/dsl/ValueBase.d.ts.map +1 -0
  448. package/script/dsl/ValueBase.js +46 -0
  449. package/script/dsl/constants.d.ts +2 -0
  450. package/script/dsl/constants.d.ts.map +1 -0
  451. package/script/dsl/constants.js +4 -0
  452. package/script/dsl/model/ModelBase.d.ts +23 -0
  453. package/script/dsl/model/ModelBase.d.ts.map +1 -0
  454. package/script/dsl/model/ModelBase.js +45 -0
  455. package/script/dsl/model/ModelDriver.d.ts +27 -0
  456. package/script/dsl/model/ModelDriver.d.ts.map +1 -0
  457. package/script/dsl/model/ModelDriver.js +105 -0
  458. package/script/dsl/model/ModelInsertable.d.ts +29 -0
  459. package/script/dsl/model/ModelInsertable.d.ts.map +1 -0
  460. package/script/dsl/model/ModelInsertable.js +2 -0
  461. package/script/dsl/model/toModelInsertable.d.ts +36 -0
  462. package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
  463. package/script/dsl/model/toModelInsertable.js +75 -0
  464. package/script/dsl/operation/OperationBase.d.ts +36 -0
  465. package/script/dsl/operation/OperationBase.d.ts.map +1 -0
  466. package/script/dsl/operation/OperationBase.js +61 -0
  467. package/script/dsl/operation/OperationDriver.d.ts +27 -0
  468. package/script/dsl/operation/OperationDriver.d.ts.map +1 -0
  469. package/script/dsl/operation/OperationDriver.js +107 -0
  470. package/script/dsl/operation/OperationInsertable.d.ts +43 -0
  471. package/script/dsl/operation/OperationInsertable.d.ts.map +1 -0
  472. package/script/dsl/operation/OperationInsertable.js +2 -0
  473. package/script/dsl/operation/toOperationGateway.d.ts +29 -0
  474. package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
  475. package/script/dsl/operation/toOperationGateway.js +68 -0
  476. package/script/dsl/operation/toOperationInsertable.d.ts +44 -0
  477. package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -0
  478. package/script/dsl/operation/toOperationInsertable.js +75 -0
  479. package/script/helpers/ResultsLog.d.ts +8 -0
  480. package/script/helpers/ResultsLog.d.ts.map +1 -0
  481. package/script/helpers/ResultsLog.js +50 -0
  482. package/script/helpers/isImported.d.ts +2 -0
  483. package/script/helpers/isImported.d.ts.map +1 -0
  484. package/script/helpers/isImported.js +8 -0
  485. package/script/helpers/naming.d.ts +9 -0
  486. package/script/helpers/naming.d.ts.map +1 -0
  487. package/script/helpers/naming.js +33 -0
  488. package/script/helpers/refFns.d.ts +8 -0
  489. package/script/helpers/refFns.d.ts.map +1 -0
  490. package/script/helpers/refFns.js +24 -0
  491. package/script/helpers/strings.d.ts +9 -0
  492. package/script/helpers/strings.d.ts.map +1 -0
  493. package/script/helpers/strings.js +25 -0
  494. package/script/helpers/toResolvedArtifactPath.d.ts +8 -0
  495. package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -0
  496. package/script/helpers/toResolvedArtifactPath.js +9 -0
  497. package/script/helpers/tracer.d.ts +3 -0
  498. package/script/helpers/tracer.d.ts.map +1 -0
  499. package/script/helpers/tracer.js +10 -0
  500. package/script/mod.d.ts +75 -0
  501. package/script/mod.d.ts.map +1 -0
  502. package/script/mod.js +90 -0
  503. package/script/oas/array/Array.d.ts +58 -0
  504. package/script/oas/array/Array.d.ts.map +1 -0
  505. package/script/oas/array/Array.js +117 -0
  506. package/script/oas/array/array-types.d.ts +13 -0
  507. package/script/oas/array/array-types.d.ts.map +1 -0
  508. package/script/oas/array/array-types.js +20 -0
  509. package/script/oas/array/toArray.d.ts +10 -0
  510. package/script/oas/array/toArray.d.ts.map +1 -0
  511. package/script/oas/array/toArray.js +20 -0
  512. package/script/oas/boolean/Boolean.d.ts +48 -0
  513. package/script/oas/boolean/Boolean.d.ts.map +1 -0
  514. package/script/oas/boolean/Boolean.js +97 -0
  515. package/script/oas/boolean/boolean-types.d.ts +10 -0
  516. package/script/oas/boolean/boolean-types.d.ts.map +1 -0
  517. package/script/oas/boolean/boolean-types.js +11 -0
  518. package/script/oas/boolean/toBoolean.d.ts +10 -0
  519. package/script/oas/boolean/toBoolean.d.ts.map +1 -0
  520. package/script/oas/boolean/toBoolean.js +17 -0
  521. package/script/oas/components/Components.d.ts +43 -0
  522. package/script/oas/components/Components.d.ts.map +1 -0
  523. package/script/oas/components/Components.js +66 -0
  524. package/script/oas/components/toComponentsV3.d.ts +10 -0
  525. package/script/oas/components/toComponentsV3.d.ts.map +1 -0
  526. package/script/oas/components/toComponentsV3.js +37 -0
  527. package/script/oas/contact/Contact.d.ts +15 -0
  528. package/script/oas/contact/Contact.d.ts.map +1 -0
  529. package/script/oas/contact/Contact.js +42 -0
  530. package/script/oas/contact/toContactV3.d.ts +5 -0
  531. package/script/oas/contact/toContactV3.d.ts.map +1 -0
  532. package/script/oas/contact/toContactV3.js +19 -0
  533. package/script/oas/discriminator/Discriminator.d.ts +9 -0
  534. package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
  535. package/script/oas/discriminator/Discriminator.js +21 -0
  536. package/script/oas/discriminator/discriminator-types.d.ts +8 -0
  537. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -0
  538. package/script/oas/discriminator/discriminator-types.js +9 -0
  539. package/script/oas/discriminator/toDiscriminatorV3.d.ts +10 -0
  540. package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
  541. package/script/oas/discriminator/toDiscriminatorV3.js +16 -0
  542. package/script/oas/document/Document.d.ts +33 -0
  543. package/script/oas/document/Document.d.ts.map +1 -0
  544. package/script/oas/document/Document.js +77 -0
  545. package/script/oas/document/toDocumentFieldsV3.d.ts +10 -0
  546. package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -0
  547. package/script/oas/document/toDocumentFieldsV3.js +25 -0
  548. package/script/oas/example/Example.d.ts +28 -0
  549. package/script/oas/example/Example.d.ts.map +1 -0
  550. package/script/oas/example/Example.js +59 -0
  551. package/script/oas/example/example-types.d.ts +9 -0
  552. package/script/oas/example/example-types.d.ts.map +1 -0
  553. package/script/oas/example/example-types.js +12 -0
  554. package/script/oas/example/toExamplesV3.d.ts +22 -0
  555. package/script/oas/example/toExamplesV3.d.ts.map +1 -0
  556. package/script/oas/example/toExamplesV3.js +49 -0
  557. package/script/oas/header/Header.d.ts +45 -0
  558. package/script/oas/header/Header.d.ts.map +1 -0
  559. package/script/oas/header/Header.js +84 -0
  560. package/script/oas/header/toHeadersV3.d.ts +11 -0
  561. package/script/oas/header/toHeadersV3.d.ts.map +1 -0
  562. package/script/oas/header/toHeadersV3.js +41 -0
  563. package/script/oas/info/Info.d.ts +25 -0
  564. package/script/oas/info/Info.d.ts.map +1 -0
  565. package/script/oas/info/Info.js +51 -0
  566. package/script/oas/info/toInfoV3.d.ts +10 -0
  567. package/script/oas/info/toInfoV3.d.ts.map +1 -0
  568. package/script/oas/info/toInfoV3.js +24 -0
  569. package/script/oas/integer/Integer.d.ts +55 -0
  570. package/script/oas/integer/Integer.d.ts.map +1 -0
  571. package/script/oas/integer/Integer.js +116 -0
  572. package/script/oas/integer/integer-types.d.ts +13 -0
  573. package/script/oas/integer/integer-types.d.ts.map +1 -0
  574. package/script/oas/integer/integer-types.js +22 -0
  575. package/script/oas/integer/toInteger.d.ts +10 -0
  576. package/script/oas/integer/toInteger.d.ts.map +1 -0
  577. package/script/oas/integer/toInteger.js +20 -0
  578. package/script/oas/intersection/Intersection.d.ts +30 -0
  579. package/script/oas/intersection/Intersection.d.ts.map +1 -0
  580. package/script/oas/intersection/Intersection.js +87 -0
  581. package/script/oas/intersection/intersection-types.d.ts +14 -0
  582. package/script/oas/intersection/intersection-types.d.ts.map +1 -0
  583. package/script/oas/intersection/intersection-types.js +15 -0
  584. package/script/oas/intersection/toIntersection.d.ts +11 -0
  585. package/script/oas/intersection/toIntersection.d.ts.map +1 -0
  586. package/script/oas/intersection/toIntersection.js +20 -0
  587. package/script/oas/license/License.d.ts +13 -0
  588. package/script/oas/license/License.d.ts.map +1 -0
  589. package/script/oas/license/License.js +35 -0
  590. package/script/oas/license/toLicenseV3.d.ts +5 -0
  591. package/script/oas/license/toLicenseV3.d.ts.map +1 -0
  592. package/script/oas/license/toLicenseV3.js +18 -0
  593. package/script/oas/markdown/markdown-types.d.ts +3 -0
  594. package/script/oas/markdown/markdown-types.d.ts.map +1 -0
  595. package/script/oas/markdown/markdown-types.js +5 -0
  596. package/script/oas/mediaType/MediaType.d.ts +18 -0
  597. package/script/oas/mediaType/MediaType.d.ts.map +1 -0
  598. package/script/oas/mediaType/MediaType.js +42 -0
  599. package/script/oas/mediaType/mediaType-types.d.ts +12 -0
  600. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -0
  601. package/script/oas/mediaType/mediaType-types.js +15 -0
  602. package/script/oas/mediaType/toMediaTypeItemV3.d.ts +21 -0
  603. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
  604. package/script/oas/mediaType/toMediaTypeItemV3.js +45 -0
  605. package/script/oas/null/null-types.d.ts +10 -0
  606. package/script/oas/null/null-types.d.ts.map +1 -0
  607. package/script/oas/null/null-types.js +11 -0
  608. package/script/oas/number/Number.d.ts +48 -0
  609. package/script/oas/number/Number.d.ts.map +1 -0
  610. package/script/oas/number/Number.js +97 -0
  611. package/script/oas/number/number-types.d.ts +10 -0
  612. package/script/oas/number/number-types.d.ts.map +1 -0
  613. package/script/oas/number/number-types.js +17 -0
  614. package/script/oas/number/toNumber.d.ts +10 -0
  615. package/script/oas/number/toNumber.d.ts.map +1 -0
  616. package/script/oas/number/toNumber.js +20 -0
  617. package/script/oas/object/Object.d.ts +92 -0
  618. package/script/oas/object/Object.d.ts.map +1 -0
  619. package/script/oas/object/Object.js +196 -0
  620. package/script/oas/object/object-types.d.ts +15 -0
  621. package/script/oas/object/object-types.d.ts.map +1 -0
  622. package/script/oas/object/object-types.js +30 -0
  623. package/script/oas/object/toAdditionalPropertiesV3.d.ts +11 -0
  624. package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
  625. package/script/oas/object/toAdditionalPropertiesV3.js +14 -0
  626. package/script/oas/object/toObject.d.ts +10 -0
  627. package/script/oas/object/toObject.d.ts.map +1 -0
  628. package/script/oas/object/toObject.js +29 -0
  629. package/script/oas/operation/Operation.d.ts +56 -0
  630. package/script/oas/operation/Operation.d.ts.map +1 -0
  631. package/script/oas/operation/Operation.js +134 -0
  632. package/script/oas/operation/toOperationsV3.d.ts +23 -0
  633. package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
  634. package/script/oas/operation/toOperationsV3.js +84 -0
  635. package/script/oas/parameter/Parameter.d.ts +42 -0
  636. package/script/oas/parameter/Parameter.d.ts.map +1 -0
  637. package/script/oas/parameter/Parameter.js +126 -0
  638. package/script/oas/parameter/parameter-types.d.ts +26 -0
  639. package/script/oas/parameter/parameter-types.d.ts.map +1 -0
  640. package/script/oas/parameter/parameter-types.js +41 -0
  641. package/script/oas/parameter/toParameterV3.d.ts +21 -0
  642. package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
  643. package/script/oas/parameter/toParameterV3.js +87 -0
  644. package/script/oas/pathItem/PathItem.d.ts +17 -0
  645. package/script/oas/pathItem/PathItem.d.ts.map +1 -0
  646. package/script/oas/pathItem/PathItem.js +42 -0
  647. package/script/oas/pathItem/toPathItemV3.d.ts +10 -0
  648. package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
  649. package/script/oas/pathItem/toPathItemV3.js +16 -0
  650. package/script/oas/ref/Ref.d.ts +37 -0
  651. package/script/oas/ref/Ref.d.ts.map +1 -0
  652. package/script/oas/ref/Ref.js +106 -0
  653. package/script/oas/ref/ref-types.d.ts +52 -0
  654. package/script/oas/ref/ref-types.d.ts.map +1 -0
  655. package/script/oas/ref/ref-types.js +57 -0
  656. package/script/oas/ref/toRefV31.d.ts +12 -0
  657. package/script/oas/ref/toRefV31.d.ts.map +1 -0
  658. package/script/oas/ref/toRefV31.js +16 -0
  659. package/script/oas/requestBody/RequestBody.d.ts +22 -0
  660. package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
  661. package/script/oas/requestBody/RequestBody.js +54 -0
  662. package/script/oas/requestBody/toRequestBodiesV3.d.ts +17 -0
  663. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
  664. package/script/oas/requestBody/toRequestBodiesV3.js +43 -0
  665. package/script/oas/response/Response.d.ts +23 -0
  666. package/script/oas/response/Response.d.ts.map +1 -0
  667. package/script/oas/response/Response.js +54 -0
  668. package/script/oas/response/toResponseV3.d.ts +21 -0
  669. package/script/oas/response/toResponseV3.d.ts.map +1 -0
  670. package/script/oas/response/toResponseV3.js +40 -0
  671. package/script/oas/schema/Schema.d.ts +14 -0
  672. package/script/oas/schema/Schema.d.ts.map +1 -0
  673. package/script/oas/schema/Schema.js +2 -0
  674. package/script/oas/schema/schema-types.d.ts +14 -0
  675. package/script/oas/schema/schema-types.d.ts.map +1 -0
  676. package/script/oas/schema/schema-types.js +26 -0
  677. package/script/oas/schema/toSchemasV3.d.ts +28 -0
  678. package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
  679. package/script/oas/schema/toSchemasV3.js +101 -0
  680. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +12 -0
  681. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
  682. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +26 -0
  683. package/script/oas/string/String.d.ts +66 -0
  684. package/script/oas/string/String.d.ts.map +1 -0
  685. package/script/oas/string/String.js +142 -0
  686. package/script/oas/string/string-types.d.ts +18 -0
  687. package/script/oas/string/string-types.d.ts.map +1 -0
  688. package/script/oas/string/string-types.js +35 -0
  689. package/script/oas/string/toString.d.ts +10 -0
  690. package/script/oas/string/toString.d.ts.map +1 -0
  691. package/script/oas/string/toString.js +44 -0
  692. package/script/oas/tag/Tag.d.ts +15 -0
  693. package/script/oas/tag/Tag.d.ts.map +1 -0
  694. package/script/oas/tag/Tag.js +39 -0
  695. package/script/oas/tag/toTagsV3.d.ts +15 -0
  696. package/script/oas/tag/toTagsV3.d.ts.map +1 -0
  697. package/script/oas/tag/toTagsV3.js +26 -0
  698. package/script/oas/union/Union.d.ts +66 -0
  699. package/script/oas/union/Union.d.ts.map +1 -0
  700. package/script/oas/union/Union.js +122 -0
  701. package/script/oas/union/toUnion.d.ts +11 -0
  702. package/script/oas/union/toUnion.d.ts.map +1 -0
  703. package/script/oas/union/toUnion.js +24 -0
  704. package/script/oas/union/union-types.d.ts +14 -0
  705. package/script/oas/union/union-types.d.ts.map +1 -0
  706. package/script/oas/union/union-types.js +15 -0
  707. package/script/oas/unknown/Unknown.d.ts +45 -0
  708. package/script/oas/unknown/Unknown.d.ts.map +1 -0
  709. package/script/oas/unknown/Unknown.js +86 -0
  710. package/script/oas/unknown/toUnknown.d.ts +10 -0
  711. package/script/oas/unknown/toUnknown.d.ts.map +1 -0
  712. package/script/oas/unknown/toUnknown.js +19 -0
  713. package/script/oas/unknown/unknown-types.d.ts +10 -0
  714. package/script/oas/unknown/unknown-types.d.ts.map +1 -0
  715. package/script/oas/unknown/unknown-types.js +11 -0
  716. package/script/oas/void/Void.d.ts +35 -0
  717. package/script/oas/void/Void.d.ts.map +1 -0
  718. package/script/oas/void/Void.js +64 -0
  719. package/script/package.json +3 -0
  720. package/script/run/enrichSettings.d.ts +9 -0
  721. package/script/run/enrichSettings.d.ts.map +1 -0
  722. package/script/run/enrichSettings.js +13 -0
  723. package/script/run/handleEnrichment.d.ts +3 -0
  724. package/script/run/handleEnrichment.d.ts.map +1 -0
  725. package/script/run/handleEnrichment.js +71 -0
  726. package/script/run/toEnrichments.d.ts +13 -0
  727. package/script/run/toEnrichments.d.ts.map +1 -0
  728. package/script/run/toEnrichments.js +42 -0
  729. package/script/run/toSettings.d.ts +12 -0
  730. package/script/run/toSettings.d.ts.map +1 -0
  731. package/script/run/toSettings.js +78 -0
  732. package/script/run/transform.d.ts +20 -0
  733. package/script/run/transform.d.ts.map +1 -0
  734. package/script/run/transform.js +51 -0
  735. package/script/types/Brand.d.ts +7 -0
  736. package/script/types/Brand.d.ts.map +1 -0
  737. package/script/types/Brand.js +3 -0
  738. package/script/types/CustomValue.d.ts +22 -0
  739. package/script/types/CustomValue.d.ts.map +1 -0
  740. package/script/types/CustomValue.js +39 -0
  741. package/script/types/EnrichmentRequest.d.ts +8 -0
  742. package/script/types/EnrichmentRequest.d.ts.map +1 -0
  743. package/script/types/EnrichmentRequest.js +3 -0
  744. package/script/types/Extensions.d.ts +7 -0
  745. package/script/types/Extensions.d.ts.map +1 -0
  746. package/script/types/Extensions.js +6 -0
  747. package/script/types/GeneratedValue.d.ts +19 -0
  748. package/script/types/GeneratedValue.d.ts.map +1 -0
  749. package/script/types/GeneratedValue.js +2 -0
  750. package/script/types/GeneratorKeys.d.ts +50 -0
  751. package/script/types/GeneratorKeys.d.ts.map +1 -0
  752. package/script/types/GeneratorKeys.js +95 -0
  753. package/script/types/GeneratorType.d.ts +9 -0
  754. package/script/types/GeneratorType.d.ts.map +1 -0
  755. package/script/types/GeneratorType.js +2 -0
  756. package/script/types/Manifest.d.ts +121 -0
  757. package/script/types/Manifest.d.ts.map +1 -0
  758. package/script/types/Manifest.js +30 -0
  759. package/script/types/Method.d.ts +11 -0
  760. package/script/types/Method.d.ts.map +1 -0
  761. package/script/types/Method.js +39 -0
  762. package/script/types/Modifiers.d.ts +6 -0
  763. package/script/types/Modifiers.d.ts.map +1 -0
  764. package/script/types/Modifiers.js +2 -0
  765. package/script/types/RefName.d.ts +4 -0
  766. package/script/types/RefName.d.ts.map +1 -0
  767. package/script/types/RefName.js +3 -0
  768. package/script/types/Results.d.ts +10 -0
  769. package/script/types/Results.d.ts.map +1 -0
  770. package/script/types/Results.js +7 -0
  771. package/script/types/Settings.d.ts +306 -0
  772. package/script/types/Settings.d.ts.map +1 -0
  773. package/script/types/Settings.js +45 -0
  774. package/script/types/TypeSystem.d.ts +152 -0
  775. package/script/types/TypeSystem.d.ts.map +1 -0
  776. package/script/types/TypeSystem.js +2 -0
  777. package/script/types/prettierConfig.d.ts +27 -0
  778. package/script/types/prettierConfig.d.ts.map +1 -0
  779. package/script/types/prettierConfig.js +49 -0
  780. package/script/typescript/FunctionParameter.d.ts +34 -0
  781. package/script/typescript/FunctionParameter.d.ts.map +1 -0
  782. package/script/typescript/FunctionParameter.js +84 -0
  783. package/script/typescript/List.d.ts +147 -0
  784. package/script/typescript/List.d.ts.map +1 -0
  785. package/script/typescript/List.js +312 -0
  786. package/script/typescript/PathParams.d.ts +20 -0
  787. package/script/typescript/PathParams.d.ts.map +1 -0
  788. package/script/typescript/PathParams.js +53 -0
  789. package/script/typescript/ReactRouterPathParams.d.ts +20 -0
  790. package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
  791. package/script/typescript/ReactRouterPathParams.js +53 -0
  792. package/script/typescript/identifiers.d.ts +3 -0
  793. package/script/typescript/identifiers.d.ts.map +1 -0
  794. package/script/typescript/identifiers.js +12 -0
  795. package/script/typescript/keyValues.d.ts +3 -0
  796. package/script/typescript/keyValues.d.ts.map +1 -0
  797. package/script/typescript/keyValues.js +15 -0
  798. package/script/typescript/toPathTemplate.d.ts +2 -0
  799. package/script/typescript/toPathTemplate.d.ts.map +1 -0
  800. package/script/typescript/toPathTemplate.js +7 -0
  801. package/script/typescript/withDescription.d.ts +4 -0
  802. package/script/typescript/withDescription.d.ts.map +1 -0
  803. package/script/typescript/withDescription.js +7 -0
@@ -0,0 +1,1324 @@
1
+ "use strict";
2
+ // Ported from js-yaml v3.13.1:
3
+ // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
4
+ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
5
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || function (mod) {
23
+ if (mod && mod.__esModule) return mod;
24
+ var result = {};
25
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
+ __setModuleDefault(result, mod);
27
+ return result;
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.loadAll = loadAll;
31
+ exports.load = load;
32
+ const _error_js_1 = require("../_error.js");
33
+ const _mark_js_1 = require("../_mark.js");
34
+ const common = __importStar(require("../_utils.js"));
35
+ const loader_state_js_1 = require("./loader_state.js");
36
+ const { hasOwn } = Object;
37
+ const CONTEXT_FLOW_IN = 1;
38
+ const CONTEXT_FLOW_OUT = 2;
39
+ const CONTEXT_BLOCK_IN = 3;
40
+ const CONTEXT_BLOCK_OUT = 4;
41
+ const CHOMPING_CLIP = 1;
42
+ const CHOMPING_STRIP = 2;
43
+ const CHOMPING_KEEP = 3;
44
+ const PATTERN_NON_PRINTABLE =
45
+ // deno-lint-ignore no-control-regex
46
+ /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
47
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
48
+ const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
49
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
50
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
51
+ function _class(obj) {
52
+ return Object.prototype.toString.call(obj);
53
+ }
54
+ function isEOL(c) {
55
+ return c === 0x0a || /* LF */ c === 0x0d /* CR */;
56
+ }
57
+ function isWhiteSpace(c) {
58
+ return c === 0x09 || /* Tab */ c === 0x20 /* Space */;
59
+ }
60
+ function isWsOrEol(c) {
61
+ return (c === 0x09 /* Tab */ ||
62
+ c === 0x20 /* Space */ ||
63
+ c === 0x0a /* LF */ ||
64
+ c === 0x0d /* CR */);
65
+ }
66
+ function isFlowIndicator(c) {
67
+ return (c === 0x2c /* , */ ||
68
+ c === 0x5b /* [ */ ||
69
+ c === 0x5d /* ] */ ||
70
+ c === 0x7b /* { */ ||
71
+ c === 0x7d /* } */);
72
+ }
73
+ function fromHexCode(c) {
74
+ if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
75
+ return c - 0x30;
76
+ }
77
+ const lc = c | 0x20;
78
+ if (0x61 <= /* a */ lc && lc <= 0x66 /* f */) {
79
+ return lc - 0x61 + 10;
80
+ }
81
+ return -1;
82
+ }
83
+ function escapedHexLen(c) {
84
+ if (c === 0x78 /* x */) {
85
+ return 2;
86
+ }
87
+ if (c === 0x75 /* u */) {
88
+ return 4;
89
+ }
90
+ if (c === 0x55 /* U */) {
91
+ return 8;
92
+ }
93
+ return 0;
94
+ }
95
+ function fromDecimalCode(c) {
96
+ if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
97
+ return c - 0x30;
98
+ }
99
+ return -1;
100
+ }
101
+ function simpleEscapeSequence(c) {
102
+ return c === 0x30 /* 0 */
103
+ ? "\x00"
104
+ : c === 0x61 /* a */
105
+ ? "\x07"
106
+ : c === 0x62 /* b */
107
+ ? "\x08"
108
+ : c === 0x74 /* t */
109
+ ? "\x09"
110
+ : c === 0x09 /* Tab */
111
+ ? "\x09"
112
+ : c === 0x6e /* n */
113
+ ? "\x0A"
114
+ : c === 0x76 /* v */
115
+ ? "\x0B"
116
+ : c === 0x66 /* f */
117
+ ? "\x0C"
118
+ : c === 0x72 /* r */
119
+ ? "\x0D"
120
+ : c === 0x65 /* e */
121
+ ? "\x1B"
122
+ : c === 0x20 /* Space */
123
+ ? " "
124
+ : c === 0x22 /* " */
125
+ ? "\x22"
126
+ : c === 0x2f /* / */
127
+ ? "/"
128
+ : c === 0x5c /* \ */
129
+ ? "\x5C"
130
+ : c === 0x4e /* N */
131
+ ? "\x85"
132
+ : c === 0x5f /* _ */
133
+ ? "\xA0"
134
+ : c === 0x4c /* L */
135
+ ? "\u2028"
136
+ : c === 0x50 /* P */
137
+ ? "\u2029"
138
+ : "";
139
+ }
140
+ function charFromCodepoint(c) {
141
+ if (c <= 0xffff) {
142
+ return String.fromCharCode(c);
143
+ }
144
+ // Encode UTF-16 surrogate pair
145
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
146
+ return String.fromCharCode(((c - 0x010000) >> 10) + 0xd800, ((c - 0x010000) & 0x03ff) + 0xdc00);
147
+ }
148
+ const simpleEscapeCheck = Array.from({ length: 256 }); // integer, for fast access
149
+ const simpleEscapeMap = Array.from({ length: 256 });
150
+ for (let i = 0; i < 256; i++) {
151
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
152
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
153
+ }
154
+ function generateError(state, message) {
155
+ return new _error_js_1.YAMLError(message, new _mark_js_1.Mark(state.filename, state.input, state.position, state.line, state.position - state.lineStart));
156
+ }
157
+ function throwError(state, message) {
158
+ throw generateError(state, message);
159
+ }
160
+ function throwWarning(state, message) {
161
+ if (state.onWarning) {
162
+ state.onWarning.call(null, generateError(state, message));
163
+ }
164
+ }
165
+ const directiveHandlers = {
166
+ YAML(state, _name, ...args) {
167
+ if (state.version !== null) {
168
+ return throwError(state, "duplication of %YAML directive");
169
+ }
170
+ if (args.length !== 1) {
171
+ return throwError(state, "YAML directive accepts exactly one argument");
172
+ }
173
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
174
+ if (match === null) {
175
+ return throwError(state, "ill-formed argument of the YAML directive");
176
+ }
177
+ const major = parseInt(match[1], 10);
178
+ const minor = parseInt(match[2], 10);
179
+ if (major !== 1) {
180
+ return throwError(state, "unacceptable YAML version of the document");
181
+ }
182
+ state.version = args[0];
183
+ state.checkLineBreaks = minor < 2;
184
+ if (minor !== 1 && minor !== 2) {
185
+ return throwWarning(state, "unsupported YAML version of the document");
186
+ }
187
+ },
188
+ TAG(state, _name, ...args) {
189
+ if (args.length !== 2) {
190
+ return throwError(state, "TAG directive accepts exactly two arguments");
191
+ }
192
+ const handle = args[0];
193
+ const prefix = args[1];
194
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
195
+ return throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
196
+ }
197
+ if (state.tagMap && hasOwn(state.tagMap, handle)) {
198
+ return throwError(state, `there is a previously declared suffix for "${handle}" tag handle`);
199
+ }
200
+ if (!PATTERN_TAG_URI.test(prefix)) {
201
+ return throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
202
+ }
203
+ if (typeof state.tagMap === "undefined") {
204
+ state.tagMap = Object.create(null);
205
+ }
206
+ state.tagMap[handle] = prefix;
207
+ },
208
+ };
209
+ function captureSegment(state, start, end, checkJson) {
210
+ let result;
211
+ if (start < end) {
212
+ result = state.input.slice(start, end);
213
+ if (checkJson) {
214
+ for (let position = 0, length = result.length; position < length; position++) {
215
+ const character = result.charCodeAt(position);
216
+ if (!(character === 0x09 || (0x20 <= character && character <= 0x10ffff))) {
217
+ return throwError(state, "expected valid JSON character");
218
+ }
219
+ }
220
+ }
221
+ else if (PATTERN_NON_PRINTABLE.test(result)) {
222
+ return throwError(state, "the stream contains non-printable characters");
223
+ }
224
+ state.result += result;
225
+ }
226
+ }
227
+ function mergeMappings(state, destination, source, overridableKeys) {
228
+ if (!common.isObject(source)) {
229
+ return throwError(state, "cannot merge mappings; the provided source object is unacceptable");
230
+ }
231
+ const keys = Object.keys(source);
232
+ for (let i = 0, len = keys.length; i < len; i++) {
233
+ const key = keys[i];
234
+ if (!hasOwn(destination, key)) {
235
+ Object.defineProperty(destination, key, {
236
+ value: source[key],
237
+ writable: true,
238
+ enumerable: true,
239
+ configurable: true,
240
+ });
241
+ overridableKeys[key] = true;
242
+ }
243
+ }
244
+ }
245
+ function storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
246
+ // The output is a plain object here, so keys can only be strings.
247
+ // We need to convert keyNode to a string, but doing so can hang the process
248
+ // (deeply nested arrays that explode exponentially using aliases).
249
+ if (Array.isArray(keyNode)) {
250
+ keyNode = Array.prototype.slice.call(keyNode);
251
+ for (let index = 0, quantity = keyNode.length; index < quantity; index++) {
252
+ if (Array.isArray(keyNode[index])) {
253
+ return throwError(state, "nested arrays are not supported inside keys");
254
+ }
255
+ if (typeof keyNode === "object" &&
256
+ _class(keyNode[index]) === "[object Object]") {
257
+ keyNode[index] = "[object Object]";
258
+ }
259
+ }
260
+ }
261
+ // Avoid code execution in load() via toString property
262
+ // (still use its own toString for arrays, timestamps,
263
+ // and whatever user schema extensions happen to have @@toStringTag)
264
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
265
+ keyNode = "[object Object]";
266
+ }
267
+ keyNode = String(keyNode);
268
+ if (result === null) {
269
+ result = {};
270
+ }
271
+ if (keyTag === "tag:yaml.org,2002:merge") {
272
+ if (Array.isArray(valueNode)) {
273
+ for (let index = 0, quantity = valueNode.length; index < quantity; index++) {
274
+ mergeMappings(state, result, valueNode[index], overridableKeys);
275
+ }
276
+ }
277
+ else {
278
+ mergeMappings(state, result, valueNode, overridableKeys);
279
+ }
280
+ }
281
+ else {
282
+ if (!state.json &&
283
+ !hasOwn(overridableKeys, keyNode) &&
284
+ hasOwn(result, keyNode)) {
285
+ state.line = startLine || state.line;
286
+ state.position = startPos || state.position;
287
+ return throwError(state, "duplicated mapping key");
288
+ }
289
+ Object.defineProperty(result, keyNode, {
290
+ value: valueNode,
291
+ writable: true,
292
+ enumerable: true,
293
+ configurable: true,
294
+ });
295
+ delete overridableKeys[keyNode];
296
+ }
297
+ return result;
298
+ }
299
+ function readLineBreak(state) {
300
+ const ch = state.input.charCodeAt(state.position);
301
+ if (ch === 0x0a /* LF */) {
302
+ state.position++;
303
+ }
304
+ else if (ch === 0x0d /* CR */) {
305
+ state.position++;
306
+ if (state.input.charCodeAt(state.position) === 0x0a /* LF */) {
307
+ state.position++;
308
+ }
309
+ }
310
+ else {
311
+ return throwError(state, "a line break is expected");
312
+ }
313
+ state.line += 1;
314
+ state.lineStart = state.position;
315
+ }
316
+ function skipSeparationSpace(state, allowComments, checkIndent) {
317
+ let lineBreaks = 0, ch = state.input.charCodeAt(state.position);
318
+ while (ch !== 0) {
319
+ while (isWhiteSpace(ch)) {
320
+ ch = state.input.charCodeAt(++state.position);
321
+ }
322
+ if (allowComments && ch === 0x23 /* # */) {
323
+ do {
324
+ ch = state.input.charCodeAt(++state.position);
325
+ } while (ch !== 0x0a && /* LF */ ch !== 0x0d && /* CR */ ch !== 0);
326
+ }
327
+ if (isEOL(ch)) {
328
+ readLineBreak(state);
329
+ ch = state.input.charCodeAt(state.position);
330
+ lineBreaks++;
331
+ state.lineIndent = 0;
332
+ while (ch === 0x20 /* Space */) {
333
+ state.lineIndent++;
334
+ ch = state.input.charCodeAt(++state.position);
335
+ }
336
+ }
337
+ else {
338
+ break;
339
+ }
340
+ }
341
+ if (checkIndent !== -1 &&
342
+ lineBreaks !== 0 &&
343
+ state.lineIndent < checkIndent) {
344
+ throwWarning(state, "deficient indentation");
345
+ }
346
+ return lineBreaks;
347
+ }
348
+ function testDocumentSeparator(state) {
349
+ let _position = state.position;
350
+ let ch = state.input.charCodeAt(_position);
351
+ // Condition state.position === state.lineStart is tested
352
+ // in parent on each call, for efficiency. No needs to test here again.
353
+ if ((ch === 0x2d || /* - */ ch === 0x2e) /* . */ &&
354
+ ch === state.input.charCodeAt(_position + 1) &&
355
+ ch === state.input.charCodeAt(_position + 2)) {
356
+ _position += 3;
357
+ ch = state.input.charCodeAt(_position);
358
+ if (ch === 0 || isWsOrEol(ch)) {
359
+ return true;
360
+ }
361
+ }
362
+ return false;
363
+ }
364
+ function writeFoldedLines(state, count) {
365
+ if (count === 1) {
366
+ state.result += " ";
367
+ }
368
+ else if (count > 1) {
369
+ state.result += common.repeat("\n", count - 1);
370
+ }
371
+ }
372
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
373
+ const kind = state.kind;
374
+ const result = state.result;
375
+ let ch = state.input.charCodeAt(state.position);
376
+ if (isWsOrEol(ch) ||
377
+ isFlowIndicator(ch) ||
378
+ ch === 0x23 /* # */ ||
379
+ ch === 0x26 /* & */ ||
380
+ ch === 0x2a /* * */ ||
381
+ ch === 0x21 /* ! */ ||
382
+ ch === 0x7c /* | */ ||
383
+ ch === 0x3e /* > */ ||
384
+ ch === 0x27 /* ' */ ||
385
+ ch === 0x22 /* " */ ||
386
+ ch === 0x25 /* % */ ||
387
+ ch === 0x40 /* @ */ ||
388
+ ch === 0x60 /* ` */) {
389
+ return false;
390
+ }
391
+ let following;
392
+ if (ch === 0x3f || /* ? */ ch === 0x2d /* - */) {
393
+ following = state.input.charCodeAt(state.position + 1);
394
+ if (isWsOrEol(following) ||
395
+ (withinFlowCollection && isFlowIndicator(following))) {
396
+ return false;
397
+ }
398
+ }
399
+ state.kind = "scalar";
400
+ state.result = "";
401
+ let captureEnd, captureStart = (captureEnd = state.position);
402
+ let hasPendingContent = false;
403
+ let line = 0;
404
+ while (ch !== 0) {
405
+ if (ch === 0x3a /* : */) {
406
+ following = state.input.charCodeAt(state.position + 1);
407
+ if (isWsOrEol(following) ||
408
+ (withinFlowCollection && isFlowIndicator(following))) {
409
+ break;
410
+ }
411
+ }
412
+ else if (ch === 0x23 /* # */) {
413
+ const preceding = state.input.charCodeAt(state.position - 1);
414
+ if (isWsOrEol(preceding)) {
415
+ break;
416
+ }
417
+ }
418
+ else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
419
+ (withinFlowCollection && isFlowIndicator(ch))) {
420
+ break;
421
+ }
422
+ else if (isEOL(ch)) {
423
+ line = state.line;
424
+ const lineStart = state.lineStart;
425
+ const lineIndent = state.lineIndent;
426
+ skipSeparationSpace(state, false, -1);
427
+ if (state.lineIndent >= nodeIndent) {
428
+ hasPendingContent = true;
429
+ ch = state.input.charCodeAt(state.position);
430
+ continue;
431
+ }
432
+ else {
433
+ state.position = captureEnd;
434
+ state.line = line;
435
+ state.lineStart = lineStart;
436
+ state.lineIndent = lineIndent;
437
+ break;
438
+ }
439
+ }
440
+ if (hasPendingContent) {
441
+ captureSegment(state, captureStart, captureEnd, false);
442
+ writeFoldedLines(state, state.line - line);
443
+ captureStart = captureEnd = state.position;
444
+ hasPendingContent = false;
445
+ }
446
+ if (!isWhiteSpace(ch)) {
447
+ captureEnd = state.position + 1;
448
+ }
449
+ ch = state.input.charCodeAt(++state.position);
450
+ }
451
+ captureSegment(state, captureStart, captureEnd, false);
452
+ if (state.result) {
453
+ return true;
454
+ }
455
+ state.kind = kind;
456
+ state.result = result;
457
+ return false;
458
+ }
459
+ function readSingleQuotedScalar(state, nodeIndent) {
460
+ let ch, captureStart, captureEnd;
461
+ ch = state.input.charCodeAt(state.position);
462
+ if (ch !== 0x27 /* ' */) {
463
+ return false;
464
+ }
465
+ state.kind = "scalar";
466
+ state.result = "";
467
+ state.position++;
468
+ captureStart = captureEnd = state.position;
469
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
470
+ if (ch === 0x27 /* ' */) {
471
+ captureSegment(state, captureStart, state.position, true);
472
+ ch = state.input.charCodeAt(++state.position);
473
+ if (ch === 0x27 /* ' */) {
474
+ captureStart = state.position;
475
+ state.position++;
476
+ captureEnd = state.position;
477
+ }
478
+ else {
479
+ return true;
480
+ }
481
+ }
482
+ else if (isEOL(ch)) {
483
+ captureSegment(state, captureStart, captureEnd, true);
484
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
485
+ captureStart = captureEnd = state.position;
486
+ }
487
+ else if (state.position === state.lineStart &&
488
+ testDocumentSeparator(state)) {
489
+ return throwError(state, "unexpected end of the document within a single quoted scalar");
490
+ }
491
+ else {
492
+ state.position++;
493
+ captureEnd = state.position;
494
+ }
495
+ }
496
+ return throwError(state, "unexpected end of the stream within a single quoted scalar");
497
+ }
498
+ function readDoubleQuotedScalar(state, nodeIndent) {
499
+ let ch = state.input.charCodeAt(state.position);
500
+ if (ch !== 0x22 /* " */) {
501
+ return false;
502
+ }
503
+ state.kind = "scalar";
504
+ state.result = "";
505
+ state.position++;
506
+ let captureEnd, captureStart = (captureEnd = state.position);
507
+ let tmp;
508
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
509
+ if (ch === 0x22 /* " */) {
510
+ captureSegment(state, captureStart, state.position, true);
511
+ state.position++;
512
+ return true;
513
+ }
514
+ if (ch === 0x5c /* \ */) {
515
+ captureSegment(state, captureStart, state.position, true);
516
+ ch = state.input.charCodeAt(++state.position);
517
+ if (isEOL(ch)) {
518
+ skipSeparationSpace(state, false, nodeIndent);
519
+ // TODO(bartlomieju): rework to inline fn with no type cast?
520
+ }
521
+ else if (ch < 256 && simpleEscapeCheck[ch]) {
522
+ state.result += simpleEscapeMap[ch];
523
+ state.position++;
524
+ }
525
+ else if ((tmp = escapedHexLen(ch)) > 0) {
526
+ let hexLength = tmp;
527
+ let hexResult = 0;
528
+ for (; hexLength > 0; hexLength--) {
529
+ ch = state.input.charCodeAt(++state.position);
530
+ if ((tmp = fromHexCode(ch)) >= 0) {
531
+ hexResult = (hexResult << 4) + tmp;
532
+ }
533
+ else {
534
+ return throwError(state, "expected hexadecimal character");
535
+ }
536
+ }
537
+ state.result += charFromCodepoint(hexResult);
538
+ state.position++;
539
+ }
540
+ else {
541
+ return throwError(state, "unknown escape sequence");
542
+ }
543
+ captureStart = captureEnd = state.position;
544
+ }
545
+ else if (isEOL(ch)) {
546
+ captureSegment(state, captureStart, captureEnd, true);
547
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
548
+ captureStart = captureEnd = state.position;
549
+ }
550
+ else if (state.position === state.lineStart &&
551
+ testDocumentSeparator(state)) {
552
+ return throwError(state, "unexpected end of the document within a double quoted scalar");
553
+ }
554
+ else {
555
+ state.position++;
556
+ captureEnd = state.position;
557
+ }
558
+ }
559
+ return throwError(state, "unexpected end of the stream within a double quoted scalar");
560
+ }
561
+ function readFlowCollection(state, nodeIndent) {
562
+ let ch = state.input.charCodeAt(state.position);
563
+ let terminator;
564
+ let isMapping = true;
565
+ let result = {};
566
+ if (ch === 0x5b /* [ */) {
567
+ terminator = 0x5d; /* ] */
568
+ isMapping = false;
569
+ result = [];
570
+ }
571
+ else if (ch === 0x7b /* { */) {
572
+ terminator = 0x7d; /* } */
573
+ }
574
+ else {
575
+ return false;
576
+ }
577
+ if (state.anchor !== null &&
578
+ typeof state.anchor !== "undefined" &&
579
+ typeof state.anchorMap !== "undefined") {
580
+ state.anchorMap[state.anchor] = result;
581
+ }
582
+ ch = state.input.charCodeAt(++state.position);
583
+ const tag = state.tag, anchor = state.anchor;
584
+ let readNext = true;
585
+ let valueNode, keyNode, keyTag = (keyNode = valueNode = null), isExplicitPair, isPair = (isExplicitPair = false);
586
+ let following = 0, line = 0;
587
+ const overridableKeys = Object.create(null);
588
+ while (ch !== 0) {
589
+ skipSeparationSpace(state, true, nodeIndent);
590
+ ch = state.input.charCodeAt(state.position);
591
+ if (ch === terminator) {
592
+ state.position++;
593
+ state.tag = tag;
594
+ state.anchor = anchor;
595
+ state.kind = isMapping ? "mapping" : "sequence";
596
+ state.result = result;
597
+ return true;
598
+ }
599
+ if (!readNext) {
600
+ return throwError(state, "missed comma between flow collection entries");
601
+ }
602
+ keyTag = keyNode = valueNode = null;
603
+ isPair = isExplicitPair = false;
604
+ if (ch === 0x3f /* ? */) {
605
+ following = state.input.charCodeAt(state.position + 1);
606
+ if (isWsOrEol(following)) {
607
+ isPair = isExplicitPair = true;
608
+ state.position++;
609
+ skipSeparationSpace(state, true, nodeIndent);
610
+ }
611
+ }
612
+ line = state.line;
613
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
614
+ keyTag = state.tag || null;
615
+ keyNode = state.result;
616
+ skipSeparationSpace(state, true, nodeIndent);
617
+ ch = state.input.charCodeAt(state.position);
618
+ if ((isExplicitPair || state.line === line) && ch === 0x3a /* : */) {
619
+ isPair = true;
620
+ ch = state.input.charCodeAt(++state.position);
621
+ skipSeparationSpace(state, true, nodeIndent);
622
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
623
+ valueNode = state.result;
624
+ }
625
+ if (isMapping) {
626
+ storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode);
627
+ }
628
+ else if (isPair) {
629
+ result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
630
+ }
631
+ else {
632
+ result.push(keyNode);
633
+ }
634
+ skipSeparationSpace(state, true, nodeIndent);
635
+ ch = state.input.charCodeAt(state.position);
636
+ if (ch === 0x2c /* , */) {
637
+ readNext = true;
638
+ ch = state.input.charCodeAt(++state.position);
639
+ }
640
+ else {
641
+ readNext = false;
642
+ }
643
+ }
644
+ return throwError(state, "unexpected end of the stream within a flow collection");
645
+ }
646
+ function readBlockScalar(state, nodeIndent) {
647
+ let chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false;
648
+ let ch = state.input.charCodeAt(state.position);
649
+ let folding = false;
650
+ if (ch === 0x7c /* | */) {
651
+ folding = false;
652
+ }
653
+ else if (ch === 0x3e /* > */) {
654
+ folding = true;
655
+ }
656
+ else {
657
+ return false;
658
+ }
659
+ state.kind = "scalar";
660
+ state.result = "";
661
+ let tmp = 0;
662
+ while (ch !== 0) {
663
+ ch = state.input.charCodeAt(++state.position);
664
+ if (ch === 0x2b || /* + */ ch === 0x2d /* - */) {
665
+ if (CHOMPING_CLIP === chomping) {
666
+ chomping = ch === 0x2b /* + */ ? CHOMPING_KEEP : CHOMPING_STRIP;
667
+ }
668
+ else {
669
+ return throwError(state, "repeat of a chomping mode identifier");
670
+ }
671
+ }
672
+ else if ((tmp = fromDecimalCode(ch)) >= 0) {
673
+ if (tmp === 0) {
674
+ return throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
675
+ }
676
+ else if (!detectedIndent) {
677
+ textIndent = nodeIndent + tmp - 1;
678
+ detectedIndent = true;
679
+ }
680
+ else {
681
+ return throwError(state, "repeat of an indentation width identifier");
682
+ }
683
+ }
684
+ else {
685
+ break;
686
+ }
687
+ }
688
+ if (isWhiteSpace(ch)) {
689
+ do {
690
+ ch = state.input.charCodeAt(++state.position);
691
+ } while (isWhiteSpace(ch));
692
+ if (ch === 0x23 /* # */) {
693
+ do {
694
+ ch = state.input.charCodeAt(++state.position);
695
+ } while (!isEOL(ch) && ch !== 0);
696
+ }
697
+ }
698
+ while (ch !== 0) {
699
+ readLineBreak(state);
700
+ state.lineIndent = 0;
701
+ ch = state.input.charCodeAt(state.position);
702
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
703
+ ch === 0x20 /* Space */) {
704
+ state.lineIndent++;
705
+ ch = state.input.charCodeAt(++state.position);
706
+ }
707
+ if (!detectedIndent && state.lineIndent > textIndent) {
708
+ textIndent = state.lineIndent;
709
+ }
710
+ if (isEOL(ch)) {
711
+ emptyLines++;
712
+ continue;
713
+ }
714
+ // End of the scalar.
715
+ if (state.lineIndent < textIndent) {
716
+ // Perform the chomping.
717
+ if (chomping === CHOMPING_KEEP) {
718
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
719
+ }
720
+ else if (chomping === CHOMPING_CLIP) {
721
+ if (didReadContent) {
722
+ // i.e. only if the scalar is not empty.
723
+ state.result += "\n";
724
+ }
725
+ }
726
+ // Break this `while` cycle and go to the function's epilogue.
727
+ break;
728
+ }
729
+ // Folded style: use fancy rules to handle line breaks.
730
+ if (folding) {
731
+ // Lines starting with white space characters (more-indented lines) are not folded.
732
+ if (isWhiteSpace(ch)) {
733
+ atMoreIndented = true;
734
+ // except for the first content line (cf. Example 8.1)
735
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
736
+ // End of more-indented block.
737
+ }
738
+ else if (atMoreIndented) {
739
+ atMoreIndented = false;
740
+ state.result += common.repeat("\n", emptyLines + 1);
741
+ // Just one line break - perceive as the same line.
742
+ }
743
+ else if (emptyLines === 0) {
744
+ if (didReadContent) {
745
+ // i.e. only if we have already read some scalar content.
746
+ state.result += " ";
747
+ }
748
+ // Several line breaks - perceive as different lines.
749
+ }
750
+ else {
751
+ state.result += common.repeat("\n", emptyLines);
752
+ }
753
+ // Literal style: just add exact number of line breaks between content lines.
754
+ }
755
+ else {
756
+ // Keep all line breaks except the header line break.
757
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
758
+ }
759
+ didReadContent = true;
760
+ detectedIndent = true;
761
+ emptyLines = 0;
762
+ const captureStart = state.position;
763
+ while (!isEOL(ch) && ch !== 0) {
764
+ ch = state.input.charCodeAt(++state.position);
765
+ }
766
+ captureSegment(state, captureStart, state.position, false);
767
+ }
768
+ return true;
769
+ }
770
+ function readBlockSequence(state, nodeIndent) {
771
+ let line, following, detected = false, ch;
772
+ const tag = state.tag, anchor = state.anchor, result = [];
773
+ if (state.anchor !== null &&
774
+ typeof state.anchor !== "undefined" &&
775
+ typeof state.anchorMap !== "undefined") {
776
+ state.anchorMap[state.anchor] = result;
777
+ }
778
+ ch = state.input.charCodeAt(state.position);
779
+ while (ch !== 0) {
780
+ if (ch !== 0x2d /* - */) {
781
+ break;
782
+ }
783
+ following = state.input.charCodeAt(state.position + 1);
784
+ if (!isWsOrEol(following)) {
785
+ break;
786
+ }
787
+ detected = true;
788
+ state.position++;
789
+ if (skipSeparationSpace(state, true, -1)) {
790
+ if (state.lineIndent <= nodeIndent) {
791
+ result.push(null);
792
+ ch = state.input.charCodeAt(state.position);
793
+ continue;
794
+ }
795
+ }
796
+ line = state.line;
797
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
798
+ result.push(state.result);
799
+ skipSeparationSpace(state, true, -1);
800
+ ch = state.input.charCodeAt(state.position);
801
+ if ((state.line === line || state.lineIndent > nodeIndent) && ch !== 0) {
802
+ return throwError(state, "bad indentation of a sequence entry");
803
+ }
804
+ else if (state.lineIndent < nodeIndent) {
805
+ break;
806
+ }
807
+ }
808
+ if (detected) {
809
+ state.tag = tag;
810
+ state.anchor = anchor;
811
+ state.kind = "sequence";
812
+ state.result = result;
813
+ return true;
814
+ }
815
+ return false;
816
+ }
817
+ function readBlockMapping(state, nodeIndent, flowIndent) {
818
+ const tag = state.tag, anchor = state.anchor, result = {}, overridableKeys = Object.create(null);
819
+ let following, allowCompact = false, line, pos, keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
820
+ if (state.anchor !== null &&
821
+ typeof state.anchor !== "undefined" &&
822
+ typeof state.anchorMap !== "undefined") {
823
+ state.anchorMap[state.anchor] = result;
824
+ }
825
+ ch = state.input.charCodeAt(state.position);
826
+ while (ch !== 0) {
827
+ following = state.input.charCodeAt(state.position + 1);
828
+ line = state.line; // Save the current line.
829
+ pos = state.position;
830
+ //
831
+ // Explicit notation case. There are two separate blocks:
832
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
833
+ //
834
+ if ((ch === 0x3f || /* ? */ ch === 0x3a) && /* : */ isWsOrEol(following)) {
835
+ if (ch === 0x3f /* ? */) {
836
+ if (atExplicitKey) {
837
+ storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
838
+ keyTag = keyNode = valueNode = null;
839
+ }
840
+ detected = true;
841
+ atExplicitKey = true;
842
+ allowCompact = true;
843
+ }
844
+ else if (atExplicitKey) {
845
+ // i.e. 0x3A/* : */ === character after the explicit key.
846
+ atExplicitKey = false;
847
+ allowCompact = true;
848
+ }
849
+ else {
850
+ return throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
851
+ }
852
+ state.position += 1;
853
+ ch = following;
854
+ //
855
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
856
+ //
857
+ }
858
+ else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
859
+ if (state.line === line) {
860
+ ch = state.input.charCodeAt(state.position);
861
+ while (isWhiteSpace(ch)) {
862
+ ch = state.input.charCodeAt(++state.position);
863
+ }
864
+ if (ch === 0x3a /* : */) {
865
+ ch = state.input.charCodeAt(++state.position);
866
+ if (!isWsOrEol(ch)) {
867
+ return throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
868
+ }
869
+ if (atExplicitKey) {
870
+ storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
871
+ keyTag = keyNode = valueNode = null;
872
+ }
873
+ detected = true;
874
+ atExplicitKey = false;
875
+ allowCompact = false;
876
+ keyTag = state.tag;
877
+ keyNode = state.result;
878
+ }
879
+ else if (detected) {
880
+ return throwError(state, "can not read an implicit mapping pair; a colon is missed");
881
+ }
882
+ else {
883
+ state.tag = tag;
884
+ state.anchor = anchor;
885
+ return true; // Keep the result of `composeNode`.
886
+ }
887
+ }
888
+ else if (detected) {
889
+ return throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
890
+ }
891
+ else {
892
+ state.tag = tag;
893
+ state.anchor = anchor;
894
+ return true; // Keep the result of `composeNode`.
895
+ }
896
+ }
897
+ else {
898
+ break; // Reading is done. Go to the epilogue.
899
+ }
900
+ //
901
+ // Common reading code for both explicit and implicit notations.
902
+ //
903
+ if (state.line === line || state.lineIndent > nodeIndent) {
904
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
905
+ if (atExplicitKey) {
906
+ keyNode = state.result;
907
+ }
908
+ else {
909
+ valueNode = state.result;
910
+ }
911
+ }
912
+ if (!atExplicitKey) {
913
+ storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, line, pos);
914
+ keyTag = keyNode = valueNode = null;
915
+ }
916
+ skipSeparationSpace(state, true, -1);
917
+ ch = state.input.charCodeAt(state.position);
918
+ }
919
+ if (state.lineIndent > nodeIndent && ch !== 0) {
920
+ return throwError(state, "bad indentation of a mapping entry");
921
+ }
922
+ else if (state.lineIndent < nodeIndent) {
923
+ break;
924
+ }
925
+ }
926
+ //
927
+ // Epilogue.
928
+ //
929
+ // Special case: last mapping's node contains only the key in explicit notation.
930
+ if (atExplicitKey) {
931
+ storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
932
+ }
933
+ // Expose the resulting mapping.
934
+ if (detected) {
935
+ state.tag = tag;
936
+ state.anchor = anchor;
937
+ state.kind = "mapping";
938
+ state.result = result;
939
+ }
940
+ return detected;
941
+ }
942
+ function readTagProperty(state) {
943
+ let position, isVerbatim = false, isNamed = false, tagHandle = "", tagName, ch;
944
+ ch = state.input.charCodeAt(state.position);
945
+ if (ch !== 0x21 /* ! */)
946
+ return false;
947
+ if (state.tag !== null) {
948
+ return throwError(state, "duplication of a tag property");
949
+ }
950
+ ch = state.input.charCodeAt(++state.position);
951
+ if (ch === 0x3c /* < */) {
952
+ isVerbatim = true;
953
+ ch = state.input.charCodeAt(++state.position);
954
+ }
955
+ else if (ch === 0x21 /* ! */) {
956
+ isNamed = true;
957
+ tagHandle = "!!";
958
+ ch = state.input.charCodeAt(++state.position);
959
+ }
960
+ else {
961
+ tagHandle = "!";
962
+ }
963
+ position = state.position;
964
+ if (isVerbatim) {
965
+ do {
966
+ ch = state.input.charCodeAt(++state.position);
967
+ } while (ch !== 0 && ch !== 0x3e /* > */);
968
+ if (state.position < state.length) {
969
+ tagName = state.input.slice(position, state.position);
970
+ ch = state.input.charCodeAt(++state.position);
971
+ }
972
+ else {
973
+ return throwError(state, "unexpected end of the stream within a verbatim tag");
974
+ }
975
+ }
976
+ else {
977
+ while (ch !== 0 && !isWsOrEol(ch)) {
978
+ if (ch === 0x21 /* ! */) {
979
+ if (!isNamed) {
980
+ tagHandle = state.input.slice(position - 1, state.position + 1);
981
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
982
+ return throwError(state, "named tag handle cannot contain such characters");
983
+ }
984
+ isNamed = true;
985
+ position = state.position + 1;
986
+ }
987
+ else {
988
+ return throwError(state, "tag suffix cannot contain exclamation marks");
989
+ }
990
+ }
991
+ ch = state.input.charCodeAt(++state.position);
992
+ }
993
+ tagName = state.input.slice(position, state.position);
994
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
995
+ return throwError(state, "tag suffix cannot contain flow indicator characters");
996
+ }
997
+ }
998
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
999
+ return throwError(state, `tag name cannot contain such characters: ${tagName}`);
1000
+ }
1001
+ if (isVerbatim) {
1002
+ state.tag = tagName;
1003
+ }
1004
+ else if (typeof state.tagMap !== "undefined" &&
1005
+ hasOwn(state.tagMap, tagHandle)) {
1006
+ state.tag = state.tagMap[tagHandle] + tagName;
1007
+ }
1008
+ else if (tagHandle === "!") {
1009
+ state.tag = `!${tagName}`;
1010
+ }
1011
+ else if (tagHandle === "!!") {
1012
+ state.tag = `tag:yaml.org,2002:${tagName}`;
1013
+ }
1014
+ else {
1015
+ return throwError(state, `undeclared tag handle "${tagHandle}"`);
1016
+ }
1017
+ return true;
1018
+ }
1019
+ function readAnchorProperty(state) {
1020
+ let ch = state.input.charCodeAt(state.position);
1021
+ if (ch !== 0x26 /* & */)
1022
+ return false;
1023
+ if (state.anchor !== null) {
1024
+ return throwError(state, "duplication of an anchor property");
1025
+ }
1026
+ ch = state.input.charCodeAt(++state.position);
1027
+ const position = state.position;
1028
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
1029
+ ch = state.input.charCodeAt(++state.position);
1030
+ }
1031
+ if (state.position === position) {
1032
+ return throwError(state, "name of an anchor node must contain at least one character");
1033
+ }
1034
+ state.anchor = state.input.slice(position, state.position);
1035
+ return true;
1036
+ }
1037
+ function readAlias(state) {
1038
+ let ch = state.input.charCodeAt(state.position);
1039
+ if (ch !== 0x2a /* * */)
1040
+ return false;
1041
+ ch = state.input.charCodeAt(++state.position);
1042
+ const _position = state.position;
1043
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
1044
+ ch = state.input.charCodeAt(++state.position);
1045
+ }
1046
+ if (state.position === _position) {
1047
+ return throwError(state, "name of an alias node must contain at least one character");
1048
+ }
1049
+ const alias = state.input.slice(_position, state.position);
1050
+ if (typeof state.anchorMap !== "undefined" &&
1051
+ !hasOwn(state.anchorMap, alias)) {
1052
+ return throwError(state, `unidentified alias "${alias}"`);
1053
+ }
1054
+ if (typeof state.anchorMap !== "undefined") {
1055
+ state.result = state.anchorMap[alias];
1056
+ }
1057
+ skipSeparationSpace(state, true, -1);
1058
+ return true;
1059
+ }
1060
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
1061
+ let allowBlockScalars, allowBlockCollections, indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
1062
+ atNewLine = false, hasContent = false, type, flowIndent, blockIndent;
1063
+ if (state.listener && state.listener !== null) {
1064
+ state.listener("open", state);
1065
+ }
1066
+ state.tag = null;
1067
+ state.anchor = null;
1068
+ state.kind = null;
1069
+ state.result = null;
1070
+ const allowBlockStyles = (allowBlockScalars =
1071
+ allowBlockCollections =
1072
+ CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
1073
+ if (allowToSeek) {
1074
+ if (skipSeparationSpace(state, true, -1)) {
1075
+ atNewLine = true;
1076
+ if (state.lineIndent > parentIndent) {
1077
+ indentStatus = 1;
1078
+ }
1079
+ else if (state.lineIndent === parentIndent) {
1080
+ indentStatus = 0;
1081
+ }
1082
+ else if (state.lineIndent < parentIndent) {
1083
+ indentStatus = -1;
1084
+ }
1085
+ }
1086
+ }
1087
+ if (indentStatus === 1) {
1088
+ while (readTagProperty(state) || readAnchorProperty(state)) {
1089
+ if (skipSeparationSpace(state, true, -1)) {
1090
+ atNewLine = true;
1091
+ allowBlockCollections = allowBlockStyles;
1092
+ if (state.lineIndent > parentIndent) {
1093
+ indentStatus = 1;
1094
+ }
1095
+ else if (state.lineIndent === parentIndent) {
1096
+ indentStatus = 0;
1097
+ }
1098
+ else if (state.lineIndent < parentIndent) {
1099
+ indentStatus = -1;
1100
+ }
1101
+ }
1102
+ else {
1103
+ allowBlockCollections = false;
1104
+ }
1105
+ }
1106
+ }
1107
+ if (allowBlockCollections) {
1108
+ allowBlockCollections = atNewLine || allowCompact;
1109
+ }
1110
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1111
+ const cond = CONTEXT_FLOW_IN === nodeContext ||
1112
+ CONTEXT_FLOW_OUT === nodeContext;
1113
+ flowIndent = cond ? parentIndent : parentIndent + 1;
1114
+ blockIndent = state.position - state.lineStart;
1115
+ if (indentStatus === 1) {
1116
+ if ((allowBlockCollections &&
1117
+ (readBlockSequence(state, blockIndent) ||
1118
+ readBlockMapping(state, blockIndent, flowIndent))) ||
1119
+ readFlowCollection(state, flowIndent)) {
1120
+ hasContent = true;
1121
+ }
1122
+ else {
1123
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
1124
+ readSingleQuotedScalar(state, flowIndent) ||
1125
+ readDoubleQuotedScalar(state, flowIndent)) {
1126
+ hasContent = true;
1127
+ }
1128
+ else if (readAlias(state)) {
1129
+ hasContent = true;
1130
+ if (state.tag !== null || state.anchor !== null) {
1131
+ return throwError(state, "alias node should not have Any properties");
1132
+ }
1133
+ }
1134
+ else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1135
+ hasContent = true;
1136
+ if (state.tag === null) {
1137
+ state.tag = "?";
1138
+ }
1139
+ }
1140
+ if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1141
+ state.anchorMap[state.anchor] = state.result;
1142
+ }
1143
+ }
1144
+ }
1145
+ else if (indentStatus === 0) {
1146
+ // Special case: block sequences are allowed to have same indentation level as the parent.
1147
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
1148
+ hasContent = allowBlockCollections &&
1149
+ readBlockSequence(state, blockIndent);
1150
+ }
1151
+ }
1152
+ if (state.tag !== null && state.tag !== "!") {
1153
+ if (state.tag === "?") {
1154
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex++) {
1155
+ type = state.implicitTypes[typeIndex];
1156
+ // Implicit resolving is not allowed for non-scalar types, and '?'
1157
+ // non-specific tag is only assigned to plain scalars. So, it isn't
1158
+ // needed to check for 'kind' conformity.
1159
+ if (type.resolve(state.result)) {
1160
+ // `state.result` updated in resolver if matched
1161
+ state.result = type.construct(state.result);
1162
+ state.tag = type.tag;
1163
+ if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1164
+ state.anchorMap[state.anchor] = state.result;
1165
+ }
1166
+ break;
1167
+ }
1168
+ }
1169
+ }
1170
+ else if (hasOwn(state.typeMap[state.kind || "fallback"], state.tag)) {
1171
+ type = state.typeMap[state.kind || "fallback"][state.tag];
1172
+ if (state.result !== null && type.kind !== state.kind) {
1173
+ return throwError(state, `unacceptable node kind for !<${state.tag}> tag; it should be "${type.kind}", not "${state.kind}"`);
1174
+ }
1175
+ if (!type.resolve(state.result)) {
1176
+ // `state.result` updated in resolver if matched
1177
+ return throwError(state, `cannot resolve a node with !<${state.tag}> explicit tag`);
1178
+ }
1179
+ else {
1180
+ state.result = type.construct(state.result);
1181
+ if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
1182
+ state.anchorMap[state.anchor] = state.result;
1183
+ }
1184
+ }
1185
+ }
1186
+ else {
1187
+ return throwError(state, `unknown tag !<${state.tag}>`);
1188
+ }
1189
+ }
1190
+ if (state.listener && state.listener !== null) {
1191
+ state.listener("close", state);
1192
+ }
1193
+ return state.tag !== null || state.anchor !== null || hasContent;
1194
+ }
1195
+ function readDocument(state) {
1196
+ const documentStart = state.position;
1197
+ let position, directiveName, directiveArgs, hasDirectives = false, ch;
1198
+ state.version = null;
1199
+ state.checkLineBreaks = state.legacy;
1200
+ state.tagMap = Object.create(null);
1201
+ state.anchorMap = Object.create(null);
1202
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1203
+ skipSeparationSpace(state, true, -1);
1204
+ ch = state.input.charCodeAt(state.position);
1205
+ if (state.lineIndent > 0 || ch !== 0x25 /* % */) {
1206
+ break;
1207
+ }
1208
+ hasDirectives = true;
1209
+ ch = state.input.charCodeAt(++state.position);
1210
+ position = state.position;
1211
+ while (ch !== 0 && !isWsOrEol(ch)) {
1212
+ ch = state.input.charCodeAt(++state.position);
1213
+ }
1214
+ directiveName = state.input.slice(position, state.position);
1215
+ directiveArgs = [];
1216
+ if (directiveName.length < 1) {
1217
+ return throwError(state, "directive name must not be less than one character in length");
1218
+ }
1219
+ while (ch !== 0) {
1220
+ while (isWhiteSpace(ch)) {
1221
+ ch = state.input.charCodeAt(++state.position);
1222
+ }
1223
+ if (ch === 0x23 /* # */) {
1224
+ do {
1225
+ ch = state.input.charCodeAt(++state.position);
1226
+ } while (ch !== 0 && !isEOL(ch));
1227
+ break;
1228
+ }
1229
+ if (isEOL(ch))
1230
+ break;
1231
+ position = state.position;
1232
+ while (ch !== 0 && !isWsOrEol(ch)) {
1233
+ ch = state.input.charCodeAt(++state.position);
1234
+ }
1235
+ directiveArgs.push(state.input.slice(position, state.position));
1236
+ }
1237
+ if (ch !== 0)
1238
+ readLineBreak(state);
1239
+ if (hasOwn(directiveHandlers, directiveName)) {
1240
+ directiveHandlers[directiveName](state, directiveName, ...directiveArgs);
1241
+ }
1242
+ else {
1243
+ throwWarning(state, `unknown document directive "${directiveName}"`);
1244
+ }
1245
+ }
1246
+ skipSeparationSpace(state, true, -1);
1247
+ if (state.lineIndent === 0 &&
1248
+ state.input.charCodeAt(state.position) === 0x2d /* - */ &&
1249
+ state.input.charCodeAt(state.position + 1) === 0x2d /* - */ &&
1250
+ state.input.charCodeAt(state.position + 2) === 0x2d /* - */) {
1251
+ state.position += 3;
1252
+ skipSeparationSpace(state, true, -1);
1253
+ }
1254
+ else if (hasDirectives) {
1255
+ return throwError(state, "directives end mark is expected");
1256
+ }
1257
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1258
+ skipSeparationSpace(state, true, -1);
1259
+ if (state.checkLineBreaks &&
1260
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
1261
+ throwWarning(state, "non-ASCII line breaks are interpreted as content");
1262
+ }
1263
+ state.documents.push(state.result);
1264
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
1265
+ if (state.input.charCodeAt(state.position) === 0x2e /* . */) {
1266
+ state.position += 3;
1267
+ skipSeparationSpace(state, true, -1);
1268
+ }
1269
+ return;
1270
+ }
1271
+ if (state.position < state.length - 1) {
1272
+ return throwError(state, "end of the stream or a document separator is expected");
1273
+ }
1274
+ }
1275
+ function loadDocuments(input, options) {
1276
+ input = String(input);
1277
+ options = options || {};
1278
+ if (input.length !== 0) {
1279
+ // Add tailing `\n` if not exists
1280
+ if (input.charCodeAt(input.length - 1) !== 0x0a /* LF */ &&
1281
+ input.charCodeAt(input.length - 1) !== 0x0d /* CR */) {
1282
+ input += "\n";
1283
+ }
1284
+ // Strip BOM
1285
+ if (input.charCodeAt(0) === 0xfeff) {
1286
+ input = input.slice(1);
1287
+ }
1288
+ }
1289
+ const state = new loader_state_js_1.LoaderState(input, options);
1290
+ // Use 0 as string terminator. That significantly simplifies bounds check.
1291
+ state.input += "\0";
1292
+ while (state.input.charCodeAt(state.position) === 0x20 /* Space */) {
1293
+ state.lineIndent += 1;
1294
+ state.position += 1;
1295
+ }
1296
+ while (state.position < state.length - 1) {
1297
+ readDocument(state);
1298
+ }
1299
+ return state.documents;
1300
+ }
1301
+ function isCbFunction(fn) {
1302
+ return typeof fn === "function";
1303
+ }
1304
+ function loadAll(input, iteratorOrOption, options) {
1305
+ if (!isCbFunction(iteratorOrOption)) {
1306
+ return loadDocuments(input, iteratorOrOption);
1307
+ }
1308
+ const documents = loadDocuments(input, options);
1309
+ const iterator = iteratorOrOption;
1310
+ for (let index = 0, length = documents.length; index < length; index++) {
1311
+ iterator(documents[index]);
1312
+ }
1313
+ return void 0;
1314
+ }
1315
+ function load(input, options) {
1316
+ const documents = loadDocuments(input, options);
1317
+ if (documents.length === 0) {
1318
+ return null;
1319
+ }
1320
+ if (documents.length === 1) {
1321
+ return documents[0];
1322
+ }
1323
+ throw new _error_js_1.YAMLError("expected a single document in the stream, but found more");
1324
+ }