moonflower 1.3.0 → 1.3.2

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 (349) hide show
  1. package/cli/entry.cjs +1 -1
  2. package/dist/cli/cli.cjs +2 -0
  3. package/dist/cli/cli.cjs.map +1 -0
  4. package/dist/cli/cli.d.ts +2 -0
  5. package/dist/cli/cli.d.ts.map +1 -0
  6. package/dist/cli/cli.mjs +62 -0
  7. package/dist/cli/cli.mjs.map +1 -0
  8. package/dist/cli/prettyprint.cjs +2 -0
  9. package/dist/cli/prettyprint.cjs.map +1 -0
  10. package/dist/cli/prettyprint.d.ts +5 -0
  11. package/dist/cli/prettyprint.d.ts.map +1 -0
  12. package/dist/cli/prettyprint.mjs +15 -0
  13. package/dist/cli/prettyprint.mjs.map +1 -0
  14. package/dist/openapi/initOpenApiEngine.cjs +1 -1
  15. package/dist/openapi/initOpenApiEngine.cjs.map +1 -1
  16. package/dist/openapi/initOpenApiEngine.d.ts +7 -2
  17. package/dist/openapi/initOpenApiEngine.d.ts.map +1 -1
  18. package/dist/openapi/initOpenApiEngine.mjs +13 -7
  19. package/dist/openapi/initOpenApiEngine.mjs.map +1 -1
  20. package/dist/openapi/manager/OpenApiManager.cjs +1 -1
  21. package/dist/openapi/manager/OpenApiManager.cjs.map +1 -1
  22. package/dist/openapi/manager/OpenApiManager.d.ts +4 -0
  23. package/dist/openapi/manager/OpenApiManager.d.ts.map +1 -1
  24. package/dist/openapi/manager/OpenApiManager.mjs +11 -2
  25. package/dist/openapi/manager/OpenApiManager.mjs.map +1 -1
  26. package/dist/openapi/router/OpenApiRouter.cjs +1 -1
  27. package/dist/openapi/router/OpenApiRouter.cjs.map +1 -1
  28. package/dist/openapi/router/OpenApiRouter.d.ts.map +1 -1
  29. package/dist/openapi/router/OpenApiRouter.mjs +9 -6
  30. package/dist/openapi/router/OpenApiRouter.mjs.map +1 -1
  31. package/dist/validators/validateMissingParams.cjs +1 -1
  32. package/dist/validators/validateMissingParams.cjs.map +1 -1
  33. package/dist/validators/validateMissingParams.mjs +8 -8
  34. package/dist/validators/validateParam.cjs +1 -1
  35. package/dist/validators/validateParam.cjs.map +1 -1
  36. package/dist/validators/validateParam.mjs +16 -17
  37. package/dist/validators/validateParam.mjs.map +1 -1
  38. package/package.json +4 -4
  39. package/{cli → src/cli}/cli.ts +26 -6
  40. package/{cli → src/cli}/prettyprint.ts +2 -2
  41. package/src/openapi/initOpenApiEngine.ts +48 -6
  42. package/src/openapi/manager/OpenApiManager.ts +16 -0
  43. package/src/openapi/router/OpenApiRouter.ts +6 -1
  44. package/src/test/app.spec.ts +27 -0
  45. package/vite.config.ts +4 -0
  46. package/dist/node_modules/zod/index.cjs +0 -2
  47. package/dist/node_modules/zod/index.cjs.map +0 -1
  48. package/dist/node_modules/zod/index.mjs +0 -6
  49. package/dist/node_modules/zod/index.mjs.map +0 -1
  50. package/dist/node_modules/zod/v4/classic/checks.cjs +0 -2
  51. package/dist/node_modules/zod/v4/classic/checks.cjs.map +0 -1
  52. package/dist/node_modules/zod/v4/classic/checks.mjs +0 -34
  53. package/dist/node_modules/zod/v4/classic/checks.mjs.map +0 -1
  54. package/dist/node_modules/zod/v4/classic/coerce.cjs +0 -2
  55. package/dist/node_modules/zod/v4/classic/coerce.cjs.map +0 -1
  56. package/dist/node_modules/zod/v4/classic/coerce.mjs +0 -26
  57. package/dist/node_modules/zod/v4/classic/coerce.mjs.map +0 -1
  58. package/dist/node_modules/zod/v4/classic/compat.cjs +0 -2
  59. package/dist/node_modules/zod/v4/classic/compat.cjs.map +0 -1
  60. package/dist/node_modules/zod/v4/classic/compat.mjs +0 -35
  61. package/dist/node_modules/zod/v4/classic/compat.mjs.map +0 -1
  62. package/dist/node_modules/zod/v4/classic/errors.cjs +0 -2
  63. package/dist/node_modules/zod/v4/classic/errors.cjs.map +0 -1
  64. package/dist/node_modules/zod/v4/classic/errors.mjs +0 -41
  65. package/dist/node_modules/zod/v4/classic/errors.mjs.map +0 -1
  66. package/dist/node_modules/zod/v4/classic/external.cjs +0 -2
  67. package/dist/node_modules/zod/v4/classic/external.cjs.map +0 -1
  68. package/dist/node_modules/zod/v4/classic/external.mjs +0 -260
  69. package/dist/node_modules/zod/v4/classic/external.mjs.map +0 -1
  70. package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +0 -2
  71. package/dist/node_modules/zod/v4/classic/from-json-schema.cjs.map +0 -1
  72. package/dist/node_modules/zod/v4/classic/from-json-schema.mjs +0 -287
  73. package/dist/node_modules/zod/v4/classic/from-json-schema.mjs.map +0 -1
  74. package/dist/node_modules/zod/v4/classic/iso.cjs +0 -2
  75. package/dist/node_modules/zod/v4/classic/iso.cjs.map +0 -1
  76. package/dist/node_modules/zod/v4/classic/iso.mjs +0 -40
  77. package/dist/node_modules/zod/v4/classic/iso.mjs.map +0 -1
  78. package/dist/node_modules/zod/v4/classic/parse.cjs +0 -2
  79. package/dist/node_modules/zod/v4/classic/parse.cjs.map +0 -1
  80. package/dist/node_modules/zod/v4/classic/parse.mjs +0 -19
  81. package/dist/node_modules/zod/v4/classic/parse.mjs.map +0 -1
  82. package/dist/node_modules/zod/v4/classic/schemas.cjs +0 -2
  83. package/dist/node_modules/zod/v4/classic/schemas.cjs.map +0 -1
  84. package/dist/node_modules/zod/v4/classic/schemas.mjs +0 -912
  85. package/dist/node_modules/zod/v4/classic/schemas.mjs.map +0 -1
  86. package/dist/node_modules/zod/v4/core/api.cjs +0 -2
  87. package/dist/node_modules/zod/v4/core/api.cjs.map +0 -1
  88. package/dist/node_modules/zod/v4/core/api.mjs +0 -1110
  89. package/dist/node_modules/zod/v4/core/api.mjs.map +0 -1
  90. package/dist/node_modules/zod/v4/core/checks.cjs +0 -2
  91. package/dist/node_modules/zod/v4/core/checks.cjs.map +0 -1
  92. package/dist/node_modules/zod/v4/core/checks.mjs +0 -421
  93. package/dist/node_modules/zod/v4/core/checks.mjs.map +0 -1
  94. package/dist/node_modules/zod/v4/core/core.cjs +0 -2
  95. package/dist/node_modules/zod/v4/core/core.cjs.map +0 -1
  96. package/dist/node_modules/zod/v4/core/core.mjs +0 -62
  97. package/dist/node_modules/zod/v4/core/core.mjs.map +0 -1
  98. package/dist/node_modules/zod/v4/core/doc.cjs +0 -4
  99. package/dist/node_modules/zod/v4/core/doc.cjs.map +0 -1
  100. package/dist/node_modules/zod/v4/core/doc.mjs +0 -27
  101. package/dist/node_modules/zod/v4/core/doc.mjs.map +0 -1
  102. package/dist/node_modules/zod/v4/core/errors.cjs +0 -3
  103. package/dist/node_modules/zod/v4/core/errors.cjs.map +0 -1
  104. package/dist/node_modules/zod/v4/core/errors.mjs +0 -89
  105. package/dist/node_modules/zod/v4/core/errors.mjs.map +0 -1
  106. package/dist/node_modules/zod/v4/core/index.cjs +0 -2
  107. package/dist/node_modules/zod/v4/core/index.cjs.map +0 -1
  108. package/dist/node_modules/zod/v4/core/index.mjs +0 -293
  109. package/dist/node_modules/zod/v4/core/index.mjs.map +0 -1
  110. package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +0 -2
  111. package/dist/node_modules/zod/v4/core/json-schema-generator.cjs.map +0 -1
  112. package/dist/node_modules/zod/v4/core/json-schema-generator.mjs +0 -66
  113. package/dist/node_modules/zod/v4/core/json-schema-generator.mjs.map +0 -1
  114. package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +0 -2
  115. package/dist/node_modules/zod/v4/core/json-schema-processors.cjs.map +0 -1
  116. package/dist/node_modules/zod/v4/core/json-schema-processors.mjs +0 -346
  117. package/dist/node_modules/zod/v4/core/json-schema-processors.mjs.map +0 -1
  118. package/dist/node_modules/zod/v4/core/json-schema.cjs +0 -2
  119. package/dist/node_modules/zod/v4/core/json-schema.cjs.map +0 -1
  120. package/dist/node_modules/zod/v4/core/json-schema.mjs +0 -2
  121. package/dist/node_modules/zod/v4/core/json-schema.mjs.map +0 -1
  122. package/dist/node_modules/zod/v4/core/parse.cjs +0 -2
  123. package/dist/node_modules/zod/v4/core/parse.cjs.map +0 -1
  124. package/dist/node_modules/zod/v4/core/parse.mjs +0 -75
  125. package/dist/node_modules/zod/v4/core/parse.mjs.map +0 -1
  126. package/dist/node_modules/zod/v4/core/regexes.cjs +0 -2
  127. package/dist/node_modules/zod/v4/core/regexes.cjs.map +0 -1
  128. package/dist/node_modules/zod/v4/core/regexes.mjs +0 -94
  129. package/dist/node_modules/zod/v4/core/regexes.mjs.map +0 -1
  130. package/dist/node_modules/zod/v4/core/registries.cjs +0 -2
  131. package/dist/node_modules/zod/v4/core/registries.cjs.map +0 -1
  132. package/dist/node_modules/zod/v4/core/registries.mjs +0 -44
  133. package/dist/node_modules/zod/v4/core/registries.mjs.map +0 -1
  134. package/dist/node_modules/zod/v4/core/schemas.cjs +0 -36
  135. package/dist/node_modules/zod/v4/core/schemas.cjs.map +0 -1
  136. package/dist/node_modules/zod/v4/core/schemas.mjs +0 -1319
  137. package/dist/node_modules/zod/v4/core/schemas.mjs.map +0 -1
  138. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +0 -4
  139. package/dist/node_modules/zod/v4/core/to-json-schema.cjs.map +0 -1
  140. package/dist/node_modules/zod/v4/core/to-json-schema.mjs +0 -244
  141. package/dist/node_modules/zod/v4/core/to-json-schema.mjs.map +0 -1
  142. package/dist/node_modules/zod/v4/core/util.cjs +0 -2
  143. package/dist/node_modules/zod/v4/core/util.cjs.map +0 -1
  144. package/dist/node_modules/zod/v4/core/util.mjs +0 -523
  145. package/dist/node_modules/zod/v4/core/util.mjs.map +0 -1
  146. package/dist/node_modules/zod/v4/core/versions.cjs +0 -2
  147. package/dist/node_modules/zod/v4/core/versions.cjs.map +0 -1
  148. package/dist/node_modules/zod/v4/core/versions.mjs +0 -9
  149. package/dist/node_modules/zod/v4/core/versions.mjs.map +0 -1
  150. package/dist/node_modules/zod/v4/locales/ar.cjs +0 -2
  151. package/dist/node_modules/zod/v4/locales/ar.cjs.map +0 -1
  152. package/dist/node_modules/zod/v4/locales/ar.mjs +0 -87
  153. package/dist/node_modules/zod/v4/locales/ar.mjs.map +0 -1
  154. package/dist/node_modules/zod/v4/locales/az.cjs +0 -2
  155. package/dist/node_modules/zod/v4/locales/az.cjs.map +0 -1
  156. package/dist/node_modules/zod/v4/locales/az.mjs +0 -87
  157. package/dist/node_modules/zod/v4/locales/az.mjs.map +0 -1
  158. package/dist/node_modules/zod/v4/locales/be.cjs +0 -2
  159. package/dist/node_modules/zod/v4/locales/be.cjs.map +0 -1
  160. package/dist/node_modules/zod/v4/locales/be.mjs +0 -129
  161. package/dist/node_modules/zod/v4/locales/be.mjs.map +0 -1
  162. package/dist/node_modules/zod/v4/locales/bg.cjs +0 -2
  163. package/dist/node_modules/zod/v4/locales/bg.cjs.map +0 -1
  164. package/dist/node_modules/zod/v4/locales/bg.mjs +0 -98
  165. package/dist/node_modules/zod/v4/locales/bg.mjs.map +0 -1
  166. package/dist/node_modules/zod/v4/locales/ca.cjs +0 -2
  167. package/dist/node_modules/zod/v4/locales/ca.cjs.map +0 -1
  168. package/dist/node_modules/zod/v4/locales/ca.mjs +0 -88
  169. package/dist/node_modules/zod/v4/locales/ca.mjs.map +0 -1
  170. package/dist/node_modules/zod/v4/locales/cs.cjs +0 -2
  171. package/dist/node_modules/zod/v4/locales/cs.cjs.map +0 -1
  172. package/dist/node_modules/zod/v4/locales/cs.mjs +0 -91
  173. package/dist/node_modules/zod/v4/locales/cs.mjs.map +0 -1
  174. package/dist/node_modules/zod/v4/locales/da.cjs +0 -2
  175. package/dist/node_modules/zod/v4/locales/da.cjs.map +0 -1
  176. package/dist/node_modules/zod/v4/locales/da.mjs +0 -94
  177. package/dist/node_modules/zod/v4/locales/da.mjs.map +0 -1
  178. package/dist/node_modules/zod/v4/locales/de.cjs +0 -2
  179. package/dist/node_modules/zod/v4/locales/de.cjs.map +0 -1
  180. package/dist/node_modules/zod/v4/locales/de.mjs +0 -89
  181. package/dist/node_modules/zod/v4/locales/de.mjs.map +0 -1
  182. package/dist/node_modules/zod/v4/locales/en.cjs +0 -2
  183. package/dist/node_modules/zod/v4/locales/en.cjs.map +0 -1
  184. package/dist/node_modules/zod/v4/locales/en.mjs +0 -91
  185. package/dist/node_modules/zod/v4/locales/en.mjs.map +0 -1
  186. package/dist/node_modules/zod/v4/locales/eo.cjs +0 -2
  187. package/dist/node_modules/zod/v4/locales/eo.cjs.map +0 -1
  188. package/dist/node_modules/zod/v4/locales/eo.mjs +0 -90
  189. package/dist/node_modules/zod/v4/locales/eo.mjs.map +0 -1
  190. package/dist/node_modules/zod/v4/locales/es.cjs +0 -2
  191. package/dist/node_modules/zod/v4/locales/es.cjs.map +0 -1
  192. package/dist/node_modules/zod/v4/locales/es.mjs +0 -111
  193. package/dist/node_modules/zod/v4/locales/es.mjs.map +0 -1
  194. package/dist/node_modules/zod/v4/locales/fa.cjs +0 -2
  195. package/dist/node_modules/zod/v4/locales/fa.cjs.map +0 -1
  196. package/dist/node_modules/zod/v4/locales/fa.mjs +0 -89
  197. package/dist/node_modules/zod/v4/locales/fa.mjs.map +0 -1
  198. package/dist/node_modules/zod/v4/locales/fi.cjs +0 -2
  199. package/dist/node_modules/zod/v4/locales/fi.cjs.map +0 -1
  200. package/dist/node_modules/zod/v4/locales/fi.mjs +0 -91
  201. package/dist/node_modules/zod/v4/locales/fi.mjs.map +0 -1
  202. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +0 -2
  203. package/dist/node_modules/zod/v4/locales/fr-CA.cjs.map +0 -1
  204. package/dist/node_modules/zod/v4/locales/fr-CA.mjs +0 -87
  205. package/dist/node_modules/zod/v4/locales/fr-CA.mjs.map +0 -1
  206. package/dist/node_modules/zod/v4/locales/fr.cjs +0 -2
  207. package/dist/node_modules/zod/v4/locales/fr.cjs.map +0 -1
  208. package/dist/node_modules/zod/v4/locales/fr.mjs +0 -89
  209. package/dist/node_modules/zod/v4/locales/fr.mjs.map +0 -1
  210. package/dist/node_modules/zod/v4/locales/he.cjs +0 -2
  211. package/dist/node_modules/zod/v4/locales/he.cjs.map +0 -1
  212. package/dist/node_modules/zod/v4/locales/he.mjs +0 -152
  213. package/dist/node_modules/zod/v4/locales/he.mjs.map +0 -1
  214. package/dist/node_modules/zod/v4/locales/hu.cjs +0 -2
  215. package/dist/node_modules/zod/v4/locales/hu.cjs.map +0 -1
  216. package/dist/node_modules/zod/v4/locales/hu.mjs +0 -89
  217. package/dist/node_modules/zod/v4/locales/hu.mjs.map +0 -1
  218. package/dist/node_modules/zod/v4/locales/hy.cjs +0 -2
  219. package/dist/node_modules/zod/v4/locales/hy.cjs.map +0 -1
  220. package/dist/node_modules/zod/v4/locales/hy.mjs +0 -130
  221. package/dist/node_modules/zod/v4/locales/hy.mjs.map +0 -1
  222. package/dist/node_modules/zod/v4/locales/id.cjs +0 -2
  223. package/dist/node_modules/zod/v4/locales/id.cjs.map +0 -1
  224. package/dist/node_modules/zod/v4/locales/id.mjs +0 -87
  225. package/dist/node_modules/zod/v4/locales/id.mjs.map +0 -1
  226. package/dist/node_modules/zod/v4/locales/index.cjs +0 -2
  227. package/dist/node_modules/zod/v4/locales/index.cjs.map +0 -1
  228. package/dist/node_modules/zod/v4/locales/index.mjs +0 -101
  229. package/dist/node_modules/zod/v4/locales/index.mjs.map +0 -1
  230. package/dist/node_modules/zod/v4/locales/is.cjs +0 -2
  231. package/dist/node_modules/zod/v4/locales/is.cjs.map +0 -1
  232. package/dist/node_modules/zod/v4/locales/is.mjs +0 -89
  233. package/dist/node_modules/zod/v4/locales/is.mjs.map +0 -1
  234. package/dist/node_modules/zod/v4/locales/it.cjs +0 -2
  235. package/dist/node_modules/zod/v4/locales/it.cjs.map +0 -1
  236. package/dist/node_modules/zod/v4/locales/it.mjs +0 -89
  237. package/dist/node_modules/zod/v4/locales/it.mjs.map +0 -1
  238. package/dist/node_modules/zod/v4/locales/ja.cjs +0 -2
  239. package/dist/node_modules/zod/v4/locales/ja.cjs.map +0 -1
  240. package/dist/node_modules/zod/v4/locales/ja.mjs +0 -89
  241. package/dist/node_modules/zod/v4/locales/ja.mjs.map +0 -1
  242. package/dist/node_modules/zod/v4/locales/ka.cjs +0 -2
  243. package/dist/node_modules/zod/v4/locales/ka.cjs.map +0 -1
  244. package/dist/node_modules/zod/v4/locales/ka.mjs +0 -92
  245. package/dist/node_modules/zod/v4/locales/ka.mjs.map +0 -1
  246. package/dist/node_modules/zod/v4/locales/kh.cjs +0 -2
  247. package/dist/node_modules/zod/v4/locales/kh.cjs.map +0 -1
  248. package/dist/node_modules/zod/v4/locales/kh.mjs +0 -8
  249. package/dist/node_modules/zod/v4/locales/kh.mjs.map +0 -1
  250. package/dist/node_modules/zod/v4/locales/km.cjs +0 -2
  251. package/dist/node_modules/zod/v4/locales/km.cjs.map +0 -1
  252. package/dist/node_modules/zod/v4/locales/km.mjs +0 -90
  253. package/dist/node_modules/zod/v4/locales/km.mjs.map +0 -1
  254. package/dist/node_modules/zod/v4/locales/ko.cjs +0 -2
  255. package/dist/node_modules/zod/v4/locales/ko.cjs.map +0 -1
  256. package/dist/node_modules/zod/v4/locales/ko.mjs +0 -87
  257. package/dist/node_modules/zod/v4/locales/ko.mjs.map +0 -1
  258. package/dist/node_modules/zod/v4/locales/lt.cjs +0 -2
  259. package/dist/node_modules/zod/v4/locales/lt.cjs.map +0 -1
  260. package/dist/node_modules/zod/v4/locales/lt.mjs +0 -178
  261. package/dist/node_modules/zod/v4/locales/lt.mjs.map +0 -1
  262. package/dist/node_modules/zod/v4/locales/mk.cjs +0 -2
  263. package/dist/node_modules/zod/v4/locales/mk.cjs.map +0 -1
  264. package/dist/node_modules/zod/v4/locales/mk.mjs +0 -89
  265. package/dist/node_modules/zod/v4/locales/mk.mjs.map +0 -1
  266. package/dist/node_modules/zod/v4/locales/ms.cjs +0 -2
  267. package/dist/node_modules/zod/v4/locales/ms.cjs.map +0 -1
  268. package/dist/node_modules/zod/v4/locales/ms.mjs +0 -88
  269. package/dist/node_modules/zod/v4/locales/ms.mjs.map +0 -1
  270. package/dist/node_modules/zod/v4/locales/nl.cjs +0 -2
  271. package/dist/node_modules/zod/v4/locales/nl.cjs.map +0 -1
  272. package/dist/node_modules/zod/v4/locales/nl.mjs +0 -88
  273. package/dist/node_modules/zod/v4/locales/nl.mjs.map +0 -1
  274. package/dist/node_modules/zod/v4/locales/no.cjs +0 -2
  275. package/dist/node_modules/zod/v4/locales/no.cjs.map +0 -1
  276. package/dist/node_modules/zod/v4/locales/no.mjs +0 -89
  277. package/dist/node_modules/zod/v4/locales/no.mjs.map +0 -1
  278. package/dist/node_modules/zod/v4/locales/ota.cjs +0 -2
  279. package/dist/node_modules/zod/v4/locales/ota.cjs.map +0 -1
  280. package/dist/node_modules/zod/v4/locales/ota.mjs +0 -90
  281. package/dist/node_modules/zod/v4/locales/ota.mjs.map +0 -1
  282. package/dist/node_modules/zod/v4/locales/pl.cjs +0 -2
  283. package/dist/node_modules/zod/v4/locales/pl.cjs.map +0 -1
  284. package/dist/node_modules/zod/v4/locales/pl.mjs +0 -89
  285. package/dist/node_modules/zod/v4/locales/pl.mjs.map +0 -1
  286. package/dist/node_modules/zod/v4/locales/ps.cjs +0 -2
  287. package/dist/node_modules/zod/v4/locales/ps.cjs.map +0 -1
  288. package/dist/node_modules/zod/v4/locales/ps.mjs +0 -89
  289. package/dist/node_modules/zod/v4/locales/ps.mjs.map +0 -1
  290. package/dist/node_modules/zod/v4/locales/pt.cjs +0 -2
  291. package/dist/node_modules/zod/v4/locales/pt.cjs.map +0 -1
  292. package/dist/node_modules/zod/v4/locales/pt.mjs +0 -89
  293. package/dist/node_modules/zod/v4/locales/pt.mjs.map +0 -1
  294. package/dist/node_modules/zod/v4/locales/ru.cjs +0 -2
  295. package/dist/node_modules/zod/v4/locales/ru.cjs.map +0 -1
  296. package/dist/node_modules/zod/v4/locales/ru.mjs +0 -129
  297. package/dist/node_modules/zod/v4/locales/ru.mjs.map +0 -1
  298. package/dist/node_modules/zod/v4/locales/sl.cjs +0 -2
  299. package/dist/node_modules/zod/v4/locales/sl.cjs.map +0 -1
  300. package/dist/node_modules/zod/v4/locales/sl.mjs +0 -89
  301. package/dist/node_modules/zod/v4/locales/sl.mjs.map +0 -1
  302. package/dist/node_modules/zod/v4/locales/sv.cjs +0 -2
  303. package/dist/node_modules/zod/v4/locales/sv.cjs.map +0 -1
  304. package/dist/node_modules/zod/v4/locales/sv.mjs +0 -89
  305. package/dist/node_modules/zod/v4/locales/sv.mjs.map +0 -1
  306. package/dist/node_modules/zod/v4/locales/ta.cjs +0 -2
  307. package/dist/node_modules/zod/v4/locales/ta.cjs.map +0 -1
  308. package/dist/node_modules/zod/v4/locales/ta.mjs +0 -90
  309. package/dist/node_modules/zod/v4/locales/ta.mjs.map +0 -1
  310. package/dist/node_modules/zod/v4/locales/th.cjs +0 -2
  311. package/dist/node_modules/zod/v4/locales/th.cjs.map +0 -1
  312. package/dist/node_modules/zod/v4/locales/th.mjs +0 -90
  313. package/dist/node_modules/zod/v4/locales/th.mjs.map +0 -1
  314. package/dist/node_modules/zod/v4/locales/tr.cjs +0 -2
  315. package/dist/node_modules/zod/v4/locales/tr.cjs.map +0 -1
  316. package/dist/node_modules/zod/v4/locales/tr.mjs +0 -87
  317. package/dist/node_modules/zod/v4/locales/tr.mjs.map +0 -1
  318. package/dist/node_modules/zod/v4/locales/ua.cjs +0 -2
  319. package/dist/node_modules/zod/v4/locales/ua.cjs.map +0 -1
  320. package/dist/node_modules/zod/v4/locales/ua.mjs +0 -8
  321. package/dist/node_modules/zod/v4/locales/ua.mjs.map +0 -1
  322. package/dist/node_modules/zod/v4/locales/uk.cjs +0 -2
  323. package/dist/node_modules/zod/v4/locales/uk.cjs.map +0 -1
  324. package/dist/node_modules/zod/v4/locales/uk.mjs +0 -89
  325. package/dist/node_modules/zod/v4/locales/uk.mjs.map +0 -1
  326. package/dist/node_modules/zod/v4/locales/ur.cjs +0 -2
  327. package/dist/node_modules/zod/v4/locales/ur.cjs.map +0 -1
  328. package/dist/node_modules/zod/v4/locales/ur.mjs +0 -90
  329. package/dist/node_modules/zod/v4/locales/ur.mjs.map +0 -1
  330. package/dist/node_modules/zod/v4/locales/uz.cjs +0 -2
  331. package/dist/node_modules/zod/v4/locales/uz.cjs.map +0 -1
  332. package/dist/node_modules/zod/v4/locales/uz.mjs +0 -90
  333. package/dist/node_modules/zod/v4/locales/uz.mjs.map +0 -1
  334. package/dist/node_modules/zod/v4/locales/vi.cjs +0 -2
  335. package/dist/node_modules/zod/v4/locales/vi.cjs.map +0 -1
  336. package/dist/node_modules/zod/v4/locales/vi.mjs +0 -89
  337. package/dist/node_modules/zod/v4/locales/vi.mjs.map +0 -1
  338. package/dist/node_modules/zod/v4/locales/yo.cjs +0 -2
  339. package/dist/node_modules/zod/v4/locales/yo.cjs.map +0 -1
  340. package/dist/node_modules/zod/v4/locales/yo.mjs +0 -89
  341. package/dist/node_modules/zod/v4/locales/yo.mjs.map +0 -1
  342. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +0 -2
  343. package/dist/node_modules/zod/v4/locales/zh-CN.cjs.map +0 -1
  344. package/dist/node_modules/zod/v4/locales/zh-CN.mjs +0 -90
  345. package/dist/node_modules/zod/v4/locales/zh-CN.mjs.map +0 -1
  346. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +0 -2
  347. package/dist/node_modules/zod/v4/locales/zh-TW.cjs.map +0 -1
  348. package/dist/node_modules/zod/v4/locales/zh-TW.mjs +0 -87
  349. package/dist/node_modules/zod/v4/locales/zh-TW.mjs.map +0 -1
@@ -1,94 +0,0 @@
1
- import { escapeRegex as A } from "./util.mjs";
2
- const r = /^[cC][^\s-]{8,}$/, F = /^[0-9a-z]+$/, z = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Z = /^[0-9a-vA-V]{20}$/, m = /^[A-Za-z0-9]{27}$/, p = /^[a-zA-Z0-9_-]{21}$/, l = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, x = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, _ = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, o = (a) => a ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${a}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, h = /* @__PURE__ */ o(4), b = /* @__PURE__ */ o(6), E = /* @__PURE__ */ o(7), g = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, w = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, R = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, $ = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, M = $, S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, i = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
3
- function j() {
4
- return new RegExp(i, "u");
5
- }
6
- const v = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, D = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, T = (a) => {
7
- const n = A(a ?? ":");
8
- return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`);
9
- }, B = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, H = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, P = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, W = /^[A-Za-z0-9_-]*$/, Y = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, k = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, C = /^\+[1-9]\d{6,14}$/, f = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", V = /* @__PURE__ */ new RegExp(`^${f}$`);
10
- function c(a) {
11
- const n = "(?:[01]\\d|2[0-3]):[0-5]\\d";
12
- return typeof a.precision == "number" ? a.precision === -1 ? `${n}` : a.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${a.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`;
13
- }
14
- function y(a) {
15
- return new RegExp(`^${c(a)}$`);
16
- }
17
- function J(a) {
18
- const n = c({ precision: a.precision }), t = ["Z"];
19
- a.local && t.push(""), a.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
20
- const d = `${n}(?:${t.join("|")})`;
21
- return new RegExp(`^${f}T(?:${d})$`);
22
- }
23
- const K = (a) => {
24
- const n = a ? `[\\s\\S]{${a?.minimum ?? 0},${a?.maximum ?? ""}}` : "[\\s\\S]*";
25
- return new RegExp(`^${n}$`);
26
- }, N = /^-?\d+n?$/, q = /^-?\d+$/, G = /^-?\d+(?:\.\d+)?$/, I = /^(?:true|false)$/i, L = /^null$/i, O = /^undefined$/i, Q = /^[^A-Z]*$/, U = /^[^a-z]*$/, X = /^[0-9a-fA-F]*$/;
27
- function e(a, n) {
28
- return new RegExp(`^[A-Za-z0-9+/]{${a}}${n}$`);
29
- }
30
- function s(a) {
31
- return new RegExp(`^[A-Za-z0-9_-]{${a}}$`);
32
- }
33
- const a0 = /^[0-9a-fA-F]{32}$/, n0 = /* @__PURE__ */ e(22, "=="), e0 = /* @__PURE__ */ s(22), s0 = /^[0-9a-fA-F]{40}$/, t0 = /* @__PURE__ */ e(27, "="), o0 = /* @__PURE__ */ s(27), f0 = /^[0-9a-fA-F]{64}$/, c0 = /* @__PURE__ */ e(43, "="), d0 = /* @__PURE__ */ s(43), A0 = /^[0-9a-fA-F]{96}$/, $0 = /* @__PURE__ */ e(64, ""), i0 = /* @__PURE__ */ s(64), u0 = /^[0-9a-fA-F]{128}$/, r0 = /* @__PURE__ */ e(86, "=="), F0 = /* @__PURE__ */ s(86);
34
- export {
35
- P as base64,
36
- W as base64url,
37
- N as bigint,
38
- I as boolean,
39
- S as browserEmail,
40
- B as cidrv4,
41
- H as cidrv6,
42
- r as cuid,
43
- F as cuid2,
44
- V as date,
45
- J as datetime,
46
- k as domain,
47
- l as duration,
48
- C as e164,
49
- g as email,
50
- j as emoji,
51
- x as extendedDuration,
52
- _ as guid,
53
- X as hex,
54
- Y as hostname,
55
- w as html5Email,
56
- M as idnEmail,
57
- q as integer,
58
- v as ipv4,
59
- D as ipv6,
60
- m as ksuid,
61
- Q as lowercase,
62
- T as mac,
63
- n0 as md5_base64,
64
- e0 as md5_base64url,
65
- a0 as md5_hex,
66
- p as nanoid,
67
- L as null,
68
- G as number,
69
- R as rfc5322Email,
70
- t0 as sha1_base64,
71
- o0 as sha1_base64url,
72
- s0 as sha1_hex,
73
- c0 as sha256_base64,
74
- d0 as sha256_base64url,
75
- f0 as sha256_hex,
76
- $0 as sha384_base64,
77
- i0 as sha384_base64url,
78
- A0 as sha384_hex,
79
- r0 as sha512_base64,
80
- F0 as sha512_base64url,
81
- u0 as sha512_hex,
82
- K as string,
83
- y as time,
84
- z as ulid,
85
- O as undefined,
86
- $ as unicodeEmail,
87
- U as uppercase,
88
- o as uuid,
89
- h as uuid4,
90
- b as uuid6,
91
- E as uuid7,
92
- Z as xid
93
- };
94
- //# sourceMappingURL=regexes.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexes.mjs","sources":["../../../../../node_modules/zod/v4/core/regexes.js"],"sourcesContent":["import * as util from \"./util.js\";\nexport const cuid = /^[cC][^\\s-]{8,}$/;\nexport const cuid2 = /^[0-9a-z]+$/;\nexport const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;\nexport const xid = /^[0-9a-vA-V]{20}$/;\nexport const ksuid = /^[A-Za-z0-9]{27}$/;\nexport const nanoid = /^[a-zA-Z0-9_-]{21}$/;\n/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */\nexport const duration = /^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/;\n/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */\nexport const extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */\nexport const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;\n/** Returns a regex for validating an RFC 9562/4122 UUID.\n *\n * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */\nexport const uuid = (version) => {\n if (!version)\n return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;\n return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);\n};\nexport const uuid4 = /*@__PURE__*/ uuid(4);\nexport const uuid6 = /*@__PURE__*/ uuid(6);\nexport const uuid7 = /*@__PURE__*/ uuid(7);\n/** Practical email validation */\nexport const email = /^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/;\n/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */\nexport const html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/** The classic emailregex.com regex for RFC 5322-compliant emails */\nexport const rfc5322Email = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */\nexport const unicodeEmail = /^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u;\nexport const idnEmail = unicodeEmail;\nexport const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emoji = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nexport function emoji() {\n return new RegExp(_emoji, \"u\");\n}\nexport const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nexport const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;\nexport const mac = (delimiter) => {\n const escapedDelim = util.escapeRegex(delimiter ?? \":\");\n return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);\n};\nexport const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/;\nexport const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nexport const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;\nexport const base64url = /^[A-Za-z0-9_-]*$/;\n// based on https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address\n// export const hostname: RegExp = /^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/;\nexport const hostname = /^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/;\nexport const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/;\n// https://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 (regex sans spaces)\n// E.164: leading digit must be 1-9; total digits (excluding '+') between 7-15\nexport const e164 = /^\\+[1-9]\\d{6,14}$/;\n// const dateSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateSource = `(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`;\nexport const date = /*@__PURE__*/ new RegExp(`^${dateSource}$`);\nfunction timeSource(args) {\n const hhmm = `(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;\n const regex = typeof args.precision === \"number\"\n ? args.precision === -1\n ? `${hhmm}`\n : args.precision === 0\n ? `${hhmm}:[0-5]\\\\d`\n : `${hhmm}:[0-5]\\\\d\\\\.\\\\d{${args.precision}}`\n : `${hhmm}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`;\n return regex;\n}\nexport function time(args) {\n return new RegExp(`^${timeSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetime(args) {\n const time = timeSource({ precision: args.precision });\n const opts = [\"Z\"];\n if (args.local)\n opts.push(\"\");\n // if (args.offset) opts.push(`([+-]\\\\d{2}:\\\\d{2})`);\n if (args.offset)\n opts.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);\n const timeRegex = `${time}(?:${opts.join(\"|\")})`;\n return new RegExp(`^${dateSource}T(?:${timeRegex})$`);\n}\nexport const string = (params) => {\n const regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? \"\"}}` : `[\\\\s\\\\S]*`;\n return new RegExp(`^${regex}$`);\n};\nexport const bigint = /^-?\\d+n?$/;\nexport const integer = /^-?\\d+$/;\nexport const number = /^-?\\d+(?:\\.\\d+)?$/;\nexport const boolean = /^(?:true|false)$/i;\nconst _null = /^null$/i;\nexport { _null as null };\nconst _undefined = /^undefined$/i;\nexport { _undefined as undefined };\n// regex for string with no uppercase letters\nexport const lowercase = /^[^A-Z]*$/;\n// regex for string with no lowercase letters\nexport const uppercase = /^[^a-z]*$/;\n// regex for hexadecimal strings (any length)\nexport const hex = /^[0-9a-fA-F]*$/;\n// Hash regexes for different algorithms and encodings\n// Helper function to create base64 regex with exact length and padding\nfunction fixedBase64(bodyLength, padding) {\n return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);\n}\n// Helper function to create base64url regex with exact length (no padding)\nfunction fixedBase64url(length) {\n return new RegExp(`^[A-Za-z0-9_-]{${length}}$`);\n}\n// MD5 (16 bytes): base64 = 24 chars total (22 + \"==\")\nexport const md5_hex = /^[0-9a-fA-F]{32}$/;\nexport const md5_base64 = /*@__PURE__*/ fixedBase64(22, \"==\");\nexport const md5_base64url = /*@__PURE__*/ fixedBase64url(22);\n// SHA1 (20 bytes): base64 = 28 chars total (27 + \"=\")\nexport const sha1_hex = /^[0-9a-fA-F]{40}$/;\nexport const sha1_base64 = /*@__PURE__*/ fixedBase64(27, \"=\");\nexport const sha1_base64url = /*@__PURE__*/ fixedBase64url(27);\n// SHA256 (32 bytes): base64 = 44 chars total (43 + \"=\")\nexport const sha256_hex = /^[0-9a-fA-F]{64}$/;\nexport const sha256_base64 = /*@__PURE__*/ fixedBase64(43, \"=\");\nexport const sha256_base64url = /*@__PURE__*/ fixedBase64url(43);\n// SHA384 (48 bytes): base64 = 64 chars total (no padding)\nexport const sha384_hex = /^[0-9a-fA-F]{96}$/;\nexport const sha384_base64 = /*@__PURE__*/ fixedBase64(64, \"\");\nexport const sha384_base64url = /*@__PURE__*/ fixedBase64url(64);\n// SHA512 (64 bytes): base64 = 88 chars total (86 + \"==\")\nexport const sha512_hex = /^[0-9a-fA-F]{128}$/;\nexport const sha512_base64 = /*@__PURE__*/ fixedBase64(86, \"==\");\nexport const sha512_base64url = /*@__PURE__*/ fixedBase64url(86);\n"],"names":["cuid","cuid2","ulid","xid","ksuid","nanoid","duration","extendedDuration","guid","uuid","version","uuid4","uuid6","uuid7","email","html5Email","rfc5322Email","unicodeEmail","idnEmail","browserEmail","_emoji","emoji","ipv4","ipv6","mac","delimiter","escapedDelim","util.escapeRegex","cidrv4","cidrv6","base64","base64url","hostname","domain","e164","dateSource","date","timeSource","args","hhmm","time","datetime","opts","timeRegex","string","params","regex","bigint","integer","number","boolean","_null","_undefined","lowercase","uppercase","hex","fixedBase64","bodyLength","padding","fixedBase64url","length","md5_hex","md5_base64","md5_base64url","sha1_hex","sha1_base64","sha1_base64url","sha256_hex","sha256_base64","sha256_base64url","sha384_hex","sha384_base64","sha384_base64url","sha512_hex","sha512_base64","sha512_base64url"],"mappings":";AACY,MAACA,IAAO,oBACPC,IAAQ,eACRC,IAAO,yCACPC,IAAM,qBACNC,IAAQ,qBACRC,IAAS,uBAETC,IAAW,iGAEXC,IAAmB,4SAEnBC,IAAO,mFAIPC,IAAO,CAACC,MACZA,IAEE,IAAI,OAAO,mCAAmCA,CAAO,yDAAyD,IAD1G,0KAGFC,IAAsB,gBAAAF,EAAK,CAAC,GAC5BG,IAAsB,gBAAAH,EAAK,CAAC,GAC5BI,IAAsB,gBAAAJ,EAAK,CAAC,GAE5BK,IAAQ,oGAERC,IAAa,wIAEbC,IAAe,0JAEfC,IAAe,kCACfC,IAAWD,GACXE,IAAe,wIAEtBC,IAAS;AACR,SAASC,IAAQ;AACpB,SAAO,IAAI,OAAOD,GAAQ,GAAG;AACjC;AACY,MAACE,IAAO,uHACPC,IAAO,gYACPC,IAAM,CAACC,MAAc;AAC9B,QAAMC,IAAeC,EAAiBF,KAAa,GAAG;AACtD,SAAO,IAAI,OAAO,kBAAkBC,CAAY,mCAAmCA,CAAY,kBAAkB;AACrH,GACaE,IAAS,4IACTC,IAAS,kIAETC,IAAS,+EACTC,IAAY,oBAGZC,IAAW,0HACXC,IAAS,oEAGTC,IAAO,qBAEdC,IAAa,uNACNC,IAAqB,oBAAI,OAAO,IAAID,CAAU,GAAG;AAC9D,SAASE,EAAWC,GAAM;AACtB,QAAMC,IAAO;AAQb,SAPc,OAAOD,EAAK,aAAc,WAClCA,EAAK,cAAc,KACf,GAAGC,CAAI,KACPD,EAAK,cAAc,IACf,GAAGC,CAAI,cACP,GAAGA,CAAI,mBAAmBD,EAAK,SAAS,MAChD,GAAGC,CAAI;AAEjB;AACO,SAASC,EAAKF,GAAM;AACvB,SAAO,IAAI,OAAO,IAAID,EAAWC,CAAI,CAAC,GAAG;AAC7C;AAEO,SAASG,EAASH,GAAM;AAC3B,QAAME,IAAOH,EAAW,EAAE,WAAWC,EAAK,UAAS,CAAE,GAC/CI,IAAO,CAAC,GAAG;AACjB,EAAIJ,EAAK,SACLI,EAAK,KAAK,EAAE,GAEZJ,EAAK,UACLI,EAAK,KAAK,mCAAmC;AACjD,QAAMC,IAAY,GAAGH,CAAI,MAAME,EAAK,KAAK,GAAG,CAAC;AAC7C,SAAO,IAAI,OAAO,IAAIP,CAAU,OAAOQ,CAAS,IAAI;AACxD;AACY,MAACC,IAAS,CAACC,MAAW;AAC9B,QAAMC,IAAQD,IAAS,YAAYA,GAAQ,WAAW,CAAC,IAAIA,GAAQ,WAAW,EAAE,MAAM;AACtF,SAAO,IAAI,OAAO,IAAIC,CAAK,GAAG;AAClC,GACaC,IAAS,aACTC,IAAU,WACVC,IAAS,qBACTC,IAAU,qBACjBC,IAAQ,WAERC,IAAa,gBAGNC,IAAY,aAEZC,IAAY,aAEZC,IAAM;AAGnB,SAASC,EAAYC,GAAYC,GAAS;AACtC,SAAO,IAAI,OAAO,kBAAkBD,CAAU,IAAIC,CAAO,GAAG;AAChE;AAEA,SAASC,EAAeC,GAAQ;AAC5B,SAAO,IAAI,OAAO,kBAAkBA,CAAM,IAAI;AAClD;AAEY,MAACC,KAAU,qBACVC,KAA2B,gBAAAN,EAAY,IAAI,IAAI,GAC/CO,KAA8B,gBAAAJ,EAAe,EAAE,GAE/CK,KAAW,qBACXC,KAA4B,gBAAAT,EAAY,IAAI,GAAG,GAC/CU,KAA+B,gBAAAP,EAAe,EAAE,GAEhDQ,KAAa,qBACbC,KAA8B,gBAAAZ,EAAY,IAAI,GAAG,GACjDa,KAAiC,gBAAAV,EAAe,EAAE,GAElDW,KAAa,qBACbC,KAA8B,gBAAAf,EAAY,IAAI,EAAE,GAChDgB,KAAiC,gBAAAb,EAAe,EAAE,GAElDc,KAAa,sBACbC,KAA8B,gBAAAlB,EAAY,IAAI,IAAI,GAClDmB,KAAiC,gBAAAhB,EAAe,EAAE;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o;const a=Symbol("ZodOutput"),p=Symbol("ZodInput");class r{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...e){const i=e[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const e=this._map.get(t);return e&&typeof e=="object"&&"id"in e&&this._idmap.delete(e.id),this._map.delete(t),this}get(t){const e=t._zod.parent;if(e){const i={...this.get(e)??{}};delete i.id;const s={...i,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function n(){return new r}(o=globalThis).__zod_globalRegistry??(o.__zod_globalRegistry=n());const d=globalThis.__zod_globalRegistry;exports.$ZodRegistry=r;exports.$input=p;exports.$output=a;exports.globalRegistry=d;exports.registry=n;
2
- //# sourceMappingURL=registries.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registries.cjs","sources":["../../../../../node_modules/zod/v4/core/registries.js"],"sourcesContent":["var _a;\nexport const $output = Symbol(\"ZodOutput\");\nexport const $input = Symbol(\"ZodInput\");\nexport class $ZodRegistry {\n constructor() {\n this._map = new WeakMap();\n this._idmap = new Map();\n }\n add(schema, ..._meta) {\n const meta = _meta[0];\n this._map.set(schema, meta);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.set(meta.id, schema);\n }\n return this;\n }\n clear() {\n this._map = new WeakMap();\n this._idmap = new Map();\n return this;\n }\n remove(schema) {\n const meta = this._map.get(schema);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.delete(meta.id);\n }\n this._map.delete(schema);\n return this;\n }\n get(schema) {\n // return this._map.get(schema) as any;\n // inherit metadata\n const p = schema._zod.parent;\n if (p) {\n const pm = { ...(this.get(p) ?? {}) };\n delete pm.id; // do not inherit id\n const f = { ...pm, ...this._map.get(schema) };\n return Object.keys(f).length ? f : undefined;\n }\n return this._map.get(schema);\n }\n has(schema) {\n return this._map.has(schema);\n }\n}\n// registries\nexport function registry() {\n return new $ZodRegistry();\n}\n(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());\nexport const globalRegistry = globalThis.__zod_globalRegistry;\n"],"names":["_a","$output","$input","$ZodRegistry","schema","_meta","meta","p","pm","f","registry","globalRegistry"],"mappings":"gFAAA,IAAIA,EACQ,MAACC,EAAU,OAAO,WAAW,EAC5BC,EAAS,OAAO,UAAU,EAChC,MAAMC,CAAa,CACtB,aAAc,CACV,KAAK,KAAO,IAAI,QAChB,KAAK,OAAS,IAAI,GAC1B,CACI,IAAIC,KAAWC,EAAO,CAClB,MAAMC,EAAOD,EAAM,CAAC,EACpB,YAAK,KAAK,IAAID,EAAQE,CAAI,EACtBA,GAAQ,OAAOA,GAAS,UAAY,OAAQA,GAC5C,KAAK,OAAO,IAAIA,EAAK,GAAIF,CAAM,EAE5B,IACf,CACI,OAAQ,CACJ,YAAK,KAAO,IAAI,QAChB,KAAK,OAAS,IAAI,IACX,IACf,CACI,OAAOA,EAAQ,CACX,MAAME,EAAO,KAAK,KAAK,IAAIF,CAAM,EACjC,OAAIE,GAAQ,OAAOA,GAAS,UAAY,OAAQA,GAC5C,KAAK,OAAO,OAAOA,EAAK,EAAE,EAE9B,KAAK,KAAK,OAAOF,CAAM,EAChB,IACf,CACI,IAAIA,EAAQ,CAGR,MAAMG,EAAIH,EAAO,KAAK,OACtB,GAAIG,EAAG,CACH,MAAMC,EAAK,CAAE,GAAI,KAAK,IAAID,CAAC,GAAK,CAAA,CAAK,EACrC,OAAOC,EAAG,GACV,MAAMC,EAAI,CAAE,GAAGD,EAAI,GAAG,KAAK,KAAK,IAAIJ,CAAM,CAAG,EAC7C,OAAO,OAAO,KAAKK,CAAC,EAAE,OAASA,EAAI,MAC/C,CACQ,OAAO,KAAK,KAAK,IAAIL,CAAM,CACnC,CACI,IAAIA,EAAQ,CACR,OAAO,KAAK,KAAK,IAAIA,CAAM,CACnC,CACA,CAEO,SAASM,GAAW,CACvB,OAAO,IAAIP,CACf,EACCH,EAAK,YAAY,uBAAyBA,EAAG,qBAAuBU,EAAQ,GACjE,MAACC,EAAiB,WAAW","x_google_ignoreList":[0]}
@@ -1,44 +0,0 @@
1
- var o;
2
- const p = Symbol("ZodOutput"), d = Symbol("ZodInput");
3
- class n {
4
- constructor() {
5
- this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
6
- }
7
- add(t, ...e) {
8
- const i = e[0];
9
- return this._map.set(t, i), i && typeof i == "object" && "id" in i && this._idmap.set(i.id, t), this;
10
- }
11
- clear() {
12
- return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
13
- }
14
- remove(t) {
15
- const e = this._map.get(t);
16
- return e && typeof e == "object" && "id" in e && this._idmap.delete(e.id), this._map.delete(t), this;
17
- }
18
- get(t) {
19
- const e = t._zod.parent;
20
- if (e) {
21
- const i = { ...this.get(e) ?? {} };
22
- delete i.id;
23
- const s = { ...i, ...this._map.get(t) };
24
- return Object.keys(s).length ? s : void 0;
25
- }
26
- return this._map.get(t);
27
- }
28
- has(t) {
29
- return this._map.has(t);
30
- }
31
- }
32
- function a() {
33
- return new n();
34
- }
35
- (o = globalThis).__zod_globalRegistry ?? (o.__zod_globalRegistry = a());
36
- const _ = globalThis.__zod_globalRegistry;
37
- export {
38
- n as $ZodRegistry,
39
- d as $input,
40
- p as $output,
41
- _ as globalRegistry,
42
- a as registry
43
- };
44
- //# sourceMappingURL=registries.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registries.mjs","sources":["../../../../../node_modules/zod/v4/core/registries.js"],"sourcesContent":["var _a;\nexport const $output = Symbol(\"ZodOutput\");\nexport const $input = Symbol(\"ZodInput\");\nexport class $ZodRegistry {\n constructor() {\n this._map = new WeakMap();\n this._idmap = new Map();\n }\n add(schema, ..._meta) {\n const meta = _meta[0];\n this._map.set(schema, meta);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.set(meta.id, schema);\n }\n return this;\n }\n clear() {\n this._map = new WeakMap();\n this._idmap = new Map();\n return this;\n }\n remove(schema) {\n const meta = this._map.get(schema);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.delete(meta.id);\n }\n this._map.delete(schema);\n return this;\n }\n get(schema) {\n // return this._map.get(schema) as any;\n // inherit metadata\n const p = schema._zod.parent;\n if (p) {\n const pm = { ...(this.get(p) ?? {}) };\n delete pm.id; // do not inherit id\n const f = { ...pm, ...this._map.get(schema) };\n return Object.keys(f).length ? f : undefined;\n }\n return this._map.get(schema);\n }\n has(schema) {\n return this._map.has(schema);\n }\n}\n// registries\nexport function registry() {\n return new $ZodRegistry();\n}\n(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());\nexport const globalRegistry = globalThis.__zod_globalRegistry;\n"],"names":["_a","$output","$input","$ZodRegistry","schema","_meta","meta","p","pm","f","registry","globalRegistry"],"mappings":"AAAA,IAAIA;AACQ,MAACC,IAAU,OAAO,WAAW,GAC5BC,IAAS,OAAO,UAAU;AAChC,MAAMC,EAAa;AAAA,EACtB,cAAc;AACV,SAAK,OAAO,oBAAI,QAAS,GACzB,KAAK,SAAS,oBAAI,IAAK;AAAA,EAC/B;AAAA,EACI,IAAIC,MAAWC,GAAO;AAClB,UAAMC,IAAOD,EAAM,CAAC;AACpB,gBAAK,KAAK,IAAID,GAAQE,CAAI,GACtBA,KAAQ,OAAOA,KAAS,YAAY,QAAQA,KAC5C,KAAK,OAAO,IAAIA,EAAK,IAAIF,CAAM,GAE5B;AAAA,EACf;AAAA,EACI,QAAQ;AACJ,gBAAK,OAAO,oBAAI,QAAS,GACzB,KAAK,SAAS,oBAAI,IAAK,GAChB;AAAA,EACf;AAAA,EACI,OAAOA,GAAQ;AACX,UAAME,IAAO,KAAK,KAAK,IAAIF,CAAM;AACjC,WAAIE,KAAQ,OAAOA,KAAS,YAAY,QAAQA,KAC5C,KAAK,OAAO,OAAOA,EAAK,EAAE,GAE9B,KAAK,KAAK,OAAOF,CAAM,GAChB;AAAA,EACf;AAAA,EACI,IAAIA,GAAQ;AAGR,UAAMG,IAAIH,EAAO,KAAK;AACtB,QAAIG,GAAG;AACH,YAAMC,IAAK,EAAE,GAAI,KAAK,IAAID,CAAC,KAAK,CAAA,EAAK;AACrC,aAAOC,EAAG;AACV,YAAMC,IAAI,EAAE,GAAGD,GAAI,GAAG,KAAK,KAAK,IAAIJ,CAAM,EAAG;AAC7C,aAAO,OAAO,KAAKK,CAAC,EAAE,SAASA,IAAI;AAAA,IAC/C;AACQ,WAAO,KAAK,KAAK,IAAIL,CAAM;AAAA,EACnC;AAAA,EACI,IAAIA,GAAQ;AACR,WAAO,KAAK,KAAK,IAAIA,CAAM;AAAA,EACnC;AACA;AAEO,SAASM,IAAW;AACvB,SAAO,IAAIP,EAAc;AAC7B;AAAA,CACCH,IAAK,YAAY,yBAAyBA,EAAG,uBAAuBU,EAAQ;AACjE,MAACC,IAAiB,WAAW;","x_google_ignoreList":[0]}
@@ -1,36 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./checks.cjs"),a=require("./core.cjs"),se=require("./doc.cjs"),b=require("./parse.cjs"),$=require("./regexes.cjs"),c=require("./util.cjs"),ie=require("./versions.cjs"),h=a.$constructor("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ie.version;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(i,u,d)=>{let l=c.aborted(i),p;for(const f of u){if(f._zod.def.when){if(!f._zod.def.when(i))continue}else if(l)continue;const v=i.issues.length,z=f._zod.check(i);if(z instanceof Promise&&d?.async===!1)throw new a.$ZodAsyncError;if(p||z instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await z,i.issues.length!==v&&(l||(l=c.aborted(i,v)))});else{if(i.issues.length===v)continue;l||(l=c.aborted(i,v))}}return p?p.then(()=>i):i},s=(i,u,d)=>{if(c.aborted(i))return i.aborted=!0,i;const l=o(u,r,d);if(l instanceof Promise){if(d.async===!1)throw new a.$ZodAsyncError;return l.then(p=>e._zod.parse(p,d))}return e._zod.parse(l,d)};e._zod.run=(i,u)=>{if(u.skipChecks)return e._zod.parse(i,u);if(u.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(p=>s(p,i,u)):s(l,i,u)}const d=e._zod.parse(i,u);if(d instanceof Promise){if(u.async===!1)throw new a.$ZodAsyncError;return d.then(l=>o(l,r,u))}return o(d,r,u)}}c.defineLazy(e,"~standard",()=>({validate:o=>{try{const s=b.safeParse(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return b.safeParseAsync(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),J=a.$constructor("$ZodString",(e,t)=>{h.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??$.string(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),_=a.$constructor("$ZodStringFormat",(e,t)=>{E.$ZodCheckStringFormat.init(e,t),J.init(e,t)}),ue=a.$constructor("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$.guid),_.init(e,t)}),ce=a.$constructor("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$.uuid(r))}else t.pattern??(t.pattern=$.uuid());_.init(e,t)}),ae=a.$constructor("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$.email),_.init(e,t)}),de=a.$constructor("$ZodURL",(e,t)=>{_.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),le=a.$constructor("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=$.emoji()),_.init(e,t)}),pe=a.$constructor("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=$.nanoid),_.init(e,t)}),fe=a.$constructor("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=$.cuid),_.init(e,t)}),he=a.$constructor("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$.cuid2),_.init(e,t)}),ve=a.$constructor("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$.ulid),_.init(e,t)}),$e=a.$constructor("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$.xid),_.init(e,t)}),_e=a.$constructor("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$.ksuid),_.init(e,t)}),ze=a.$constructor("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=$.datetime(t)),_.init(e,t)}),me=a.$constructor("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$.date),_.init(e,t)}),Ze=a.$constructor("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=$.time(t)),_.init(e,t)}),ge=a.$constructor("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=$.duration),_.init(e,t)}),we=a.$constructor("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$.ipv4),_.init(e,t),e._zod.bag.format="ipv4"}),be=a.$constructor("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=$.ipv6),_.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ie=a.$constructor("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=$.mac(t.delimiter)),_.init(e,t),e._zod.bag.format="mac"}),Pe=a.$constructor("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$.cidrv4),_.init(e,t)}),Te=a.$constructor("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=$.cidrv6),_.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function D(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ke=a.$constructor("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=$.base64),_.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{D(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function W(e){if(!$.base64url.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return D(n)}const Se=a.$constructor("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=$.base64url),_.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{W(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Re=a.$constructor("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$.e164),_.init(e,t)});function q(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Le=a.$constructor("$ZodJWT",(e,t)=>{_.init(e,t),e._zod.check=n=>{q(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ee=a.$constructor("$ZodCustomStringFormat",(e,t)=>{_.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),X=a.$constructor("$ZodNumber",(e,t)=>{h.init(e,t),e._zod.pattern=e._zod.bag.pattern??$.number,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Oe=a.$constructor("$ZodNumberFormat",(e,t)=>{E.$ZodCheckNumberFormat.init(e,t),X.init(e,t)}),De=a.$constructor("$ZodBoolean",(e,t)=>{h.init(e,t),e._zod.pattern=$.boolean,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),G=a.$constructor("$ZodBigInt",(e,t)=>{h.init(e,t),e._zod.pattern=$.bigint,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),ye=a.$constructor("$ZodBigIntFormat",(e,t)=>{E.$ZodCheckBigIntFormat.init(e,t),G.init(e,t)}),Ne=a.$constructor("$ZodSymbol",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),Ue=a.$constructor("$ZodUndefined",(e,t)=>{h.init(e,t),e._zod.pattern=$.undefined,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),je=a.$constructor("$ZodNull",(e,t)=>{h.init(e,t),e._zod.pattern=$.null,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),Ce=a.$constructor("$ZodAny",(e,t)=>{h.init(e,t),e._zod.parse=n=>n}),Ae=a.$constructor("$ZodUnknown",(e,t)=>{h.init(e,t),e._zod.parse=n=>n}),Ve=a.$constructor("$ZodNever",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Fe=a.$constructor("$ZodVoid",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),xe=a.$constructor("$ZodDate",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const o=n.value,s=o instanceof Date;return s&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...s?{received:"Invalid Date"}:{},inst:e}),n}});function N(e,t,n){e.issues.length&&t.issues.push(...c.prefixIssues(n,e.issues)),t.value[n]=e.value}const Be=a.$constructor("$ZodArray",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const u=o[i],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?s.push(d.then(l=>N(l,n,i))):N(d,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function L(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...c.prefixIssues(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function H(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=c.optionalKeys(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Q(e,t,n,r,o,s){const i=[],u=o.keySet,d=o.catchall._zod,l=d.def.type,p=d.optout==="optional";for(const f in t){if(u.has(f))continue;if(l==="never"){i.push(f);continue}const v=d.run({value:t[f],issues:[]},r);v instanceof Promise?e.push(v.then(z=>L(z,n,f,t,p))):L(v,n,f,t,p)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const Y=a.$constructor("$ZodObject",(e,t)=>{if(h.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...u};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=c.cached(()=>H(t));c.defineLazy(e._zod,"propValues",()=>{const u=t.shape,d={};for(const l in u){const p=u[l]._zod;if(p.values){d[l]??(d[l]=new Set);for(const f of p.values)d[l].add(f)}}return d});const o=c.isObject,s=t.catchall;let i;e._zod.parse=(u,d)=>{i??(i=r.value);const l=u.value;if(!o(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};const p=[],f=i.shape;for(const v of i.keys){const z=f[v],Z=z._zod.optout==="optional",I=z._zod.run({value:l[v],issues:[]},d);I instanceof Promise?p.push(I.then(P=>L(P,u,v,l,Z))):L(I,u,v,l,Z)}return s?Q(p,l,u,d,r.value,e):p.length?Promise.all(p).then(()=>u):u}}),Ke=a.$constructor("$ZodObjectJIT",(e,t)=>{Y.init(e,t);const n=e._zod.parse,r=c.cached(()=>H(t)),o=v=>{const z=new se.Doc(["shape","payload","ctx"]),Z=r.value,I=w=>{const m=c.esc(w);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};z.write("const input = payload.value;");const P=Object.create(null);let ne=0;for(const w of Z.keys)P[w]=`key_${ne++}`;z.write("const newResult = {};");for(const w of Z.keys){const m=P[w],g=c.esc(w),re=v[w]?._zod?.optout==="optional";z.write(`const ${m} = ${I(w)};`),re?z.write(`
2
- if (${m}.issues.length) {
3
- if (${g} in input) {
4
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
5
- ...iss,
6
- path: iss.path ? [${g}, ...iss.path] : [${g}]
7
- })));
8
- }
9
- }
10
-
11
- if (${m}.value === undefined) {
12
- if (${g} in input) {
13
- newResult[${g}] = undefined;
14
- }
15
- } else {
16
- newResult[${g}] = ${m}.value;
17
- }
18
-
19
- `):z.write(`
20
- if (${m}.issues.length) {
21
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
22
- ...iss,
23
- path: iss.path ? [${g}, ...iss.path] : [${g}]
24
- })));
25
- }
26
-
27
- if (${m}.value === undefined) {
28
- if (${g} in input) {
29
- newResult[${g}] = undefined;
30
- }
31
- } else {
32
- newResult[${g}] = ${m}.value;
33
- }
34
-
35
- `)}z.write("payload.value = newResult;"),z.write("return payload;");const oe=z.compile();return(w,m)=>oe(v,w,m)};let s;const i=c.isObject,u=!a.globalConfig.jitless,d=c.allowsEval,l=u&&d.value,p=t.catchall;let f;e._zod.parse=(v,z)=>{f??(f=r.value);const Z=v.value;return i(Z)?u&&l&&z?.async===!1&&z.jitless!==!0?(s||(s=o(t.shape)),v=s(v,z),p?Q([],Z,v,z,f,e):v):n(v,z):(v.issues.push({expected:"object",code:"invalid_type",input:Z,inst:e}),v)}});function U(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!c.aborted(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>c.finalizeIssue(i,r,a.config())))}),t)}const y=a.$constructor("$ZodUnion",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),c.defineLazy(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),c.defineLazy(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),c.defineLazy(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>c.cleanRegex(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const u=[];for(const d of t.options){const l=d._zod.run({value:o.value,issues:[]},s);if(l instanceof Promise)u.push(l),i=!0;else{if(l.issues.length===0)return l;u.push(l)}}return i?Promise.all(u).then(d=>U(d,o,e,s)):U(u,o,e,s)}});function j(e,t,n,r){const o=e.filter(s=>s.issues.length===0);return o.length===1?(t.value=o[0].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>c.finalizeIssue(i,r,a.config())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const Me=a.$constructor("$ZodXor",(e,t)=>{y.init(e,t),t.inclusive=!1;const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const u=[];for(const d of t.options){const l=d._zod.run({value:o.value,issues:[]},s);l instanceof Promise?(u.push(l),i=!0):u.push(l)}return i?Promise.all(u).then(d=>j(d,o,e,s)):j(u,o,e,s)}}),Je=a.$constructor("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,y.init(e,t);const n=e._zod.parse;c.defineLazy(e._zod,"propValues",()=>{const o={};for(const s of t.options){const i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[u,d]of Object.entries(i)){o[u]||(o[u]=new Set);for(const l of d)o[u].add(l)}}return o});const r=c.cached(()=>{const o=t.options,s=new Map;for(const i of o){const u=i._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const d of u){if(s.has(d))throw new Error(`Duplicate discriminator value "${String(d)}"`);s.set(d,i)}}return s});e._zod.parse=(o,s)=>{const i=o.value;if(!c.isObject(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const u=r.value.get(i?.[t.discriminator]);return u?u._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),o)}}),We=a.$constructor("$ZodIntersection",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([d,l])=>C(n,d,l)):C(n,s,i)}});function O(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(c.isPlainObject(e)&&c.isPlainObject(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=O(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=O(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function C(e,t,n){const r=new Map;let o;for(const u of t.issues)if(u.code==="unrecognized_keys"){o??(o=u);for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).l=!0}else e.issues.push(u);for(const u of n.issues)if(u.code==="unrecognized_keys")for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).r=!0;else e.issues.push(u);const s=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(s.length&&o&&e.issues.push({...o,keys:s}),c.aborted(e))return e;const i=O(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const ee=a.$constructor("$ZodTuple",(e,t)=>{h.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],u=[...n].reverse().findIndex(p=>p._zod.optin!=="optional"),d=u===-1?0:n.length-u;if(!t.rest){const p=s.length>n.length,f=s.length<d-1;if(p||f)return r.issues.push({...p?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:s,inst:e,origin:"array"}),r}let l=-1;for(const p of n){if(l++,l>=s.length&&l>=d)continue;const f=p._zod.run({value:s[l],issues:[]},o);f instanceof Promise?i.push(f.then(v=>T(v,r,l))):T(f,r,l)}if(t.rest){const p=s.slice(n.length);for(const f of p){l++;const v=t.rest._zod.run({value:f,issues:[]},o);v instanceof Promise?i.push(v.then(z=>T(z,r,l))):T(v,r,l)}}return i.length?Promise.all(i).then(()=>r):r}});function T(e,t,n){e.issues.length&&t.issues.push(...c.prefixIssues(n,e.issues)),t.value[n]=e.value}const qe=a.$constructor("$ZodRecord",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!c.isPlainObject(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],i=t.keyType._zod.values;if(i){n.value={};const u=new Set;for(const l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);const p=t.valueType._zod.run({value:o[l],issues:[]},r);p instanceof Promise?s.push(p.then(f=>{f.issues.length&&n.issues.push(...c.prefixIssues(l,f.issues)),n.value[l]=f.value})):(p.issues.length&&n.issues.push(...c.prefixIssues(l,p.issues)),n.value[l]=p.value)}let d;for(const l in o)u.has(l)||(d=d??[],d.push(l));d&&d.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:d})}else{n.value={};for(const u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&$.number.test(u)&&d.issues.length){const f=t.keyType._zod.run({value:Number(u),issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(d=f)}if(d.issues.length){t.mode==="loose"?n.value[u]=o[u]:n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(f=>c.finalizeIssue(f,r,a.config())),input:u,path:[u],inst:e});continue}const p=t.valueType._zod.run({value:o[u],issues:[]},r);p instanceof Promise?s.push(p.then(f=>{f.issues.length&&n.issues.push(...c.prefixIssues(u,f.issues)),n.value[d.value]=f.value})):(p.issues.length&&n.issues.push(...c.prefixIssues(u,p.issues)),n.value[d.value]=p.value)}}return s.length?Promise.all(s).then(()=>n):n}}),Xe=a.$constructor("$ZodMap",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),n;const s=[];n.value=new Map;for(const[i,u]of o){const d=t.keyType._zod.run({value:i,issues:[]},r),l=t.valueType._zod.run({value:u,issues:[]},r);d instanceof Promise||l instanceof Promise?s.push(Promise.all([d,l]).then(([p,f])=>{A(p,f,n,i,o,e,r)})):A(d,l,n,i,o,e,r)}return s.length?Promise.all(s).then(()=>n):n}});function A(e,t,n,r,o,s,i){e.issues.length&&(c.propertyKeyTypes.has(typeof r)?n.issues.push(...c.prefixIssues(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:s,issues:e.issues.map(u=>c.finalizeIssue(u,i,a.config()))})),t.issues.length&&(c.propertyKeyTypes.has(typeof r)?n.issues.push(...c.prefixIssues(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:s,key:r,issues:t.issues.map(u=>c.finalizeIssue(u,i,a.config()))})),n.value.set(e.value,t.value)}const Ge=a.$constructor("$ZodSet",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Set))return n.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),n;const s=[];n.value=new Set;for(const i of o){const u=t.valueType._zod.run({value:i,issues:[]},r);u instanceof Promise?s.push(u.then(d=>V(d,n))):V(u,n)}return s.length?Promise.all(s).then(()=>n):n}});function V(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const He=a.$constructor("$ZodEnum",(e,t)=>{h.init(e,t);const n=c.getEnumValues(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>c.propertyKeyTypes.has(typeof o)).map(o=>typeof o=="string"?c.escapeRegex(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Qe=a.$constructor("$ZodLiteral",(e,t)=>{if(h.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?c.escapeRegex(r):r?c.escapeRegex(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),Ye=a.$constructor("$ZodFile",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),et=a.$constructor("$ZodTransform",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new a.$ZodEncodeError(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new a.$ZodAsyncError;return n.value=o,n}});function F(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const te=a.$constructor("$ZodOptional",(e,t)=>{h.init(e,t),e._zod.optin="optional",e._zod.optout="optional",c.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),c.defineLazy(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${c.cleanRegex(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>F(s,n.value)):F(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),tt=a.$constructor("$ZodExactOptional",(e,t)=>{te.init(e,t),c.defineLazy(e._zod,"values",()=>t.innerType._zod.values),c.defineLazy(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),nt=a.$constructor("$ZodNullable",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),c.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),c.defineLazy(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${c.cleanRegex(n.source)}|null)$`):void 0}),c.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ot=a.$constructor("$ZodDefault",(e,t)=>{h.init(e,t),e._zod.optin="optional",c.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>x(s,t)):x(o,t)}});function x(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const rt=a.$constructor("$ZodPrefault",(e,t)=>{h.init(e,t),e._zod.optin="optional",c.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),st=a.$constructor("$ZodNonOptional",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>B(s,e)):B(o,e)}});function B(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const it=a.$constructor("$ZodSuccess",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new a.$ZodEncodeError("ZodSuccess");const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.issues.length===0,n)):(n.value=o.issues.length===0,n)}}),ut=a.$constructor("$ZodCatch",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),c.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),c.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>c.finalizeIssue(i,r,a.config()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>c.finalizeIssue(s,r,a.config()))},input:n.value}),n.issues=[]),n)}}),ct=a.$constructor("$ZodNaN",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),at=a.$constructor("$ZodPipe",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"values",()=>t.in._zod.values),c.defineLazy(e._zod,"optin",()=>t.in._zod.optin),c.defineLazy(e._zod,"optout",()=>t.out._zod.optout),c.defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>k(i,t.in,r)):k(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>k(s,t.out,r)):k(o,t.out,r)}});function k(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const dt=a.$constructor("$ZodCodec",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"values",()=>t.in._zod.values),c.defineLazy(e._zod,"optin",()=>t.in._zod.optin),c.defineLazy(e._zod,"optout",()=>t.out._zod.optout),c.defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(i=>S(i,t,r)):S(s,t,r)}else{const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>S(i,t,r)):S(s,t,r)}}});function S(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const o=t.transform(e.value,e);return o instanceof Promise?o.then(s=>R(e,s,t.out,n)):R(e,o,t.out,n)}else{const o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(s=>R(e,s,t.in,n)):R(e,o,t.in,n)}}function R(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}const lt=a.$constructor("$ZodReadonly",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"propValues",()=>t.innerType._zod.propValues),c.defineLazy(e._zod,"values",()=>t.innerType._zod.values),c.defineLazy(e._zod,"optin",()=>t.innerType?._zod?.optin),c.defineLazy(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(K):K(o)}});function K(e){return e.value=Object.freeze(e.value),e}const pt=a.$constructor("$ZodTemplateLiteral",(e,t)=>{h.init(e,t);const n=[];for(const r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const o=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!o)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const s=o.startsWith("^")?1:0,i=o.endsWith("$")?o.length-1:o.length;n.push(o.slice(s,i))}else if(r===null||c.primitiveTypes.has(typeof r))n.push(c.escapeRegex(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),ft=a.$constructor("$ZodFunction",(e,t)=>(h.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){const o=e._def.input?b.parse(e._def.input,r):r,s=Reflect.apply(n,this,o);return e._def.output?b.parse(e._def.output,s):s}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const o=e._def.input?await b.parseAsync(e._def.input,r):r,s=await Reflect.apply(n,this,o);return e._def.output?await b.parseAsync(e._def.output,s):s}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new ee({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),ht=a.$constructor("$ZodPromise",(e,t)=>{h.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),vt=a.$constructor("$ZodLazy",(e,t)=>{h.init(e,t),c.defineLazy(e._zod,"innerType",()=>t.getter()),c.defineLazy(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),c.defineLazy(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),c.defineLazy(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),c.defineLazy(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),$t=a.$constructor("$ZodCustom",(e,t)=>{E.$ZodCheck.init(e,t),h.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>M(s,n,r,e));M(o,n,r,e)}});function M(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(c.issue(o))}}exports.clone=c.clone;exports.$ZodAny=Ce;exports.$ZodArray=Be;exports.$ZodBase64=ke;exports.$ZodBase64URL=Se;exports.$ZodBigInt=G;exports.$ZodBigIntFormat=ye;exports.$ZodBoolean=De;exports.$ZodCIDRv4=Pe;exports.$ZodCIDRv6=Te;exports.$ZodCUID=fe;exports.$ZodCUID2=he;exports.$ZodCatch=ut;exports.$ZodCodec=dt;exports.$ZodCustom=$t;exports.$ZodCustomStringFormat=Ee;exports.$ZodDate=xe;exports.$ZodDefault=ot;exports.$ZodDiscriminatedUnion=Je;exports.$ZodE164=Re;exports.$ZodEmail=ae;exports.$ZodEmoji=le;exports.$ZodEnum=He;exports.$ZodExactOptional=tt;exports.$ZodFile=Ye;exports.$ZodFunction=ft;exports.$ZodGUID=ue;exports.$ZodIPv4=we;exports.$ZodIPv6=be;exports.$ZodISODate=me;exports.$ZodISODateTime=ze;exports.$ZodISODuration=ge;exports.$ZodISOTime=Ze;exports.$ZodIntersection=We;exports.$ZodJWT=Le;exports.$ZodKSUID=_e;exports.$ZodLazy=vt;exports.$ZodLiteral=Qe;exports.$ZodMAC=Ie;exports.$ZodMap=Xe;exports.$ZodNaN=ct;exports.$ZodNanoID=pe;exports.$ZodNever=Ve;exports.$ZodNonOptional=st;exports.$ZodNull=je;exports.$ZodNullable=nt;exports.$ZodNumber=X;exports.$ZodNumberFormat=Oe;exports.$ZodObject=Y;exports.$ZodObjectJIT=Ke;exports.$ZodOptional=te;exports.$ZodPipe=at;exports.$ZodPrefault=rt;exports.$ZodPromise=ht;exports.$ZodReadonly=lt;exports.$ZodRecord=qe;exports.$ZodSet=Ge;exports.$ZodString=J;exports.$ZodStringFormat=_;exports.$ZodSuccess=it;exports.$ZodSymbol=Ne;exports.$ZodTemplateLiteral=pt;exports.$ZodTransform=et;exports.$ZodTuple=ee;exports.$ZodType=h;exports.$ZodULID=ve;exports.$ZodURL=de;exports.$ZodUUID=ce;exports.$ZodUndefined=Ue;exports.$ZodUnion=y;exports.$ZodUnknown=Ae;exports.$ZodVoid=Fe;exports.$ZodXID=$e;exports.$ZodXor=Me;exports.isValidBase64=D;exports.isValidBase64URL=W;exports.isValidJWT=q;
36
- //# sourceMappingURL=schemas.cjs.map