@donkeylabs/server 0.2.9 → 0.2.11

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 (1717) hide show
  1. package/cli/commands/generate.ts +4 -4
  2. package/examples/starter/.@donkeylabs/server/client.ts +18 -0
  3. package/examples/starter/bun.lock +126 -2
  4. package/examples/starter/node_modules/@babel/code-frame/LICENSE +22 -0
  5. package/examples/starter/node_modules/@babel/code-frame/README.md +19 -0
  6. package/examples/starter/node_modules/@babel/code-frame/lib/index.js +216 -0
  7. package/examples/starter/node_modules/@babel/code-frame/lib/index.js.map +1 -0
  8. package/examples/starter/node_modules/@babel/code-frame/package.json +32 -0
  9. package/examples/starter/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
  10. package/examples/starter/node_modules/@babel/helper-validator-identifier/README.md +19 -0
  11. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  12. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
  13. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  14. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
  15. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  16. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
  17. package/examples/starter/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  18. package/examples/starter/node_modules/@types/prompts/LICENSE +21 -0
  19. package/examples/starter/node_modules/@types/prompts/README.md +15 -0
  20. package/examples/starter/node_modules/@types/prompts/index.d.ts +123 -0
  21. package/examples/starter/node_modules/@types/prompts/package.json +58 -0
  22. package/examples/starter/node_modules/ansi-styles/index.d.ts +345 -0
  23. package/examples/starter/node_modules/ansi-styles/index.js +163 -0
  24. package/examples/starter/node_modules/ansi-styles/license +9 -0
  25. package/examples/starter/node_modules/ansi-styles/package.json +56 -0
  26. package/examples/starter/node_modules/ansi-styles/readme.md +152 -0
  27. package/examples/starter/node_modules/argparse/CHANGELOG.md +216 -0
  28. package/examples/starter/node_modules/argparse/LICENSE +254 -0
  29. package/examples/starter/node_modules/argparse/README.md +84 -0
  30. package/examples/starter/node_modules/argparse/argparse.js +3707 -0
  31. package/examples/starter/node_modules/argparse/lib/sub.js +67 -0
  32. package/examples/starter/node_modules/argparse/lib/textwrap.js +440 -0
  33. package/examples/starter/node_modules/argparse/package.json +31 -0
  34. package/examples/starter/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  35. package/examples/starter/node_modules/balanced-match/LICENSE.md +21 -0
  36. package/examples/starter/node_modules/balanced-match/README.md +97 -0
  37. package/examples/starter/node_modules/balanced-match/index.js +62 -0
  38. package/examples/starter/node_modules/balanced-match/package.json +48 -0
  39. package/examples/starter/node_modules/brace-expansion/LICENSE +21 -0
  40. package/examples/starter/node_modules/brace-expansion/README.md +129 -0
  41. package/examples/starter/node_modules/brace-expansion/index.js +201 -0
  42. package/examples/starter/node_modules/brace-expansion/package.json +50 -0
  43. package/examples/starter/node_modules/braces/LICENSE +21 -0
  44. package/examples/starter/node_modules/braces/README.md +586 -0
  45. package/examples/starter/node_modules/braces/index.js +170 -0
  46. package/examples/starter/node_modules/braces/lib/compile.js +60 -0
  47. package/examples/starter/node_modules/braces/lib/constants.js +57 -0
  48. package/examples/starter/node_modules/braces/lib/expand.js +113 -0
  49. package/examples/starter/node_modules/braces/lib/parse.js +331 -0
  50. package/examples/starter/node_modules/braces/lib/stringify.js +32 -0
  51. package/examples/starter/node_modules/braces/lib/utils.js +122 -0
  52. package/examples/starter/node_modules/braces/package.json +77 -0
  53. package/examples/starter/node_modules/callsites/index.d.ts +96 -0
  54. package/examples/starter/node_modules/callsites/index.js +13 -0
  55. package/examples/starter/node_modules/callsites/license +9 -0
  56. package/examples/starter/node_modules/callsites/package.json +39 -0
  57. package/examples/starter/node_modules/callsites/readme.md +48 -0
  58. package/examples/starter/node_modules/chalk/index.d.ts +415 -0
  59. package/examples/starter/node_modules/chalk/license +9 -0
  60. package/examples/starter/node_modules/chalk/package.json +68 -0
  61. package/examples/starter/node_modules/chalk/readme.md +341 -0
  62. package/examples/starter/node_modules/chalk/source/index.js +229 -0
  63. package/examples/starter/node_modules/chalk/source/templates.js +134 -0
  64. package/examples/starter/node_modules/chalk/source/util.js +39 -0
  65. package/examples/starter/node_modules/color-convert/CHANGELOG.md +54 -0
  66. package/examples/starter/node_modules/color-convert/LICENSE +21 -0
  67. package/examples/starter/node_modules/color-convert/README.md +68 -0
  68. package/examples/starter/node_modules/color-convert/conversions.js +839 -0
  69. package/examples/starter/node_modules/color-convert/index.js +81 -0
  70. package/examples/starter/node_modules/color-convert/package.json +48 -0
  71. package/examples/starter/node_modules/color-convert/route.js +97 -0
  72. package/examples/starter/node_modules/color-name/LICENSE +8 -0
  73. package/examples/starter/node_modules/color-name/README.md +11 -0
  74. package/examples/starter/node_modules/color-name/index.js +152 -0
  75. package/examples/starter/node_modules/color-name/package.json +28 -0
  76. package/examples/starter/node_modules/concat-map/.travis.yml +4 -0
  77. package/examples/starter/node_modules/concat-map/LICENSE +18 -0
  78. package/examples/starter/node_modules/concat-map/README.markdown +62 -0
  79. package/examples/starter/node_modules/concat-map/example/map.js +6 -0
  80. package/examples/starter/node_modules/concat-map/index.js +13 -0
  81. package/examples/starter/node_modules/concat-map/package.json +43 -0
  82. package/examples/starter/node_modules/concat-map/test/map.js +39 -0
  83. package/examples/starter/node_modules/cosmiconfig/LICENSE +22 -0
  84. package/examples/starter/node_modules/cosmiconfig/README.md +782 -0
  85. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.d.ts +2 -0
  86. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.d.ts.map +1 -0
  87. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.js +170 -0
  88. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.js.map +1 -0
  89. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.d.ts +2 -0
  90. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.d.ts.map +1 -0
  91. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.js +126 -0
  92. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.js.map +1 -0
  93. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.d.ts +2 -0
  94. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.d.ts.map +1 -0
  95. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.js +184 -0
  96. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.js.map +1 -0
  97. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.d.ts +5 -0
  98. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map +1 -0
  99. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.js +32 -0
  100. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.js.map +1 -0
  101. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts +3 -0
  102. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map +1 -0
  103. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.js +23 -0
  104. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map +1 -0
  105. package/examples/starter/node_modules/cosmiconfig/dist/defaults.d.ts +25 -0
  106. package/examples/starter/node_modules/cosmiconfig/dist/defaults.d.ts.map +1 -0
  107. package/examples/starter/node_modules/cosmiconfig/dist/defaults.js +105 -0
  108. package/examples/starter/node_modules/cosmiconfig/dist/defaults.js.map +1 -0
  109. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.d.ts +4 -0
  110. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.d.ts.map +1 -0
  111. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.js +38 -0
  112. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.js.map +1 -0
  113. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts +5 -0
  114. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map +1 -0
  115. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.js +28 -0
  116. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.js.map +1 -0
  117. package/examples/starter/node_modules/cosmiconfig/dist/index.d.ts +6 -0
  118. package/examples/starter/node_modules/cosmiconfig/dist/index.d.ts.map +1 -0
  119. package/examples/starter/node_modules/cosmiconfig/dist/index.js +148 -0
  120. package/examples/starter/node_modules/cosmiconfig/dist/index.js.map +1 -0
  121. package/examples/starter/node_modules/cosmiconfig/dist/loaders.d.ts +8 -0
  122. package/examples/starter/node_modules/cosmiconfig/dist/loaders.d.ts.map +1 -0
  123. package/examples/starter/node_modules/cosmiconfig/dist/loaders.js +148 -0
  124. package/examples/starter/node_modules/cosmiconfig/dist/loaders.js.map +1 -0
  125. package/examples/starter/node_modules/cosmiconfig/dist/merge.d.ts +9 -0
  126. package/examples/starter/node_modules/cosmiconfig/dist/merge.d.ts.map +1 -0
  127. package/examples/starter/node_modules/cosmiconfig/dist/merge.js +40 -0
  128. package/examples/starter/node_modules/cosmiconfig/dist/merge.js.map +1 -0
  129. package/examples/starter/node_modules/cosmiconfig/dist/readFile.d.ts +7 -0
  130. package/examples/starter/node_modules/cosmiconfig/dist/readFile.d.ts.map +1 -0
  131. package/examples/starter/node_modules/cosmiconfig/dist/readFile.js +56 -0
  132. package/examples/starter/node_modules/cosmiconfig/dist/readFile.js.map +1 -0
  133. package/examples/starter/node_modules/cosmiconfig/dist/types.d.ts +98 -0
  134. package/examples/starter/node_modules/cosmiconfig/dist/types.d.ts.map +1 -0
  135. package/examples/starter/node_modules/cosmiconfig/dist/types.js +3 -0
  136. package/examples/starter/node_modules/cosmiconfig/dist/types.js.map +1 -0
  137. package/examples/starter/node_modules/cosmiconfig/dist/util.d.ts +2 -0
  138. package/examples/starter/node_modules/cosmiconfig/dist/util.d.ts.map +1 -0
  139. package/examples/starter/node_modules/cosmiconfig/dist/util.js +99 -0
  140. package/examples/starter/node_modules/cosmiconfig/dist/util.js.map +1 -0
  141. package/examples/starter/node_modules/cosmiconfig/package.json +102 -0
  142. package/examples/starter/node_modules/diff/CONTRIBUTING.md +39 -0
  143. package/examples/starter/node_modules/diff/LICENSE +31 -0
  144. package/examples/starter/node_modules/diff/README.md +211 -0
  145. package/examples/starter/node_modules/diff/dist/diff.js +1843 -0
  146. package/examples/starter/node_modules/diff/dist/diff.min.js +416 -0
  147. package/examples/starter/node_modules/diff/lib/convert/dmp.js +24 -0
  148. package/examples/starter/node_modules/diff/lib/convert/xml.js +35 -0
  149. package/examples/starter/node_modules/diff/lib/diff/array.js +24 -0
  150. package/examples/starter/node_modules/diff/lib/diff/base.js +235 -0
  151. package/examples/starter/node_modules/diff/lib/diff/character.js +17 -0
  152. package/examples/starter/node_modules/diff/lib/diff/css.js +21 -0
  153. package/examples/starter/node_modules/diff/lib/diff/json.js +108 -0
  154. package/examples/starter/node_modules/diff/lib/diff/line.js +50 -0
  155. package/examples/starter/node_modules/diff/lib/diff/sentence.js +21 -0
  156. package/examples/starter/node_modules/diff/lib/diff/word.js +70 -0
  157. package/examples/starter/node_modules/diff/lib/index.js +74 -0
  158. package/examples/starter/node_modules/diff/lib/patch/apply.js +180 -0
  159. package/examples/starter/node_modules/diff/lib/patch/create.js +148 -0
  160. package/examples/starter/node_modules/diff/lib/patch/merge.js +396 -0
  161. package/examples/starter/node_modules/diff/lib/patch/parse.js +147 -0
  162. package/examples/starter/node_modules/diff/lib/util/array.js +27 -0
  163. package/examples/starter/node_modules/diff/lib/util/distance-iterator.js +47 -0
  164. package/examples/starter/node_modules/diff/lib/util/params.js +18 -0
  165. package/examples/starter/node_modules/diff/package.json +67 -0
  166. package/examples/starter/node_modules/diff/release-notes.md +247 -0
  167. package/examples/starter/node_modules/diff/runtime.js +3 -0
  168. package/examples/starter/node_modules/diff/yarn.lock +5729 -0
  169. package/examples/starter/node_modules/dotenv/CHANGELOG.md +598 -0
  170. package/examples/starter/node_modules/dotenv/LICENSE +23 -0
  171. package/examples/starter/node_modules/dotenv/README-es.md +405 -0
  172. package/examples/starter/node_modules/dotenv/README.md +692 -0
  173. package/examples/starter/node_modules/dotenv/SECURITY.md +1 -0
  174. package/examples/starter/node_modules/dotenv/config.d.ts +1 -0
  175. package/examples/starter/node_modules/dotenv/config.js +9 -0
  176. package/examples/starter/node_modules/dotenv/lib/cli-options.js +17 -0
  177. package/examples/starter/node_modules/dotenv/lib/env-options.js +28 -0
  178. package/examples/starter/node_modules/dotenv/lib/main.d.ts +179 -0
  179. package/examples/starter/node_modules/dotenv/lib/main.js +434 -0
  180. package/examples/starter/node_modules/dotenv/package.json +62 -0
  181. package/examples/starter/node_modules/dotenv-expand/CHANGELOG.md +177 -0
  182. package/examples/starter/node_modules/dotenv-expand/LICENSE +24 -0
  183. package/examples/starter/node_modules/dotenv-expand/README.md +174 -0
  184. package/examples/starter/node_modules/dotenv-expand/config.d.ts +1 -0
  185. package/examples/starter/node_modules/dotenv-expand/config.js +13 -0
  186. package/examples/starter/node_modules/dotenv-expand/lib/main.d.ts +50 -0
  187. package/examples/starter/node_modules/dotenv-expand/lib/main.js +98 -0
  188. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/CHANGELOG.md +520 -0
  189. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/LICENSE +23 -0
  190. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/README-es.md +411 -0
  191. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/README.md +645 -0
  192. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/SECURITY.md +1 -0
  193. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/config.d.ts +1 -0
  194. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/config.js +9 -0
  195. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/cli-options.js +17 -0
  196. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/env-options.js +28 -0
  197. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/main.d.ts +162 -0
  198. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/main.js +386 -0
  199. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/package.json +62 -0
  200. package/examples/starter/node_modules/dotenv-expand/package.json +56 -0
  201. package/examples/starter/node_modules/env-paths/index.d.ts +101 -0
  202. package/examples/starter/node_modules/env-paths/index.js +74 -0
  203. package/examples/starter/node_modules/env-paths/license +9 -0
  204. package/examples/starter/node_modules/env-paths/package.json +45 -0
  205. package/examples/starter/node_modules/env-paths/readme.md +115 -0
  206. package/examples/starter/node_modules/error-ex/LICENSE +21 -0
  207. package/examples/starter/node_modules/error-ex/README.md +144 -0
  208. package/examples/starter/node_modules/error-ex/index.js +141 -0
  209. package/examples/starter/node_modules/error-ex/package.json +46 -0
  210. package/examples/starter/node_modules/escape-string-regexp/index.js +11 -0
  211. package/examples/starter/node_modules/escape-string-regexp/license +21 -0
  212. package/examples/starter/node_modules/escape-string-regexp/package.json +41 -0
  213. package/examples/starter/node_modules/escape-string-regexp/readme.md +27 -0
  214. package/examples/starter/node_modules/fill-range/LICENSE +21 -0
  215. package/examples/starter/node_modules/fill-range/README.md +237 -0
  216. package/examples/starter/node_modules/fill-range/index.js +248 -0
  217. package/examples/starter/node_modules/fill-range/package.json +74 -0
  218. package/examples/starter/node_modules/fs.realpath/LICENSE +43 -0
  219. package/examples/starter/node_modules/fs.realpath/README.md +33 -0
  220. package/examples/starter/node_modules/fs.realpath/index.js +66 -0
  221. package/examples/starter/node_modules/fs.realpath/old.js +303 -0
  222. package/examples/starter/node_modules/fs.realpath/package.json +26 -0
  223. package/examples/starter/node_modules/git-diff/.editorconfig +10 -0
  224. package/examples/starter/node_modules/git-diff/.eslintrc.json +42 -0
  225. package/examples/starter/node_modules/git-diff/.travis.yml +9 -0
  226. package/examples/starter/node_modules/git-diff/LICENSE.md +24 -0
  227. package/examples/starter/node_modules/git-diff/README.md +218 -0
  228. package/examples/starter/node_modules/git-diff/appveyor.yml +17 -0
  229. package/examples/starter/node_modules/git-diff/async.js +14 -0
  230. package/examples/starter/node_modules/git-diff/config.js +8 -0
  231. package/examples/starter/node_modules/git-diff/diffs.png +0 -0
  232. package/examples/starter/node_modules/git-diff/js/_shared/defaultOptions.js +10 -0
  233. package/examples/starter/node_modules/git-diff/js/gitDiffFake/color.js +14 -0
  234. package/examples/starter/node_modules/git-diff/js/gitDiffFake/index.js +10 -0
  235. package/examples/starter/node_modules/git-diff/js/gitDiffFake/index.spec.js +74 -0
  236. package/examples/starter/node_modules/git-diff/js/gitDiffFake/lineDiffFake/index.js +56 -0
  237. package/examples/starter/node_modules/git-diff/js/gitDiffFake/mostCommonLineEnding.js +21 -0
  238. package/examples/starter/node_modules/git-diff/js/gitDiffFake/wordDiffFake/index.js +44 -0
  239. package/examples/starter/node_modules/git-diff/js/gitDiffReal/bugFixes.spec.js +25 -0
  240. package/examples/starter/node_modules/git-diff/js/gitDiffReal/generateDiff/index.js +105 -0
  241. package/examples/starter/node_modules/git-diff/js/gitDiffReal/generateDiffNoRepo/index.js +27 -0
  242. package/examples/starter/node_modules/git-diff/js/gitDiffReal/index.js +16 -0
  243. package/examples/starter/node_modules/git-diff/js/gitDiffReal/index.spec.js +222 -0
  244. package/examples/starter/node_modules/git-diff/js/gitDiffReal/keepIt.js +40 -0
  245. package/examples/starter/node_modules/git-diff/js/normaliseOptions/index.js +63 -0
  246. package/examples/starter/node_modules/git-diff/js/normaliseOptions/index.spec.js +93 -0
  247. package/examples/starter/node_modules/git-diff/js/validate/index.js +11 -0
  248. package/examples/starter/node_modules/git-diff/js/validate/index.spec.js +30 -0
  249. package/examples/starter/node_modules/git-diff/node_modules/chalk/index.js +228 -0
  250. package/examples/starter/node_modules/git-diff/node_modules/chalk/index.js.flow +93 -0
  251. package/examples/starter/node_modules/git-diff/node_modules/chalk/license +9 -0
  252. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/index.js +165 -0
  253. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/license +9 -0
  254. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/CHANGELOG.md +54 -0
  255. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/LICENSE +21 -0
  256. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/README.md +68 -0
  257. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js +868 -0
  258. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js +78 -0
  259. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/.eslintrc.json +43 -0
  260. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/LICENSE +8 -0
  261. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/README.md +11 -0
  262. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js +152 -0
  263. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/package.json +25 -0
  264. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/test.js +7 -0
  265. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/package.json +46 -0
  266. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js +97 -0
  267. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/package.json +56 -0
  268. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/readme.md +147 -0
  269. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/browser.js +5 -0
  270. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/index.js +131 -0
  271. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/license +9 -0
  272. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/index.js +8 -0
  273. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/license +9 -0
  274. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/package.json +44 -0
  275. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/readme.md +70 -0
  276. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/package.json +53 -0
  277. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/readme.md +66 -0
  278. package/examples/starter/node_modules/git-diff/node_modules/chalk/package.json +71 -0
  279. package/examples/starter/node_modules/git-diff/node_modules/chalk/readme.md +314 -0
  280. package/examples/starter/node_modules/git-diff/node_modules/chalk/templates.js +128 -0
  281. package/examples/starter/node_modules/git-diff/node_modules/chalk/types/index.d.ts +97 -0
  282. package/examples/starter/node_modules/git-diff/package.json +75 -0
  283. package/examples/starter/node_modules/git-diff/server.bootstrap.js +4 -0
  284. package/examples/starter/node_modules/git-diff/sync.js +24 -0
  285. package/examples/starter/node_modules/git-diff/test/_js/testImports.js +31 -0
  286. package/examples/starter/node_modules/git-diff/test/data/index.js +29 -0
  287. package/examples/starter/node_modules/git-diff/test/data/lineDiffVim.txt +13 -0
  288. package/examples/starter/node_modules/git-diff/test/data/shortstatReal.txt +1 -0
  289. package/examples/starter/node_modules/git-diff/test/data/str1.txt +9 -0
  290. package/examples/starter/node_modules/git-diff/test/data/str2.txt +9 -0
  291. package/examples/starter/node_modules/git-diff/test/data/wordDiffFake.txt +10 -0
  292. package/examples/starter/node_modules/git-diff/test/data/wordDiffReal.txt +10 -0
  293. package/examples/starter/node_modules/git-diff/test/examples/examples.spec.js +105 -0
  294. package/examples/starter/node_modules/git-diff/test/examples/newStr.txt +9 -0
  295. package/examples/starter/node_modules/git-diff/test/examples/oldStr.txt +9 -0
  296. package/examples/starter/node_modules/git-diff/test/gitDiffAsync/gitDiffAsync.spec.js +50 -0
  297. package/examples/starter/node_modules/git-diff/test/gitDiffSync/fake.spec.js +126 -0
  298. package/examples/starter/node_modules/git-diff/test/gitDiffSync/misc.spec.js +62 -0
  299. package/examples/starter/node_modules/git-diff/test/gitDiffSync/real.spec.js +206 -0
  300. package/examples/starter/node_modules/git-diff/test/mocha.opts +8 -0
  301. package/examples/starter/node_modules/git-diff/test/test.bootstrap.js +1 -0
  302. package/examples/starter/node_modules/git-diff/top.png +0 -0
  303. package/examples/starter/node_modules/git-diff/yarn.lock +1829 -0
  304. package/examples/starter/node_modules/glob/LICENSE +21 -0
  305. package/examples/starter/node_modules/glob/README.md +378 -0
  306. package/examples/starter/node_modules/glob/common.js +238 -0
  307. package/examples/starter/node_modules/glob/glob.js +790 -0
  308. package/examples/starter/node_modules/glob/package.json +55 -0
  309. package/examples/starter/node_modules/glob/sync.js +486 -0
  310. package/examples/starter/node_modules/has-flag/index.d.ts +39 -0
  311. package/examples/starter/node_modules/has-flag/index.js +8 -0
  312. package/examples/starter/node_modules/has-flag/license +9 -0
  313. package/examples/starter/node_modules/has-flag/package.json +46 -0
  314. package/examples/starter/node_modules/has-flag/readme.md +89 -0
  315. package/examples/starter/node_modules/import-fresh/index.d.ts +30 -0
  316. package/examples/starter/node_modules/import-fresh/index.js +34 -0
  317. package/examples/starter/node_modules/import-fresh/license +9 -0
  318. package/examples/starter/node_modules/import-fresh/package.json +48 -0
  319. package/examples/starter/node_modules/import-fresh/readme.md +54 -0
  320. package/examples/starter/node_modules/inflight/LICENSE +15 -0
  321. package/examples/starter/node_modules/inflight/README.md +37 -0
  322. package/examples/starter/node_modules/inflight/inflight.js +54 -0
  323. package/examples/starter/node_modules/inflight/package.json +29 -0
  324. package/examples/starter/node_modules/interpret/CHANGELOG +115 -0
  325. package/examples/starter/node_modules/interpret/LICENSE +22 -0
  326. package/examples/starter/node_modules/interpret/README.md +187 -0
  327. package/examples/starter/node_modules/interpret/index.js +168 -0
  328. package/examples/starter/node_modules/interpret/mjs-stub.js +1 -0
  329. package/examples/starter/node_modules/interpret/package.json +75 -0
  330. package/examples/starter/node_modules/is-arrayish/.editorconfig +18 -0
  331. package/examples/starter/node_modules/is-arrayish/.istanbul.yml +4 -0
  332. package/examples/starter/node_modules/is-arrayish/.travis.yml +17 -0
  333. package/examples/starter/node_modules/is-arrayish/LICENSE +21 -0
  334. package/examples/starter/node_modules/is-arrayish/README.md +16 -0
  335. package/examples/starter/node_modules/is-arrayish/index.js +10 -0
  336. package/examples/starter/node_modules/is-arrayish/package.json +34 -0
  337. package/examples/starter/node_modules/is-core-module/.eslintrc +18 -0
  338. package/examples/starter/node_modules/is-core-module/.nycrc +9 -0
  339. package/examples/starter/node_modules/is-core-module/CHANGELOG.md +218 -0
  340. package/examples/starter/node_modules/is-core-module/LICENSE +20 -0
  341. package/examples/starter/node_modules/is-core-module/README.md +40 -0
  342. package/examples/starter/node_modules/is-core-module/core.json +162 -0
  343. package/examples/starter/node_modules/is-core-module/index.js +69 -0
  344. package/examples/starter/node_modules/is-core-module/package.json +76 -0
  345. package/examples/starter/node_modules/is-core-module/test/index.js +157 -0
  346. package/examples/starter/node_modules/is-number/LICENSE +21 -0
  347. package/examples/starter/node_modules/is-number/README.md +187 -0
  348. package/examples/starter/node_modules/is-number/index.js +18 -0
  349. package/examples/starter/node_modules/is-number/package.json +82 -0
  350. package/examples/starter/node_modules/js-tokens/CHANGELOG.md +151 -0
  351. package/examples/starter/node_modules/js-tokens/LICENSE +21 -0
  352. package/examples/starter/node_modules/js-tokens/README.md +240 -0
  353. package/examples/starter/node_modules/js-tokens/index.js +23 -0
  354. package/examples/starter/node_modules/js-tokens/package.json +30 -0
  355. package/examples/starter/node_modules/js-yaml/LICENSE +21 -0
  356. package/examples/starter/node_modules/js-yaml/README.md +247 -0
  357. package/examples/starter/node_modules/js-yaml/bin/js-yaml.js +126 -0
  358. package/examples/starter/node_modules/js-yaml/dist/js-yaml.js +3880 -0
  359. package/examples/starter/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  360. package/examples/starter/node_modules/js-yaml/dist/js-yaml.mjs +3856 -0
  361. package/examples/starter/node_modules/js-yaml/index.js +47 -0
  362. package/examples/starter/node_modules/js-yaml/lib/common.js +59 -0
  363. package/examples/starter/node_modules/js-yaml/lib/dumper.js +965 -0
  364. package/examples/starter/node_modules/js-yaml/lib/exception.js +55 -0
  365. package/examples/starter/node_modules/js-yaml/lib/loader.js +1733 -0
  366. package/examples/starter/node_modules/js-yaml/lib/schema/core.js +11 -0
  367. package/examples/starter/node_modules/js-yaml/lib/schema/default.js +22 -0
  368. package/examples/starter/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  369. package/examples/starter/node_modules/js-yaml/lib/schema/json.js +19 -0
  370. package/examples/starter/node_modules/js-yaml/lib/schema.js +121 -0
  371. package/examples/starter/node_modules/js-yaml/lib/snippet.js +101 -0
  372. package/examples/starter/node_modules/js-yaml/lib/type/binary.js +125 -0
  373. package/examples/starter/node_modules/js-yaml/lib/type/bool.js +35 -0
  374. package/examples/starter/node_modules/js-yaml/lib/type/float.js +97 -0
  375. package/examples/starter/node_modules/js-yaml/lib/type/int.js +156 -0
  376. package/examples/starter/node_modules/js-yaml/lib/type/map.js +8 -0
  377. package/examples/starter/node_modules/js-yaml/lib/type/merge.js +12 -0
  378. package/examples/starter/node_modules/js-yaml/lib/type/null.js +35 -0
  379. package/examples/starter/node_modules/js-yaml/lib/type/omap.js +44 -0
  380. package/examples/starter/node_modules/js-yaml/lib/type/pairs.js +53 -0
  381. package/examples/starter/node_modules/js-yaml/lib/type/seq.js +8 -0
  382. package/examples/starter/node_modules/js-yaml/lib/type/set.js +29 -0
  383. package/examples/starter/node_modules/js-yaml/lib/type/str.js +8 -0
  384. package/examples/starter/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  385. package/examples/starter/node_modules/js-yaml/lib/type.js +66 -0
  386. package/examples/starter/node_modules/js-yaml/package.json +66 -0
  387. package/examples/starter/node_modules/json-parse-even-better-errors/CHANGELOG.md +50 -0
  388. package/examples/starter/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
  389. package/examples/starter/node_modules/json-parse-even-better-errors/README.md +96 -0
  390. package/examples/starter/node_modules/json-parse-even-better-errors/index.js +121 -0
  391. package/examples/starter/node_modules/json-parse-even-better-errors/package.json +33 -0
  392. package/examples/starter/node_modules/kysely-codegen/.cspell.json +97 -0
  393. package/examples/starter/node_modules/kysely-codegen/.github/FUNDING.yml +1 -0
  394. package/examples/starter/node_modules/kysely-codegen/.kysely-codegenrc.json +3 -0
  395. package/examples/starter/node_modules/kysely-codegen/.ncurc.json +3 -0
  396. package/examples/starter/node_modules/kysely-codegen/.prettierignore +1 -0
  397. package/examples/starter/node_modules/kysely-codegen/LICENSE +18 -0
  398. package/examples/starter/node_modules/kysely-codegen/README.md +456 -0
  399. package/examples/starter/node_modules/kysely-codegen/assets/kysely-codegen-logo.svg +28 -0
  400. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.d.ts +2 -0
  401. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.js +6 -0
  402. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.js.map +1 -0
  403. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.d.ts +17 -0
  404. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.js +246 -0
  405. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.js.map +1 -0
  406. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.d.ts +6 -0
  407. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.js +11 -0
  408. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.js.map +1 -0
  409. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.d.ts +106 -0
  410. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.js +87 -0
  411. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.js.map +1 -0
  412. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.d.ts +5 -0
  413. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.js +23 -0
  414. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.js.map +1 -0
  415. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.d.ts +76 -0
  416. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.js +152 -0
  417. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.js.map +1 -0
  418. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.d.ts +4 -0
  419. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.js +21 -0
  420. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.js.map +1 -0
  421. package/examples/starter/node_modules/kysely-codegen/dist/db.d.ts +1 -0
  422. package/examples/starter/node_modules/kysely-codegen/dist/db.js +3 -0
  423. package/examples/starter/node_modules/kysely-codegen/dist/db.js.map +1 -0
  424. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.d.ts +16 -0
  425. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.js +18 -0
  426. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.js.map +1 -0
  427. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.d.ts +9 -0
  428. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.js +13 -0
  429. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.js.map +1 -0
  430. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.d.ts +6 -0
  431. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.js +11 -0
  432. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.js.map +1 -0
  433. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.d.ts +5 -0
  434. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.js +11 -0
  435. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.js.map +1 -0
  436. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.d.ts +3 -0
  437. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.js +3 -0
  438. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.js.map +1 -0
  439. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.d.ts +10 -0
  440. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.js +11 -0
  441. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.js.map +1 -0
  442. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.d.ts +11 -0
  443. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.js +3 -0
  444. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.js.map +1 -0
  445. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.d.ts +9 -0
  446. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.js +14 -0
  447. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.js.map +1 -0
  448. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.d.ts +7 -0
  449. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.js +12 -0
  450. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.js.map +1 -0
  451. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.d.ts +11 -0
  452. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.js +18 -0
  453. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.js.map +1 -0
  454. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.d.ts +6 -0
  455. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.js +12 -0
  456. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.js.map +1 -0
  457. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.d.ts +7 -0
  458. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.js +12 -0
  459. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.js.map +1 -0
  460. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.d.ts +5 -0
  461. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.js +11 -0
  462. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.js.map +1 -0
  463. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.d.ts +8 -0
  464. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.js +12 -0
  465. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.js.map +1 -0
  466. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.d.ts +5 -0
  467. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.js +11 -0
  468. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.js.map +1 -0
  469. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.d.ts +7 -0
  470. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.js +11 -0
  471. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.js.map +1 -0
  472. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.d.ts +6 -0
  473. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.js +11 -0
  474. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.js.map +1 -0
  475. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.d.ts +15 -0
  476. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.js +12 -0
  477. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.js.map +1 -0
  478. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.d.ts +6 -0
  479. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.js +11 -0
  480. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.js.map +1 -0
  481. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.d.ts +8 -0
  482. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.js +13 -0
  483. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.js.map +1 -0
  484. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.d.ts +5 -0
  485. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.js +11 -0
  486. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.js.map +1 -0
  487. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.d.ts +13 -0
  488. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.js +28 -0
  489. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.js.map +1 -0
  490. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.d.ts +3 -0
  491. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.js +3 -0
  492. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.js.map +1 -0
  493. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.d.ts +7 -0
  494. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.js +12 -0
  495. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.js.map +1 -0
  496. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.d.ts +6 -0
  497. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.js +11 -0
  498. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.js.map +1 -0
  499. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.d.ts +24 -0
  500. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.js +94 -0
  501. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.js.map +1 -0
  502. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.d.ts +1 -0
  503. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.js +6 -0
  504. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.js.map +1 -0
  505. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.d.ts +11 -0
  506. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.js +38 -0
  507. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.js.map +1 -0
  508. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.d.ts +3 -0
  509. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.js +8 -0
  510. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.js.map +1 -0
  511. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.d.ts +6 -0
  512. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js +13 -0
  513. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js.map +1 -0
  514. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.d.ts +3 -0
  515. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.js +8 -0
  516. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.js.map +1 -0
  517. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.d.ts +6 -0
  518. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.js +13 -0
  519. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.js.map +1 -0
  520. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.d.ts +36 -0
  521. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.js +45 -0
  522. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.js.map +1 -0
  523. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.d.ts +6 -0
  524. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.js +13 -0
  525. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.js.map +1 -0
  526. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.d.ts +58 -0
  527. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.js +80 -0
  528. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.js.map +1 -0
  529. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.d.ts +6 -0
  530. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.js +13 -0
  531. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.js.map +1 -0
  532. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.d.ts +72 -0
  533. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.js +137 -0
  534. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.js.map +1 -0
  535. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.d.ts +16 -0
  536. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.js +22 -0
  537. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.js.map +1 -0
  538. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.d.ts +14 -0
  539. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.js +22 -0
  540. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.js.map +1 -0
  541. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.d.ts +6 -0
  542. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.js +13 -0
  543. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.js.map +1 -0
  544. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.d.ts +6 -0
  545. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.js +13 -0
  546. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.js.map +1 -0
  547. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.d.ts +4 -0
  548. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.js +27 -0
  549. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.js.map +1 -0
  550. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.d.ts +34 -0
  551. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.js +84 -0
  552. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.js.map +1 -0
  553. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.d.ts +1 -0
  554. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.js +3 -0
  555. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.js.map +1 -0
  556. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.d.ts +68 -0
  557. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.js +311 -0
  558. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.js.map +1 -0
  559. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.d.ts +1 -0
  560. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.js +32 -0
  561. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.js.map +1 -0
  562. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.d.ts +50 -0
  563. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.js +67 -0
  564. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.js.map +1 -0
  565. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.d.ts +8 -0
  566. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.js +14 -0
  567. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.js.map +1 -0
  568. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.d.ts +12 -0
  569. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.js +62 -0
  570. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.js.map +1 -0
  571. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.d.ts +18 -0
  572. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.js +44 -0
  573. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.js.map +1 -0
  574. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.d.ts +1 -0
  575. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.js +3 -0
  576. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.js.map +1 -0
  577. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.d.ts +5 -0
  578. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.js +9 -0
  579. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.js.map +1 -0
  580. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.d.ts +44 -0
  581. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.js +59 -0
  582. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.js.map +1 -0
  583. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.d.ts +38 -0
  584. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.js +380 -0
  585. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.js.map +1 -0
  586. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.d.ts +30 -0
  587. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.js +67 -0
  588. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.js.map +1 -0
  589. package/examples/starter/node_modules/kysely-codegen/dist/index.d.ts +4 -0
  590. package/examples/starter/node_modules/kysely-codegen/dist/index.js +21 -0
  591. package/examples/starter/node_modules/kysely-codegen/dist/index.js.map +1 -0
  592. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.d.ts +19 -0
  593. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.js +10 -0
  594. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.js.map +1 -0
  595. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.d.ts +7 -0
  596. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js +56 -0
  597. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js.map +1 -0
  598. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.d.ts +6 -0
  599. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.js +15 -0
  600. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.js.map +1 -0
  601. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.d.ts +7 -0
  602. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.js +59 -0
  603. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.js.map +1 -0
  604. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.d.ts +6 -0
  605. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.js +15 -0
  606. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.js.map +1 -0
  607. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.d.ts +9 -0
  608. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.js +112 -0
  609. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.js.map +1 -0
  610. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.d.ts +6 -0
  611. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.js +15 -0
  612. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.js.map +1 -0
  613. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.d.ts +8 -0
  614. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.js +3 -0
  615. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.js.map +1 -0
  616. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.d.ts +8 -0
  617. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.js +55 -0
  618. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.js.map +1 -0
  619. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.d.ts +14 -0
  620. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.js +46 -0
  621. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.js.map +1 -0
  622. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.d.ts +7 -0
  623. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.js +66 -0
  624. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.js.map +1 -0
  625. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.d.ts +2 -0
  626. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.js +5 -0
  627. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.js.map +1 -0
  628. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.d.ts +2 -0
  629. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.js +5 -0
  630. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.js.map +1 -0
  631. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.d.ts +15 -0
  632. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.js +3 -0
  633. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.js.map +1 -0
  634. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.d.ts +20 -0
  635. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.js +83 -0
  636. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.js.map +1 -0
  637. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.d.ts +35 -0
  638. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.js +128 -0
  639. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.js.map +1 -0
  640. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.d.ts +8 -0
  641. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.js +53 -0
  642. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.js.map +1 -0
  643. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.d.ts +6 -0
  644. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.js +15 -0
  645. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.js.map +1 -0
  646. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.d.ts +10 -0
  647. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.js +26 -0
  648. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.js.map +1 -0
  649. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.d.ts +24 -0
  650. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.js +41 -0
  651. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.js.map +1 -0
  652. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.d.ts +23 -0
  653. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.d.ts +4 -0
  654. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.js +128 -0
  655. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.js.map +1 -0
  656. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.js +50 -0
  657. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.js.map +1 -0
  658. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.d.ts +23 -0
  659. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.js +18 -0
  660. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.js.map +1 -0
  661. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.d.ts +12 -0
  662. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.js +13 -0
  663. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.js.map +1 -0
  664. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.d.ts +17 -0
  665. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.js +15 -0
  666. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.js.map +1 -0
  667. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.d.ts +6 -0
  668. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.js +16 -0
  669. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.js.map +1 -0
  670. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/LICENSE +21 -0
  671. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/README.md +208 -0
  672. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.cjs +33 -0
  673. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.d.cts +4 -0
  674. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.d.ts +4 -0
  675. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.js +4 -0
  676. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.cjs +17 -0
  677. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.d.cts +1 -0
  678. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.d.ts +1 -0
  679. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.js +1 -0
  680. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/package.json +6 -0
  681. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.cjs +17 -0
  682. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.d.cts +1 -0
  683. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.d.ts +1 -0
  684. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.js +1 -0
  685. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/package.json +6 -0
  686. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/package.json +135 -0
  687. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/index.ts +4 -0
  688. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/locales/index.ts +1 -0
  689. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/mini/index.ts +1 -0
  690. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/ZodError.ts +330 -0
  691. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  692. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  693. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  694. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  695. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  696. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  697. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  698. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  699. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  700. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/errors.ts +13 -0
  701. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/external.ts +6 -0
  702. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  703. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  704. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  705. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  706. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  707. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/util.ts +224 -0
  708. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/index.ts +4 -0
  709. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/locales/en.ts +124 -0
  710. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/standard-schema.ts +113 -0
  711. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  712. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  713. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  714. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  715. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  716. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  717. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  718. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  719. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  720. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  721. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  722. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  723. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  724. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  725. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  726. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  727. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  728. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  729. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  730. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  731. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  732. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  733. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  734. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  735. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  736. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  737. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  738. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  739. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  740. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  741. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  742. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  743. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  744. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  745. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  746. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  747. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  748. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  749. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  750. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  751. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  752. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  753. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  754. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  755. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  756. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  757. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  758. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  759. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  760. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  761. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  762. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  763. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  764. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  765. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  766. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  767. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  768. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  769. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  770. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  771. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  772. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/types.ts +5138 -0
  773. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/checks.ts +32 -0
  774. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  775. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/compat.ts +70 -0
  776. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/errors.ts +82 -0
  777. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/external.ts +51 -0
  778. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
  779. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/index.ts +5 -0
  780. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/iso.ts +90 -0
  781. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/parse.ts +82 -0
  782. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
  783. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  784. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  785. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  786. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  787. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  788. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  789. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  790. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  791. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  792. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
  793. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  794. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  795. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
  796. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  797. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  798. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  799. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  800. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  801. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
  802. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  803. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  804. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
  805. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  806. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
  807. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  808. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  809. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  810. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  811. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
  812. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  813. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  814. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  815. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  816. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  817. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  818. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  819. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  820. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  821. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  822. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  823. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  824. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  825. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  826. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
  827. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
  828. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
  829. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
  830. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  831. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  832. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  833. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
  834. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  835. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  836. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  837. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  838. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/record.test.ts +600 -0
  839. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
  840. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
  841. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  842. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  843. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  844. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  845. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
  846. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  847. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  848. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  849. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2975 -0
  850. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
  851. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
  852. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
  853. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  854. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  855. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  856. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/api.ts +1798 -0
  857. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/checks.ts +1293 -0
  858. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/config.ts +15 -0
  859. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/core.ts +138 -0
  860. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/doc.ts +44 -0
  861. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/errors.ts +448 -0
  862. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/index.ts +16 -0
  863. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  864. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
  865. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  866. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/parse.ts +195 -0
  867. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/regexes.ts +183 -0
  868. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/registries.ts +105 -0
  869. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/schemas.ts +4543 -0
  870. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  871. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  872. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  873. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  874. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  875. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  876. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  877. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  878. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  879. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  880. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
  881. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
  882. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  883. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
  884. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/util.ts +966 -0
  885. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/versions.ts +5 -0
  886. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/zsf.ts +323 -0
  887. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/index.ts +4 -0
  888. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ar.ts +115 -0
  889. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/az.ts +111 -0
  890. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/be.ts +176 -0
  891. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/bg.ts +128 -0
  892. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ca.ts +116 -0
  893. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/cs.ts +118 -0
  894. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/da.ts +123 -0
  895. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/de.ts +116 -0
  896. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/en.ts +119 -0
  897. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/eo.ts +118 -0
  898. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/es.ts +141 -0
  899. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fa.ts +126 -0
  900. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fi.ts +121 -0
  901. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  902. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fr.ts +116 -0
  903. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/he.ts +246 -0
  904. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/hu.ts +117 -0
  905. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/hy.ts +164 -0
  906. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/id.ts +115 -0
  907. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/index.ts +49 -0
  908. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/is.ts +119 -0
  909. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/it.ts +116 -0
  910. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ja.ts +114 -0
  911. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ka.ts +123 -0
  912. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/kh.ts +7 -0
  913. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/km.ts +119 -0
  914. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ko.ts +121 -0
  915. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/lt.ts +239 -0
  916. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/mk.ts +118 -0
  917. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ms.ts +115 -0
  918. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/nl.ts +121 -0
  919. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/no.ts +116 -0
  920. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ota.ts +117 -0
  921. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/pl.ts +118 -0
  922. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ps.ts +126 -0
  923. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/pt.ts +116 -0
  924. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ru.ts +176 -0
  925. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/sl.ts +118 -0
  926. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/sv.ts +119 -0
  927. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ta.ts +118 -0
  928. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/th.ts +119 -0
  929. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/tr.ts +111 -0
  930. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ua.ts +7 -0
  931. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/uk.ts +117 -0
  932. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ur.ts +119 -0
  933. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/uz.ts +116 -0
  934. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/vi.ts +117 -0
  935. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/yo.ts +124 -0
  936. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  937. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  938. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/checks.ts +32 -0
  939. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  940. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/external.ts +40 -0
  941. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/index.ts +3 -0
  942. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/iso.ts +66 -0
  943. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/parse.ts +14 -0
  944. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
  945. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  946. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  947. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  948. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  949. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
  950. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  951. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  952. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  953. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
  954. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  955. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  956. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  957. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  958. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  959. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
  960. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4-mini/index.ts +1 -0
  961. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.cjs +138 -0
  962. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.d.cts +164 -0
  963. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.d.ts +164 -0
  964. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.js +133 -0
  965. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.cjs +17 -0
  966. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.d.cts +5 -0
  967. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.d.ts +5 -0
  968. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.js +9 -0
  969. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.cjs +22 -0
  970. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.d.cts +6 -0
  971. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.d.ts +6 -0
  972. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.js +6 -0
  973. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  974. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  975. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  976. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  977. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  978. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  979. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  980. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  981. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  982. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  983. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  984. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  985. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  986. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  987. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  988. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  989. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  990. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  991. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  992. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  993. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.cjs +137 -0
  994. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.d.cts +85 -0
  995. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.d.ts +85 -0
  996. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.js +133 -0
  997. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.cjs +33 -0
  998. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.d.cts +4 -0
  999. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.d.ts +4 -0
  1000. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.js +4 -0
  1001. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.cjs +112 -0
  1002. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.d.cts +3 -0
  1003. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.d.ts +3 -0
  1004. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.js +109 -0
  1005. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/package.json +6 -0
  1006. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.cjs +2 -0
  1007. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1008. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1009. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.js +1 -0
  1010. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.cjs +3777 -0
  1011. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.d.cts +1034 -0
  1012. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.d.ts +1034 -0
  1013. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.js +3695 -0
  1014. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.cjs +33 -0
  1015. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1016. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1017. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.js +1 -0
  1018. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1019. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1020. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1021. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.js +17 -0
  1022. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.cjs +61 -0
  1023. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.d.cts +50 -0
  1024. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.d.ts +50 -0
  1025. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.js +31 -0
  1026. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.cjs +74 -0
  1027. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1028. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1029. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.js +48 -0
  1030. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.cjs +73 -0
  1031. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.d.cts +15 -0
  1032. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.d.ts +15 -0
  1033. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.js +20 -0
  1034. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
  1035. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1036. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1037. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  1038. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.cjs +33 -0
  1039. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.d.cts +4 -0
  1040. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.d.ts +4 -0
  1041. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.js +4 -0
  1042. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.cjs +60 -0
  1043. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1044. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1045. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.js +30 -0
  1046. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/package.json +6 -0
  1047. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.cjs +41 -0
  1048. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.d.cts +31 -0
  1049. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.d.ts +31 -0
  1050. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.js +15 -0
  1051. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.cjs +1272 -0
  1052. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.d.cts +739 -0
  1053. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.d.ts +739 -0
  1054. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.js +1157 -0
  1055. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.cjs +1222 -0
  1056. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.d.cts +304 -0
  1057. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.d.ts +304 -0
  1058. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.js +1082 -0
  1059. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.cjs +601 -0
  1060. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.d.cts +278 -0
  1061. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.d.ts +278 -0
  1062. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.js +575 -0
  1063. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.cjs +83 -0
  1064. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.d.cts +70 -0
  1065. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.d.ts +70 -0
  1066. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.js +76 -0
  1067. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.cjs +39 -0
  1068. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.d.cts +14 -0
  1069. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.d.ts +14 -0
  1070. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.js +35 -0
  1071. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.cjs +213 -0
  1072. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.d.cts +220 -0
  1073. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.d.ts +220 -0
  1074. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.js +182 -0
  1075. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.cjs +47 -0
  1076. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.d.cts +16 -0
  1077. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.d.ts +16 -0
  1078. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.js +16 -0
  1079. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  1080. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1081. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1082. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  1083. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
  1084. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  1085. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  1086. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  1087. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1088. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  1089. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  1090. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.js +1 -0
  1091. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/package.json +6 -0
  1092. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.cjs +131 -0
  1093. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.d.cts +49 -0
  1094. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.d.ts +49 -0
  1095. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.js +93 -0
  1096. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.cjs +166 -0
  1097. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.d.cts +79 -0
  1098. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.d.ts +79 -0
  1099. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.js +133 -0
  1100. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.cjs +56 -0
  1101. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.d.cts +35 -0
  1102. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.d.ts +35 -0
  1103. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.js +51 -0
  1104. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.cjs +2126 -0
  1105. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.d.cts +1146 -0
  1106. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.d.ts +1146 -0
  1107. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.js +2095 -0
  1108. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1109. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1110. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1111. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.js +1 -0
  1112. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
  1113. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  1114. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  1115. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.js +437 -0
  1116. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.cjs +710 -0
  1117. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.d.cts +199 -0
  1118. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.d.ts +199 -0
  1119. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.js +651 -0
  1120. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.cjs +8 -0
  1121. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.d.cts +5 -0
  1122. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.d.ts +5 -0
  1123. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.js +5 -0
  1124. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.cjs +22 -0
  1125. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.d.cts +3 -0
  1126. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.d.ts +3 -0
  1127. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.js +3 -0
  1128. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.cjs +133 -0
  1129. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1130. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1131. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.js +106 -0
  1132. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.cjs +132 -0
  1133. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.d.cts +5 -0
  1134. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.d.ts +4 -0
  1135. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.js +105 -0
  1136. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.cjs +183 -0
  1137. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.d.cts +5 -0
  1138. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.d.ts +4 -0
  1139. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.js +156 -0
  1140. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.cjs +147 -0
  1141. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1142. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1143. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.js +120 -0
  1144. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.cjs +134 -0
  1145. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1146. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1147. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.js +107 -0
  1148. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.cjs +138 -0
  1149. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1150. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1151. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.js +111 -0
  1152. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.cjs +142 -0
  1153. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.d.cts +5 -0
  1154. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.d.ts +4 -0
  1155. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.js +115 -0
  1156. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.cjs +135 -0
  1157. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.d.cts +5 -0
  1158. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.d.ts +4 -0
  1159. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.js +108 -0
  1160. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.cjs +136 -0
  1161. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.d.cts +5 -0
  1162. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.d.ts +4 -0
  1163. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.js +109 -0
  1164. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.cjs +136 -0
  1165. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1166. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1167. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.js +109 -0
  1168. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.cjs +159 -0
  1169. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.d.cts +5 -0
  1170. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.d.ts +4 -0
  1171. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.js +132 -0
  1172. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.cjs +141 -0
  1173. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1174. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1175. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.js +114 -0
  1176. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.cjs +139 -0
  1177. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1178. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1179. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.js +112 -0
  1180. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  1181. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1182. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1183. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.js +107 -0
  1184. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.cjs +135 -0
  1185. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1186. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1187. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.js +108 -0
  1188. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.cjs +241 -0
  1189. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.d.cts +5 -0
  1190. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.d.ts +4 -0
  1191. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.js +214 -0
  1192. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.cjs +135 -0
  1193. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1194. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1195. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.js +108 -0
  1196. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.cjs +174 -0
  1197. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1198. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1199. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.js +147 -0
  1200. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.cjs +133 -0
  1201. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.d.cts +5 -0
  1202. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.d.ts +4 -0
  1203. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.js +106 -0
  1204. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.cjs +104 -0
  1205. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.d.cts +49 -0
  1206. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.d.ts +49 -0
  1207. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.js +49 -0
  1208. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.cjs +136 -0
  1209. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.d.cts +5 -0
  1210. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.d.ts +4 -0
  1211. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.js +109 -0
  1212. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.cjs +135 -0
  1213. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.d.cts +5 -0
  1214. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.d.ts +4 -0
  1215. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.js +108 -0
  1216. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.cjs +134 -0
  1217. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1218. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1219. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.js +107 -0
  1220. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.cjs +139 -0
  1221. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1222. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1223. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.js +112 -0
  1224. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.cjs +12 -0
  1225. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1226. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1227. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.js +5 -0
  1228. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.cjs +137 -0
  1229. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.d.cts +5 -0
  1230. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.d.ts +4 -0
  1231. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.js +110 -0
  1232. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.cjs +138 -0
  1233. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1234. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1235. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.js +111 -0
  1236. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.cjs +230 -0
  1237. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1238. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1239. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.js +203 -0
  1240. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.cjs +136 -0
  1241. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1242. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1243. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.js +109 -0
  1244. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.cjs +134 -0
  1245. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1246. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1247. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.js +107 -0
  1248. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.cjs +137 -0
  1249. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1250. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1251. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.js +110 -0
  1252. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.cjs +135 -0
  1253. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.d.cts +5 -0
  1254. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.d.ts +4 -0
  1255. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.js +108 -0
  1256. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.cjs +136 -0
  1257. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1258. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1259. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.js +109 -0
  1260. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/package.json +6 -0
  1261. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.cjs +136 -0
  1262. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1263. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1264. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.js +109 -0
  1265. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.cjs +141 -0
  1266. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1267. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1268. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.js +114 -0
  1269. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.cjs +135 -0
  1270. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1271. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1272. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.js +108 -0
  1273. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.cjs +183 -0
  1274. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1275. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1276. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.js +156 -0
  1277. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.cjs +136 -0
  1278. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1279. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1280. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.js +109 -0
  1281. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.cjs +137 -0
  1282. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1283. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1284. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.js +110 -0
  1285. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.cjs +137 -0
  1286. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1287. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1288. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.js +110 -0
  1289. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.cjs +137 -0
  1290. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.d.cts +5 -0
  1291. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.d.ts +4 -0
  1292. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.js +110 -0
  1293. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.cjs +132 -0
  1294. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1295. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1296. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.js +105 -0
  1297. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.cjs +12 -0
  1298. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1299. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1300. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.js +5 -0
  1301. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.cjs +135 -0
  1302. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1303. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1304. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.js +108 -0
  1305. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.cjs +137 -0
  1306. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1307. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1308. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.js +110 -0
  1309. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.cjs +136 -0
  1310. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1311. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1312. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.js +109 -0
  1313. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.cjs +135 -0
  1314. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1315. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1316. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.js +108 -0
  1317. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.cjs +134 -0
  1318. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1319. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1320. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.js +107 -0
  1321. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  1322. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1323. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1324. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.js +109 -0
  1325. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  1326. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1327. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1328. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.js +107 -0
  1329. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.cjs +34 -0
  1330. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1331. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1332. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.js +1 -0
  1333. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.cjs +52 -0
  1334. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1335. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1336. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.js +22 -0
  1337. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.cjs +63 -0
  1338. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.d.cts +12 -0
  1339. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.d.ts +12 -0
  1340. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.js +14 -0
  1341. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.cjs +32 -0
  1342. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.d.cts +3 -0
  1343. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.d.ts +3 -0
  1344. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.js +3 -0
  1345. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.cjs +64 -0
  1346. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1347. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1348. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.js +34 -0
  1349. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/package.json +6 -0
  1350. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.cjs +16 -0
  1351. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1352. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1353. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.js +1 -0
  1354. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.cjs +1046 -0
  1355. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.d.cts +427 -0
  1356. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.d.ts +427 -0
  1357. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.js +925 -0
  1358. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/package.json +6 -0
  1359. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.cjs +17 -0
  1360. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.d.cts +1 -0
  1361. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.d.ts +1 -0
  1362. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.js +1 -0
  1363. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/package.json +6 -0
  1364. package/examples/starter/node_modules/kysely-codegen/package.json +214 -0
  1365. package/examples/starter/node_modules/kysely-codegen/pnpm-workspace.yaml +3 -0
  1366. package/examples/starter/node_modules/kysely-codegen/tsconfig.build.json +5 -0
  1367. package/examples/starter/node_modules/lines-and-columns/LICENSE +21 -0
  1368. package/examples/starter/node_modules/lines-and-columns/README.md +33 -0
  1369. package/examples/starter/node_modules/lines-and-columns/build/index.d.ts +13 -0
  1370. package/examples/starter/node_modules/lines-and-columns/build/index.js +62 -0
  1371. package/examples/starter/node_modules/lines-and-columns/package.json +49 -0
  1372. package/examples/starter/node_modules/loglevel/.editorconfig +27 -0
  1373. package/examples/starter/node_modules/loglevel/CONTRIBUTING.md +98 -0
  1374. package/examples/starter/node_modules/loglevel/Gruntfile.js +165 -0
  1375. package/examples/starter/node_modules/loglevel/LICENSE-MIT +22 -0
  1376. package/examples/starter/node_modules/loglevel/README.md +408 -0
  1377. package/examples/starter/node_modules/loglevel/_config.yml +1 -0
  1378. package/examples/starter/node_modules/loglevel/bower.json +11 -0
  1379. package/examples/starter/node_modules/loglevel/demo/index.html +139 -0
  1380. package/examples/starter/node_modules/loglevel/demo/script.js +86 -0
  1381. package/examples/starter/node_modules/loglevel/demo/styles.css +107 -0
  1382. package/examples/starter/node_modules/loglevel/dist/loglevel.js +352 -0
  1383. package/examples/starter/node_modules/loglevel/dist/loglevel.min.js +3 -0
  1384. package/examples/starter/node_modules/loglevel/index.d.ts +203 -0
  1385. package/examples/starter/node_modules/loglevel/lib/loglevel.js +357 -0
  1386. package/examples/starter/node_modules/loglevel/package.json +63 -0
  1387. package/examples/starter/node_modules/micromatch/LICENSE +21 -0
  1388. package/examples/starter/node_modules/micromatch/README.md +1024 -0
  1389. package/examples/starter/node_modules/micromatch/index.js +474 -0
  1390. package/examples/starter/node_modules/micromatch/package.json +119 -0
  1391. package/examples/starter/node_modules/minimatch/LICENSE +15 -0
  1392. package/examples/starter/node_modules/minimatch/README.md +230 -0
  1393. package/examples/starter/node_modules/minimatch/minimatch.js +947 -0
  1394. package/examples/starter/node_modules/minimatch/package.json +33 -0
  1395. package/examples/starter/node_modules/minimist/.eslintrc +29 -0
  1396. package/examples/starter/node_modules/minimist/.github/FUNDING.yml +12 -0
  1397. package/examples/starter/node_modules/minimist/.nycrc +14 -0
  1398. package/examples/starter/node_modules/minimist/CHANGELOG.md +298 -0
  1399. package/examples/starter/node_modules/minimist/LICENSE +18 -0
  1400. package/examples/starter/node_modules/minimist/README.md +121 -0
  1401. package/examples/starter/node_modules/minimist/example/parse.js +4 -0
  1402. package/examples/starter/node_modules/minimist/index.js +263 -0
  1403. package/examples/starter/node_modules/minimist/package.json +75 -0
  1404. package/examples/starter/node_modules/minimist/test/all_bool.js +34 -0
  1405. package/examples/starter/node_modules/minimist/test/bool.js +177 -0
  1406. package/examples/starter/node_modules/minimist/test/dash.js +43 -0
  1407. package/examples/starter/node_modules/minimist/test/default_bool.js +37 -0
  1408. package/examples/starter/node_modules/minimist/test/dotted.js +24 -0
  1409. package/examples/starter/node_modules/minimist/test/kv_short.js +32 -0
  1410. package/examples/starter/node_modules/minimist/test/long.js +33 -0
  1411. package/examples/starter/node_modules/minimist/test/num.js +38 -0
  1412. package/examples/starter/node_modules/minimist/test/parse.js +209 -0
  1413. package/examples/starter/node_modules/minimist/test/parse_modified.js +11 -0
  1414. package/examples/starter/node_modules/minimist/test/proto.js +64 -0
  1415. package/examples/starter/node_modules/minimist/test/short.js +69 -0
  1416. package/examples/starter/node_modules/minimist/test/stop_early.js +17 -0
  1417. package/examples/starter/node_modules/minimist/test/unknown.js +104 -0
  1418. package/examples/starter/node_modules/minimist/test/whitespace.js +10 -0
  1419. package/examples/starter/node_modules/parent-module/index.js +37 -0
  1420. package/examples/starter/node_modules/parent-module/license +9 -0
  1421. package/examples/starter/node_modules/parent-module/package.json +46 -0
  1422. package/examples/starter/node_modules/parent-module/readme.md +67 -0
  1423. package/examples/starter/node_modules/parse-json/index.js +54 -0
  1424. package/examples/starter/node_modules/parse-json/license +9 -0
  1425. package/examples/starter/node_modules/parse-json/package.json +45 -0
  1426. package/examples/starter/node_modules/parse-json/readme.md +119 -0
  1427. package/examples/starter/node_modules/path-is-absolute/index.js +20 -0
  1428. package/examples/starter/node_modules/path-is-absolute/license +21 -0
  1429. package/examples/starter/node_modules/path-is-absolute/package.json +43 -0
  1430. package/examples/starter/node_modules/path-is-absolute/readme.md +59 -0
  1431. package/examples/starter/node_modules/path-parse/LICENSE +21 -0
  1432. package/examples/starter/node_modules/path-parse/README.md +42 -0
  1433. package/examples/starter/node_modules/path-parse/index.js +75 -0
  1434. package/examples/starter/node_modules/path-parse/package.json +33 -0
  1435. package/examples/starter/node_modules/picomatch/CHANGELOG.md +136 -0
  1436. package/examples/starter/node_modules/picomatch/LICENSE +21 -0
  1437. package/examples/starter/node_modules/picomatch/README.md +708 -0
  1438. package/examples/starter/node_modules/picomatch/index.js +3 -0
  1439. package/examples/starter/node_modules/picomatch/lib/constants.js +179 -0
  1440. package/examples/starter/node_modules/picomatch/lib/parse.js +1091 -0
  1441. package/examples/starter/node_modules/picomatch/lib/picomatch.js +342 -0
  1442. package/examples/starter/node_modules/picomatch/lib/scan.js +391 -0
  1443. package/examples/starter/node_modules/picomatch/lib/utils.js +64 -0
  1444. package/examples/starter/node_modules/picomatch/package.json +81 -0
  1445. package/examples/starter/node_modules/pluralize/LICENSE +21 -0
  1446. package/examples/starter/node_modules/pluralize/Readme.md +100 -0
  1447. package/examples/starter/node_modules/pluralize/package.json +40 -0
  1448. package/examples/starter/node_modules/pluralize/pluralize.js +503 -0
  1449. package/examples/starter/node_modules/rechoir/.travis.yml +24 -0
  1450. package/examples/starter/node_modules/rechoir/CHANGELOG +38 -0
  1451. package/examples/starter/node_modules/rechoir/LICENSE +22 -0
  1452. package/examples/starter/node_modules/rechoir/README.md +42 -0
  1453. package/examples/starter/node_modules/rechoir/index.js +59 -0
  1454. package/examples/starter/node_modules/rechoir/lib/extension.js +11 -0
  1455. package/examples/starter/node_modules/rechoir/lib/normalize.js +15 -0
  1456. package/examples/starter/node_modules/rechoir/lib/register.js +15 -0
  1457. package/examples/starter/node_modules/rechoir/package.json +88 -0
  1458. package/examples/starter/node_modules/resolve/.editorconfig +37 -0
  1459. package/examples/starter/node_modules/resolve/.eslintrc +65 -0
  1460. package/examples/starter/node_modules/resolve/.github/FUNDING.yml +12 -0
  1461. package/examples/starter/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
  1462. package/examples/starter/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
  1463. package/examples/starter/node_modules/resolve/LICENSE +21 -0
  1464. package/examples/starter/node_modules/resolve/SECURITY.md +11 -0
  1465. package/examples/starter/node_modules/resolve/async.js +3 -0
  1466. package/examples/starter/node_modules/resolve/bin/resolve +50 -0
  1467. package/examples/starter/node_modules/resolve/example/async.js +5 -0
  1468. package/examples/starter/node_modules/resolve/example/sync.js +3 -0
  1469. package/examples/starter/node_modules/resolve/index.js +6 -0
  1470. package/examples/starter/node_modules/resolve/lib/async.js +333 -0
  1471. package/examples/starter/node_modules/resolve/lib/caller.js +8 -0
  1472. package/examples/starter/node_modules/resolve/lib/core.js +12 -0
  1473. package/examples/starter/node_modules/resolve/lib/core.json +162 -0
  1474. package/examples/starter/node_modules/resolve/lib/homedir.js +24 -0
  1475. package/examples/starter/node_modules/resolve/lib/is-core.js +5 -0
  1476. package/examples/starter/node_modules/resolve/lib/node-modules-paths.js +45 -0
  1477. package/examples/starter/node_modules/resolve/lib/normalize-options.js +10 -0
  1478. package/examples/starter/node_modules/resolve/lib/sync.js +212 -0
  1479. package/examples/starter/node_modules/resolve/package.json +75 -0
  1480. package/examples/starter/node_modules/resolve/readme.markdown +301 -0
  1481. package/examples/starter/node_modules/resolve/sync.js +3 -0
  1482. package/examples/starter/node_modules/resolve/test/core.js +88 -0
  1483. package/examples/starter/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  1484. package/examples/starter/node_modules/resolve/test/dotdot/index.js +1 -0
  1485. package/examples/starter/node_modules/resolve/test/dotdot.js +29 -0
  1486. package/examples/starter/node_modules/resolve/test/faulty_basedir.js +29 -0
  1487. package/examples/starter/node_modules/resolve/test/filter.js +34 -0
  1488. package/examples/starter/node_modules/resolve/test/filter_sync.js +33 -0
  1489. package/examples/starter/node_modules/resolve/test/home_paths.js +127 -0
  1490. package/examples/starter/node_modules/resolve/test/home_paths_sync.js +114 -0
  1491. package/examples/starter/node_modules/resolve/test/mock.js +315 -0
  1492. package/examples/starter/node_modules/resolve/test/mock_sync.js +214 -0
  1493. package/examples/starter/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  1494. package/examples/starter/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  1495. package/examples/starter/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  1496. package/examples/starter/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  1497. package/examples/starter/node_modules/resolve/test/module_dir.js +56 -0
  1498. package/examples/starter/node_modules/resolve/test/node-modules-paths.js +143 -0
  1499. package/examples/starter/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  1500. package/examples/starter/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  1501. package/examples/starter/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  1502. package/examples/starter/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  1503. package/examples/starter/node_modules/resolve/test/node_path.js +70 -0
  1504. package/examples/starter/node_modules/resolve/test/nonstring.js +9 -0
  1505. package/examples/starter/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  1506. package/examples/starter/node_modules/resolve/test/pathfilter.js +75 -0
  1507. package/examples/starter/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  1508. package/examples/starter/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  1509. package/examples/starter/node_modules/resolve/test/precedence/aaa.js +1 -0
  1510. package/examples/starter/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  1511. package/examples/starter/node_modules/resolve/test/precedence/bbb.js +1 -0
  1512. package/examples/starter/node_modules/resolve/test/precedence.js +23 -0
  1513. package/examples/starter/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1514. package/examples/starter/node_modules/resolve/test/resolver/baz/package.json +4 -0
  1515. package/examples/starter/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  1516. package/examples/starter/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  1517. package/examples/starter/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  1518. package/examples/starter/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  1519. package/examples/starter/node_modules/resolve/test/resolver/cup.coffee +1 -0
  1520. package/examples/starter/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  1521. package/examples/starter/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  1522. package/examples/starter/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  1523. package/examples/starter/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  1524. package/examples/starter/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  1525. package/examples/starter/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  1526. package/examples/starter/node_modules/resolve/test/resolver/foo.js +1 -0
  1527. package/examples/starter/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  1528. package/examples/starter/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  1529. package/examples/starter/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  1530. package/examples/starter/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1531. package/examples/starter/node_modules/resolve/test/resolver/mug.js +0 -0
  1532. package/examples/starter/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  1533. package/examples/starter/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  1534. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  1535. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  1536. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  1537. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  1538. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  1539. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  1540. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  1541. package/examples/starter/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1542. package/examples/starter/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1543. package/examples/starter/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  1544. package/examples/starter/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  1545. package/examples/starter/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  1546. package/examples/starter/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  1547. package/examples/starter/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  1548. package/examples/starter/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  1549. package/examples/starter/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  1550. package/examples/starter/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  1551. package/examples/starter/node_modules/resolve/test/resolver.js +597 -0
  1552. package/examples/starter/node_modules/resolve/test/resolver_sync.js +730 -0
  1553. package/examples/starter/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  1554. package/examples/starter/node_modules/resolve/test/shadowed_core.js +54 -0
  1555. package/examples/starter/node_modules/resolve/test/subdirs.js +13 -0
  1556. package/examples/starter/node_modules/resolve/test/symlinks.js +176 -0
  1557. package/examples/starter/node_modules/resolve-from/index.js +47 -0
  1558. package/examples/starter/node_modules/resolve-from/license +9 -0
  1559. package/examples/starter/node_modules/resolve-from/package.json +34 -0
  1560. package/examples/starter/node_modules/resolve-from/readme.md +72 -0
  1561. package/examples/starter/node_modules/shelljs/CHANGELOG.md +942 -0
  1562. package/examples/starter/node_modules/shelljs/LICENSE +26 -0
  1563. package/examples/starter/node_modules/shelljs/README.md +835 -0
  1564. package/examples/starter/node_modules/shelljs/bin/shjs +48 -0
  1565. package/examples/starter/node_modules/shelljs/commands.js +29 -0
  1566. package/examples/starter/node_modules/shelljs/global.js +12 -0
  1567. package/examples/starter/node_modules/shelljs/make.js +57 -0
  1568. package/examples/starter/node_modules/shelljs/package.json +79 -0
  1569. package/examples/starter/node_modules/shelljs/plugin.js +16 -0
  1570. package/examples/starter/node_modules/shelljs/shell.js +156 -0
  1571. package/examples/starter/node_modules/shelljs/src/cat.js +76 -0
  1572. package/examples/starter/node_modules/shelljs/src/cd.js +39 -0
  1573. package/examples/starter/node_modules/shelljs/src/chmod.js +216 -0
  1574. package/examples/starter/node_modules/shelljs/src/common.js +468 -0
  1575. package/examples/starter/node_modules/shelljs/src/cp.js +304 -0
  1576. package/examples/starter/node_modules/shelljs/src/dirs.js +212 -0
  1577. package/examples/starter/node_modules/shelljs/src/echo.js +63 -0
  1578. package/examples/starter/node_modules/shelljs/src/error.js +15 -0
  1579. package/examples/starter/node_modules/shelljs/src/exec-child.js +39 -0
  1580. package/examples/starter/node_modules/shelljs/src/exec.js +226 -0
  1581. package/examples/starter/node_modules/shelljs/src/find.js +61 -0
  1582. package/examples/starter/node_modules/shelljs/src/grep.js +73 -0
  1583. package/examples/starter/node_modules/shelljs/src/head.js +107 -0
  1584. package/examples/starter/node_modules/shelljs/src/ln.js +73 -0
  1585. package/examples/starter/node_modules/shelljs/src/ls.js +141 -0
  1586. package/examples/starter/node_modules/shelljs/src/mkdir.js +100 -0
  1587. package/examples/starter/node_modules/shelljs/src/mv.js +118 -0
  1588. package/examples/starter/node_modules/shelljs/src/popd.js +1 -0
  1589. package/examples/starter/node_modules/shelljs/src/pushd.js +1 -0
  1590. package/examples/starter/node_modules/shelljs/src/pwd.js +16 -0
  1591. package/examples/starter/node_modules/shelljs/src/rm.js +201 -0
  1592. package/examples/starter/node_modules/shelljs/src/sed.js +87 -0
  1593. package/examples/starter/node_modules/shelljs/src/set.js +56 -0
  1594. package/examples/starter/node_modules/shelljs/src/sort.js +97 -0
  1595. package/examples/starter/node_modules/shelljs/src/tail.js +80 -0
  1596. package/examples/starter/node_modules/shelljs/src/tempdir.js +75 -0
  1597. package/examples/starter/node_modules/shelljs/src/test.js +85 -0
  1598. package/examples/starter/node_modules/shelljs/src/to.js +37 -0
  1599. package/examples/starter/node_modules/shelljs/src/toEnd.js +36 -0
  1600. package/examples/starter/node_modules/shelljs/src/touch.js +111 -0
  1601. package/examples/starter/node_modules/shelljs/src/uniq.js +92 -0
  1602. package/examples/starter/node_modules/shelljs/src/which.js +118 -0
  1603. package/examples/starter/node_modules/shelljs.exec/.editorconfig +10 -0
  1604. package/examples/starter/node_modules/shelljs.exec/.eslintrc.json +37 -0
  1605. package/examples/starter/node_modules/shelljs.exec/.travis.yml +9 -0
  1606. package/examples/starter/node_modules/shelljs.exec/LICENSE.md +24 -0
  1607. package/examples/starter/node_modules/shelljs.exec/README.md +115 -0
  1608. package/examples/starter/node_modules/shelljs.exec/appveyor.yml +17 -0
  1609. package/examples/starter/node_modules/shelljs.exec/benchmark-results-raw.txt +74 -0
  1610. package/examples/starter/node_modules/shelljs.exec/images/fast.png +0 -0
  1611. package/examples/starter/node_modules/shelljs.exec/images/linux.png +0 -0
  1612. package/examples/starter/node_modules/shelljs.exec/images/slow.png +0 -0
  1613. package/examples/starter/node_modules/shelljs.exec/images/table-linux.odt +0 -0
  1614. package/examples/starter/node_modules/shelljs.exec/images/table-windows.odt +0 -0
  1615. package/examples/starter/node_modules/shelljs.exec/images/windows.png +0 -0
  1616. package/examples/starter/node_modules/shelljs.exec/index.js +35 -0
  1617. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/defaultOptions.js +6 -0
  1618. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/index.js +34 -0
  1619. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/index.spec.js +68 -0
  1620. package/examples/starter/node_modules/shelljs.exec/package.json +58 -0
  1621. package/examples/starter/node_modules/shelljs.exec/test/_js/testImports.js +37 -0
  1622. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/benchmarks.spec.js +288 -0
  1623. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/file1 +1 -0
  1624. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/file2 +1 -0
  1625. package/examples/starter/node_modules/shelljs.exec/test/mocha.opts +6 -0
  1626. package/examples/starter/node_modules/shelljs.exec/test/shelljs.exec/shelljs.exec.spec.js +176 -0
  1627. package/examples/starter/node_modules/supports-color/browser.js +5 -0
  1628. package/examples/starter/node_modules/supports-color/index.js +135 -0
  1629. package/examples/starter/node_modules/supports-color/license +9 -0
  1630. package/examples/starter/node_modules/supports-color/package.json +53 -0
  1631. package/examples/starter/node_modules/supports-color/readme.md +76 -0
  1632. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  1633. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  1634. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  1635. package/examples/starter/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  1636. package/examples/starter/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  1637. package/examples/starter/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  1638. package/examples/starter/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  1639. package/examples/starter/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  1640. package/examples/starter/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
  1641. package/examples/starter/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  1642. package/examples/starter/node_modules/to-regex-range/LICENSE +21 -0
  1643. package/examples/starter/node_modules/to-regex-range/README.md +305 -0
  1644. package/examples/starter/node_modules/to-regex-range/index.js +288 -0
  1645. package/examples/starter/node_modules/to-regex-range/package.json +88 -0
  1646. package/examples/starter/package.json +1 -1
  1647. package/examples/starter/src/index.ts +16 -1
  1648. package/examples/starter/src/plugins/stats/index.ts +19 -14
  1649. package/examples/starter/tsconfig.json +2 -3
  1650. package/package.json +1 -1
  1651. package/src/core.ts +17 -0
  1652. package/examples/starter/node_modules/@donkeylabs/server/README.md +0 -15
  1653. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/dev.ts +0 -134
  1654. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/generate.ts +0 -445
  1655. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/init.ts +0 -205
  1656. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/interactive.ts +0 -417
  1657. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/plugin.ts +0 -192
  1658. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/route.ts +0 -195
  1659. package/examples/starter/node_modules/@donkeylabs/server/cli/donkeylabs +0 -2
  1660. package/examples/starter/node_modules/@donkeylabs/server/cli/index.ts +0 -114
  1661. package/examples/starter/node_modules/@donkeylabs/server/docs/api-client.md +0 -520
  1662. package/examples/starter/node_modules/@donkeylabs/server/docs/cache.md +0 -437
  1663. package/examples/starter/node_modules/@donkeylabs/server/docs/cli.md +0 -353
  1664. package/examples/starter/node_modules/@donkeylabs/server/docs/core-services.md +0 -338
  1665. package/examples/starter/node_modules/@donkeylabs/server/docs/cron.md +0 -465
  1666. package/examples/starter/node_modules/@donkeylabs/server/docs/errors.md +0 -303
  1667. package/examples/starter/node_modules/@donkeylabs/server/docs/events.md +0 -460
  1668. package/examples/starter/node_modules/@donkeylabs/server/docs/handlers.md +0 -549
  1669. package/examples/starter/node_modules/@donkeylabs/server/docs/jobs.md +0 -556
  1670. package/examples/starter/node_modules/@donkeylabs/server/docs/logger.md +0 -316
  1671. package/examples/starter/node_modules/@donkeylabs/server/docs/middleware.md +0 -682
  1672. package/examples/starter/node_modules/@donkeylabs/server/docs/plugins.md +0 -524
  1673. package/examples/starter/node_modules/@donkeylabs/server/docs/project-structure.md +0 -493
  1674. package/examples/starter/node_modules/@donkeylabs/server/docs/rate-limiter.md +0 -525
  1675. package/examples/starter/node_modules/@donkeylabs/server/docs/router.md +0 -566
  1676. package/examples/starter/node_modules/@donkeylabs/server/docs/sse.md +0 -542
  1677. package/examples/starter/node_modules/@donkeylabs/server/docs/svelte-frontend.md +0 -324
  1678. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/context.d.ts +0 -37
  1679. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/registry.d.ts +0 -31
  1680. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/routes.ts +0 -21
  1681. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.env.example +0 -3
  1682. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.gitignore.template +0 -4
  1683. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/CLAUDE.md +0 -144
  1684. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/donkeylabs.config.ts +0 -6
  1685. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/package.json +0 -20
  1686. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/db.ts +0 -9
  1687. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/index.ts +0 -32
  1688. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/plugins/stats/index.ts +0 -93
  1689. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/index.ts +0 -5
  1690. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/index.ts +0 -13
  1691. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/models/model.ts +0 -23
  1692. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/schema.ts +0 -14
  1693. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/tests/integ.test.ts +0 -20
  1694. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/tests/unit.test.ts +0 -20
  1695. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/tsconfig.json +0 -27
  1696. package/examples/starter/node_modules/@donkeylabs/server/mcp/donkeylabs-mcp +0 -3238
  1697. package/examples/starter/node_modules/@donkeylabs/server/mcp/server.ts +0 -3238
  1698. package/examples/starter/node_modules/@donkeylabs/server/package.json +0 -77
  1699. package/examples/starter/node_modules/@donkeylabs/server/src/client/base.ts +0 -481
  1700. package/examples/starter/node_modules/@donkeylabs/server/src/client/index.ts +0 -150
  1701. package/examples/starter/node_modules/@donkeylabs/server/src/core/cache.ts +0 -183
  1702. package/examples/starter/node_modules/@donkeylabs/server/src/core/cron.ts +0 -255
  1703. package/examples/starter/node_modules/@donkeylabs/server/src/core/errors.ts +0 -320
  1704. package/examples/starter/node_modules/@donkeylabs/server/src/core/events.ts +0 -163
  1705. package/examples/starter/node_modules/@donkeylabs/server/src/core/index.ts +0 -94
  1706. package/examples/starter/node_modules/@donkeylabs/server/src/core/jobs.ts +0 -334
  1707. package/examples/starter/node_modules/@donkeylabs/server/src/core/logger.ts +0 -131
  1708. package/examples/starter/node_modules/@donkeylabs/server/src/core/rate-limiter.ts +0 -193
  1709. package/examples/starter/node_modules/@donkeylabs/server/src/core/sse.ts +0 -210
  1710. package/examples/starter/node_modules/@donkeylabs/server/src/core.ts +0 -428
  1711. package/examples/starter/node_modules/@donkeylabs/server/src/handlers.ts +0 -182
  1712. package/examples/starter/node_modules/@donkeylabs/server/src/harness.ts +0 -70
  1713. package/examples/starter/node_modules/@donkeylabs/server/src/index.ts +0 -51
  1714. package/examples/starter/node_modules/@donkeylabs/server/src/middleware.ts +0 -34
  1715. package/examples/starter/node_modules/@donkeylabs/server/src/registry.ts +0 -13
  1716. package/examples/starter/node_modules/@donkeylabs/server/src/router.ts +0 -172
  1717. package/examples/starter/node_modules/@donkeylabs/server/src/server.ts +0 -240
@@ -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 };