@nullix/zod-mongoose-studio 0.0.1

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 (876) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/8SOpv6rk.js +1 -0
  3. package/.output/public/_nuxt/9HpZscsL.js +2 -0
  4. package/.output/public/_nuxt/B2KnRiWG.js +4 -0
  5. package/.output/public/_nuxt/B8OfTtLu.js +1 -0
  6. package/.output/public/_nuxt/BBUBE1dy.js +1 -0
  7. package/.output/public/_nuxt/BBc9UKZt.js +1 -0
  8. package/.output/public/_nuxt/BDtDVThU.js +1 -0
  9. package/.output/public/_nuxt/BEgZUVRK.js +1 -0
  10. package/.output/public/_nuxt/BFxVWTOG.js +1 -0
  11. package/.output/public/_nuxt/BG73LgW2.js +1 -0
  12. package/.output/public/_nuxt/BKILRCQU.js +1 -0
  13. package/.output/public/_nuxt/BOtBlQCF.js +1 -0
  14. package/.output/public/_nuxt/BPhDTwHR.js +1 -0
  15. package/.output/public/_nuxt/BTesnYfV.js +298 -0
  16. package/.output/public/_nuxt/BbWJElDN.js +1 -0
  17. package/.output/public/_nuxt/BcvAzS8a.js +3 -0
  18. package/.output/public/_nuxt/Bd8akH9Z.js +1 -0
  19. package/.output/public/_nuxt/Be1F0pOV.js +1 -0
  20. package/.output/public/_nuxt/BeJ5waoc.js +1 -0
  21. package/.output/public/_nuxt/Bf6VGUru.js +1 -0
  22. package/.output/public/_nuxt/BkW5O-1t.js +1 -0
  23. package/.output/public/_nuxt/BlNEE0v7.js +1 -0
  24. package/.output/public/_nuxt/Brw8urJB.js +2 -0
  25. package/.output/public/_nuxt/Bs9aos_-.js +1 -0
  26. package/.output/public/_nuxt/Bs9z6M-B.js +1 -0
  27. package/.output/public/_nuxt/Btyra-wh.js +1 -0
  28. package/.output/public/_nuxt/Bu5POkcn.js +1 -0
  29. package/.output/public/_nuxt/Bw9ernYp.js +1 -0
  30. package/.output/public/_nuxt/BwHxbl9M.js +1 -0
  31. package/.output/public/_nuxt/BxJiqAUM.js +1 -0
  32. package/.output/public/_nuxt/BzKRNQWT.js +1 -0
  33. package/.output/public/_nuxt/CBJaRo0y.js +3 -0
  34. package/.output/public/_nuxt/CFznDFnq.js +2 -0
  35. package/.output/public/_nuxt/CHwy0fLd.js +1 -0
  36. package/.output/public/_nuxt/CJmd_6j2.js +1 -0
  37. package/.output/public/_nuxt/CMQZ64NL.js +1 -0
  38. package/.output/public/_nuxt/COWaemsV.js +1 -0
  39. package/.output/public/_nuxt/CXBNlu9o.js +1 -0
  40. package/.output/public/_nuxt/C_tMU-Nz.js +1 -0
  41. package/.output/public/_nuxt/CiqrrVzr.js +1 -0
  42. package/.output/public/_nuxt/ClhHkBeG.js +1 -0
  43. package/.output/public/_nuxt/CnS9iZB_.js +1 -0
  44. package/.output/public/_nuxt/CnmFD0ga.js +1 -0
  45. package/.output/public/_nuxt/Co3qMtFm.js +1 -0
  46. package/.output/public/_nuxt/CocnycG-.js +1 -0
  47. package/.output/public/_nuxt/CpO_ztTX.js +1 -0
  48. package/.output/public/_nuxt/CqXO7rUv.js +1 -0
  49. package/.output/public/_nuxt/Csy3S7wG.js +1 -0
  50. package/.output/public/_nuxt/CtU7CIYd.js +11 -0
  51. package/.output/public/_nuxt/Cw6BJv9p.js +908 -0
  52. package/.output/public/_nuxt/Cyyb5UIc.js +1 -0
  53. package/.output/public/_nuxt/D-4FJmMZ.js +1 -0
  54. package/.output/public/_nuxt/D9hQfWCl.js +1 -0
  55. package/.output/public/_nuxt/DARyPmWN.js +1 -0
  56. package/.output/public/_nuxt/DA_xQXIa.js +1 -0
  57. package/.output/public/_nuxt/DIpCSwC3.js +1 -0
  58. package/.output/public/_nuxt/DLDM7-KI.js +1 -0
  59. package/.output/public/_nuxt/DNDY2TF8.js +1 -0
  60. package/.output/public/_nuxt/DSgGBnBI.js +1 -0
  61. package/.output/public/_nuxt/DSh2-awV.js +1 -0
  62. package/.output/public/_nuxt/DWLU9E4j.js +7 -0
  63. package/.output/public/_nuxt/Db0IVjzk.js +1 -0
  64. package/.output/public/_nuxt/Db0cS2oM.js +1 -0
  65. package/.output/public/_nuxt/Dcm9cKUX.js +1 -0
  66. package/.output/public/_nuxt/DdJfP1eB.js +3 -0
  67. package/.output/public/_nuxt/DiJ1NA_G.js +1 -0
  68. package/.output/public/_nuxt/Dj0IH4Bd.js +1 -0
  69. package/.output/public/_nuxt/Dm6ycUr_.js +1 -0
  70. package/.output/public/_nuxt/Dm9fPMHo.js +1 -0
  71. package/.output/public/_nuxt/DmeGPVcC.js +1 -0
  72. package/.output/public/_nuxt/Dnu-v4kV.js +1 -0
  73. package/.output/public/_nuxt/DtV1sZF8.js +1 -0
  74. package/.output/public/_nuxt/DtZ0uQbO.js +1 -0
  75. package/.output/public/_nuxt/DuqnmPmx.js +33 -0
  76. package/.output/public/_nuxt/JqRWe2rp.js +1 -0
  77. package/.output/public/_nuxt/Kd9XrMLS.js +1 -0
  78. package/.output/public/_nuxt/OrD6JF1K.js +1 -0
  79. package/.output/public/_nuxt/PahG7c26.js +1 -0
  80. package/.output/public/_nuxt/Ub6l9XKa.js +1 -0
  81. package/.output/public/_nuxt/XOt5hzHz.js +1 -0
  82. package/.output/public/_nuxt/Y6nb8tq_.js +1 -0
  83. package/.output/public/_nuxt/acbASCJo.js +1 -0
  84. package/.output/public/_nuxt/builds/latest.json +1 -0
  85. package/.output/public/_nuxt/builds/meta/5f8bfdb9-d523-4660-afb9-2a5faf918ee2.json +1 -0
  86. package/.output/public/_nuxt/cCwfBBRk.js +59 -0
  87. package/.output/public/_nuxt/cTPe9QuQ.js +1 -0
  88. package/.output/public/_nuxt/c_t8T7LW.js +1 -0
  89. package/.output/public/_nuxt/cl7-CwDS.js +1 -0
  90. package/.output/public/_nuxt/codicon.ngg6Pgfi.ttf +0 -0
  91. package/.output/public/_nuxt/css.worker-DBVD8oXr.js +93 -0
  92. package/.output/public/_nuxt/editor.CdBKkuhR.css +1 -0
  93. package/.output/public/_nuxt/editor.worker-CdQrwHl8.js +26 -0
  94. package/.output/public/_nuxt/entry.V-_Q9qpd.css +1 -0
  95. package/.output/public/_nuxt/error-404.ZEdaMr7r.css +1 -0
  96. package/.output/public/_nuxt/error-500.CPEQ7gwd.css +1 -0
  97. package/.output/public/_nuxt/html.worker-CwpTb9lJ.js +470 -0
  98. package/.output/public/_nuxt/j7ic8hl3.js +1 -0
  99. package/.output/public/_nuxt/json.worker-BoL8UZqY.js +58 -0
  100. package/.output/public/_nuxt/s7OhZKlX.js +1 -0
  101. package/.output/public/_nuxt/tScXyioY.js +1 -0
  102. package/.output/public/_nuxt/ts.worker-CTGvpNXs.js +67718 -0
  103. package/.output/public/_nuxt/vHIfCaH5.js +1 -0
  104. package/.output/public/_nuxt/zBfavPgS.js +1 -0
  105. package/.output/public/android-chrome-192x192.png +0 -0
  106. package/.output/public/android-chrome-512x512.png +0 -0
  107. package/.output/public/apple-touch-icon.png +0 -0
  108. package/.output/public/favicon-16x16.png +0 -0
  109. package/.output/public/favicon-32x32.png +0 -0
  110. package/.output/public/favicon.ico +0 -0
  111. package/.output/public/robots.txt +2 -0
  112. package/.output/public/site.webmanifest +1 -0
  113. package/.output/public/zodmongoose-b.jpg +0 -0
  114. package/.output/public/zodmongoose-b.png +0 -0
  115. package/.output/public/zodmongoose-b.svg +10 -0
  116. package/.output/public/zodmongoose.jpg +0 -0
  117. package/.output/public/zodmongoose.png +0 -0
  118. package/.output/public/zodmongoose.svg +12 -0
  119. package/.output/server/chunks/_/error-500.mjs +19 -0
  120. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  121. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  122. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  123. package/.output/server/chunks/build/error-404-C01T0Fs3.mjs +93 -0
  124. package/.output/server/chunks/build/error-404-C01T0Fs3.mjs.map +1 -0
  125. package/.output/server/chunks/build/error-404-styles.C9SFt1Pa.mjs +8 -0
  126. package/.output/server/chunks/build/error-404-styles.C9SFt1Pa.mjs.map +1 -0
  127. package/.output/server/chunks/build/error-500-BxPzc_RO.mjs +76 -0
  128. package/.output/server/chunks/build/error-500-BxPzc_RO.mjs.map +1 -0
  129. package/.output/server/chunks/build/error-500-styles.BgBkJrKx.mjs +8 -0
  130. package/.output/server/chunks/build/error-500-styles.BgBkJrKx.mjs.map +1 -0
  131. package/.output/server/chunks/build/index-Cm3PgUzj.mjs +504 -0
  132. package/.output/server/chunks/build/index-Cm3PgUzj.mjs.map +1 -0
  133. package/.output/server/chunks/build/server.mjs +14569 -0
  134. package/.output/server/chunks/build/server.mjs.map +1 -0
  135. package/.output/server/chunks/build/styles.mjs +10 -0
  136. package/.output/server/chunks/build/styles.mjs.map +1 -0
  137. package/.output/server/chunks/nitro/nitro.mjs +6533 -0
  138. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  139. package/.output/server/chunks/routes/api/parse.post.mjs +1293 -0
  140. package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -0
  141. package/.output/server/chunks/routes/api/resolve.get.mjs +42 -0
  142. package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -0
  143. package/.output/server/chunks/routes/renderer.mjs +483 -0
  144. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  145. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  146. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  147. package/.output/server/index.mjs +12 -0
  148. package/.output/server/index.mjs.map +1 -0
  149. package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
  150. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  151. package/.output/server/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  152. package/.output/server/node_modules/@esbuild/darwin-arm64/package.json +20 -0
  153. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
  154. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
  155. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
  156. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
  157. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
  158. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
  159. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
  160. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
  161. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
  162. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
  163. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
  164. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
  165. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
  166. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
  167. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
  168. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
  169. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
  170. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
  171. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
  172. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
  173. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
  174. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
  175. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
  176. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
  177. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
  178. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
  179. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
  180. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
  181. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
  182. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
  183. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  184. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
  185. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
  186. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
  187. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
  188. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
  189. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
  190. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
  191. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
  192. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
  193. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
  194. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
  195. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
  196. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
  197. package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
  198. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
  199. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
  200. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
  201. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
  202. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
  203. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
  204. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
  205. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
  206. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
  207. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
  208. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
  209. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
  210. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
  211. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
  212. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
  213. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
  214. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
  215. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
  216. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
  217. package/.output/server/node_modules/@iconify/utils/package.json +118 -0
  218. package/.output/server/node_modules/@mongodb-js/saslprep/dist/code-points-data.js +5 -0
  219. package/.output/server/node_modules/@mongodb-js/saslprep/dist/index.js +65 -0
  220. package/.output/server/node_modules/@mongodb-js/saslprep/dist/memory-code-points.js +32 -0
  221. package/.output/server/node_modules/@mongodb-js/saslprep/dist/node.js +15 -0
  222. package/.output/server/node_modules/@mongodb-js/saslprep/package.json +87 -0
  223. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  224. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  225. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  226. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  227. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  228. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  229. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
  230. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  231. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
  232. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  233. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
  234. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  235. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  236. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  237. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  238. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  239. package/.output/server/node_modules/bson/lib/bson.cjs +4636 -0
  240. package/.output/server/node_modules/bson/package.json +120 -0
  241. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  242. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  243. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  244. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  245. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  246. package/.output/server/node_modules/consola/package.json +136 -0
  247. package/.output/server/node_modules/debug/package.json +64 -0
  248. package/.output/server/node_modules/debug/src/browser.js +272 -0
  249. package/.output/server/node_modules/debug/src/common.js +292 -0
  250. package/.output/server/node_modules/debug/src/index.js +10 -0
  251. package/.output/server/node_modules/debug/src/node.js +263 -0
  252. package/.output/server/node_modules/devalue/index.js +4 -0
  253. package/.output/server/node_modules/devalue/package.json +37 -0
  254. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  255. package/.output/server/node_modules/devalue/src/constants.js +7 -0
  256. package/.output/server/node_modules/devalue/src/parse.js +265 -0
  257. package/.output/server/node_modules/devalue/src/stringify.js +350 -0
  258. package/.output/server/node_modules/devalue/src/uneval.js +490 -0
  259. package/.output/server/node_modules/devalue/src/utils.js +148 -0
  260. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  261. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  262. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  263. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  264. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  265. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  266. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  267. package/.output/server/node_modules/entities/package.json +120 -0
  268. package/.output/server/node_modules/esbuild/lib/main.js +2532 -0
  269. package/.output/server/node_modules/esbuild/package.json +74 -0
  270. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  271. package/.output/server/node_modules/estree-walker/package.json +37 -0
  272. package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
  273. package/.output/server/node_modules/hookable/package.json +53 -0
  274. package/.output/server/node_modules/ip-address/dist/address-error.js +12 -0
  275. package/.output/server/node_modules/ip-address/dist/common.js +46 -0
  276. package/.output/server/node_modules/ip-address/dist/ip-address.js +35 -0
  277. package/.output/server/node_modules/ip-address/dist/ipv4.js +360 -0
  278. package/.output/server/node_modules/ip-address/dist/ipv6.js +1003 -0
  279. package/.output/server/node_modules/ip-address/dist/v4/constants.js +8 -0
  280. package/.output/server/node_modules/ip-address/dist/v6/constants.js +76 -0
  281. package/.output/server/node_modules/ip-address/dist/v6/helpers.js +45 -0
  282. package/.output/server/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  283. package/.output/server/node_modules/ip-address/package.json +78 -0
  284. package/.output/server/node_modules/kareem/index.js +668 -0
  285. package/.output/server/node_modules/kareem/package.json +28 -0
  286. package/.output/server/node_modules/memory-pager/index.js +160 -0
  287. package/.output/server/node_modules/memory-pager/package.json +24 -0
  288. package/.output/server/node_modules/mongodb/lib/admin.js +136 -0
  289. package/.output/server/node_modules/mongodb/lib/bson.js +84 -0
  290. package/.output/server/node_modules/mongodb/lib/bulk/common.js +837 -0
  291. package/.output/server/node_modules/mongodb/lib/bulk/ordered.js +67 -0
  292. package/.output/server/node_modules/mongodb/lib/bulk/unordered.js +92 -0
  293. package/.output/server/node_modules/mongodb/lib/change_stream.js +465 -0
  294. package/.output/server/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.js +274 -0
  295. package/.output/server/node_modules/mongodb/lib/client-side-encryption/client_encryption.js +610 -0
  296. package/.output/server/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.js +81 -0
  297. package/.output/server/node_modules/mongodb/lib/client-side-encryption/errors.js +136 -0
  298. package/.output/server/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js +85 -0
  299. package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/aws.js +23 -0
  300. package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/azure.js +132 -0
  301. package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js +16 -0
  302. package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/index.js +43 -0
  303. package/.output/server/node_modules/mongodb/lib/client-side-encryption/state_machine.js +426 -0
  304. package/.output/server/node_modules/mongodb/lib/cmap/auth/auth_provider.js +51 -0
  305. package/.output/server/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.js +150 -0
  306. package/.output/server/node_modules/mongodb/lib/cmap/auth/gssapi.js +154 -0
  307. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongo_credentials.js +183 -0
  308. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_aws.js +138 -0
  309. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.js +84 -0
  310. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.js +62 -0
  311. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.js +141 -0
  312. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.js +44 -0
  313. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.js +39 -0
  314. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.js +122 -0
  315. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.js +31 -0
  316. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.js +52 -0
  317. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.js +22 -0
  318. package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.js +73 -0
  319. package/.output/server/node_modules/mongodb/lib/cmap/auth/plain.js +26 -0
  320. package/.output/server/node_modules/mongodb/lib/cmap/auth/providers.js +23 -0
  321. package/.output/server/node_modules/mongodb/lib/cmap/auth/scram.js +254 -0
  322. package/.output/server/node_modules/mongodb/lib/cmap/auth/x509.js +36 -0
  323. package/.output/server/node_modules/mongodb/lib/cmap/command_monitoring_events.js +223 -0
  324. package/.output/server/node_modules/mongodb/lib/cmap/commands.js +535 -0
  325. package/.output/server/node_modules/mongodb/lib/cmap/connect.js +366 -0
  326. package/.output/server/node_modules/mongodb/lib/cmap/connection.js +570 -0
  327. package/.output/server/node_modules/mongodb/lib/cmap/connection_pool.js +558 -0
  328. package/.output/server/node_modules/mongodb/lib/cmap/connection_pool_events.js +190 -0
  329. package/.output/server/node_modules/mongodb/lib/cmap/errors.js +108 -0
  330. package/.output/server/node_modules/mongodb/lib/cmap/handshake/client_metadata.js +239 -0
  331. package/.output/server/node_modules/mongodb/lib/cmap/metrics.js +62 -0
  332. package/.output/server/node_modules/mongodb/lib/cmap/stream_description.js +70 -0
  333. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/compression.js +163 -0
  334. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/constants.js +19 -0
  335. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/on_data.js +112 -0
  336. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.js +222 -0
  337. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/responses.js +315 -0
  338. package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/shared.js +35 -0
  339. package/.output/server/node_modules/mongodb/lib/collection.js +751 -0
  340. package/.output/server/node_modules/mongodb/lib/connection_string.js +1091 -0
  341. package/.output/server/node_modules/mongodb/lib/constants.js +170 -0
  342. package/.output/server/node_modules/mongodb/lib/cursor/abstract_cursor.js +941 -0
  343. package/.output/server/node_modules/mongodb/lib/cursor/aggregation_cursor.js +164 -0
  344. package/.output/server/node_modules/mongodb/lib/cursor/change_stream_cursor.js +104 -0
  345. package/.output/server/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.js +52 -0
  346. package/.output/server/node_modules/mongodb/lib/cursor/explainable_cursor.js +36 -0
  347. package/.output/server/node_modules/mongodb/lib/cursor/find_cursor.js +388 -0
  348. package/.output/server/node_modules/mongodb/lib/cursor/list_collections_cursor.js +34 -0
  349. package/.output/server/node_modules/mongodb/lib/cursor/list_indexes_cursor.js +32 -0
  350. package/.output/server/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js +14 -0
  351. package/.output/server/node_modules/mongodb/lib/cursor/run_command_cursor.js +94 -0
  352. package/.output/server/node_modules/mongodb/lib/db.js +420 -0
  353. package/.output/server/node_modules/mongodb/lib/deps.js +125 -0
  354. package/.output/server/node_modules/mongodb/lib/encrypter.js +106 -0
  355. package/.output/server/node_modules/mongodb/lib/error.js +1383 -0
  356. package/.output/server/node_modules/mongodb/lib/explain.js +59 -0
  357. package/.output/server/node_modules/mongodb/lib/gridfs/download.js +305 -0
  358. package/.output/server/node_modules/mongodb/lib/gridfs/index.js +164 -0
  359. package/.output/server/node_modules/mongodb/lib/gridfs/upload.js +364 -0
  360. package/.output/server/node_modules/mongodb/lib/index.js +195 -0
  361. package/.output/server/node_modules/mongodb/lib/mongo_client.js +566 -0
  362. package/.output/server/node_modules/mongodb/lib/mongo_client_auth_providers.js +86 -0
  363. package/.output/server/node_modules/mongodb/lib/mongo_logger.js +649 -0
  364. package/.output/server/node_modules/mongodb/lib/mongo_types.js +57 -0
  365. package/.output/server/node_modules/mongodb/lib/operations/aggregate.js +93 -0
  366. package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.js +51 -0
  367. package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js +340 -0
  368. package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/executor.js +120 -0
  369. package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.js +204 -0
  370. package/.output/server/node_modules/mongodb/lib/operations/command.js +83 -0
  371. package/.output/server/node_modules/mongodb/lib/operations/count.js +45 -0
  372. package/.output/server/node_modules/mongodb/lib/operations/create_collection.js +110 -0
  373. package/.output/server/node_modules/mongodb/lib/operations/delete.js +125 -0
  374. package/.output/server/node_modules/mongodb/lib/operations/distinct.js +61 -0
  375. package/.output/server/node_modules/mongodb/lib/operations/drop.js +94 -0
  376. package/.output/server/node_modules/mongodb/lib/operations/estimated_document_count.js +41 -0
  377. package/.output/server/node_modules/mongodb/lib/operations/execute_operation.js +236 -0
  378. package/.output/server/node_modules/mongodb/lib/operations/find.js +148 -0
  379. package/.output/server/node_modules/mongodb/lib/operations/find_and_modify.js +158 -0
  380. package/.output/server/node_modules/mongodb/lib/operations/get_more.js +62 -0
  381. package/.output/server/node_modules/mongodb/lib/operations/indexes.js +186 -0
  382. package/.output/server/node_modules/mongodb/lib/operations/insert.js +70 -0
  383. package/.output/server/node_modules/mongodb/lib/operations/kill_cursors.js +43 -0
  384. package/.output/server/node_modules/mongodb/lib/operations/list_collections.js +53 -0
  385. package/.output/server/node_modules/mongodb/lib/operations/list_databases.js +40 -0
  386. package/.output/server/node_modules/mongodb/lib/operations/operation.js +102 -0
  387. package/.output/server/node_modules/mongodb/lib/operations/profiling_level.js +43 -0
  388. package/.output/server/node_modules/mongodb/lib/operations/remove_user.js +27 -0
  389. package/.output/server/node_modules/mongodb/lib/operations/rename.js +38 -0
  390. package/.output/server/node_modules/mongodb/lib/operations/run_command.js +47 -0
  391. package/.output/server/node_modules/mongodb/lib/operations/search_indexes/create.js +33 -0
  392. package/.output/server/node_modules/mongodb/lib/operations/search_indexes/drop.js +43 -0
  393. package/.output/server/node_modules/mongodb/lib/operations/search_indexes/update.js +35 -0
  394. package/.output/server/node_modules/mongodb/lib/operations/set_profiling_level.js +53 -0
  395. package/.output/server/node_modules/mongodb/lib/operations/stats.js +27 -0
  396. package/.output/server/node_modules/mongodb/lib/operations/update.js +188 -0
  397. package/.output/server/node_modules/mongodb/lib/operations/validate_collection.js +37 -0
  398. package/.output/server/node_modules/mongodb/lib/read_concern.js +73 -0
  399. package/.output/server/node_modules/mongodb/lib/read_preference.js +195 -0
  400. package/.output/server/node_modules/mongodb/lib/resource_management.js +58 -0
  401. package/.output/server/node_modules/mongodb/lib/sdam/common.js +49 -0
  402. package/.output/server/node_modules/mongodb/lib/sdam/events.js +146 -0
  403. package/.output/server/node_modules/mongodb/lib/sdam/monitor.js +544 -0
  404. package/.output/server/node_modules/mongodb/lib/sdam/server.js +392 -0
  405. package/.output/server/node_modules/mongodb/lib/sdam/server_description.js +204 -0
  406. package/.output/server/node_modules/mongodb/lib/sdam/server_selection.js +231 -0
  407. package/.output/server/node_modules/mongodb/lib/sdam/server_selection_events.js +85 -0
  408. package/.output/server/node_modules/mongodb/lib/sdam/srv_polling.js +108 -0
  409. package/.output/server/node_modules/mongodb/lib/sdam/topology.js +694 -0
  410. package/.output/server/node_modules/mongodb/lib/sdam/topology_description.js +383 -0
  411. package/.output/server/node_modules/mongodb/lib/sessions.js +827 -0
  412. package/.output/server/node_modules/mongodb/lib/sort.js +103 -0
  413. package/.output/server/node_modules/mongodb/lib/timeout.js +296 -0
  414. package/.output/server/node_modules/mongodb/lib/transactions.js +146 -0
  415. package/.output/server/node_modules/mongodb/lib/utils.js +1203 -0
  416. package/.output/server/node_modules/mongodb/lib/write_concern.js +100 -0
  417. package/.output/server/node_modules/mongodb/package.json +178 -0
  418. package/.output/server/node_modules/mongodb-connection-string-url/lib/index.js +213 -0
  419. package/.output/server/node_modules/mongodb-connection-string-url/lib/redact.js +86 -0
  420. package/.output/server/node_modules/mongodb-connection-string-url/package.json +62 -0
  421. package/.output/server/node_modules/mongoose/index.js +64 -0
  422. package/.output/server/node_modules/mongoose/lib/aggregate.js +1245 -0
  423. package/.output/server/node_modules/mongoose/lib/browserDocument.js +101 -0
  424. package/.output/server/node_modules/mongoose/lib/cast/bigint.js +46 -0
  425. package/.output/server/node_modules/mongoose/lib/cast/boolean.js +32 -0
  426. package/.output/server/node_modules/mongoose/lib/cast/date.js +41 -0
  427. package/.output/server/node_modules/mongoose/lib/cast/decimal128.js +39 -0
  428. package/.output/server/node_modules/mongoose/lib/cast/double.js +50 -0
  429. package/.output/server/node_modules/mongoose/lib/cast/int32.js +36 -0
  430. package/.output/server/node_modules/mongoose/lib/cast/number.js +42 -0
  431. package/.output/server/node_modules/mongoose/lib/cast/objectid.js +29 -0
  432. package/.output/server/node_modules/mongoose/lib/cast/string.js +37 -0
  433. package/.output/server/node_modules/mongoose/lib/cast/uuid.js +78 -0
  434. package/.output/server/node_modules/mongoose/lib/cast.js +444 -0
  435. package/.output/server/node_modules/mongoose/lib/collection.js +321 -0
  436. package/.output/server/node_modules/mongoose/lib/connection.js +1850 -0
  437. package/.output/server/node_modules/mongoose/lib/connectionState.js +26 -0
  438. package/.output/server/node_modules/mongoose/lib/constants.js +73 -0
  439. package/.output/server/node_modules/mongoose/lib/cursor/aggregationCursor.js +476 -0
  440. package/.output/server/node_modules/mongoose/lib/cursor/changeStream.js +198 -0
  441. package/.output/server/node_modules/mongoose/lib/cursor/queryCursor.js +629 -0
  442. package/.output/server/node_modules/mongoose/lib/document.js +5512 -0
  443. package/.output/server/node_modules/mongoose/lib/documentProvider.js +30 -0
  444. package/.output/server/node_modules/mongoose/lib/driver.js +15 -0
  445. package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/bulkWriteResult.js +5 -0
  446. package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js +471 -0
  447. package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js +528 -0
  448. package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js +10 -0
  449. package/.output/server/node_modules/mongoose/lib/error/bulkSaveIncompleteError.js +44 -0
  450. package/.output/server/node_modules/mongoose/lib/error/bulkWriteError.js +41 -0
  451. package/.output/server/node_modules/mongoose/lib/error/cast.js +158 -0
  452. package/.output/server/node_modules/mongoose/lib/error/createCollectionsError.js +26 -0
  453. package/.output/server/node_modules/mongoose/lib/error/divergentArray.js +40 -0
  454. package/.output/server/node_modules/mongoose/lib/error/eachAsyncMultiError.js +41 -0
  455. package/.output/server/node_modules/mongoose/lib/error/index.js +237 -0
  456. package/.output/server/node_modules/mongoose/lib/error/invalidSchemaOption.js +32 -0
  457. package/.output/server/node_modules/mongoose/lib/error/messages.js +47 -0
  458. package/.output/server/node_modules/mongoose/lib/error/missingSchema.js +33 -0
  459. package/.output/server/node_modules/mongoose/lib/error/mongooseError.js +13 -0
  460. package/.output/server/node_modules/mongoose/lib/error/notFound.js +47 -0
  461. package/.output/server/node_modules/mongoose/lib/error/objectExpected.js +31 -0
  462. package/.output/server/node_modules/mongoose/lib/error/objectParameter.js +32 -0
  463. package/.output/server/node_modules/mongoose/lib/error/overwriteModel.js +31 -0
  464. package/.output/server/node_modules/mongoose/lib/error/parallelSave.js +33 -0
  465. package/.output/server/node_modules/mongoose/lib/error/parallelValidate.js +33 -0
  466. package/.output/server/node_modules/mongoose/lib/error/serverSelection.js +62 -0
  467. package/.output/server/node_modules/mongoose/lib/error/setOptionError.js +103 -0
  468. package/.output/server/node_modules/mongoose/lib/error/strict.js +35 -0
  469. package/.output/server/node_modules/mongoose/lib/error/strictPopulate.js +31 -0
  470. package/.output/server/node_modules/mongoose/lib/error/syncIndexes.js +30 -0
  471. package/.output/server/node_modules/mongoose/lib/error/validation.js +105 -0
  472. package/.output/server/node_modules/mongoose/lib/error/validator.js +100 -0
  473. package/.output/server/node_modules/mongoose/lib/error/version.js +38 -0
  474. package/.output/server/node_modules/mongoose/lib/helpers/aggregate/prepareDiscriminatorPipeline.js +39 -0
  475. package/.output/server/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js +50 -0
  476. package/.output/server/node_modules/mongoose/lib/helpers/arrayDepth.js +33 -0
  477. package/.output/server/node_modules/mongoose/lib/helpers/clone.js +236 -0
  478. package/.output/server/node_modules/mongoose/lib/helpers/common.js +127 -0
  479. package/.output/server/node_modules/mongoose/lib/helpers/createJSONSchemaTypeDefinition.js +24 -0
  480. package/.output/server/node_modules/mongoose/lib/helpers/cursor/eachAsync.js +225 -0
  481. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/applyEmbeddedDiscriminators.js +36 -0
  482. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +16 -0
  483. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +12 -0
  484. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js +29 -0
  485. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js +28 -0
  486. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +27 -0
  487. package/.output/server/node_modules/mongoose/lib/helpers/discriminator/mergeDiscriminatorSchema.js +91 -0
  488. package/.output/server/node_modules/mongoose/lib/helpers/document/applyDefaults.js +132 -0
  489. package/.output/server/node_modules/mongoose/lib/helpers/document/applyTimestamps.js +105 -0
  490. package/.output/server/node_modules/mongoose/lib/helpers/document/applyVirtuals.js +146 -0
  491. package/.output/server/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js +45 -0
  492. package/.output/server/node_modules/mongoose/lib/helpers/document/compile.js +238 -0
  493. package/.output/server/node_modules/mongoose/lib/helpers/document/getDeepestSubdocumentForPath.js +38 -0
  494. package/.output/server/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js +53 -0
  495. package/.output/server/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js +35 -0
  496. package/.output/server/node_modules/mongoose/lib/helpers/each.js +25 -0
  497. package/.output/server/node_modules/mongoose/lib/helpers/error/combinePathErrors.js +22 -0
  498. package/.output/server/node_modules/mongoose/lib/helpers/firstKey.js +8 -0
  499. package/.output/server/node_modules/mongoose/lib/helpers/get.js +65 -0
  500. package/.output/server/node_modules/mongoose/lib/helpers/getConstructorName.js +16 -0
  501. package/.output/server/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js +18 -0
  502. package/.output/server/node_modules/mongoose/lib/helpers/getFunctionName.js +10 -0
  503. package/.output/server/node_modules/mongoose/lib/helpers/immediate.js +16 -0
  504. package/.output/server/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js +13 -0
  505. package/.output/server/node_modules/mongoose/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js +14 -0
  506. package/.output/server/node_modules/mongoose/lib/helpers/indexes/getRelatedIndexes.js +63 -0
  507. package/.output/server/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js +18 -0
  508. package/.output/server/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js +96 -0
  509. package/.output/server/node_modules/mongoose/lib/helpers/indexes/isIndexSpecEqual.js +32 -0
  510. package/.output/server/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js +16 -0
  511. package/.output/server/node_modules/mongoose/lib/helpers/indexes/isTimeseriesIndex.js +16 -0
  512. package/.output/server/node_modules/mongoose/lib/helpers/isAsyncFunction.js +9 -0
  513. package/.output/server/node_modules/mongoose/lib/helpers/isBsonType.js +15 -0
  514. package/.output/server/node_modules/mongoose/lib/helpers/isMongooseObject.js +22 -0
  515. package/.output/server/node_modules/mongoose/lib/helpers/isObject.js +16 -0
  516. package/.output/server/node_modules/mongoose/lib/helpers/isPOJO.js +12 -0
  517. package/.output/server/node_modules/mongoose/lib/helpers/isPromise.js +6 -0
  518. package/.output/server/node_modules/mongoose/lib/helpers/isSimpleValidator.js +22 -0
  519. package/.output/server/node_modules/mongoose/lib/helpers/minimize.js +41 -0
  520. package/.output/server/node_modules/mongoose/lib/helpers/model/applyDefaultsToPOJO.js +52 -0
  521. package/.output/server/node_modules/mongoose/lib/helpers/model/applyHooks.js +150 -0
  522. package/.output/server/node_modules/mongoose/lib/helpers/model/applyMethods.js +70 -0
  523. package/.output/server/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js +80 -0
  524. package/.output/server/node_modules/mongoose/lib/helpers/model/applyStatics.js +13 -0
  525. package/.output/server/node_modules/mongoose/lib/helpers/model/castBulkWrite.js +326 -0
  526. package/.output/server/node_modules/mongoose/lib/helpers/model/decorateBulkWriteResult.js +8 -0
  527. package/.output/server/node_modules/mongoose/lib/helpers/model/discriminator.js +265 -0
  528. package/.output/server/node_modules/mongoose/lib/helpers/model/pushNestedArrayPaths.js +15 -0
  529. package/.output/server/node_modules/mongoose/lib/helpers/omitUndefined.js +20 -0
  530. package/.output/server/node_modules/mongoose/lib/helpers/parallelLimit.js +55 -0
  531. package/.output/server/node_modules/mongoose/lib/helpers/path/parentPaths.js +18 -0
  532. package/.output/server/node_modules/mongoose/lib/helpers/path/setDottedPath.js +33 -0
  533. package/.output/server/node_modules/mongoose/lib/helpers/pluralize.js +95 -0
  534. package/.output/server/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js +136 -0
  535. package/.output/server/node_modules/mongoose/lib/helpers/populate/assignVals.js +360 -0
  536. package/.output/server/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js +97 -0
  537. package/.output/server/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js +766 -0
  538. package/.output/server/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js +229 -0
  539. package/.output/server/node_modules/mongoose/lib/helpers/populate/getVirtual.js +103 -0
  540. package/.output/server/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js +7 -0
  541. package/.output/server/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js +40 -0
  542. package/.output/server/node_modules/mongoose/lib/helpers/populate/markArraySubdocsPopulated.js +49 -0
  543. package/.output/server/node_modules/mongoose/lib/helpers/populate/modelNamesFromRefPath.js +66 -0
  544. package/.output/server/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js +31 -0
  545. package/.output/server/node_modules/mongoose/lib/helpers/populate/setPopulatedVirtualValue.js +33 -0
  546. package/.output/server/node_modules/mongoose/lib/helpers/populate/skipPopulateValue.js +10 -0
  547. package/.output/server/node_modules/mongoose/lib/helpers/populate/validateRef.js +19 -0
  548. package/.output/server/node_modules/mongoose/lib/helpers/printJestWarning.js +21 -0
  549. package/.output/server/node_modules/mongoose/lib/helpers/processConnectionOptions.js +65 -0
  550. package/.output/server/node_modules/mongoose/lib/helpers/projection/applyProjection.js +83 -0
  551. package/.output/server/node_modules/mongoose/lib/helpers/projection/hasIncludedChildren.js +41 -0
  552. package/.output/server/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js +18 -0
  553. package/.output/server/node_modules/mongoose/lib/helpers/projection/isExclusive.js +37 -0
  554. package/.output/server/node_modules/mongoose/lib/helpers/projection/isInclusive.js +39 -0
  555. package/.output/server/node_modules/mongoose/lib/helpers/projection/isNestedProjection.js +8 -0
  556. package/.output/server/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js +40 -0
  557. package/.output/server/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js +28 -0
  558. package/.output/server/node_modules/mongoose/lib/helpers/projection/isSubpath.js +14 -0
  559. package/.output/server/node_modules/mongoose/lib/helpers/projection/parseProjection.js +33 -0
  560. package/.output/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js +54 -0
  561. package/.output/server/node_modules/mongoose/lib/helpers/query/applyGlobalOption.js +29 -0
  562. package/.output/server/node_modules/mongoose/lib/helpers/query/cast$expr.js +289 -0
  563. package/.output/server/node_modules/mongoose/lib/helpers/query/castFilterPath.js +54 -0
  564. package/.output/server/node_modules/mongoose/lib/helpers/query/castUpdate.js +641 -0
  565. package/.output/server/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js +103 -0
  566. package/.output/server/node_modules/mongoose/lib/helpers/query/handleImmutable.js +44 -0
  567. package/.output/server/node_modules/mongoose/lib/helpers/query/handleReadPreferenceAliases.js +23 -0
  568. package/.output/server/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js +23 -0
  569. package/.output/server/node_modules/mongoose/lib/helpers/query/isOperator.js +14 -0
  570. package/.output/server/node_modules/mongoose/lib/helpers/query/sanitizeFilter.js +41 -0
  571. package/.output/server/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js +14 -0
  572. package/.output/server/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js +62 -0
  573. package/.output/server/node_modules/mongoose/lib/helpers/query/trusted.js +13 -0
  574. package/.output/server/node_modules/mongoose/lib/helpers/schema/addAutoId.js +7 -0
  575. package/.output/server/node_modules/mongoose/lib/helpers/schema/applyBuiltinPlugins.js +12 -0
  576. package/.output/server/node_modules/mongoose/lib/helpers/schema/applyPlugins.js +55 -0
  577. package/.output/server/node_modules/mongoose/lib/helpers/schema/applyReadConcern.js +20 -0
  578. package/.output/server/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js +37 -0
  579. package/.output/server/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js +12 -0
  580. package/.output/server/node_modules/mongoose/lib/helpers/schema/getIndexes.js +177 -0
  581. package/.output/server/node_modules/mongoose/lib/helpers/schema/getKeysInSchemaOrder.js +28 -0
  582. package/.output/server/node_modules/mongoose/lib/helpers/schema/getPath.js +43 -0
  583. package/.output/server/node_modules/mongoose/lib/helpers/schema/getSubdocumentStrictValue.js +32 -0
  584. package/.output/server/node_modules/mongoose/lib/helpers/schema/handleIdOption.js +20 -0
  585. package/.output/server/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js +24 -0
  586. package/.output/server/node_modules/mongoose/lib/helpers/schema/idGetter.js +34 -0
  587. package/.output/server/node_modules/mongoose/lib/helpers/schema/merge.js +36 -0
  588. package/.output/server/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js +50 -0
  589. package/.output/server/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js +161 -0
  590. package/.output/server/node_modules/mongoose/lib/helpers/specialProperties.js +3 -0
  591. package/.output/server/node_modules/mongoose/lib/helpers/symbols.js +20 -0
  592. package/.output/server/node_modules/mongoose/lib/helpers/timers.js +3 -0
  593. package/.output/server/node_modules/mongoose/lib/helpers/timestamps/setDocumentTimestamps.js +26 -0
  594. package/.output/server/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js +110 -0
  595. package/.output/server/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js +12 -0
  596. package/.output/server/node_modules/mongoose/lib/helpers/topology/isAtlas.js +31 -0
  597. package/.output/server/node_modules/mongoose/lib/helpers/topology/isSSLError.js +16 -0
  598. package/.output/server/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js +193 -0
  599. package/.output/server/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js +130 -0
  600. package/.output/server/node_modules/mongoose/lib/helpers/update/castArrayFilters.js +113 -0
  601. package/.output/server/node_modules/mongoose/lib/helpers/update/decorateUpdateWithVersionKey.js +35 -0
  602. package/.output/server/node_modules/mongoose/lib/helpers/update/modifiedPaths.js +33 -0
  603. package/.output/server/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js +53 -0
  604. package/.output/server/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js +32 -0
  605. package/.output/server/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js +27 -0
  606. package/.output/server/node_modules/mongoose/lib/helpers/updateValidators.js +247 -0
  607. package/.output/server/node_modules/mongoose/lib/index.js +17 -0
  608. package/.output/server/node_modules/mongoose/lib/internal.js +46 -0
  609. package/.output/server/node_modules/mongoose/lib/model.js +5208 -0
  610. package/.output/server/node_modules/mongoose/lib/modifiedPathsSnapshot.js +9 -0
  611. package/.output/server/node_modules/mongoose/lib/mongoose.js +1383 -0
  612. package/.output/server/node_modules/mongoose/lib/options/populateOptions.js +36 -0
  613. package/.output/server/node_modules/mongoose/lib/options/propertyOptions.js +8 -0
  614. package/.output/server/node_modules/mongoose/lib/options/saveOptions.js +16 -0
  615. package/.output/server/node_modules/mongoose/lib/options/schemaArrayOptions.js +78 -0
  616. package/.output/server/node_modules/mongoose/lib/options/schemaBufferOptions.js +38 -0
  617. package/.output/server/node_modules/mongoose/lib/options/schemaDateOptions.js +71 -0
  618. package/.output/server/node_modules/mongoose/lib/options/schemaDocumentArrayOptions.js +68 -0
  619. package/.output/server/node_modules/mongoose/lib/options/schemaMapOptions.js +43 -0
  620. package/.output/server/node_modules/mongoose/lib/options/schemaNumberOptions.js +101 -0
  621. package/.output/server/node_modules/mongoose/lib/options/schemaObjectIdOptions.js +64 -0
  622. package/.output/server/node_modules/mongoose/lib/options/schemaStringOptions.js +138 -0
  623. package/.output/server/node_modules/mongoose/lib/options/schemaSubdocumentOptions.js +66 -0
  624. package/.output/server/node_modules/mongoose/lib/options/schemaTypeOptions.js +244 -0
  625. package/.output/server/node_modules/mongoose/lib/options/schemaUnionOptions.js +32 -0
  626. package/.output/server/node_modules/mongoose/lib/options/virtualOptions.js +164 -0
  627. package/.output/server/node_modules/mongoose/lib/options.js +18 -0
  628. package/.output/server/node_modules/mongoose/lib/plugins/index.js +6 -0
  629. package/.output/server/node_modules/mongoose/lib/plugins/saveSubdocs.js +102 -0
  630. package/.output/server/node_modules/mongoose/lib/plugins/sharding.js +83 -0
  631. package/.output/server/node_modules/mongoose/lib/plugins/trackTransaction.js +85 -0
  632. package/.output/server/node_modules/mongoose/lib/plugins/validateBeforeSave.js +51 -0
  633. package/.output/server/node_modules/mongoose/lib/query.js +5693 -0
  634. package/.output/server/node_modules/mongoose/lib/queryHelpers.js +394 -0
  635. package/.output/server/node_modules/mongoose/lib/schema/array.js +744 -0
  636. package/.output/server/node_modules/mongoose/lib/schema/bigint.js +282 -0
  637. package/.output/server/node_modules/mongoose/lib/schema/boolean.js +332 -0
  638. package/.output/server/node_modules/mongoose/lib/schema/buffer.js +343 -0
  639. package/.output/server/node_modules/mongoose/lib/schema/date.js +467 -0
  640. package/.output/server/node_modules/mongoose/lib/schema/decimal128.js +263 -0
  641. package/.output/server/node_modules/mongoose/lib/schema/documentArray.js +701 -0
  642. package/.output/server/node_modules/mongoose/lib/schema/documentArrayElement.js +102 -0
  643. package/.output/server/node_modules/mongoose/lib/schema/double.js +246 -0
  644. package/.output/server/node_modules/mongoose/lib/schema/index.js +31 -0
  645. package/.output/server/node_modules/mongoose/lib/schema/int32.js +289 -0
  646. package/.output/server/node_modules/mongoose/lib/schema/map.js +201 -0
  647. package/.output/server/node_modules/mongoose/lib/schema/mixed.js +146 -0
  648. package/.output/server/node_modules/mongoose/lib/schema/number.js +498 -0
  649. package/.output/server/node_modules/mongoose/lib/schema/objectId.js +333 -0
  650. package/.output/server/node_modules/mongoose/lib/schema/operators/bitwise.js +38 -0
  651. package/.output/server/node_modules/mongoose/lib/schema/operators/exists.js +12 -0
  652. package/.output/server/node_modules/mongoose/lib/schema/operators/geospatial.js +107 -0
  653. package/.output/server/node_modules/mongoose/lib/schema/operators/helpers.js +32 -0
  654. package/.output/server/node_modules/mongoose/lib/schema/operators/text.js +39 -0
  655. package/.output/server/node_modules/mongoose/lib/schema/operators/type.js +20 -0
  656. package/.output/server/node_modules/mongoose/lib/schema/string.js +733 -0
  657. package/.output/server/node_modules/mongoose/lib/schema/subdocument.js +445 -0
  658. package/.output/server/node_modules/mongoose/lib/schema/symbols.js +5 -0
  659. package/.output/server/node_modules/mongoose/lib/schema/union.js +113 -0
  660. package/.output/server/node_modules/mongoose/lib/schema/uuid.js +326 -0
  661. package/.output/server/node_modules/mongoose/lib/schema.js +3185 -0
  662. package/.output/server/node_modules/mongoose/lib/schemaType.js +1853 -0
  663. package/.output/server/node_modules/mongoose/lib/stateMachine.js +232 -0
  664. package/.output/server/node_modules/mongoose/lib/types/array/index.js +119 -0
  665. package/.output/server/node_modules/mongoose/lib/types/array/isMongooseArray.js +5 -0
  666. package/.output/server/node_modules/mongoose/lib/types/array/methods/index.js +1096 -0
  667. package/.output/server/node_modules/mongoose/lib/types/arraySubdocument.js +208 -0
  668. package/.output/server/node_modules/mongoose/lib/types/buffer.js +294 -0
  669. package/.output/server/node_modules/mongoose/lib/types/decimal128.js +13 -0
  670. package/.output/server/node_modules/mongoose/lib/types/documentArray/index.js +113 -0
  671. package/.output/server/node_modules/mongoose/lib/types/documentArray/isMongooseDocumentArray.js +5 -0
  672. package/.output/server/node_modules/mongoose/lib/types/documentArray/methods/index.js +413 -0
  673. package/.output/server/node_modules/mongoose/lib/types/double.js +13 -0
  674. package/.output/server/node_modules/mongoose/lib/types/index.js +23 -0
  675. package/.output/server/node_modules/mongoose/lib/types/map.js +419 -0
  676. package/.output/server/node_modules/mongoose/lib/types/objectid.js +41 -0
  677. package/.output/server/node_modules/mongoose/lib/types/subdocument.js +492 -0
  678. package/.output/server/node_modules/mongoose/lib/types/uuid.js +13 -0
  679. package/.output/server/node_modules/mongoose/lib/utils.js +1043 -0
  680. package/.output/server/node_modules/mongoose/lib/validOptions.js +42 -0
  681. package/.output/server/node_modules/mongoose/lib/virtualType.js +204 -0
  682. package/.output/server/node_modules/mongoose/package.json +156 -0
  683. package/.output/server/node_modules/mpath/index.js +3 -0
  684. package/.output/server/node_modules/mpath/lib/index.js +336 -0
  685. package/.output/server/node_modules/mpath/lib/stringToParts.js +48 -0
  686. package/.output/server/node_modules/mpath/package.json +144 -0
  687. package/.output/server/node_modules/mquery/lib/collection/collection.js +45 -0
  688. package/.output/server/node_modules/mquery/lib/collection/index.js +13 -0
  689. package/.output/server/node_modules/mquery/lib/collection/node.js +114 -0
  690. package/.output/server/node_modules/mquery/lib/env.js +22 -0
  691. package/.output/server/node_modules/mquery/lib/mquery.js +2705 -0
  692. package/.output/server/node_modules/mquery/lib/permissions.js +78 -0
  693. package/.output/server/node_modules/mquery/lib/utils.js +297 -0
  694. package/.output/server/node_modules/mquery/package.json +38 -0
  695. package/.output/server/node_modules/ms/index.js +162 -0
  696. package/.output/server/node_modules/ms/package.json +38 -0
  697. package/.output/server/node_modules/punycode/package.json +58 -0
  698. package/.output/server/node_modules/punycode/punycode.js +443 -0
  699. package/.output/server/node_modules/sift/index.js +4 -0
  700. package/.output/server/node_modules/sift/lib/index.js +781 -0
  701. package/.output/server/node_modules/sift/package.json +61 -0
  702. package/.output/server/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
  703. package/.output/server/node_modules/smart-buffer/build/utils.js +108 -0
  704. package/.output/server/node_modules/smart-buffer/package.json +81 -0
  705. package/.output/server/node_modules/socks/build/client/socksclient.js +793 -0
  706. package/.output/server/node_modules/socks/build/common/constants.js +108 -0
  707. package/.output/server/node_modules/socks/build/common/helpers.js +167 -0
  708. package/.output/server/node_modules/socks/build/common/receivebuffer.js +43 -0
  709. package/.output/server/node_modules/socks/build/common/util.js +25 -0
  710. package/.output/server/node_modules/socks/build/index.js +18 -0
  711. package/.output/server/node_modules/socks/package.json +58 -0
  712. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  713. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  714. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  715. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  716. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  717. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  718. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  719. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  720. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  721. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  722. package/.output/server/node_modules/source-map-js/package.json +71 -0
  723. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  724. package/.output/server/node_modules/sparse-bitfield/index.js +95 -0
  725. package/.output/server/node_modules/sparse-bitfield/package.json +27 -0
  726. package/.output/server/node_modules/supports-color/index.js +202 -0
  727. package/.output/server/node_modules/supports-color/package.json +64 -0
  728. package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  729. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  730. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  731. package/.output/server/node_modules/tr46/index.js +344 -0
  732. package/.output/server/node_modules/tr46/lib/mappingTable.json +1 -0
  733. package/.output/server/node_modules/tr46/lib/regexes.js +29 -0
  734. package/.output/server/node_modules/tr46/lib/statusMapping.js +9 -0
  735. package/.output/server/node_modules/tr46/package.json +44 -0
  736. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  737. package/.output/server/node_modules/ufo/package.json +48 -0
  738. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  739. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  740. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  741. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  742. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  743. package/.output/server/node_modules/unhead/dist/shared/unhead.0eF0fa-Y.mjs +236 -0
  744. package/.output/server/node_modules/unhead/dist/shared/unhead.B5FWS6X0.mjs +207 -0
  745. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  746. package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  747. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  748. package/.output/server/node_modules/unhead/dist/shared/unhead.Chhckluj.mjs +166 -0
  749. package/.output/server/node_modules/unhead/dist/shared/unhead.Ct24BOby.mjs +182 -0
  750. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  751. package/.output/server/node_modules/unhead/dist/shared/unhead._ybhDo-G.mjs +44 -0
  752. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  753. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  754. package/.output/server/node_modules/unhead/package.json +105 -0
  755. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  756. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  757. package/.output/server/node_modules/vue/index.js +7 -0
  758. package/.output/server/node_modules/vue/index.mjs +1 -0
  759. package/.output/server/node_modules/vue/package.json +112 -0
  760. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  761. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  762. package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
  763. package/.output/server/node_modules/webidl-conversions/lib/index.js +450 -0
  764. package/.output/server/node_modules/webidl-conversions/package.json +35 -0
  765. package/.output/server/node_modules/whatwg-url/index.js +27 -0
  766. package/.output/server/node_modules/whatwg-url/lib/Function.js +42 -0
  767. package/.output/server/node_modules/whatwg-url/lib/URL-impl.js +233 -0
  768. package/.output/server/node_modules/whatwg-url/lib/URL.js +499 -0
  769. package/.output/server/node_modules/whatwg-url/lib/URLSearchParams-impl.js +135 -0
  770. package/.output/server/node_modules/whatwg-url/lib/URLSearchParams.js +505 -0
  771. package/.output/server/node_modules/whatwg-url/lib/encoding.js +16 -0
  772. package/.output/server/node_modules/whatwg-url/lib/infra.js +26 -0
  773. package/.output/server/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
  774. package/.output/server/node_modules/whatwg-url/lib/url-state-machine.js +1274 -0
  775. package/.output/server/node_modules/whatwg-url/lib/urlencoded.js +89 -0
  776. package/.output/server/node_modules/whatwg-url/lib/utils.js +190 -0
  777. package/.output/server/node_modules/whatwg-url/package.json +53 -0
  778. package/.output/server/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
  779. package/.output/server/node_modules/zod/index.js +4 -0
  780. package/.output/server/node_modules/zod/package.json +135 -0
  781. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  782. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  783. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  784. package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
  785. package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
  786. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  787. package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
  788. package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
  789. package/.output/server/node_modules/zod/v4/classic/package.json +6 -0
  790. package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
  791. package/.output/server/node_modules/zod/v4/classic/schemas.js +1157 -0
  792. package/.output/server/node_modules/zod/v4/core/api.js +1082 -0
  793. package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
  794. package/.output/server/node_modules/zod/v4/core/core.js +76 -0
  795. package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
  796. package/.output/server/node_modules/zod/v4/core/errors.js +182 -0
  797. package/.output/server/node_modules/zod/v4/core/index.js +16 -0
  798. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  799. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  800. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  801. package/.output/server/node_modules/zod/v4/core/package.json +6 -0
  802. package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
  803. package/.output/server/node_modules/zod/v4/core/regexes.js +133 -0
  804. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  805. package/.output/server/node_modules/zod/v4/core/schemas.js +2093 -0
  806. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +437 -0
  807. package/.output/server/node_modules/zod/v4/core/util.js +651 -0
  808. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  809. package/.output/server/node_modules/zod/v4/index.js +3 -0
  810. package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
  811. package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
  812. package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
  813. package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
  814. package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
  815. package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
  816. package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
  817. package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
  818. package/.output/server/node_modules/zod/v4/locales/en.js +109 -0
  819. package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
  820. package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
  821. package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
  822. package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
  823. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
  824. package/.output/server/node_modules/zod/v4/locales/fr.js +108 -0
  825. package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
  826. package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
  827. package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
  828. package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
  829. package/.output/server/node_modules/zod/v4/locales/index.js +49 -0
  830. package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
  831. package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
  832. package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
  833. package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
  834. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  835. package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
  836. package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
  837. package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
  838. package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
  839. package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
  840. package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
  841. package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
  842. package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
  843. package/.output/server/node_modules/zod/v4/locales/package.json +6 -0
  844. package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
  845. package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
  846. package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
  847. package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
  848. package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
  849. package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
  850. package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
  851. package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
  852. package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
  853. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  854. package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
  855. package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
  856. package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
  857. package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
  858. package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
  859. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
  860. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
  861. package/.output/server/node_modules/zod/v4/package.json +6 -0
  862. package/.output/server/package.json +53 -0
  863. package/README.md +131 -0
  864. package/app/app.vue +7 -0
  865. package/app/assets/css/main.css +2 -0
  866. package/app/components/StudioEditor.vue +114 -0
  867. package/app/components/StudioOutput.vue +43 -0
  868. package/app/components/ZodMongooseStudio.vue +121 -0
  869. package/app/pages/index.vue +3 -0
  870. package/app/plugins/monaco.client.ts +14 -0
  871. package/bin/index.mjs +69 -0
  872. package/nuxt.config.ts +18 -0
  873. package/package.json +49 -0
  874. package/server/api/parse.post.ts +90 -0
  875. package/server/api/resolve.get.ts +38 -0
  876. package/server/middleware/security.ts +40 -0
@@ -0,0 +1,1091 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_OPTIONS = exports.OPTIONS = void 0;
4
+ exports.resolveSRVRecord = resolveSRVRecord;
5
+ exports.parseOptions = parseOptions;
6
+ const dns = require("dns");
7
+ const mongodb_connection_string_url_1 = require("mongodb-connection-string-url");
8
+ const url_1 = require("url");
9
+ const mongo_credentials_1 = require("./cmap/auth/mongo_credentials");
10
+ const providers_1 = require("./cmap/auth/providers");
11
+ const compression_1 = require("./cmap/wire_protocol/compression");
12
+ const encrypter_1 = require("./encrypter");
13
+ const error_1 = require("./error");
14
+ const mongo_client_1 = require("./mongo_client");
15
+ const mongo_logger_1 = require("./mongo_logger");
16
+ const read_concern_1 = require("./read_concern");
17
+ const read_preference_1 = require("./read_preference");
18
+ const monitor_1 = require("./sdam/monitor");
19
+ const utils_1 = require("./utils");
20
+ const write_concern_1 = require("./write_concern");
21
+ const VALID_TXT_RECORDS = ['authSource', 'replicaSet', 'loadBalanced'];
22
+ const LB_SINGLE_HOST_ERROR = 'loadBalanced option only supported with a single host in the URI';
23
+ const LB_REPLICA_SET_ERROR = 'loadBalanced option not supported with a replicaSet option';
24
+ const LB_DIRECT_CONNECTION_ERROR = 'loadBalanced option not supported when directConnection is provided';
25
+ function retryDNSTimeoutFor(api) {
26
+ return async function dnsReqRetryTimeout(lookupAddress) {
27
+ try {
28
+ return await dns.promises[api](lookupAddress);
29
+ }
30
+ catch (firstDNSError) {
31
+ if (firstDNSError.code === dns.TIMEOUT) {
32
+ return await dns.promises[api](lookupAddress);
33
+ }
34
+ else {
35
+ throw firstDNSError;
36
+ }
37
+ }
38
+ };
39
+ }
40
+ const resolveSrv = retryDNSTimeoutFor('resolveSrv');
41
+ const resolveTxt = retryDNSTimeoutFor('resolveTxt');
42
+ /**
43
+ * Lookup a `mongodb+srv` connection string, combine the parts and reparse it as a normal
44
+ * connection string.
45
+ *
46
+ * @param uri - The connection string to parse
47
+ * @param options - Optional user provided connection string options
48
+ */
49
+ async function resolveSRVRecord(options) {
50
+ if (typeof options.srvHost !== 'string') {
51
+ throw new error_1.MongoAPIError('Option "srvHost" must not be empty');
52
+ }
53
+ // Asynchronously start TXT resolution so that we do not have to wait until
54
+ // the SRV record is resolved before starting a second DNS query.
55
+ const lookupAddress = options.srvHost;
56
+ const txtResolutionPromise = resolveTxt(lookupAddress);
57
+ txtResolutionPromise.then(undefined, utils_1.squashError); // rejections will be handled later
58
+ const hostname = `_${options.srvServiceName}._tcp.${lookupAddress}`;
59
+ // Resolve the SRV record and use the result as the list of hosts to connect to.
60
+ const addresses = await resolveSrv(hostname);
61
+ if (addresses.length === 0) {
62
+ throw new error_1.MongoAPIError('No addresses found at host');
63
+ }
64
+ for (const { name } of addresses) {
65
+ (0, utils_1.checkParentDomainMatch)(name, lookupAddress);
66
+ }
67
+ const hostAddresses = addresses.map(r => utils_1.HostAddress.fromString(`${r.name}:${r.port ?? 27017}`));
68
+ validateLoadBalancedOptions(hostAddresses, options, true);
69
+ // Use the result of resolving the TXT record and add options from there if they exist.
70
+ let record;
71
+ try {
72
+ record = await txtResolutionPromise;
73
+ }
74
+ catch (error) {
75
+ if (error.code !== 'ENODATA' && error.code !== 'ENOTFOUND') {
76
+ throw error;
77
+ }
78
+ return hostAddresses;
79
+ }
80
+ if (record.length > 1) {
81
+ throw new error_1.MongoParseError('Multiple text records not allowed');
82
+ }
83
+ const txtRecordOptions = new url_1.URLSearchParams(record[0].join(''));
84
+ const txtRecordOptionKeys = [...txtRecordOptions.keys()];
85
+ if (txtRecordOptionKeys.some(key => !VALID_TXT_RECORDS.includes(key))) {
86
+ throw new error_1.MongoParseError(`Text record may only set any of: ${VALID_TXT_RECORDS.join(', ')}`);
87
+ }
88
+ if (VALID_TXT_RECORDS.some(option => txtRecordOptions.get(option) === '')) {
89
+ throw new error_1.MongoParseError('Cannot have empty URI params in DNS TXT Record');
90
+ }
91
+ const source = txtRecordOptions.get('authSource') ?? undefined;
92
+ const replicaSet = txtRecordOptions.get('replicaSet') ?? undefined;
93
+ const loadBalanced = txtRecordOptions.get('loadBalanced') ?? undefined;
94
+ if (!options.userSpecifiedAuthSource &&
95
+ source &&
96
+ options.credentials &&
97
+ !providers_1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(options.credentials.mechanism)) {
98
+ options.credentials = mongo_credentials_1.MongoCredentials.merge(options.credentials, { source });
99
+ }
100
+ if (!options.userSpecifiedReplicaSet && replicaSet) {
101
+ options.replicaSet = replicaSet;
102
+ }
103
+ if (loadBalanced === 'true') {
104
+ options.loadBalanced = true;
105
+ }
106
+ if (options.replicaSet && options.srvMaxHosts > 0) {
107
+ throw new error_1.MongoParseError('Cannot combine replicaSet option with srvMaxHosts');
108
+ }
109
+ validateLoadBalancedOptions(hostAddresses, options, true);
110
+ return hostAddresses;
111
+ }
112
+ /**
113
+ * Checks if TLS options are valid
114
+ *
115
+ * @param allOptions - All options provided by user or included in default options map
116
+ * @throws MongoAPIError if TLS options are invalid
117
+ */
118
+ function checkTLSOptions(allOptions) {
119
+ if (!allOptions)
120
+ return;
121
+ const check = (a, b) => {
122
+ if (allOptions.has(a) && allOptions.has(b)) {
123
+ throw new error_1.MongoAPIError(`The '${a}' option cannot be used with the '${b}' option`);
124
+ }
125
+ };
126
+ check('tlsInsecure', 'tlsAllowInvalidCertificates');
127
+ check('tlsInsecure', 'tlsAllowInvalidHostnames');
128
+ }
129
+ function getBoolean(name, value) {
130
+ if (typeof value === 'boolean')
131
+ return value;
132
+ switch (value) {
133
+ case 'true':
134
+ return true;
135
+ case 'false':
136
+ return false;
137
+ default:
138
+ throw new error_1.MongoParseError(`${name} must be either "true" or "false"`);
139
+ }
140
+ }
141
+ function getIntFromOptions(name, value) {
142
+ const parsedInt = (0, utils_1.parseInteger)(value);
143
+ if (parsedInt != null) {
144
+ return parsedInt;
145
+ }
146
+ throw new error_1.MongoParseError(`Expected ${name} to be stringified int value, got: ${value}`);
147
+ }
148
+ function getUIntFromOptions(name, value) {
149
+ const parsedValue = getIntFromOptions(name, value);
150
+ if (parsedValue < 0) {
151
+ throw new error_1.MongoParseError(`${name} can only be a positive int value, got: ${value}`);
152
+ }
153
+ return parsedValue;
154
+ }
155
+ function* entriesFromString(value) {
156
+ if (value === '') {
157
+ return;
158
+ }
159
+ const keyValuePairs = value.split(',');
160
+ for (const keyValue of keyValuePairs) {
161
+ const [key, value] = keyValue.split(/:(.*)/);
162
+ if (value == null) {
163
+ throw new error_1.MongoParseError('Cannot have undefined values in key value pairs');
164
+ }
165
+ yield [key, value];
166
+ }
167
+ }
168
+ class CaseInsensitiveMap extends Map {
169
+ constructor(entries = []) {
170
+ super(entries.map(([k, v]) => [k.toLowerCase(), v]));
171
+ }
172
+ has(k) {
173
+ return super.has(k.toLowerCase());
174
+ }
175
+ get(k) {
176
+ return super.get(k.toLowerCase());
177
+ }
178
+ set(k, v) {
179
+ return super.set(k.toLowerCase(), v);
180
+ }
181
+ delete(k) {
182
+ return super.delete(k.toLowerCase());
183
+ }
184
+ }
185
+ function parseOptions(uri, mongoClient = undefined, options = {}) {
186
+ if (mongoClient != null && !(mongoClient instanceof mongo_client_1.MongoClient)) {
187
+ options = mongoClient;
188
+ mongoClient = undefined;
189
+ }
190
+ // validate BSONOptions
191
+ if (options.useBigInt64 && typeof options.promoteLongs === 'boolean' && !options.promoteLongs) {
192
+ throw new error_1.MongoAPIError('Must request either bigint or Long for int64 deserialization');
193
+ }
194
+ if (options.useBigInt64 && typeof options.promoteValues === 'boolean' && !options.promoteValues) {
195
+ throw new error_1.MongoAPIError('Must request either bigint or Long for int64 deserialization');
196
+ }
197
+ const url = new mongodb_connection_string_url_1.default(uri);
198
+ const { hosts, isSRV } = url;
199
+ const mongoOptions = Object.create(null);
200
+ mongoOptions.hosts = isSRV ? [] : hosts.map(utils_1.HostAddress.fromString);
201
+ const urlOptions = new CaseInsensitiveMap();
202
+ if (url.pathname !== '/' && url.pathname !== '') {
203
+ const dbName = decodeURIComponent(url.pathname[0] === '/' ? url.pathname.slice(1) : url.pathname);
204
+ if (dbName) {
205
+ urlOptions.set('dbName', [dbName]);
206
+ }
207
+ }
208
+ if (url.username !== '') {
209
+ const auth = {
210
+ username: decodeURIComponent(url.username)
211
+ };
212
+ if (typeof url.password === 'string') {
213
+ auth.password = decodeURIComponent(url.password);
214
+ }
215
+ urlOptions.set('auth', [auth]);
216
+ }
217
+ for (const key of url.searchParams.keys()) {
218
+ const values = url.searchParams.getAll(key);
219
+ const isReadPreferenceTags = /readPreferenceTags/i.test(key);
220
+ if (!isReadPreferenceTags && values.length > 1) {
221
+ throw new error_1.MongoInvalidArgumentError(`URI option "${key}" cannot appear more than once in the connection string`);
222
+ }
223
+ if (!isReadPreferenceTags && values.includes('')) {
224
+ throw new error_1.MongoAPIError(`URI option "${key}" cannot be specified with no value`);
225
+ }
226
+ if (!urlOptions.has(key)) {
227
+ urlOptions.set(key, values);
228
+ }
229
+ }
230
+ const objectOptions = new CaseInsensitiveMap(Object.entries(options).filter(([, v]) => v != null));
231
+ // Validate options that can only be provided by one of uri or object
232
+ if (urlOptions.has('serverApi')) {
233
+ throw new error_1.MongoParseError('URI cannot contain `serverApi`, it can only be passed to the client');
234
+ }
235
+ const uriMechanismProperties = urlOptions.get('authMechanismProperties');
236
+ if (uriMechanismProperties) {
237
+ for (const property of uriMechanismProperties) {
238
+ if (/(^|,)ALLOWED_HOSTS:/.test(property)) {
239
+ throw new error_1.MongoParseError('Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.');
240
+ }
241
+ }
242
+ }
243
+ if (objectOptions.has('loadBalanced')) {
244
+ throw new error_1.MongoParseError('loadBalanced is only a valid option in the URI');
245
+ }
246
+ // All option collection
247
+ const allProvidedOptions = new CaseInsensitiveMap();
248
+ const allProvidedKeys = new Set([...urlOptions.keys(), ...objectOptions.keys()]);
249
+ for (const key of allProvidedKeys) {
250
+ const values = [];
251
+ const objectOptionValue = objectOptions.get(key);
252
+ if (objectOptionValue != null) {
253
+ values.push(objectOptionValue);
254
+ }
255
+ const urlValues = urlOptions.get(key) ?? [];
256
+ values.push(...urlValues);
257
+ allProvidedOptions.set(key, values);
258
+ }
259
+ if (allProvidedOptions.has('tls') || allProvidedOptions.has('ssl')) {
260
+ const tlsAndSslOpts = (allProvidedOptions.get('tls') || [])
261
+ .concat(allProvidedOptions.get('ssl') || [])
262
+ .map(getBoolean.bind(null, 'tls/ssl'));
263
+ if (new Set(tlsAndSslOpts).size !== 1) {
264
+ throw new error_1.MongoParseError('All values of tls/ssl must be the same.');
265
+ }
266
+ }
267
+ checkTLSOptions(allProvidedOptions);
268
+ const unsupportedOptions = (0, utils_1.setDifference)(allProvidedKeys, Array.from(Object.keys(exports.OPTIONS)).map(s => s.toLowerCase()));
269
+ if (unsupportedOptions.size !== 0) {
270
+ const optionWord = unsupportedOptions.size > 1 ? 'options' : 'option';
271
+ const isOrAre = unsupportedOptions.size > 1 ? 'are' : 'is';
272
+ throw new error_1.MongoParseError(`${optionWord} ${Array.from(unsupportedOptions).join(', ')} ${isOrAre} not supported`);
273
+ }
274
+ // Option parsing and setting
275
+ for (const [key, descriptor] of Object.entries(exports.OPTIONS)) {
276
+ const values = allProvidedOptions.get(key);
277
+ if (!values || values.length === 0) {
278
+ if (exports.DEFAULT_OPTIONS.has(key)) {
279
+ setOption(mongoOptions, key, descriptor, [exports.DEFAULT_OPTIONS.get(key)]);
280
+ }
281
+ }
282
+ else {
283
+ const { deprecated } = descriptor;
284
+ if (deprecated) {
285
+ const deprecatedMsg = typeof deprecated === 'string' ? `: ${deprecated}` : '';
286
+ (0, utils_1.emitWarning)(`${key} is a deprecated option${deprecatedMsg}`);
287
+ }
288
+ setOption(mongoOptions, key, descriptor, values);
289
+ }
290
+ }
291
+ if (mongoOptions.credentials) {
292
+ const isGssapi = mongoOptions.credentials.mechanism === providers_1.AuthMechanism.MONGODB_GSSAPI;
293
+ const isX509 = mongoOptions.credentials.mechanism === providers_1.AuthMechanism.MONGODB_X509;
294
+ const isAws = mongoOptions.credentials.mechanism === providers_1.AuthMechanism.MONGODB_AWS;
295
+ const isOidc = mongoOptions.credentials.mechanism === providers_1.AuthMechanism.MONGODB_OIDC;
296
+ if ((isGssapi || isX509) &&
297
+ allProvidedOptions.has('authSource') &&
298
+ mongoOptions.credentials.source !== '$external') {
299
+ // If authSource was explicitly given and its incorrect, we error
300
+ throw new error_1.MongoParseError(`authMechanism ${mongoOptions.credentials.mechanism} requires an authSource of '$external'`);
301
+ }
302
+ if (!(isGssapi || isX509 || isAws || isOidc) &&
303
+ mongoOptions.dbName &&
304
+ !allProvidedOptions.has('authSource')) {
305
+ // inherit the dbName unless GSSAPI or X509, then silently ignore dbName
306
+ // and there was no specific authSource given
307
+ mongoOptions.credentials = mongo_credentials_1.MongoCredentials.merge(mongoOptions.credentials, {
308
+ source: mongoOptions.dbName
309
+ });
310
+ }
311
+ if (isAws && mongoOptions.credentials.username && !mongoOptions.credentials.password) {
312
+ throw new error_1.MongoMissingCredentialsError(`When using ${mongoOptions.credentials.mechanism} password must be set when a username is specified`);
313
+ }
314
+ mongoOptions.credentials.validate();
315
+ // Check if the only auth related option provided was authSource, if so we can remove credentials
316
+ if (mongoOptions.credentials.password === '' &&
317
+ mongoOptions.credentials.username === '' &&
318
+ mongoOptions.credentials.mechanism === providers_1.AuthMechanism.MONGODB_DEFAULT &&
319
+ Object.keys(mongoOptions.credentials.mechanismProperties).length === 0) {
320
+ delete mongoOptions.credentials;
321
+ }
322
+ }
323
+ if (!mongoOptions.dbName) {
324
+ // dbName default is applied here because of the credential validation above
325
+ mongoOptions.dbName = 'test';
326
+ }
327
+ validateLoadBalancedOptions(hosts, mongoOptions, isSRV);
328
+ if (mongoClient && mongoOptions.autoEncryption) {
329
+ encrypter_1.Encrypter.checkForMongoCrypt();
330
+ mongoOptions.encrypter = new encrypter_1.Encrypter(mongoClient, uri, options);
331
+ mongoOptions.autoEncrypter = mongoOptions.encrypter.autoEncrypter;
332
+ }
333
+ // Potential SRV Overrides and SRV connection string validations
334
+ mongoOptions.userSpecifiedAuthSource =
335
+ objectOptions.has('authSource') || urlOptions.has('authSource');
336
+ mongoOptions.userSpecifiedReplicaSet =
337
+ objectOptions.has('replicaSet') || urlOptions.has('replicaSet');
338
+ if (isSRV) {
339
+ // SRV Record is resolved upon connecting
340
+ mongoOptions.srvHost = hosts[0];
341
+ if (mongoOptions.directConnection) {
342
+ throw new error_1.MongoAPIError('SRV URI does not support directConnection');
343
+ }
344
+ if (mongoOptions.srvMaxHosts > 0 && typeof mongoOptions.replicaSet === 'string') {
345
+ throw new error_1.MongoParseError('Cannot use srvMaxHosts option with replicaSet');
346
+ }
347
+ // SRV turns on TLS by default, but users can override and turn it off
348
+ const noUserSpecifiedTLS = !objectOptions.has('tls') && !urlOptions.has('tls');
349
+ const noUserSpecifiedSSL = !objectOptions.has('ssl') && !urlOptions.has('ssl');
350
+ if (noUserSpecifiedTLS && noUserSpecifiedSSL) {
351
+ mongoOptions.tls = true;
352
+ }
353
+ }
354
+ else {
355
+ const userSpecifiedSrvOptions = urlOptions.has('srvMaxHosts') ||
356
+ objectOptions.has('srvMaxHosts') ||
357
+ urlOptions.has('srvServiceName') ||
358
+ objectOptions.has('srvServiceName');
359
+ if (userSpecifiedSrvOptions) {
360
+ throw new error_1.MongoParseError('Cannot use srvMaxHosts or srvServiceName with a non-srv connection string');
361
+ }
362
+ }
363
+ if (mongoOptions.directConnection && mongoOptions.hosts.length !== 1) {
364
+ throw new error_1.MongoParseError('directConnection option requires exactly one host');
365
+ }
366
+ if (!mongoOptions.proxyHost &&
367
+ (mongoOptions.proxyPort || mongoOptions.proxyUsername || mongoOptions.proxyPassword)) {
368
+ throw new error_1.MongoParseError('Must specify proxyHost if other proxy options are passed');
369
+ }
370
+ if ((mongoOptions.proxyUsername && !mongoOptions.proxyPassword) ||
371
+ (!mongoOptions.proxyUsername && mongoOptions.proxyPassword)) {
372
+ throw new error_1.MongoParseError('Can only specify both of proxy username/password or neither');
373
+ }
374
+ const proxyOptions = ['proxyHost', 'proxyPort', 'proxyUsername', 'proxyPassword'].map(key => urlOptions.get(key) ?? []);
375
+ if (proxyOptions.some(options => options.length > 1)) {
376
+ throw new error_1.MongoParseError('Proxy options cannot be specified multiple times in the connection string');
377
+ }
378
+ mongoOptions.mongoLoggerOptions = mongo_logger_1.MongoLogger.resolveOptions({
379
+ MONGODB_LOG_COMMAND: process.env.MONGODB_LOG_COMMAND,
380
+ MONGODB_LOG_TOPOLOGY: process.env.MONGODB_LOG_TOPOLOGY,
381
+ MONGODB_LOG_SERVER_SELECTION: process.env.MONGODB_LOG_SERVER_SELECTION,
382
+ MONGODB_LOG_CONNECTION: process.env.MONGODB_LOG_CONNECTION,
383
+ MONGODB_LOG_CLIENT: process.env.MONGODB_LOG_CLIENT,
384
+ MONGODB_LOG_ALL: process.env.MONGODB_LOG_ALL,
385
+ MONGODB_LOG_MAX_DOCUMENT_LENGTH: process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,
386
+ MONGODB_LOG_PATH: process.env.MONGODB_LOG_PATH
387
+ }, {
388
+ mongodbLogPath: mongoOptions.mongodbLogPath,
389
+ mongodbLogComponentSeverities: mongoOptions.mongodbLogComponentSeverities,
390
+ mongodbLogMaxDocumentLength: mongoOptions.mongodbLogMaxDocumentLength
391
+ });
392
+ return mongoOptions;
393
+ }
394
+ /**
395
+ * #### Throws if LB mode is true:
396
+ * - hosts contains more than one host
397
+ * - there is a replicaSet name set
398
+ * - directConnection is set
399
+ * - if srvMaxHosts is used when an srv connection string is passed in
400
+ *
401
+ * @throws MongoParseError
402
+ */
403
+ function validateLoadBalancedOptions(hosts, mongoOptions, isSrv) {
404
+ if (mongoOptions.loadBalanced) {
405
+ if (hosts.length > 1) {
406
+ throw new error_1.MongoParseError(LB_SINGLE_HOST_ERROR);
407
+ }
408
+ if (mongoOptions.replicaSet) {
409
+ throw new error_1.MongoParseError(LB_REPLICA_SET_ERROR);
410
+ }
411
+ if (mongoOptions.directConnection) {
412
+ throw new error_1.MongoParseError(LB_DIRECT_CONNECTION_ERROR);
413
+ }
414
+ if (isSrv && mongoOptions.srvMaxHosts > 0) {
415
+ throw new error_1.MongoParseError('Cannot limit srv hosts with loadBalanced enabled');
416
+ }
417
+ }
418
+ return;
419
+ }
420
+ function setOption(mongoOptions, key, descriptor, values) {
421
+ const { target, type, transform } = descriptor;
422
+ const name = target ?? key;
423
+ switch (type) {
424
+ case 'boolean':
425
+ mongoOptions[name] = getBoolean(name, values[0]);
426
+ break;
427
+ case 'int':
428
+ mongoOptions[name] = getIntFromOptions(name, values[0]);
429
+ break;
430
+ case 'uint':
431
+ mongoOptions[name] = getUIntFromOptions(name, values[0]);
432
+ break;
433
+ case 'string':
434
+ if (values[0] == null) {
435
+ break;
436
+ }
437
+ // The value should always be a string here, but since the array is typed as unknown
438
+ // there still needs to be an explicit cast.
439
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
440
+ mongoOptions[name] = String(values[0]);
441
+ break;
442
+ case 'record':
443
+ if (!(0, utils_1.isRecord)(values[0])) {
444
+ throw new error_1.MongoParseError(`${name} must be an object`);
445
+ }
446
+ mongoOptions[name] = values[0];
447
+ break;
448
+ case 'any':
449
+ mongoOptions[name] = values[0];
450
+ break;
451
+ default: {
452
+ if (!transform) {
453
+ throw new error_1.MongoParseError('Descriptors missing a type must define a transform');
454
+ }
455
+ const transformValue = transform({ name, options: mongoOptions, values });
456
+ mongoOptions[name] = transformValue;
457
+ break;
458
+ }
459
+ }
460
+ }
461
+ exports.OPTIONS = {
462
+ appName: {
463
+ type: 'string'
464
+ },
465
+ auth: {
466
+ target: 'credentials',
467
+ transform({ name, options, values: [value] }) {
468
+ if (!(0, utils_1.isRecord)(value, ['username', 'password'])) {
469
+ throw new error_1.MongoParseError(`${name} must be an object with 'username' and 'password' properties`);
470
+ }
471
+ return mongo_credentials_1.MongoCredentials.merge(options.credentials, {
472
+ username: value.username,
473
+ password: value.password
474
+ });
475
+ }
476
+ },
477
+ authMechanism: {
478
+ target: 'credentials',
479
+ transform({ options, values: [value] }) {
480
+ const mechanisms = Object.values(providers_1.AuthMechanism);
481
+ const [mechanism] = mechanisms.filter(m => m.match(RegExp(String.raw `\b${value}\b`, 'i')));
482
+ if (!mechanism) {
483
+ throw new error_1.MongoParseError(`authMechanism one of ${mechanisms}, got ${value}`);
484
+ }
485
+ let source = options.credentials?.source;
486
+ if (mechanism === providers_1.AuthMechanism.MONGODB_PLAIN ||
487
+ providers_1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(mechanism)) {
488
+ // some mechanisms have '$external' as the Auth Source
489
+ source = '$external';
490
+ }
491
+ let password = options.credentials?.password;
492
+ if (mechanism === providers_1.AuthMechanism.MONGODB_X509 && password === '') {
493
+ password = undefined;
494
+ }
495
+ return mongo_credentials_1.MongoCredentials.merge(options.credentials, {
496
+ mechanism,
497
+ source,
498
+ password
499
+ });
500
+ }
501
+ },
502
+ // Note that if the authMechanismProperties contain a TOKEN_RESOURCE that has a
503
+ // comma in it, it MUST be supplied as a MongoClient option instead of in the
504
+ // connection string.
505
+ authMechanismProperties: {
506
+ target: 'credentials',
507
+ transform({ options, values }) {
508
+ // We can have a combination of options passed in the URI and options passed
509
+ // as an object to the MongoClient. So we must transform the string options
510
+ // as well as merge them together with a potentially provided object.
511
+ let mechanismProperties = Object.create(null);
512
+ for (const optionValue of values) {
513
+ if (typeof optionValue === 'string') {
514
+ for (const [key, value] of entriesFromString(optionValue)) {
515
+ try {
516
+ mechanismProperties[key] = getBoolean(key, value);
517
+ }
518
+ catch {
519
+ mechanismProperties[key] = value;
520
+ }
521
+ }
522
+ }
523
+ else {
524
+ if (!(0, utils_1.isRecord)(optionValue)) {
525
+ throw new error_1.MongoParseError('AuthMechanismProperties must be an object');
526
+ }
527
+ mechanismProperties = { ...optionValue };
528
+ }
529
+ }
530
+ return mongo_credentials_1.MongoCredentials.merge(options.credentials, {
531
+ mechanismProperties
532
+ });
533
+ }
534
+ },
535
+ authSource: {
536
+ target: 'credentials',
537
+ transform({ options, values: [value] }) {
538
+ const source = String(value);
539
+ return mongo_credentials_1.MongoCredentials.merge(options.credentials, { source });
540
+ }
541
+ },
542
+ autoEncryption: {
543
+ type: 'record'
544
+ },
545
+ autoSelectFamily: {
546
+ type: 'boolean',
547
+ default: true
548
+ },
549
+ autoSelectFamilyAttemptTimeout: {
550
+ type: 'uint'
551
+ },
552
+ bsonRegExp: {
553
+ type: 'boolean'
554
+ },
555
+ serverApi: {
556
+ target: 'serverApi',
557
+ transform({ values: [version] }) {
558
+ const serverApiToValidate = typeof version === 'string' ? { version } : version;
559
+ const versionToValidate = serverApiToValidate && serverApiToValidate.version;
560
+ if (!versionToValidate) {
561
+ throw new error_1.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(mongo_client_1.ServerApiVersion).join('", "')}"]`);
562
+ }
563
+ if (!Object.values(mongo_client_1.ServerApiVersion).some(v => v === versionToValidate)) {
564
+ throw new error_1.MongoParseError(`Invalid server API version=${versionToValidate}; must be in the following enum: ["${Object.values(mongo_client_1.ServerApiVersion).join('", "')}"]`);
565
+ }
566
+ return serverApiToValidate;
567
+ }
568
+ },
569
+ checkKeys: {
570
+ type: 'boolean'
571
+ },
572
+ compressors: {
573
+ default: 'none',
574
+ target: 'compressors',
575
+ transform({ values }) {
576
+ const compressionList = new Set();
577
+ for (const compVal of values) {
578
+ const compValArray = typeof compVal === 'string' ? compVal.split(',') : compVal;
579
+ if (!Array.isArray(compValArray)) {
580
+ throw new error_1.MongoInvalidArgumentError('compressors must be an array or a comma-delimited list of strings');
581
+ }
582
+ for (const c of compValArray) {
583
+ if (Object.keys(compression_1.Compressor).includes(String(c))) {
584
+ compressionList.add(String(c));
585
+ }
586
+ else {
587
+ throw new error_1.MongoInvalidArgumentError(`${c} is not a valid compression mechanism. Must be one of: ${Object.keys(compression_1.Compressor)}.`);
588
+ }
589
+ }
590
+ }
591
+ return [...compressionList];
592
+ }
593
+ },
594
+ connectTimeoutMS: {
595
+ default: 30000,
596
+ type: 'uint'
597
+ },
598
+ dbName: {
599
+ type: 'string'
600
+ },
601
+ directConnection: {
602
+ default: false,
603
+ type: 'boolean'
604
+ },
605
+ driverInfo: {
606
+ default: {},
607
+ type: 'record'
608
+ },
609
+ enableUtf8Validation: { type: 'boolean', default: true },
610
+ family: {
611
+ transform({ name, values: [value] }) {
612
+ const transformValue = getIntFromOptions(name, value);
613
+ if (transformValue === 4 || transformValue === 6) {
614
+ return transformValue;
615
+ }
616
+ throw new error_1.MongoParseError(`Option 'family' must be 4 or 6 got ${transformValue}.`);
617
+ }
618
+ },
619
+ fieldsAsRaw: {
620
+ type: 'record'
621
+ },
622
+ forceServerObjectId: {
623
+ default: false,
624
+ type: 'boolean'
625
+ },
626
+ fsync: {
627
+ deprecated: 'Please use journal instead',
628
+ target: 'writeConcern',
629
+ transform({ name, options, values: [value] }) {
630
+ const wc = write_concern_1.WriteConcern.fromOptions({
631
+ writeConcern: {
632
+ ...options.writeConcern,
633
+ fsync: getBoolean(name, value)
634
+ }
635
+ });
636
+ if (!wc)
637
+ throw new error_1.MongoParseError(`Unable to make a writeConcern from fsync=${value}`);
638
+ return wc;
639
+ }
640
+ },
641
+ heartbeatFrequencyMS: {
642
+ default: 10000,
643
+ type: 'uint'
644
+ },
645
+ ignoreUndefined: {
646
+ type: 'boolean'
647
+ },
648
+ j: {
649
+ deprecated: 'Please use journal instead',
650
+ target: 'writeConcern',
651
+ transform({ name, options, values: [value] }) {
652
+ const wc = write_concern_1.WriteConcern.fromOptions({
653
+ writeConcern: {
654
+ ...options.writeConcern,
655
+ journal: getBoolean(name, value)
656
+ }
657
+ });
658
+ if (!wc)
659
+ throw new error_1.MongoParseError(`Unable to make a writeConcern from journal=${value}`);
660
+ return wc;
661
+ }
662
+ },
663
+ journal: {
664
+ target: 'writeConcern',
665
+ transform({ name, options, values: [value] }) {
666
+ const wc = write_concern_1.WriteConcern.fromOptions({
667
+ writeConcern: {
668
+ ...options.writeConcern,
669
+ journal: getBoolean(name, value)
670
+ }
671
+ });
672
+ if (!wc)
673
+ throw new error_1.MongoParseError(`Unable to make a writeConcern from journal=${value}`);
674
+ return wc;
675
+ }
676
+ },
677
+ loadBalanced: {
678
+ default: false,
679
+ type: 'boolean'
680
+ },
681
+ localThresholdMS: {
682
+ default: 15,
683
+ type: 'uint'
684
+ },
685
+ maxConnecting: {
686
+ default: 2,
687
+ transform({ name, values: [value] }) {
688
+ const maxConnecting = getUIntFromOptions(name, value);
689
+ if (maxConnecting === 0) {
690
+ throw new error_1.MongoInvalidArgumentError('maxConnecting must be > 0 if specified');
691
+ }
692
+ return maxConnecting;
693
+ }
694
+ },
695
+ maxIdleTimeMS: {
696
+ default: 0,
697
+ type: 'uint'
698
+ },
699
+ maxPoolSize: {
700
+ default: 100,
701
+ type: 'uint'
702
+ },
703
+ maxStalenessSeconds: {
704
+ target: 'readPreference',
705
+ transform({ name, options, values: [value] }) {
706
+ const maxStalenessSeconds = getUIntFromOptions(name, value);
707
+ if (options.readPreference) {
708
+ return read_preference_1.ReadPreference.fromOptions({
709
+ readPreference: { ...options.readPreference, maxStalenessSeconds }
710
+ });
711
+ }
712
+ else {
713
+ return new read_preference_1.ReadPreference('secondary', undefined, { maxStalenessSeconds });
714
+ }
715
+ }
716
+ },
717
+ minInternalBufferSize: {
718
+ type: 'uint'
719
+ },
720
+ minPoolSize: {
721
+ default: 0,
722
+ type: 'uint'
723
+ },
724
+ minHeartbeatFrequencyMS: {
725
+ default: 500,
726
+ type: 'uint'
727
+ },
728
+ monitorCommands: {
729
+ default: false,
730
+ type: 'boolean'
731
+ },
732
+ name: {
733
+ target: 'driverInfo',
734
+ transform({ values: [value], options }) {
735
+ return { ...options.driverInfo, name: String(value) };
736
+ }
737
+ },
738
+ noDelay: {
739
+ default: true,
740
+ type: 'boolean'
741
+ },
742
+ pkFactory: {
743
+ default: utils_1.DEFAULT_PK_FACTORY,
744
+ transform({ values: [value] }) {
745
+ if ((0, utils_1.isRecord)(value, ['createPk']) && typeof value.createPk === 'function') {
746
+ return value;
747
+ }
748
+ throw new error_1.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${value}`);
749
+ }
750
+ },
751
+ promoteBuffers: {
752
+ type: 'boolean'
753
+ },
754
+ promoteLongs: {
755
+ type: 'boolean'
756
+ },
757
+ promoteValues: {
758
+ type: 'boolean'
759
+ },
760
+ useBigInt64: {
761
+ type: 'boolean'
762
+ },
763
+ proxyHost: {
764
+ type: 'string'
765
+ },
766
+ proxyPassword: {
767
+ type: 'string'
768
+ },
769
+ proxyPort: {
770
+ type: 'uint'
771
+ },
772
+ proxyUsername: {
773
+ type: 'string'
774
+ },
775
+ raw: {
776
+ default: false,
777
+ type: 'boolean'
778
+ },
779
+ readConcern: {
780
+ transform({ values: [value], options }) {
781
+ if (value instanceof read_concern_1.ReadConcern || (0, utils_1.isRecord)(value, ['level'])) {
782
+ return read_concern_1.ReadConcern.fromOptions({ ...options.readConcern, ...value });
783
+ }
784
+ throw new error_1.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(value)}`);
785
+ }
786
+ },
787
+ readConcernLevel: {
788
+ target: 'readConcern',
789
+ transform({ values: [level], options }) {
790
+ return read_concern_1.ReadConcern.fromOptions({
791
+ ...options.readConcern,
792
+ level: level
793
+ });
794
+ }
795
+ },
796
+ readPreference: {
797
+ default: read_preference_1.ReadPreference.primary,
798
+ transform({ values: [value], options }) {
799
+ if (value instanceof read_preference_1.ReadPreference) {
800
+ return read_preference_1.ReadPreference.fromOptions({
801
+ readPreference: { ...options.readPreference, ...value },
802
+ ...value
803
+ });
804
+ }
805
+ if ((0, utils_1.isRecord)(value, ['mode'])) {
806
+ const rp = read_preference_1.ReadPreference.fromOptions({
807
+ readPreference: { ...options.readPreference, ...value },
808
+ ...value
809
+ });
810
+ if (rp)
811
+ return rp;
812
+ else
813
+ throw new error_1.MongoParseError(`Cannot make read preference from ${JSON.stringify(value)}`);
814
+ }
815
+ if (typeof value === 'string') {
816
+ const rpOpts = {
817
+ hedge: options.readPreference?.hedge,
818
+ maxStalenessSeconds: options.readPreference?.maxStalenessSeconds
819
+ };
820
+ return new read_preference_1.ReadPreference(value, options.readPreference?.tags, rpOpts);
821
+ }
822
+ throw new error_1.MongoParseError(`Unknown ReadPreference value: ${value}`);
823
+ }
824
+ },
825
+ readPreferenceTags: {
826
+ target: 'readPreference',
827
+ transform({ values, options }) {
828
+ const tags = Array.isArray(values[0])
829
+ ? values[0]
830
+ : values;
831
+ const readPreferenceTags = [];
832
+ for (const tag of tags) {
833
+ const readPreferenceTag = Object.create(null);
834
+ if (typeof tag === 'string') {
835
+ for (const [k, v] of entriesFromString(tag)) {
836
+ readPreferenceTag[k] = v;
837
+ }
838
+ }
839
+ if ((0, utils_1.isRecord)(tag)) {
840
+ for (const [k, v] of Object.entries(tag)) {
841
+ readPreferenceTag[k] = v;
842
+ }
843
+ }
844
+ readPreferenceTags.push(readPreferenceTag);
845
+ }
846
+ return read_preference_1.ReadPreference.fromOptions({
847
+ readPreference: options.readPreference,
848
+ readPreferenceTags
849
+ });
850
+ }
851
+ },
852
+ replicaSet: {
853
+ type: 'string'
854
+ },
855
+ retryReads: {
856
+ default: true,
857
+ type: 'boolean'
858
+ },
859
+ retryWrites: {
860
+ default: true,
861
+ type: 'boolean'
862
+ },
863
+ serializeFunctions: {
864
+ type: 'boolean'
865
+ },
866
+ serverMonitoringMode: {
867
+ default: 'auto',
868
+ transform({ values: [value] }) {
869
+ if (!Object.values(monitor_1.ServerMonitoringMode).includes(value)) {
870
+ throw new error_1.MongoParseError('serverMonitoringMode must be one of `auto`, `poll`, or `stream`');
871
+ }
872
+ return value;
873
+ }
874
+ },
875
+ serverSelectionTimeoutMS: {
876
+ default: 30000,
877
+ type: 'uint'
878
+ },
879
+ servername: {
880
+ type: 'string'
881
+ },
882
+ socketTimeoutMS: {
883
+ // TODO(NODE-6491): deprecated: 'Please use timeoutMS instead',
884
+ default: 0,
885
+ type: 'uint'
886
+ },
887
+ srvMaxHosts: {
888
+ type: 'uint',
889
+ default: 0
890
+ },
891
+ srvServiceName: {
892
+ type: 'string',
893
+ default: 'mongodb'
894
+ },
895
+ ssl: {
896
+ target: 'tls',
897
+ type: 'boolean'
898
+ },
899
+ timeoutMS: {
900
+ type: 'uint'
901
+ },
902
+ tls: {
903
+ type: 'boolean'
904
+ },
905
+ tlsAllowInvalidCertificates: {
906
+ target: 'rejectUnauthorized',
907
+ transform({ name, values: [value] }) {
908
+ // allowInvalidCertificates is the inverse of rejectUnauthorized
909
+ return !getBoolean(name, value);
910
+ }
911
+ },
912
+ tlsAllowInvalidHostnames: {
913
+ target: 'checkServerIdentity',
914
+ transform({ name, values: [value] }) {
915
+ // tlsAllowInvalidHostnames means setting the checkServerIdentity function to a noop
916
+ return getBoolean(name, value) ? () => undefined : undefined;
917
+ }
918
+ },
919
+ tlsCAFile: {
920
+ type: 'string'
921
+ },
922
+ tlsCRLFile: {
923
+ type: 'string'
924
+ },
925
+ tlsCertificateKeyFile: {
926
+ type: 'string'
927
+ },
928
+ tlsCertificateKeyFilePassword: {
929
+ target: 'passphrase',
930
+ type: 'any'
931
+ },
932
+ tlsInsecure: {
933
+ transform({ name, options, values: [value] }) {
934
+ const tlsInsecure = getBoolean(name, value);
935
+ if (tlsInsecure) {
936
+ options.checkServerIdentity = () => undefined;
937
+ options.rejectUnauthorized = false;
938
+ }
939
+ else {
940
+ options.checkServerIdentity = options.tlsAllowInvalidHostnames
941
+ ? () => undefined
942
+ : undefined;
943
+ options.rejectUnauthorized = options.tlsAllowInvalidCertificates ? false : true;
944
+ }
945
+ return tlsInsecure;
946
+ }
947
+ },
948
+ w: {
949
+ target: 'writeConcern',
950
+ transform({ values: [value], options }) {
951
+ return write_concern_1.WriteConcern.fromOptions({ writeConcern: { ...options.writeConcern, w: value } });
952
+ }
953
+ },
954
+ waitQueueTimeoutMS: {
955
+ // TODO(NODE-6491): deprecated: 'Please use timeoutMS instead',
956
+ default: 0,
957
+ type: 'uint'
958
+ },
959
+ writeConcern: {
960
+ target: 'writeConcern',
961
+ transform({ values: [value], options }) {
962
+ if ((0, utils_1.isRecord)(value) || value instanceof write_concern_1.WriteConcern) {
963
+ return write_concern_1.WriteConcern.fromOptions({
964
+ writeConcern: {
965
+ ...options.writeConcern,
966
+ ...value
967
+ }
968
+ });
969
+ }
970
+ else if (value === 'majority' || typeof value === 'number') {
971
+ return write_concern_1.WriteConcern.fromOptions({
972
+ writeConcern: {
973
+ ...options.writeConcern,
974
+ w: value
975
+ }
976
+ });
977
+ }
978
+ throw new error_1.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(value)}`);
979
+ }
980
+ },
981
+ wtimeout: {
982
+ deprecated: 'Please use wtimeoutMS instead',
983
+ target: 'writeConcern',
984
+ transform({ values: [value], options }) {
985
+ const wc = write_concern_1.WriteConcern.fromOptions({
986
+ writeConcern: {
987
+ ...options.writeConcern,
988
+ wtimeout: getUIntFromOptions('wtimeout', value)
989
+ }
990
+ });
991
+ if (wc)
992
+ return wc;
993
+ throw new error_1.MongoParseError(`Cannot make WriteConcern from wtimeout`);
994
+ }
995
+ },
996
+ wtimeoutMS: {
997
+ target: 'writeConcern',
998
+ transform({ values: [value], options }) {
999
+ const wc = write_concern_1.WriteConcern.fromOptions({
1000
+ writeConcern: {
1001
+ ...options.writeConcern,
1002
+ wtimeoutMS: getUIntFromOptions('wtimeoutMS', value)
1003
+ }
1004
+ });
1005
+ if (wc)
1006
+ return wc;
1007
+ throw new error_1.MongoParseError(`Cannot make WriteConcern from wtimeout`);
1008
+ }
1009
+ },
1010
+ zlibCompressionLevel: {
1011
+ default: 0,
1012
+ type: 'int'
1013
+ },
1014
+ mongodbLogPath: {
1015
+ transform({ values: [value] }) {
1016
+ if (!((typeof value === 'string' && ['stderr', 'stdout'].includes(value)) ||
1017
+ (value &&
1018
+ typeof value === 'object' &&
1019
+ 'write' in value &&
1020
+ typeof value.write === 'function'))) {
1021
+ throw new error_1.MongoAPIError(`Option 'mongodbLogPath' must be of type 'stderr' | 'stdout' | MongoDBLogWritable`);
1022
+ }
1023
+ return value;
1024
+ }
1025
+ },
1026
+ mongodbLogComponentSeverities: {
1027
+ transform({ values: [value] }) {
1028
+ if (typeof value !== 'object' || !value) {
1029
+ throw new error_1.MongoAPIError(`Option 'mongodbLogComponentSeverities' must be a non-null object`);
1030
+ }
1031
+ for (const [k, v] of Object.entries(value)) {
1032
+ if (typeof v !== 'string' || typeof k !== 'string') {
1033
+ throw new error_1.MongoAPIError(`User input for option 'mongodbLogComponentSeverities' object cannot include a non-string key or value`);
1034
+ }
1035
+ if (!Object.values(mongo_logger_1.MongoLoggableComponent).some(val => val === k) && k !== 'default') {
1036
+ throw new error_1.MongoAPIError(`User input for option 'mongodbLogComponentSeverities' contains invalid key: ${k}`);
1037
+ }
1038
+ if (!Object.values(mongo_logger_1.SeverityLevel).some(val => val === v)) {
1039
+ throw new error_1.MongoAPIError(`Option 'mongodbLogComponentSeverities' does not support ${v} as a value for ${k}`);
1040
+ }
1041
+ }
1042
+ return value;
1043
+ }
1044
+ },
1045
+ mongodbLogMaxDocumentLength: { type: 'uint' },
1046
+ // Custom types for modifying core behavior
1047
+ connectionType: { type: 'any' },
1048
+ srvPoller: { type: 'any' },
1049
+ // Accepted Node.js Options
1050
+ allowPartialTrustChain: { type: 'any' },
1051
+ minDHSize: { type: 'any' },
1052
+ pskCallback: { type: 'any' },
1053
+ secureContext: { type: 'any' },
1054
+ enableTrace: { type: 'any' },
1055
+ requestCert: { type: 'any' },
1056
+ rejectUnauthorized: { type: 'any' },
1057
+ checkServerIdentity: { type: 'any' },
1058
+ keepAliveInitialDelay: { type: 'any' },
1059
+ ALPNProtocols: { type: 'any' },
1060
+ SNICallback: { type: 'any' },
1061
+ session: { type: 'any' },
1062
+ requestOCSP: { type: 'any' },
1063
+ localAddress: { type: 'any' },
1064
+ localPort: { type: 'any' },
1065
+ hints: { type: 'any' },
1066
+ lookup: { type: 'any' },
1067
+ ca: { type: 'any' },
1068
+ cert: { type: 'any' },
1069
+ ciphers: { type: 'any' },
1070
+ crl: { type: 'any' },
1071
+ ecdhCurve: { type: 'any' },
1072
+ key: { type: 'any' },
1073
+ passphrase: { type: 'any' },
1074
+ pfx: { type: 'any' },
1075
+ secureProtocol: { type: 'any' },
1076
+ index: { type: 'any' },
1077
+ // Legacy options from v3 era
1078
+ useNewUrlParser: {
1079
+ type: 'boolean',
1080
+ deprecated: 'useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version'
1081
+ },
1082
+ useUnifiedTopology: {
1083
+ type: 'boolean',
1084
+ deprecated: 'useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version'
1085
+ },
1086
+ __skipPingOnConnect: { type: 'boolean' }
1087
+ };
1088
+ exports.DEFAULT_OPTIONS = new CaseInsensitiveMap(Object.entries(exports.OPTIONS)
1089
+ .filter(([, descriptor]) => descriptor.default != null)
1090
+ .map(([k, d]) => [k, d.default]));
1091
+ //# sourceMappingURL=connection_string.js.map