@pleaseai/agent 0.1.16 → 0.1.17

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 (1581) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/1IbcHhBU.js +1 -0
  3. package/.output/public/_nuxt/BTF_RZdZ.js +1 -0
  4. package/.output/public/_nuxt/Bh-tMwKs.js +30 -0
  5. package/.output/public/_nuxt/BsKcI3-e.js +1 -0
  6. package/.output/public/_nuxt/BzSBlrMF.js +1 -0
  7. package/.output/public/_nuxt/C3iS5Uhb.js +1 -0
  8. package/.output/public/_nuxt/D32OC87-.js +1 -0
  9. package/.output/public/_nuxt/DYb-jmio.js +7 -0
  10. package/.output/public/_nuxt/DeqoUPGn.js +1 -0
  11. package/.output/public/_nuxt/DoaBpHko.js +1 -0
  12. package/.output/public/_nuxt/builds/latest.json +1 -0
  13. package/.output/public/_nuxt/builds/meta/748a2baa-57b8-4080-8fea-335bbddd248e.json +1 -0
  14. package/.output/public/_nuxt/cCUm7iY-.js +1 -0
  15. package/.output/public/_nuxt/d0DDPc3x.js +1 -0
  16. package/.output/public/_nuxt/entry.uBXQoLs_.css +1 -0
  17. package/.output/public/_nuxt/error-404.CpAx3mXP.css +1 -0
  18. package/.output/public/_nuxt/error-500.VGk_v7xu.css +1 -0
  19. package/.output/public/_nuxt/nOjN_vKW.js +1 -0
  20. package/.output/server/chunks/_/error-500.mjs +19 -0
  21. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  22. package/.output/server/chunks/_/icons.mjs +5939 -0
  23. package/.output/server/chunks/_/icons.mjs.map +1 -0
  24. package/.output/server/chunks/build/Alert-BgLL0z9r.mjs +477 -0
  25. package/.output/server/chunks/build/Alert-BgLL0z9r.mjs.map +1 -0
  26. package/.output/server/chunks/build/Badge-BnQthhyg.mjs +782 -0
  27. package/.output/server/chunks/build/Badge-BnQthhyg.mjs.map +1 -0
  28. package/.output/server/chunks/build/Card-m9yESRg-.mjs +421 -0
  29. package/.output/server/chunks/build/Card-m9yESRg-.mjs.map +1 -0
  30. package/.output/server/chunks/build/Separator-D2l1Gitd.mjs +341 -0
  31. package/.output/server/chunks/build/Separator-D2l1Gitd.mjs.map +1 -0
  32. package/.output/server/chunks/build/_id_-B-peNi7y.mjs +357 -0
  33. package/.output/server/chunks/build/_id_-B-peNi7y.mjs.map +1 -0
  34. package/.output/server/chunks/build/_identifier_-u8aQI-B5.mjs +593 -0
  35. package/.output/server/chunks/build/_identifier_-u8aQI-B5.mjs.map +1 -0
  36. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  37. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  38. package/.output/server/chunks/build/dashboard-DRFqbhzu.mjs +13977 -0
  39. package/.output/server/chunks/build/dashboard-DRFqbhzu.mjs.map +1 -0
  40. package/.output/server/chunks/build/error-404-Boq1zV4r.mjs +112 -0
  41. package/.output/server/chunks/build/error-404-Boq1zV4r.mjs.map +1 -0
  42. package/.output/server/chunks/build/error-404-styles.O8g5ZWuT.mjs +8 -0
  43. package/.output/server/chunks/build/error-404-styles.O8g5ZWuT.mjs.map +1 -0
  44. package/.output/server/chunks/build/error-500-BAbnx-7I.mjs +95 -0
  45. package/.output/server/chunks/build/error-500-BAbnx-7I.mjs.map +1 -0
  46. package/.output/server/chunks/build/error-500-styles.kmF6Dijn.mjs +8 -0
  47. package/.output/server/chunks/build/error-500-styles.kmF6Dijn.mjs.map +1 -0
  48. package/.output/server/chunks/build/format-Cs0yxEHy.mjs +75 -0
  49. package/.output/server/chunks/build/format-Cs0yxEHy.mjs.map +1 -0
  50. package/.output/server/chunks/build/index-BAy5ojFe.mjs +5479 -0
  51. package/.output/server/chunks/build/index-BAy5ojFe.mjs.map +1 -0
  52. package/.output/server/chunks/build/login-DPXKXUwG.mjs +981 -0
  53. package/.output/server/chunks/build/login-DPXKXUwG.mjs.map +1 -0
  54. package/.output/server/chunks/build/server.mjs +53539 -0
  55. package/.output/server/chunks/build/server.mjs.map +1 -0
  56. package/.output/server/chunks/build/styles.mjs +10 -0
  57. package/.output/server/chunks/build/styles.mjs.map +1 -0
  58. package/.output/server/chunks/routes/api/auth/_...all_.mjs +34 -0
  59. package/.output/server/chunks/routes/api/auth/_...all_.mjs.map +1 -0
  60. package/.output/server/chunks/routes/api/v1/_identifier_.get.mjs +111 -0
  61. package/.output/server/chunks/routes/api/v1/_identifier_.get.mjs.map +1 -0
  62. package/.output/server/chunks/routes/api/v1/refresh.post.mjs +40 -0
  63. package/.output/server/chunks/routes/api/v1/refresh.post.mjs.map +1 -0
  64. package/.output/server/chunks/routes/api/v1/sessions/_sessionId/messages.get.mjs +52 -0
  65. package/.output/server/chunks/routes/api/v1/sessions/_sessionId/messages.get.mjs.map +1 -0
  66. package/.output/server/chunks/routes/api/v1/state.get.mjs +89 -0
  67. package/.output/server/chunks/routes/api/v1/state.get.mjs.map +1 -0
  68. package/.output/server/chunks/routes/api/webhooks/github.post.mjs +189 -0
  69. package/.output/server/chunks/routes/api/webhooks/github.post.mjs.map +1 -0
  70. package/.output/server/chunks/routes/api/webhooks/slack.post.mjs +70 -0
  71. package/.output/server/chunks/routes/api/webhooks/slack.post.mjs.map +1 -0
  72. package/.output/server/chunks/routes/renderer.mjs +483 -0
  73. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  74. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  75. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  76. package/.output/server/index.mjs +9920 -0
  77. package/.output/server/index.mjs.map +1 -0
  78. package/.output/server/node_modules/.nitro/eventemitter3@4.0.7/index.js +336 -0
  79. package/.output/server/node_modules/.nitro/eventemitter3@4.0.7/package.json +56 -0
  80. package/.output/server/node_modules/.nitro/eventemitter3@5.0.4/index.js +336 -0
  81. package/.output/server/node_modules/.nitro/eventemitter3@5.0.4/package.json +62 -0
  82. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/cli.js +14798 -0
  83. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/package.json +58 -0
  84. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +61 -0
  85. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/COPYING +3 -0
  86. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-darwin/rg +0 -0
  87. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-linux/rg +0 -0
  88. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-win32/rg.exe +0 -0
  89. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-darwin/rg +0 -0
  90. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-linux/rg +0 -0
  91. package/.output/server/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-win32/rg.exe +0 -0
  92. package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
  93. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  94. package/.output/server/node_modules/@better-auth/core/dist/api/index.mjs +34 -0
  95. package/.output/server/node_modules/@better-auth/core/dist/async_hooks/index.mjs +22 -0
  96. package/.output/server/node_modules/@better-auth/core/dist/context/endpoint-context.mjs +32 -0
  97. package/.output/server/node_modules/@better-auth/core/dist/context/global.mjs +38 -0
  98. package/.output/server/node_modules/@better-auth/core/dist/context/index.mjs +6 -0
  99. package/.output/server/node_modules/@better-auth/core/dist/context/request-state.mjs +50 -0
  100. package/.output/server/node_modules/@better-auth/core/dist/context/transaction.mjs +96 -0
  101. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/factory.mjs +725 -0
  102. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.mjs +39 -0
  103. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.mjs +33 -0
  104. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.mjs +40 -0
  105. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-field-name.mjs +34 -0
  106. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-id-field.mjs +68 -0
  107. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/get-model-name.mjs +24 -0
  108. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/index.mjs +27 -0
  109. package/.output/server/node_modules/@better-auth/core/dist/db/adapter/utils.mjs +39 -0
  110. package/.output/server/node_modules/@better-auth/core/dist/db/get-tables.mjs +267 -0
  111. package/.output/server/node_modules/@better-auth/core/dist/db/index.mjs +9 -0
  112. package/.output/server/node_modules/@better-auth/core/dist/db/schema/account.mjs +20 -0
  113. package/.output/server/node_modules/@better-auth/core/dist/db/schema/rate-limit.mjs +12 -0
  114. package/.output/server/node_modules/@better-auth/core/dist/db/schema/session.mjs +15 -0
  115. package/.output/server/node_modules/@better-auth/core/dist/db/schema/shared.mjs +12 -0
  116. package/.output/server/node_modules/@better-auth/core/dist/db/schema/user.mjs +14 -0
  117. package/.output/server/node_modules/@better-auth/core/dist/db/schema/verification.mjs +13 -0
  118. package/.output/server/node_modules/@better-auth/core/dist/env/color-depth.mjs +89 -0
  119. package/.output/server/node_modules/@better-auth/core/dist/env/env-impl.mjs +83 -0
  120. package/.output/server/node_modules/@better-auth/core/dist/env/index.mjs +5 -0
  121. package/.output/server/node_modules/@better-auth/core/dist/env/logger.mjs +82 -0
  122. package/.output/server/node_modules/@better-auth/core/dist/error/codes.mjs +57 -0
  123. package/.output/server/node_modules/@better-auth/core/dist/error/index.mjs +30 -0
  124. package/.output/server/node_modules/@better-auth/core/dist/index.mjs +1 -0
  125. package/.output/server/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.mjs +67 -0
  126. package/.output/server/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.mjs +44 -0
  127. package/.output/server/node_modules/@better-auth/core/dist/oauth2/index.mjs +8 -0
  128. package/.output/server/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.mjs +76 -0
  129. package/.output/server/node_modules/@better-auth/core/dist/oauth2/utils.mjs +28 -0
  130. package/.output/server/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.mjs +83 -0
  131. package/.output/server/node_modules/@better-auth/core/dist/oauth2/verify.mjs +96 -0
  132. package/.output/server/node_modules/@better-auth/core/dist/social-providers/apple.mjs +105 -0
  133. package/.output/server/node_modules/@better-auth/core/dist/social-providers/atlassian.mjs +84 -0
  134. package/.output/server/node_modules/@better-auth/core/dist/social-providers/cognito.mjs +166 -0
  135. package/.output/server/node_modules/@better-auth/core/dist/social-providers/discord.mjs +65 -0
  136. package/.output/server/node_modules/@better-auth/core/dist/social-providers/dropbox.mjs +76 -0
  137. package/.output/server/node_modules/@better-auth/core/dist/social-providers/facebook.mjs +121 -0
  138. package/.output/server/node_modules/@better-auth/core/dist/social-providers/figma.mjs +87 -0
  139. package/.output/server/node_modules/@better-auth/core/dist/social-providers/github.mjs +97 -0
  140. package/.output/server/node_modules/@better-auth/core/dist/social-providers/gitlab.mjs +83 -0
  141. package/.output/server/node_modules/@better-auth/core/dist/social-providers/google.mjs +113 -0
  142. package/.output/server/node_modules/@better-auth/core/dist/social-providers/huggingface.mjs +76 -0
  143. package/.output/server/node_modules/@better-auth/core/dist/social-providers/index.mjs +79 -0
  144. package/.output/server/node_modules/@better-auth/core/dist/social-providers/kakao.mjs +73 -0
  145. package/.output/server/node_modules/@better-auth/core/dist/social-providers/kick.mjs +72 -0
  146. package/.output/server/node_modules/@better-auth/core/dist/social-providers/line.mjs +114 -0
  147. package/.output/server/node_modules/@better-auth/core/dist/social-providers/linear.mjs +89 -0
  148. package/.output/server/node_modules/@better-auth/core/dist/social-providers/linkedin.mjs +77 -0
  149. package/.output/server/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.mjs +140 -0
  150. package/.output/server/node_modules/@better-auth/core/dist/social-providers/naver.mjs +68 -0
  151. package/.output/server/node_modules/@better-auth/core/dist/social-providers/notion.mjs +76 -0
  152. package/.output/server/node_modules/@better-auth/core/dist/social-providers/paybin.mjs +86 -0
  153. package/.output/server/node_modules/@better-auth/core/dist/social-providers/paypal.mjs +145 -0
  154. package/.output/server/node_modules/@better-auth/core/dist/social-providers/polar.mjs +74 -0
  155. package/.output/server/node_modules/@better-auth/core/dist/social-providers/railway.mjs +78 -0
  156. package/.output/server/node_modules/@better-auth/core/dist/social-providers/reddit.mjs +84 -0
  157. package/.output/server/node_modules/@better-auth/core/dist/social-providers/roblox.mjs +60 -0
  158. package/.output/server/node_modules/@better-auth/core/dist/social-providers/salesforce.mjs +92 -0
  159. package/.output/server/node_modules/@better-auth/core/dist/social-providers/slack.mjs +69 -0
  160. package/.output/server/node_modules/@better-auth/core/dist/social-providers/spotify.mjs +72 -0
  161. package/.output/server/node_modules/@better-auth/core/dist/social-providers/tiktok.mjs +63 -0
  162. package/.output/server/node_modules/@better-auth/core/dist/social-providers/twitch.mjs +79 -0
  163. package/.output/server/node_modules/@better-auth/core/dist/social-providers/twitter.mjs +88 -0
  164. package/.output/server/node_modules/@better-auth/core/dist/social-providers/vercel.mjs +62 -0
  165. package/.output/server/node_modules/@better-auth/core/dist/social-providers/vk.mjs +84 -0
  166. package/.output/server/node_modules/@better-auth/core/dist/social-providers/zoom.mjs +73 -0
  167. package/.output/server/node_modules/@better-auth/core/dist/utils/db.mjs +17 -0
  168. package/.output/server/node_modules/@better-auth/core/dist/utils/deprecate.mjs +18 -0
  169. package/.output/server/node_modules/@better-auth/core/dist/utils/error-codes.mjs +12 -0
  170. package/.output/server/node_modules/@better-auth/core/dist/utils/fetch-metadata.mjs +8 -0
  171. package/.output/server/node_modules/@better-auth/core/dist/utils/id.mjs +10 -0
  172. package/.output/server/node_modules/@better-auth/core/dist/utils/ip.mjs +119 -0
  173. package/.output/server/node_modules/@better-auth/core/dist/utils/json.mjs +45 -0
  174. package/.output/server/node_modules/@better-auth/core/dist/utils/string.mjs +8 -0
  175. package/.output/server/node_modules/@better-auth/core/dist/utils/url.mjs +33 -0
  176. package/.output/server/node_modules/@better-auth/core/package.json +169 -0
  177. package/.output/server/node_modules/@better-auth/kysely-adapter/dist/bun-sqlite-dialect-C8OaCWSL.mjs +156 -0
  178. package/.output/server/node_modules/@better-auth/kysely-adapter/dist/d1-sqlite-dialect-sYHNqBte.mjs +117 -0
  179. package/.output/server/node_modules/@better-auth/kysely-adapter/dist/index.mjs +381 -0
  180. package/.output/server/node_modules/@better-auth/kysely-adapter/dist/node-sqlite-dialect.mjs +156 -0
  181. package/.output/server/node_modules/@better-auth/kysely-adapter/package.json +62 -0
  182. package/.output/server/node_modules/@better-auth/memory-adapter/dist/index.mjs +218 -0
  183. package/.output/server/node_modules/@better-auth/memory-adapter/package.json +54 -0
  184. package/.output/server/node_modules/@better-auth/telemetry/dist/node.mjs +489 -0
  185. package/.output/server/node_modules/@better-auth/telemetry/package.json +62 -0
  186. package/.output/server/node_modules/@better-auth/utils/dist/base32.mjs +101 -0
  187. package/.output/server/node_modules/@better-auth/utils/dist/base64.mjs +77 -0
  188. package/.output/server/node_modules/@better-auth/utils/dist/binary.mjs +14 -0
  189. package/.output/server/node_modules/@better-auth/utils/dist/hash.mjs +29 -0
  190. package/.output/server/node_modules/@better-auth/utils/dist/hex.mjs +38 -0
  191. package/.output/server/node_modules/@better-auth/utils/dist/hmac.mjs +56 -0
  192. package/.output/server/node_modules/@better-auth/utils/dist/index.mjs +8 -0
  193. package/.output/server/node_modules/@better-auth/utils/dist/otp.mjs +88 -0
  194. package/.output/server/node_modules/@better-auth/utils/dist/random.mjs +53 -0
  195. package/.output/server/node_modules/@better-auth/utils/package.json +84 -0
  196. package/.output/server/node_modules/@better-fetch/fetch/dist/index.js +709 -0
  197. package/.output/server/node_modules/@better-fetch/fetch/package.json +46 -0
  198. package/.output/server/node_modules/@chat-adapter/github/dist/index.js +1080 -0
  199. package/.output/server/node_modules/@chat-adapter/github/package.json +59 -0
  200. package/.output/server/node_modules/@chat-adapter/shared/dist/index.js +245 -0
  201. package/.output/server/node_modules/@chat-adapter/shared/package.json +49 -0
  202. package/.output/server/node_modules/@chat-adapter/slack/dist/index.js +3442 -0
  203. package/.output/server/node_modules/@chat-adapter/slack/package.json +56 -0
  204. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
  205. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
  206. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
  207. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
  208. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
  209. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
  210. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
  211. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
  212. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
  213. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
  214. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
  215. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
  216. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
  217. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
  218. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
  219. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
  220. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
  221. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
  222. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
  223. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
  224. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
  225. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
  226. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
  227. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
  228. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
  229. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
  230. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
  231. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
  232. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
  233. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
  234. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  235. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
  236. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
  237. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
  238. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
  239. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
  240. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
  241. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
  242. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
  243. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
  244. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
  245. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
  246. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
  247. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
  248. package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
  249. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
  250. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
  251. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
  252. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
  253. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
  254. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
  255. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
  256. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
  257. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
  258. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
  259. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
  260. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
  261. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
  262. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
  263. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
  264. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
  265. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
  266. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
  267. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
  268. package/.output/server/node_modules/@iconify/utils/package.json +118 -0
  269. package/.output/server/node_modules/@libsql/client/lib-esm/hrana.js +341 -0
  270. package/.output/server/node_modules/@libsql/client/lib-esm/http.js +232 -0
  271. package/.output/server/node_modules/@libsql/client/lib-esm/node.js +23 -0
  272. package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
  273. package/.output/server/node_modules/@libsql/client/lib-esm/sqlite3.js +476 -0
  274. package/.output/server/node_modules/@libsql/client/lib-esm/ws.js +359 -0
  275. package/.output/server/node_modules/@libsql/client/package.json +123 -0
  276. package/.output/server/node_modules/@libsql/core/lib-esm/api.js +29 -0
  277. package/.output/server/node_modules/@libsql/core/lib-esm/config.js +138 -0
  278. package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
  279. package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
  280. package/.output/server/node_modules/@libsql/core/package.json +91 -0
  281. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
  282. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
  283. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
  284. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
  285. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
  286. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
  287. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
  288. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
  289. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
  290. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
  291. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
  292. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
  293. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +126 -0
  294. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +138 -0
  295. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
  296. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
  297. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
  298. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
  299. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +368 -0
  300. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
  301. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
  302. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
  303. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
  304. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
  305. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
  306. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
  307. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
  308. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
  309. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
  310. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
  311. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
  312. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
  313. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
  314. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
  315. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
  316. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
  317. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
  318. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
  319. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
  320. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
  321. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
  322. package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
  323. package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
  324. package/.output/server/node_modules/@libsql/isomorphic-ws/web.mjs +11 -0
  325. package/.output/server/node_modules/@libsql/linux-x64-gnu/index.node +0 -0
  326. package/.output/server/node_modules/@libsql/linux-x64-gnu/package.json +36 -0
  327. package/.output/server/node_modules/@neon-rs/load/dist/index.js +102 -0
  328. package/.output/server/node_modules/@neon-rs/load/package.json +37 -0
  329. package/.output/server/node_modules/@noble/ciphers/_arx.js +258 -0
  330. package/.output/server/node_modules/@noble/ciphers/_poly1305.js +319 -0
  331. package/.output/server/node_modules/@noble/ciphers/chacha.js +385 -0
  332. package/.output/server/node_modules/@noble/ciphers/package.json +81 -0
  333. package/.output/server/node_modules/@noble/ciphers/utils.js +343 -0
  334. package/.output/server/node_modules/@noble/hashes/_md.js +147 -0
  335. package/.output/server/node_modules/@noble/hashes/_u64.js +67 -0
  336. package/.output/server/node_modules/@noble/hashes/hkdf.js +84 -0
  337. package/.output/server/node_modules/@noble/hashes/hmac.js +90 -0
  338. package/.output/server/node_modules/@noble/hashes/package.json +93 -0
  339. package/.output/server/node_modules/@noble/hashes/pbkdf2.js +97 -0
  340. package/.output/server/node_modules/@noble/hashes/scrypt.js +216 -0
  341. package/.output/server/node_modules/@noble/hashes/sha2.js +397 -0
  342. package/.output/server/node_modules/@noble/hashes/sha3.js +254 -0
  343. package/.output/server/node_modules/@noble/hashes/utils.js +242 -0
  344. package/.output/server/node_modules/@octokit/auth-app/dist-node/index.js +490 -0
  345. package/.output/server/node_modules/@octokit/auth-app/package.json +59 -0
  346. package/.output/server/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js +94 -0
  347. package/.output/server/node_modules/@octokit/auth-oauth-app/package.json +56 -0
  348. package/.output/server/node_modules/@octokit/auth-oauth-device/dist-bundle/index.js +138 -0
  349. package/.output/server/node_modules/@octokit/auth-oauth-device/package.json +53 -0
  350. package/.output/server/node_modules/@octokit/auth-oauth-user/dist-bundle/index.js +208 -0
  351. package/.output/server/node_modules/@octokit/auth-oauth-user/package.json +56 -0
  352. package/.output/server/node_modules/@octokit/auth-token/dist-bundle/index.js +55 -0
  353. package/.output/server/node_modules/@octokit/auth-token/package.json +50 -0
  354. package/.output/server/node_modules/@octokit/core/dist-src/index.js +141 -0
  355. package/.output/server/node_modules/@octokit/core/dist-src/version.js +4 -0
  356. package/.output/server/node_modules/@octokit/core/package.json +67 -0
  357. package/.output/server/node_modules/@octokit/endpoint/dist-bundle/index.js +346 -0
  358. package/.output/server/node_modules/@octokit/endpoint/package.json +50 -0
  359. package/.output/server/node_modules/@octokit/graphql/dist-bundle/index.js +129 -0
  360. package/.output/server/node_modules/@octokit/graphql/package.json +55 -0
  361. package/.output/server/node_modules/@octokit/oauth-authorization-url/dist-src/index.js +42 -0
  362. package/.output/server/node_modules/@octokit/oauth-authorization-url/package.json +43 -0
  363. package/.output/server/node_modules/@octokit/oauth-methods/dist-bundle/index.js +317 -0
  364. package/.output/server/node_modules/@octokit/oauth-methods/package.json +54 -0
  365. package/.output/server/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js +415 -0
  366. package/.output/server/node_modules/@octokit/plugin-paginate-rest/package.json +59 -0
  367. package/.output/server/node_modules/@octokit/plugin-request-log/dist-src/index.js +26 -0
  368. package/.output/server/node_modules/@octokit/plugin-request-log/dist-src/version.js +4 -0
  369. package/.output/server/node_modules/@octokit/plugin-request-log/package.json +51 -0
  370. package/.output/server/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +126 -0
  371. package/.output/server/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2294 -0
  372. package/.output/server/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +22 -0
  373. package/.output/server/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +5 -0
  374. package/.output/server/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +58 -0
  375. package/.output/server/node_modules/@octokit/request/dist-bundle/index.js +203 -0
  376. package/.output/server/node_modules/@octokit/request/package.json +57 -0
  377. package/.output/server/node_modules/@octokit/request-error/dist-src/index.js +41 -0
  378. package/.output/server/node_modules/@octokit/request-error/package.json +50 -0
  379. package/.output/server/node_modules/@octokit/rest/dist-src/index.js +15 -0
  380. package/.output/server/node_modules/@octokit/rest/dist-src/version.js +4 -0
  381. package/.output/server/node_modules/@octokit/rest/package.json +76 -0
  382. package/.output/server/node_modules/@octokit/webhooks/dist-bundle/index.js +871 -0
  383. package/.output/server/node_modules/@octokit/webhooks/package.json +54 -0
  384. package/.output/server/node_modules/@octokit/webhooks-methods/dist-node/index.js +65 -0
  385. package/.output/server/node_modules/@octokit/webhooks-methods/package.json +53 -0
  386. package/.output/server/node_modules/@slack/logger/dist/index.js +94 -0
  387. package/.output/server/node_modules/@slack/logger/package.json +43 -0
  388. package/.output/server/node_modules/@slack/types/dist/block-kit/block-elements.js +4 -0
  389. package/.output/server/node_modules/@slack/types/dist/block-kit/blocks.js +3 -0
  390. package/.output/server/node_modules/@slack/types/dist/block-kit/composition-objects.js +4 -0
  391. package/.output/server/node_modules/@slack/types/dist/block-kit/extensions.js +3 -0
  392. package/.output/server/node_modules/@slack/types/dist/calls.js +6 -0
  393. package/.output/server/node_modules/@slack/types/dist/chunk.js +3 -0
  394. package/.output/server/node_modules/@slack/types/dist/dialog.js +3 -0
  395. package/.output/server/node_modules/@slack/types/dist/events/app.js +3 -0
  396. package/.output/server/node_modules/@slack/types/dist/events/assistant.js +3 -0
  397. package/.output/server/node_modules/@slack/types/dist/events/call.js +3 -0
  398. package/.output/server/node_modules/@slack/types/dist/events/channel.js +3 -0
  399. package/.output/server/node_modules/@slack/types/dist/events/dnd.js +3 -0
  400. package/.output/server/node_modules/@slack/types/dist/events/email.js +3 -0
  401. package/.output/server/node_modules/@slack/types/dist/events/emoji.js +3 -0
  402. package/.output/server/node_modules/@slack/types/dist/events/file.js +4 -0
  403. package/.output/server/node_modules/@slack/types/dist/events/function.js +3 -0
  404. package/.output/server/node_modules/@slack/types/dist/events/grid-migration.js +3 -0
  405. package/.output/server/node_modules/@slack/types/dist/events/group.js +3 -0
  406. package/.output/server/node_modules/@slack/types/dist/events/im.js +3 -0
  407. package/.output/server/node_modules/@slack/types/dist/events/index.js +43 -0
  408. package/.output/server/node_modules/@slack/types/dist/events/invite.js +3 -0
  409. package/.output/server/node_modules/@slack/types/dist/events/link-shared.js +3 -0
  410. package/.output/server/node_modules/@slack/types/dist/events/member.js +3 -0
  411. package/.output/server/node_modules/@slack/types/dist/events/message-metadata.js +3 -0
  412. package/.output/server/node_modules/@slack/types/dist/events/message.js +3 -0
  413. package/.output/server/node_modules/@slack/types/dist/events/pin.js +3 -0
  414. package/.output/server/node_modules/@slack/types/dist/events/reaction.js +3 -0
  415. package/.output/server/node_modules/@slack/types/dist/events/shared-channel.js +3 -0
  416. package/.output/server/node_modules/@slack/types/dist/events/star.js +3 -0
  417. package/.output/server/node_modules/@slack/types/dist/events/steps-from-apps.js +3 -0
  418. package/.output/server/node_modules/@slack/types/dist/events/subteam.js +3 -0
  419. package/.output/server/node_modules/@slack/types/dist/events/team.js +3 -0
  420. package/.output/server/node_modules/@slack/types/dist/events/token.js +3 -0
  421. package/.output/server/node_modules/@slack/types/dist/events/user.js +3 -0
  422. package/.output/server/node_modules/@slack/types/dist/index.js +28 -0
  423. package/.output/server/node_modules/@slack/types/dist/message-attachments.js +3 -0
  424. package/.output/server/node_modules/@slack/types/dist/message-metadata.js +27 -0
  425. package/.output/server/node_modules/@slack/types/dist/views.js +3 -0
  426. package/.output/server/node_modules/@slack/types/package.json +47 -0
  427. package/.output/server/node_modules/@slack/web-api/dist/WebClient.js +818 -0
  428. package/.output/server/node_modules/@slack/web-api/dist/chat-stream.js +170 -0
  429. package/.output/server/node_modules/@slack/web-api/dist/errors.js +80 -0
  430. package/.output/server/node_modules/@slack/web-api/dist/file-upload.js +358 -0
  431. package/.output/server/node_modules/@slack/web-api/dist/helpers.js +14 -0
  432. package/.output/server/node_modules/@slack/web-api/dist/index.js +39 -0
  433. package/.output/server/node_modules/@slack/web-api/dist/instrument.js +75 -0
  434. package/.output/server/node_modules/@slack/web-api/dist/logger.js +29 -0
  435. package/.output/server/node_modules/@slack/web-api/dist/methods.js +1647 -0
  436. package/.output/server/node_modules/@slack/web-api/dist/retry-policies.js +34 -0
  437. package/.output/server/node_modules/@slack/web-api/dist/types/request/index.js +3 -0
  438. package/.output/server/node_modules/@slack/web-api/dist/types/response/index.js +3 -0
  439. package/.output/server/node_modules/@slack/web-api/package.json +76 -0
  440. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  441. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  442. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  443. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  444. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  445. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  446. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
  447. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  448. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6828 -0
  449. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  450. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1795 -0
  451. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  452. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  453. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  454. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  455. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  456. package/.output/server/node_modules/@workflow/serde/dist/index.js +30 -0
  457. package/.output/server/node_modules/@workflow/serde/package.json +35 -0
  458. package/.output/server/node_modules/asynckit/index.js +6 -0
  459. package/.output/server/node_modules/asynckit/lib/abort.js +29 -0
  460. package/.output/server/node_modules/asynckit/lib/async.js +34 -0
  461. package/.output/server/node_modules/asynckit/lib/defer.js +26 -0
  462. package/.output/server/node_modules/asynckit/lib/iterate.js +75 -0
  463. package/.output/server/node_modules/asynckit/lib/state.js +37 -0
  464. package/.output/server/node_modules/asynckit/lib/terminator.js +29 -0
  465. package/.output/server/node_modules/asynckit/package.json +63 -0
  466. package/.output/server/node_modules/asynckit/parallel.js +43 -0
  467. package/.output/server/node_modules/asynckit/serial.js +17 -0
  468. package/.output/server/node_modules/asynckit/serialOrdered.js +75 -0
  469. package/.output/server/node_modules/axios/dist/node/axios.cjs +5643 -0
  470. package/.output/server/node_modules/axios/package.json +226 -0
  471. package/.output/server/node_modules/bail/index.js +12 -0
  472. package/.output/server/node_modules/bail/package.json +73 -0
  473. package/.output/server/node_modules/before-after-hook/index.js +45 -0
  474. package/.output/server/node_modules/before-after-hook/lib/add.js +46 -0
  475. package/.output/server/node_modules/before-after-hook/lib/register.js +27 -0
  476. package/.output/server/node_modules/before-after-hook/lib/remove.js +19 -0
  477. package/.output/server/node_modules/before-after-hook/package.json +54 -0
  478. package/.output/server/node_modules/better-auth/dist/_virtual/_rolldown/runtime.mjs +36 -0
  479. package/.output/server/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs +3 -0
  480. package/.output/server/node_modules/better-auth/dist/api/index.mjs +208 -0
  481. package/.output/server/node_modules/better-auth/dist/api/middlewares/index.mjs +3 -0
  482. package/.output/server/node_modules/better-auth/dist/api/middlewares/origin-check.mjs +140 -0
  483. package/.output/server/node_modules/better-auth/dist/api/rate-limiter/index.mjs +204 -0
  484. package/.output/server/node_modules/better-auth/dist/api/routes/account.mjs +496 -0
  485. package/.output/server/node_modules/better-auth/dist/api/routes/callback.mjs +179 -0
  486. package/.output/server/node_modules/better-auth/dist/api/routes/email-verification.mjs +299 -0
  487. package/.output/server/node_modules/better-auth/dist/api/routes/error.mjs +386 -0
  488. package/.output/server/node_modules/better-auth/dist/api/routes/index.mjs +14 -0
  489. package/.output/server/node_modules/better-auth/dist/api/routes/ok.mjs +30 -0
  490. package/.output/server/node_modules/better-auth/dist/api/routes/password.mjs +199 -0
  491. package/.output/server/node_modules/better-auth/dist/api/routes/session.mjs +489 -0
  492. package/.output/server/node_modules/better-auth/dist/api/routes/sign-in.mjs +271 -0
  493. package/.output/server/node_modules/better-auth/dist/api/routes/sign-out.mjs +33 -0
  494. package/.output/server/node_modules/better-auth/dist/api/routes/sign-up.mjs +270 -0
  495. package/.output/server/node_modules/better-auth/dist/api/routes/update-session.mjs +55 -0
  496. package/.output/server/node_modules/better-auth/dist/api/routes/update-user.mjs +500 -0
  497. package/.output/server/node_modules/better-auth/dist/api/state/oauth.mjs +8 -0
  498. package/.output/server/node_modules/better-auth/dist/api/state/should-session-refresh.mjs +16 -0
  499. package/.output/server/node_modules/better-auth/dist/api/to-auth-endpoints.mjs +197 -0
  500. package/.output/server/node_modules/better-auth/dist/auth/base.mjs +69 -0
  501. package/.output/server/node_modules/better-auth/dist/auth/full.mjs +32 -0
  502. package/.output/server/node_modules/better-auth/dist/auth/trusted-origins.mjs +31 -0
  503. package/.output/server/node_modules/better-auth/dist/client/broadcast-channel.mjs +46 -0
  504. package/.output/server/node_modules/better-auth/dist/client/config.mjs +108 -0
  505. package/.output/server/node_modules/better-auth/dist/client/fetch-plugins.mjs +18 -0
  506. package/.output/server/node_modules/better-auth/dist/client/focus-manager.mjs +32 -0
  507. package/.output/server/node_modules/better-auth/dist/client/index.mjs +22 -0
  508. package/.output/server/node_modules/better-auth/dist/client/online-manager.mjs +35 -0
  509. package/.output/server/node_modules/better-auth/dist/client/parser.mjs +73 -0
  510. package/.output/server/node_modules/better-auth/dist/client/plugins/index.mjs +31 -0
  511. package/.output/server/node_modules/better-auth/dist/client/plugins/infer-plugin.mjs +11 -0
  512. package/.output/server/node_modules/better-auth/dist/client/proxy.mjs +80 -0
  513. package/.output/server/node_modules/better-auth/dist/client/query.mjs +99 -0
  514. package/.output/server/node_modules/better-auth/dist/client/session-atom.mjs +32 -0
  515. package/.output/server/node_modules/better-auth/dist/client/session-refresh.mjs +137 -0
  516. package/.output/server/node_modules/better-auth/dist/client/vanilla.mjs +20 -0
  517. package/.output/server/node_modules/better-auth/dist/client/vue/index.mjs +38 -0
  518. package/.output/server/node_modules/better-auth/dist/client/vue/vue-store.mjs +26 -0
  519. package/.output/server/node_modules/better-auth/dist/context/create-context.mjs +229 -0
  520. package/.output/server/node_modules/better-auth/dist/context/helpers.mjs +95 -0
  521. package/.output/server/node_modules/better-auth/dist/context/init.mjs +22 -0
  522. package/.output/server/node_modules/better-auth/dist/context/secret-utils.mjs +56 -0
  523. package/.output/server/node_modules/better-auth/dist/cookies/cookie-utils.mjs +109 -0
  524. package/.output/server/node_modules/better-auth/dist/cookies/index.mjs +264 -0
  525. package/.output/server/node_modules/better-auth/dist/cookies/session-store.mjs +200 -0
  526. package/.output/server/node_modules/better-auth/dist/crypto/buffer.mjs +18 -0
  527. package/.output/server/node_modules/better-auth/dist/crypto/index.mjs +72 -0
  528. package/.output/server/node_modules/better-auth/dist/crypto/jwt.mjs +144 -0
  529. package/.output/server/node_modules/better-auth/dist/crypto/password.mjs +36 -0
  530. package/.output/server/node_modules/better-auth/dist/crypto/random.mjs +8 -0
  531. package/.output/server/node_modules/better-auth/dist/db/adapter-base.mjs +28 -0
  532. package/.output/server/node_modules/better-auth/dist/db/adapter-kysely.mjs +21 -0
  533. package/.output/server/node_modules/better-auth/dist/db/field-converter.mjs +21 -0
  534. package/.output/server/node_modules/better-auth/dist/db/get-migration.mjs +341 -0
  535. package/.output/server/node_modules/better-auth/dist/db/get-schema.mjs +39 -0
  536. package/.output/server/node_modules/better-auth/dist/db/index.mjs +35 -0
  537. package/.output/server/node_modules/better-auth/dist/db/internal-adapter.mjs +638 -0
  538. package/.output/server/node_modules/better-auth/dist/db/schema.mjs +127 -0
  539. package/.output/server/node_modules/better-auth/dist/db/to-zod.mjs +26 -0
  540. package/.output/server/node_modules/better-auth/dist/db/verification-token-storage.mjs +28 -0
  541. package/.output/server/node_modules/better-auth/dist/db/with-hooks.mjs +159 -0
  542. package/.output/server/node_modules/better-auth/dist/index.mjs +27 -0
  543. package/.output/server/node_modules/better-auth/dist/oauth2/link-account.mjs +143 -0
  544. package/.output/server/node_modules/better-auth/dist/oauth2/state.mjs +51 -0
  545. package/.output/server/node_modules/better-auth/dist/oauth2/utils.mjs +32 -0
  546. package/.output/server/node_modules/better-auth/dist/plugins/access/access.mjs +46 -0
  547. package/.output/server/node_modules/better-auth/dist/plugins/access/index.mjs +3 -0
  548. package/.output/server/node_modules/better-auth/dist/plugins/additional-fields/client.mjs +11 -0
  549. package/.output/server/node_modules/better-auth/dist/plugins/admin/access/index.mjs +3 -0
  550. package/.output/server/node_modules/better-auth/dist/plugins/admin/access/statement.mjs +54 -0
  551. package/.output/server/node_modules/better-auth/dist/plugins/admin/admin.mjs +95 -0
  552. package/.output/server/node_modules/better-auth/dist/plugins/admin/client.mjs +36 -0
  553. package/.output/server/node_modules/better-auth/dist/plugins/admin/error-codes.mjs +30 -0
  554. package/.output/server/node_modules/better-auth/dist/plugins/admin/has-permission.mjs +16 -0
  555. package/.output/server/node_modules/better-auth/dist/plugins/admin/index.mjs +3 -0
  556. package/.output/server/node_modules/better-auth/dist/plugins/admin/routes.mjs +847 -0
  557. package/.output/server/node_modules/better-auth/dist/plugins/admin/schema.mjs +34 -0
  558. package/.output/server/node_modules/better-auth/dist/plugins/anonymous/client.mjs +22 -0
  559. package/.output/server/node_modules/better-auth/dist/plugins/anonymous/error-codes.mjs +16 -0
  560. package/.output/server/node_modules/better-auth/dist/plugins/anonymous/index.mjs +160 -0
  561. package/.output/server/node_modules/better-auth/dist/plugins/anonymous/schema.mjs +11 -0
  562. package/.output/server/node_modules/better-auth/dist/plugins/bearer/index.mjs +83 -0
  563. package/.output/server/node_modules/better-auth/dist/plugins/captcha/constants.mjs +22 -0
  564. package/.output/server/node_modules/better-auth/dist/plugins/captcha/error-codes.mjs +16 -0
  565. package/.output/server/node_modules/better-auth/dist/plugins/captcha/index.mjs +63 -0
  566. package/.output/server/node_modules/better-auth/dist/plugins/captcha/utils.mjs +11 -0
  567. package/.output/server/node_modules/better-auth/dist/plugins/captcha/verify-handlers/captchafox.mjs +28 -0
  568. package/.output/server/node_modules/better-auth/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.mjs +26 -0
  569. package/.output/server/node_modules/better-auth/dist/plugins/captcha/verify-handlers/google-recaptcha.mjs +30 -0
  570. package/.output/server/node_modules/better-auth/dist/plugins/captcha/verify-handlers/h-captcha.mjs +28 -0
  571. package/.output/server/node_modules/better-auth/dist/plugins/captcha/verify-handlers/index.mjs +6 -0
  572. package/.output/server/node_modules/better-auth/dist/plugins/custom-session/client.mjs +11 -0
  573. package/.output/server/node_modules/better-auth/dist/plugins/custom-session/index.mjs +78 -0
  574. package/.output/server/node_modules/better-auth/dist/plugins/device-authorization/client.mjs +18 -0
  575. package/.output/server/node_modules/better-auth/dist/plugins/device-authorization/error-codes.mjs +21 -0
  576. package/.output/server/node_modules/better-auth/dist/plugins/device-authorization/index.mjs +50 -0
  577. package/.output/server/node_modules/better-auth/dist/plugins/device-authorization/routes.mjs +510 -0
  578. package/.output/server/node_modules/better-auth/dist/plugins/device-authorization/schema.mjs +57 -0
  579. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/client.mjs +18 -0
  580. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/error-codes.mjs +12 -0
  581. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/index.mjs +146 -0
  582. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/otp-token.mjs +29 -0
  583. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/routes.mjs +803 -0
  584. package/.output/server/node_modules/better-auth/dist/plugins/email-otp/utils.mjs +17 -0
  585. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/client.mjs +14 -0
  586. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/error-codes.mjs +17 -0
  587. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/index.mjs +145 -0
  588. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/auth0.mjs +45 -0
  589. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/gumroad.mjs +60 -0
  590. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/hubspot.mjs +60 -0
  591. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/index.mjs +11 -0
  592. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/keycloak.mjs +45 -0
  593. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/line.mjs +91 -0
  594. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/microsoft-entra-id.mjs +66 -0
  595. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/okta.mjs +45 -0
  596. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/patreon.mjs +59 -0
  597. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/providers/slack.mjs +61 -0
  598. package/.output/server/node_modules/better-auth/dist/plugins/generic-oauth/routes.mjs +411 -0
  599. package/.output/server/node_modules/better-auth/dist/plugins/haveibeenpwned/index.mjs +57 -0
  600. package/.output/server/node_modules/better-auth/dist/plugins/index.mjs +50 -0
  601. package/.output/server/node_modules/better-auth/dist/plugins/jwt/adapter.mjs +27 -0
  602. package/.output/server/node_modules/better-auth/dist/plugins/jwt/client.mjs +19 -0
  603. package/.output/server/node_modules/better-auth/dist/plugins/jwt/index.mjs +202 -0
  604. package/.output/server/node_modules/better-auth/dist/plugins/jwt/schema.mjs +23 -0
  605. package/.output/server/node_modules/better-auth/dist/plugins/jwt/sign.mjs +67 -0
  606. package/.output/server/node_modules/better-auth/dist/plugins/jwt/utils.mjs +64 -0
  607. package/.output/server/node_modules/better-auth/dist/plugins/jwt/verify.mjs +48 -0
  608. package/.output/server/node_modules/better-auth/dist/plugins/last-login-method/client.mjs +32 -0
  609. package/.output/server/node_modules/better-auth/dist/plugins/last-login-method/index.mjs +78 -0
  610. package/.output/server/node_modules/better-auth/dist/plugins/magic-link/client.mjs +11 -0
  611. package/.output/server/node_modules/better-auth/dist/plugins/magic-link/index.mjs +177 -0
  612. package/.output/server/node_modules/better-auth/dist/plugins/magic-link/utils.mjs +12 -0
  613. package/.output/server/node_modules/better-auth/dist/plugins/mcp/authorize.mjs +133 -0
  614. package/.output/server/node_modules/better-auth/dist/plugins/mcp/index.mjs +718 -0
  615. package/.output/server/node_modules/better-auth/dist/plugins/multi-session/client.mjs +20 -0
  616. package/.output/server/node_modules/better-auth/dist/plugins/multi-session/error-codes.mjs +8 -0
  617. package/.output/server/node_modules/better-auth/dist/plugins/multi-session/index.mjs +171 -0
  618. package/.output/server/node_modules/better-auth/dist/plugins/oauth-proxy/index.mjs +306 -0
  619. package/.output/server/node_modules/better-auth/dist/plugins/oauth-proxy/utils.mjs +51 -0
  620. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/authorize.mjs +203 -0
  621. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/client.mjs +11 -0
  622. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/error.mjs +27 -0
  623. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/index.mjs +1093 -0
  624. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/schema.mjs +132 -0
  625. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/utils/prompt.mjs +19 -0
  626. package/.output/server/node_modules/better-auth/dist/plugins/oidc-provider/utils.mjs +15 -0
  627. package/.output/server/node_modules/better-auth/dist/plugins/one-tap/client.mjs +188 -0
  628. package/.output/server/node_modules/better-auth/dist/plugins/one-tap/index.mjs +95 -0
  629. package/.output/server/node_modules/better-auth/dist/plugins/one-time-token/client.mjs +11 -0
  630. package/.output/server/node_modules/better-auth/dist/plugins/one-time-token/index.mjs +82 -0
  631. package/.output/server/node_modules/better-auth/dist/plugins/one-time-token/utils.mjs +12 -0
  632. package/.output/server/node_modules/better-auth/dist/plugins/open-api/generator.mjs +315 -0
  633. package/.output/server/node_modules/better-auth/dist/plugins/open-api/index.mjs +67 -0
  634. package/.output/server/node_modules/better-auth/dist/plugins/open-api/logo.mjs +15 -0
  635. package/.output/server/node_modules/better-auth/dist/plugins/organization/access/index.mjs +3 -0
  636. package/.output/server/node_modules/better-auth/dist/plugins/organization/access/statement.mjs +81 -0
  637. package/.output/server/node_modules/better-auth/dist/plugins/organization/adapter.mjs +624 -0
  638. package/.output/server/node_modules/better-auth/dist/plugins/organization/call.mjs +19 -0
  639. package/.output/server/node_modules/better-auth/dist/plugins/organization/client.mjs +107 -0
  640. package/.output/server/node_modules/better-auth/dist/plugins/organization/error-codes.mjs +66 -0
  641. package/.output/server/node_modules/better-auth/dist/plugins/organization/has-permission.mjs +36 -0
  642. package/.output/server/node_modules/better-auth/dist/plugins/organization/index.mjs +5 -0
  643. package/.output/server/node_modules/better-auth/dist/plugins/organization/organization.mjs +428 -0
  644. package/.output/server/node_modules/better-auth/dist/plugins/organization/permission.mjs +16 -0
  645. package/.output/server/node_modules/better-auth/dist/plugins/organization/routes/crud-access-control.mjs +678 -0
  646. package/.output/server/node_modules/better-auth/dist/plugins/organization/routes/crud-invites.mjs +551 -0
  647. package/.output/server/node_modules/better-auth/dist/plugins/organization/routes/crud-members.mjs +466 -0
  648. package/.output/server/node_modules/better-auth/dist/plugins/organization/routes/crud-org.mjs +423 -0
  649. package/.output/server/node_modules/better-auth/dist/plugins/organization/routes/crud-team.mjs +676 -0
  650. package/.output/server/node_modules/better-auth/dist/plugins/organization/schema.mjs +68 -0
  651. package/.output/server/node_modules/better-auth/dist/plugins/phone-number/client.mjs +20 -0
  652. package/.output/server/node_modules/better-auth/dist/plugins/phone-number/error-codes.mjs +21 -0
  653. package/.output/server/node_modules/better-auth/dist/plugins/phone-number/index.mjs +49 -0
  654. package/.output/server/node_modules/better-auth/dist/plugins/phone-number/routes.mjs +472 -0
  655. package/.output/server/node_modules/better-auth/dist/plugins/phone-number/schema.mjs +20 -0
  656. package/.output/server/node_modules/better-auth/dist/plugins/siwe/client.mjs +11 -0
  657. package/.output/server/node_modules/better-auth/dist/plugins/siwe/index.mjs +204 -0
  658. package/.output/server/node_modules/better-auth/dist/plugins/siwe/schema.mjs +32 -0
  659. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/auth-helpers.mjs +31 -0
  660. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/cookie-builder.mjs +58 -0
  661. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/db-helpers.mjs +69 -0
  662. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/factories.mjs +42 -0
  663. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/index.mjs +89 -0
  664. package/.output/server/node_modules/better-auth/dist/plugins/test-utils/otp-sink.mjs +23 -0
  665. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/backup-codes/index.mjs +277 -0
  666. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/client.mjs +37 -0
  667. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/constant.mjs +8 -0
  668. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs +18 -0
  669. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/index.mjs +234 -0
  670. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/otp/index.mjs +199 -0
  671. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/schema.mjs +36 -0
  672. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/totp/index.mjs +157 -0
  673. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/utils.mjs +12 -0
  674. package/.output/server/node_modules/better-auth/dist/plugins/two-factor/verify-two-factor.mjs +85 -0
  675. package/.output/server/node_modules/better-auth/dist/plugins/username/client.mjs +18 -0
  676. package/.output/server/node_modules/better-auth/dist/plugins/username/error-codes.mjs +17 -0
  677. package/.output/server/node_modules/better-auth/dist/plugins/username/index.mjs +234 -0
  678. package/.output/server/node_modules/better-auth/dist/plugins/username/schema.mjs +26 -0
  679. package/.output/server/node_modules/better-auth/dist/state.mjs +107 -0
  680. package/.output/server/node_modules/better-auth/dist/utils/boolean.mjs +8 -0
  681. package/.output/server/node_modules/better-auth/dist/utils/constants.mjs +6 -0
  682. package/.output/server/node_modules/better-auth/dist/utils/date.mjs +8 -0
  683. package/.output/server/node_modules/better-auth/dist/utils/get-request-ip.mjs +23 -0
  684. package/.output/server/node_modules/better-auth/dist/utils/hashing.mjs +21 -0
  685. package/.output/server/node_modules/better-auth/dist/utils/hide-metadata.mjs +6 -0
  686. package/.output/server/node_modules/better-auth/dist/utils/index.mjs +6 -0
  687. package/.output/server/node_modules/better-auth/dist/utils/is-api-error.mjs +11 -0
  688. package/.output/server/node_modules/better-auth/dist/utils/is-atom.mjs +8 -0
  689. package/.output/server/node_modules/better-auth/dist/utils/is-promise.mjs +8 -0
  690. package/.output/server/node_modules/better-auth/dist/utils/middleware-response.mjs +9 -0
  691. package/.output/server/node_modules/better-auth/dist/utils/password.mjs +26 -0
  692. package/.output/server/node_modules/better-auth/dist/utils/plugin-helper.mjs +17 -0
  693. package/.output/server/node_modules/better-auth/dist/utils/shim.mjs +24 -0
  694. package/.output/server/node_modules/better-auth/dist/utils/time.mjs +100 -0
  695. package/.output/server/node_modules/better-auth/dist/utils/url.mjs +198 -0
  696. package/.output/server/node_modules/better-auth/dist/utils/wildcard.mjs +108 -0
  697. package/.output/server/node_modules/better-auth/package.json +617 -0
  698. package/.output/server/node_modules/better-call/dist/context.mjs +103 -0
  699. package/.output/server/node_modules/better-call/dist/cookies.mjs +84 -0
  700. package/.output/server/node_modules/better-call/dist/crypto.mjs +36 -0
  701. package/.output/server/node_modules/better-call/dist/endpoint.mjs +70 -0
  702. package/.output/server/node_modules/better-call/dist/error.mjs +133 -0
  703. package/.output/server/node_modules/better-call/dist/index.mjs +10 -0
  704. package/.output/server/node_modules/better-call/dist/middleware.mjs +52 -0
  705. package/.output/server/node_modules/better-call/dist/openapi.mjs +189 -0
  706. package/.output/server/node_modules/better-call/dist/router.mjs +117 -0
  707. package/.output/server/node_modules/better-call/dist/to-response.mjs +96 -0
  708. package/.output/server/node_modules/better-call/dist/utils.mjs +82 -0
  709. package/.output/server/node_modules/better-call/dist/validator.mjs +57 -0
  710. package/.output/server/node_modules/better-call/package.json +96 -0
  711. package/.output/server/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  712. package/.output/server/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  713. package/.output/server/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  714. package/.output/server/node_modules/call-bind-apply-helpers/index.js +15 -0
  715. package/.output/server/node_modules/call-bind-apply-helpers/package.json +85 -0
  716. package/.output/server/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  717. package/.output/server/node_modules/ccount/index.js +27 -0
  718. package/.output/server/node_modules/ccount/package.json +71 -0
  719. package/.output/server/node_modules/character-entities/index.js +2132 -0
  720. package/.output/server/node_modules/character-entities/package.json +78 -0
  721. package/.output/server/node_modules/chat/dist/chunk-JW7GYSMH.js +1106 -0
  722. package/.output/server/node_modules/chat/dist/index.js +3466 -0
  723. package/.output/server/node_modules/chat/package.json +72 -0
  724. package/.output/server/node_modules/combined-stream/lib/combined_stream.js +208 -0
  725. package/.output/server/node_modules/combined-stream/package.json +25 -0
  726. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  727. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  728. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  729. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  730. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  731. package/.output/server/node_modules/consola/package.json +136 -0
  732. package/.output/server/node_modules/cross-fetch/dist/node-ponyfill.js +22 -0
  733. package/.output/server/node_modules/cross-fetch/package.json +129 -0
  734. package/.output/server/node_modules/debug/package.json +64 -0
  735. package/.output/server/node_modules/debug/src/browser.js +272 -0
  736. package/.output/server/node_modules/debug/src/common.js +292 -0
  737. package/.output/server/node_modules/debug/src/index.js +10 -0
  738. package/.output/server/node_modules/debug/src/node.js +263 -0
  739. package/.output/server/node_modules/decode-named-character-reference/index.js +19 -0
  740. package/.output/server/node_modules/decode-named-character-reference/package.json +90 -0
  741. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  742. package/.output/server/node_modules/defu/package.json +43 -0
  743. package/.output/server/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  744. package/.output/server/node_modules/delayed-stream/package.json +27 -0
  745. package/.output/server/node_modules/detect-libc/lib/detect-libc.js +279 -0
  746. package/.output/server/node_modules/detect-libc/lib/filesystem.js +41 -0
  747. package/.output/server/node_modules/detect-libc/lib/process.js +19 -0
  748. package/.output/server/node_modules/detect-libc/package.json +40 -0
  749. package/.output/server/node_modules/devalue/index.js +4 -0
  750. package/.output/server/node_modules/devalue/package.json +37 -0
  751. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  752. package/.output/server/node_modules/devalue/src/constants.js +7 -0
  753. package/.output/server/node_modules/devalue/src/parse.js +265 -0
  754. package/.output/server/node_modules/devalue/src/stringify.js +350 -0
  755. package/.output/server/node_modules/devalue/src/uneval.js +490 -0
  756. package/.output/server/node_modules/devalue/src/utils.js +148 -0
  757. package/.output/server/node_modules/devlop/lib/default.js +9 -0
  758. package/.output/server/node_modules/devlop/package.json +80 -0
  759. package/.output/server/node_modules/dunder-proto/get.js +30 -0
  760. package/.output/server/node_modules/dunder-proto/package.json +76 -0
  761. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  762. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  763. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  764. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  765. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  766. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  767. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  768. package/.output/server/node_modules/entities/package.json +120 -0
  769. package/.output/server/node_modules/es-define-property/index.js +14 -0
  770. package/.output/server/node_modules/es-define-property/package.json +81 -0
  771. package/.output/server/node_modules/es-errors/eval.js +4 -0
  772. package/.output/server/node_modules/es-errors/index.js +4 -0
  773. package/.output/server/node_modules/es-errors/package.json +80 -0
  774. package/.output/server/node_modules/es-errors/range.js +4 -0
  775. package/.output/server/node_modules/es-errors/ref.js +4 -0
  776. package/.output/server/node_modules/es-errors/syntax.js +4 -0
  777. package/.output/server/node_modules/es-errors/type.js +4 -0
  778. package/.output/server/node_modules/es-errors/uri.js +4 -0
  779. package/.output/server/node_modules/es-object-atoms/index.js +4 -0
  780. package/.output/server/node_modules/es-object-atoms/package.json +80 -0
  781. package/.output/server/node_modules/es-set-tostringtag/index.js +35 -0
  782. package/.output/server/node_modules/es-set-tostringtag/package.json +78 -0
  783. package/.output/server/node_modules/escape-string-regexp/index.js +11 -0
  784. package/.output/server/node_modules/escape-string-regexp/package.json +40 -0
  785. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  786. package/.output/server/node_modules/estree-walker/package.json +37 -0
  787. package/.output/server/node_modules/extend/index.js +117 -0
  788. package/.output/server/node_modules/extend/package.json +42 -0
  789. package/.output/server/node_modules/fast-content-type-parse/index.js +169 -0
  790. package/.output/server/node_modules/fast-content-type-parse/package.json +74 -0
  791. package/.output/server/node_modules/follow-redirects/debug.js +15 -0
  792. package/.output/server/node_modules/follow-redirects/index.js +686 -0
  793. package/.output/server/node_modules/follow-redirects/package.json +58 -0
  794. package/.output/server/node_modules/form-data/lib/form_data.js +494 -0
  795. package/.output/server/node_modules/form-data/lib/populate.js +10 -0
  796. package/.output/server/node_modules/form-data/package.json +82 -0
  797. package/.output/server/node_modules/function-bind/implementation.js +84 -0
  798. package/.output/server/node_modules/function-bind/index.js +5 -0
  799. package/.output/server/node_modules/function-bind/package.json +87 -0
  800. package/.output/server/node_modules/get-intrinsic/index.js +378 -0
  801. package/.output/server/node_modules/get-intrinsic/package.json +97 -0
  802. package/.output/server/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  803. package/.output/server/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  804. package/.output/server/node_modules/get-proto/index.js +27 -0
  805. package/.output/server/node_modules/get-proto/package.json +81 -0
  806. package/.output/server/node_modules/gopd/gOPD.js +4 -0
  807. package/.output/server/node_modules/gopd/index.js +15 -0
  808. package/.output/server/node_modules/gopd/package.json +77 -0
  809. package/.output/server/node_modules/has-symbols/index.js +14 -0
  810. package/.output/server/node_modules/has-symbols/package.json +111 -0
  811. package/.output/server/node_modules/has-symbols/shams.js +45 -0
  812. package/.output/server/node_modules/has-tostringtag/package.json +108 -0
  813. package/.output/server/node_modules/has-tostringtag/shams.js +8 -0
  814. package/.output/server/node_modules/hasown/index.js +8 -0
  815. package/.output/server/node_modules/hasown/package.json +92 -0
  816. package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
  817. package/.output/server/node_modules/hookable/package.json +53 -0
  818. package/.output/server/node_modules/is-electron/index.js +21 -0
  819. package/.output/server/node_modules/is-electron/package.json +34 -0
  820. package/.output/server/node_modules/is-plain-obj/index.js +8 -0
  821. package/.output/server/node_modules/is-plain-obj/package.json +41 -0
  822. package/.output/server/node_modules/is-stream/index.js +28 -0
  823. package/.output/server/node_modules/is-stream/package.json +42 -0
  824. package/.output/server/node_modules/jose/dist/webapi/index.js +32 -0
  825. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
  826. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
  827. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +159 -0
  828. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +167 -0
  829. package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
  830. package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +182 -0
  831. package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
  832. package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
  833. package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +119 -0
  834. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
  835. package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
  836. package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
  837. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +89 -0
  838. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +110 -0
  839. package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +70 -0
  840. package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
  841. package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
  842. package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
  843. package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
  844. package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
  845. package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
  846. package/.output/server/node_modules/jose/dist/webapi/key/export.js +11 -0
  847. package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
  848. package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
  849. package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
  850. package/.output/server/node_modules/jose/dist/webapi/lib/aesgcmkw.js +15 -0
  851. package/.output/server/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
  852. package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
  853. package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
  854. package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
  855. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
  856. package/.output/server/node_modules/jose/dist/webapi/lib/content_encryption.js +217 -0
  857. package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +136 -0
  858. package/.output/server/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
  859. package/.output/server/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
  860. package/.output/server/node_modules/jose/dist/webapi/lib/helpers.js +19 -0
  861. package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
  862. package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
  863. package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +107 -0
  864. package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
  865. package/.output/server/node_modules/jose/dist/webapi/lib/key_management.js +186 -0
  866. package/.output/server/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
  867. package/.output/server/node_modules/jose/dist/webapi/lib/normalize_key.js +166 -0
  868. package/.output/server/node_modules/jose/dist/webapi/lib/pbes2kw.js +39 -0
  869. package/.output/server/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
  870. package/.output/server/node_modules/jose/dist/webapi/lib/signing.js +68 -0
  871. package/.output/server/node_modules/jose/dist/webapi/lib/type_checks.js +40 -0
  872. package/.output/server/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
  873. package/.output/server/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
  874. package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +30 -0
  875. package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
  876. package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
  877. package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
  878. package/.output/server/node_modules/jose/package.json +200 -0
  879. package/.output/server/node_modules/js-base64/base64.mjs +301 -0
  880. package/.output/server/node_modules/js-base64/package.json +43 -0
  881. package/.output/server/node_modules/js-yaml/dist/js-yaml.mjs +3856 -0
  882. package/.output/server/node_modules/js-yaml/package.json +66 -0
  883. package/.output/server/node_modules/json-with-bigint/json-with-bigint.js +154 -0
  884. package/.output/server/node_modules/json-with-bigint/package.json +31 -0
  885. package/.output/server/node_modules/kysely/dist/esm/dialect/database-introspector.js +2 -0
  886. package/.output/server/node_modules/kysely/dist/esm/dialect/dialect-adapter-base.js +21 -0
  887. package/.output/server/node_modules/kysely/dist/esm/dialect/dialect-adapter.js +2 -0
  888. package/.output/server/node_modules/kysely/dist/esm/dialect/dialect.js +2 -0
  889. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-adapter.js +25 -0
  890. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-dialect-config.js +2 -0
  891. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-dialect.js +62 -0
  892. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-driver.js +356 -0
  893. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-introspector.js +107 -0
  894. package/.output/server/node_modules/kysely/dist/esm/dialect/mssql/mssql-query-compiler.js +80 -0
  895. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-adapter.js +25 -0
  896. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-dialect-config.js +2 -0
  897. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-dialect.js +53 -0
  898. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-driver.js +177 -0
  899. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-introspector.js +76 -0
  900. package/.output/server/node_modules/kysely/dist/esm/dialect/mysql/mysql-query-compiler.js +68 -0
  901. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-adapter.js +22 -0
  902. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect-config.js +2 -0
  903. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect.js +53 -0
  904. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js +131 -0
  905. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-introspector.js +97 -0
  906. package/.output/server/node_modules/kysely/dist/esm/dialect/postgres/postgres-query-compiler.js +8 -0
  907. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-adapter.js +20 -0
  908. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-dialect-config.js +2 -0
  909. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-dialect.js +48 -0
  910. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-driver.js +110 -0
  911. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-introspector.js +91 -0
  912. package/.output/server/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-query-compiler.js +34 -0
  913. package/.output/server/node_modules/kysely/dist/esm/driver/connection-provider.js +2 -0
  914. package/.output/server/node_modules/kysely/dist/esm/driver/database-connection.js +2 -0
  915. package/.output/server/node_modules/kysely/dist/esm/driver/default-connection-provider.js +16 -0
  916. package/.output/server/node_modules/kysely/dist/esm/driver/driver.js +19 -0
  917. package/.output/server/node_modules/kysely/dist/esm/driver/dummy-driver.js +80 -0
  918. package/.output/server/node_modules/kysely/dist/esm/driver/runtime-driver.js +162 -0
  919. package/.output/server/node_modules/kysely/dist/esm/driver/single-connection-provider.js +26 -0
  920. package/.output/server/node_modules/kysely/dist/esm/dynamic/dynamic-reference-builder.js +32 -0
  921. package/.output/server/node_modules/kysely/dist/esm/dynamic/dynamic-table-builder.js +41 -0
  922. package/.output/server/node_modules/kysely/dist/esm/dynamic/dynamic.js +129 -0
  923. package/.output/server/node_modules/kysely/dist/esm/expression/expression-builder.js +125 -0
  924. package/.output/server/node_modules/kysely/dist/esm/expression/expression-wrapper.js +128 -0
  925. package/.output/server/node_modules/kysely/dist/esm/expression/expression.js +12 -0
  926. package/.output/server/node_modules/kysely/dist/esm/index.js +212 -0
  927. package/.output/server/node_modules/kysely/dist/esm/kysely.js +917 -0
  928. package/.output/server/node_modules/kysely/dist/esm/migration/file-migration-provider.js +49 -0
  929. package/.output/server/node_modules/kysely/dist/esm/migration/migrator.js +608 -0
  930. package/.output/server/node_modules/kysely/dist/esm/operation-node/add-column-node.js +16 -0
  931. package/.output/server/node_modules/kysely/dist/esm/operation-node/add-constraint-node.js +16 -0
  932. package/.output/server/node_modules/kysely/dist/esm/operation-node/add-index-node.js +29 -0
  933. package/.output/server/node_modules/kysely/dist/esm/operation-node/aggregate-function-node.js +56 -0
  934. package/.output/server/node_modules/kysely/dist/esm/operation-node/alias-node.js +17 -0
  935. package/.output/server/node_modules/kysely/dist/esm/operation-node/alter-column-node.js +18 -0
  936. package/.output/server/node_modules/kysely/dist/esm/operation-node/alter-table-node.js +30 -0
  937. package/.output/server/node_modules/kysely/dist/esm/operation-node/and-node.js +17 -0
  938. package/.output/server/node_modules/kysely/dist/esm/operation-node/binary-operation-node.js +18 -0
  939. package/.output/server/node_modules/kysely/dist/esm/operation-node/case-node.js +40 -0
  940. package/.output/server/node_modules/kysely/dist/esm/operation-node/cast-node.js +17 -0
  941. package/.output/server/node_modules/kysely/dist/esm/operation-node/check-constraint-node.js +20 -0
  942. package/.output/server/node_modules/kysely/dist/esm/operation-node/collate-node.js +17 -0
  943. package/.output/server/node_modules/kysely/dist/esm/operation-node/column-definition-node.js +40 -0
  944. package/.output/server/node_modules/kysely/dist/esm/operation-node/column-node.js +17 -0
  945. package/.output/server/node_modules/kysely/dist/esm/operation-node/column-update-node.js +17 -0
  946. package/.output/server/node_modules/kysely/dist/esm/operation-node/common-table-expression-name-node.js +21 -0
  947. package/.output/server/node_modules/kysely/dist/esm/operation-node/common-table-expression-node.js +23 -0
  948. package/.output/server/node_modules/kysely/dist/esm/operation-node/constraint-node.js +2 -0
  949. package/.output/server/node_modules/kysely/dist/esm/operation-node/create-index-node.js +29 -0
  950. package/.output/server/node_modules/kysely/dist/esm/operation-node/create-schema-node.js +24 -0
  951. package/.output/server/node_modules/kysely/dist/esm/operation-node/create-table-node.js +54 -0
  952. package/.output/server/node_modules/kysely/dist/esm/operation-node/create-type-node.js +24 -0
  953. package/.output/server/node_modules/kysely/dist/esm/operation-node/create-view-node.js +23 -0
  954. package/.output/server/node_modules/kysely/dist/esm/operation-node/data-type-node.js +83 -0
  955. package/.output/server/node_modules/kysely/dist/esm/operation-node/default-insert-value-node.js +15 -0
  956. package/.output/server/node_modules/kysely/dist/esm/operation-node/default-value-node.js +16 -0
  957. package/.output/server/node_modules/kysely/dist/esm/operation-node/delete-query-node.js +50 -0
  958. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-column-node.js +17 -0
  959. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-constraint-node.js +23 -0
  960. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-index-node.js +24 -0
  961. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-schema-node.js +24 -0
  962. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-table-node.js +23 -0
  963. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-type-node.js +22 -0
  964. package/.output/server/node_modules/kysely/dist/esm/operation-node/drop-view-node.js +23 -0
  965. package/.output/server/node_modules/kysely/dist/esm/operation-node/explain-node.js +17 -0
  966. package/.output/server/node_modules/kysely/dist/esm/operation-node/fetch-node.js +18 -0
  967. package/.output/server/node_modules/kysely/dist/esm/operation-node/foreign-key-constraint-node.js +28 -0
  968. package/.output/server/node_modules/kysely/dist/esm/operation-node/from-node.js +22 -0
  969. package/.output/server/node_modules/kysely/dist/esm/operation-node/function-node.js +17 -0
  970. package/.output/server/node_modules/kysely/dist/esm/operation-node/generated-node.js +29 -0
  971. package/.output/server/node_modules/kysely/dist/esm/operation-node/group-by-item-node.js +16 -0
  972. package/.output/server/node_modules/kysely/dist/esm/operation-node/group-by-node.js +22 -0
  973. package/.output/server/node_modules/kysely/dist/esm/operation-node/having-node.js +26 -0
  974. package/.output/server/node_modules/kysely/dist/esm/operation-node/identifier-node.js +16 -0
  975. package/.output/server/node_modules/kysely/dist/esm/operation-node/insert-query-node.js +29 -0
  976. package/.output/server/node_modules/kysely/dist/esm/operation-node/join-node.js +35 -0
  977. package/.output/server/node_modules/kysely/dist/esm/operation-node/json-operator-chain-node.js +23 -0
  978. package/.output/server/node_modules/kysely/dist/esm/operation-node/json-path-leg-node.js +17 -0
  979. package/.output/server/node_modules/kysely/dist/esm/operation-node/json-path-node.js +23 -0
  980. package/.output/server/node_modules/kysely/dist/esm/operation-node/json-reference-node.js +23 -0
  981. package/.output/server/node_modules/kysely/dist/esm/operation-node/limit-node.js +16 -0
  982. package/.output/server/node_modules/kysely/dist/esm/operation-node/list-node.js +16 -0
  983. package/.output/server/node_modules/kysely/dist/esm/operation-node/matched-node.js +17 -0
  984. package/.output/server/node_modules/kysely/dist/esm/operation-node/merge-query-node.js +43 -0
  985. package/.output/server/node_modules/kysely/dist/esm/operation-node/modify-column-node.js +16 -0
  986. package/.output/server/node_modules/kysely/dist/esm/operation-node/offset-node.js +16 -0
  987. package/.output/server/node_modules/kysely/dist/esm/operation-node/on-conflict-node.js +66 -0
  988. package/.output/server/node_modules/kysely/dist/esm/operation-node/on-duplicate-key-node.js +16 -0
  989. package/.output/server/node_modules/kysely/dist/esm/operation-node/on-node.js +26 -0
  990. package/.output/server/node_modules/kysely/dist/esm/operation-node/operation-node-source.js +5 -0
  991. package/.output/server/node_modules/kysely/dist/esm/operation-node/operation-node-transformer.js +926 -0
  992. package/.output/server/node_modules/kysely/dist/esm/operation-node/operation-node-visitor.js +112 -0
  993. package/.output/server/node_modules/kysely/dist/esm/operation-node/operation-node.js +2 -0
  994. package/.output/server/node_modules/kysely/dist/esm/operation-node/operator-node.js +100 -0
  995. package/.output/server/node_modules/kysely/dist/esm/operation-node/or-action-node.js +16 -0
  996. package/.output/server/node_modules/kysely/dist/esm/operation-node/or-node.js +17 -0
  997. package/.output/server/node_modules/kysely/dist/esm/operation-node/order-by-item-node.js +23 -0
  998. package/.output/server/node_modules/kysely/dist/esm/operation-node/order-by-node.js +22 -0
  999. package/.output/server/node_modules/kysely/dist/esm/operation-node/output-node.js +24 -0
  1000. package/.output/server/node_modules/kysely/dist/esm/operation-node/over-node.js +33 -0
  1001. package/.output/server/node_modules/kysely/dist/esm/operation-node/parens-node.js +16 -0
  1002. package/.output/server/node_modules/kysely/dist/esm/operation-node/partition-by-item-node.js +16 -0
  1003. package/.output/server/node_modules/kysely/dist/esm/operation-node/partition-by-node.js +22 -0
  1004. package/.output/server/node_modules/kysely/dist/esm/operation-node/primary-key-constraint-node.js +30 -0
  1005. package/.output/server/node_modules/kysely/dist/esm/operation-node/primitive-value-list-node.js +16 -0
  1006. package/.output/server/node_modules/kysely/dist/esm/operation-node/query-node.js +100 -0
  1007. package/.output/server/node_modules/kysely/dist/esm/operation-node/raw-node.js +26 -0
  1008. package/.output/server/node_modules/kysely/dist/esm/operation-node/reference-node.js +25 -0
  1009. package/.output/server/node_modules/kysely/dist/esm/operation-node/references-node.js +36 -0
  1010. package/.output/server/node_modules/kysely/dist/esm/operation-node/refresh-materialized-view-node.js +23 -0
  1011. package/.output/server/node_modules/kysely/dist/esm/operation-node/rename-column-node.js +18 -0
  1012. package/.output/server/node_modules/kysely/dist/esm/operation-node/rename-constraint-node.js +18 -0
  1013. package/.output/server/node_modules/kysely/dist/esm/operation-node/returning-node.js +24 -0
  1014. package/.output/server/node_modules/kysely/dist/esm/operation-node/schemable-identifier-node.js +24 -0
  1015. package/.output/server/node_modules/kysely/dist/esm/operation-node/select-all-node.js +15 -0
  1016. package/.output/server/node_modules/kysely/dist/esm/operation-node/select-modifier-node.js +23 -0
  1017. package/.output/server/node_modules/kysely/dist/esm/operation-node/select-query-node.js +127 -0
  1018. package/.output/server/node_modules/kysely/dist/esm/operation-node/selection-node.js +30 -0
  1019. package/.output/server/node_modules/kysely/dist/esm/operation-node/set-operation-node.js +18 -0
  1020. package/.output/server/node_modules/kysely/dist/esm/operation-node/simple-reference-expression-node.js +2 -0
  1021. package/.output/server/node_modules/kysely/dist/esm/operation-node/table-node.js +23 -0
  1022. package/.output/server/node_modules/kysely/dist/esm/operation-node/top-node.js +17 -0
  1023. package/.output/server/node_modules/kysely/dist/esm/operation-node/tuple-node.js +16 -0
  1024. package/.output/server/node_modules/kysely/dist/esm/operation-node/unary-operation-node.js +17 -0
  1025. package/.output/server/node_modules/kysely/dist/esm/operation-node/unique-constraint-node.js +28 -0
  1026. package/.output/server/node_modules/kysely/dist/esm/operation-node/update-query-node.js +48 -0
  1027. package/.output/server/node_modules/kysely/dist/esm/operation-node/using-node.js +22 -0
  1028. package/.output/server/node_modules/kysely/dist/esm/operation-node/value-list-node.js +16 -0
  1029. package/.output/server/node_modules/kysely/dist/esm/operation-node/value-node.js +23 -0
  1030. package/.output/server/node_modules/kysely/dist/esm/operation-node/values-node.js +16 -0
  1031. package/.output/server/node_modules/kysely/dist/esm/operation-node/when-node.js +22 -0
  1032. package/.output/server/node_modules/kysely/dist/esm/operation-node/where-node.js +26 -0
  1033. package/.output/server/node_modules/kysely/dist/esm/operation-node/with-node.js +23 -0
  1034. package/.output/server/node_modules/kysely/dist/esm/package.json +1 -0
  1035. package/.output/server/node_modules/kysely/dist/esm/parser/binary-operation-parser.js +68 -0
  1036. package/.output/server/node_modules/kysely/dist/esm/parser/data-type-parser.js +12 -0
  1037. package/.output/server/node_modules/kysely/dist/esm/parser/default-value-parser.js +8 -0
  1038. package/.output/server/node_modules/kysely/dist/esm/parser/expression-parser.js +26 -0
  1039. package/.output/server/node_modules/kysely/dist/esm/parser/fetch-parser.js +15 -0
  1040. package/.output/server/node_modules/kysely/dist/esm/parser/group-by-parser.js +9 -0
  1041. package/.output/server/node_modules/kysely/dist/esm/parser/identifier-parser.js +20 -0
  1042. package/.output/server/node_modules/kysely/dist/esm/parser/insert-values-parser.js +62 -0
  1043. package/.output/server/node_modules/kysely/dist/esm/parser/join-parser.js +28 -0
  1044. package/.output/server/node_modules/kysely/dist/esm/parser/merge-parser.js +28 -0
  1045. package/.output/server/node_modules/kysely/dist/esm/parser/on-commit-action-parse.js +8 -0
  1046. package/.output/server/node_modules/kysely/dist/esm/parser/on-modify-action-parser.js +8 -0
  1047. package/.output/server/node_modules/kysely/dist/esm/parser/order-by-parser.js +67 -0
  1048. package/.output/server/node_modules/kysely/dist/esm/parser/parse-utils.js +33 -0
  1049. package/.output/server/node_modules/kysely/dist/esm/parser/partition-by-parser.js +6 -0
  1050. package/.output/server/node_modules/kysely/dist/esm/parser/reference-parser.js +95 -0
  1051. package/.output/server/node_modules/kysely/dist/esm/parser/savepoint-parser.js +9 -0
  1052. package/.output/server/node_modules/kysely/dist/esm/parser/select-parser.js +47 -0
  1053. package/.output/server/node_modules/kysely/dist/esm/parser/set-operation-parser.js +14 -0
  1054. package/.output/server/node_modules/kysely/dist/esm/parser/table-parser.js +49 -0
  1055. package/.output/server/node_modules/kysely/dist/esm/parser/top-parser.js +17 -0
  1056. package/.output/server/node_modules/kysely/dist/esm/parser/unary-operation-parser.js +13 -0
  1057. package/.output/server/node_modules/kysely/dist/esm/parser/update-set-parser.js +23 -0
  1058. package/.output/server/node_modules/kysely/dist/esm/parser/value-parser.js +33 -0
  1059. package/.output/server/node_modules/kysely/dist/esm/parser/with-parser.js +31 -0
  1060. package/.output/server/node_modules/kysely/dist/esm/plugin/camel-case/camel-case-plugin.js +119 -0
  1061. package/.output/server/node_modules/kysely/dist/esm/plugin/camel-case/camel-case-transformer.js +16 -0
  1062. package/.output/server/node_modules/kysely/dist/esm/plugin/camel-case/camel-case.js +108 -0
  1063. package/.output/server/node_modules/kysely/dist/esm/plugin/deduplicate-joins/deduplicate-joins-plugin.js +16 -0
  1064. package/.output/server/node_modules/kysely/dist/esm/plugin/deduplicate-joins/deduplicate-joins-transformer.js +39 -0
  1065. package/.output/server/node_modules/kysely/dist/esm/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.js +159 -0
  1066. package/.output/server/node_modules/kysely/dist/esm/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.js +26 -0
  1067. package/.output/server/node_modules/kysely/dist/esm/plugin/handle-empty-in-lists/handle-empty-in-lists.js +63 -0
  1068. package/.output/server/node_modules/kysely/dist/esm/plugin/immediate-value/immediate-value-plugin.js +19 -0
  1069. package/.output/server/node_modules/kysely/dist/esm/plugin/immediate-value/immediate-value-transformer.js +20 -0
  1070. package/.output/server/node_modules/kysely/dist/esm/plugin/kysely-plugin.js +2 -0
  1071. package/.output/server/node_modules/kysely/dist/esm/plugin/noop-plugin.js +9 -0
  1072. package/.output/server/node_modules/kysely/dist/esm/plugin/parse-json-results/parse-json-results-plugin.js +104 -0
  1073. package/.output/server/node_modules/kysely/dist/esm/plugin/with-schema/with-schema-plugin.js +14 -0
  1074. package/.output/server/node_modules/kysely/dist/esm/plugin/with-schema/with-schema-transformer.js +197 -0
  1075. package/.output/server/node_modules/kysely/dist/esm/query-builder/aggregate-function-builder.js +238 -0
  1076. package/.output/server/node_modules/kysely/dist/esm/query-builder/case-builder.js +73 -0
  1077. package/.output/server/node_modules/kysely/dist/esm/query-builder/cte-builder.js +34 -0
  1078. package/.output/server/node_modules/kysely/dist/esm/query-builder/delete-query-builder.js +501 -0
  1079. package/.output/server/node_modules/kysely/dist/esm/query-builder/delete-result.js +7 -0
  1080. package/.output/server/node_modules/kysely/dist/esm/query-builder/function-module.js +60 -0
  1081. package/.output/server/node_modules/kysely/dist/esm/query-builder/having-interface.js +2 -0
  1082. package/.output/server/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js +1157 -0
  1083. package/.output/server/node_modules/kysely/dist/esm/query-builder/insert-result.js +50 -0
  1084. package/.output/server/node_modules/kysely/dist/esm/query-builder/join-builder.js +48 -0
  1085. package/.output/server/node_modules/kysely/dist/esm/query-builder/json-path-builder.js +195 -0
  1086. package/.output/server/node_modules/kysely/dist/esm/query-builder/merge-query-builder.js +624 -0
  1087. package/.output/server/node_modules/kysely/dist/esm/query-builder/merge-result.js +7 -0
  1088. package/.output/server/node_modules/kysely/dist/esm/query-builder/no-result-error.js +14 -0
  1089. package/.output/server/node_modules/kysely/dist/esm/query-builder/on-conflict-builder.js +254 -0
  1090. package/.output/server/node_modules/kysely/dist/esm/query-builder/order-by-interface.js +2 -0
  1091. package/.output/server/node_modules/kysely/dist/esm/query-builder/order-by-item-builder.js +72 -0
  1092. package/.output/server/node_modules/kysely/dist/esm/query-builder/output-interface.js +2 -0
  1093. package/.output/server/node_modules/kysely/dist/esm/query-builder/over-builder.js +37 -0
  1094. package/.output/server/node_modules/kysely/dist/esm/query-builder/returning-interface.js +2 -0
  1095. package/.output/server/node_modules/kysely/dist/esm/query-builder/select-query-builder.js +374 -0
  1096. package/.output/server/node_modules/kysely/dist/esm/query-builder/update-query-builder.js +510 -0
  1097. package/.output/server/node_modules/kysely/dist/esm/query-builder/update-result.js +18 -0
  1098. package/.output/server/node_modules/kysely/dist/esm/query-builder/where-interface.js +2 -0
  1099. package/.output/server/node_modules/kysely/dist/esm/query-compiler/compiled-query.js +14 -0
  1100. package/.output/server/node_modules/kysely/dist/esm/query-compiler/default-query-compiler.js +1395 -0
  1101. package/.output/server/node_modules/kysely/dist/esm/query-compiler/query-compiler.js +2 -0
  1102. package/.output/server/node_modules/kysely/dist/esm/query-creator.js +619 -0
  1103. package/.output/server/node_modules/kysely/dist/esm/query-executor/default-query-executor.js +37 -0
  1104. package/.output/server/node_modules/kysely/dist/esm/query-executor/noop-query-executor.js +34 -0
  1105. package/.output/server/node_modules/kysely/dist/esm/query-executor/query-executor-base.js +59 -0
  1106. package/.output/server/node_modules/kysely/dist/esm/query-executor/query-executor-provider.js +2 -0
  1107. package/.output/server/node_modules/kysely/dist/esm/query-executor/query-executor.js +2 -0
  1108. package/.output/server/node_modules/kysely/dist/esm/raw-builder/raw-builder.js +84 -0
  1109. package/.output/server/node_modules/kysely/dist/esm/raw-builder/sql.js +82 -0
  1110. package/.output/server/node_modules/kysely/dist/esm/schema/alter-column-builder.js +70 -0
  1111. package/.output/server/node_modules/kysely/dist/esm/schema/alter-table-add-foreign-key-constraint-builder.js +64 -0
  1112. package/.output/server/node_modules/kysely/dist/esm/schema/alter-table-add-index-builder.js +162 -0
  1113. package/.output/server/node_modules/kysely/dist/esm/schema/alter-table-builder.js +263 -0
  1114. package/.output/server/node_modules/kysely/dist/esm/schema/alter-table-drop-constraint-builder.js +56 -0
  1115. package/.output/server/node_modules/kysely/dist/esm/schema/alter-table-executor.js +17 -0
  1116. package/.output/server/node_modules/kysely/dist/esm/schema/check-constraint-builder.js +17 -0
  1117. package/.output/server/node_modules/kysely/dist/esm/schema/column-definition-builder.js +597 -0
  1118. package/.output/server/node_modules/kysely/dist/esm/schema/create-index-builder.js +199 -0
  1119. package/.output/server/node_modules/kysely/dist/esm/schema/create-schema-builder.js +31 -0
  1120. package/.output/server/node_modules/kysely/dist/esm/schema/create-table-builder.js +408 -0
  1121. package/.output/server/node_modules/kysely/dist/esm/schema/create-type-builder.js +40 -0
  1122. package/.output/server/node_modules/kysely/dist/esm/schema/create-view-builder.js +95 -0
  1123. package/.output/server/node_modules/kysely/dist/esm/schema/drop-index-builder.js +54 -0
  1124. package/.output/server/node_modules/kysely/dist/esm/schema/drop-schema-builder.js +41 -0
  1125. package/.output/server/node_modules/kysely/dist/esm/schema/drop-table-builder.js +41 -0
  1126. package/.output/server/node_modules/kysely/dist/esm/schema/drop-type-builder.js +33 -0
  1127. package/.output/server/node_modules/kysely/dist/esm/schema/drop-view-builder.js +49 -0
  1128. package/.output/server/node_modules/kysely/dist/esm/schema/foreign-key-constraint-builder.js +45 -0
  1129. package/.output/server/node_modules/kysely/dist/esm/schema/primary-key-constraint-builder.js +34 -0
  1130. package/.output/server/node_modules/kysely/dist/esm/schema/refresh-materialized-view-builder.js +72 -0
  1131. package/.output/server/node_modules/kysely/dist/esm/schema/schema.js +325 -0
  1132. package/.output/server/node_modules/kysely/dist/esm/schema/unique-constraint-builder.js +42 -0
  1133. package/.output/server/node_modules/kysely/dist/esm/util/column-type.js +2 -0
  1134. package/.output/server/node_modules/kysely/dist/esm/util/compilable.js +5 -0
  1135. package/.output/server/node_modules/kysely/dist/esm/util/deferred.js +25 -0
  1136. package/.output/server/node_modules/kysely/dist/esm/util/explainable.js +2 -0
  1137. package/.output/server/node_modules/kysely/dist/esm/util/infer-result.js +2 -0
  1138. package/.output/server/node_modules/kysely/dist/esm/util/log-once.js +13 -0
  1139. package/.output/server/node_modules/kysely/dist/esm/util/log.js +56 -0
  1140. package/.output/server/node_modules/kysely/dist/esm/util/object-utils.js +141 -0
  1141. package/.output/server/node_modules/kysely/dist/esm/util/performance-now.js +10 -0
  1142. package/.output/server/node_modules/kysely/dist/esm/util/provide-controlled-connection.js +22 -0
  1143. package/.output/server/node_modules/kysely/dist/esm/util/query-id.js +14 -0
  1144. package/.output/server/node_modules/kysely/dist/esm/util/random-string.js +75 -0
  1145. package/.output/server/node_modules/kysely/dist/esm/util/require-all-props.js +39 -0
  1146. package/.output/server/node_modules/kysely/dist/esm/util/stack-trace-utils.js +14 -0
  1147. package/.output/server/node_modules/kysely/dist/esm/util/streamable.js +2 -0
  1148. package/.output/server/node_modules/kysely/package.json +144 -0
  1149. package/.output/server/node_modules/libsql/auth.js +22 -0
  1150. package/.output/server/node_modules/libsql/index.js +441 -0
  1151. package/.output/server/node_modules/libsql/package.json +92 -0
  1152. package/.output/server/node_modules/libsql/sqlite-error.js +21 -0
  1153. package/.output/server/node_modules/liquidjs/dist/liquid.node.js +4992 -0
  1154. package/.output/server/node_modules/liquidjs/package.json +168 -0
  1155. package/.output/server/node_modules/longest-streak/index.js +36 -0
  1156. package/.output/server/node_modules/longest-streak/package.json +73 -0
  1157. package/.output/server/node_modules/markdown-table/index.js +393 -0
  1158. package/.output/server/node_modules/markdown-table/package.json +77 -0
  1159. package/.output/server/node_modules/math-intrinsics/abs.js +4 -0
  1160. package/.output/server/node_modules/math-intrinsics/floor.js +4 -0
  1161. package/.output/server/node_modules/math-intrinsics/isNaN.js +6 -0
  1162. package/.output/server/node_modules/math-intrinsics/max.js +4 -0
  1163. package/.output/server/node_modules/math-intrinsics/min.js +4 -0
  1164. package/.output/server/node_modules/math-intrinsics/package.json +86 -0
  1165. package/.output/server/node_modules/math-intrinsics/pow.js +4 -0
  1166. package/.output/server/node_modules/math-intrinsics/round.js +4 -0
  1167. package/.output/server/node_modules/math-intrinsics/sign.js +11 -0
  1168. package/.output/server/node_modules/mdast-util-find-and-replace/index.js +11 -0
  1169. package/.output/server/node_modules/mdast-util-find-and-replace/lib/index.js +261 -0
  1170. package/.output/server/node_modules/mdast-util-find-and-replace/package.json +85 -0
  1171. package/.output/server/node_modules/mdast-util-from-markdown/index.js +2 -0
  1172. package/.output/server/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
  1173. package/.output/server/node_modules/mdast-util-from-markdown/package.json +99 -0
  1174. package/.output/server/node_modules/mdast-util-gfm/index.js +2 -0
  1175. package/.output/server/node_modules/mdast-util-gfm/lib/index.js +63 -0
  1176. package/.output/server/node_modules/mdast-util-gfm/package.json +125 -0
  1177. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
  1178. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
  1179. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
  1180. package/.output/server/node_modules/mdast-util-gfm-footnote/index.js +2 -0
  1181. package/.output/server/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
  1182. package/.output/server/node_modules/mdast-util-gfm-footnote/package.json +111 -0
  1183. package/.output/server/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
  1184. package/.output/server/node_modules/mdast-util-gfm-strikethrough/lib/index.js +106 -0
  1185. package/.output/server/node_modules/mdast-util-gfm-strikethrough/package.json +99 -0
  1186. package/.output/server/node_modules/mdast-util-gfm-table/index.js +2 -0
  1187. package/.output/server/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
  1188. package/.output/server/node_modules/mdast-util-gfm-table/package.json +101 -0
  1189. package/.output/server/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
  1190. package/.output/server/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
  1191. package/.output/server/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
  1192. package/.output/server/node_modules/mdast-util-phrasing/index.js +1 -0
  1193. package/.output/server/node_modules/mdast-util-phrasing/lib/index.js +45 -0
  1194. package/.output/server/node_modules/mdast-util-phrasing/package.json +78 -0
  1195. package/.output/server/node_modules/mdast-util-to-markdown/index.js +3 -0
  1196. package/.output/server/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
  1197. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
  1198. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
  1199. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
  1200. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
  1201. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
  1202. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
  1203. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
  1204. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
  1205. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
  1206. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
  1207. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
  1208. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
  1209. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
  1210. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
  1211. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
  1212. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
  1213. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
  1214. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
  1215. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
  1216. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
  1217. package/.output/server/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
  1218. package/.output/server/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
  1219. package/.output/server/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
  1220. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
  1221. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
  1222. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
  1223. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
  1224. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
  1225. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
  1226. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
  1227. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
  1228. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
  1229. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
  1230. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
  1231. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
  1232. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
  1233. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
  1234. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
  1235. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
  1236. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
  1237. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
  1238. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
  1239. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
  1240. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
  1241. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
  1242. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
  1243. package/.output/server/node_modules/mdast-util-to-markdown/package.json +132 -0
  1244. package/.output/server/node_modules/mdast-util-to-string/index.js +5 -0
  1245. package/.output/server/node_modules/mdast-util-to-string/lib/index.js +108 -0
  1246. package/.output/server/node_modules/mdast-util-to-string/package.json +78 -0
  1247. package/.output/server/node_modules/micromark/index.js +60 -0
  1248. package/.output/server/node_modules/micromark/lib/compile.js +1060 -0
  1249. package/.output/server/node_modules/micromark/lib/constructs.js +85 -0
  1250. package/.output/server/node_modules/micromark/lib/create-tokenizer.js +611 -0
  1251. package/.output/server/node_modules/micromark/lib/initialize/content.js +79 -0
  1252. package/.output/server/node_modules/micromark/lib/initialize/document.js +362 -0
  1253. package/.output/server/node_modules/micromark/lib/initialize/flow.js +58 -0
  1254. package/.output/server/node_modules/micromark/lib/initialize/text.js +212 -0
  1255. package/.output/server/node_modules/micromark/lib/parse.js +56 -0
  1256. package/.output/server/node_modules/micromark/lib/postprocess.js +18 -0
  1257. package/.output/server/node_modules/micromark/lib/preprocess.js +115 -0
  1258. package/.output/server/node_modules/micromark/package.json +100 -0
  1259. package/.output/server/node_modules/micromark-core-commonmark/index.js +22 -0
  1260. package/.output/server/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
  1261. package/.output/server/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  1262. package/.output/server/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  1263. package/.output/server/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  1264. package/.output/server/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  1265. package/.output/server/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  1266. package/.output/server/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
  1267. package/.output/server/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
  1268. package/.output/server/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  1269. package/.output/server/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  1270. package/.output/server/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  1271. package/.output/server/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  1272. package/.output/server/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
  1273. package/.output/server/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
  1274. package/.output/server/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  1275. package/.output/server/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
  1276. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
  1277. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
  1278. package/.output/server/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  1279. package/.output/server/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  1280. package/.output/server/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
  1281. package/.output/server/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  1282. package/.output/server/node_modules/micromark-core-commonmark/package.json +74 -0
  1283. package/.output/server/node_modules/micromark-extension-gfm/index.js +69 -0
  1284. package/.output/server/node_modules/micromark-extension-gfm/package.json +107 -0
  1285. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  1286. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  1287. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  1288. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  1289. package/.output/server/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  1290. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  1291. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  1292. package/.output/server/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  1293. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
  1294. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
  1295. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
  1296. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
  1297. package/.output/server/node_modules/micromark-extension-gfm-table/index.js +2 -0
  1298. package/.output/server/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
  1299. package/.output/server/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
  1300. package/.output/server/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  1301. package/.output/server/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
  1302. package/.output/server/node_modules/micromark-extension-gfm-table/package.json +128 -0
  1303. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
  1304. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
  1305. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
  1306. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
  1307. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
  1308. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
  1309. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
  1310. package/.output/server/node_modules/micromark-factory-destination/index.js +206 -0
  1311. package/.output/server/node_modules/micromark-factory-destination/package.json +57 -0
  1312. package/.output/server/node_modules/micromark-factory-label/index.js +148 -0
  1313. package/.output/server/node_modules/micromark-factory-label/package.json +60 -0
  1314. package/.output/server/node_modules/micromark-factory-space/index.js +64 -0
  1315. package/.output/server/node_modules/micromark-factory-space/package.json +55 -0
  1316. package/.output/server/node_modules/micromark-factory-title/index.js +158 -0
  1317. package/.output/server/node_modules/micromark-factory-title/package.json +58 -0
  1318. package/.output/server/node_modules/micromark-factory-whitespace/index.js +44 -0
  1319. package/.output/server/node_modules/micromark-factory-whitespace/package.json +57 -0
  1320. package/.output/server/node_modules/micromark-util-character/index.js +246 -0
  1321. package/.output/server/node_modules/micromark-util-character/package.json +57 -0
  1322. package/.output/server/node_modules/micromark-util-chunked/index.js +81 -0
  1323. package/.output/server/node_modules/micromark-util-chunked/package.json +57 -0
  1324. package/.output/server/node_modules/micromark-util-classify-character/index.js +27 -0
  1325. package/.output/server/node_modules/micromark-util-classify-character/package.json +59 -0
  1326. package/.output/server/node_modules/micromark-util-combine-extensions/index.js +143 -0
  1327. package/.output/server/node_modules/micromark-util-combine-extensions/package.json +52 -0
  1328. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  1329. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  1330. package/.output/server/node_modules/micromark-util-decode-string/index.js +45 -0
  1331. package/.output/server/node_modules/micromark-util-decode-string/package.json +63 -0
  1332. package/.output/server/node_modules/micromark-util-encode/index.js +33 -0
  1333. package/.output/server/node_modules/micromark-util-encode/package.json +47 -0
  1334. package/.output/server/node_modules/micromark-util-html-tag-name/index.js +93 -0
  1335. package/.output/server/node_modules/micromark-util-html-tag-name/package.json +47 -0
  1336. package/.output/server/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  1337. package/.output/server/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  1338. package/.output/server/node_modules/micromark-util-resolve-all/index.js +32 -0
  1339. package/.output/server/node_modules/micromark-util-resolve-all/package.json +48 -0
  1340. package/.output/server/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  1341. package/.output/server/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  1342. package/.output/server/node_modules/micromark-util-subtokenize/index.js +228 -0
  1343. package/.output/server/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  1344. package/.output/server/node_modules/micromark-util-subtokenize/package.json +60 -0
  1345. package/.output/server/node_modules/mime-db/db.json +8519 -0
  1346. package/.output/server/node_modules/mime-db/index.js +12 -0
  1347. package/.output/server/node_modules/mime-db/package.json +60 -0
  1348. package/.output/server/node_modules/mime-types/index.js +188 -0
  1349. package/.output/server/node_modules/mime-types/package.json +44 -0
  1350. package/.output/server/node_modules/ms/index.js +162 -0
  1351. package/.output/server/node_modules/ms/package.json +38 -0
  1352. package/.output/server/node_modules/nanostores/atom/index.js +94 -0
  1353. package/.output/server/node_modules/nanostores/clean-stores/index.js +18 -0
  1354. package/.output/server/node_modules/nanostores/computed/index.js +65 -0
  1355. package/.output/server/node_modules/nanostores/deep-map/index.js +30 -0
  1356. package/.output/server/node_modules/nanostores/deep-map/path.js +64 -0
  1357. package/.output/server/node_modules/nanostores/effect/index.js +21 -0
  1358. package/.output/server/node_modules/nanostores/index.js +24 -0
  1359. package/.output/server/node_modules/nanostores/keep-mount/index.js +3 -0
  1360. package/.output/server/node_modules/nanostores/lifecycle/index.js +160 -0
  1361. package/.output/server/node_modules/nanostores/listen-keys/index.js +14 -0
  1362. package/.output/server/node_modules/nanostores/map/index.js +23 -0
  1363. package/.output/server/node_modules/nanostores/map-creator/index.js +38 -0
  1364. package/.output/server/node_modules/nanostores/package.json +34 -0
  1365. package/.output/server/node_modules/nanostores/task/index.js +35 -0
  1366. package/.output/server/node_modules/nanostores/warn/index.js +12 -0
  1367. package/.output/server/node_modules/node-fetch/lib/index.js +1787 -0
  1368. package/.output/server/node_modules/node-fetch/package.json +89 -0
  1369. package/.output/server/node_modules/p-finally/index.js +15 -0
  1370. package/.output/server/node_modules/p-finally/package.json +42 -0
  1371. package/.output/server/node_modules/p-queue/dist/index.js +279 -0
  1372. package/.output/server/node_modules/p-queue/dist/lower-bound.js +21 -0
  1373. package/.output/server/node_modules/p-queue/dist/priority-queue.js +32 -0
  1374. package/.output/server/node_modules/p-queue/package.json +92 -0
  1375. package/.output/server/node_modules/p-retry/index.js +85 -0
  1376. package/.output/server/node_modules/p-retry/package.json +51 -0
  1377. package/.output/server/node_modules/p-timeout/index.js +57 -0
  1378. package/.output/server/node_modules/p-timeout/package.json +45 -0
  1379. package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  1380. package/.output/server/node_modules/perfect-debounce/package.json +41 -0
  1381. package/.output/server/node_modules/promise-limit/index.js +88 -0
  1382. package/.output/server/node_modules/promise-limit/package.json +39 -0
  1383. package/.output/server/node_modules/proxy-from-env/index.js +108 -0
  1384. package/.output/server/node_modules/proxy-from-env/package.json +34 -0
  1385. package/.output/server/node_modules/remark-gfm/index.js +2 -0
  1386. package/.output/server/node_modules/remark-gfm/lib/index.js +41 -0
  1387. package/.output/server/node_modules/remark-gfm/package.json +125 -0
  1388. package/.output/server/node_modules/remark-parse/index.js +2 -0
  1389. package/.output/server/node_modules/remark-parse/lib/index.js +43 -0
  1390. package/.output/server/node_modules/remark-parse/package.json +72 -0
  1391. package/.output/server/node_modules/remark-stringify/index.js +2 -0
  1392. package/.output/server/node_modules/remark-stringify/lib/index.js +42 -0
  1393. package/.output/server/node_modules/remark-stringify/package.json +71 -0
  1394. package/.output/server/node_modules/remend/dist/index.js +22 -0
  1395. package/.output/server/node_modules/remend/package.json +41 -0
  1396. package/.output/server/node_modules/retry/index.js +1 -0
  1397. package/.output/server/node_modules/retry/lib/retry.js +100 -0
  1398. package/.output/server/node_modules/retry/lib/retry_operation.js +162 -0
  1399. package/.output/server/node_modules/retry/package.json +36 -0
  1400. package/.output/server/node_modules/rou3/dist/index.mjs +265 -0
  1401. package/.output/server/node_modules/rou3/package.json +47 -0
  1402. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  1403. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  1404. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  1405. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  1406. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  1407. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  1408. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  1409. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  1410. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  1411. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  1412. package/.output/server/node_modules/source-map-js/package.json +71 -0
  1413. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  1414. package/.output/server/node_modules/supports-color/index.js +202 -0
  1415. package/.output/server/node_modules/supports-color/package.json +64 -0
  1416. package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  1417. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  1418. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  1419. package/.output/server/node_modules/toad-cache/dist/toad-cache.mjs +852 -0
  1420. package/.output/server/node_modules/toad-cache/package.json +82 -0
  1421. package/.output/server/node_modules/tr46/index.js +193 -0
  1422. package/.output/server/node_modules/tr46/lib/mappingTable.json +1 -0
  1423. package/.output/server/node_modules/tr46/package.json +31 -0
  1424. package/.output/server/node_modules/trough/index.js +9 -0
  1425. package/.output/server/node_modules/trough/lib/index.js +206 -0
  1426. package/.output/server/node_modules/trough/package.json +77 -0
  1427. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  1428. package/.output/server/node_modules/ufo/package.json +48 -0
  1429. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  1430. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  1431. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  1432. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  1433. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  1434. package/.output/server/node_modules/unhead/dist/shared/unhead.0eF0fa-Y.mjs +236 -0
  1435. package/.output/server/node_modules/unhead/dist/shared/unhead.B5FWS6X0.mjs +207 -0
  1436. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  1437. package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  1438. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  1439. package/.output/server/node_modules/unhead/dist/shared/unhead.Chhckluj.mjs +166 -0
  1440. package/.output/server/node_modules/unhead/dist/shared/unhead.Ct24BOby.mjs +182 -0
  1441. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  1442. package/.output/server/node_modules/unhead/dist/shared/unhead._ybhDo-G.mjs +44 -0
  1443. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  1444. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  1445. package/.output/server/node_modules/unhead/package.json +105 -0
  1446. package/.output/server/node_modules/unified/index.js +2 -0
  1447. package/.output/server/node_modules/unified/lib/callable-instance.js +44 -0
  1448. package/.output/server/node_modules/unified/lib/index.js +1323 -0
  1449. package/.output/server/node_modules/unified/package.json +120 -0
  1450. package/.output/server/node_modules/unist-util-is/index.js +7 -0
  1451. package/.output/server/node_modules/unist-util-is/lib/index.js +296 -0
  1452. package/.output/server/node_modules/unist-util-is/package.json +103 -0
  1453. package/.output/server/node_modules/unist-util-stringify-position/index.js +1 -0
  1454. package/.output/server/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  1455. package/.output/server/node_modules/unist-util-stringify-position/package.json +80 -0
  1456. package/.output/server/node_modules/unist-util-visit/index.js +2 -0
  1457. package/.output/server/node_modules/unist-util-visit/lib/index.js +312 -0
  1458. package/.output/server/node_modules/unist-util-visit/package.json +108 -0
  1459. package/.output/server/node_modules/unist-util-visit-parents/index.js +2 -0
  1460. package/.output/server/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
  1461. package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +399 -0
  1462. package/.output/server/node_modules/unist-util-visit-parents/package.json +106 -0
  1463. package/.output/server/node_modules/universal-github-app-jwt/index.js +42 -0
  1464. package/.output/server/node_modules/universal-github-app-jwt/lib/crypto-node.js +15 -0
  1465. package/.output/server/node_modules/universal-github-app-jwt/lib/get-token.js +66 -0
  1466. package/.output/server/node_modules/universal-github-app-jwt/lib/utils.js +85 -0
  1467. package/.output/server/node_modules/universal-github-app-jwt/package.json +62 -0
  1468. package/.output/server/node_modules/universal-user-agent/index.js +13 -0
  1469. package/.output/server/node_modules/universal-user-agent/package.json +28 -0
  1470. package/.output/server/node_modules/vfile/index.js +2 -0
  1471. package/.output/server/node_modules/vfile/lib/index.js +643 -0
  1472. package/.output/server/node_modules/vfile/lib/minpath.js +1 -0
  1473. package/.output/server/node_modules/vfile/lib/minproc.js +1 -0
  1474. package/.output/server/node_modules/vfile/lib/minurl.js +2 -0
  1475. package/.output/server/node_modules/vfile/lib/minurl.shared.js +31 -0
  1476. package/.output/server/node_modules/vfile/package.json +134 -0
  1477. package/.output/server/node_modules/vfile-message/index.js +5 -0
  1478. package/.output/server/node_modules/vfile-message/lib/index.js +314 -0
  1479. package/.output/server/node_modules/vfile-message/package.json +80 -0
  1480. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  1481. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  1482. package/.output/server/node_modules/vue/index.js +7 -0
  1483. package/.output/server/node_modules/vue/index.mjs +1 -0
  1484. package/.output/server/node_modules/vue/package.json +112 -0
  1485. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  1486. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  1487. package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
  1488. package/.output/server/node_modules/webidl-conversions/lib/index.js +189 -0
  1489. package/.output/server/node_modules/webidl-conversions/package.json +23 -0
  1490. package/.output/server/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  1491. package/.output/server/node_modules/whatwg-url/lib/URL.js +196 -0
  1492. package/.output/server/node_modules/whatwg-url/lib/public-api.js +11 -0
  1493. package/.output/server/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  1494. package/.output/server/node_modules/whatwg-url/lib/utils.js +20 -0
  1495. package/.output/server/node_modules/whatwg-url/package.json +32 -0
  1496. package/.output/server/node_modules/zod/index.js +4 -0
  1497. package/.output/server/node_modules/zod/package.json +135 -0
  1498. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  1499. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  1500. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  1501. package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
  1502. package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
  1503. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  1504. package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
  1505. package/.output/server/node_modules/zod/v4/classic/package.json +6 -0
  1506. package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
  1507. package/.output/server/node_modules/zod/v4/classic/schemas.js +1157 -0
  1508. package/.output/server/node_modules/zod/v4/core/api.js +1082 -0
  1509. package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
  1510. package/.output/server/node_modules/zod/v4/core/core.js +76 -0
  1511. package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
  1512. package/.output/server/node_modules/zod/v4/core/errors.js +182 -0
  1513. package/.output/server/node_modules/zod/v4/core/index.js +16 -0
  1514. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  1515. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  1516. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  1517. package/.output/server/node_modules/zod/v4/core/package.json +6 -0
  1518. package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
  1519. package/.output/server/node_modules/zod/v4/core/regexes.js +133 -0
  1520. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  1521. package/.output/server/node_modules/zod/v4/core/schemas.js +2093 -0
  1522. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +437 -0
  1523. package/.output/server/node_modules/zod/v4/core/util.js +651 -0
  1524. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  1525. package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
  1526. package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
  1527. package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
  1528. package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
  1529. package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
  1530. package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
  1531. package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
  1532. package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
  1533. package/.output/server/node_modules/zod/v4/locales/en.js +109 -0
  1534. package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
  1535. package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
  1536. package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
  1537. package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
  1538. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
  1539. package/.output/server/node_modules/zod/v4/locales/fr.js +108 -0
  1540. package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
  1541. package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
  1542. package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
  1543. package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
  1544. package/.output/server/node_modules/zod/v4/locales/index.js +49 -0
  1545. package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
  1546. package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
  1547. package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
  1548. package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
  1549. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  1550. package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
  1551. package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
  1552. package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
  1553. package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
  1554. package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
  1555. package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
  1556. package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
  1557. package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
  1558. package/.output/server/node_modules/zod/v4/locales/package.json +6 -0
  1559. package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
  1560. package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
  1561. package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
  1562. package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
  1563. package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
  1564. package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
  1565. package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
  1566. package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
  1567. package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
  1568. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  1569. package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
  1570. package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
  1571. package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
  1572. package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
  1573. package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
  1574. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
  1575. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
  1576. package/.output/server/node_modules/zwitch/index.js +118 -0
  1577. package/.output/server/node_modules/zwitch/package.json +72 -0
  1578. package/.output/server/package.json +190 -0
  1579. package/README.md +122 -97
  1580. package/dist/index.js +8329 -8305
  1581. package/package.json +6 -1
@@ -0,0 +1,3856 @@
1
+
2
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
3
+ function isNothing(subject) {
4
+ return (typeof subject === 'undefined') || (subject === null);
5
+ }
6
+
7
+
8
+ function isObject(subject) {
9
+ return (typeof subject === 'object') && (subject !== null);
10
+ }
11
+
12
+
13
+ function toArray(sequence) {
14
+ if (Array.isArray(sequence)) return sequence;
15
+ else if (isNothing(sequence)) return [];
16
+
17
+ return [ sequence ];
18
+ }
19
+
20
+
21
+ function extend(target, source) {
22
+ var index, length, key, sourceKeys;
23
+
24
+ if (source) {
25
+ sourceKeys = Object.keys(source);
26
+
27
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
28
+ key = sourceKeys[index];
29
+ target[key] = source[key];
30
+ }
31
+ }
32
+
33
+ return target;
34
+ }
35
+
36
+
37
+ function repeat(string, count) {
38
+ var result = '', cycle;
39
+
40
+ for (cycle = 0; cycle < count; cycle += 1) {
41
+ result += string;
42
+ }
43
+
44
+ return result;
45
+ }
46
+
47
+
48
+ function isNegativeZero(number) {
49
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
50
+ }
51
+
52
+
53
+ var isNothing_1 = isNothing;
54
+ var isObject_1 = isObject;
55
+ var toArray_1 = toArray;
56
+ var repeat_1 = repeat;
57
+ var isNegativeZero_1 = isNegativeZero;
58
+ var extend_1 = extend;
59
+
60
+ var common = {
61
+ isNothing: isNothing_1,
62
+ isObject: isObject_1,
63
+ toArray: toArray_1,
64
+ repeat: repeat_1,
65
+ isNegativeZero: isNegativeZero_1,
66
+ extend: extend_1
67
+ };
68
+
69
+ // YAML error class. http://stackoverflow.com/questions/8458984
70
+
71
+
72
+ function formatError(exception, compact) {
73
+ var where = '', message = exception.reason || '(unknown reason)';
74
+
75
+ if (!exception.mark) return message;
76
+
77
+ if (exception.mark.name) {
78
+ where += 'in "' + exception.mark.name + '" ';
79
+ }
80
+
81
+ where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
82
+
83
+ if (!compact && exception.mark.snippet) {
84
+ where += '\n\n' + exception.mark.snippet;
85
+ }
86
+
87
+ return message + ' ' + where;
88
+ }
89
+
90
+
91
+ function YAMLException$1(reason, mark) {
92
+ // Super constructor
93
+ Error.call(this);
94
+
95
+ this.name = 'YAMLException';
96
+ this.reason = reason;
97
+ this.mark = mark;
98
+ this.message = formatError(this, false);
99
+
100
+ // Include stack trace in error object
101
+ if (Error.captureStackTrace) {
102
+ // Chrome and NodeJS
103
+ Error.captureStackTrace(this, this.constructor);
104
+ } else {
105
+ // FF, IE 10+ and Safari 6+. Fallback for others
106
+ this.stack = (new Error()).stack || '';
107
+ }
108
+ }
109
+
110
+
111
+ // Inherit from Error
112
+ YAMLException$1.prototype = Object.create(Error.prototype);
113
+ YAMLException$1.prototype.constructor = YAMLException$1;
114
+
115
+
116
+ YAMLException$1.prototype.toString = function toString(compact) {
117
+ return this.name + ': ' + formatError(this, compact);
118
+ };
119
+
120
+
121
+ var exception = YAMLException$1;
122
+
123
+ // get snippet for a single line, respecting maxLength
124
+ function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
125
+ var head = '';
126
+ var tail = '';
127
+ var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
128
+
129
+ if (position - lineStart > maxHalfLength) {
130
+ head = ' ... ';
131
+ lineStart = position - maxHalfLength + head.length;
132
+ }
133
+
134
+ if (lineEnd - position > maxHalfLength) {
135
+ tail = ' ...';
136
+ lineEnd = position + maxHalfLength - tail.length;
137
+ }
138
+
139
+ return {
140
+ str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
141
+ pos: position - lineStart + head.length // relative position
142
+ };
143
+ }
144
+
145
+
146
+ function padStart(string, max) {
147
+ return common.repeat(' ', max - string.length) + string;
148
+ }
149
+
150
+
151
+ function makeSnippet(mark, options) {
152
+ options = Object.create(options || null);
153
+
154
+ if (!mark.buffer) return null;
155
+
156
+ if (!options.maxLength) options.maxLength = 79;
157
+ if (typeof options.indent !== 'number') options.indent = 1;
158
+ if (typeof options.linesBefore !== 'number') options.linesBefore = 3;
159
+ if (typeof options.linesAfter !== 'number') options.linesAfter = 2;
160
+
161
+ var re = /\r?\n|\r|\0/g;
162
+ var lineStarts = [ 0 ];
163
+ var lineEnds = [];
164
+ var match;
165
+ var foundLineNo = -1;
166
+
167
+ while ((match = re.exec(mark.buffer))) {
168
+ lineEnds.push(match.index);
169
+ lineStarts.push(match.index + match[0].length);
170
+
171
+ if (mark.position <= match.index && foundLineNo < 0) {
172
+ foundLineNo = lineStarts.length - 2;
173
+ }
174
+ }
175
+
176
+ if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
177
+
178
+ var result = '', i, line;
179
+ var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
180
+ var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
181
+
182
+ for (i = 1; i <= options.linesBefore; i++) {
183
+ if (foundLineNo - i < 0) break;
184
+ line = getLine(
185
+ mark.buffer,
186
+ lineStarts[foundLineNo - i],
187
+ lineEnds[foundLineNo - i],
188
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
189
+ maxLineLength
190
+ );
191
+ result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
192
+ ' | ' + line.str + '\n' + result;
193
+ }
194
+
195
+ line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
196
+ result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
197
+ ' | ' + line.str + '\n';
198
+ result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n';
199
+
200
+ for (i = 1; i <= options.linesAfter; i++) {
201
+ if (foundLineNo + i >= lineEnds.length) break;
202
+ line = getLine(
203
+ mark.buffer,
204
+ lineStarts[foundLineNo + i],
205
+ lineEnds[foundLineNo + i],
206
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
207
+ maxLineLength
208
+ );
209
+ result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
210
+ ' | ' + line.str + '\n';
211
+ }
212
+
213
+ return result.replace(/\n$/, '');
214
+ }
215
+
216
+
217
+ var snippet = makeSnippet;
218
+
219
+ var TYPE_CONSTRUCTOR_OPTIONS = [
220
+ 'kind',
221
+ 'multi',
222
+ 'resolve',
223
+ 'construct',
224
+ 'instanceOf',
225
+ 'predicate',
226
+ 'represent',
227
+ 'representName',
228
+ 'defaultStyle',
229
+ 'styleAliases'
230
+ ];
231
+
232
+ var YAML_NODE_KINDS = [
233
+ 'scalar',
234
+ 'sequence',
235
+ 'mapping'
236
+ ];
237
+
238
+ function compileStyleAliases(map) {
239
+ var result = {};
240
+
241
+ if (map !== null) {
242
+ Object.keys(map).forEach(function (style) {
243
+ map[style].forEach(function (alias) {
244
+ result[String(alias)] = style;
245
+ });
246
+ });
247
+ }
248
+
249
+ return result;
250
+ }
251
+
252
+ function Type$1(tag, options) {
253
+ options = options || {};
254
+
255
+ Object.keys(options).forEach(function (name) {
256
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
257
+ throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
258
+ }
259
+ });
260
+
261
+ // TODO: Add tag format check.
262
+ this.options = options; // keep original options in case user wants to extend this type later
263
+ this.tag = tag;
264
+ this.kind = options['kind'] || null;
265
+ this.resolve = options['resolve'] || function () { return true; };
266
+ this.construct = options['construct'] || function (data) { return data; };
267
+ this.instanceOf = options['instanceOf'] || null;
268
+ this.predicate = options['predicate'] || null;
269
+ this.represent = options['represent'] || null;
270
+ this.representName = options['representName'] || null;
271
+ this.defaultStyle = options['defaultStyle'] || null;
272
+ this.multi = options['multi'] || false;
273
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
274
+
275
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
276
+ throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
277
+ }
278
+ }
279
+
280
+ var type = Type$1;
281
+
282
+ /*eslint-disable max-len*/
283
+
284
+
285
+
286
+
287
+
288
+ function compileList(schema, name) {
289
+ var result = [];
290
+
291
+ schema[name].forEach(function (currentType) {
292
+ var newIndex = result.length;
293
+
294
+ result.forEach(function (previousType, previousIndex) {
295
+ if (previousType.tag === currentType.tag &&
296
+ previousType.kind === currentType.kind &&
297
+ previousType.multi === currentType.multi) {
298
+
299
+ newIndex = previousIndex;
300
+ }
301
+ });
302
+
303
+ result[newIndex] = currentType;
304
+ });
305
+
306
+ return result;
307
+ }
308
+
309
+
310
+ function compileMap(/* lists... */) {
311
+ var result = {
312
+ scalar: {},
313
+ sequence: {},
314
+ mapping: {},
315
+ fallback: {},
316
+ multi: {
317
+ scalar: [],
318
+ sequence: [],
319
+ mapping: [],
320
+ fallback: []
321
+ }
322
+ }, index, length;
323
+
324
+ function collectType(type) {
325
+ if (type.multi) {
326
+ result.multi[type.kind].push(type);
327
+ result.multi['fallback'].push(type);
328
+ } else {
329
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
330
+ }
331
+ }
332
+
333
+ for (index = 0, length = arguments.length; index < length; index += 1) {
334
+ arguments[index].forEach(collectType);
335
+ }
336
+ return result;
337
+ }
338
+
339
+
340
+ function Schema$1(definition) {
341
+ return this.extend(definition);
342
+ }
343
+
344
+
345
+ Schema$1.prototype.extend = function extend(definition) {
346
+ var implicit = [];
347
+ var explicit = [];
348
+
349
+ if (definition instanceof type) {
350
+ // Schema.extend(type)
351
+ explicit.push(definition);
352
+
353
+ } else if (Array.isArray(definition)) {
354
+ // Schema.extend([ type1, type2, ... ])
355
+ explicit = explicit.concat(definition);
356
+
357
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
358
+ // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
359
+ if (definition.implicit) implicit = implicit.concat(definition.implicit);
360
+ if (definition.explicit) explicit = explicit.concat(definition.explicit);
361
+
362
+ } else {
363
+ throw new exception('Schema.extend argument should be a Type, [ Type ], ' +
364
+ 'or a schema definition ({ implicit: [...], explicit: [...] })');
365
+ }
366
+
367
+ implicit.forEach(function (type$1) {
368
+ if (!(type$1 instanceof type)) {
369
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
370
+ }
371
+
372
+ if (type$1.loadKind && type$1.loadKind !== 'scalar') {
373
+ throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
374
+ }
375
+
376
+ if (type$1.multi) {
377
+ throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
378
+ }
379
+ });
380
+
381
+ explicit.forEach(function (type$1) {
382
+ if (!(type$1 instanceof type)) {
383
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
384
+ }
385
+ });
386
+
387
+ var result = Object.create(Schema$1.prototype);
388
+
389
+ result.implicit = (this.implicit || []).concat(implicit);
390
+ result.explicit = (this.explicit || []).concat(explicit);
391
+
392
+ result.compiledImplicit = compileList(result, 'implicit');
393
+ result.compiledExplicit = compileList(result, 'explicit');
394
+ result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
395
+
396
+ return result;
397
+ };
398
+
399
+
400
+ var schema = Schema$1;
401
+
402
+ var str = new type('tag:yaml.org,2002:str', {
403
+ kind: 'scalar',
404
+ construct: function (data) { return data !== null ? data : ''; }
405
+ });
406
+
407
+ var seq = new type('tag:yaml.org,2002:seq', {
408
+ kind: 'sequence',
409
+ construct: function (data) { return data !== null ? data : []; }
410
+ });
411
+
412
+ var map = new type('tag:yaml.org,2002:map', {
413
+ kind: 'mapping',
414
+ construct: function (data) { return data !== null ? data : {}; }
415
+ });
416
+
417
+ var failsafe = new schema({
418
+ explicit: [
419
+ str,
420
+ seq,
421
+ map
422
+ ]
423
+ });
424
+
425
+ function resolveYamlNull(data) {
426
+ if (data === null) return true;
427
+
428
+ var max = data.length;
429
+
430
+ return (max === 1 && data === '~') ||
431
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
432
+ }
433
+
434
+ function constructYamlNull() {
435
+ return null;
436
+ }
437
+
438
+ function isNull(object) {
439
+ return object === null;
440
+ }
441
+
442
+ var _null = new type('tag:yaml.org,2002:null', {
443
+ kind: 'scalar',
444
+ resolve: resolveYamlNull,
445
+ construct: constructYamlNull,
446
+ predicate: isNull,
447
+ represent: {
448
+ canonical: function () { return '~'; },
449
+ lowercase: function () { return 'null'; },
450
+ uppercase: function () { return 'NULL'; },
451
+ camelcase: function () { return 'Null'; },
452
+ empty: function () { return ''; }
453
+ },
454
+ defaultStyle: 'lowercase'
455
+ });
456
+
457
+ function resolveYamlBoolean(data) {
458
+ if (data === null) return false;
459
+
460
+ var max = data.length;
461
+
462
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
463
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
464
+ }
465
+
466
+ function constructYamlBoolean(data) {
467
+ return data === 'true' ||
468
+ data === 'True' ||
469
+ data === 'TRUE';
470
+ }
471
+
472
+ function isBoolean(object) {
473
+ return Object.prototype.toString.call(object) === '[object Boolean]';
474
+ }
475
+
476
+ var bool = new type('tag:yaml.org,2002:bool', {
477
+ kind: 'scalar',
478
+ resolve: resolveYamlBoolean,
479
+ construct: constructYamlBoolean,
480
+ predicate: isBoolean,
481
+ represent: {
482
+ lowercase: function (object) { return object ? 'true' : 'false'; },
483
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
484
+ camelcase: function (object) { return object ? 'True' : 'False'; }
485
+ },
486
+ defaultStyle: 'lowercase'
487
+ });
488
+
489
+ function isHexCode(c) {
490
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
491
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
492
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
493
+ }
494
+
495
+ function isOctCode(c) {
496
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
497
+ }
498
+
499
+ function isDecCode(c) {
500
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
501
+ }
502
+
503
+ function resolveYamlInteger(data) {
504
+ if (data === null) return false;
505
+
506
+ var max = data.length,
507
+ index = 0,
508
+ hasDigits = false,
509
+ ch;
510
+
511
+ if (!max) return false;
512
+
513
+ ch = data[index];
514
+
515
+ // sign
516
+ if (ch === '-' || ch === '+') {
517
+ ch = data[++index];
518
+ }
519
+
520
+ if (ch === '0') {
521
+ // 0
522
+ if (index + 1 === max) return true;
523
+ ch = data[++index];
524
+
525
+ // base 2, base 8, base 16
526
+
527
+ if (ch === 'b') {
528
+ // base 2
529
+ index++;
530
+
531
+ for (; index < max; index++) {
532
+ ch = data[index];
533
+ if (ch === '_') continue;
534
+ if (ch !== '0' && ch !== '1') return false;
535
+ hasDigits = true;
536
+ }
537
+ return hasDigits && ch !== '_';
538
+ }
539
+
540
+
541
+ if (ch === 'x') {
542
+ // base 16
543
+ index++;
544
+
545
+ for (; index < max; index++) {
546
+ ch = data[index];
547
+ if (ch === '_') continue;
548
+ if (!isHexCode(data.charCodeAt(index))) return false;
549
+ hasDigits = true;
550
+ }
551
+ return hasDigits && ch !== '_';
552
+ }
553
+
554
+
555
+ if (ch === 'o') {
556
+ // base 8
557
+ index++;
558
+
559
+ for (; index < max; index++) {
560
+ ch = data[index];
561
+ if (ch === '_') continue;
562
+ if (!isOctCode(data.charCodeAt(index))) return false;
563
+ hasDigits = true;
564
+ }
565
+ return hasDigits && ch !== '_';
566
+ }
567
+ }
568
+
569
+ // base 10 (except 0)
570
+
571
+ // value should not start with `_`;
572
+ if (ch === '_') return false;
573
+
574
+ for (; index < max; index++) {
575
+ ch = data[index];
576
+ if (ch === '_') continue;
577
+ if (!isDecCode(data.charCodeAt(index))) {
578
+ return false;
579
+ }
580
+ hasDigits = true;
581
+ }
582
+
583
+ // Should have digits and should not end with `_`
584
+ if (!hasDigits || ch === '_') return false;
585
+
586
+ return true;
587
+ }
588
+
589
+ function constructYamlInteger(data) {
590
+ var value = data, sign = 1, ch;
591
+
592
+ if (value.indexOf('_') !== -1) {
593
+ value = value.replace(/_/g, '');
594
+ }
595
+
596
+ ch = value[0];
597
+
598
+ if (ch === '-' || ch === '+') {
599
+ if (ch === '-') sign = -1;
600
+ value = value.slice(1);
601
+ ch = value[0];
602
+ }
603
+
604
+ if (value === '0') return 0;
605
+
606
+ if (ch === '0') {
607
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
608
+ if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);
609
+ if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);
610
+ }
611
+
612
+ return sign * parseInt(value, 10);
613
+ }
614
+
615
+ function isInteger(object) {
616
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
617
+ (object % 1 === 0 && !common.isNegativeZero(object));
618
+ }
619
+
620
+ var int = new type('tag:yaml.org,2002:int', {
621
+ kind: 'scalar',
622
+ resolve: resolveYamlInteger,
623
+ construct: constructYamlInteger,
624
+ predicate: isInteger,
625
+ represent: {
626
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
627
+ octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },
628
+ decimal: function (obj) { return obj.toString(10); },
629
+ /* eslint-disable max-len */
630
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
631
+ },
632
+ defaultStyle: 'decimal',
633
+ styleAliases: {
634
+ binary: [ 2, 'bin' ],
635
+ octal: [ 8, 'oct' ],
636
+ decimal: [ 10, 'dec' ],
637
+ hexadecimal: [ 16, 'hex' ]
638
+ }
639
+ });
640
+
641
+ var YAML_FLOAT_PATTERN = new RegExp(
642
+ // 2.5e4, 2.5 and integers
643
+ '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
644
+ // .2e4, .2
645
+ // special case, seems not from spec
646
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
647
+ // .inf
648
+ '|[-+]?\\.(?:inf|Inf|INF)' +
649
+ // .nan
650
+ '|\\.(?:nan|NaN|NAN))$');
651
+
652
+ function resolveYamlFloat(data) {
653
+ if (data === null) return false;
654
+
655
+ if (!YAML_FLOAT_PATTERN.test(data) ||
656
+ // Quick hack to not allow integers end with `_`
657
+ // Probably should update regexp & check speed
658
+ data[data.length - 1] === '_') {
659
+ return false;
660
+ }
661
+
662
+ return true;
663
+ }
664
+
665
+ function constructYamlFloat(data) {
666
+ var value, sign;
667
+
668
+ value = data.replace(/_/g, '').toLowerCase();
669
+ sign = value[0] === '-' ? -1 : 1;
670
+
671
+ if ('+-'.indexOf(value[0]) >= 0) {
672
+ value = value.slice(1);
673
+ }
674
+
675
+ if (value === '.inf') {
676
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
677
+
678
+ } else if (value === '.nan') {
679
+ return NaN;
680
+ }
681
+ return sign * parseFloat(value, 10);
682
+ }
683
+
684
+
685
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
686
+
687
+ function representYamlFloat(object, style) {
688
+ var res;
689
+
690
+ if (isNaN(object)) {
691
+ switch (style) {
692
+ case 'lowercase': return '.nan';
693
+ case 'uppercase': return '.NAN';
694
+ case 'camelcase': return '.NaN';
695
+ }
696
+ } else if (Number.POSITIVE_INFINITY === object) {
697
+ switch (style) {
698
+ case 'lowercase': return '.inf';
699
+ case 'uppercase': return '.INF';
700
+ case 'camelcase': return '.Inf';
701
+ }
702
+ } else if (Number.NEGATIVE_INFINITY === object) {
703
+ switch (style) {
704
+ case 'lowercase': return '-.inf';
705
+ case 'uppercase': return '-.INF';
706
+ case 'camelcase': return '-.Inf';
707
+ }
708
+ } else if (common.isNegativeZero(object)) {
709
+ return '-0.0';
710
+ }
711
+
712
+ res = object.toString(10);
713
+
714
+ // JS stringifier can build scientific format without dots: 5e-100,
715
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
716
+
717
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
718
+ }
719
+
720
+ function isFloat(object) {
721
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
722
+ (object % 1 !== 0 || common.isNegativeZero(object));
723
+ }
724
+
725
+ var float = new type('tag:yaml.org,2002:float', {
726
+ kind: 'scalar',
727
+ resolve: resolveYamlFloat,
728
+ construct: constructYamlFloat,
729
+ predicate: isFloat,
730
+ represent: representYamlFloat,
731
+ defaultStyle: 'lowercase'
732
+ });
733
+
734
+ var json = failsafe.extend({
735
+ implicit: [
736
+ _null,
737
+ bool,
738
+ int,
739
+ float
740
+ ]
741
+ });
742
+
743
+ var core = json;
744
+
745
+ var YAML_DATE_REGEXP = new RegExp(
746
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
747
+ '-([0-9][0-9])' + // [2] month
748
+ '-([0-9][0-9])$'); // [3] day
749
+
750
+ var YAML_TIMESTAMP_REGEXP = new RegExp(
751
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
752
+ '-([0-9][0-9]?)' + // [2] month
753
+ '-([0-9][0-9]?)' + // [3] day
754
+ '(?:[Tt]|[ \\t]+)' + // ...
755
+ '([0-9][0-9]?)' + // [4] hour
756
+ ':([0-9][0-9])' + // [5] minute
757
+ ':([0-9][0-9])' + // [6] second
758
+ '(?:\\.([0-9]*))?' + // [7] fraction
759
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
760
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
761
+
762
+ function resolveYamlTimestamp(data) {
763
+ if (data === null) return false;
764
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
765
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
766
+ return false;
767
+ }
768
+
769
+ function constructYamlTimestamp(data) {
770
+ var match, year, month, day, hour, minute, second, fraction = 0,
771
+ delta = null, tz_hour, tz_minute, date;
772
+
773
+ match = YAML_DATE_REGEXP.exec(data);
774
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
775
+
776
+ if (match === null) throw new Error('Date resolve error');
777
+
778
+ // match: [1] year [2] month [3] day
779
+
780
+ year = +(match[1]);
781
+ month = +(match[2]) - 1; // JS month starts with 0
782
+ day = +(match[3]);
783
+
784
+ if (!match[4]) { // no hour
785
+ return new Date(Date.UTC(year, month, day));
786
+ }
787
+
788
+ // match: [4] hour [5] minute [6] second [7] fraction
789
+
790
+ hour = +(match[4]);
791
+ minute = +(match[5]);
792
+ second = +(match[6]);
793
+
794
+ if (match[7]) {
795
+ fraction = match[7].slice(0, 3);
796
+ while (fraction.length < 3) { // milli-seconds
797
+ fraction += '0';
798
+ }
799
+ fraction = +fraction;
800
+ }
801
+
802
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
803
+
804
+ if (match[9]) {
805
+ tz_hour = +(match[10]);
806
+ tz_minute = +(match[11] || 0);
807
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
808
+ if (match[9] === '-') delta = -delta;
809
+ }
810
+
811
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
812
+
813
+ if (delta) date.setTime(date.getTime() - delta);
814
+
815
+ return date;
816
+ }
817
+
818
+ function representYamlTimestamp(object /*, style*/) {
819
+ return object.toISOString();
820
+ }
821
+
822
+ var timestamp = new type('tag:yaml.org,2002:timestamp', {
823
+ kind: 'scalar',
824
+ resolve: resolveYamlTimestamp,
825
+ construct: constructYamlTimestamp,
826
+ instanceOf: Date,
827
+ represent: representYamlTimestamp
828
+ });
829
+
830
+ function resolveYamlMerge(data) {
831
+ return data === '<<' || data === null;
832
+ }
833
+
834
+ var merge = new type('tag:yaml.org,2002:merge', {
835
+ kind: 'scalar',
836
+ resolve: resolveYamlMerge
837
+ });
838
+
839
+ /*eslint-disable no-bitwise*/
840
+
841
+
842
+
843
+
844
+
845
+ // [ 64, 65, 66 ] -> [ padding, CR, LF ]
846
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
847
+
848
+
849
+ function resolveYamlBinary(data) {
850
+ if (data === null) return false;
851
+
852
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
853
+
854
+ // Convert one by one.
855
+ for (idx = 0; idx < max; idx++) {
856
+ code = map.indexOf(data.charAt(idx));
857
+
858
+ // Skip CR/LF
859
+ if (code > 64) continue;
860
+
861
+ // Fail on illegal characters
862
+ if (code < 0) return false;
863
+
864
+ bitlen += 6;
865
+ }
866
+
867
+ // If there are any bits left, source was corrupted
868
+ return (bitlen % 8) === 0;
869
+ }
870
+
871
+ function constructYamlBinary(data) {
872
+ var idx, tailbits,
873
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
874
+ max = input.length,
875
+ map = BASE64_MAP,
876
+ bits = 0,
877
+ result = [];
878
+
879
+ // Collect by 6*4 bits (3 bytes)
880
+
881
+ for (idx = 0; idx < max; idx++) {
882
+ if ((idx % 4 === 0) && idx) {
883
+ result.push((bits >> 16) & 0xFF);
884
+ result.push((bits >> 8) & 0xFF);
885
+ result.push(bits & 0xFF);
886
+ }
887
+
888
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
889
+ }
890
+
891
+ // Dump tail
892
+
893
+ tailbits = (max % 4) * 6;
894
+
895
+ if (tailbits === 0) {
896
+ result.push((bits >> 16) & 0xFF);
897
+ result.push((bits >> 8) & 0xFF);
898
+ result.push(bits & 0xFF);
899
+ } else if (tailbits === 18) {
900
+ result.push((bits >> 10) & 0xFF);
901
+ result.push((bits >> 2) & 0xFF);
902
+ } else if (tailbits === 12) {
903
+ result.push((bits >> 4) & 0xFF);
904
+ }
905
+
906
+ return new Uint8Array(result);
907
+ }
908
+
909
+ function representYamlBinary(object /*, style*/) {
910
+ var result = '', bits = 0, idx, tail,
911
+ max = object.length,
912
+ map = BASE64_MAP;
913
+
914
+ // Convert every three bytes to 4 ASCII characters.
915
+
916
+ for (idx = 0; idx < max; idx++) {
917
+ if ((idx % 3 === 0) && idx) {
918
+ result += map[(bits >> 18) & 0x3F];
919
+ result += map[(bits >> 12) & 0x3F];
920
+ result += map[(bits >> 6) & 0x3F];
921
+ result += map[bits & 0x3F];
922
+ }
923
+
924
+ bits = (bits << 8) + object[idx];
925
+ }
926
+
927
+ // Dump tail
928
+
929
+ tail = max % 3;
930
+
931
+ if (tail === 0) {
932
+ result += map[(bits >> 18) & 0x3F];
933
+ result += map[(bits >> 12) & 0x3F];
934
+ result += map[(bits >> 6) & 0x3F];
935
+ result += map[bits & 0x3F];
936
+ } else if (tail === 2) {
937
+ result += map[(bits >> 10) & 0x3F];
938
+ result += map[(bits >> 4) & 0x3F];
939
+ result += map[(bits << 2) & 0x3F];
940
+ result += map[64];
941
+ } else if (tail === 1) {
942
+ result += map[(bits >> 2) & 0x3F];
943
+ result += map[(bits << 4) & 0x3F];
944
+ result += map[64];
945
+ result += map[64];
946
+ }
947
+
948
+ return result;
949
+ }
950
+
951
+ function isBinary(obj) {
952
+ return Object.prototype.toString.call(obj) === '[object Uint8Array]';
953
+ }
954
+
955
+ var binary = new type('tag:yaml.org,2002:binary', {
956
+ kind: 'scalar',
957
+ resolve: resolveYamlBinary,
958
+ construct: constructYamlBinary,
959
+ predicate: isBinary,
960
+ represent: representYamlBinary
961
+ });
962
+
963
+ var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
964
+ var _toString$2 = Object.prototype.toString;
965
+
966
+ function resolveYamlOmap(data) {
967
+ if (data === null) return true;
968
+
969
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
970
+ object = data;
971
+
972
+ for (index = 0, length = object.length; index < length; index += 1) {
973
+ pair = object[index];
974
+ pairHasKey = false;
975
+
976
+ if (_toString$2.call(pair) !== '[object Object]') return false;
977
+
978
+ for (pairKey in pair) {
979
+ if (_hasOwnProperty$3.call(pair, pairKey)) {
980
+ if (!pairHasKey) pairHasKey = true;
981
+ else return false;
982
+ }
983
+ }
984
+
985
+ if (!pairHasKey) return false;
986
+
987
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
988
+ else return false;
989
+ }
990
+
991
+ return true;
992
+ }
993
+
994
+ function constructYamlOmap(data) {
995
+ return data !== null ? data : [];
996
+ }
997
+
998
+ var omap = new type('tag:yaml.org,2002:omap', {
999
+ kind: 'sequence',
1000
+ resolve: resolveYamlOmap,
1001
+ construct: constructYamlOmap
1002
+ });
1003
+
1004
+ var _toString$1 = Object.prototype.toString;
1005
+
1006
+ function resolveYamlPairs(data) {
1007
+ if (data === null) return true;
1008
+
1009
+ var index, length, pair, keys, result,
1010
+ object = data;
1011
+
1012
+ result = new Array(object.length);
1013
+
1014
+ for (index = 0, length = object.length; index < length; index += 1) {
1015
+ pair = object[index];
1016
+
1017
+ if (_toString$1.call(pair) !== '[object Object]') return false;
1018
+
1019
+ keys = Object.keys(pair);
1020
+
1021
+ if (keys.length !== 1) return false;
1022
+
1023
+ result[index] = [ keys[0], pair[keys[0]] ];
1024
+ }
1025
+
1026
+ return true;
1027
+ }
1028
+
1029
+ function constructYamlPairs(data) {
1030
+ if (data === null) return [];
1031
+
1032
+ var index, length, pair, keys, result,
1033
+ object = data;
1034
+
1035
+ result = new Array(object.length);
1036
+
1037
+ for (index = 0, length = object.length; index < length; index += 1) {
1038
+ pair = object[index];
1039
+
1040
+ keys = Object.keys(pair);
1041
+
1042
+ result[index] = [ keys[0], pair[keys[0]] ];
1043
+ }
1044
+
1045
+ return result;
1046
+ }
1047
+
1048
+ var pairs = new type('tag:yaml.org,2002:pairs', {
1049
+ kind: 'sequence',
1050
+ resolve: resolveYamlPairs,
1051
+ construct: constructYamlPairs
1052
+ });
1053
+
1054
+ var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1055
+
1056
+ function resolveYamlSet(data) {
1057
+ if (data === null) return true;
1058
+
1059
+ var key, object = data;
1060
+
1061
+ for (key in object) {
1062
+ if (_hasOwnProperty$2.call(object, key)) {
1063
+ if (object[key] !== null) return false;
1064
+ }
1065
+ }
1066
+
1067
+ return true;
1068
+ }
1069
+
1070
+ function constructYamlSet(data) {
1071
+ return data !== null ? data : {};
1072
+ }
1073
+
1074
+ var set = new type('tag:yaml.org,2002:set', {
1075
+ kind: 'mapping',
1076
+ resolve: resolveYamlSet,
1077
+ construct: constructYamlSet
1078
+ });
1079
+
1080
+ var _default = core.extend({
1081
+ implicit: [
1082
+ timestamp,
1083
+ merge
1084
+ ],
1085
+ explicit: [
1086
+ binary,
1087
+ omap,
1088
+ pairs,
1089
+ set
1090
+ ]
1091
+ });
1092
+
1093
+ /*eslint-disable max-len,no-use-before-define*/
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1102
+
1103
+
1104
+ var CONTEXT_FLOW_IN = 1;
1105
+ var CONTEXT_FLOW_OUT = 2;
1106
+ var CONTEXT_BLOCK_IN = 3;
1107
+ var CONTEXT_BLOCK_OUT = 4;
1108
+
1109
+
1110
+ var CHOMPING_CLIP = 1;
1111
+ var CHOMPING_STRIP = 2;
1112
+ var CHOMPING_KEEP = 3;
1113
+
1114
+
1115
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
1116
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
1117
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
1118
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
1119
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1120
+
1121
+
1122
+ function _class(obj) { return Object.prototype.toString.call(obj); }
1123
+
1124
+ function is_EOL(c) {
1125
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
1126
+ }
1127
+
1128
+ function is_WHITE_SPACE(c) {
1129
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
1130
+ }
1131
+
1132
+ function is_WS_OR_EOL(c) {
1133
+ return (c === 0x09/* Tab */) ||
1134
+ (c === 0x20/* Space */) ||
1135
+ (c === 0x0A/* LF */) ||
1136
+ (c === 0x0D/* CR */);
1137
+ }
1138
+
1139
+ function is_FLOW_INDICATOR(c) {
1140
+ return c === 0x2C/* , */ ||
1141
+ c === 0x5B/* [ */ ||
1142
+ c === 0x5D/* ] */ ||
1143
+ c === 0x7B/* { */ ||
1144
+ c === 0x7D/* } */;
1145
+ }
1146
+
1147
+ function fromHexCode(c) {
1148
+ var lc;
1149
+
1150
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1151
+ return c - 0x30;
1152
+ }
1153
+
1154
+ /*eslint-disable no-bitwise*/
1155
+ lc = c | 0x20;
1156
+
1157
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
1158
+ return lc - 0x61 + 10;
1159
+ }
1160
+
1161
+ return -1;
1162
+ }
1163
+
1164
+ function escapedHexLen(c) {
1165
+ if (c === 0x78/* x */) { return 2; }
1166
+ if (c === 0x75/* u */) { return 4; }
1167
+ if (c === 0x55/* U */) { return 8; }
1168
+ return 0;
1169
+ }
1170
+
1171
+ function fromDecimalCode(c) {
1172
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1173
+ return c - 0x30;
1174
+ }
1175
+
1176
+ return -1;
1177
+ }
1178
+
1179
+ function simpleEscapeSequence(c) {
1180
+ /* eslint-disable indent */
1181
+ return (c === 0x30/* 0 */) ? '\x00' :
1182
+ (c === 0x61/* a */) ? '\x07' :
1183
+ (c === 0x62/* b */) ? '\x08' :
1184
+ (c === 0x74/* t */) ? '\x09' :
1185
+ (c === 0x09/* Tab */) ? '\x09' :
1186
+ (c === 0x6E/* n */) ? '\x0A' :
1187
+ (c === 0x76/* v */) ? '\x0B' :
1188
+ (c === 0x66/* f */) ? '\x0C' :
1189
+ (c === 0x72/* r */) ? '\x0D' :
1190
+ (c === 0x65/* e */) ? '\x1B' :
1191
+ (c === 0x20/* Space */) ? ' ' :
1192
+ (c === 0x22/* " */) ? '\x22' :
1193
+ (c === 0x2F/* / */) ? '/' :
1194
+ (c === 0x5C/* \ */) ? '\x5C' :
1195
+ (c === 0x4E/* N */) ? '\x85' :
1196
+ (c === 0x5F/* _ */) ? '\xA0' :
1197
+ (c === 0x4C/* L */) ? '\u2028' :
1198
+ (c === 0x50/* P */) ? '\u2029' : '';
1199
+ }
1200
+
1201
+ function charFromCodepoint(c) {
1202
+ if (c <= 0xFFFF) {
1203
+ return String.fromCharCode(c);
1204
+ }
1205
+ // Encode UTF-16 surrogate pair
1206
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
1207
+ return String.fromCharCode(
1208
+ ((c - 0x010000) >> 10) + 0xD800,
1209
+ ((c - 0x010000) & 0x03FF) + 0xDC00
1210
+ );
1211
+ }
1212
+
1213
+ // set a property of a literal object, while protecting against prototype pollution,
1214
+ // see https://github.com/nodeca/js-yaml/issues/164 for more details
1215
+ function setProperty(object, key, value) {
1216
+ // used for this specific key only because Object.defineProperty is slow
1217
+ if (key === '__proto__') {
1218
+ Object.defineProperty(object, key, {
1219
+ configurable: true,
1220
+ enumerable: true,
1221
+ writable: true,
1222
+ value: value
1223
+ });
1224
+ } else {
1225
+ object[key] = value;
1226
+ }
1227
+ }
1228
+
1229
+ var simpleEscapeCheck = new Array(256); // integer, for fast access
1230
+ var simpleEscapeMap = new Array(256);
1231
+ for (var i = 0; i < 256; i++) {
1232
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
1233
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
1234
+ }
1235
+
1236
+
1237
+ function State$1(input, options) {
1238
+ this.input = input;
1239
+
1240
+ this.filename = options['filename'] || null;
1241
+ this.schema = options['schema'] || _default;
1242
+ this.onWarning = options['onWarning'] || null;
1243
+ // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
1244
+ // if such documents have no explicit %YAML directive
1245
+ this.legacy = options['legacy'] || false;
1246
+
1247
+ this.json = options['json'] || false;
1248
+ this.listener = options['listener'] || null;
1249
+
1250
+ this.implicitTypes = this.schema.compiledImplicit;
1251
+ this.typeMap = this.schema.compiledTypeMap;
1252
+
1253
+ this.length = input.length;
1254
+ this.position = 0;
1255
+ this.line = 0;
1256
+ this.lineStart = 0;
1257
+ this.lineIndent = 0;
1258
+
1259
+ // position of first leading tab in the current line,
1260
+ // used to make sure there are no tabs in the indentation
1261
+ this.firstTabInLine = -1;
1262
+
1263
+ this.documents = [];
1264
+
1265
+ /*
1266
+ this.version;
1267
+ this.checkLineBreaks;
1268
+ this.tagMap;
1269
+ this.anchorMap;
1270
+ this.tag;
1271
+ this.anchor;
1272
+ this.kind;
1273
+ this.result;*/
1274
+
1275
+ }
1276
+
1277
+
1278
+ function generateError(state, message) {
1279
+ var mark = {
1280
+ name: state.filename,
1281
+ buffer: state.input.slice(0, -1), // omit trailing \0
1282
+ position: state.position,
1283
+ line: state.line,
1284
+ column: state.position - state.lineStart
1285
+ };
1286
+
1287
+ mark.snippet = snippet(mark);
1288
+
1289
+ return new exception(message, mark);
1290
+ }
1291
+
1292
+ function throwError(state, message) {
1293
+ throw generateError(state, message);
1294
+ }
1295
+
1296
+ function throwWarning(state, message) {
1297
+ if (state.onWarning) {
1298
+ state.onWarning.call(null, generateError(state, message));
1299
+ }
1300
+ }
1301
+
1302
+
1303
+ var directiveHandlers = {
1304
+
1305
+ YAML: function handleYamlDirective(state, name, args) {
1306
+
1307
+ var match, major, minor;
1308
+
1309
+ if (state.version !== null) {
1310
+ throwError(state, 'duplication of %YAML directive');
1311
+ }
1312
+
1313
+ if (args.length !== 1) {
1314
+ throwError(state, 'YAML directive accepts exactly one argument');
1315
+ }
1316
+
1317
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1318
+
1319
+ if (match === null) {
1320
+ throwError(state, 'ill-formed argument of the YAML directive');
1321
+ }
1322
+
1323
+ major = parseInt(match[1], 10);
1324
+ minor = parseInt(match[2], 10);
1325
+
1326
+ if (major !== 1) {
1327
+ throwError(state, 'unacceptable YAML version of the document');
1328
+ }
1329
+
1330
+ state.version = args[0];
1331
+ state.checkLineBreaks = (minor < 2);
1332
+
1333
+ if (minor !== 1 && minor !== 2) {
1334
+ throwWarning(state, 'unsupported YAML version of the document');
1335
+ }
1336
+ },
1337
+
1338
+ TAG: function handleTagDirective(state, name, args) {
1339
+
1340
+ var handle, prefix;
1341
+
1342
+ if (args.length !== 2) {
1343
+ throwError(state, 'TAG directive accepts exactly two arguments');
1344
+ }
1345
+
1346
+ handle = args[0];
1347
+ prefix = args[1];
1348
+
1349
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
1350
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1351
+ }
1352
+
1353
+ if (_hasOwnProperty$1.call(state.tagMap, handle)) {
1354
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1355
+ }
1356
+
1357
+ if (!PATTERN_TAG_URI.test(prefix)) {
1358
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
1359
+ }
1360
+
1361
+ try {
1362
+ prefix = decodeURIComponent(prefix);
1363
+ } catch (err) {
1364
+ throwError(state, 'tag prefix is malformed: ' + prefix);
1365
+ }
1366
+
1367
+ state.tagMap[handle] = prefix;
1368
+ }
1369
+ };
1370
+
1371
+
1372
+ function captureSegment(state, start, end, checkJson) {
1373
+ var _position, _length, _character, _result;
1374
+
1375
+ if (start < end) {
1376
+ _result = state.input.slice(start, end);
1377
+
1378
+ if (checkJson) {
1379
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1380
+ _character = _result.charCodeAt(_position);
1381
+ if (!(_character === 0x09 ||
1382
+ (0x20 <= _character && _character <= 0x10FFFF))) {
1383
+ throwError(state, 'expected valid JSON character');
1384
+ }
1385
+ }
1386
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1387
+ throwError(state, 'the stream contains non-printable characters');
1388
+ }
1389
+
1390
+ state.result += _result;
1391
+ }
1392
+ }
1393
+
1394
+ function mergeMappings(state, destination, source, overridableKeys) {
1395
+ var sourceKeys, key, index, quantity;
1396
+
1397
+ if (!common.isObject(source)) {
1398
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1399
+ }
1400
+
1401
+ sourceKeys = Object.keys(source);
1402
+
1403
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1404
+ key = sourceKeys[index];
1405
+
1406
+ if (!_hasOwnProperty$1.call(destination, key)) {
1407
+ setProperty(destination, key, source[key]);
1408
+ overridableKeys[key] = true;
1409
+ }
1410
+ }
1411
+ }
1412
+
1413
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,
1414
+ startLine, startLineStart, startPos) {
1415
+
1416
+ var index, quantity;
1417
+
1418
+ // The output is a plain object here, so keys can only be strings.
1419
+ // We need to convert keyNode to a string, but doing so can hang the process
1420
+ // (deeply nested arrays that explode exponentially using aliases).
1421
+ if (Array.isArray(keyNode)) {
1422
+ keyNode = Array.prototype.slice.call(keyNode);
1423
+
1424
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1425
+ if (Array.isArray(keyNode[index])) {
1426
+ throwError(state, 'nested arrays are not supported inside keys');
1427
+ }
1428
+
1429
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
1430
+ keyNode[index] = '[object Object]';
1431
+ }
1432
+ }
1433
+ }
1434
+
1435
+ // Avoid code execution in load() via toString property
1436
+ // (still use its own toString for arrays, timestamps,
1437
+ // and whatever user schema extensions happen to have @@toStringTag)
1438
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
1439
+ keyNode = '[object Object]';
1440
+ }
1441
+
1442
+
1443
+ keyNode = String(keyNode);
1444
+
1445
+ if (_result === null) {
1446
+ _result = {};
1447
+ }
1448
+
1449
+ if (keyTag === 'tag:yaml.org,2002:merge') {
1450
+ if (Array.isArray(valueNode)) {
1451
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1452
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
1453
+ }
1454
+ } else {
1455
+ mergeMappings(state, _result, valueNode, overridableKeys);
1456
+ }
1457
+ } else {
1458
+ if (!state.json &&
1459
+ !_hasOwnProperty$1.call(overridableKeys, keyNode) &&
1460
+ _hasOwnProperty$1.call(_result, keyNode)) {
1461
+ state.line = startLine || state.line;
1462
+ state.lineStart = startLineStart || state.lineStart;
1463
+ state.position = startPos || state.position;
1464
+ throwError(state, 'duplicated mapping key');
1465
+ }
1466
+
1467
+ setProperty(_result, keyNode, valueNode);
1468
+ delete overridableKeys[keyNode];
1469
+ }
1470
+
1471
+ return _result;
1472
+ }
1473
+
1474
+ function readLineBreak(state) {
1475
+ var ch;
1476
+
1477
+ ch = state.input.charCodeAt(state.position);
1478
+
1479
+ if (ch === 0x0A/* LF */) {
1480
+ state.position++;
1481
+ } else if (ch === 0x0D/* CR */) {
1482
+ state.position++;
1483
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
1484
+ state.position++;
1485
+ }
1486
+ } else {
1487
+ throwError(state, 'a line break is expected');
1488
+ }
1489
+
1490
+ state.line += 1;
1491
+ state.lineStart = state.position;
1492
+ state.firstTabInLine = -1;
1493
+ }
1494
+
1495
+ function skipSeparationSpace(state, allowComments, checkIndent) {
1496
+ var lineBreaks = 0,
1497
+ ch = state.input.charCodeAt(state.position);
1498
+
1499
+ while (ch !== 0) {
1500
+ while (is_WHITE_SPACE(ch)) {
1501
+ if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
1502
+ state.firstTabInLine = state.position;
1503
+ }
1504
+ ch = state.input.charCodeAt(++state.position);
1505
+ }
1506
+
1507
+ if (allowComments && ch === 0x23/* # */) {
1508
+ do {
1509
+ ch = state.input.charCodeAt(++state.position);
1510
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
1511
+ }
1512
+
1513
+ if (is_EOL(ch)) {
1514
+ readLineBreak(state);
1515
+
1516
+ ch = state.input.charCodeAt(state.position);
1517
+ lineBreaks++;
1518
+ state.lineIndent = 0;
1519
+
1520
+ while (ch === 0x20/* Space */) {
1521
+ state.lineIndent++;
1522
+ ch = state.input.charCodeAt(++state.position);
1523
+ }
1524
+ } else {
1525
+ break;
1526
+ }
1527
+ }
1528
+
1529
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1530
+ throwWarning(state, 'deficient indentation');
1531
+ }
1532
+
1533
+ return lineBreaks;
1534
+ }
1535
+
1536
+ function testDocumentSeparator(state) {
1537
+ var _position = state.position,
1538
+ ch;
1539
+
1540
+ ch = state.input.charCodeAt(_position);
1541
+
1542
+ // Condition state.position === state.lineStart is tested
1543
+ // in parent on each call, for efficiency. No needs to test here again.
1544
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
1545
+ ch === state.input.charCodeAt(_position + 1) &&
1546
+ ch === state.input.charCodeAt(_position + 2)) {
1547
+
1548
+ _position += 3;
1549
+
1550
+ ch = state.input.charCodeAt(_position);
1551
+
1552
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
1553
+ return true;
1554
+ }
1555
+ }
1556
+
1557
+ return false;
1558
+ }
1559
+
1560
+ function writeFoldedLines(state, count) {
1561
+ if (count === 1) {
1562
+ state.result += ' ';
1563
+ } else if (count > 1) {
1564
+ state.result += common.repeat('\n', count - 1);
1565
+ }
1566
+ }
1567
+
1568
+
1569
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1570
+ var preceding,
1571
+ following,
1572
+ captureStart,
1573
+ captureEnd,
1574
+ hasPendingContent,
1575
+ _line,
1576
+ _lineStart,
1577
+ _lineIndent,
1578
+ _kind = state.kind,
1579
+ _result = state.result,
1580
+ ch;
1581
+
1582
+ ch = state.input.charCodeAt(state.position);
1583
+
1584
+ if (is_WS_OR_EOL(ch) ||
1585
+ is_FLOW_INDICATOR(ch) ||
1586
+ ch === 0x23/* # */ ||
1587
+ ch === 0x26/* & */ ||
1588
+ ch === 0x2A/* * */ ||
1589
+ ch === 0x21/* ! */ ||
1590
+ ch === 0x7C/* | */ ||
1591
+ ch === 0x3E/* > */ ||
1592
+ ch === 0x27/* ' */ ||
1593
+ ch === 0x22/* " */ ||
1594
+ ch === 0x25/* % */ ||
1595
+ ch === 0x40/* @ */ ||
1596
+ ch === 0x60/* ` */) {
1597
+ return false;
1598
+ }
1599
+
1600
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
1601
+ following = state.input.charCodeAt(state.position + 1);
1602
+
1603
+ if (is_WS_OR_EOL(following) ||
1604
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1605
+ return false;
1606
+ }
1607
+ }
1608
+
1609
+ state.kind = 'scalar';
1610
+ state.result = '';
1611
+ captureStart = captureEnd = state.position;
1612
+ hasPendingContent = false;
1613
+
1614
+ while (ch !== 0) {
1615
+ if (ch === 0x3A/* : */) {
1616
+ following = state.input.charCodeAt(state.position + 1);
1617
+
1618
+ if (is_WS_OR_EOL(following) ||
1619
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1620
+ break;
1621
+ }
1622
+
1623
+ } else if (ch === 0x23/* # */) {
1624
+ preceding = state.input.charCodeAt(state.position - 1);
1625
+
1626
+ if (is_WS_OR_EOL(preceding)) {
1627
+ break;
1628
+ }
1629
+
1630
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
1631
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1632
+ break;
1633
+
1634
+ } else if (is_EOL(ch)) {
1635
+ _line = state.line;
1636
+ _lineStart = state.lineStart;
1637
+ _lineIndent = state.lineIndent;
1638
+ skipSeparationSpace(state, false, -1);
1639
+
1640
+ if (state.lineIndent >= nodeIndent) {
1641
+ hasPendingContent = true;
1642
+ ch = state.input.charCodeAt(state.position);
1643
+ continue;
1644
+ } else {
1645
+ state.position = captureEnd;
1646
+ state.line = _line;
1647
+ state.lineStart = _lineStart;
1648
+ state.lineIndent = _lineIndent;
1649
+ break;
1650
+ }
1651
+ }
1652
+
1653
+ if (hasPendingContent) {
1654
+ captureSegment(state, captureStart, captureEnd, false);
1655
+ writeFoldedLines(state, state.line - _line);
1656
+ captureStart = captureEnd = state.position;
1657
+ hasPendingContent = false;
1658
+ }
1659
+
1660
+ if (!is_WHITE_SPACE(ch)) {
1661
+ captureEnd = state.position + 1;
1662
+ }
1663
+
1664
+ ch = state.input.charCodeAt(++state.position);
1665
+ }
1666
+
1667
+ captureSegment(state, captureStart, captureEnd, false);
1668
+
1669
+ if (state.result) {
1670
+ return true;
1671
+ }
1672
+
1673
+ state.kind = _kind;
1674
+ state.result = _result;
1675
+ return false;
1676
+ }
1677
+
1678
+ function readSingleQuotedScalar(state, nodeIndent) {
1679
+ var ch,
1680
+ captureStart, captureEnd;
1681
+
1682
+ ch = state.input.charCodeAt(state.position);
1683
+
1684
+ if (ch !== 0x27/* ' */) {
1685
+ return false;
1686
+ }
1687
+
1688
+ state.kind = 'scalar';
1689
+ state.result = '';
1690
+ state.position++;
1691
+ captureStart = captureEnd = state.position;
1692
+
1693
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1694
+ if (ch === 0x27/* ' */) {
1695
+ captureSegment(state, captureStart, state.position, true);
1696
+ ch = state.input.charCodeAt(++state.position);
1697
+
1698
+ if (ch === 0x27/* ' */) {
1699
+ captureStart = state.position;
1700
+ state.position++;
1701
+ captureEnd = state.position;
1702
+ } else {
1703
+ return true;
1704
+ }
1705
+
1706
+ } else if (is_EOL(ch)) {
1707
+ captureSegment(state, captureStart, captureEnd, true);
1708
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1709
+ captureStart = captureEnd = state.position;
1710
+
1711
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1712
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
1713
+
1714
+ } else {
1715
+ state.position++;
1716
+ captureEnd = state.position;
1717
+ }
1718
+ }
1719
+
1720
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
1721
+ }
1722
+
1723
+ function readDoubleQuotedScalar(state, nodeIndent) {
1724
+ var captureStart,
1725
+ captureEnd,
1726
+ hexLength,
1727
+ hexResult,
1728
+ tmp,
1729
+ ch;
1730
+
1731
+ ch = state.input.charCodeAt(state.position);
1732
+
1733
+ if (ch !== 0x22/* " */) {
1734
+ return false;
1735
+ }
1736
+
1737
+ state.kind = 'scalar';
1738
+ state.result = '';
1739
+ state.position++;
1740
+ captureStart = captureEnd = state.position;
1741
+
1742
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1743
+ if (ch === 0x22/* " */) {
1744
+ captureSegment(state, captureStart, state.position, true);
1745
+ state.position++;
1746
+ return true;
1747
+
1748
+ } else if (ch === 0x5C/* \ */) {
1749
+ captureSegment(state, captureStart, state.position, true);
1750
+ ch = state.input.charCodeAt(++state.position);
1751
+
1752
+ if (is_EOL(ch)) {
1753
+ skipSeparationSpace(state, false, nodeIndent);
1754
+
1755
+ // TODO: rework to inline fn with no type cast?
1756
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
1757
+ state.result += simpleEscapeMap[ch];
1758
+ state.position++;
1759
+
1760
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
1761
+ hexLength = tmp;
1762
+ hexResult = 0;
1763
+
1764
+ for (; hexLength > 0; hexLength--) {
1765
+ ch = state.input.charCodeAt(++state.position);
1766
+
1767
+ if ((tmp = fromHexCode(ch)) >= 0) {
1768
+ hexResult = (hexResult << 4) + tmp;
1769
+
1770
+ } else {
1771
+ throwError(state, 'expected hexadecimal character');
1772
+ }
1773
+ }
1774
+
1775
+ state.result += charFromCodepoint(hexResult);
1776
+
1777
+ state.position++;
1778
+
1779
+ } else {
1780
+ throwError(state, 'unknown escape sequence');
1781
+ }
1782
+
1783
+ captureStart = captureEnd = state.position;
1784
+
1785
+ } else if (is_EOL(ch)) {
1786
+ captureSegment(state, captureStart, captureEnd, true);
1787
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1788
+ captureStart = captureEnd = state.position;
1789
+
1790
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1791
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
1792
+
1793
+ } else {
1794
+ state.position++;
1795
+ captureEnd = state.position;
1796
+ }
1797
+ }
1798
+
1799
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
1800
+ }
1801
+
1802
+ function readFlowCollection(state, nodeIndent) {
1803
+ var readNext = true,
1804
+ _line,
1805
+ _lineStart,
1806
+ _pos,
1807
+ _tag = state.tag,
1808
+ _result,
1809
+ _anchor = state.anchor,
1810
+ following,
1811
+ terminator,
1812
+ isPair,
1813
+ isExplicitPair,
1814
+ isMapping,
1815
+ overridableKeys = Object.create(null),
1816
+ keyNode,
1817
+ keyTag,
1818
+ valueNode,
1819
+ ch;
1820
+
1821
+ ch = state.input.charCodeAt(state.position);
1822
+
1823
+ if (ch === 0x5B/* [ */) {
1824
+ terminator = 0x5D;/* ] */
1825
+ isMapping = false;
1826
+ _result = [];
1827
+ } else if (ch === 0x7B/* { */) {
1828
+ terminator = 0x7D;/* } */
1829
+ isMapping = true;
1830
+ _result = {};
1831
+ } else {
1832
+ return false;
1833
+ }
1834
+
1835
+ if (state.anchor !== null) {
1836
+ state.anchorMap[state.anchor] = _result;
1837
+ }
1838
+
1839
+ ch = state.input.charCodeAt(++state.position);
1840
+
1841
+ while (ch !== 0) {
1842
+ skipSeparationSpace(state, true, nodeIndent);
1843
+
1844
+ ch = state.input.charCodeAt(state.position);
1845
+
1846
+ if (ch === terminator) {
1847
+ state.position++;
1848
+ state.tag = _tag;
1849
+ state.anchor = _anchor;
1850
+ state.kind = isMapping ? 'mapping' : 'sequence';
1851
+ state.result = _result;
1852
+ return true;
1853
+ } else if (!readNext) {
1854
+ throwError(state, 'missed comma between flow collection entries');
1855
+ } else if (ch === 0x2C/* , */) {
1856
+ // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
1857
+ throwError(state, "expected the node content, but found ','");
1858
+ }
1859
+
1860
+ keyTag = keyNode = valueNode = null;
1861
+ isPair = isExplicitPair = false;
1862
+
1863
+ if (ch === 0x3F/* ? */) {
1864
+ following = state.input.charCodeAt(state.position + 1);
1865
+
1866
+ if (is_WS_OR_EOL(following)) {
1867
+ isPair = isExplicitPair = true;
1868
+ state.position++;
1869
+ skipSeparationSpace(state, true, nodeIndent);
1870
+ }
1871
+ }
1872
+
1873
+ _line = state.line; // Save the current line.
1874
+ _lineStart = state.lineStart;
1875
+ _pos = state.position;
1876
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1877
+ keyTag = state.tag;
1878
+ keyNode = state.result;
1879
+ skipSeparationSpace(state, true, nodeIndent);
1880
+
1881
+ ch = state.input.charCodeAt(state.position);
1882
+
1883
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
1884
+ isPair = true;
1885
+ ch = state.input.charCodeAt(++state.position);
1886
+ skipSeparationSpace(state, true, nodeIndent);
1887
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1888
+ valueNode = state.result;
1889
+ }
1890
+
1891
+ if (isMapping) {
1892
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1893
+ } else if (isPair) {
1894
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1895
+ } else {
1896
+ _result.push(keyNode);
1897
+ }
1898
+
1899
+ skipSeparationSpace(state, true, nodeIndent);
1900
+
1901
+ ch = state.input.charCodeAt(state.position);
1902
+
1903
+ if (ch === 0x2C/* , */) {
1904
+ readNext = true;
1905
+ ch = state.input.charCodeAt(++state.position);
1906
+ } else {
1907
+ readNext = false;
1908
+ }
1909
+ }
1910
+
1911
+ throwError(state, 'unexpected end of the stream within a flow collection');
1912
+ }
1913
+
1914
+ function readBlockScalar(state, nodeIndent) {
1915
+ var captureStart,
1916
+ folding,
1917
+ chomping = CHOMPING_CLIP,
1918
+ didReadContent = false,
1919
+ detectedIndent = false,
1920
+ textIndent = nodeIndent,
1921
+ emptyLines = 0,
1922
+ atMoreIndented = false,
1923
+ tmp,
1924
+ ch;
1925
+
1926
+ ch = state.input.charCodeAt(state.position);
1927
+
1928
+ if (ch === 0x7C/* | */) {
1929
+ folding = false;
1930
+ } else if (ch === 0x3E/* > */) {
1931
+ folding = true;
1932
+ } else {
1933
+ return false;
1934
+ }
1935
+
1936
+ state.kind = 'scalar';
1937
+ state.result = '';
1938
+
1939
+ while (ch !== 0) {
1940
+ ch = state.input.charCodeAt(++state.position);
1941
+
1942
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
1943
+ if (CHOMPING_CLIP === chomping) {
1944
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
1945
+ } else {
1946
+ throwError(state, 'repeat of a chomping mode identifier');
1947
+ }
1948
+
1949
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1950
+ if (tmp === 0) {
1951
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1952
+ } else if (!detectedIndent) {
1953
+ textIndent = nodeIndent + tmp - 1;
1954
+ detectedIndent = true;
1955
+ } else {
1956
+ throwError(state, 'repeat of an indentation width identifier');
1957
+ }
1958
+
1959
+ } else {
1960
+ break;
1961
+ }
1962
+ }
1963
+
1964
+ if (is_WHITE_SPACE(ch)) {
1965
+ do { ch = state.input.charCodeAt(++state.position); }
1966
+ while (is_WHITE_SPACE(ch));
1967
+
1968
+ if (ch === 0x23/* # */) {
1969
+ do { ch = state.input.charCodeAt(++state.position); }
1970
+ while (!is_EOL(ch) && (ch !== 0));
1971
+ }
1972
+ }
1973
+
1974
+ while (ch !== 0) {
1975
+ readLineBreak(state);
1976
+ state.lineIndent = 0;
1977
+
1978
+ ch = state.input.charCodeAt(state.position);
1979
+
1980
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
1981
+ (ch === 0x20/* Space */)) {
1982
+ state.lineIndent++;
1983
+ ch = state.input.charCodeAt(++state.position);
1984
+ }
1985
+
1986
+ if (!detectedIndent && state.lineIndent > textIndent) {
1987
+ textIndent = state.lineIndent;
1988
+ }
1989
+
1990
+ if (is_EOL(ch)) {
1991
+ emptyLines++;
1992
+ continue;
1993
+ }
1994
+
1995
+ // End of the scalar.
1996
+ if (state.lineIndent < textIndent) {
1997
+
1998
+ // Perform the chomping.
1999
+ if (chomping === CHOMPING_KEEP) {
2000
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2001
+ } else if (chomping === CHOMPING_CLIP) {
2002
+ if (didReadContent) { // i.e. only if the scalar is not empty.
2003
+ state.result += '\n';
2004
+ }
2005
+ }
2006
+
2007
+ // Break this `while` cycle and go to the funciton's epilogue.
2008
+ break;
2009
+ }
2010
+
2011
+ // Folded style: use fancy rules to handle line breaks.
2012
+ if (folding) {
2013
+
2014
+ // Lines starting with white space characters (more-indented lines) are not folded.
2015
+ if (is_WHITE_SPACE(ch)) {
2016
+ atMoreIndented = true;
2017
+ // except for the first content line (cf. Example 8.1)
2018
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2019
+
2020
+ // End of more-indented block.
2021
+ } else if (atMoreIndented) {
2022
+ atMoreIndented = false;
2023
+ state.result += common.repeat('\n', emptyLines + 1);
2024
+
2025
+ // Just one line break - perceive as the same line.
2026
+ } else if (emptyLines === 0) {
2027
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
2028
+ state.result += ' ';
2029
+ }
2030
+
2031
+ // Several line breaks - perceive as different lines.
2032
+ } else {
2033
+ state.result += common.repeat('\n', emptyLines);
2034
+ }
2035
+
2036
+ // Literal style: just add exact number of line breaks between content lines.
2037
+ } else {
2038
+ // Keep all line breaks except the header line break.
2039
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2040
+ }
2041
+
2042
+ didReadContent = true;
2043
+ detectedIndent = true;
2044
+ emptyLines = 0;
2045
+ captureStart = state.position;
2046
+
2047
+ while (!is_EOL(ch) && (ch !== 0)) {
2048
+ ch = state.input.charCodeAt(++state.position);
2049
+ }
2050
+
2051
+ captureSegment(state, captureStart, state.position, false);
2052
+ }
2053
+
2054
+ return true;
2055
+ }
2056
+
2057
+ function readBlockSequence(state, nodeIndent) {
2058
+ var _line,
2059
+ _tag = state.tag,
2060
+ _anchor = state.anchor,
2061
+ _result = [],
2062
+ following,
2063
+ detected = false,
2064
+ ch;
2065
+
2066
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2067
+ // it can still be flow sequence/mapping or a scalar
2068
+ if (state.firstTabInLine !== -1) return false;
2069
+
2070
+ if (state.anchor !== null) {
2071
+ state.anchorMap[state.anchor] = _result;
2072
+ }
2073
+
2074
+ ch = state.input.charCodeAt(state.position);
2075
+
2076
+ while (ch !== 0) {
2077
+ if (state.firstTabInLine !== -1) {
2078
+ state.position = state.firstTabInLine;
2079
+ throwError(state, 'tab characters must not be used in indentation');
2080
+ }
2081
+
2082
+ if (ch !== 0x2D/* - */) {
2083
+ break;
2084
+ }
2085
+
2086
+ following = state.input.charCodeAt(state.position + 1);
2087
+
2088
+ if (!is_WS_OR_EOL(following)) {
2089
+ break;
2090
+ }
2091
+
2092
+ detected = true;
2093
+ state.position++;
2094
+
2095
+ if (skipSeparationSpace(state, true, -1)) {
2096
+ if (state.lineIndent <= nodeIndent) {
2097
+ _result.push(null);
2098
+ ch = state.input.charCodeAt(state.position);
2099
+ continue;
2100
+ }
2101
+ }
2102
+
2103
+ _line = state.line;
2104
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
2105
+ _result.push(state.result);
2106
+ skipSeparationSpace(state, true, -1);
2107
+
2108
+ ch = state.input.charCodeAt(state.position);
2109
+
2110
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2111
+ throwError(state, 'bad indentation of a sequence entry');
2112
+ } else if (state.lineIndent < nodeIndent) {
2113
+ break;
2114
+ }
2115
+ }
2116
+
2117
+ if (detected) {
2118
+ state.tag = _tag;
2119
+ state.anchor = _anchor;
2120
+ state.kind = 'sequence';
2121
+ state.result = _result;
2122
+ return true;
2123
+ }
2124
+ return false;
2125
+ }
2126
+
2127
+ function readBlockMapping(state, nodeIndent, flowIndent) {
2128
+ var following,
2129
+ allowCompact,
2130
+ _line,
2131
+ _keyLine,
2132
+ _keyLineStart,
2133
+ _keyPos,
2134
+ _tag = state.tag,
2135
+ _anchor = state.anchor,
2136
+ _result = {},
2137
+ overridableKeys = Object.create(null),
2138
+ keyTag = null,
2139
+ keyNode = null,
2140
+ valueNode = null,
2141
+ atExplicitKey = false,
2142
+ detected = false,
2143
+ ch;
2144
+
2145
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2146
+ // it can still be flow sequence/mapping or a scalar
2147
+ if (state.firstTabInLine !== -1) return false;
2148
+
2149
+ if (state.anchor !== null) {
2150
+ state.anchorMap[state.anchor] = _result;
2151
+ }
2152
+
2153
+ ch = state.input.charCodeAt(state.position);
2154
+
2155
+ while (ch !== 0) {
2156
+ if (!atExplicitKey && state.firstTabInLine !== -1) {
2157
+ state.position = state.firstTabInLine;
2158
+ throwError(state, 'tab characters must not be used in indentation');
2159
+ }
2160
+
2161
+ following = state.input.charCodeAt(state.position + 1);
2162
+ _line = state.line; // Save the current line.
2163
+
2164
+ //
2165
+ // Explicit notation case. There are two separate blocks:
2166
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
2167
+ //
2168
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
2169
+
2170
+ if (ch === 0x3F/* ? */) {
2171
+ if (atExplicitKey) {
2172
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2173
+ keyTag = keyNode = valueNode = null;
2174
+ }
2175
+
2176
+ detected = true;
2177
+ atExplicitKey = true;
2178
+ allowCompact = true;
2179
+
2180
+ } else if (atExplicitKey) {
2181
+ // i.e. 0x3A/* : */ === character after the explicit key.
2182
+ atExplicitKey = false;
2183
+ allowCompact = true;
2184
+
2185
+ } else {
2186
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
2187
+ }
2188
+
2189
+ state.position += 1;
2190
+ ch = following;
2191
+
2192
+ //
2193
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
2194
+ //
2195
+ } else {
2196
+ _keyLine = state.line;
2197
+ _keyLineStart = state.lineStart;
2198
+ _keyPos = state.position;
2199
+
2200
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
2201
+ // Neither implicit nor explicit notation.
2202
+ // Reading is done. Go to the epilogue.
2203
+ break;
2204
+ }
2205
+
2206
+ if (state.line === _line) {
2207
+ ch = state.input.charCodeAt(state.position);
2208
+
2209
+ while (is_WHITE_SPACE(ch)) {
2210
+ ch = state.input.charCodeAt(++state.position);
2211
+ }
2212
+
2213
+ if (ch === 0x3A/* : */) {
2214
+ ch = state.input.charCodeAt(++state.position);
2215
+
2216
+ if (!is_WS_OR_EOL(ch)) {
2217
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
2218
+ }
2219
+
2220
+ if (atExplicitKey) {
2221
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2222
+ keyTag = keyNode = valueNode = null;
2223
+ }
2224
+
2225
+ detected = true;
2226
+ atExplicitKey = false;
2227
+ allowCompact = false;
2228
+ keyTag = state.tag;
2229
+ keyNode = state.result;
2230
+
2231
+ } else if (detected) {
2232
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
2233
+
2234
+ } else {
2235
+ state.tag = _tag;
2236
+ state.anchor = _anchor;
2237
+ return true; // Keep the result of `composeNode`.
2238
+ }
2239
+
2240
+ } else if (detected) {
2241
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
2242
+
2243
+ } else {
2244
+ state.tag = _tag;
2245
+ state.anchor = _anchor;
2246
+ return true; // Keep the result of `composeNode`.
2247
+ }
2248
+ }
2249
+
2250
+ //
2251
+ // Common reading code for both explicit and implicit notations.
2252
+ //
2253
+ if (state.line === _line || state.lineIndent > nodeIndent) {
2254
+ if (atExplicitKey) {
2255
+ _keyLine = state.line;
2256
+ _keyLineStart = state.lineStart;
2257
+ _keyPos = state.position;
2258
+ }
2259
+
2260
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
2261
+ if (atExplicitKey) {
2262
+ keyNode = state.result;
2263
+ } else {
2264
+ valueNode = state.result;
2265
+ }
2266
+ }
2267
+
2268
+ if (!atExplicitKey) {
2269
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
2270
+ keyTag = keyNode = valueNode = null;
2271
+ }
2272
+
2273
+ skipSeparationSpace(state, true, -1);
2274
+ ch = state.input.charCodeAt(state.position);
2275
+ }
2276
+
2277
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2278
+ throwError(state, 'bad indentation of a mapping entry');
2279
+ } else if (state.lineIndent < nodeIndent) {
2280
+ break;
2281
+ }
2282
+ }
2283
+
2284
+ //
2285
+ // Epilogue.
2286
+ //
2287
+
2288
+ // Special case: last mapping's node contains only the key in explicit notation.
2289
+ if (atExplicitKey) {
2290
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2291
+ }
2292
+
2293
+ // Expose the resulting mapping.
2294
+ if (detected) {
2295
+ state.tag = _tag;
2296
+ state.anchor = _anchor;
2297
+ state.kind = 'mapping';
2298
+ state.result = _result;
2299
+ }
2300
+
2301
+ return detected;
2302
+ }
2303
+
2304
+ function readTagProperty(state) {
2305
+ var _position,
2306
+ isVerbatim = false,
2307
+ isNamed = false,
2308
+ tagHandle,
2309
+ tagName,
2310
+ ch;
2311
+
2312
+ ch = state.input.charCodeAt(state.position);
2313
+
2314
+ if (ch !== 0x21/* ! */) return false;
2315
+
2316
+ if (state.tag !== null) {
2317
+ throwError(state, 'duplication of a tag property');
2318
+ }
2319
+
2320
+ ch = state.input.charCodeAt(++state.position);
2321
+
2322
+ if (ch === 0x3C/* < */) {
2323
+ isVerbatim = true;
2324
+ ch = state.input.charCodeAt(++state.position);
2325
+
2326
+ } else if (ch === 0x21/* ! */) {
2327
+ isNamed = true;
2328
+ tagHandle = '!!';
2329
+ ch = state.input.charCodeAt(++state.position);
2330
+
2331
+ } else {
2332
+ tagHandle = '!';
2333
+ }
2334
+
2335
+ _position = state.position;
2336
+
2337
+ if (isVerbatim) {
2338
+ do { ch = state.input.charCodeAt(++state.position); }
2339
+ while (ch !== 0 && ch !== 0x3E/* > */);
2340
+
2341
+ if (state.position < state.length) {
2342
+ tagName = state.input.slice(_position, state.position);
2343
+ ch = state.input.charCodeAt(++state.position);
2344
+ } else {
2345
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
2346
+ }
2347
+ } else {
2348
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2349
+
2350
+ if (ch === 0x21/* ! */) {
2351
+ if (!isNamed) {
2352
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
2353
+
2354
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
2355
+ throwError(state, 'named tag handle cannot contain such characters');
2356
+ }
2357
+
2358
+ isNamed = true;
2359
+ _position = state.position + 1;
2360
+ } else {
2361
+ throwError(state, 'tag suffix cannot contain exclamation marks');
2362
+ }
2363
+ }
2364
+
2365
+ ch = state.input.charCodeAt(++state.position);
2366
+ }
2367
+
2368
+ tagName = state.input.slice(_position, state.position);
2369
+
2370
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
2371
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
2372
+ }
2373
+ }
2374
+
2375
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
2376
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
2377
+ }
2378
+
2379
+ try {
2380
+ tagName = decodeURIComponent(tagName);
2381
+ } catch (err) {
2382
+ throwError(state, 'tag name is malformed: ' + tagName);
2383
+ }
2384
+
2385
+ if (isVerbatim) {
2386
+ state.tag = tagName;
2387
+
2388
+ } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) {
2389
+ state.tag = state.tagMap[tagHandle] + tagName;
2390
+
2391
+ } else if (tagHandle === '!') {
2392
+ state.tag = '!' + tagName;
2393
+
2394
+ } else if (tagHandle === '!!') {
2395
+ state.tag = 'tag:yaml.org,2002:' + tagName;
2396
+
2397
+ } else {
2398
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
2399
+ }
2400
+
2401
+ return true;
2402
+ }
2403
+
2404
+ function readAnchorProperty(state) {
2405
+ var _position,
2406
+ ch;
2407
+
2408
+ ch = state.input.charCodeAt(state.position);
2409
+
2410
+ if (ch !== 0x26/* & */) return false;
2411
+
2412
+ if (state.anchor !== null) {
2413
+ throwError(state, 'duplication of an anchor property');
2414
+ }
2415
+
2416
+ ch = state.input.charCodeAt(++state.position);
2417
+ _position = state.position;
2418
+
2419
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2420
+ ch = state.input.charCodeAt(++state.position);
2421
+ }
2422
+
2423
+ if (state.position === _position) {
2424
+ throwError(state, 'name of an anchor node must contain at least one character');
2425
+ }
2426
+
2427
+ state.anchor = state.input.slice(_position, state.position);
2428
+ return true;
2429
+ }
2430
+
2431
+ function readAlias(state) {
2432
+ var _position, alias,
2433
+ ch;
2434
+
2435
+ ch = state.input.charCodeAt(state.position);
2436
+
2437
+ if (ch !== 0x2A/* * */) return false;
2438
+
2439
+ ch = state.input.charCodeAt(++state.position);
2440
+ _position = state.position;
2441
+
2442
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2443
+ ch = state.input.charCodeAt(++state.position);
2444
+ }
2445
+
2446
+ if (state.position === _position) {
2447
+ throwError(state, 'name of an alias node must contain at least one character');
2448
+ }
2449
+
2450
+ alias = state.input.slice(_position, state.position);
2451
+
2452
+ if (!_hasOwnProperty$1.call(state.anchorMap, alias)) {
2453
+ throwError(state, 'unidentified alias "' + alias + '"');
2454
+ }
2455
+
2456
+ state.result = state.anchorMap[alias];
2457
+ skipSeparationSpace(state, true, -1);
2458
+ return true;
2459
+ }
2460
+
2461
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
2462
+ var allowBlockStyles,
2463
+ allowBlockScalars,
2464
+ allowBlockCollections,
2465
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
2466
+ atNewLine = false,
2467
+ hasContent = false,
2468
+ typeIndex,
2469
+ typeQuantity,
2470
+ typeList,
2471
+ type,
2472
+ flowIndent,
2473
+ blockIndent;
2474
+
2475
+ if (state.listener !== null) {
2476
+ state.listener('open', state);
2477
+ }
2478
+
2479
+ state.tag = null;
2480
+ state.anchor = null;
2481
+ state.kind = null;
2482
+ state.result = null;
2483
+
2484
+ allowBlockStyles = allowBlockScalars = allowBlockCollections =
2485
+ CONTEXT_BLOCK_OUT === nodeContext ||
2486
+ CONTEXT_BLOCK_IN === nodeContext;
2487
+
2488
+ if (allowToSeek) {
2489
+ if (skipSeparationSpace(state, true, -1)) {
2490
+ atNewLine = true;
2491
+
2492
+ if (state.lineIndent > parentIndent) {
2493
+ indentStatus = 1;
2494
+ } else if (state.lineIndent === parentIndent) {
2495
+ indentStatus = 0;
2496
+ } else if (state.lineIndent < parentIndent) {
2497
+ indentStatus = -1;
2498
+ }
2499
+ }
2500
+ }
2501
+
2502
+ if (indentStatus === 1) {
2503
+ while (readTagProperty(state) || readAnchorProperty(state)) {
2504
+ if (skipSeparationSpace(state, true, -1)) {
2505
+ atNewLine = true;
2506
+ allowBlockCollections = allowBlockStyles;
2507
+
2508
+ if (state.lineIndent > parentIndent) {
2509
+ indentStatus = 1;
2510
+ } else if (state.lineIndent === parentIndent) {
2511
+ indentStatus = 0;
2512
+ } else if (state.lineIndent < parentIndent) {
2513
+ indentStatus = -1;
2514
+ }
2515
+ } else {
2516
+ allowBlockCollections = false;
2517
+ }
2518
+ }
2519
+ }
2520
+
2521
+ if (allowBlockCollections) {
2522
+ allowBlockCollections = atNewLine || allowCompact;
2523
+ }
2524
+
2525
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
2526
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
2527
+ flowIndent = parentIndent;
2528
+ } else {
2529
+ flowIndent = parentIndent + 1;
2530
+ }
2531
+
2532
+ blockIndent = state.position - state.lineStart;
2533
+
2534
+ if (indentStatus === 1) {
2535
+ if (allowBlockCollections &&
2536
+ (readBlockSequence(state, blockIndent) ||
2537
+ readBlockMapping(state, blockIndent, flowIndent)) ||
2538
+ readFlowCollection(state, flowIndent)) {
2539
+ hasContent = true;
2540
+ } else {
2541
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
2542
+ readSingleQuotedScalar(state, flowIndent) ||
2543
+ readDoubleQuotedScalar(state, flowIndent)) {
2544
+ hasContent = true;
2545
+
2546
+ } else if (readAlias(state)) {
2547
+ hasContent = true;
2548
+
2549
+ if (state.tag !== null || state.anchor !== null) {
2550
+ throwError(state, 'alias node should not have any properties');
2551
+ }
2552
+
2553
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
2554
+ hasContent = true;
2555
+
2556
+ if (state.tag === null) {
2557
+ state.tag = '?';
2558
+ }
2559
+ }
2560
+
2561
+ if (state.anchor !== null) {
2562
+ state.anchorMap[state.anchor] = state.result;
2563
+ }
2564
+ }
2565
+ } else if (indentStatus === 0) {
2566
+ // Special case: block sequences are allowed to have same indentation level as the parent.
2567
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
2568
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
2569
+ }
2570
+ }
2571
+
2572
+ if (state.tag === null) {
2573
+ if (state.anchor !== null) {
2574
+ state.anchorMap[state.anchor] = state.result;
2575
+ }
2576
+
2577
+ } else if (state.tag === '?') {
2578
+ // Implicit resolving is not allowed for non-scalar types, and '?'
2579
+ // non-specific tag is only automatically assigned to plain scalars.
2580
+ //
2581
+ // We only need to check kind conformity in case user explicitly assigns '?'
2582
+ // tag, for example like this: "!<?> [0]"
2583
+ //
2584
+ if (state.result !== null && state.kind !== 'scalar') {
2585
+ throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
2586
+ }
2587
+
2588
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
2589
+ type = state.implicitTypes[typeIndex];
2590
+
2591
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
2592
+ state.result = type.construct(state.result);
2593
+ state.tag = type.tag;
2594
+ if (state.anchor !== null) {
2595
+ state.anchorMap[state.anchor] = state.result;
2596
+ }
2597
+ break;
2598
+ }
2599
+ }
2600
+ } else if (state.tag !== '!') {
2601
+ if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
2602
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
2603
+ } else {
2604
+ // looking for multi type
2605
+ type = null;
2606
+ typeList = state.typeMap.multi[state.kind || 'fallback'];
2607
+
2608
+ for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
2609
+ if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
2610
+ type = typeList[typeIndex];
2611
+ break;
2612
+ }
2613
+ }
2614
+ }
2615
+
2616
+ if (!type) {
2617
+ throwError(state, 'unknown tag !<' + state.tag + '>');
2618
+ }
2619
+
2620
+ if (state.result !== null && type.kind !== state.kind) {
2621
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
2622
+ }
2623
+
2624
+ if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
2625
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
2626
+ } else {
2627
+ state.result = type.construct(state.result, state.tag);
2628
+ if (state.anchor !== null) {
2629
+ state.anchorMap[state.anchor] = state.result;
2630
+ }
2631
+ }
2632
+ }
2633
+
2634
+ if (state.listener !== null) {
2635
+ state.listener('close', state);
2636
+ }
2637
+ return state.tag !== null || state.anchor !== null || hasContent;
2638
+ }
2639
+
2640
+ function readDocument(state) {
2641
+ var documentStart = state.position,
2642
+ _position,
2643
+ directiveName,
2644
+ directiveArgs,
2645
+ hasDirectives = false,
2646
+ ch;
2647
+
2648
+ state.version = null;
2649
+ state.checkLineBreaks = state.legacy;
2650
+ state.tagMap = Object.create(null);
2651
+ state.anchorMap = Object.create(null);
2652
+
2653
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2654
+ skipSeparationSpace(state, true, -1);
2655
+
2656
+ ch = state.input.charCodeAt(state.position);
2657
+
2658
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
2659
+ break;
2660
+ }
2661
+
2662
+ hasDirectives = true;
2663
+ ch = state.input.charCodeAt(++state.position);
2664
+ _position = state.position;
2665
+
2666
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2667
+ ch = state.input.charCodeAt(++state.position);
2668
+ }
2669
+
2670
+ directiveName = state.input.slice(_position, state.position);
2671
+ directiveArgs = [];
2672
+
2673
+ if (directiveName.length < 1) {
2674
+ throwError(state, 'directive name must not be less than one character in length');
2675
+ }
2676
+
2677
+ while (ch !== 0) {
2678
+ while (is_WHITE_SPACE(ch)) {
2679
+ ch = state.input.charCodeAt(++state.position);
2680
+ }
2681
+
2682
+ if (ch === 0x23/* # */) {
2683
+ do { ch = state.input.charCodeAt(++state.position); }
2684
+ while (ch !== 0 && !is_EOL(ch));
2685
+ break;
2686
+ }
2687
+
2688
+ if (is_EOL(ch)) break;
2689
+
2690
+ _position = state.position;
2691
+
2692
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2693
+ ch = state.input.charCodeAt(++state.position);
2694
+ }
2695
+
2696
+ directiveArgs.push(state.input.slice(_position, state.position));
2697
+ }
2698
+
2699
+ if (ch !== 0) readLineBreak(state);
2700
+
2701
+ if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) {
2702
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
2703
+ } else {
2704
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
2705
+ }
2706
+ }
2707
+
2708
+ skipSeparationSpace(state, true, -1);
2709
+
2710
+ if (state.lineIndent === 0 &&
2711
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
2712
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
2713
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
2714
+ state.position += 3;
2715
+ skipSeparationSpace(state, true, -1);
2716
+
2717
+ } else if (hasDirectives) {
2718
+ throwError(state, 'directives end mark is expected');
2719
+ }
2720
+
2721
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
2722
+ skipSeparationSpace(state, true, -1);
2723
+
2724
+ if (state.checkLineBreaks &&
2725
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
2726
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
2727
+ }
2728
+
2729
+ state.documents.push(state.result);
2730
+
2731
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
2732
+
2733
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
2734
+ state.position += 3;
2735
+ skipSeparationSpace(state, true, -1);
2736
+ }
2737
+ return;
2738
+ }
2739
+
2740
+ if (state.position < (state.length - 1)) {
2741
+ throwError(state, 'end of the stream or a document separator is expected');
2742
+ } else {
2743
+ return;
2744
+ }
2745
+ }
2746
+
2747
+
2748
+ function loadDocuments(input, options) {
2749
+ input = String(input);
2750
+ options = options || {};
2751
+
2752
+ if (input.length !== 0) {
2753
+
2754
+ // Add tailing `\n` if not exists
2755
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
2756
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
2757
+ input += '\n';
2758
+ }
2759
+
2760
+ // Strip BOM
2761
+ if (input.charCodeAt(0) === 0xFEFF) {
2762
+ input = input.slice(1);
2763
+ }
2764
+ }
2765
+
2766
+ var state = new State$1(input, options);
2767
+
2768
+ var nullpos = input.indexOf('\0');
2769
+
2770
+ if (nullpos !== -1) {
2771
+ state.position = nullpos;
2772
+ throwError(state, 'null byte is not allowed in input');
2773
+ }
2774
+
2775
+ // Use 0 as string terminator. That significantly simplifies bounds check.
2776
+ state.input += '\0';
2777
+
2778
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
2779
+ state.lineIndent += 1;
2780
+ state.position += 1;
2781
+ }
2782
+
2783
+ while (state.position < (state.length - 1)) {
2784
+ readDocument(state);
2785
+ }
2786
+
2787
+ return state.documents;
2788
+ }
2789
+
2790
+
2791
+ function loadAll$1(input, iterator, options) {
2792
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
2793
+ options = iterator;
2794
+ iterator = null;
2795
+ }
2796
+
2797
+ var documents = loadDocuments(input, options);
2798
+
2799
+ if (typeof iterator !== 'function') {
2800
+ return documents;
2801
+ }
2802
+
2803
+ for (var index = 0, length = documents.length; index < length; index += 1) {
2804
+ iterator(documents[index]);
2805
+ }
2806
+ }
2807
+
2808
+
2809
+ function load$1(input, options) {
2810
+ var documents = loadDocuments(input, options);
2811
+
2812
+ if (documents.length === 0) {
2813
+ /*eslint-disable no-undefined*/
2814
+ return undefined;
2815
+ } else if (documents.length === 1) {
2816
+ return documents[0];
2817
+ }
2818
+ throw new exception('expected a single document in the stream, but found more');
2819
+ }
2820
+
2821
+
2822
+ var loadAll_1 = loadAll$1;
2823
+ var load_1 = load$1;
2824
+
2825
+ var loader = {
2826
+ loadAll: loadAll_1,
2827
+ load: load_1
2828
+ };
2829
+
2830
+ /*eslint-disable no-use-before-define*/
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+ var _toString = Object.prototype.toString;
2837
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2838
+
2839
+ var CHAR_BOM = 0xFEFF;
2840
+ var CHAR_TAB = 0x09; /* Tab */
2841
+ var CHAR_LINE_FEED = 0x0A; /* LF */
2842
+ var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
2843
+ var CHAR_SPACE = 0x20; /* Space */
2844
+ var CHAR_EXCLAMATION = 0x21; /* ! */
2845
+ var CHAR_DOUBLE_QUOTE = 0x22; /* " */
2846
+ var CHAR_SHARP = 0x23; /* # */
2847
+ var CHAR_PERCENT = 0x25; /* % */
2848
+ var CHAR_AMPERSAND = 0x26; /* & */
2849
+ var CHAR_SINGLE_QUOTE = 0x27; /* ' */
2850
+ var CHAR_ASTERISK = 0x2A; /* * */
2851
+ var CHAR_COMMA = 0x2C; /* , */
2852
+ var CHAR_MINUS = 0x2D; /* - */
2853
+ var CHAR_COLON = 0x3A; /* : */
2854
+ var CHAR_EQUALS = 0x3D; /* = */
2855
+ var CHAR_GREATER_THAN = 0x3E; /* > */
2856
+ var CHAR_QUESTION = 0x3F; /* ? */
2857
+ var CHAR_COMMERCIAL_AT = 0x40; /* @ */
2858
+ var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
2859
+ var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
2860
+ var CHAR_GRAVE_ACCENT = 0x60; /* ` */
2861
+ var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
2862
+ var CHAR_VERTICAL_LINE = 0x7C; /* | */
2863
+ var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
2864
+
2865
+ var ESCAPE_SEQUENCES = {};
2866
+
2867
+ ESCAPE_SEQUENCES[0x00] = '\\0';
2868
+ ESCAPE_SEQUENCES[0x07] = '\\a';
2869
+ ESCAPE_SEQUENCES[0x08] = '\\b';
2870
+ ESCAPE_SEQUENCES[0x09] = '\\t';
2871
+ ESCAPE_SEQUENCES[0x0A] = '\\n';
2872
+ ESCAPE_SEQUENCES[0x0B] = '\\v';
2873
+ ESCAPE_SEQUENCES[0x0C] = '\\f';
2874
+ ESCAPE_SEQUENCES[0x0D] = '\\r';
2875
+ ESCAPE_SEQUENCES[0x1B] = '\\e';
2876
+ ESCAPE_SEQUENCES[0x22] = '\\"';
2877
+ ESCAPE_SEQUENCES[0x5C] = '\\\\';
2878
+ ESCAPE_SEQUENCES[0x85] = '\\N';
2879
+ ESCAPE_SEQUENCES[0xA0] = '\\_';
2880
+ ESCAPE_SEQUENCES[0x2028] = '\\L';
2881
+ ESCAPE_SEQUENCES[0x2029] = '\\P';
2882
+
2883
+ var DEPRECATED_BOOLEANS_SYNTAX = [
2884
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
2885
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
2886
+ ];
2887
+
2888
+ var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2889
+
2890
+ function compileStyleMap(schema, map) {
2891
+ var result, keys, index, length, tag, style, type;
2892
+
2893
+ if (map === null) return {};
2894
+
2895
+ result = {};
2896
+ keys = Object.keys(map);
2897
+
2898
+ for (index = 0, length = keys.length; index < length; index += 1) {
2899
+ tag = keys[index];
2900
+ style = String(map[tag]);
2901
+
2902
+ if (tag.slice(0, 2) === '!!') {
2903
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
2904
+ }
2905
+ type = schema.compiledTypeMap['fallback'][tag];
2906
+
2907
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
2908
+ style = type.styleAliases[style];
2909
+ }
2910
+
2911
+ result[tag] = style;
2912
+ }
2913
+
2914
+ return result;
2915
+ }
2916
+
2917
+ function encodeHex(character) {
2918
+ var string, handle, length;
2919
+
2920
+ string = character.toString(16).toUpperCase();
2921
+
2922
+ if (character <= 0xFF) {
2923
+ handle = 'x';
2924
+ length = 2;
2925
+ } else if (character <= 0xFFFF) {
2926
+ handle = 'u';
2927
+ length = 4;
2928
+ } else if (character <= 0xFFFFFFFF) {
2929
+ handle = 'U';
2930
+ length = 8;
2931
+ } else {
2932
+ throw new exception('code point within a string may not be greater than 0xFFFFFFFF');
2933
+ }
2934
+
2935
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
2936
+ }
2937
+
2938
+
2939
+ var QUOTING_TYPE_SINGLE = 1,
2940
+ QUOTING_TYPE_DOUBLE = 2;
2941
+
2942
+ function State(options) {
2943
+ this.schema = options['schema'] || _default;
2944
+ this.indent = Math.max(1, (options['indent'] || 2));
2945
+ this.noArrayIndent = options['noArrayIndent'] || false;
2946
+ this.skipInvalid = options['skipInvalid'] || false;
2947
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
2948
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
2949
+ this.sortKeys = options['sortKeys'] || false;
2950
+ this.lineWidth = options['lineWidth'] || 80;
2951
+ this.noRefs = options['noRefs'] || false;
2952
+ this.noCompatMode = options['noCompatMode'] || false;
2953
+ this.condenseFlow = options['condenseFlow'] || false;
2954
+ this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
2955
+ this.forceQuotes = options['forceQuotes'] || false;
2956
+ this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
2957
+
2958
+ this.implicitTypes = this.schema.compiledImplicit;
2959
+ this.explicitTypes = this.schema.compiledExplicit;
2960
+
2961
+ this.tag = null;
2962
+ this.result = '';
2963
+
2964
+ this.duplicates = [];
2965
+ this.usedDuplicates = null;
2966
+ }
2967
+
2968
+ // Indents every line in a string. Empty lines (\n only) are not indented.
2969
+ function indentString(string, spaces) {
2970
+ var ind = common.repeat(' ', spaces),
2971
+ position = 0,
2972
+ next = -1,
2973
+ result = '',
2974
+ line,
2975
+ length = string.length;
2976
+
2977
+ while (position < length) {
2978
+ next = string.indexOf('\n', position);
2979
+ if (next === -1) {
2980
+ line = string.slice(position);
2981
+ position = length;
2982
+ } else {
2983
+ line = string.slice(position, next + 1);
2984
+ position = next + 1;
2985
+ }
2986
+
2987
+ if (line.length && line !== '\n') result += ind;
2988
+
2989
+ result += line;
2990
+ }
2991
+
2992
+ return result;
2993
+ }
2994
+
2995
+ function generateNextLine(state, level) {
2996
+ return '\n' + common.repeat(' ', state.indent * level);
2997
+ }
2998
+
2999
+ function testImplicitResolving(state, str) {
3000
+ var index, length, type;
3001
+
3002
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3003
+ type = state.implicitTypes[index];
3004
+
3005
+ if (type.resolve(str)) {
3006
+ return true;
3007
+ }
3008
+ }
3009
+
3010
+ return false;
3011
+ }
3012
+
3013
+ // [33] s-white ::= s-space | s-tab
3014
+ function isWhitespace(c) {
3015
+ return c === CHAR_SPACE || c === CHAR_TAB;
3016
+ }
3017
+
3018
+ // Returns true if the character can be printed without escaping.
3019
+ // From YAML 1.2: "any allowed characters known to be non-printable
3020
+ // should also be escaped. [However,] This isn’t mandatory"
3021
+ // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
3022
+ function isPrintable(c) {
3023
+ return (0x00020 <= c && c <= 0x00007E)
3024
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
3025
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
3026
+ || (0x10000 <= c && c <= 0x10FFFF);
3027
+ }
3028
+
3029
+ // [34] ns-char ::= nb-char - s-white
3030
+ // [27] nb-char ::= c-printable - b-char - c-byte-order-mark
3031
+ // [26] b-char ::= b-line-feed | b-carriage-return
3032
+ // Including s-white (for some reason, examples doesn't match specs in this aspect)
3033
+ // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
3034
+ function isNsCharOrWhitespace(c) {
3035
+ return isPrintable(c)
3036
+ && c !== CHAR_BOM
3037
+ // - b-char
3038
+ && c !== CHAR_CARRIAGE_RETURN
3039
+ && c !== CHAR_LINE_FEED;
3040
+ }
3041
+
3042
+ // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
3043
+ // c = flow-in ⇒ ns-plain-safe-in
3044
+ // c = block-key ⇒ ns-plain-safe-out
3045
+ // c = flow-key ⇒ ns-plain-safe-in
3046
+ // [128] ns-plain-safe-out ::= ns-char
3047
+ // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
3048
+ // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
3049
+ // | ( /* An ns-char preceding */ “#” )
3050
+ // | ( “:” /* Followed by an ns-plain-safe(c) */ )
3051
+ function isPlainSafe(c, prev, inblock) {
3052
+ var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
3053
+ var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
3054
+ return (
3055
+ // ns-plain-safe
3056
+ inblock ? // c = flow-in
3057
+ cIsNsCharOrWhitespace
3058
+ : cIsNsCharOrWhitespace
3059
+ // - c-flow-indicator
3060
+ && c !== CHAR_COMMA
3061
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3062
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3063
+ && c !== CHAR_LEFT_CURLY_BRACKET
3064
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3065
+ )
3066
+ // ns-plain-char
3067
+ && c !== CHAR_SHARP // false on '#'
3068
+ && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
3069
+ || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
3070
+ || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
3071
+ }
3072
+
3073
+ // Simplified test for values allowed as the first character in plain style.
3074
+ function isPlainSafeFirst(c) {
3075
+ // Uses a subset of ns-char - c-indicator
3076
+ // where ns-char = nb-char - s-white.
3077
+ // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
3078
+ return isPrintable(c) && c !== CHAR_BOM
3079
+ && !isWhitespace(c) // - s-white
3080
+ // - (c-indicator ::=
3081
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
3082
+ && c !== CHAR_MINUS
3083
+ && c !== CHAR_QUESTION
3084
+ && c !== CHAR_COLON
3085
+ && c !== CHAR_COMMA
3086
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3087
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3088
+ && c !== CHAR_LEFT_CURLY_BRACKET
3089
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3090
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
3091
+ && c !== CHAR_SHARP
3092
+ && c !== CHAR_AMPERSAND
3093
+ && c !== CHAR_ASTERISK
3094
+ && c !== CHAR_EXCLAMATION
3095
+ && c !== CHAR_VERTICAL_LINE
3096
+ && c !== CHAR_EQUALS
3097
+ && c !== CHAR_GREATER_THAN
3098
+ && c !== CHAR_SINGLE_QUOTE
3099
+ && c !== CHAR_DOUBLE_QUOTE
3100
+ // | “%” | “@” | “`”)
3101
+ && c !== CHAR_PERCENT
3102
+ && c !== CHAR_COMMERCIAL_AT
3103
+ && c !== CHAR_GRAVE_ACCENT;
3104
+ }
3105
+
3106
+ // Simplified test for values allowed as the last character in plain style.
3107
+ function isPlainSafeLast(c) {
3108
+ // just not whitespace or colon, it will be checked to be plain character later
3109
+ return !isWhitespace(c) && c !== CHAR_COLON;
3110
+ }
3111
+
3112
+ // Same as 'string'.codePointAt(pos), but works in older browsers.
3113
+ function codePointAt(string, pos) {
3114
+ var first = string.charCodeAt(pos), second;
3115
+ if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
3116
+ second = string.charCodeAt(pos + 1);
3117
+ if (second >= 0xDC00 && second <= 0xDFFF) {
3118
+ // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3119
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
3120
+ }
3121
+ }
3122
+ return first;
3123
+ }
3124
+
3125
+ // Determines whether block indentation indicator is required.
3126
+ function needIndentIndicator(string) {
3127
+ var leadingSpaceRe = /^\n* /;
3128
+ return leadingSpaceRe.test(string);
3129
+ }
3130
+
3131
+ var STYLE_PLAIN = 1,
3132
+ STYLE_SINGLE = 2,
3133
+ STYLE_LITERAL = 3,
3134
+ STYLE_FOLDED = 4,
3135
+ STYLE_DOUBLE = 5;
3136
+
3137
+ // Determines which scalar styles are possible and returns the preferred style.
3138
+ // lineWidth = -1 => no limit.
3139
+ // Pre-conditions: str.length > 0.
3140
+ // Post-conditions:
3141
+ // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
3142
+ // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
3143
+ // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
3144
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
3145
+ testAmbiguousType, quotingType, forceQuotes, inblock) {
3146
+
3147
+ var i;
3148
+ var char = 0;
3149
+ var prevChar = null;
3150
+ var hasLineBreak = false;
3151
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
3152
+ var shouldTrackWidth = lineWidth !== -1;
3153
+ var previousLineBreak = -1; // count the first line correctly
3154
+ var plain = isPlainSafeFirst(codePointAt(string, 0))
3155
+ && isPlainSafeLast(codePointAt(string, string.length - 1));
3156
+
3157
+ if (singleLineOnly || forceQuotes) {
3158
+ // Case: no block styles.
3159
+ // Check for disallowed characters to rule out plain and single.
3160
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3161
+ char = codePointAt(string, i);
3162
+ if (!isPrintable(char)) {
3163
+ return STYLE_DOUBLE;
3164
+ }
3165
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3166
+ prevChar = char;
3167
+ }
3168
+ } else {
3169
+ // Case: block styles permitted.
3170
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3171
+ char = codePointAt(string, i);
3172
+ if (char === CHAR_LINE_FEED) {
3173
+ hasLineBreak = true;
3174
+ // Check if any line can be folded.
3175
+ if (shouldTrackWidth) {
3176
+ hasFoldableLine = hasFoldableLine ||
3177
+ // Foldable line = too long, and not more-indented.
3178
+ (i - previousLineBreak - 1 > lineWidth &&
3179
+ string[previousLineBreak + 1] !== ' ');
3180
+ previousLineBreak = i;
3181
+ }
3182
+ } else if (!isPrintable(char)) {
3183
+ return STYLE_DOUBLE;
3184
+ }
3185
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3186
+ prevChar = char;
3187
+ }
3188
+ // in case the end is missing a \n
3189
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
3190
+ (i - previousLineBreak - 1 > lineWidth &&
3191
+ string[previousLineBreak + 1] !== ' '));
3192
+ }
3193
+ // Although every style can represent \n without escaping, prefer block styles
3194
+ // for multiline, since they're more readable and they don't add empty lines.
3195
+ // Also prefer folding a super-long line.
3196
+ if (!hasLineBreak && !hasFoldableLine) {
3197
+ // Strings interpretable as another type have to be quoted;
3198
+ // e.g. the string 'true' vs. the boolean true.
3199
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
3200
+ return STYLE_PLAIN;
3201
+ }
3202
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3203
+ }
3204
+ // Edge case: block indentation indicator can only have one digit.
3205
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
3206
+ return STYLE_DOUBLE;
3207
+ }
3208
+ // At this point we know block styles are valid.
3209
+ // Prefer literal style unless we want to fold.
3210
+ if (!forceQuotes) {
3211
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
3212
+ }
3213
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3214
+ }
3215
+
3216
+ // Note: line breaking/folding is implemented for only the folded style.
3217
+ // NB. We drop the last trailing newline (if any) of a returned block scalar
3218
+ // since the dumper adds its own newline. This always works:
3219
+ // • No ending newline => unaffected; already using strip "-" chomping.
3220
+ // • Ending newline => removed then restored.
3221
+ // Importantly, this keeps the "+" chomp indicator from gaining an extra line.
3222
+ function writeScalar(state, string, level, iskey, inblock) {
3223
+ state.dump = (function () {
3224
+ if (string.length === 0) {
3225
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
3226
+ }
3227
+ if (!state.noCompatMode) {
3228
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
3229
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
3230
+ }
3231
+ }
3232
+
3233
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
3234
+ // As indentation gets deeper, let the width decrease monotonically
3235
+ // to the lower bound min(state.lineWidth, 40).
3236
+ // Note that this implies
3237
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
3238
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
3239
+ // This behaves better than a constant minimum width which disallows narrower options,
3240
+ // or an indent threshold which causes the width to suddenly increase.
3241
+ var lineWidth = state.lineWidth === -1
3242
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
3243
+
3244
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
3245
+ var singleLineOnly = iskey
3246
+ // No block styles in flow mode.
3247
+ || (state.flowLevel > -1 && level >= state.flowLevel);
3248
+ function testAmbiguity(string) {
3249
+ return testImplicitResolving(state, string);
3250
+ }
3251
+
3252
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
3253
+ testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
3254
+
3255
+ case STYLE_PLAIN:
3256
+ return string;
3257
+ case STYLE_SINGLE:
3258
+ return "'" + string.replace(/'/g, "''") + "'";
3259
+ case STYLE_LITERAL:
3260
+ return '|' + blockHeader(string, state.indent)
3261
+ + dropEndingNewline(indentString(string, indent));
3262
+ case STYLE_FOLDED:
3263
+ return '>' + blockHeader(string, state.indent)
3264
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3265
+ case STYLE_DOUBLE:
3266
+ return '"' + escapeString(string) + '"';
3267
+ default:
3268
+ throw new exception('impossible error: invalid scalar style');
3269
+ }
3270
+ }());
3271
+ }
3272
+
3273
+ // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
3274
+ function blockHeader(string, indentPerLevel) {
3275
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
3276
+
3277
+ // note the special case: the string '\n' counts as a "trailing" empty line.
3278
+ var clip = string[string.length - 1] === '\n';
3279
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
3280
+ var chomp = keep ? '+' : (clip ? '' : '-');
3281
+
3282
+ return indentIndicator + chomp + '\n';
3283
+ }
3284
+
3285
+ // (See the note for writeScalar.)
3286
+ function dropEndingNewline(string) {
3287
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
3288
+ }
3289
+
3290
+ // Note: a long line without a suitable break point will exceed the width limit.
3291
+ // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
3292
+ function foldString(string, width) {
3293
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
3294
+ // unless they're before or after a more-indented line, or at the very
3295
+ // beginning or end, in which case $k$ maps to $k$.
3296
+ // Therefore, parse each chunk as newline(s) followed by a content line.
3297
+ var lineRe = /(\n+)([^\n]*)/g;
3298
+
3299
+ // first line (possibly an empty line)
3300
+ var result = (function () {
3301
+ var nextLF = string.indexOf('\n');
3302
+ nextLF = nextLF !== -1 ? nextLF : string.length;
3303
+ lineRe.lastIndex = nextLF;
3304
+ return foldLine(string.slice(0, nextLF), width);
3305
+ }());
3306
+ // If we haven't reached the first content line yet, don't add an extra \n.
3307
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
3308
+ var moreIndented;
3309
+
3310
+ // rest of the lines
3311
+ var match;
3312
+ while ((match = lineRe.exec(string))) {
3313
+ var prefix = match[1], line = match[2];
3314
+ moreIndented = (line[0] === ' ');
3315
+ result += prefix
3316
+ + (!prevMoreIndented && !moreIndented && line !== ''
3317
+ ? '\n' : '')
3318
+ + foldLine(line, width);
3319
+ prevMoreIndented = moreIndented;
3320
+ }
3321
+
3322
+ return result;
3323
+ }
3324
+
3325
+ // Greedy line breaking.
3326
+ // Picks the longest line under the limit each time,
3327
+ // otherwise settles for the shortest line over the limit.
3328
+ // NB. More-indented lines *cannot* be folded, as that would add an extra \n.
3329
+ function foldLine(line, width) {
3330
+ if (line === '' || line[0] === ' ') return line;
3331
+
3332
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
3333
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
3334
+ var match;
3335
+ // start is an inclusive index. end, curr, and next are exclusive.
3336
+ var start = 0, end, curr = 0, next = 0;
3337
+ var result = '';
3338
+
3339
+ // Invariants: 0 <= start <= length-1.
3340
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
3341
+ // Inside the loop:
3342
+ // A match implies length >= 2, so curr and next are <= length-2.
3343
+ while ((match = breakRe.exec(line))) {
3344
+ next = match.index;
3345
+ // maintain invariant: curr - start <= width
3346
+ if (next - start > width) {
3347
+ end = (curr > start) ? curr : next; // derive end <= length-2
3348
+ result += '\n' + line.slice(start, end);
3349
+ // skip the space that was output as \n
3350
+ start = end + 1; // derive start <= length-1
3351
+ }
3352
+ curr = next;
3353
+ }
3354
+
3355
+ // By the invariants, start <= length-1, so there is something left over.
3356
+ // It is either the whole string or a part starting from non-whitespace.
3357
+ result += '\n';
3358
+ // Insert a break if the remainder is too long and there is a break available.
3359
+ if (line.length - start > width && curr > start) {
3360
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
3361
+ } else {
3362
+ result += line.slice(start);
3363
+ }
3364
+
3365
+ return result.slice(1); // drop extra \n joiner
3366
+ }
3367
+
3368
+ // Escapes a double-quoted string.
3369
+ function escapeString(string) {
3370
+ var result = '';
3371
+ var char = 0;
3372
+ var escapeSeq;
3373
+
3374
+ for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3375
+ char = codePointAt(string, i);
3376
+ escapeSeq = ESCAPE_SEQUENCES[char];
3377
+
3378
+ if (!escapeSeq && isPrintable(char)) {
3379
+ result += string[i];
3380
+ if (char >= 0x10000) result += string[i + 1];
3381
+ } else {
3382
+ result += escapeSeq || encodeHex(char);
3383
+ }
3384
+ }
3385
+
3386
+ return result;
3387
+ }
3388
+
3389
+ function writeFlowSequence(state, level, object) {
3390
+ var _result = '',
3391
+ _tag = state.tag,
3392
+ index,
3393
+ length,
3394
+ value;
3395
+
3396
+ for (index = 0, length = object.length; index < length; index += 1) {
3397
+ value = object[index];
3398
+
3399
+ if (state.replacer) {
3400
+ value = state.replacer.call(object, String(index), value);
3401
+ }
3402
+
3403
+ // Write only valid elements, put null instead of invalid elements.
3404
+ if (writeNode(state, level, value, false, false) ||
3405
+ (typeof value === 'undefined' &&
3406
+ writeNode(state, level, null, false, false))) {
3407
+
3408
+ if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
3409
+ _result += state.dump;
3410
+ }
3411
+ }
3412
+
3413
+ state.tag = _tag;
3414
+ state.dump = '[' + _result + ']';
3415
+ }
3416
+
3417
+ function writeBlockSequence(state, level, object, compact) {
3418
+ var _result = '',
3419
+ _tag = state.tag,
3420
+ index,
3421
+ length,
3422
+ value;
3423
+
3424
+ for (index = 0, length = object.length; index < length; index += 1) {
3425
+ value = object[index];
3426
+
3427
+ if (state.replacer) {
3428
+ value = state.replacer.call(object, String(index), value);
3429
+ }
3430
+
3431
+ // Write only valid elements, put null instead of invalid elements.
3432
+ if (writeNode(state, level + 1, value, true, true, false, true) ||
3433
+ (typeof value === 'undefined' &&
3434
+ writeNode(state, level + 1, null, true, true, false, true))) {
3435
+
3436
+ if (!compact || _result !== '') {
3437
+ _result += generateNextLine(state, level);
3438
+ }
3439
+
3440
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3441
+ _result += '-';
3442
+ } else {
3443
+ _result += '- ';
3444
+ }
3445
+
3446
+ _result += state.dump;
3447
+ }
3448
+ }
3449
+
3450
+ state.tag = _tag;
3451
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
3452
+ }
3453
+
3454
+ function writeFlowMapping(state, level, object) {
3455
+ var _result = '',
3456
+ _tag = state.tag,
3457
+ objectKeyList = Object.keys(object),
3458
+ index,
3459
+ length,
3460
+ objectKey,
3461
+ objectValue,
3462
+ pairBuffer;
3463
+
3464
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3465
+
3466
+ pairBuffer = '';
3467
+ if (_result !== '') pairBuffer += ', ';
3468
+
3469
+ if (state.condenseFlow) pairBuffer += '"';
3470
+
3471
+ objectKey = objectKeyList[index];
3472
+ objectValue = object[objectKey];
3473
+
3474
+ if (state.replacer) {
3475
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3476
+ }
3477
+
3478
+ if (!writeNode(state, level, objectKey, false, false)) {
3479
+ continue; // Skip this pair because of invalid key;
3480
+ }
3481
+
3482
+ if (state.dump.length > 1024) pairBuffer += '? ';
3483
+
3484
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
3485
+
3486
+ if (!writeNode(state, level, objectValue, false, false)) {
3487
+ continue; // Skip this pair because of invalid value.
3488
+ }
3489
+
3490
+ pairBuffer += state.dump;
3491
+
3492
+ // Both key and value are valid.
3493
+ _result += pairBuffer;
3494
+ }
3495
+
3496
+ state.tag = _tag;
3497
+ state.dump = '{' + _result + '}';
3498
+ }
3499
+
3500
+ function writeBlockMapping(state, level, object, compact) {
3501
+ var _result = '',
3502
+ _tag = state.tag,
3503
+ objectKeyList = Object.keys(object),
3504
+ index,
3505
+ length,
3506
+ objectKey,
3507
+ objectValue,
3508
+ explicitPair,
3509
+ pairBuffer;
3510
+
3511
+ // Allow sorting keys so that the output file is deterministic
3512
+ if (state.sortKeys === true) {
3513
+ // Default sorting
3514
+ objectKeyList.sort();
3515
+ } else if (typeof state.sortKeys === 'function') {
3516
+ // Custom sort function
3517
+ objectKeyList.sort(state.sortKeys);
3518
+ } else if (state.sortKeys) {
3519
+ // Something is wrong
3520
+ throw new exception('sortKeys must be a boolean or a function');
3521
+ }
3522
+
3523
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3524
+ pairBuffer = '';
3525
+
3526
+ if (!compact || _result !== '') {
3527
+ pairBuffer += generateNextLine(state, level);
3528
+ }
3529
+
3530
+ objectKey = objectKeyList[index];
3531
+ objectValue = object[objectKey];
3532
+
3533
+ if (state.replacer) {
3534
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3535
+ }
3536
+
3537
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
3538
+ continue; // Skip this pair because of invalid key.
3539
+ }
3540
+
3541
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
3542
+ (state.dump && state.dump.length > 1024);
3543
+
3544
+ if (explicitPair) {
3545
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3546
+ pairBuffer += '?';
3547
+ } else {
3548
+ pairBuffer += '? ';
3549
+ }
3550
+ }
3551
+
3552
+ pairBuffer += state.dump;
3553
+
3554
+ if (explicitPair) {
3555
+ pairBuffer += generateNextLine(state, level);
3556
+ }
3557
+
3558
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
3559
+ continue; // Skip this pair because of invalid value.
3560
+ }
3561
+
3562
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3563
+ pairBuffer += ':';
3564
+ } else {
3565
+ pairBuffer += ': ';
3566
+ }
3567
+
3568
+ pairBuffer += state.dump;
3569
+
3570
+ // Both key and value are valid.
3571
+ _result += pairBuffer;
3572
+ }
3573
+
3574
+ state.tag = _tag;
3575
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
3576
+ }
3577
+
3578
+ function detectType(state, object, explicit) {
3579
+ var _result, typeList, index, length, type, style;
3580
+
3581
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
3582
+
3583
+ for (index = 0, length = typeList.length; index < length; index += 1) {
3584
+ type = typeList[index];
3585
+
3586
+ if ((type.instanceOf || type.predicate) &&
3587
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
3588
+ (!type.predicate || type.predicate(object))) {
3589
+
3590
+ if (explicit) {
3591
+ if (type.multi && type.representName) {
3592
+ state.tag = type.representName(object);
3593
+ } else {
3594
+ state.tag = type.tag;
3595
+ }
3596
+ } else {
3597
+ state.tag = '?';
3598
+ }
3599
+
3600
+ if (type.represent) {
3601
+ style = state.styleMap[type.tag] || type.defaultStyle;
3602
+
3603
+ if (_toString.call(type.represent) === '[object Function]') {
3604
+ _result = type.represent(object, style);
3605
+ } else if (_hasOwnProperty.call(type.represent, style)) {
3606
+ _result = type.represent[style](object, style);
3607
+ } else {
3608
+ throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
3609
+ }
3610
+
3611
+ state.dump = _result;
3612
+ }
3613
+
3614
+ return true;
3615
+ }
3616
+ }
3617
+
3618
+ return false;
3619
+ }
3620
+
3621
+ // Serializes `object` and writes it to global `result`.
3622
+ // Returns true on success, or false on invalid object.
3623
+ //
3624
+ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
3625
+ state.tag = null;
3626
+ state.dump = object;
3627
+
3628
+ if (!detectType(state, object, false)) {
3629
+ detectType(state, object, true);
3630
+ }
3631
+
3632
+ var type = _toString.call(state.dump);
3633
+ var inblock = block;
3634
+ var tagStr;
3635
+
3636
+ if (block) {
3637
+ block = (state.flowLevel < 0 || state.flowLevel > level);
3638
+ }
3639
+
3640
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
3641
+ duplicateIndex,
3642
+ duplicate;
3643
+
3644
+ if (objectOrArray) {
3645
+ duplicateIndex = state.duplicates.indexOf(object);
3646
+ duplicate = duplicateIndex !== -1;
3647
+ }
3648
+
3649
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
3650
+ compact = false;
3651
+ }
3652
+
3653
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
3654
+ state.dump = '*ref_' + duplicateIndex;
3655
+ } else {
3656
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
3657
+ state.usedDuplicates[duplicateIndex] = true;
3658
+ }
3659
+ if (type === '[object Object]') {
3660
+ if (block && (Object.keys(state.dump).length !== 0)) {
3661
+ writeBlockMapping(state, level, state.dump, compact);
3662
+ if (duplicate) {
3663
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3664
+ }
3665
+ } else {
3666
+ writeFlowMapping(state, level, state.dump);
3667
+ if (duplicate) {
3668
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3669
+ }
3670
+ }
3671
+ } else if (type === '[object Array]') {
3672
+ if (block && (state.dump.length !== 0)) {
3673
+ if (state.noArrayIndent && !isblockseq && level > 0) {
3674
+ writeBlockSequence(state, level - 1, state.dump, compact);
3675
+ } else {
3676
+ writeBlockSequence(state, level, state.dump, compact);
3677
+ }
3678
+ if (duplicate) {
3679
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3680
+ }
3681
+ } else {
3682
+ writeFlowSequence(state, level, state.dump);
3683
+ if (duplicate) {
3684
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3685
+ }
3686
+ }
3687
+ } else if (type === '[object String]') {
3688
+ if (state.tag !== '?') {
3689
+ writeScalar(state, state.dump, level, iskey, inblock);
3690
+ }
3691
+ } else if (type === '[object Undefined]') {
3692
+ return false;
3693
+ } else {
3694
+ if (state.skipInvalid) return false;
3695
+ throw new exception('unacceptable kind of an object to dump ' + type);
3696
+ }
3697
+
3698
+ if (state.tag !== null && state.tag !== '?') {
3699
+ // Need to encode all characters except those allowed by the spec:
3700
+ //
3701
+ // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
3702
+ // [36] ns-hex-digit ::= ns-dec-digit
3703
+ // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
3704
+ // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
3705
+ // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
3706
+ // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
3707
+ // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
3708
+ // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
3709
+ //
3710
+ // Also need to encode '!' because it has special meaning (end of tag prefix).
3711
+ //
3712
+ tagStr = encodeURI(
3713
+ state.tag[0] === '!' ? state.tag.slice(1) : state.tag
3714
+ ).replace(/!/g, '%21');
3715
+
3716
+ if (state.tag[0] === '!') {
3717
+ tagStr = '!' + tagStr;
3718
+ } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
3719
+ tagStr = '!!' + tagStr.slice(18);
3720
+ } else {
3721
+ tagStr = '!<' + tagStr + '>';
3722
+ }
3723
+
3724
+ state.dump = tagStr + ' ' + state.dump;
3725
+ }
3726
+ }
3727
+
3728
+ return true;
3729
+ }
3730
+
3731
+ function getDuplicateReferences(object, state) {
3732
+ var objects = [],
3733
+ duplicatesIndexes = [],
3734
+ index,
3735
+ length;
3736
+
3737
+ inspectNode(object, objects, duplicatesIndexes);
3738
+
3739
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
3740
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
3741
+ }
3742
+ state.usedDuplicates = new Array(length);
3743
+ }
3744
+
3745
+ function inspectNode(object, objects, duplicatesIndexes) {
3746
+ var objectKeyList,
3747
+ index,
3748
+ length;
3749
+
3750
+ if (object !== null && typeof object === 'object') {
3751
+ index = objects.indexOf(object);
3752
+ if (index !== -1) {
3753
+ if (duplicatesIndexes.indexOf(index) === -1) {
3754
+ duplicatesIndexes.push(index);
3755
+ }
3756
+ } else {
3757
+ objects.push(object);
3758
+
3759
+ if (Array.isArray(object)) {
3760
+ for (index = 0, length = object.length; index < length; index += 1) {
3761
+ inspectNode(object[index], objects, duplicatesIndexes);
3762
+ }
3763
+ } else {
3764
+ objectKeyList = Object.keys(object);
3765
+
3766
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3767
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
3768
+ }
3769
+ }
3770
+ }
3771
+ }
3772
+ }
3773
+
3774
+ function dump$1(input, options) {
3775
+ options = options || {};
3776
+
3777
+ var state = new State(options);
3778
+
3779
+ if (!state.noRefs) getDuplicateReferences(input, state);
3780
+
3781
+ var value = input;
3782
+
3783
+ if (state.replacer) {
3784
+ value = state.replacer.call({ '': value }, '', value);
3785
+ }
3786
+
3787
+ if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
3788
+
3789
+ return '';
3790
+ }
3791
+
3792
+ var dump_1 = dump$1;
3793
+
3794
+ var dumper = {
3795
+ dump: dump_1
3796
+ };
3797
+
3798
+ function renamed(from, to) {
3799
+ return function () {
3800
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
3801
+ 'Use yaml.' + to + ' instead, which is now safe by default.');
3802
+ };
3803
+ }
3804
+
3805
+
3806
+ var Type = type;
3807
+ var Schema = schema;
3808
+ var FAILSAFE_SCHEMA = failsafe;
3809
+ var JSON_SCHEMA = json;
3810
+ var CORE_SCHEMA = core;
3811
+ var DEFAULT_SCHEMA = _default;
3812
+ var load = loader.load;
3813
+ var loadAll = loader.loadAll;
3814
+ var dump = dumper.dump;
3815
+ var YAMLException = exception;
3816
+
3817
+ // Re-export all types in case user wants to create custom schema
3818
+ var types = {
3819
+ binary: binary,
3820
+ float: float,
3821
+ map: map,
3822
+ null: _null,
3823
+ pairs: pairs,
3824
+ set: set,
3825
+ timestamp: timestamp,
3826
+ bool: bool,
3827
+ int: int,
3828
+ merge: merge,
3829
+ omap: omap,
3830
+ seq: seq,
3831
+ str: str
3832
+ };
3833
+
3834
+ // Removed functions from JS-YAML 3.0.x
3835
+ var safeLoad = renamed('safeLoad', 'load');
3836
+ var safeLoadAll = renamed('safeLoadAll', 'loadAll');
3837
+ var safeDump = renamed('safeDump', 'dump');
3838
+
3839
+ var jsYaml = {
3840
+ Type: Type,
3841
+ Schema: Schema,
3842
+ FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
3843
+ JSON_SCHEMA: JSON_SCHEMA,
3844
+ CORE_SCHEMA: CORE_SCHEMA,
3845
+ DEFAULT_SCHEMA: DEFAULT_SCHEMA,
3846
+ load: load,
3847
+ loadAll: loadAll,
3848
+ dump: dump,
3849
+ YAMLException: YAMLException,
3850
+ types: types,
3851
+ safeLoad: safeLoad,
3852
+ safeLoadAll: safeLoadAll,
3853
+ safeDump: safeDump
3854
+ };
3855
+
3856
+ export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, jsYaml as default, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types };