@powerlines/plugin-content-collections 0.1.340 → 0.1.342

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 (420) hide show
  1. package/README.md +14 -16
  2. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -3
  3. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  4. package/dist/helpers/create-emitter.cjs +2 -1
  5. package/dist/helpers/create-emitter.d.cts.map +1 -1
  6. package/dist/helpers/create-emitter.d.mts.map +1 -1
  7. package/dist/helpers/create-writer.cjs +9 -8
  8. package/dist/helpers/create-writer.d.cts +0 -1
  9. package/dist/helpers/create-writer.d.cts.map +1 -1
  10. package/dist/helpers/create-writer.d.mts +0 -1
  11. package/dist/helpers/create-writer.d.mts.map +1 -1
  12. package/dist/helpers/create-writer.mjs +2 -2
  13. package/dist/helpers/index.cjs +1 -0
  14. package/dist/index.cjs +15 -16
  15. package/dist/index.d.cts +0 -2
  16. package/dist/index.d.cts.map +1 -1
  17. package/dist/index.d.mts +0 -2
  18. package/dist/index.d.mts.map +1 -1
  19. package/dist/index.mjs +4 -5
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/types/plugin.d.cts.map +1 -1
  22. package/dist/types/plugin.d.mts.map +1 -1
  23. package/package.json +30 -26
  24. package/dist/_virtual/rolldown_runtime.mjs +0 -32
  25. package/dist/node_modules/.pnpm/@content-collections_core@0.12.0_patch_hash_bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.cjs +0 -1946
  26. package/dist/node_modules/.pnpm/@content-collections_core@0.12.0_patch_hash_bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.mjs +0 -1939
  27. package/dist/node_modules/.pnpm/@content-collections_core@0.12.0_patch_hash_bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.mjs.map +0 -1
  28. package/dist/node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.cjs +0 -9
  29. package/dist/node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.mjs +0 -10
  30. package/dist/node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/esbuild@0.25.12/node_modules/esbuild/lib/main.cjs +0 -2124
  32. package/dist/node_modules/.pnpm/esbuild@0.25.12/node_modules/esbuild/lib/main.mjs +0 -2120
  33. package/dist/node_modules/.pnpm/esbuild@0.25.12/node_modules/esbuild/lib/main.mjs.map +0 -1
  34. package/dist/node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.cjs +0 -5342
  35. package/dist/node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.mjs +0 -5340
  36. package/dist/node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.cjs +0 -35
  38. package/dist/node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.mjs +0 -31
  39. package/dist/node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.mjs.map +0 -1
  40. package/dist/node_modules/.pnpm/fdir@6.5.0_@types_picomatch@4.0.2_picomatch@4.0.3/node_modules/fdir/dist/index.cjs +0 -516
  41. package/dist/node_modules/.pnpm/fdir@6.5.0_@types_picomatch@4.0.2_picomatch@4.0.3/node_modules/fdir/dist/index.mjs +0 -515
  42. package/dist/node_modules/.pnpm/fdir@6.5.0_@types_picomatch@4.0.2_picomatch@4.0.3/node_modules/fdir/dist/index.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.cjs +0 -185
  44. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.mjs +0 -181
  45. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.mjs.map +0 -1
  46. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.cjs +0 -27
  47. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.mjs +0 -23
  48. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.cjs +0 -33
  50. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.mjs +0 -29
  51. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.mjs.map +0 -1
  52. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.cjs +0 -58
  53. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.mjs +0 -54
  54. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.cjs +0 -28
  56. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.mjs +0 -24
  57. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.mjs.map +0 -1
  58. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.cjs +0 -25
  59. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.mjs +0 -21
  60. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.cjs +0 -53
  62. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.mjs +0 -49
  63. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.mjs.map +0 -1
  64. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.cjs +0 -41
  65. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.mjs +0 -37
  66. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.cjs +0 -66
  68. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.mjs +0 -62
  69. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.mjs.map +0 -1
  70. package/dist/node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.cjs +0 -24
  71. package/dist/node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.mjs +0 -20
  72. package/dist/node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.cjs +0 -18
  74. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.mjs +0 -14
  75. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.mjs.map +0 -1
  76. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.cjs +0 -51
  77. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.mjs +0 -47
  78. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.cjs +0 -452
  80. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.mjs +0 -448
  81. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.mjs.map +0 -1
  82. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.cjs +0 -33
  83. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.mjs +0 -29
  84. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.cjs +0 -820
  86. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.mjs +0 -816
  87. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.mjs.map +0 -1
  88. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.cjs +0 -63
  89. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.mjs +0 -59
  90. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.cjs +0 -19
  92. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.mjs +0 -15
  93. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.mjs.map +0 -1
  94. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.cjs +0 -29
  95. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.mjs +0 -25
  96. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.cjs +0 -34
  98. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.mjs +0 -30
  99. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.mjs.map +0 -1
  100. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.cjs +0 -25
  101. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.mjs +0 -21
  102. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.cjs +0 -31
  104. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.mjs +0 -27
  105. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.mjs.map +0 -1
  106. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.cjs +0 -88
  107. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.mjs +0 -84
  108. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.cjs +0 -95
  110. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.mjs +0 -91
  111. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.mjs.map +0 -1
  112. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.cjs +0 -46
  113. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.mjs +0 -42
  114. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.cjs +0 -77
  116. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.mjs +0 -73
  117. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.mjs.map +0 -1
  118. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.cjs +0 -136
  119. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.mjs +0 -132
  120. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.cjs +0 -57
  122. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.mjs +0 -53
  123. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.mjs.map +0 -1
  124. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.cjs +0 -53
  125. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.mjs +0 -49
  126. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.cjs +0 -34
  128. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.mjs +0 -30
  129. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.mjs.map +0 -1
  130. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.cjs +0 -23
  131. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.mjs +0 -19
  132. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.cjs +0 -24
  134. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.mjs +0 -20
  135. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.mjs.map +0 -1
  136. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.cjs +0 -49
  137. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.mjs +0 -45
  138. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.cjs +0 -42
  140. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.mjs +0 -38
  141. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.mjs.map +0 -1
  142. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.cjs +0 -47
  143. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.mjs +0 -43
  144. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.cjs +0 -23
  146. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.mjs +0 -19
  147. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.mjs.map +0 -1
  148. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.cjs +0 -34
  149. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.mjs +0 -30
  150. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.cjs +0 -23
  152. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.mjs +0 -19
  153. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.mjs.map +0 -1
  154. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.cjs +0 -62
  155. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.mjs +0 -58
  156. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.cjs +0 -62
  158. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.mjs +0 -58
  159. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.mjs.map +0 -1
  160. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.cjs +0 -53
  161. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.mjs +0 -49
  162. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.cjs +0 -97
  164. package/dist/node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.mjs +0 -95
  165. package/dist/node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.mjs.map +0 -1
  166. package/dist/node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.cjs +0 -62
  167. package/dist/node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.mjs +0 -63
  168. package/dist/node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.cjs +0 -28
  170. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +0 -24
  171. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs.map +0 -1
  172. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.cjs +0 -175
  173. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +0 -171
  174. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.cjs +0 -871
  176. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +0 -867
  177. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs.map +0 -1
  178. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.cjs +0 -307
  179. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +0 -303
  180. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.cjs +0 -300
  182. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +0 -296
  183. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs.map +0 -1
  184. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.cjs +0 -60
  185. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +0 -56
  186. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.cjs +0 -14
  188. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.mjs +0 -12
  189. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.mjs.map +0 -1
  190. package/dist/node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.cjs +0 -117
  191. package/dist/node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.mjs +0 -113
  192. package/dist/node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.cjs +0 -119
  194. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.mjs +0 -115
  195. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.mjs.map +0 -1
  196. package/dist/node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.cjs +0 -25
  197. package/dist/node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.mjs +0 -21
  198. package/dist/node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.cjs +0 -294
  200. package/dist/node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs +0 -293
  201. package/dist/node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs.map +0 -1
  202. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.cjs +0 -70
  203. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.mjs +0 -66
  204. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.cjs +0 -57
  206. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.mjs +0 -53
  207. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.mjs.map +0 -1
  208. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.cjs +0 -102
  209. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.mjs +0 -98
  210. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.cjs +0 -74
  212. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.mjs +0 -70
  213. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.mjs.map +0 -1
  214. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.cjs +0 -215
  215. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.mjs +0 -211
  216. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.cjs +0 -101
  218. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.mjs +0 -97
  219. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.mjs.map +0 -1
  220. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.cjs +0 -187
  221. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.mjs +0 -183
  222. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.cjs +0 -56
  224. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.mjs +0 -52
  225. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.mjs.map +0 -1
  226. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.cjs +0 -49
  227. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.mjs +0 -45
  228. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.cjs +0 -174
  230. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.mjs +0 -170
  231. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.mjs.map +0 -1
  232. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.cjs +0 -219
  233. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs +0 -215
  234. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.cjs +0 -118
  236. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.mjs +0 -114
  237. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.mjs.map +0 -1
  238. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.cjs +0 -40
  239. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.mjs +0 -36
  240. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.cjs +0 -38
  242. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs +0 -34
  243. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs.map +0 -1
  244. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.cjs +0 -24
  245. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.mjs +0 -20
  246. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.cjs +0 -24
  248. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.mjs +0 -20
  249. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.mjs.map +0 -1
  250. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.cjs +0 -303
  251. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.mjs +0 -299
  252. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.cjs +0 -75
  254. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.mjs +0 -71
  255. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.mjs.map +0 -1
  256. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.cjs +0 -51
  257. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.mjs +0 -47
  258. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.cjs +0 -77
  260. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.mjs +0 -73
  261. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.mjs.map +0 -1
  262. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.cjs +0 -178
  263. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.mjs +0 -174
  264. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.cjs +0 -64
  266. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.mjs +0 -60
  267. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.mjs.map +0 -1
  268. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.cjs +0 -75
  269. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.mjs +0 -71
  270. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.cjs +0 -25
  272. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.mjs +0 -21
  273. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.mjs.map +0 -1
  274. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.cjs +0 -109
  275. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.mjs +0 -105
  276. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.cjs +0 -135
  278. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.mjs +0 -131
  279. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.mjs.map +0 -1
  280. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.cjs +0 -48
  281. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.mjs +0 -44
  282. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.cjs +0 -48
  284. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.mjs +0 -44
  285. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.mjs.map +0 -1
  286. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.cjs +0 -41
  287. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.mjs +0 -37
  288. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.cjs +0 -126
  290. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.mjs +0 -122
  291. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.mjs.map +0 -1
  292. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.cjs +0 -123
  293. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.mjs +0 -119
  294. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.cjs +0 -67
  296. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.mjs +0 -63
  297. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.mjs.map +0 -1
  298. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.cjs +0 -61
  299. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.mjs +0 -57
  300. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.cjs +0 -49
  302. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.mjs +0 -45
  303. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.mjs.map +0 -1
  304. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.cjs +0 -282
  305. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.mjs +0 -278
  306. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.cjs +0 -62
  308. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.mjs +0 -58
  309. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.mjs.map +0 -1
  310. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.cjs +0 -102
  311. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.mjs +0 -98
  312. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.cjs +0 -93
  314. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.mjs +0 -89
  315. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.mjs.map +0 -1
  316. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.cjs +0 -531
  317. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.mjs +0 -527
  318. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.cjs +0 -58
  320. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.mjs +0 -54
  321. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.mjs.map +0 -1
  322. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.cjs +0 -871
  323. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.mjs +0 -867
  324. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.cjs +0 -105
  326. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.mjs +0 -101
  327. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.mjs.map +0 -1
  328. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.cjs +0 -45
  329. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.mjs +0 -41
  330. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.mjs.map +0 -1
  331. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.cjs +0 -31
  332. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.mjs +0 -27
  333. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.mjs.map +0 -1
  334. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.cjs +0 -27
  335. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.mjs +0 -23
  336. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.mjs.map +0 -1
  337. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.cjs +0 -31
  338. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.mjs +0 -27
  339. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.mjs.map +0 -1
  340. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.cjs +0 -28
  341. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.mjs +0 -24
  342. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.mjs.map +0 -1
  343. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.cjs +0 -31
  344. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.mjs +0 -27
  345. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.mjs.map +0 -1
  346. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.cjs +0 -55
  347. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.mjs +0 -51
  348. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.mjs.map +0 -1
  349. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.cjs +0 -53
  350. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.mjs +0 -49
  351. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.mjs.map +0 -1
  352. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.cjs +0 -43
  353. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.mjs +0 -39
  354. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.mjs.map +0 -1
  355. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.cjs +0 -77
  356. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.mjs +0 -73
  357. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.mjs.map +0 -1
  358. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.cjs +0 -111
  359. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.mjs +0 -107
  360. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.mjs.map +0 -1
  361. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.cjs +0 -62
  362. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs +0 -58
  363. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs.map +0 -1
  364. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.cjs +0 -39
  365. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs +0 -35
  366. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs.map +0 -1
  367. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.cjs +0 -58
  368. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.mjs +0 -54
  369. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.mjs.map +0 -1
  370. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.cjs +0 -87
  371. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.mjs +0 -83
  372. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.mjs.map +0 -1
  373. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.cjs +0 -53
  374. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs +0 -49
  375. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs.map +0 -1
  376. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.cjs +0 -79
  377. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs +0 -75
  378. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs.map +0 -1
  379. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.cjs +0 -75
  380. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs +0 -71
  381. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs.map +0 -1
  382. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.cjs +0 -65
  383. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs +0 -61
  384. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs.map +0 -1
  385. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.cjs +0 -82
  386. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.mjs +0 -78
  387. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.mjs.map +0 -1
  388. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.cjs +0 -95
  389. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs +0 -91
  390. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs.map +0 -1
  391. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.cjs +0 -127
  392. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.mjs +0 -123
  393. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.mjs.map +0 -1
  394. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.cjs +0 -122
  395. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.mjs +0 -118
  396. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.mjs.map +0 -1
  397. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.cjs +0 -128
  398. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.mjs +0 -124
  399. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.mjs.map +0 -1
  400. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.cjs +0 -31
  401. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.mjs +0 -27
  402. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.mjs.map +0 -1
  403. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.cjs +0 -75
  404. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.mjs +0 -71
  405. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.mjs.map +0 -1
  406. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.cjs +0 -32
  407. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.mjs +0 -28
  408. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.mjs.map +0 -1
  409. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.cjs +0 -112
  410. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.mjs +0 -108
  411. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.mjs.map +0 -1
  412. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.cjs +0 -237
  413. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.mjs +0 -233
  414. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.mjs.map +0 -1
  415. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.cjs +0 -202
  416. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.mjs +0 -198
  417. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.mjs.map +0 -1
  418. package/dist/node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.cjs +0 -61
  419. package/dist/node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.mjs +0 -61
  420. package/dist/node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.mjs.map +0 -1
@@ -1,174 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
4
- const require_identity$1 = require('../nodes/identity.cjs');
5
- const require_Pair$1 = require('../nodes/Pair.cjs');
6
- const require_YAMLMap$1 = require('../nodes/YAMLMap.cjs');
7
- const require_YAMLSeq$1 = require('../nodes/YAMLSeq.cjs');
8
- const require_resolve_props$1 = require('./resolve-props.cjs');
9
- const require_util_contains_newline$1 = require('./util-contains-newline.cjs');
10
- const require_util_map_includes$1 = require('./util-map-includes.cjs');
11
- const require_resolve_end$1 = require('./resolve-end.cjs');
12
-
13
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
14
- var require_resolve_flow_collection = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
15
- var identity = require_identity$1.default;
16
- var Pair = require_Pair$1.default;
17
- var YAMLMap = require_YAMLMap$1.default;
18
- var YAMLSeq = require_YAMLSeq$1.default;
19
- var resolveEnd = require_resolve_end$1.default;
20
- var resolveProps = require_resolve_props$1.default;
21
- var utilContainsNewline = require_util_contains_newline$1.default;
22
- var utilMapIncludes = require_util_map_includes$1.default;
23
- const blockMsg = "Block collections are not allowed within flow collections";
24
- const isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
25
- function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
26
- const isMap = fc.start.source === "{";
27
- const fcName = isMap ? "flow map" : "flow sequence";
28
- const coll = new (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
29
- coll.flow = true;
30
- const atRoot = ctx.atRoot;
31
- if (atRoot) ctx.atRoot = false;
32
- if (ctx.atKey) ctx.atKey = false;
33
- let offset = fc.offset + fc.start.source.length;
34
- for (let i = 0; i < fc.items.length; ++i) {
35
- const collItem = fc.items[i];
36
- const { start, key, sep, value } = collItem;
37
- const props = resolveProps.resolveProps(start, {
38
- flow: fcName,
39
- indicator: "explicit-key-ind",
40
- next: key ?? sep?.[0],
41
- offset,
42
- onError,
43
- parentIndent: fc.indent,
44
- startOnNewline: false
45
- });
46
- if (!props.found) {
47
- if (!props.anchor && !props.tag && !sep && !value) {
48
- if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
49
- else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
50
- if (props.comment) if (coll.comment) coll.comment += "\n" + props.comment;
51
- else coll.comment = props.comment;
52
- offset = props.end;
53
- continue;
54
- }
55
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key)) onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
56
- }
57
- if (i === 0) {
58
- if (props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
59
- } else {
60
- if (!props.comma) onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`);
61
- if (props.comment) {
62
- let prevItemComment = "";
63
- loop: for (const st of start) switch (st.type) {
64
- case "comma":
65
- case "space": break;
66
- case "comment":
67
- prevItemComment = st.source.substring(1);
68
- break loop;
69
- default: break loop;
70
- }
71
- if (prevItemComment) {
72
- let prev = coll.items[coll.items.length - 1];
73
- if (identity.isPair(prev)) prev = prev.value ?? prev.key;
74
- if (prev.comment) prev.comment += "\n" + prevItemComment;
75
- else prev.comment = prevItemComment;
76
- props.comment = props.comment.substring(prevItemComment.length + 1);
77
- }
78
- }
79
- }
80
- if (!isMap && !sep && !props.found) {
81
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
82
- coll.items.push(valueNode);
83
- offset = valueNode.range[2];
84
- if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
85
- } else {
86
- ctx.atKey = true;
87
- const keyStart = props.end;
88
- const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
89
- if (isBlock(key)) onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
90
- ctx.atKey = false;
91
- const valueProps = resolveProps.resolveProps(sep ?? [], {
92
- flow: fcName,
93
- indicator: "map-value-ind",
94
- next: value,
95
- offset: keyNode.range[2],
96
- onError,
97
- parentIndent: fc.indent,
98
- startOnNewline: false
99
- });
100
- if (valueProps.found) {
101
- if (!isMap && !props.found && ctx.options.strict) {
102
- if (sep) for (const st of sep) {
103
- if (st === valueProps.found) break;
104
- if (st.type === "newline") {
105
- onError(st, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
106
- break;
107
- }
108
- }
109
- if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
110
- }
111
- } else if (value) if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
112
- else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
113
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
114
- if (valueNode) {
115
- if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
116
- } else if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
117
- else keyNode.comment = valueProps.comment;
118
- const pair = new Pair.Pair(keyNode, valueNode);
119
- if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
120
- if (isMap) {
121
- const map = coll;
122
- if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
123
- map.items.push(pair);
124
- } else {
125
- const map = new YAMLMap.YAMLMap(ctx.schema);
126
- map.flow = true;
127
- map.items.push(pair);
128
- const endRange = (valueNode ?? keyNode).range;
129
- map.range = [
130
- keyNode.range[0],
131
- endRange[1],
132
- endRange[2]
133
- ];
134
- coll.items.push(map);
135
- }
136
- offset = valueNode ? valueNode.range[2] : valueProps.end;
137
- }
138
- }
139
- const expectedEnd = isMap ? "}" : "]";
140
- const [ce, ...ee] = fc.end;
141
- let cePos = offset;
142
- if (ce?.source === expectedEnd) cePos = ce.offset + ce.source.length;
143
- else {
144
- const name = fcName[0].toUpperCase() + fcName.substring(1);
145
- const msg = atRoot ? `${name} must end with a ${expectedEnd}` : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`;
146
- onError(offset, atRoot ? "MISSING_CHAR" : "BAD_INDENT", msg);
147
- if (ce && ce.source.length !== 1) ee.unshift(ce);
148
- }
149
- if (ee.length > 0) {
150
- const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
151
- if (end.comment) if (coll.comment) coll.comment += "\n" + end.comment;
152
- else coll.comment = end.comment;
153
- coll.range = [
154
- fc.offset,
155
- cePos,
156
- end.offset
157
- ];
158
- } else coll.range = [
159
- fc.offset,
160
- cePos,
161
- cePos
162
- ];
163
- return coll;
164
- }
165
- exports.resolveFlowCollection = resolveFlowCollection;
166
- }));
167
-
168
- //#endregion
169
- Object.defineProperty(exports, 'default', {
170
- enumerable: true,
171
- get: function () {
172
- return require_resolve_flow_collection();
173
- }
174
- });
@@ -1,170 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_identity } from "../nodes/identity.mjs";
3
- import { require_Pair } from "../nodes/Pair.mjs";
4
- import { require_YAMLMap } from "../nodes/YAMLMap.mjs";
5
- import { require_YAMLSeq } from "../nodes/YAMLSeq.mjs";
6
- import { require_resolve_props } from "./resolve-props.mjs";
7
- import { require_util_contains_newline } from "./util-contains-newline.mjs";
8
- import { require_util_map_includes } from "./util-map-includes.mjs";
9
- import { require_resolve_end } from "./resolve-end.mjs";
10
-
11
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
12
- var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
13
- var identity = require_identity();
14
- var Pair = require_Pair();
15
- var YAMLMap = require_YAMLMap();
16
- var YAMLSeq = require_YAMLSeq();
17
- var resolveEnd = require_resolve_end();
18
- var resolveProps = require_resolve_props();
19
- var utilContainsNewline = require_util_contains_newline();
20
- var utilMapIncludes = require_util_map_includes();
21
- const blockMsg = "Block collections are not allowed within flow collections";
22
- const isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
23
- function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
24
- const isMap = fc.start.source === "{";
25
- const fcName = isMap ? "flow map" : "flow sequence";
26
- const coll = new (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
27
- coll.flow = true;
28
- const atRoot = ctx.atRoot;
29
- if (atRoot) ctx.atRoot = false;
30
- if (ctx.atKey) ctx.atKey = false;
31
- let offset = fc.offset + fc.start.source.length;
32
- for (let i = 0; i < fc.items.length; ++i) {
33
- const collItem = fc.items[i];
34
- const { start, key, sep, value } = collItem;
35
- const props = resolveProps.resolveProps(start, {
36
- flow: fcName,
37
- indicator: "explicit-key-ind",
38
- next: key ?? sep?.[0],
39
- offset,
40
- onError,
41
- parentIndent: fc.indent,
42
- startOnNewline: false
43
- });
44
- if (!props.found) {
45
- if (!props.anchor && !props.tag && !sep && !value) {
46
- if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
47
- else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
48
- if (props.comment) if (coll.comment) coll.comment += "\n" + props.comment;
49
- else coll.comment = props.comment;
50
- offset = props.end;
51
- continue;
52
- }
53
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key)) onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
54
- }
55
- if (i === 0) {
56
- if (props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
57
- } else {
58
- if (!props.comma) onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`);
59
- if (props.comment) {
60
- let prevItemComment = "";
61
- loop: for (const st of start) switch (st.type) {
62
- case "comma":
63
- case "space": break;
64
- case "comment":
65
- prevItemComment = st.source.substring(1);
66
- break loop;
67
- default: break loop;
68
- }
69
- if (prevItemComment) {
70
- let prev = coll.items[coll.items.length - 1];
71
- if (identity.isPair(prev)) prev = prev.value ?? prev.key;
72
- if (prev.comment) prev.comment += "\n" + prevItemComment;
73
- else prev.comment = prevItemComment;
74
- props.comment = props.comment.substring(prevItemComment.length + 1);
75
- }
76
- }
77
- }
78
- if (!isMap && !sep && !props.found) {
79
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
80
- coll.items.push(valueNode);
81
- offset = valueNode.range[2];
82
- if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
83
- } else {
84
- ctx.atKey = true;
85
- const keyStart = props.end;
86
- const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
87
- if (isBlock(key)) onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
88
- ctx.atKey = false;
89
- const valueProps = resolveProps.resolveProps(sep ?? [], {
90
- flow: fcName,
91
- indicator: "map-value-ind",
92
- next: value,
93
- offset: keyNode.range[2],
94
- onError,
95
- parentIndent: fc.indent,
96
- startOnNewline: false
97
- });
98
- if (valueProps.found) {
99
- if (!isMap && !props.found && ctx.options.strict) {
100
- if (sep) for (const st of sep) {
101
- if (st === valueProps.found) break;
102
- if (st.type === "newline") {
103
- onError(st, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
104
- break;
105
- }
106
- }
107
- if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
108
- }
109
- } else if (value) if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
110
- else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
111
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
112
- if (valueNode) {
113
- if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
114
- } else if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
115
- else keyNode.comment = valueProps.comment;
116
- const pair = new Pair.Pair(keyNode, valueNode);
117
- if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
118
- if (isMap) {
119
- const map = coll;
120
- if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
121
- map.items.push(pair);
122
- } else {
123
- const map = new YAMLMap.YAMLMap(ctx.schema);
124
- map.flow = true;
125
- map.items.push(pair);
126
- const endRange = (valueNode ?? keyNode).range;
127
- map.range = [
128
- keyNode.range[0],
129
- endRange[1],
130
- endRange[2]
131
- ];
132
- coll.items.push(map);
133
- }
134
- offset = valueNode ? valueNode.range[2] : valueProps.end;
135
- }
136
- }
137
- const expectedEnd = isMap ? "}" : "]";
138
- const [ce, ...ee] = fc.end;
139
- let cePos = offset;
140
- if (ce?.source === expectedEnd) cePos = ce.offset + ce.source.length;
141
- else {
142
- const name = fcName[0].toUpperCase() + fcName.substring(1);
143
- const msg = atRoot ? `${name} must end with a ${expectedEnd}` : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`;
144
- onError(offset, atRoot ? "MISSING_CHAR" : "BAD_INDENT", msg);
145
- if (ce && ce.source.length !== 1) ee.unshift(ce);
146
- }
147
- if (ee.length > 0) {
148
- const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
149
- if (end.comment) if (coll.comment) coll.comment += "\n" + end.comment;
150
- else coll.comment = end.comment;
151
- coll.range = [
152
- fc.offset,
153
- cePos,
154
- end.offset
155
- ];
156
- } else coll.range = [
157
- fc.offset,
158
- cePos,
159
- cePos
160
- ];
161
- return coll;
162
- }
163
- exports.resolveFlowCollection = resolveFlowCollection;
164
- }));
165
-
166
- //#endregion
167
- export default require_resolve_flow_collection();
168
-
169
- export { require_resolve_flow_collection };
170
- //# sourceMappingURL=resolve-flow-collection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-flow-collection.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js"],"sourcesContent":["'use strict';\n\nvar identity = require('../nodes/identity.js');\nvar Pair = require('../nodes/Pair.js');\nvar YAMLMap = require('../nodes/YAMLMap.js');\nvar YAMLSeq = require('../nodes/YAMLSeq.js');\nvar resolveEnd = require('./resolve-end.js');\nvar resolveProps = require('./resolve-props.js');\nvar utilContainsNewline = require('./util-contains-newline.js');\nvar utilMapIncludes = require('./util-map-includes.js');\n\nconst blockMsg = 'Block collections are not allowed within flow collections';\nconst isBlock = (token) => token && (token.type === 'block-map' || token.type === 'block-seq');\nfunction resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {\n const isMap = fc.start.source === '{';\n const fcName = isMap ? 'flow map' : 'flow sequence';\n const NodeClass = (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq));\n const coll = new NodeClass(ctx.schema);\n coll.flow = true;\n const atRoot = ctx.atRoot;\n if (atRoot)\n ctx.atRoot = false;\n if (ctx.atKey)\n ctx.atKey = false;\n let offset = fc.offset + fc.start.source.length;\n for (let i = 0; i < fc.items.length; ++i) {\n const collItem = fc.items[i];\n const { start, key, sep, value } = collItem;\n const props = resolveProps.resolveProps(start, {\n flow: fcName,\n indicator: 'explicit-key-ind',\n next: key ?? sep?.[0],\n offset,\n onError,\n parentIndent: fc.indent,\n startOnNewline: false\n });\n if (!props.found) {\n if (!props.anchor && !props.tag && !sep && !value) {\n if (i === 0 && props.comma)\n onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`);\n else if (i < fc.items.length - 1)\n onError(props.start, 'UNEXPECTED_TOKEN', `Unexpected empty item in ${fcName}`);\n if (props.comment) {\n if (coll.comment)\n coll.comment += '\\n' + props.comment;\n else\n coll.comment = props.comment;\n }\n offset = props.end;\n continue;\n }\n if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key))\n onError(key, // checked by containsNewline()\n 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line');\n }\n if (i === 0) {\n if (props.comma)\n onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`);\n }\n else {\n if (!props.comma)\n onError(props.start, 'MISSING_CHAR', `Missing , between ${fcName} items`);\n if (props.comment) {\n let prevItemComment = '';\n loop: for (const st of start) {\n switch (st.type) {\n case 'comma':\n case 'space':\n break;\n case 'comment':\n prevItemComment = st.source.substring(1);\n break loop;\n default:\n break loop;\n }\n }\n if (prevItemComment) {\n let prev = coll.items[coll.items.length - 1];\n if (identity.isPair(prev))\n prev = prev.value ?? prev.key;\n if (prev.comment)\n prev.comment += '\\n' + prevItemComment;\n else\n prev.comment = prevItemComment;\n props.comment = props.comment.substring(prevItemComment.length + 1);\n }\n }\n }\n if (!isMap && !sep && !props.found) {\n // item is a value in a seq\n // → key & sep are empty, start does not include ? or :\n const valueNode = value\n ? composeNode(ctx, value, props, onError)\n : composeEmptyNode(ctx, props.end, sep, null, props, onError);\n coll.items.push(valueNode);\n offset = valueNode.range[2];\n if (isBlock(value))\n onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg);\n }\n else {\n // item is a key+value pair\n // key value\n ctx.atKey = true;\n const keyStart = props.end;\n const keyNode = key\n ? composeNode(ctx, key, props, onError)\n : composeEmptyNode(ctx, keyStart, start, null, props, onError);\n if (isBlock(key))\n onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg);\n ctx.atKey = false;\n // value properties\n const valueProps = resolveProps.resolveProps(sep ?? [], {\n flow: fcName,\n indicator: 'map-value-ind',\n next: value,\n offset: keyNode.range[2],\n onError,\n parentIndent: fc.indent,\n startOnNewline: false\n });\n if (valueProps.found) {\n if (!isMap && !props.found && ctx.options.strict) {\n if (sep)\n for (const st of sep) {\n if (st === valueProps.found)\n break;\n if (st.type === 'newline') {\n onError(st, 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line');\n break;\n }\n }\n if (props.start < valueProps.found.offset - 1024)\n onError(valueProps.found, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit flow sequence key');\n }\n }\n else if (value) {\n if ('source' in value && value.source?.[0] === ':')\n onError(value, 'MISSING_CHAR', `Missing space after : in ${fcName}`);\n else\n onError(valueProps.start, 'MISSING_CHAR', `Missing , or : between ${fcName} items`);\n }\n // value value\n const valueNode = value\n ? composeNode(ctx, value, valueProps, onError)\n : valueProps.found\n ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError)\n : null;\n if (valueNode) {\n if (isBlock(value))\n onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg);\n }\n else if (valueProps.comment) {\n if (keyNode.comment)\n keyNode.comment += '\\n' + valueProps.comment;\n else\n keyNode.comment = valueProps.comment;\n }\n const pair = new Pair.Pair(keyNode, valueNode);\n if (ctx.options.keepSourceTokens)\n pair.srcToken = collItem;\n if (isMap) {\n const map = coll;\n if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))\n onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');\n map.items.push(pair);\n }\n else {\n const map = new YAMLMap.YAMLMap(ctx.schema);\n map.flow = true;\n map.items.push(pair);\n const endRange = (valueNode ?? keyNode).range;\n map.range = [keyNode.range[0], endRange[1], endRange[2]];\n coll.items.push(map);\n }\n offset = valueNode ? valueNode.range[2] : valueProps.end;\n }\n }\n const expectedEnd = isMap ? '}' : ']';\n const [ce, ...ee] = fc.end;\n let cePos = offset;\n if (ce?.source === expectedEnd)\n cePos = ce.offset + ce.source.length;\n else {\n const name = fcName[0].toUpperCase() + fcName.substring(1);\n const msg = atRoot\n ? `${name} must end with a ${expectedEnd}`\n : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`;\n onError(offset, atRoot ? 'MISSING_CHAR' : 'BAD_INDENT', msg);\n if (ce && ce.source.length !== 1)\n ee.unshift(ce);\n }\n if (ee.length > 0) {\n const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);\n if (end.comment) {\n if (coll.comment)\n coll.comment += '\\n' + end.comment;\n else\n coll.comment = end.comment;\n }\n coll.range = [fc.offset, cePos, end.offset];\n }\n else {\n coll.range = [fc.offset, cePos, cePos];\n }\n return coll;\n}\n\nexports.resolveFlowCollection = resolveFlowCollection;\n"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,219 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
4
- const require_Scalar$1 = require('../nodes/Scalar.cjs');
5
- const require_resolve_end$1 = require('./resolve-end.cjs');
6
-
7
- //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
8
- var require_resolve_flow_scalar = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
9
- var Scalar = require_Scalar$1.default;
10
- var resolveEnd = require_resolve_end$1.default;
11
- function resolveFlowScalar(scalar, strict, onError) {
12
- const { offset, type, source, end } = scalar;
13
- let _type;
14
- let value;
15
- const _onError = (rel, code, msg) => onError(offset + rel, code, msg);
16
- switch (type) {
17
- case "scalar":
18
- _type = Scalar.Scalar.PLAIN;
19
- value = plainValue(source, _onError);
20
- break;
21
- case "single-quoted-scalar":
22
- _type = Scalar.Scalar.QUOTE_SINGLE;
23
- value = singleQuotedValue(source, _onError);
24
- break;
25
- case "double-quoted-scalar":
26
- _type = Scalar.Scalar.QUOTE_DOUBLE;
27
- value = doubleQuotedValue(source, _onError);
28
- break;
29
- default:
30
- onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
31
- return {
32
- value: "",
33
- type: null,
34
- comment: "",
35
- range: [
36
- offset,
37
- offset + source.length,
38
- offset + source.length
39
- ]
40
- };
41
- }
42
- const valueEnd = offset + source.length;
43
- const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
44
- return {
45
- value,
46
- type: _type,
47
- comment: re.comment,
48
- range: [
49
- offset,
50
- valueEnd,
51
- re.offset
52
- ]
53
- };
54
- }
55
- function plainValue(source, onError) {
56
- let badChar = "";
57
- switch (source[0]) {
58
- case " ":
59
- badChar = "a tab character";
60
- break;
61
- case ",":
62
- badChar = "flow indicator character ,";
63
- break;
64
- case "%":
65
- badChar = "directive indicator character %";
66
- break;
67
- case "|":
68
- case ">":
69
- badChar = `block scalar indicator ${source[0]}`;
70
- break;
71
- case "@":
72
- case "`":
73
- badChar = `reserved character ${source[0]}`;
74
- break;
75
- }
76
- if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
77
- return foldLines(source);
78
- }
79
- function singleQuotedValue(source, onError) {
80
- if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
81
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
82
- }
83
- function foldLines(source) {
84
- /**
85
- * The negative lookbehind here and in the `re` RegExp is to
86
- * prevent causing a polynomial search time in certain cases.
87
- *
88
- * The try-catch is for Safari, which doesn't support this yet:
89
- * https://caniuse.com/js-regexp-lookbehind
90
- */
91
- let first, line;
92
- try {
93
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
94
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
95
- } catch {
96
- first = /(.*?)[ \t]*\r?\n/sy;
97
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
98
- }
99
- let match = first.exec(source);
100
- if (!match) return source;
101
- let res = match[1];
102
- let sep = " ";
103
- let pos = first.lastIndex;
104
- line.lastIndex = pos;
105
- while (match = line.exec(source)) {
106
- if (match[1] === "") if (sep === "\n") res += sep;
107
- else sep = "\n";
108
- else {
109
- res += sep + match[1];
110
- sep = " ";
111
- }
112
- pos = line.lastIndex;
113
- }
114
- const last = /[ \t]*(.*)/sy;
115
- last.lastIndex = pos;
116
- match = last.exec(source);
117
- return res + sep + (match?.[1] ?? "");
118
- }
119
- function doubleQuotedValue(source, onError) {
120
- let res = "";
121
- for (let i = 1; i < source.length - 1; ++i) {
122
- const ch = source[i];
123
- if (ch === "\r" && source[i + 1] === "\n") continue;
124
- if (ch === "\n") {
125
- const { fold, offset } = foldNewline(source, i);
126
- res += fold;
127
- i = offset;
128
- } else if (ch === "\\") {
129
- let next = source[++i];
130
- const cc = escapeCodes[next];
131
- if (cc) res += cc;
132
- else if (next === "\n") {
133
- next = source[i + 1];
134
- while (next === " " || next === " ") next = source[++i + 1];
135
- } else if (next === "\r" && source[i + 1] === "\n") {
136
- next = source[++i + 1];
137
- while (next === " " || next === " ") next = source[++i + 1];
138
- } else if (next === "x" || next === "u" || next === "U") {
139
- const length = {
140
- x: 2,
141
- u: 4,
142
- U: 8
143
- }[next];
144
- res += parseCharCode(source, i + 1, length, onError);
145
- i += length;
146
- } else {
147
- const raw = source.substr(i - 1, 2);
148
- onError(i - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
149
- res += raw;
150
- }
151
- } else if (ch === " " || ch === " ") {
152
- const wsStart = i;
153
- let next = source[i + 1];
154
- while (next === " " || next === " ") next = source[++i + 1];
155
- if (next !== "\n" && !(next === "\r" && source[i + 2] === "\n")) res += i > wsStart ? source.slice(wsStart, i + 1) : ch;
156
- } else res += ch;
157
- }
158
- if (source[source.length - 1] !== "\"" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing \"quote");
159
- return res;
160
- }
161
- /**
162
- * Fold a single newline into a space, multiple newlines to N - 1 newlines.
163
- * Presumes `source[offset] === '\n'`
164
- */
165
- function foldNewline(source, offset) {
166
- let fold = "";
167
- let ch = source[offset + 1];
168
- while (ch === " " || ch === " " || ch === "\n" || ch === "\r") {
169
- if (ch === "\r" && source[offset + 2] !== "\n") break;
170
- if (ch === "\n") fold += "\n";
171
- offset += 1;
172
- ch = source[offset + 1];
173
- }
174
- if (!fold) fold = " ";
175
- return {
176
- fold,
177
- offset
178
- };
179
- }
180
- const escapeCodes = {
181
- "0": "\0",
182
- a: "\x07",
183
- b: "\b",
184
- e: "\x1B",
185
- f: "\f",
186
- n: "\n",
187
- r: "\r",
188
- t: " ",
189
- v: "\v",
190
- N: "…",
191
- _: "\xA0",
192
- L: "\u2028",
193
- P: "\u2029",
194
- " ": " ",
195
- "\"": "\"",
196
- "/": "/",
197
- "\\": "\\",
198
- " ": " "
199
- };
200
- function parseCharCode(source, offset, length, onError) {
201
- const cc = source.substr(offset, length);
202
- const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
203
- if (isNaN(code)) {
204
- const raw = source.substr(offset - 2, length + 2);
205
- onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
206
- return raw;
207
- }
208
- return String.fromCodePoint(code);
209
- }
210
- exports.resolveFlowScalar = resolveFlowScalar;
211
- }));
212
-
213
- //#endregion
214
- Object.defineProperty(exports, 'default', {
215
- enumerable: true,
216
- get: function () {
217
- return require_resolve_flow_scalar();
218
- }
219
- });