@powerlines/plugin-env 0.15.121 → 0.15.122

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 (277) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -4
  2. package/dist/babel/plugin.cjs +11 -11
  3. package/dist/babel/plugin.d.mts +2 -2
  4. package/dist/babel/plugin.mjs +5 -5
  5. package/dist/components/docs.cjs +8 -8
  6. package/dist/components/docs.d.mts +1 -1
  7. package/dist/components/docs.mjs +4 -4
  8. package/dist/components/env.cjs +43 -42
  9. package/dist/components/env.d.mts +2 -2
  10. package/dist/components/env.mjs +11 -11
  11. package/dist/deepkit/schemas/reflection.cjs +5426 -0
  12. package/dist/deepkit/schemas/reflection.mjs +5423 -0
  13. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  14. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  15. package/dist/deepkit/src/capnp.cjs +1692 -0
  16. package/dist/deepkit/src/capnp.mjs +1690 -0
  17. package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
  18. package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
  19. package/dist/deepkit/src/reflect-type.cjs +40 -0
  20. package/dist/deepkit/src/reflect-type.mjs +38 -0
  21. package/dist/deepkit/src/resolve-reflections.cjs +23 -0
  22. package/dist/deepkit/src/resolve-reflections.mjs +22 -0
  23. package/dist/deepkit/src/transformer.cjs +92 -0
  24. package/dist/deepkit/src/transformer.mjs +89 -0
  25. package/dist/deepkit/src/transpile.cjs +39 -0
  26. package/dist/deepkit/src/transpile.mjs +37 -0
  27. package/dist/deepkit/src/types.cjs +22 -0
  28. package/dist/deepkit/src/types.mjs +21 -0
  29. package/dist/deepkit/src/utilities.cjs +184 -0
  30. package/dist/deepkit/src/utilities.mjs +183 -0
  31. package/dist/helpers/automd-generator.cjs +4 -4
  32. package/dist/helpers/automd-generator.d.mts +1 -1
  33. package/dist/helpers/automd-generator.mjs +2 -2
  34. package/dist/helpers/docs-helper.cjs +3 -2
  35. package/dist/helpers/docs-helper.mjs +1 -1
  36. package/dist/helpers/load.cjs +15 -14
  37. package/dist/helpers/load.mjs +10 -10
  38. package/dist/helpers/persistence.cjs +23 -23
  39. package/dist/helpers/persistence.d.mts +1 -1
  40. package/dist/helpers/persistence.mjs +5 -5
  41. package/dist/helpers/reflect.cjs +9 -9
  42. package/dist/helpers/reflect.mjs +3 -3
  43. package/dist/helpers/source-file-env.cjs +1 -1
  44. package/dist/helpers/source-file-env.mjs +1 -1
  45. package/dist/index.cjs +24 -26
  46. package/dist/index.d.mts +1 -1
  47. package/dist/index.mjs +14 -14
  48. package/dist/plugin-alloy/src/core/components/output.cjs +43 -0
  49. package/dist/plugin-alloy/src/core/components/output.mjs +42 -0
  50. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  51. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  52. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  53. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  54. package/dist/plugin-alloy/src/core/contexts/context.cjs +134 -0
  55. package/dist/plugin-alloy/src/core/contexts/context.mjs +126 -0
  56. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  57. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  58. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
  59. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
  60. package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
  61. package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
  62. package/dist/plugin-alloy/src/index.cjs +105 -0
  63. package/dist/plugin-alloy/src/index.mjs +103 -0
  64. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  65. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  66. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  67. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  68. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
  69. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
  70. package/dist/plugin-alloy/src/types/components.cjs +22 -0
  71. package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/components.d.mts +1 -1
  72. package/dist/plugin-alloy/src/types/components.mjs +21 -0
  73. package/dist/plugin-alloy/src/types/plugin.cjs +53 -0
  74. package/dist/plugin-alloy/src/types/plugin.mjs +50 -0
  75. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +62 -0
  76. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +61 -0
  77. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +131 -0
  78. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +129 -0
  79. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +451 -0
  80. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/tsdoc.d.mts +1 -1
  81. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +442 -0
  82. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +216 -0
  83. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
  84. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +213 -0
  85. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +72 -0
  86. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
  87. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +71 -0
  88. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  89. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  90. package/dist/plugin-automd/src/index.cjs +127 -0
  91. package/dist/plugin-automd/src/index.mjs +124 -0
  92. package/dist/plugin-automd/src/types/plugin.cjs +47 -0
  93. package/dist/plugin-automd/src/types/plugin.mjs +47 -0
  94. package/dist/plugin-automd/src/types/toc.cjs +26 -0
  95. package/dist/plugin-automd/src/types/toc.mjs +25 -0
  96. package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
  97. package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
  98. package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
  99. package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
  100. package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
  101. package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
  102. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  103. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  104. package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
  105. package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
  106. package/dist/plugin-babel/src/helpers/options.cjs +73 -0
  107. package/dist/plugin-babel/src/helpers/options.mjs +70 -0
  108. package/dist/plugin-babel/src/index.cjs +125 -0
  109. package/dist/plugin-babel/src/index.mjs +123 -0
  110. package/dist/plugin-babel/src/types/plugin.cjs +42 -0
  111. package/dist/plugin-babel/src/types/plugin.mjs +39 -0
  112. package/dist/powerlines/src/internal/helpers/hooks.cjs +136 -0
  113. package/dist/powerlines/src/internal/helpers/hooks.mjs +134 -0
  114. package/dist/powerlines/src/lib/build/esbuild.cjs +142 -0
  115. package/dist/powerlines/src/lib/build/esbuild.mjs +140 -0
  116. package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
  117. package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
  118. package/dist/powerlines/src/lib/entry.cjs +195 -0
  119. package/dist/powerlines/src/lib/entry.mjs +194 -0
  120. package/dist/powerlines/src/lib/logger.cjs +108 -0
  121. package/dist/powerlines/src/lib/logger.mjs +106 -0
  122. package/dist/powerlines/src/lib/unplugin/helpers.cjs +41 -0
  123. package/dist/powerlines/src/lib/unplugin/helpers.mjs +40 -0
  124. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +98 -0
  125. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +97 -0
  126. package/dist/powerlines/src/lib/unplugin/plugin.cjs +139 -0
  127. package/dist/powerlines/src/lib/unplugin/plugin.mjs +138 -0
  128. package/dist/powerlines/src/lib/utilities/bundle.cjs +74 -0
  129. package/dist/powerlines/src/lib/utilities/bundle.mjs +72 -0
  130. package/dist/powerlines/src/lib/utilities/resolve.cjs +69 -0
  131. package/dist/powerlines/src/lib/utilities/resolve.mjs +68 -0
  132. package/dist/powerlines/src/lib/utilities/source-file.cjs +68 -0
  133. package/dist/powerlines/src/lib/utilities/source-file.mjs +66 -0
  134. package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
  135. package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
  136. package/dist/powerlines/src/types/api.cjs +62 -0
  137. package/dist/powerlines/src/types/api.mjs +62 -0
  138. package/dist/powerlines/src/types/babel.cjs +156 -0
  139. package/dist/powerlines/src/types/babel.mjs +147 -0
  140. package/dist/powerlines/src/types/build.cjs +127 -0
  141. package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +6 -6
  142. package/dist/powerlines/src/types/build.mjs +121 -0
  143. package/dist/powerlines/src/types/commands.cjs +16 -0
  144. package/dist/powerlines/src/types/commands.mjs +15 -0
  145. package/dist/powerlines/src/types/config.cjs +420 -0
  146. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +2 -1
  147. package/dist/powerlines/src/types/config.mjs +397 -0
  148. package/dist/powerlines/src/types/context.cjs +388 -0
  149. package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +2 -2
  150. package/dist/powerlines/src/types/context.mjs +371 -0
  151. package/dist/powerlines/src/types/fs.cjs +78 -0
  152. package/dist/powerlines/src/types/fs.mjs +75 -0
  153. package/dist/powerlines/src/types/hooks.cjs +71 -0
  154. package/dist/powerlines/src/types/hooks.mjs +68 -0
  155. package/dist/powerlines/src/types/index.cjs +11 -0
  156. package/dist/powerlines/src/types/index.mjs +13 -0
  157. package/dist/powerlines/src/types/plugin.cjs +184 -0
  158. package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +1 -1
  159. package/dist/powerlines/src/types/plugin.mjs +178 -0
  160. package/dist/powerlines/src/types/resolved.cjs +149 -0
  161. package/dist/powerlines/src/types/resolved.mjs +144 -0
  162. package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
  163. package/dist/powerlines/src/types/unplugin.cjs +64 -0
  164. package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +1 -1
  165. package/dist/powerlines/src/types/unplugin.mjs +62 -0
  166. package/dist/types/plugin.cjs +18 -19
  167. package/dist/types/plugin.d.mts +6 -6
  168. package/dist/types/plugin.mjs +4 -4
  169. package/package.json +7 -7
  170. package/dist/_virtual/rolldown_runtime.mjs +0 -33
  171. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
  172. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -37
  173. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
  174. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs +0 -14
  175. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
  176. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -14
  177. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
  178. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
  179. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
  180. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
  181. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
  182. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
  183. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
  184. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -19
  185. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
  186. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -63
  187. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
  188. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
  189. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
  190. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -16
  191. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
  192. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -32
  193. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.cjs +0 -28
  194. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.mjs +0 -28
  195. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs +0 -106
  196. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs +0 -106
  197. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.cjs +0 -12
  198. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.mjs +0 -8
  199. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.cjs +0 -15
  200. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.mjs +0 -14
  201. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +0 -346
  202. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +0 -346
  203. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +0 -786
  204. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +0 -786
  205. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +0 -3
  206. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +0 -3
  207. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +0 -23
  208. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +0 -22
  209. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +0 -405
  210. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +0 -404
  211. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +0 -657
  212. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +0 -657
  213. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +0 -1054
  214. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +0 -1054
  215. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  216. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  217. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  218. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -45
  219. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +0 -288
  220. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +0 -285
  221. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +0 -71
  222. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +0 -68
  223. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  224. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1007
  225. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  226. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -13
  227. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2698
  228. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2685
  229. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  230. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4454
  231. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  232. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -29
  233. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  234. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -176
  235. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  236. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -17
  237. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  238. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3962
  239. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11768
  240. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11763
  241. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
  242. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -20
  243. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  244. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -17
  245. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +0 -194
  246. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +0 -191
  247. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  248. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -12
  249. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  250. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  251. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  252. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -138
  253. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -127
  254. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -125
  255. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  256. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -136
  257. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  258. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -627
  259. /package/dist/{packages/deepkit → deepkit}/schemas/reflection.d.mts +0 -0
  260. /package/dist/{packages/deepkit → deepkit}/src/types.d.mts +0 -0
  261. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/core/components/source-file.d.mts +0 -0
  262. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/markdown/components/markdown-file.d.mts +0 -0
  263. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/index.d.mts +0 -0
  264. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/plugin.d.mts +0 -0
  265. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
  266. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/plugin.d.mts +0 -0
  267. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/toc.d.mts +0 -0
  268. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/index.d.mts +0 -0
  269. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/plugin.d.mts +0 -0
  270. /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  271. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  272. /package/dist/{packages/powerlines → powerlines}/src/types/babel.d.mts +0 -0
  273. /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
  274. /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
  275. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  276. /package/dist/{packages/powerlines → powerlines}/src/types/index.d.mts +0 -0
  277. /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
@@ -1,657 +0,0 @@
1
- import { N } from "./shared/confbox.DA7CpUDY.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs
4
- /*!
5
- * Copyright (c) Squirrel Chat et al., All rights reserved.
6
- * SPDX-License-Identifier: BSD-3-Clause
7
- *
8
- * Redistribution and use in source and binary forms, with or without
9
- * modification, are permitted provided that the following conditions are met:
10
- *
11
- * 1. Redistributions of source code must retain the above copyright notice, this
12
- * list of conditions and the following disclaimer.
13
- * 2. Redistributions in binary form must reproduce the above copyright notice,
14
- * this list of conditions and the following disclaimer in the
15
- * documentation and/or other materials provided with the distribution.
16
- * 3. Neither the name of the copyright holder nor the names of its contributors
17
- * may be used to endorse or promote products derived from this software without
18
- * specific prior written permission.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- */ function v(e, n) {
31
- let t = e.slice(0, n).split(/\r\n|\n|\r/g);
32
- return [t.length, t.pop().length + 1];
33
- }
34
- function C$1(e, n, t) {
35
- let l = e.split(/\r\n|\n|\r/g), r = "", i = (Math.log10(n + 1) | 0) + 1;
36
- for (let o = n - 1; o <= n + 1; o++) {
37
- let f = l[o - 1];
38
- f && (r += o.toString().padEnd(i, " "), r += ": ", r += f, r += `
39
- `, o === n && (r += " ".repeat(i + t + 2), r += `^
40
- `));
41
- }
42
- return r;
43
- }
44
- var c = class extends Error {
45
- line;
46
- column;
47
- codeblock;
48
- constructor(n, t) {
49
- const [l, r] = v(t.toml, t.ptr), i = C$1(t.toml, l, r);
50
- super(`Invalid TOML document: ${n}
51
-
52
- ${i}`, t), this.line = l, this.column = r, this.codeblock = i;
53
- }
54
- };
55
- /*!
56
- * Copyright (c) Squirrel Chat et al., All rights reserved.
57
- * SPDX-License-Identifier: BSD-3-Clause
58
- *
59
- * Redistribution and use in source and binary forms, with or without
60
- * modification, are permitted provided that the following conditions are met:
61
- *
62
- * 1. Redistributions of source code must retain the above copyright notice, this
63
- * list of conditions and the following disclaimer.
64
- * 2. Redistributions in binary form must reproduce the above copyright notice,
65
- * this list of conditions and the following disclaimer in the
66
- * documentation and/or other materials provided with the distribution.
67
- * 3. Neither the name of the copyright holder nor the names of its contributors
68
- * may be used to endorse or promote products derived from this software without
69
- * specific prior written permission.
70
- *
71
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
72
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
73
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
74
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
75
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
76
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
77
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
78
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
79
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
80
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
81
- */ function g(e, n = 0, t = e.length) {
82
- let l = e.indexOf(`
83
- `, n);
84
- return e[l - 1] === "\r" && l--, l <= t ? l : -1;
85
- }
86
- function y(e, n) {
87
- for (let t = n; t < e.length; t++) {
88
- let l = e[t];
89
- if (l === `
90
- `) return t;
91
- if (l === "\r" && e[t + 1] === `
92
- `) return t + 1;
93
- if (l < " " && l !== " " || l === "") throw new c("control characters are not allowed in comments", {
94
- toml: e,
95
- ptr: n
96
- });
97
- }
98
- return e.length;
99
- }
100
- function s(e, n, t, l) {
101
- let r;
102
- for (; (r = e[n]) === " " || r === " " || !t && (r === `
103
- ` || r === "\r" && e[n + 1] === `
104
- `);) n++;
105
- return l || r !== "#" ? n : s(e, y(e, n), t);
106
- }
107
- function A(e, n, t, l, r = !1) {
108
- if (!l) return n = g(e, n), n < 0 ? e.length : n;
109
- for (let i = n; i < e.length; i++) {
110
- let o = e[i];
111
- if (o === "#") i = g(e, i);
112
- else {
113
- if (o === t) return i + 1;
114
- if (o === l) return i;
115
- if (r && (o === `
116
- ` || o === "\r" && e[i + 1] === `
117
- `)) return i;
118
- }
119
- }
120
- throw new c("cannot find end of structure", {
121
- toml: e,
122
- ptr: n
123
- });
124
- }
125
- function S(e, n) {
126
- let t = e[n], l = t === e[n + 1] && e[n + 1] === e[n + 2] ? e.slice(n, n + 3) : t;
127
- n += l.length - 1;
128
- do
129
- n = e.indexOf(l, ++n);
130
- while (n > -1 && t !== "'" && e[n - 1] === "\\" && e[n - 2] !== "\\");
131
- return n > -1 && (n += l.length, l.length > 1 && (e[n] === t && n++, e[n] === t && n++)), n;
132
- }
133
- /*!
134
- * Copyright (c) Squirrel Chat et al., All rights reserved.
135
- * SPDX-License-Identifier: BSD-3-Clause
136
- *
137
- * Redistribution and use in source and binary forms, with or without
138
- * modification, are permitted provided that the following conditions are met:
139
- *
140
- * 1. Redistributions of source code must retain the above copyright notice, this
141
- * list of conditions and the following disclaimer.
142
- * 2. Redistributions in binary form must reproduce the above copyright notice,
143
- * this list of conditions and the following disclaimer in the
144
- * documentation and/or other materials provided with the distribution.
145
- * 3. Neither the name of the copyright holder nor the names of its contributors
146
- * may be used to endorse or promote products derived from this software without
147
- * specific prior written permission.
148
- *
149
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
150
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
151
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
152
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
153
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
154
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
155
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
156
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
157
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
158
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
159
- */ let R = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
160
- var w = class w extends Date {
161
- #n = !1;
162
- #t = !1;
163
- #e = null;
164
- constructor(n) {
165
- let t = !0, l = !0, r = "Z";
166
- if (typeof n == "string") {
167
- let i = n.match(R);
168
- i ? (i[1] || (t = !1, n = `0000-01-01T${n}`), l = !!i[2], i[2] && +i[2] > 23 ? n = "" : (r = i[3] || null, n = n.toUpperCase(), !r && l && (n += "Z"))) : n = "";
169
- }
170
- super(n), isNaN(this.getTime()) || (this.#n = t, this.#t = l, this.#e = r);
171
- }
172
- isDateTime() {
173
- return this.#n && this.#t;
174
- }
175
- isLocal() {
176
- return !this.#n || !this.#t || !this.#e;
177
- }
178
- isDate() {
179
- return this.#n && !this.#t;
180
- }
181
- isTime() {
182
- return this.#t && !this.#n;
183
- }
184
- isValid() {
185
- return this.#n || this.#t;
186
- }
187
- toISOString() {
188
- let n = super.toISOString();
189
- if (this.isDate()) return n.slice(0, 10);
190
- if (this.isTime()) return n.slice(11, 23);
191
- if (this.#e === null) return n.slice(0, -1);
192
- if (this.#e === "Z") return n;
193
- let t = +this.#e.slice(1, 3) * 60 + +this.#e.slice(4, 6);
194
- return t = this.#e[0] === "-" ? t : -t, (/* @__PURE__ */ new Date(this.getTime() - t * 6e4)).toISOString().slice(0, -1) + this.#e;
195
- }
196
- static wrapAsOffsetDateTime(n, t = "Z") {
197
- let l = new w(n);
198
- return l.#e = t, l;
199
- }
200
- static wrapAsLocalDateTime(n) {
201
- let t = new w(n);
202
- return t.#e = null, t;
203
- }
204
- static wrapAsLocalDate(n) {
205
- let t = new w(n);
206
- return t.#t = !1, t.#e = null, t;
207
- }
208
- static wrapAsLocalTime(n) {
209
- let t = new w(n);
210
- return t.#n = !1, t.#e = null, t;
211
- }
212
- };
213
- /*!
214
- * Copyright (c) Squirrel Chat et al., All rights reserved.
215
- * SPDX-License-Identifier: BSD-3-Clause
216
- *
217
- * Redistribution and use in source and binary forms, with or without
218
- * modification, are permitted provided that the following conditions are met:
219
- *
220
- * 1. Redistributions of source code must retain the above copyright notice, this
221
- * list of conditions and the following disclaimer.
222
- * 2. Redistributions in binary form must reproduce the above copyright notice,
223
- * this list of conditions and the following disclaimer in the
224
- * documentation and/or other materials provided with the distribution.
225
- * 3. Neither the name of the copyright holder nor the names of its contributors
226
- * may be used to endorse or promote products derived from this software without
227
- * specific prior written permission.
228
- *
229
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
230
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
231
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
232
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
233
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
234
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
235
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
236
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
237
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
238
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
239
- */ let M = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Z = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, j = /^[+-]?0[0-9_]/, z = /^[0-9a-f]{4,8}$/i, I = {
240
- b: "\b",
241
- t: " ",
242
- n: `
243
- `,
244
- f: "\f",
245
- r: "\r",
246
- "\"": "\"",
247
- "\\": "\\"
248
- };
249
- function $(e, n = 0, t = e.length) {
250
- let l = e[n] === "'", r = e[n++] === e[n] && e[n] === e[n + 1];
251
- r && (t -= 2, e[n += 2] === "\r" && n++, e[n] === `
252
- ` && n++);
253
- let i = 0, o, f = "", a = n;
254
- for (; n < t - 1;) {
255
- let u = e[n++];
256
- if (u === `
257
- ` || u === "\r" && e[n] === `
258
- `) {
259
- if (!r) throw new c("newlines are not allowed in strings", {
260
- toml: e,
261
- ptr: n - 1
262
- });
263
- } else if (u < " " && u !== " " || u === "") throw new c("control characters are not allowed in strings", {
264
- toml: e,
265
- ptr: n - 1
266
- });
267
- if (o) {
268
- if (o = !1, u === "u" || u === "U") {
269
- let d = e.slice(n, n += u === "u" ? 4 : 8);
270
- if (!z.test(d)) throw new c("invalid unicode escape", {
271
- toml: e,
272
- ptr: i
273
- });
274
- try {
275
- f += String.fromCodePoint(parseInt(d, 16));
276
- } catch {
277
- throw new c("invalid unicode escape", {
278
- toml: e,
279
- ptr: i
280
- });
281
- }
282
- } else if (r && (u === `
283
- ` || u === " " || u === " " || u === "\r")) {
284
- if (n = s(e, n - 1, !0), e[n] !== `
285
- ` && e[n] !== "\r") throw new c("invalid escape: only line-ending whitespace may be escaped", {
286
- toml: e,
287
- ptr: i
288
- });
289
- n = s(e, n);
290
- } else if (u in I) f += I[u];
291
- else throw new c("unrecognized escape sequence", {
292
- toml: e,
293
- ptr: i
294
- });
295
- a = n;
296
- } else !l && u === "\\" && (i = n - 1, o = !0, f += e.slice(a, i));
297
- }
298
- return f + e.slice(a, t - 1);
299
- }
300
- function F(e, n, t) {
301
- if (e === "true") return !0;
302
- if (e === "false") return !1;
303
- if (e === "-inf") return -Infinity;
304
- if (e === "inf" || e === "+inf") return Infinity;
305
- if (e === "nan" || e === "+nan" || e === "-nan") return NaN;
306
- if (e === "-0") return 0;
307
- let l;
308
- if ((l = M.test(e)) || Z.test(e)) {
309
- if (j.test(e)) throw new c("leading zeroes are not allowed", {
310
- toml: n,
311
- ptr: t
312
- });
313
- let i = +e.replace(/_/g, "");
314
- if (isNaN(i)) throw new c("invalid number", {
315
- toml: n,
316
- ptr: t
317
- });
318
- if (l && !Number.isSafeInteger(i)) throw new c("integer value cannot be represented losslessly", {
319
- toml: n,
320
- ptr: t
321
- });
322
- return i;
323
- }
324
- let r = new w(e);
325
- if (!r.isValid()) throw new c("invalid value", {
326
- toml: n,
327
- ptr: t
328
- });
329
- return r;
330
- }
331
- /*!
332
- * Copyright (c) Squirrel Chat et al., All rights reserved.
333
- * SPDX-License-Identifier: BSD-3-Clause
334
- *
335
- * Redistribution and use in source and binary forms, with or without
336
- * modification, are permitted provided that the following conditions are met:
337
- *
338
- * 1. Redistributions of source code must retain the above copyright notice, this
339
- * list of conditions and the following disclaimer.
340
- * 2. Redistributions in binary form must reproduce the above copyright notice,
341
- * this list of conditions and the following disclaimer in the
342
- * documentation and/or other materials provided with the distribution.
343
- * 3. Neither the name of the copyright holder nor the names of its contributors
344
- * may be used to endorse or promote products derived from this software without
345
- * specific prior written permission.
346
- *
347
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
348
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
349
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
350
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
351
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
352
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
353
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
354
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
355
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
356
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
357
- */ function V(e, n, t, l) {
358
- let r = e.slice(n, t), i = r.indexOf("#");
359
- i > -1 && (y(e, i), r = r.slice(0, i));
360
- let o = r.trimEnd();
361
- if (!l) {
362
- let f = r.indexOf(`
363
- `, o.length);
364
- if (f > -1) throw new c("newlines are not allowed in inline tables", {
365
- toml: e,
366
- ptr: n + f
367
- });
368
- }
369
- return [o, i];
370
- }
371
- function b(e, n, t, l) {
372
- if (l === 0) throw new c("document contains excessively nested structures. aborting.", {
373
- toml: e,
374
- ptr: n
375
- });
376
- let r = e[n];
377
- if (r === "[" || r === "{") {
378
- let [f, a] = r === "[" ? U(e, n, l) : K(e, n, l), u = A(e, a, ",", t);
379
- if (t === "}") {
380
- let d = g(e, a, u);
381
- if (d > -1) throw new c("newlines are not allowed in inline tables", {
382
- toml: e,
383
- ptr: d
384
- });
385
- }
386
- return [f, u];
387
- }
388
- let i;
389
- if (r === "\"" || r === "'") {
390
- i = S(e, n);
391
- let f = $(e, n, i);
392
- if (t) {
393
- if (i = s(e, i, t !== "]"), e[i] && e[i] !== "," && e[i] !== t && e[i] !== `
394
- ` && e[i] !== "\r") throw new c("unexpected character encountered", {
395
- toml: e,
396
- ptr: i
397
- });
398
- i += +(e[i] === ",");
399
- }
400
- return [f, i];
401
- }
402
- i = A(e, n, ",", t);
403
- let o = V(e, n, i - +(e[i - 1] === ","), t === "]");
404
- if (!o[0]) throw new c("incomplete key-value declaration: no value specified", {
405
- toml: e,
406
- ptr: n
407
- });
408
- return t && o[1] > -1 && (i = s(e, n + o[1]), i += +(e[i] === ",")), [F(o[0], e, n), i];
409
- }
410
- /*!
411
- * Copyright (c) Squirrel Chat et al., All rights reserved.
412
- * SPDX-License-Identifier: BSD-3-Clause
413
- *
414
- * Redistribution and use in source and binary forms, with or without
415
- * modification, are permitted provided that the following conditions are met:
416
- *
417
- * 1. Redistributions of source code must retain the above copyright notice, this
418
- * list of conditions and the following disclaimer.
419
- * 2. Redistributions in binary form must reproduce the above copyright notice,
420
- * this list of conditions and the following disclaimer in the
421
- * documentation and/or other materials provided with the distribution.
422
- * 3. Neither the name of the copyright holder nor the names of its contributors
423
- * may be used to endorse or promote products derived from this software without
424
- * specific prior written permission.
425
- *
426
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
427
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
428
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
429
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
430
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
431
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
432
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
433
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
434
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
435
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
436
- */ let G = /^[a-zA-Z0-9-_]+[ \t]*$/;
437
- function x(e, n, t = "=") {
438
- let l = n - 1, r = [], i = e.indexOf(t, n);
439
- if (i < 0) throw new c("incomplete key-value: cannot find end of key", {
440
- toml: e,
441
- ptr: n
442
- });
443
- do {
444
- let o = e[n = ++l];
445
- if (o !== " " && o !== " ") if (o === "\"" || o === "'") {
446
- if (o === e[n + 1] && o === e[n + 2]) throw new c("multiline strings are not allowed in keys", {
447
- toml: e,
448
- ptr: n
449
- });
450
- let f = S(e, n);
451
- if (f < 0) throw new c("unfinished string encountered", {
452
- toml: e,
453
- ptr: n
454
- });
455
- l = e.indexOf(".", f);
456
- let a = e.slice(f, l < 0 || l > i ? i : l), u = g(a);
457
- if (u > -1) throw new c("newlines are not allowed in keys", {
458
- toml: e,
459
- ptr: n + l + u
460
- });
461
- if (a.trimStart()) throw new c("found extra tokens after the string part", {
462
- toml: e,
463
- ptr: f
464
- });
465
- if (i < f && (i = e.indexOf(t, f), i < 0)) throw new c("incomplete key-value: cannot find end of key", {
466
- toml: e,
467
- ptr: n
468
- });
469
- r.push($(e, n, f));
470
- } else {
471
- l = e.indexOf(".", n);
472
- let f = e.slice(n, l < 0 || l > i ? i : l);
473
- if (!G.test(f)) throw new c("only letter, numbers, dashes and underscores are allowed in keys", {
474
- toml: e,
475
- ptr: n
476
- });
477
- r.push(f.trimEnd());
478
- }
479
- } while (l + 1 && l < i);
480
- return [r, s(e, i + 1, !0, !0)];
481
- }
482
- function K(e, n, t) {
483
- let l = {}, r = /* @__PURE__ */ new Set(), i, o = 0;
484
- for (n++; (i = e[n++]) !== "}" && i;) {
485
- if (i === `
486
- `) throw new c("newlines are not allowed in inline tables", {
487
- toml: e,
488
- ptr: n - 1
489
- });
490
- if (i === "#") throw new c("inline tables cannot contain comments", {
491
- toml: e,
492
- ptr: n - 1
493
- });
494
- if (i === ",") throw new c("expected key-value, found comma", {
495
- toml: e,
496
- ptr: n - 1
497
- });
498
- if (i !== " " && i !== " ") {
499
- let f, a = l, u = !1, [d, N$1] = x(e, n - 1);
500
- for (let m = 0; m < d.length; m++) {
501
- if (m && (a = u ? a[f] : a[f] = {}), f = d[m], (u = Object.hasOwn(a, f)) && (typeof a[f] != "object" || r.has(a[f]))) throw new c("trying to redefine an already defined value", {
502
- toml: e,
503
- ptr: n
504
- });
505
- !u && f === "__proto__" && Object.defineProperty(a, f, {
506
- enumerable: !0,
507
- configurable: !0,
508
- writable: !0
509
- });
510
- }
511
- if (u) throw new c("trying to redefine an already defined value", {
512
- toml: e,
513
- ptr: n
514
- });
515
- let [_, k] = b(e, N$1, "}", t - 1);
516
- r.add(_), a[f] = _, n = k, o = e[n - 1] === "," ? n - 1 : 0;
517
- }
518
- }
519
- if (o) throw new c("trailing commas are not allowed in inline tables", {
520
- toml: e,
521
- ptr: o
522
- });
523
- if (!i) throw new c("unfinished table encountered", {
524
- toml: e,
525
- ptr: n
526
- });
527
- return [l, n];
528
- }
529
- function U(e, n, t) {
530
- let l = [], r;
531
- for (n++; (r = e[n++]) !== "]" && r;) {
532
- if (r === ",") throw new c("expected value, found comma", {
533
- toml: e,
534
- ptr: n - 1
535
- });
536
- if (r === "#") n = y(e, n);
537
- else if (r !== " " && r !== " " && r !== `
538
- ` && r !== "\r") {
539
- let i = b(e, n - 1, "]", t - 1);
540
- l.push(i[0]), n = i[1];
541
- }
542
- }
543
- if (!r) throw new c("unfinished array encountered", {
544
- toml: e,
545
- ptr: n
546
- });
547
- return [l, n];
548
- }
549
- /*!
550
- * Copyright (c) Squirrel Chat et al., All rights reserved.
551
- * SPDX-License-Identifier: BSD-3-Clause
552
- *
553
- * Redistribution and use in source and binary forms, with or without
554
- * modification, are permitted provided that the following conditions are met:
555
- *
556
- * 1. Redistributions of source code must retain the above copyright notice, this
557
- * list of conditions and the following disclaimer.
558
- * 2. Redistributions in binary form must reproduce the above copyright notice,
559
- * this list of conditions and the following disclaimer in the
560
- * documentation and/or other materials provided with the distribution.
561
- * 3. Neither the name of the copyright holder nor the names of its contributors
562
- * may be used to endorse or promote products derived from this software without
563
- * specific prior written permission.
564
- *
565
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
566
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
567
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
568
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
569
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
570
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
571
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
572
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
573
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
574
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
575
- */ function p(e, n, t, l) {
576
- let r = n, i = t, o, f = !1, a;
577
- for (let u = 0; u < e.length; u++) {
578
- if (u) {
579
- if (r = f ? r[o] : r[o] = {}, i = (a = i[o]).c, l === 0 && (a.t === 1 || a.t === 2)) return null;
580
- if (a.t === 2) {
581
- let d = r.length - 1;
582
- r = r[d], i = i[d].c;
583
- }
584
- }
585
- if (o = e[u], (f = Object.hasOwn(r, o)) && i[o]?.t === 0 && i[o]?.d) return null;
586
- f || (o === "__proto__" && (Object.defineProperty(r, o, {
587
- enumerable: !0,
588
- configurable: !0,
589
- writable: !0
590
- }), Object.defineProperty(i, o, {
591
- enumerable: !0,
592
- configurable: !0,
593
- writable: !0
594
- })), i[o] = {
595
- t: u < e.length - 1 && l === 2 ? 3 : l,
596
- d: !1,
597
- i: 0,
598
- c: {}
599
- });
600
- }
601
- if (a = i[o], a.t !== l && !(l === 1 && a.t === 3) || (l === 2 && (a.d || (a.d = !0, r[o] = []), r[o].push(r = {}), a.c[a.i++] = a = {
602
- t: 1,
603
- d: !1,
604
- i: 0,
605
- c: {}
606
- }), a.d)) return null;
607
- if (a.d = !0, l === 1) r = f ? r[o] : r[o] = {};
608
- else if (l === 0 && f) return null;
609
- return [
610
- o,
611
- r,
612
- a.c
613
- ];
614
- }
615
- function X(e, n) {
616
- let t = n?.maxDepth ?? 1e3, l = {}, r = {}, i = l, o = r;
617
- for (let f = s(e, 0); f < e.length;) {
618
- if (e[f] === "[") {
619
- let a = e[++f] === "[", u = x(e, f += +a, "]");
620
- if (a) {
621
- if (e[u[1] - 1] !== "]") throw new c("expected end of table declaration", {
622
- toml: e,
623
- ptr: u[1] - 1
624
- });
625
- u[1]++;
626
- }
627
- let d = p(u[0], l, r, a ? 2 : 1);
628
- if (!d) throw new c("trying to redefine an already defined table or value", {
629
- toml: e,
630
- ptr: f
631
- });
632
- o = d[2], i = d[1], f = u[1];
633
- } else {
634
- let a = x(e, f), u = p(a[0], i, o, 0);
635
- if (!u) throw new c("trying to redefine an already defined table or value", {
636
- toml: e,
637
- ptr: f
638
- });
639
- let d = b(e, a[1], void 0, t);
640
- u[1][u[0]] = d[0], f = d[1];
641
- }
642
- if (f = s(e, f, !0), e[f] && e[f] !== `
643
- ` && e[f] !== "\r") throw new c("each key-value declaration must be followed by an end-of-line", {
644
- toml: e,
645
- ptr: f
646
- });
647
- f = s(e, f);
648
- }
649
- return l;
650
- }
651
- function Q(e) {
652
- const n = X(e);
653
- return N(e, n, { preserveIndentation: !1 }), n;
654
- }
655
-
656
- //#endregion
657
- export { Q as parseTOML };