@skmtc/core 0.0.607 → 0.0.608

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 (494) hide show
  1. package/esm/context/CoreContext.d.ts +3 -3
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +2 -2
  4. package/esm/context/GenerateContext.d.ts +1 -1
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/ParseContext.d.ts +1 -1
  7. package/esm/context/ParseContext.js +1 -1
  8. package/esm/context/RenderContext.d.ts +1 -1
  9. package/esm/context/ResultsHandler.d.ts +4 -4
  10. package/esm/context/ResultsHandler.js +2 -2
  11. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.js +0 -1
  17. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts.map +1 -1
  20. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.d.ts +0 -3
  21. package/esm/deps/jsr.io/@std/log/0.224.6/file_handler.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.js +1 -1
  23. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.d.ts +0 -1
  28. package/esm/deps/jsr.io/@std/log/0.224.6/logger.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.js +1 -1
  30. package/{script/deps/jsr.io/@std/log/0.224.8 → esm/deps/jsr.io/@std/log/0.224.6}/mod.d.ts +5 -5
  31. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.js +5 -5
  33. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.js +4 -4
  36. package/esm/deps/jsr.io/@std/log/0.224.6/warn.d.ts +5 -0
  37. package/esm/deps/jsr.io/@std/log/0.224.6/warn.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts +33 -0
  39. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.js +48 -0
  41. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts +99 -0
  42. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.js +707 -0
  44. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts +60 -0
  45. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.js +1409 -0
  47. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts +40 -0
  48. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.js +112 -0
  50. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts +3 -0
  51. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/binary.js +3 -7
  53. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts +3 -0
  54. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.js +32 -0
  56. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts +3 -0
  57. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/float.js +17 -27
  59. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts +3 -0
  60. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/int.js +39 -48
  62. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts +3 -0
  63. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/map.js +6 -3
  65. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts +3 -0
  66. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/merge.js +5 -7
  68. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts +3 -0
  69. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.js +22 -0
  71. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts +3 -0
  72. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.js +29 -0
  74. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts +3 -0
  75. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.js +19 -0
  77. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts +3 -0
  78. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/regexp.js +12 -19
  80. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts +3 -0
  81. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/seq.js +5 -6
  83. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts +3 -0
  84. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.js +14 -0
  86. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts +3 -0
  87. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/str.js +5 -6
  89. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts +3 -0
  90. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/timestamp.js +10 -7
  92. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts +3 -0
  93. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/undefined.js +3 -3
  95. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts +16 -0
  96. package/esm/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@std/yaml/{0.215.0/schema/core.js → 1.0.5/_type.js} +1 -7
  98. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts +4 -0
  99. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.js +13 -0
  101. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts +50 -0
  102. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.js +52 -0
  104. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts +76 -0
  105. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.js +93 -0
  107. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts +100 -0
  108. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.js +33 -0
  110. package/esm/mod.d.ts +2 -1
  111. package/esm/mod.d.ts.map +1 -1
  112. package/esm/mod.js +2 -1
  113. package/esm/run/{transform.d.ts → toArtifacts.d.ts} +2 -2
  114. package/esm/run/toArtifacts.d.ts.map +1 -0
  115. package/esm/run/{transform.js → toArtifacts.js} +2 -2
  116. package/esm/run/toV3JsonDocument.d.ts +6 -0
  117. package/esm/run/toV3JsonDocument.d.ts.map +1 -0
  118. package/esm/run/toV3JsonDocument.js +33 -0
  119. package/package.json +5 -1
  120. package/script/context/CoreContext.d.ts +3 -3
  121. package/script/context/CoreContext.d.ts.map +1 -1
  122. package/script/context/CoreContext.js +2 -2
  123. package/script/context/GenerateContext.d.ts +1 -1
  124. package/script/context/GenerateContext.d.ts.map +1 -1
  125. package/script/context/ParseContext.d.ts +1 -1
  126. package/script/context/ParseContext.js +1 -1
  127. package/script/context/RenderContext.d.ts +1 -1
  128. package/script/context/ResultsHandler.d.ts +4 -4
  129. package/script/context/ResultsHandler.js +2 -2
  130. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts.map +1 -1
  131. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts.map +1 -1
  132. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts.map +1 -1
  133. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts.map +1 -1
  134. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts.map +1 -1
  135. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.js +0 -1
  136. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts.map +1 -1
  137. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts.map +1 -1
  138. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts.map +1 -1
  139. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.d.ts +0 -3
  140. package/script/deps/jsr.io/@std/log/0.224.6/file_handler.d.ts.map +1 -0
  141. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/file_handler.js +1 -1
  142. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts.map +1 -1
  143. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts.map +1 -1
  144. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts.map +1 -1
  145. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts.map +1 -1
  146. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.d.ts +0 -1
  147. package/script/deps/jsr.io/@std/log/0.224.6/logger.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/logger.js +1 -1
  149. package/{esm/deps/jsr.io/@std/log/0.224.8 → script/deps/jsr.io/@std/log/0.224.6}/mod.d.ts +5 -5
  150. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.d.ts.map +1 -1
  151. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/mod.js +5 -5
  152. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts.map +1 -1
  153. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts.map +1 -1
  154. package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.js +4 -4
  155. package/script/deps/jsr.io/@std/log/0.224.6/warn.d.ts +5 -0
  156. package/script/deps/jsr.io/@std/log/0.224.6/warn.d.ts.map +1 -0
  157. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts +33 -0
  158. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
  159. package/script/deps/jsr.io/@std/yaml/1.0.5/_chars.js +55 -0
  160. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts +99 -0
  161. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
  162. package/script/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.js +711 -0
  163. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts +60 -0
  164. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
  165. package/script/deps/jsr.io/@std/yaml/1.0.5/_loader_state.js +1413 -0
  166. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts +40 -0
  167. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
  168. package/script/deps/jsr.io/@std/yaml/1.0.5/_schema.js +115 -0
  169. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts +3 -0
  170. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
  171. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/binary.js +3 -7
  172. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts +3 -0
  173. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
  174. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/bool.js +35 -0
  175. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts +3 -0
  176. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
  177. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/float.js +17 -27
  178. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts +3 -0
  179. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
  180. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/int.js +39 -48
  181. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts +3 -0
  182. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
  183. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/map.js +6 -3
  184. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts +3 -0
  185. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
  186. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/merge.js +5 -7
  187. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts +3 -0
  188. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
  189. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/nil.js +25 -0
  190. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts +3 -0
  191. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
  192. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/omap.js +32 -0
  193. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts +3 -0
  194. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
  195. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.js +22 -0
  196. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts +3 -0
  197. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
  198. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/regexp.js +12 -19
  199. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts +3 -0
  200. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
  201. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/seq.js +5 -6
  202. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts +3 -0
  203. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
  204. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/set.js +17 -0
  205. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts +3 -0
  206. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
  207. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/str.js +5 -6
  208. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts +3 -0
  209. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
  210. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/timestamp.js +10 -7
  211. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts +3 -0
  212. package/script/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
  213. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/_type/undefined.js +3 -3
  214. package/script/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts +16 -0
  215. package/script/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
  216. package/script/deps/jsr.io/@std/yaml/{0.215.0/schema/core.js → 1.0.5/_type.js} +0 -8
  217. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts +4 -0
  218. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
  219. package/script/deps/jsr.io/@std/yaml/1.0.5/_utils.js +18 -0
  220. package/script/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts +50 -0
  221. package/script/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
  222. package/script/deps/jsr.io/@std/yaml/{0.215.0 → 1.0.5}/mod.js +23 -22
  223. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts +76 -0
  224. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
  225. package/script/deps/jsr.io/@std/yaml/1.0.5/parse.js +97 -0
  226. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts +100 -0
  227. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
  228. package/script/deps/jsr.io/@std/yaml/1.0.5/stringify.js +36 -0
  229. package/script/mod.d.ts +2 -1
  230. package/script/mod.d.ts.map +1 -1
  231. package/script/mod.js +2 -1
  232. package/script/run/{transform.d.ts → toArtifacts.d.ts} +2 -2
  233. package/script/run/toArtifacts.d.ts.map +1 -0
  234. package/script/run/{transform.js → toArtifacts.js} +4 -4
  235. package/script/run/toV3JsonDocument.d.ts +6 -0
  236. package/script/run/toV3JsonDocument.d.ts.map +1 -0
  237. package/script/run/toV3JsonDocument.js +41 -0
  238. package/esm/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +0 -1
  239. package/esm/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
  240. package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
  241. package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
  242. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +0 -6
  243. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +0 -1
  244. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +0 -684
  245. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +0 -73
  246. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +0 -1
  247. package/esm/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +0 -148
  248. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +0 -7
  249. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +0 -1
  250. package/esm/deps/jsr.io/@std/yaml/0.215.0/_error.js +0 -19
  251. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +0 -5
  252. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +0 -1
  253. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +0 -1297
  254. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +0 -44
  255. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +0 -1
  256. package/esm/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +0 -150
  257. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +0 -11
  258. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +0 -1
  259. package/esm/deps/jsr.io/@std/yaml/0.215.0/_mark.js +0 -81
  260. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +0 -6
  261. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +0 -1
  262. package/esm/deps/jsr.io/@std/yaml/0.215.0/_state.js +0 -15
  263. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +0 -3
  264. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +0 -1
  265. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +0 -3
  266. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +0 -1
  267. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +0 -32
  268. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +0 -3
  269. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +0 -1
  270. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +0 -3
  271. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +0 -1
  272. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +0 -38
  273. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +0 -3
  274. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +0 -1
  275. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +0 -3
  276. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +0 -1
  277. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +0 -3
  278. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +0 -1
  279. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +0 -17
  280. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +0 -1
  281. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -20
  282. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +0 -3
  283. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +0 -1
  284. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +0 -37
  285. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +0 -3
  286. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +0 -1
  287. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +0 -40
  288. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +0 -3
  289. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +0 -1
  290. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +0 -35
  291. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +0 -3
  292. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +0 -1
  293. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +0 -3
  294. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +0 -1
  295. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +0 -3
  296. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +0 -1
  297. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +0 -25
  298. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +0 -3
  299. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +0 -1
  300. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +0 -3
  301. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +0 -1
  302. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +0 -3
  303. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +0 -1
  304. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +0 -20
  305. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +0 -1
  306. package/esm/deps/jsr.io/@std/yaml/0.215.0/_utils.js +0 -57
  307. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +0 -49
  308. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +0 -1
  309. package/esm/deps/jsr.io/@std/yaml/0.215.0/mod.js +0 -51
  310. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +0 -36
  311. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +0 -1
  312. package/esm/deps/jsr.io/@std/yaml/0.215.0/parse.js +0 -18
  313. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +0 -3
  314. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +0 -1
  315. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +0 -3
  316. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +0 -1
  317. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -15
  318. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +0 -31
  319. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +0 -1
  320. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +0 -37
  321. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +0 -3
  322. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +0 -1
  323. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +0 -12
  324. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +0 -3
  325. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +0 -1
  326. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +0 -14
  327. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +0 -6
  328. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +0 -1
  329. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -10
  330. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +0 -23
  331. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +0 -1
  332. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema.js +0 -103
  333. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +0 -9
  334. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +0 -1
  335. package/esm/deps/jsr.io/@std/yaml/0.215.0/stringify.js +0 -14
  336. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +0 -29
  337. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +0 -1
  338. package/esm/deps/jsr.io/@std/yaml/0.215.0/type.js +0 -83
  339. package/esm/run/transform.d.ts.map +0 -1
  340. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +0 -1
  341. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
  342. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
  343. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
  344. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +0 -6
  345. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +0 -1
  346. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +0 -710
  347. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +0 -73
  348. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +0 -1
  349. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +0 -152
  350. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +0 -7
  351. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +0 -1
  352. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +0 -23
  353. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +0 -5
  354. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +0 -1
  355. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +0 -1324
  356. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +0 -44
  357. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +0 -1
  358. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +0 -154
  359. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +0 -11
  360. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +0 -1
  361. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +0 -85
  362. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +0 -6
  363. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +0 -1
  364. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +0 -19
  365. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +0 -3
  366. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +0 -1
  367. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +0 -3
  368. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +0 -1
  369. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +0 -35
  370. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +0 -3
  371. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +0 -1
  372. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +0 -3
  373. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +0 -1
  374. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +0 -41
  375. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +0 -3
  376. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +0 -1
  377. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +0 -3
  378. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +0 -1
  379. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +0 -3
  380. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +0 -1
  381. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +0 -17
  382. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +0 -1
  383. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -39
  384. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +0 -3
  385. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +0 -1
  386. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +0 -40
  387. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +0 -3
  388. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +0 -1
  389. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +0 -43
  390. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +0 -3
  391. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +0 -1
  392. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +0 -38
  393. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +0 -3
  394. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +0 -1
  395. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +0 -3
  396. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +0 -1
  397. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +0 -3
  398. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +0 -1
  399. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +0 -28
  400. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +0 -3
  401. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +0 -1
  402. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +0 -3
  403. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +0 -1
  404. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +0 -3
  405. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +0 -1
  406. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +0 -20
  407. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +0 -1
  408. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +0 -74
  409. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +0 -49
  410. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +0 -1
  411. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +0 -36
  412. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +0 -1
  413. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +0 -22
  414. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +0 -3
  415. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +0 -1
  416. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +0 -3
  417. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +0 -1
  418. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -18
  419. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +0 -31
  420. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +0 -1
  421. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +0 -40
  422. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +0 -3
  423. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +0 -1
  424. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +0 -15
  425. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +0 -3
  426. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +0 -1
  427. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +0 -17
  428. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +0 -6
  429. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +0 -1
  430. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -18
  431. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +0 -23
  432. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +0 -1
  433. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +0 -107
  434. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +0 -9
  435. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +0 -1
  436. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +0 -17
  437. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +0 -29
  438. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +0 -1
  439. package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +0 -87
  440. package/script/run/transform.d.ts.map +0 -1
  441. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts +0 -0
  442. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.js +0 -0
  443. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts +0 -0
  444. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.js +0 -0
  445. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts +0 -0
  446. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.js +0 -0
  447. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts +0 -0
  448. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.js +0 -0
  449. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts +0 -0
  450. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts +0 -0
  451. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.js +0 -0
  452. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts +0 -0
  453. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.js +0 -0
  454. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts +0 -0
  455. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.js +0 -0
  456. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts +0 -0
  457. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.js +0 -0
  458. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts +0 -0
  459. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.js +0 -0
  460. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts +0 -0
  461. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.js +0 -0
  462. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts +0 -0
  463. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.js +0 -0
  464. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts +0 -0
  465. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.js +0 -0
  466. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts +0 -0
  467. /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/warn.js +0 -0
  468. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.d.ts +0 -0
  469. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_config.js +0 -0
  470. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.d.ts +0 -0
  471. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_file_handler_symbols.js +0 -0
  472. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.d.ts +0 -0
  473. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/_state.js +0 -0
  474. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.d.ts +0 -0
  475. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/base_handler.js +0 -0
  476. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/console_handler.d.ts +0 -0
  477. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.d.ts +0 -0
  478. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/critical.js +0 -0
  479. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.d.ts +0 -0
  480. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/debug.js +0 -0
  481. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.d.ts +0 -0
  482. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/error.js +0 -0
  483. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.d.ts +0 -0
  484. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/formatters.js +0 -0
  485. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.d.ts +0 -0
  486. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/get_logger.js +0 -0
  487. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.d.ts +0 -0
  488. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/info.js +0 -0
  489. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.d.ts +0 -0
  490. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/levels.js +0 -0
  491. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.d.ts +0 -0
  492. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/rotating_file_handler.js +0 -0
  493. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/setup.d.ts +0 -0
  494. /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.6}/warn.js +0 -0
@@ -0,0 +1,1413 @@
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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
9
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
10
+ };
11
+ var _LoaderState_instances, _LoaderState_createError;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.LoaderState = void 0;
14
+ const _chars_js_1 = require("./_chars.js");
15
+ const _schema_js_1 = require("./_schema.js");
16
+ const _utils_js_1 = require("./_utils.js");
17
+ const CONTEXT_FLOW_IN = 1;
18
+ const CONTEXT_FLOW_OUT = 2;
19
+ const CONTEXT_BLOCK_IN = 3;
20
+ const CONTEXT_BLOCK_OUT = 4;
21
+ const CHOMPING_CLIP = 1;
22
+ const CHOMPING_STRIP = 2;
23
+ const CHOMPING_KEEP = 3;
24
+ const PATTERN_NON_PRINTABLE =
25
+ // deno-lint-ignore no-control-regex
26
+ /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
27
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
28
+ const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
29
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
30
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
31
+ const ESCAPED_HEX_LENGTHS = new Map([
32
+ [0x78, 2], // x
33
+ [0x75, 4], // u
34
+ [0x55, 8], // U
35
+ ]);
36
+ const SIMPLE_ESCAPE_SEQUENCES = new Map([
37
+ [0x30, "\x00"], // 0
38
+ [0x61, "\x07"], // a
39
+ [0x62, "\x08"], // b
40
+ [0x74, "\x09"], // t
41
+ [0x09, "\x09"], // Tab
42
+ [0x6e, "\x0A"], // n
43
+ [0x76, "\x0B"], // v
44
+ [0x66, "\x0C"], // f
45
+ [0x72, "\x0D"], // r
46
+ [0x65, "\x1B"], // e
47
+ [0x20, " "], // Space
48
+ [0x22, '"'], // "
49
+ [0x2f, "/"], // /
50
+ [0x5c, "\\"], // \
51
+ [0x4e, "\x85"], // N
52
+ [0x5f, "\xA0"], // _
53
+ [0x4c, "\u2028"], // L
54
+ [0x50, "\u2029"], // P
55
+ ]);
56
+ /**
57
+ * Converts a hexadecimal character code to its decimal value.
58
+ */
59
+ function hexCharCodeToNumber(charCode) {
60
+ // Check if the character code is in the range for '0' to '9'
61
+ if (0x30 <= charCode && charCode <= 0x39)
62
+ return charCode - 0x30; // Convert '0'-'9' to 0-9
63
+ // Normalize the character code to lowercase if it's a letter
64
+ const lc = charCode | 0x20;
65
+ // Check if the character code is in the range for 'a' to 'f'
66
+ if (0x61 <= lc && lc <= 0x66)
67
+ return lc - 0x61 + 10; // Convert 'a'-'f' to 10-15
68
+ return -1;
69
+ }
70
+ /**
71
+ * Converts a decimal character code to its decimal value.
72
+ */
73
+ function decimalCharCodeToNumber(charCode) {
74
+ // Check if the character code is in the range for '0' to '9'
75
+ if (0x30 <= charCode && charCode <= 0x39)
76
+ return charCode - 0x30; // Convert '0'-'9' to 0-9
77
+ return -1;
78
+ }
79
+ /**
80
+ * Converts a Unicode code point to a string.
81
+ */
82
+ function codepointToChar(codepoint) {
83
+ // Check if the code point is within the Basic Multilingual Plane (BMP)
84
+ if (codepoint <= 0xffff)
85
+ return String.fromCharCode(codepoint); // Convert BMP code point to character
86
+ // Encode UTF-16 surrogate pair for code points beyond BMP
87
+ // Reference: https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
88
+ return String.fromCharCode(((codepoint - 0x010000) >> 10) + 0xd800, // High surrogate
89
+ ((codepoint - 0x010000) & 0x03ff) + 0xdc00);
90
+ }
91
+ const INDENT = 4;
92
+ const MAX_LENGTH = 75;
93
+ const DELIMITERS = "\x00\r\n\x85\u2028\u2029";
94
+ function getSnippet(buffer, position) {
95
+ if (!buffer)
96
+ return null;
97
+ let start = position;
98
+ let end = position;
99
+ let head = "";
100
+ let tail = "";
101
+ while (start > 0 && !DELIMITERS.includes(buffer.charAt(start - 1))) {
102
+ start--;
103
+ if (position - start > MAX_LENGTH / 2 - 1) {
104
+ head = " ... ";
105
+ start += 5;
106
+ break;
107
+ }
108
+ }
109
+ while (end < buffer.length && !DELIMITERS.includes(buffer.charAt(end))) {
110
+ end++;
111
+ if (end - position > MAX_LENGTH / 2 - 1) {
112
+ tail = " ... ";
113
+ end -= 5;
114
+ break;
115
+ }
116
+ }
117
+ const snippet = buffer.slice(start, end);
118
+ const indent = " ".repeat(INDENT);
119
+ const caretIndent = " ".repeat(INDENT + position - start + head.length);
120
+ return `${indent + head + snippet + tail}\n${caretIndent}^`;
121
+ }
122
+ function markToString(buffer, position, line, column) {
123
+ let where = `at line ${line + 1}, column ${column + 1}`;
124
+ const snippet = getSnippet(buffer, position);
125
+ if (snippet)
126
+ where += `:\n${snippet}`;
127
+ return where;
128
+ }
129
+ class LoaderState {
130
+ constructor(input, { schema = _schema_js_1.DEFAULT_SCHEMA, onWarning, allowDuplicateKeys = false, }) {
131
+ _LoaderState_instances.add(this);
132
+ Object.defineProperty(this, "input", {
133
+ enumerable: true,
134
+ configurable: true,
135
+ writable: true,
136
+ value: void 0
137
+ });
138
+ Object.defineProperty(this, "length", {
139
+ enumerable: true,
140
+ configurable: true,
141
+ writable: true,
142
+ value: void 0
143
+ });
144
+ Object.defineProperty(this, "lineIndent", {
145
+ enumerable: true,
146
+ configurable: true,
147
+ writable: true,
148
+ value: 0
149
+ });
150
+ Object.defineProperty(this, "lineStart", {
151
+ enumerable: true,
152
+ configurable: true,
153
+ writable: true,
154
+ value: 0
155
+ });
156
+ Object.defineProperty(this, "position", {
157
+ enumerable: true,
158
+ configurable: true,
159
+ writable: true,
160
+ value: 0
161
+ });
162
+ Object.defineProperty(this, "line", {
163
+ enumerable: true,
164
+ configurable: true,
165
+ writable: true,
166
+ value: 0
167
+ });
168
+ Object.defineProperty(this, "onWarning", {
169
+ enumerable: true,
170
+ configurable: true,
171
+ writable: true,
172
+ value: void 0
173
+ });
174
+ Object.defineProperty(this, "allowDuplicateKeys", {
175
+ enumerable: true,
176
+ configurable: true,
177
+ writable: true,
178
+ value: void 0
179
+ });
180
+ Object.defineProperty(this, "implicitTypes", {
181
+ enumerable: true,
182
+ configurable: true,
183
+ writable: true,
184
+ value: void 0
185
+ });
186
+ Object.defineProperty(this, "typeMap", {
187
+ enumerable: true,
188
+ configurable: true,
189
+ writable: true,
190
+ value: void 0
191
+ });
192
+ Object.defineProperty(this, "version", {
193
+ enumerable: true,
194
+ configurable: true,
195
+ writable: true,
196
+ value: void 0
197
+ });
198
+ Object.defineProperty(this, "checkLineBreaks", {
199
+ enumerable: true,
200
+ configurable: true,
201
+ writable: true,
202
+ value: false
203
+ });
204
+ Object.defineProperty(this, "tagMap", {
205
+ enumerable: true,
206
+ configurable: true,
207
+ writable: true,
208
+ value: new Map()
209
+ });
210
+ Object.defineProperty(this, "anchorMap", {
211
+ enumerable: true,
212
+ configurable: true,
213
+ writable: true,
214
+ value: new Map()
215
+ });
216
+ Object.defineProperty(this, "tag", {
217
+ enumerable: true,
218
+ configurable: true,
219
+ writable: true,
220
+ value: void 0
221
+ });
222
+ Object.defineProperty(this, "anchor", {
223
+ enumerable: true,
224
+ configurable: true,
225
+ writable: true,
226
+ value: void 0
227
+ });
228
+ Object.defineProperty(this, "kind", {
229
+ enumerable: true,
230
+ configurable: true,
231
+ writable: true,
232
+ value: void 0
233
+ });
234
+ Object.defineProperty(this, "result", {
235
+ enumerable: true,
236
+ configurable: true,
237
+ writable: true,
238
+ value: ""
239
+ });
240
+ this.input = input;
241
+ this.onWarning = onWarning;
242
+ this.allowDuplicateKeys = allowDuplicateKeys;
243
+ this.implicitTypes = schema.implicitTypes;
244
+ this.typeMap = schema.typeMap;
245
+ this.length = input.length;
246
+ this.version = null;
247
+ this.readIndent();
248
+ }
249
+ readIndent() {
250
+ let char = this.peek();
251
+ while (char === _chars_js_1.SPACE) {
252
+ this.lineIndent += 1;
253
+ char = this.next();
254
+ }
255
+ }
256
+ peek(offset = 0) {
257
+ return this.input.charCodeAt(this.position + offset);
258
+ }
259
+ next() {
260
+ this.position += 1;
261
+ return this.peek();
262
+ }
263
+ throwError(message) {
264
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
265
+ }
266
+ dispatchWarning(message) {
267
+ const error = __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
268
+ this.onWarning?.(error);
269
+ }
270
+ yamlDirectiveHandler(...args) {
271
+ if (this.version !== null) {
272
+ return this.throwError("Cannot handle YAML directive: duplication of %YAML directive");
273
+ }
274
+ if (args.length !== 1) {
275
+ return this.throwError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
276
+ }
277
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
278
+ if (match === null) {
279
+ return this.throwError("Cannot handle YAML directive: ill-formed argument");
280
+ }
281
+ const major = parseInt(match[1], 10);
282
+ const minor = parseInt(match[2], 10);
283
+ if (major !== 1) {
284
+ return this.throwError("Cannot handle YAML directive: unacceptable YAML version");
285
+ }
286
+ this.version = args[0] ?? null;
287
+ this.checkLineBreaks = minor < 2;
288
+ if (minor !== 1 && minor !== 2) {
289
+ return this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
290
+ }
291
+ }
292
+ tagDirectiveHandler(...args) {
293
+ if (args.length !== 2) {
294
+ return this.throwError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
295
+ }
296
+ const handle = args[0];
297
+ const prefix = args[1];
298
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
299
+ return this.throwError(`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
300
+ }
301
+ if (this.tagMap.has(handle)) {
302
+ return this.throwError(`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
303
+ }
304
+ if (!PATTERN_TAG_URI.test(prefix)) {
305
+ return this.throwError("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
306
+ }
307
+ this.tagMap.set(handle, prefix);
308
+ }
309
+ captureSegment(start, end, checkJson) {
310
+ let result;
311
+ if (start < end) {
312
+ result = this.input.slice(start, end);
313
+ if (checkJson) {
314
+ for (let position = 0; position < result.length; position++) {
315
+ const character = result.charCodeAt(position);
316
+ if (!(character === 0x09 ||
317
+ (0x20 <= character && character <= 0x10ffff))) {
318
+ return this.throwError(`Expected valid JSON character: received "${character}"`);
319
+ }
320
+ }
321
+ }
322
+ else if (PATTERN_NON_PRINTABLE.test(result)) {
323
+ return this.throwError("Stream contains non-printable characters");
324
+ }
325
+ this.result += result;
326
+ }
327
+ }
328
+ readBlockSequence(nodeIndent) {
329
+ let line;
330
+ let following;
331
+ let detected = false;
332
+ let ch;
333
+ const tag = this.tag;
334
+ const anchor = this.anchor;
335
+ const result = [];
336
+ if (this.anchor !== null && typeof this.anchor !== "undefined") {
337
+ this.anchorMap.set(this.anchor, result);
338
+ }
339
+ ch = this.peek();
340
+ while (ch !== 0) {
341
+ if (ch !== _chars_js_1.MINUS) {
342
+ break;
343
+ }
344
+ following = this.peek(1);
345
+ if (!(0, _chars_js_1.isWhiteSpaceOrEOL)(following)) {
346
+ break;
347
+ }
348
+ detected = true;
349
+ this.position++;
350
+ if (this.skipSeparationSpace(true, -1)) {
351
+ if (this.lineIndent <= nodeIndent) {
352
+ result.push(null);
353
+ ch = this.peek();
354
+ continue;
355
+ }
356
+ }
357
+ line = this.line;
358
+ this.composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
359
+ result.push(this.result);
360
+ this.skipSeparationSpace(true, -1);
361
+ ch = this.peek();
362
+ if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
363
+ return this.throwError("Cannot read block sequence: bad indentation of a sequence entry");
364
+ }
365
+ else if (this.lineIndent < nodeIndent) {
366
+ break;
367
+ }
368
+ }
369
+ if (detected) {
370
+ this.tag = tag;
371
+ this.anchor = anchor;
372
+ this.kind = "sequence";
373
+ this.result = result;
374
+ return true;
375
+ }
376
+ return false;
377
+ }
378
+ mergeMappings(destination, source, overridableKeys) {
379
+ if (!(0, _utils_js_1.isObject)(source)) {
380
+ return this.throwError("Cannot merge mappings: the provided source object is unacceptable");
381
+ }
382
+ for (const [key, value] of Object.entries(source)) {
383
+ if (Object.hasOwn(destination, key))
384
+ continue;
385
+ Object.defineProperty(destination, key, {
386
+ value,
387
+ writable: true,
388
+ enumerable: true,
389
+ configurable: true,
390
+ });
391
+ overridableKeys.add(key);
392
+ }
393
+ }
394
+ storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
395
+ // The output is a plain object here, so keys can only be strings.
396
+ // We need to convert keyNode to a string, but doing so can hang the process
397
+ // (deeply nested arrays that explode exponentially using aliases).
398
+ if (Array.isArray(keyNode)) {
399
+ keyNode = Array.prototype.slice.call(keyNode);
400
+ for (let index = 0; index < keyNode.length; index++) {
401
+ if (Array.isArray(keyNode[index])) {
402
+ return this.throwError("Cannot store mapping pair: nested arrays are not supported inside keys");
403
+ }
404
+ if (typeof keyNode === "object" && (0, _utils_js_1.isPlainObject)(keyNode[index])) {
405
+ keyNode[index] = "[object Object]";
406
+ }
407
+ }
408
+ }
409
+ // Avoid code execution in load() via toString property
410
+ // (still use its own toString for arrays, timestamps,
411
+ // and whatever user schema extensions happen to have @@toStringTag)
412
+ if (typeof keyNode === "object" && (0, _utils_js_1.isPlainObject)(keyNode)) {
413
+ keyNode = "[object Object]";
414
+ }
415
+ keyNode = String(keyNode);
416
+ if (keyTag === "tag:yaml.org,2002:merge") {
417
+ if (Array.isArray(valueNode)) {
418
+ for (let index = 0; index < valueNode.length; index++) {
419
+ this.mergeMappings(result, valueNode[index], overridableKeys);
420
+ }
421
+ }
422
+ else {
423
+ this.mergeMappings(result, valueNode, overridableKeys);
424
+ }
425
+ }
426
+ else {
427
+ if (!this.allowDuplicateKeys &&
428
+ !overridableKeys.has(keyNode) &&
429
+ Object.hasOwn(result, keyNode)) {
430
+ this.line = startLine || this.line;
431
+ this.position = startPos || this.position;
432
+ return this.throwError("Cannot store mapping pair: duplicated key");
433
+ }
434
+ Object.defineProperty(result, keyNode, {
435
+ value: valueNode,
436
+ writable: true,
437
+ enumerable: true,
438
+ configurable: true,
439
+ });
440
+ overridableKeys.delete(keyNode);
441
+ }
442
+ return result;
443
+ }
444
+ readLineBreak() {
445
+ const ch = this.peek();
446
+ if (ch === _chars_js_1.LINE_FEED) {
447
+ this.position++;
448
+ }
449
+ else if (ch === _chars_js_1.CARRIAGE_RETURN) {
450
+ this.position++;
451
+ if (this.peek() === _chars_js_1.LINE_FEED) {
452
+ this.position++;
453
+ }
454
+ }
455
+ else {
456
+ return this.throwError("Cannot read line: line break not found");
457
+ }
458
+ this.line += 1;
459
+ this.lineStart = this.position;
460
+ }
461
+ skipSeparationSpace(allowComments, checkIndent) {
462
+ let lineBreaks = 0;
463
+ let ch = this.peek();
464
+ while (ch !== 0) {
465
+ while ((0, _chars_js_1.isWhiteSpace)(ch)) {
466
+ ch = this.next();
467
+ }
468
+ if (allowComments && ch === _chars_js_1.SHARP) {
469
+ do {
470
+ ch = this.next();
471
+ } while (ch !== _chars_js_1.LINE_FEED && ch !== _chars_js_1.CARRIAGE_RETURN && ch !== 0);
472
+ }
473
+ if ((0, _chars_js_1.isEOL)(ch)) {
474
+ this.readLineBreak();
475
+ ch = this.peek();
476
+ lineBreaks++;
477
+ this.lineIndent = 0;
478
+ this.readIndent();
479
+ ch = this.peek();
480
+ }
481
+ else {
482
+ break;
483
+ }
484
+ }
485
+ if (checkIndent !== -1 &&
486
+ lineBreaks !== 0 &&
487
+ this.lineIndent < checkIndent) {
488
+ this.dispatchWarning("deficient indentation");
489
+ }
490
+ return lineBreaks;
491
+ }
492
+ testDocumentSeparator() {
493
+ let ch = this.peek();
494
+ // Condition this.position === this.lineStart is tested
495
+ // in parent on each call, for efficiency. No needs to test here again.
496
+ if ((ch === _chars_js_1.MINUS || ch === _chars_js_1.DOT) &&
497
+ ch === this.peek(1) &&
498
+ ch === this.peek(2)) {
499
+ ch = this.peek(3);
500
+ if (ch === 0 || (0, _chars_js_1.isWhiteSpaceOrEOL)(ch)) {
501
+ return true;
502
+ }
503
+ }
504
+ return false;
505
+ }
506
+ writeFoldedLines(count) {
507
+ if (count === 1) {
508
+ this.result += " ";
509
+ }
510
+ else if (count > 1) {
511
+ this.result += "\n".repeat(count - 1);
512
+ }
513
+ }
514
+ readPlainScalar(nodeIndent, withinFlowCollection) {
515
+ const kind = this.kind;
516
+ const result = this.result;
517
+ let ch = this.peek();
518
+ if ((0, _chars_js_1.isWhiteSpaceOrEOL)(ch) ||
519
+ (0, _chars_js_1.isFlowIndicator)(ch) ||
520
+ ch === _chars_js_1.SHARP ||
521
+ ch === _chars_js_1.AMPERSAND ||
522
+ ch === _chars_js_1.ASTERISK ||
523
+ ch === _chars_js_1.EXCLAMATION ||
524
+ ch === _chars_js_1.VERTICAL_LINE ||
525
+ ch === _chars_js_1.GREATER_THAN ||
526
+ ch === _chars_js_1.SINGLE_QUOTE ||
527
+ ch === _chars_js_1.DOUBLE_QUOTE ||
528
+ ch === _chars_js_1.PERCENT ||
529
+ ch === _chars_js_1.COMMERCIAL_AT ||
530
+ ch === _chars_js_1.GRAVE_ACCENT) {
531
+ return false;
532
+ }
533
+ let following;
534
+ if (ch === _chars_js_1.QUESTION || ch === _chars_js_1.MINUS) {
535
+ following = this.peek(1);
536
+ if ((0, _chars_js_1.isWhiteSpaceOrEOL)(following) ||
537
+ (withinFlowCollection && (0, _chars_js_1.isFlowIndicator)(following))) {
538
+ return false;
539
+ }
540
+ }
541
+ this.kind = "scalar";
542
+ this.result = "";
543
+ let captureEnd = this.position;
544
+ let captureStart = this.position;
545
+ let hasPendingContent = false;
546
+ let line = 0;
547
+ while (ch !== 0) {
548
+ if (ch === _chars_js_1.COLON) {
549
+ following = this.peek(1);
550
+ if ((0, _chars_js_1.isWhiteSpaceOrEOL)(following) ||
551
+ (withinFlowCollection && (0, _chars_js_1.isFlowIndicator)(following))) {
552
+ break;
553
+ }
554
+ }
555
+ else if (ch === _chars_js_1.SHARP) {
556
+ const preceding = this.peek(-1);
557
+ if ((0, _chars_js_1.isWhiteSpaceOrEOL)(preceding)) {
558
+ break;
559
+ }
560
+ }
561
+ else if ((this.position === this.lineStart && this.testDocumentSeparator()) ||
562
+ (withinFlowCollection && (0, _chars_js_1.isFlowIndicator)(ch))) {
563
+ break;
564
+ }
565
+ else if ((0, _chars_js_1.isEOL)(ch)) {
566
+ line = this.line;
567
+ const lineStart = this.lineStart;
568
+ const lineIndent = this.lineIndent;
569
+ this.skipSeparationSpace(false, -1);
570
+ if (this.lineIndent >= nodeIndent) {
571
+ hasPendingContent = true;
572
+ ch = this.peek();
573
+ continue;
574
+ }
575
+ else {
576
+ this.position = captureEnd;
577
+ this.line = line;
578
+ this.lineStart = lineStart;
579
+ this.lineIndent = lineIndent;
580
+ break;
581
+ }
582
+ }
583
+ if (hasPendingContent) {
584
+ this.captureSegment(captureStart, captureEnd, false);
585
+ this.writeFoldedLines(this.line - line);
586
+ captureStart = captureEnd = this.position;
587
+ hasPendingContent = false;
588
+ }
589
+ if (!(0, _chars_js_1.isWhiteSpace)(ch)) {
590
+ captureEnd = this.position + 1;
591
+ }
592
+ ch = this.next();
593
+ }
594
+ this.captureSegment(captureStart, captureEnd, false);
595
+ if (this.result) {
596
+ return true;
597
+ }
598
+ this.kind = kind;
599
+ this.result = result;
600
+ return false;
601
+ }
602
+ readSingleQuotedScalar(nodeIndent) {
603
+ let ch;
604
+ let captureStart;
605
+ let captureEnd;
606
+ ch = this.peek();
607
+ if (ch !== _chars_js_1.SINGLE_QUOTE) {
608
+ return false;
609
+ }
610
+ this.kind = "scalar";
611
+ this.result = "";
612
+ this.position++;
613
+ captureStart = captureEnd = this.position;
614
+ while ((ch = this.peek()) !== 0) {
615
+ if (ch === _chars_js_1.SINGLE_QUOTE) {
616
+ this.captureSegment(captureStart, this.position, true);
617
+ ch = this.next();
618
+ if (ch === _chars_js_1.SINGLE_QUOTE) {
619
+ captureStart = this.position;
620
+ this.position++;
621
+ captureEnd = this.position;
622
+ }
623
+ else {
624
+ return true;
625
+ }
626
+ }
627
+ else if ((0, _chars_js_1.isEOL)(ch)) {
628
+ this.captureSegment(captureStart, captureEnd, true);
629
+ this.writeFoldedLines(this.skipSeparationSpace(false, nodeIndent));
630
+ captureStart = captureEnd = this.position;
631
+ }
632
+ else if (this.position === this.lineStart &&
633
+ this.testDocumentSeparator()) {
634
+ return this.throwError("Unexpected end of the document within a single quoted scalar");
635
+ }
636
+ else {
637
+ this.position++;
638
+ captureEnd = this.position;
639
+ }
640
+ }
641
+ return this.throwError("Unexpected end of the stream within a single quoted scalar");
642
+ }
643
+ readDoubleQuotedScalar(nodeIndent) {
644
+ let ch = this.peek();
645
+ if (ch !== _chars_js_1.DOUBLE_QUOTE) {
646
+ return false;
647
+ }
648
+ this.kind = "scalar";
649
+ this.result = "";
650
+ this.position++;
651
+ let captureEnd = this.position;
652
+ let captureStart = this.position;
653
+ let tmp;
654
+ while ((ch = this.peek()) !== 0) {
655
+ if (ch === _chars_js_1.DOUBLE_QUOTE) {
656
+ this.captureSegment(captureStart, this.position, true);
657
+ this.position++;
658
+ return true;
659
+ }
660
+ if (ch === _chars_js_1.BACKSLASH) {
661
+ this.captureSegment(captureStart, this.position, true);
662
+ ch = this.next();
663
+ if ((0, _chars_js_1.isEOL)(ch)) {
664
+ this.skipSeparationSpace(false, nodeIndent);
665
+ }
666
+ else if (ch < 256 && SIMPLE_ESCAPE_SEQUENCES.has(ch)) {
667
+ this.result += SIMPLE_ESCAPE_SEQUENCES.get(ch);
668
+ this.position++;
669
+ }
670
+ else if ((tmp = ESCAPED_HEX_LENGTHS.get(ch) ?? 0) > 0) {
671
+ let hexLength = tmp;
672
+ let hexResult = 0;
673
+ for (; hexLength > 0; hexLength--) {
674
+ ch = this.next();
675
+ if ((tmp = hexCharCodeToNumber(ch)) >= 0) {
676
+ hexResult = (hexResult << 4) + tmp;
677
+ }
678
+ else {
679
+ return this.throwError("Cannot read double quoted scalar: expected hexadecimal character");
680
+ }
681
+ }
682
+ this.result += codepointToChar(hexResult);
683
+ this.position++;
684
+ }
685
+ else {
686
+ return this.throwError("Cannot read double quoted scalar: unknown escape sequence");
687
+ }
688
+ captureStart = captureEnd = this.position;
689
+ }
690
+ else if ((0, _chars_js_1.isEOL)(ch)) {
691
+ this.captureSegment(captureStart, captureEnd, true);
692
+ this.writeFoldedLines(this.skipSeparationSpace(false, nodeIndent));
693
+ captureStart = captureEnd = this.position;
694
+ }
695
+ else if (this.position === this.lineStart &&
696
+ this.testDocumentSeparator()) {
697
+ return this.throwError("Unexpected end of the document within a double quoted scalar");
698
+ }
699
+ else {
700
+ this.position++;
701
+ captureEnd = this.position;
702
+ }
703
+ }
704
+ return this.throwError("Unexpected end of the stream within a double quoted scalar");
705
+ }
706
+ readFlowCollection(nodeIndent) {
707
+ let ch = this.peek();
708
+ let terminator;
709
+ let isMapping = true;
710
+ let result = {};
711
+ if (ch === _chars_js_1.LEFT_SQUARE_BRACKET) {
712
+ terminator = _chars_js_1.RIGHT_SQUARE_BRACKET;
713
+ isMapping = false;
714
+ result = [];
715
+ }
716
+ else if (ch === _chars_js_1.LEFT_CURLY_BRACKET) {
717
+ terminator = _chars_js_1.RIGHT_CURLY_BRACKET;
718
+ }
719
+ else {
720
+ return false;
721
+ }
722
+ if (this.anchor !== null && typeof this.anchor !== "undefined") {
723
+ this.anchorMap.set(this.anchor, result);
724
+ }
725
+ ch = this.next();
726
+ const tag = this.tag;
727
+ const anchor = this.anchor;
728
+ let readNext = true;
729
+ let valueNode = null;
730
+ let keyNode = null;
731
+ let keyTag = null;
732
+ let isExplicitPair = false;
733
+ let isPair = false;
734
+ let following = 0;
735
+ let line = 0;
736
+ const overridableKeys = new Set();
737
+ while (ch !== 0) {
738
+ this.skipSeparationSpace(true, nodeIndent);
739
+ ch = this.peek();
740
+ if (ch === terminator) {
741
+ this.position++;
742
+ this.tag = tag;
743
+ this.anchor = anchor;
744
+ this.kind = isMapping ? "mapping" : "sequence";
745
+ this.result = result;
746
+ return true;
747
+ }
748
+ if (!readNext) {
749
+ return this.throwError("Cannot read flow collection: missing comma between flow collection entries");
750
+ }
751
+ keyTag = keyNode = valueNode = null;
752
+ isPair = isExplicitPair = false;
753
+ if (ch === _chars_js_1.QUESTION) {
754
+ following = this.peek(1);
755
+ if ((0, _chars_js_1.isWhiteSpaceOrEOL)(following)) {
756
+ isPair = isExplicitPair = true;
757
+ this.position++;
758
+ this.skipSeparationSpace(true, nodeIndent);
759
+ }
760
+ }
761
+ line = this.line;
762
+ this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
763
+ keyTag = this.tag || null;
764
+ keyNode = this.result;
765
+ this.skipSeparationSpace(true, nodeIndent);
766
+ ch = this.peek();
767
+ if ((isExplicitPair || this.line === line) && ch === _chars_js_1.COLON) {
768
+ isPair = true;
769
+ ch = this.next();
770
+ this.skipSeparationSpace(true, nodeIndent);
771
+ this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
772
+ valueNode = this.result;
773
+ }
774
+ if (isMapping) {
775
+ this.storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode);
776
+ }
777
+ else if (isPair) {
778
+ result.push(this.storeMappingPair({}, overridableKeys, keyTag, keyNode, valueNode));
779
+ }
780
+ else {
781
+ result.push(keyNode);
782
+ }
783
+ this.skipSeparationSpace(true, nodeIndent);
784
+ ch = this.peek();
785
+ if (ch === _chars_js_1.COMMA) {
786
+ readNext = true;
787
+ ch = this.next();
788
+ }
789
+ else {
790
+ readNext = false;
791
+ }
792
+ }
793
+ return this.throwError("Cannot read flow collection: unexpected end of the stream within a flow collection");
794
+ }
795
+ // Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
796
+ // https://yaml.org/spec/1.2.2/#81-block-scalar-styles
797
+ readBlockScalar(nodeIndent) {
798
+ let chomping = CHOMPING_CLIP;
799
+ let didReadContent = false;
800
+ let detectedIndent = false;
801
+ let textIndent = nodeIndent;
802
+ let emptyLines = 0;
803
+ let atMoreIndented = false;
804
+ let ch = this.peek();
805
+ let folding = false;
806
+ if (ch === _chars_js_1.VERTICAL_LINE) {
807
+ folding = false;
808
+ }
809
+ else if (ch === _chars_js_1.GREATER_THAN) {
810
+ folding = true;
811
+ }
812
+ else {
813
+ return false;
814
+ }
815
+ this.kind = "scalar";
816
+ this.result = "";
817
+ let tmp = 0;
818
+ while (ch !== 0) {
819
+ ch = this.next();
820
+ if (ch === _chars_js_1.PLUS || ch === _chars_js_1.MINUS) {
821
+ if (CHOMPING_CLIP === chomping) {
822
+ chomping = ch === _chars_js_1.PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
823
+ }
824
+ else {
825
+ return this.throwError("Cannot read block: chomping mode identifier repeated");
826
+ }
827
+ }
828
+ else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
829
+ if (tmp === 0) {
830
+ return this.throwError("Cannot read block: indentation width must be greater than 0");
831
+ }
832
+ else if (!detectedIndent) {
833
+ textIndent = nodeIndent + tmp - 1;
834
+ detectedIndent = true;
835
+ }
836
+ else {
837
+ return this.throwError("Cannot read block: indentation width identifier repeated");
838
+ }
839
+ }
840
+ else {
841
+ break;
842
+ }
843
+ }
844
+ if ((0, _chars_js_1.isWhiteSpace)(ch)) {
845
+ do {
846
+ ch = this.next();
847
+ } while ((0, _chars_js_1.isWhiteSpace)(ch));
848
+ if (ch === _chars_js_1.SHARP) {
849
+ do {
850
+ ch = this.next();
851
+ } while (!(0, _chars_js_1.isEOL)(ch) && ch !== 0);
852
+ }
853
+ }
854
+ while (ch !== 0) {
855
+ this.readLineBreak();
856
+ this.lineIndent = 0;
857
+ ch = this.peek();
858
+ while ((!detectedIndent || this.lineIndent < textIndent) &&
859
+ ch === _chars_js_1.SPACE) {
860
+ this.lineIndent++;
861
+ ch = this.next();
862
+ }
863
+ if (!detectedIndent && this.lineIndent > textIndent) {
864
+ textIndent = this.lineIndent;
865
+ }
866
+ if ((0, _chars_js_1.isEOL)(ch)) {
867
+ emptyLines++;
868
+ continue;
869
+ }
870
+ // End of the scalar.
871
+ if (this.lineIndent < textIndent) {
872
+ // Perform the chomping.
873
+ if (chomping === CHOMPING_KEEP) {
874
+ this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
875
+ }
876
+ else if (chomping === CHOMPING_CLIP) {
877
+ if (didReadContent) {
878
+ // i.e. only if the scalar is not empty.
879
+ this.result += "\n";
880
+ }
881
+ }
882
+ // Break this `while` cycle and go to the function's epilogue.
883
+ break;
884
+ }
885
+ // Folded style: use fancy rules to handle line breaks.
886
+ if (folding) {
887
+ // Lines starting with white space characters (more-indented lines) are not folded.
888
+ if ((0, _chars_js_1.isWhiteSpace)(ch)) {
889
+ atMoreIndented = true;
890
+ // except for the first content line (cf. Example 8.1)
891
+ this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
892
+ // End of more-indented block.
893
+ }
894
+ else if (atMoreIndented) {
895
+ atMoreIndented = false;
896
+ this.result += "\n".repeat(emptyLines + 1);
897
+ // Just one line break - perceive as the same line.
898
+ }
899
+ else if (emptyLines === 0) {
900
+ if (didReadContent) {
901
+ // i.e. only if we have already read some scalar content.
902
+ this.result += " ";
903
+ }
904
+ // Several line breaks - perceive as different lines.
905
+ }
906
+ else {
907
+ this.result += "\n".repeat(emptyLines);
908
+ }
909
+ // Literal style: just add exact number of line breaks between content lines.
910
+ }
911
+ else {
912
+ // Keep all line breaks except the header line break.
913
+ this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
914
+ }
915
+ didReadContent = true;
916
+ detectedIndent = true;
917
+ emptyLines = 0;
918
+ const captureStart = this.position;
919
+ while (!(0, _chars_js_1.isEOL)(ch) && ch !== 0) {
920
+ ch = this.next();
921
+ }
922
+ this.captureSegment(captureStart, this.position, false);
923
+ }
924
+ return true;
925
+ }
926
+ readBlockMapping(nodeIndent, flowIndent) {
927
+ const tag = this.tag;
928
+ const anchor = this.anchor;
929
+ const result = {};
930
+ const overridableKeys = new Set();
931
+ let following;
932
+ let allowCompact = false;
933
+ let line;
934
+ let pos;
935
+ let keyTag = null;
936
+ let keyNode = null;
937
+ let valueNode = null;
938
+ let atExplicitKey = false;
939
+ let detected = false;
940
+ let ch;
941
+ if (this.anchor !== null && typeof this.anchor !== "undefined") {
942
+ this.anchorMap.set(this.anchor, result);
943
+ }
944
+ ch = this.peek();
945
+ while (ch !== 0) {
946
+ following = this.peek(1);
947
+ line = this.line; // Save the current line.
948
+ pos = this.position;
949
+ //
950
+ // Explicit notation case. There are two separate blocks:
951
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
952
+ //
953
+ if ((ch === _chars_js_1.QUESTION || ch === _chars_js_1.COLON) && (0, _chars_js_1.isWhiteSpaceOrEOL)(following)) {
954
+ if (ch === _chars_js_1.QUESTION) {
955
+ if (atExplicitKey) {
956
+ this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
957
+ keyTag = keyNode = valueNode = null;
958
+ }
959
+ detected = true;
960
+ atExplicitKey = true;
961
+ allowCompact = true;
962
+ }
963
+ else if (atExplicitKey) {
964
+ // i.e. 0x3A/* : */ === character after the explicit key.
965
+ atExplicitKey = false;
966
+ allowCompact = true;
967
+ }
968
+ else {
969
+ return this.throwError("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
970
+ }
971
+ this.position += 1;
972
+ ch = following;
973
+ //
974
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
975
+ //
976
+ }
977
+ else if (this.composeNode(flowIndent, CONTEXT_FLOW_OUT, false, true)) {
978
+ if (this.line === line) {
979
+ ch = this.peek();
980
+ while ((0, _chars_js_1.isWhiteSpace)(ch)) {
981
+ ch = this.next();
982
+ }
983
+ if (ch === _chars_js_1.COLON) {
984
+ ch = this.next();
985
+ if (!(0, _chars_js_1.isWhiteSpaceOrEOL)(ch)) {
986
+ return this.throwError("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
987
+ }
988
+ if (atExplicitKey) {
989
+ this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
990
+ keyTag = keyNode = valueNode = null;
991
+ }
992
+ detected = true;
993
+ atExplicitKey = false;
994
+ allowCompact = false;
995
+ keyTag = this.tag;
996
+ keyNode = this.result;
997
+ }
998
+ else if (detected) {
999
+ return this.throwError("Cannot read an implicit mapping pair: missing colon");
1000
+ }
1001
+ else {
1002
+ this.tag = tag;
1003
+ this.anchor = anchor;
1004
+ return true; // Keep the result of `composeNode`.
1005
+ }
1006
+ }
1007
+ else if (detected) {
1008
+ return this.throwError("Cannot read a block mapping entry: a multiline key may not be an implicit key");
1009
+ }
1010
+ else {
1011
+ this.tag = tag;
1012
+ this.anchor = anchor;
1013
+ return true; // Keep the result of `composeNode`.
1014
+ }
1015
+ }
1016
+ else {
1017
+ break; // Reading is done. Go to the epilogue.
1018
+ }
1019
+ //
1020
+ // Common reading code for both explicit and implicit notations.
1021
+ //
1022
+ if (this.line === line || this.lineIndent > nodeIndent) {
1023
+ if (this.composeNode(nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
1024
+ if (atExplicitKey) {
1025
+ keyNode = this.result;
1026
+ }
1027
+ else {
1028
+ valueNode = this.result;
1029
+ }
1030
+ }
1031
+ if (!atExplicitKey) {
1032
+ this.storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode, line, pos);
1033
+ keyTag = keyNode = valueNode = null;
1034
+ }
1035
+ this.skipSeparationSpace(true, -1);
1036
+ ch = this.peek();
1037
+ }
1038
+ if (this.lineIndent > nodeIndent && ch !== 0) {
1039
+ return this.throwError("Cannot read block: bad indentation of a mapping entry");
1040
+ }
1041
+ else if (this.lineIndent < nodeIndent) {
1042
+ break;
1043
+ }
1044
+ }
1045
+ //
1046
+ // Epilogue.
1047
+ //
1048
+ // Special case: last mapping's node contains only the key in explicit notation.
1049
+ if (atExplicitKey) {
1050
+ this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
1051
+ }
1052
+ // Expose the resulting mapping.
1053
+ if (detected) {
1054
+ this.tag = tag;
1055
+ this.anchor = anchor;
1056
+ this.kind = "mapping";
1057
+ this.result = result;
1058
+ }
1059
+ return detected;
1060
+ }
1061
+ readTagProperty() {
1062
+ let position;
1063
+ let isVerbatim = false;
1064
+ let isNamed = false;
1065
+ let tagHandle = "";
1066
+ let tagName;
1067
+ let ch;
1068
+ ch = this.peek();
1069
+ if (ch !== _chars_js_1.EXCLAMATION)
1070
+ return false;
1071
+ if (this.tag !== null) {
1072
+ return this.throwError("Cannot read tag property: duplication of a tag property");
1073
+ }
1074
+ ch = this.next();
1075
+ if (ch === _chars_js_1.SMALLER_THAN) {
1076
+ isVerbatim = true;
1077
+ ch = this.next();
1078
+ }
1079
+ else if (ch === _chars_js_1.EXCLAMATION) {
1080
+ isNamed = true;
1081
+ tagHandle = "!!";
1082
+ ch = this.next();
1083
+ }
1084
+ else {
1085
+ tagHandle = "!";
1086
+ }
1087
+ position = this.position;
1088
+ if (isVerbatim) {
1089
+ do {
1090
+ ch = this.next();
1091
+ } while (ch !== 0 && ch !== _chars_js_1.GREATER_THAN);
1092
+ if (this.position < this.length) {
1093
+ tagName = this.input.slice(position, this.position);
1094
+ ch = this.next();
1095
+ }
1096
+ else {
1097
+ return this.throwError("Cannot read tag property: unexpected end of stream");
1098
+ }
1099
+ }
1100
+ else {
1101
+ while (ch !== 0 && !(0, _chars_js_1.isWhiteSpaceOrEOL)(ch)) {
1102
+ if (ch === _chars_js_1.EXCLAMATION) {
1103
+ if (!isNamed) {
1104
+ tagHandle = this.input.slice(position - 1, this.position + 1);
1105
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
1106
+ return this.throwError("Cannot read tag property: named tag handle contains invalid characters");
1107
+ }
1108
+ isNamed = true;
1109
+ position = this.position + 1;
1110
+ }
1111
+ else {
1112
+ return this.throwError("Cannot read tag property: tag suffix cannot contain an exclamation mark");
1113
+ }
1114
+ }
1115
+ ch = this.next();
1116
+ }
1117
+ tagName = this.input.slice(position, this.position);
1118
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
1119
+ return this.throwError("Cannot read tag property: tag suffix cannot contain flow indicator characters");
1120
+ }
1121
+ }
1122
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
1123
+ return this.throwError(`Cannot read tag property: invalid characters in tag name "${tagName}"`);
1124
+ }
1125
+ if (isVerbatim) {
1126
+ this.tag = tagName;
1127
+ }
1128
+ else if (this.tagMap.has(tagHandle)) {
1129
+ this.tag = this.tagMap.get(tagHandle) + tagName;
1130
+ }
1131
+ else if (tagHandle === "!") {
1132
+ this.tag = `!${tagName}`;
1133
+ }
1134
+ else if (tagHandle === "!!") {
1135
+ this.tag = `tag:yaml.org,2002:${tagName}`;
1136
+ }
1137
+ else {
1138
+ return this.throwError(`Cannot read tag property: undeclared tag handle "${tagHandle}"`);
1139
+ }
1140
+ return true;
1141
+ }
1142
+ readAnchorProperty() {
1143
+ let ch = this.peek();
1144
+ if (ch !== _chars_js_1.AMPERSAND)
1145
+ return false;
1146
+ if (this.anchor !== null) {
1147
+ return this.throwError("Cannot read anchor property: duplicate anchor property");
1148
+ }
1149
+ ch = this.next();
1150
+ const position = this.position;
1151
+ while (ch !== 0 && !(0, _chars_js_1.isWhiteSpaceOrEOL)(ch) && !(0, _chars_js_1.isFlowIndicator)(ch)) {
1152
+ ch = this.next();
1153
+ }
1154
+ if (this.position === position) {
1155
+ return this.throwError("Cannot read anchor property: name of an anchor node must contain at least one character");
1156
+ }
1157
+ this.anchor = this.input.slice(position, this.position);
1158
+ return true;
1159
+ }
1160
+ readAlias() {
1161
+ if (this.peek() !== _chars_js_1.ASTERISK)
1162
+ return false;
1163
+ let ch = this.next();
1164
+ const position = this.position;
1165
+ while (ch !== 0 && !(0, _chars_js_1.isWhiteSpaceOrEOL)(ch) && !(0, _chars_js_1.isFlowIndicator)(ch)) {
1166
+ ch = this.next();
1167
+ }
1168
+ if (this.position === position) {
1169
+ return this.throwError("Cannot read alias: alias name must contain at least one character");
1170
+ }
1171
+ const alias = this.input.slice(position, this.position);
1172
+ if (!this.anchorMap.has(alias)) {
1173
+ return this.throwError(`Cannot read alias: unidentified alias "${alias}"`);
1174
+ }
1175
+ this.result = this.anchorMap.get(alias);
1176
+ this.skipSeparationSpace(true, -1);
1177
+ return true;
1178
+ }
1179
+ composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
1180
+ let allowBlockScalars;
1181
+ let allowBlockCollections;
1182
+ let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
1183
+ let atNewLine = false;
1184
+ let hasContent = false;
1185
+ let type;
1186
+ let flowIndent;
1187
+ let blockIndent;
1188
+ this.tag = null;
1189
+ this.anchor = null;
1190
+ this.kind = null;
1191
+ this.result = null;
1192
+ const allowBlockStyles = (allowBlockScalars =
1193
+ allowBlockCollections =
1194
+ CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
1195
+ if (allowToSeek) {
1196
+ if (this.skipSeparationSpace(true, -1)) {
1197
+ atNewLine = true;
1198
+ if (this.lineIndent > parentIndent) {
1199
+ indentStatus = 1;
1200
+ }
1201
+ else if (this.lineIndent === parentIndent) {
1202
+ indentStatus = 0;
1203
+ }
1204
+ else if (this.lineIndent < parentIndent) {
1205
+ indentStatus = -1;
1206
+ }
1207
+ }
1208
+ }
1209
+ if (indentStatus === 1) {
1210
+ while (this.readTagProperty() || this.readAnchorProperty()) {
1211
+ if (this.skipSeparationSpace(true, -1)) {
1212
+ atNewLine = true;
1213
+ allowBlockCollections = allowBlockStyles;
1214
+ if (this.lineIndent > parentIndent) {
1215
+ indentStatus = 1;
1216
+ }
1217
+ else if (this.lineIndent === parentIndent) {
1218
+ indentStatus = 0;
1219
+ }
1220
+ else if (this.lineIndent < parentIndent) {
1221
+ indentStatus = -1;
1222
+ }
1223
+ }
1224
+ else {
1225
+ allowBlockCollections = false;
1226
+ }
1227
+ }
1228
+ }
1229
+ if (allowBlockCollections) {
1230
+ allowBlockCollections = atNewLine || allowCompact;
1231
+ }
1232
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1233
+ const cond = CONTEXT_FLOW_IN === nodeContext ||
1234
+ CONTEXT_FLOW_OUT === nodeContext;
1235
+ flowIndent = cond ? parentIndent : parentIndent + 1;
1236
+ blockIndent = this.position - this.lineStart;
1237
+ if (indentStatus === 1) {
1238
+ if ((allowBlockCollections &&
1239
+ (this.readBlockSequence(blockIndent) ||
1240
+ this.readBlockMapping(blockIndent, flowIndent))) ||
1241
+ this.readFlowCollection(flowIndent)) {
1242
+ hasContent = true;
1243
+ }
1244
+ else {
1245
+ if ((allowBlockScalars && this.readBlockScalar(flowIndent)) ||
1246
+ this.readSingleQuotedScalar(flowIndent) ||
1247
+ this.readDoubleQuotedScalar(flowIndent)) {
1248
+ hasContent = true;
1249
+ }
1250
+ else if (this.readAlias()) {
1251
+ hasContent = true;
1252
+ if (this.tag !== null || this.anchor !== null) {
1253
+ return this.throwError("Cannot compose node: alias node should not have any properties");
1254
+ }
1255
+ }
1256
+ else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1257
+ hasContent = true;
1258
+ if (this.tag === null) {
1259
+ this.tag = "?";
1260
+ }
1261
+ }
1262
+ if (this.anchor !== null) {
1263
+ this.anchorMap.set(this.anchor, this.result);
1264
+ }
1265
+ }
1266
+ }
1267
+ else if (indentStatus === 0) {
1268
+ // Special case: block sequences are allowed to have same indentation level as the parent.
1269
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
1270
+ hasContent = allowBlockCollections &&
1271
+ this.readBlockSequence(blockIndent);
1272
+ }
1273
+ }
1274
+ if (this.tag !== null && this.tag !== "!") {
1275
+ if (this.tag === "?") {
1276
+ for (let typeIndex = 0; typeIndex < this.implicitTypes.length; typeIndex++) {
1277
+ type = this.implicitTypes[typeIndex];
1278
+ // Implicit resolving is not allowed for non-scalar types, and '?'
1279
+ // non-specific tag is only assigned to plain scalars. So, it isn't
1280
+ // needed to check for 'kind' conformity.
1281
+ if (type.resolve(this.result)) {
1282
+ // `state.result` updated in resolver if matched
1283
+ this.result = type.construct(this.result);
1284
+ this.tag = type.tag;
1285
+ if (this.anchor !== null) {
1286
+ this.anchorMap.set(this.anchor, this.result);
1287
+ }
1288
+ break;
1289
+ }
1290
+ }
1291
+ }
1292
+ else if (this.typeMap[this.kind ?? "fallback"].has(this.tag)) {
1293
+ const map = this.typeMap[this.kind ?? "fallback"];
1294
+ type = map.get(this.tag);
1295
+ if (this.result !== null && type.kind !== this.kind) {
1296
+ return this.throwError(`Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
1297
+ }
1298
+ if (!type.resolve(this.result)) {
1299
+ // `state.result` updated in resolver if matched
1300
+ return this.throwError(`Cannot resolve a node with !<${this.tag}> explicit tag`);
1301
+ }
1302
+ else {
1303
+ this.result = type.construct(this.result);
1304
+ if (this.anchor !== null) {
1305
+ this.anchorMap.set(this.anchor, this.result);
1306
+ }
1307
+ }
1308
+ }
1309
+ else {
1310
+ return this.throwError(`Cannot resolve unknown tag !<${this.tag}>`);
1311
+ }
1312
+ }
1313
+ return this.tag !== null || this.anchor !== null || hasContent;
1314
+ }
1315
+ readDocument() {
1316
+ const documentStart = this.position;
1317
+ let position;
1318
+ let directiveName;
1319
+ let directiveArgs;
1320
+ let hasDirectives = false;
1321
+ let ch;
1322
+ this.version = null;
1323
+ this.checkLineBreaks = false;
1324
+ this.tagMap = new Map();
1325
+ this.anchorMap = new Map();
1326
+ while ((ch = this.peek()) !== 0) {
1327
+ this.skipSeparationSpace(true, -1);
1328
+ ch = this.peek();
1329
+ if (this.lineIndent > 0 || ch !== _chars_js_1.PERCENT) {
1330
+ break;
1331
+ }
1332
+ hasDirectives = true;
1333
+ ch = this.next();
1334
+ position = this.position;
1335
+ while (ch !== 0 && !(0, _chars_js_1.isWhiteSpaceOrEOL)(ch)) {
1336
+ ch = this.next();
1337
+ }
1338
+ directiveName = this.input.slice(position, this.position);
1339
+ directiveArgs = [];
1340
+ if (directiveName.length < 1) {
1341
+ return this.throwError("Cannot read document: directive name length must be greater than zero");
1342
+ }
1343
+ while (ch !== 0) {
1344
+ while ((0, _chars_js_1.isWhiteSpace)(ch)) {
1345
+ ch = this.next();
1346
+ }
1347
+ if (ch === _chars_js_1.SHARP) {
1348
+ do {
1349
+ ch = this.next();
1350
+ } while (ch !== 0 && !(0, _chars_js_1.isEOL)(ch));
1351
+ break;
1352
+ }
1353
+ if ((0, _chars_js_1.isEOL)(ch))
1354
+ break;
1355
+ position = this.position;
1356
+ while (ch !== 0 && !(0, _chars_js_1.isWhiteSpaceOrEOL)(ch)) {
1357
+ ch = this.next();
1358
+ }
1359
+ directiveArgs.push(this.input.slice(position, this.position));
1360
+ }
1361
+ if (ch !== 0)
1362
+ this.readLineBreak();
1363
+ switch (directiveName) {
1364
+ case "YAML":
1365
+ this.yamlDirectiveHandler(...directiveArgs);
1366
+ break;
1367
+ case "TAG":
1368
+ this.tagDirectiveHandler(...directiveArgs);
1369
+ break;
1370
+ default:
1371
+ this.dispatchWarning(`unknown document directive "${directiveName}"`);
1372
+ break;
1373
+ }
1374
+ }
1375
+ this.skipSeparationSpace(true, -1);
1376
+ if (this.lineIndent === 0 &&
1377
+ this.peek() === _chars_js_1.MINUS &&
1378
+ this.peek(1) === _chars_js_1.MINUS &&
1379
+ this.peek(2) === _chars_js_1.MINUS) {
1380
+ this.position += 3;
1381
+ this.skipSeparationSpace(true, -1);
1382
+ }
1383
+ else if (hasDirectives) {
1384
+ return this.throwError("Cannot read document: directives end mark is expected");
1385
+ }
1386
+ this.composeNode(this.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1387
+ this.skipSeparationSpace(true, -1);
1388
+ if (this.checkLineBreaks &&
1389
+ PATTERN_NON_ASCII_LINE_BREAKS.test(this.input.slice(documentStart, this.position))) {
1390
+ this.dispatchWarning("non-ASCII line breaks are interpreted as content");
1391
+ }
1392
+ if (this.position === this.lineStart && this.testDocumentSeparator()) {
1393
+ if (this.peek() === _chars_js_1.DOT) {
1394
+ this.position += 3;
1395
+ this.skipSeparationSpace(true, -1);
1396
+ }
1397
+ }
1398
+ else if (this.position < this.length - 1) {
1399
+ return this.throwError("Cannot read document: end of the stream or a document separator is expected");
1400
+ }
1401
+ return this.result;
1402
+ }
1403
+ *readDocuments() {
1404
+ while (this.position < this.length - 1) {
1405
+ yield this.readDocument();
1406
+ }
1407
+ }
1408
+ }
1409
+ exports.LoaderState = LoaderState;
1410
+ _LoaderState_instances = new WeakSet(), _LoaderState_createError = function _LoaderState_createError(message) {
1411
+ const mark = markToString(this.input, this.position, this.line, this.position - this.lineStart);
1412
+ return new SyntaxError(`${message} ${mark}`);
1413
+ };