@wopee-io/wopee.wdio 5.2.2 → 5.2.5

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 (2199) hide show
  1. package/build/domain/model/config.interface.d.ts +3 -3
  2. package/build/utils/versionMetadata.js +2 -2
  3. package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +52 -20
  4. package/node_modules/@autonomous-testing/sdk/README.md +129 -36
  5. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +2 -2
  6. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +3 -1
  7. package/node_modules/@autonomous-testing/sdk/build/index.d.ts +0 -1
  8. package/node_modules/@autonomous-testing/sdk/build/index.js +0 -2
  9. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +6 -8
  10. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +16 -0
  11. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +121 -0
  12. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.d.ts +20 -0
  13. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +178 -0
  14. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
  15. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +4 -1
  16. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +14 -3
  17. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +6 -2
  18. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  19. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +13 -1
  20. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +8 -1
  21. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +2 -2
  22. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/README.md +145 -0
  23. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.d.ts +78 -0
  24. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.js +203 -0
  25. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.js.map +1 -0
  26. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  27. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.js +18 -0
  28. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  29. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/package.json +64 -0
  30. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/src/index.ts +345 -0
  31. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/src/promisify.ts +33 -0
  32. package/node_modules/@autonomous-testing/sdk/node_modules/axios/CHANGELOG.md +1934 -0
  33. package/node_modules/@autonomous-testing/sdk/node_modules/axios/LICENSE +7 -0
  34. package/node_modules/@autonomous-testing/sdk/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  35. package/node_modules/@autonomous-testing/sdk/node_modules/axios/README.md +2851 -0
  36. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.js +5807 -0
  37. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.min.js +5 -0
  38. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.min.js.map +1 -0
  39. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/browser/axios.cjs +5829 -0
  40. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.js +5850 -0
  41. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.min.js +3 -0
  42. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  43. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/node/axios.cjs +6808 -0
  44. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.d.cts +766 -0
  45. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.d.ts +787 -0
  46. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.js +45 -0
  47. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/README.md +36 -0
  48. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/adapters.js +132 -0
  49. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/fetch.js +696 -0
  50. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/http.js +1490 -0
  51. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/xhr.js +277 -0
  52. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/axios.js +89 -0
  53. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  54. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  55. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/isCancel.js +5 -0
  56. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/Axios.js +306 -0
  57. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/AxiosError.js +219 -0
  58. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  59. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  60. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/buildFullPath.js +76 -0
  61. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  62. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/mergeConfig.js +174 -0
  63. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/methodList.js +17 -0
  64. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  65. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/settle.js +27 -0
  66. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/transformData.js +28 -0
  67. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/defaults/index.js +178 -0
  68. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/defaults/transitional.js +10 -0
  69. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/env/classes/FormData.js +2 -0
  70. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/env/data.js +1 -0
  71. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  72. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  73. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  74. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  75. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  76. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/bind.js +14 -0
  77. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/buildURL.js +69 -0
  78. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/callbackify.js +18 -0
  79. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  80. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  81. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/cookies.js +64 -0
  82. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  83. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  84. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  85. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  86. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  87. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  88. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  89. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  90. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  91. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/null.js +2 -0
  92. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  93. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  94. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  95. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/readBlob.js +15 -0
  96. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  97. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  98. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  99. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/speedometer.js +55 -0
  100. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/spread.js +28 -0
  101. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/throttle.js +45 -0
  102. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/toFormData.js +279 -0
  103. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  104. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/trackStream.js +89 -0
  105. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/validator.js +112 -0
  106. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  107. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  108. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  109. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/index.js +13 -0
  110. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/common/utils.js +52 -0
  111. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/index.js +7 -0
  112. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  113. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  114. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  115. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/index.js +37 -0
  116. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/utils.js +1150 -0
  117. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/README.md +137 -0
  118. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  119. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
  120. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  121. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  122. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
  123. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  124. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  125. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  126. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  127. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
  128. package/node_modules/@autonomous-testing/sdk/node_modules/axios/package.json +203 -0
  129. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/CHANGELOG.md +686 -0
  130. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/README.md +355 -0
  131. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/browser.js +4 -0
  132. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/form_data.js +506 -0
  133. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/populate.js +10 -0
  134. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/package.json +82 -0
  135. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/README.md +163 -0
  136. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/index.cjs +105 -0
  137. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/index.js +103 -0
  138. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/package.json +43 -0
  139. package/node_modules/@autonomous-testing/sdk/package.json +27 -11
  140. package/node_modules/agent-base/LICENSE +22 -0
  141. package/node_modules/agent-base/README.md +69 -0
  142. package/node_modules/agent-base/dist/helpers.d.ts +15 -0
  143. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  144. package/node_modules/agent-base/dist/helpers.js +66 -0
  145. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  146. package/node_modules/agent-base/dist/index.d.ts +41 -0
  147. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  148. package/node_modules/agent-base/dist/index.js +178 -0
  149. package/node_modules/agent-base/dist/index.js.map +1 -0
  150. package/node_modules/agent-base/package.json +46 -0
  151. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  152. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  153. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  154. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  155. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  156. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  157. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  158. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  159. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  160. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  161. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  162. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  163. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  164. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  165. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  166. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  167. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  168. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  169. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  170. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  171. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  172. package/node_modules/debug/LICENSE +20 -0
  173. package/node_modules/debug/README.md +481 -0
  174. package/node_modules/debug/package.json +60 -0
  175. package/node_modules/debug/src/browser.js +271 -0
  176. package/node_modules/debug/src/common.js +274 -0
  177. package/node_modules/debug/src/index.js +10 -0
  178. package/node_modules/debug/src/node.js +263 -0
  179. package/node_modules/dotenv/CHANGELOG.md +520 -0
  180. package/node_modules/dotenv/LICENSE +23 -0
  181. package/node_modules/dotenv/README-es.md +411 -0
  182. package/node_modules/dotenv/README.md +645 -0
  183. package/node_modules/dotenv/SECURITY.md +1 -0
  184. package/node_modules/dotenv/config.js +9 -0
  185. package/node_modules/dotenv/lib/cli-options.js +17 -0
  186. package/node_modules/dotenv/lib/env-options.js +28 -0
  187. package/node_modules/dotenv/lib/main.d.ts +162 -0
  188. package/node_modules/dotenv/lib/main.js +386 -0
  189. package/node_modules/dotenv/package.json +62 -0
  190. package/node_modules/dunder-proto/.eslintrc +5 -0
  191. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  192. package/node_modules/dunder-proto/.nycrc +13 -0
  193. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  194. package/node_modules/dunder-proto/LICENSE +21 -0
  195. package/node_modules/dunder-proto/README.md +54 -0
  196. package/node_modules/dunder-proto/get.d.ts +5 -0
  197. package/node_modules/dunder-proto/get.js +30 -0
  198. package/node_modules/dunder-proto/package.json +76 -0
  199. package/node_modules/dunder-proto/set.d.ts +5 -0
  200. package/node_modules/dunder-proto/set.js +35 -0
  201. package/node_modules/dunder-proto/test/get.js +34 -0
  202. package/node_modules/dunder-proto/test/index.js +4 -0
  203. package/node_modules/dunder-proto/test/set.js +50 -0
  204. package/node_modules/dunder-proto/tsconfig.json +9 -0
  205. package/node_modules/es-define-property/.eslintrc +13 -0
  206. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  207. package/node_modules/es-define-property/.nycrc +9 -0
  208. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  209. package/node_modules/es-define-property/LICENSE +21 -0
  210. package/node_modules/es-define-property/README.md +49 -0
  211. package/node_modules/es-define-property/index.d.ts +3 -0
  212. package/node_modules/es-define-property/index.js +14 -0
  213. package/node_modules/es-define-property/package.json +81 -0
  214. package/node_modules/es-define-property/test/index.js +56 -0
  215. package/node_modules/es-define-property/tsconfig.json +10 -0
  216. package/node_modules/es-errors/.eslintrc +5 -0
  217. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  218. package/node_modules/es-errors/CHANGELOG.md +40 -0
  219. package/node_modules/es-errors/LICENSE +21 -0
  220. package/node_modules/es-errors/README.md +55 -0
  221. package/node_modules/es-errors/eval.d.ts +3 -0
  222. package/node_modules/es-errors/eval.js +4 -0
  223. package/node_modules/es-errors/index.d.ts +3 -0
  224. package/node_modules/es-errors/index.js +4 -0
  225. package/node_modules/es-errors/package.json +80 -0
  226. package/node_modules/es-errors/range.d.ts +3 -0
  227. package/node_modules/es-errors/range.js +4 -0
  228. package/node_modules/es-errors/ref.d.ts +3 -0
  229. package/node_modules/es-errors/ref.js +4 -0
  230. package/node_modules/es-errors/syntax.d.ts +3 -0
  231. package/node_modules/es-errors/syntax.js +4 -0
  232. package/node_modules/es-errors/test/index.js +19 -0
  233. package/node_modules/es-errors/tsconfig.json +49 -0
  234. package/node_modules/es-errors/type.d.ts +3 -0
  235. package/node_modules/es-errors/type.js +4 -0
  236. package/node_modules/es-errors/uri.d.ts +3 -0
  237. package/node_modules/es-errors/uri.js +4 -0
  238. package/node_modules/es-object-atoms/.eslintrc +16 -0
  239. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  240. package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  241. package/node_modules/es-object-atoms/LICENSE +21 -0
  242. package/node_modules/es-object-atoms/README.md +63 -0
  243. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  244. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  245. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  246. package/node_modules/es-object-atoms/ToObject.js +10 -0
  247. package/node_modules/es-object-atoms/index.d.ts +3 -0
  248. package/node_modules/es-object-atoms/index.js +4 -0
  249. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  250. package/node_modules/es-object-atoms/isObject.js +6 -0
  251. package/node_modules/es-object-atoms/package.json +79 -0
  252. package/node_modules/es-object-atoms/test/index.js +38 -0
  253. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  254. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  255. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  256. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  257. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  258. package/node_modules/es-set-tostringtag/README.md +53 -0
  259. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  260. package/node_modules/es-set-tostringtag/index.js +35 -0
  261. package/node_modules/es-set-tostringtag/package.json +78 -0
  262. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  263. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  264. package/node_modules/follow-redirects/README.md +7 -5
  265. package/node_modules/follow-redirects/index.js +45 -8
  266. package/node_modules/follow-redirects/package.json +2 -2
  267. package/node_modules/function-bind/.eslintrc +21 -0
  268. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  269. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  270. package/node_modules/function-bind/.nycrc +13 -0
  271. package/node_modules/function-bind/CHANGELOG.md +136 -0
  272. package/node_modules/function-bind/LICENSE +20 -0
  273. package/node_modules/function-bind/README.md +46 -0
  274. package/node_modules/function-bind/implementation.js +84 -0
  275. package/node_modules/function-bind/index.js +5 -0
  276. package/node_modules/function-bind/package.json +87 -0
  277. package/node_modules/function-bind/test/.eslintrc +9 -0
  278. package/node_modules/function-bind/test/index.js +252 -0
  279. package/node_modules/get-intrinsic/.eslintrc +42 -0
  280. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  281. package/node_modules/get-intrinsic/.nycrc +9 -0
  282. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  283. package/node_modules/get-intrinsic/LICENSE +21 -0
  284. package/node_modules/get-intrinsic/README.md +71 -0
  285. package/node_modules/get-intrinsic/index.js +378 -0
  286. package/node_modules/get-intrinsic/package.json +97 -0
  287. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  288. package/node_modules/get-proto/.eslintrc +10 -0
  289. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  290. package/node_modules/get-proto/.nycrc +9 -0
  291. package/node_modules/get-proto/CHANGELOG.md +21 -0
  292. package/node_modules/get-proto/LICENSE +21 -0
  293. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  294. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  295. package/node_modules/get-proto/README.md +50 -0
  296. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  297. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  298. package/node_modules/get-proto/index.d.ts +5 -0
  299. package/node_modules/get-proto/index.js +27 -0
  300. package/node_modules/get-proto/package.json +81 -0
  301. package/node_modules/get-proto/test/index.js +68 -0
  302. package/node_modules/get-proto/tsconfig.json +9 -0
  303. package/node_modules/gopd/.eslintrc +16 -0
  304. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  305. package/node_modules/gopd/CHANGELOG.md +45 -0
  306. package/node_modules/gopd/LICENSE +21 -0
  307. package/node_modules/gopd/README.md +40 -0
  308. package/node_modules/gopd/gOPD.d.ts +1 -0
  309. package/node_modules/gopd/gOPD.js +4 -0
  310. package/node_modules/gopd/index.d.ts +5 -0
  311. package/node_modules/gopd/index.js +15 -0
  312. package/node_modules/gopd/package.json +77 -0
  313. package/node_modules/gopd/test/index.js +36 -0
  314. package/node_modules/gopd/tsconfig.json +9 -0
  315. package/node_modules/has-symbols/.eslintrc +11 -0
  316. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  317. package/node_modules/has-symbols/.nycrc +9 -0
  318. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  319. package/node_modules/has-symbols/LICENSE +21 -0
  320. package/node_modules/has-symbols/README.md +46 -0
  321. package/node_modules/has-symbols/index.d.ts +3 -0
  322. package/node_modules/has-symbols/index.js +14 -0
  323. package/node_modules/has-symbols/package.json +111 -0
  324. package/node_modules/has-symbols/shams.d.ts +3 -0
  325. package/node_modules/has-symbols/shams.js +45 -0
  326. package/node_modules/has-symbols/test/index.js +22 -0
  327. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  328. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  329. package/node_modules/has-symbols/test/tests.js +58 -0
  330. package/node_modules/has-symbols/tsconfig.json +10 -0
  331. package/node_modules/has-tostringtag/.eslintrc +5 -0
  332. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  333. package/node_modules/has-tostringtag/.nycrc +13 -0
  334. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  335. package/node_modules/has-tostringtag/LICENSE +21 -0
  336. package/node_modules/has-tostringtag/README.md +46 -0
  337. package/node_modules/has-tostringtag/index.d.ts +3 -0
  338. package/node_modules/has-tostringtag/index.js +8 -0
  339. package/node_modules/has-tostringtag/package.json +108 -0
  340. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  341. package/node_modules/has-tostringtag/shams.js +8 -0
  342. package/node_modules/has-tostringtag/test/index.js +21 -0
  343. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  344. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  345. package/node_modules/has-tostringtag/test/tests.js +15 -0
  346. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  347. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  348. package/node_modules/hasown/.nycrc +13 -0
  349. package/node_modules/hasown/CHANGELOG.md +58 -0
  350. package/node_modules/hasown/LICENSE +21 -0
  351. package/node_modules/hasown/README.md +40 -0
  352. package/node_modules/hasown/eslint.config.mjs +6 -0
  353. package/node_modules/hasown/index.d.ts +3 -0
  354. package/node_modules/hasown/index.js +8 -0
  355. package/node_modules/hasown/package.json +91 -0
  356. package/node_modules/hasown/tsconfig.json +6 -0
  357. package/node_modules/http-proxy-agent/LICENSE +22 -0
  358. package/node_modules/http-proxy-agent/README.md +44 -0
  359. package/node_modules/http-proxy-agent/dist/index.d.ts +44 -0
  360. package/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
  361. package/node_modules/http-proxy-agent/dist/index.js +148 -0
  362. package/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  363. package/node_modules/http-proxy-agent/package.json +47 -0
  364. package/node_modules/https-proxy-agent/LICENSE +22 -0
  365. package/node_modules/https-proxy-agent/README.md +70 -0
  366. package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
  367. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  368. package/node_modules/https-proxy-agent/dist/index.js +180 -0
  369. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  370. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
  371. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  372. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  373. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  374. package/node_modules/https-proxy-agent/package.json +50 -0
  375. package/node_modules/lodash/LICENSE +47 -0
  376. package/node_modules/lodash/README.md +39 -0
  377. package/node_modules/lodash/_DataView.js +7 -0
  378. package/node_modules/lodash/_Hash.js +32 -0
  379. package/node_modules/lodash/_LazyWrapper.js +28 -0
  380. package/node_modules/lodash/_ListCache.js +32 -0
  381. package/node_modules/lodash/_LodashWrapper.js +22 -0
  382. package/node_modules/lodash/_Map.js +7 -0
  383. package/node_modules/lodash/_MapCache.js +32 -0
  384. package/node_modules/lodash/_Promise.js +7 -0
  385. package/node_modules/lodash/_Set.js +7 -0
  386. package/node_modules/lodash/_SetCache.js +27 -0
  387. package/node_modules/lodash/_Stack.js +27 -0
  388. package/node_modules/lodash/_Symbol.js +6 -0
  389. package/node_modules/lodash/_Uint8Array.js +6 -0
  390. package/node_modules/lodash/_WeakMap.js +7 -0
  391. package/node_modules/lodash/_apply.js +21 -0
  392. package/node_modules/lodash/_arrayAggregator.js +22 -0
  393. package/node_modules/lodash/_arrayEach.js +22 -0
  394. package/node_modules/lodash/_arrayEachRight.js +21 -0
  395. package/node_modules/lodash/_arrayEvery.js +23 -0
  396. package/node_modules/lodash/_arrayFilter.js +25 -0
  397. package/node_modules/lodash/_arrayIncludes.js +17 -0
  398. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  399. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  400. package/node_modules/lodash/_arrayMap.js +21 -0
  401. package/node_modules/lodash/_arrayPush.js +20 -0
  402. package/node_modules/lodash/_arrayReduce.js +26 -0
  403. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  404. package/node_modules/lodash/_arraySample.js +15 -0
  405. package/node_modules/lodash/_arraySampleSize.js +17 -0
  406. package/node_modules/lodash/_arrayShuffle.js +15 -0
  407. package/node_modules/lodash/_arraySome.js +23 -0
  408. package/node_modules/lodash/_asciiSize.js +12 -0
  409. package/node_modules/lodash/_asciiToArray.js +12 -0
  410. package/node_modules/lodash/_asciiWords.js +15 -0
  411. package/node_modules/lodash/_assignMergeValue.js +20 -0
  412. package/node_modules/lodash/_assignValue.js +28 -0
  413. package/node_modules/lodash/_assocIndexOf.js +21 -0
  414. package/node_modules/lodash/_baseAggregator.js +21 -0
  415. package/node_modules/lodash/_baseAssign.js +17 -0
  416. package/node_modules/lodash/_baseAssignIn.js +17 -0
  417. package/node_modules/lodash/_baseAssignValue.js +25 -0
  418. package/node_modules/lodash/_baseAt.js +23 -0
  419. package/node_modules/lodash/_baseClamp.js +22 -0
  420. package/node_modules/lodash/_baseClone.js +166 -0
  421. package/node_modules/lodash/_baseConforms.js +18 -0
  422. package/node_modules/lodash/_baseConformsTo.js +27 -0
  423. package/node_modules/lodash/_baseCreate.js +30 -0
  424. package/node_modules/lodash/_baseDelay.js +21 -0
  425. package/node_modules/lodash/_baseDifference.js +67 -0
  426. package/node_modules/lodash/_baseEach.js +14 -0
  427. package/node_modules/lodash/_baseEachRight.js +14 -0
  428. package/node_modules/lodash/_baseEvery.js +21 -0
  429. package/node_modules/lodash/_baseExtremum.js +32 -0
  430. package/node_modules/lodash/_baseFill.js +32 -0
  431. package/node_modules/lodash/_baseFilter.js +21 -0
  432. package/node_modules/lodash/_baseFindIndex.js +24 -0
  433. package/node_modules/lodash/_baseFindKey.js +23 -0
  434. package/node_modules/lodash/_baseFlatten.js +38 -0
  435. package/node_modules/lodash/_baseFor.js +16 -0
  436. package/node_modules/lodash/_baseForOwn.js +16 -0
  437. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  438. package/node_modules/lodash/_baseForRight.js +15 -0
  439. package/node_modules/lodash/_baseFunctions.js +19 -0
  440. package/node_modules/lodash/_baseGet.js +24 -0
  441. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  442. package/node_modules/lodash/_baseGetTag.js +28 -0
  443. package/node_modules/lodash/_baseGt.js +14 -0
  444. package/node_modules/lodash/_baseHas.js +19 -0
  445. package/node_modules/lodash/_baseHasIn.js +13 -0
  446. package/node_modules/lodash/_baseInRange.js +18 -0
  447. package/node_modules/lodash/_baseIndexOf.js +20 -0
  448. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  449. package/node_modules/lodash/_baseIntersection.js +74 -0
  450. package/node_modules/lodash/_baseInverter.js +21 -0
  451. package/node_modules/lodash/_baseInvoke.js +24 -0
  452. package/node_modules/lodash/_baseIsArguments.js +18 -0
  453. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  454. package/node_modules/lodash/_baseIsDate.js +18 -0
  455. package/node_modules/lodash/_baseIsEqual.js +28 -0
  456. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  457. package/node_modules/lodash/_baseIsMap.js +18 -0
  458. package/node_modules/lodash/_baseIsMatch.js +62 -0
  459. package/node_modules/lodash/_baseIsNaN.js +12 -0
  460. package/node_modules/lodash/_baseIsNative.js +47 -0
  461. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  462. package/node_modules/lodash/_baseIsSet.js +18 -0
  463. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  464. package/node_modules/lodash/_baseIteratee.js +31 -0
  465. package/node_modules/lodash/_baseKeys.js +30 -0
  466. package/node_modules/lodash/_baseKeysIn.js +33 -0
  467. package/node_modules/lodash/_baseLodash.js +10 -0
  468. package/node_modules/lodash/_baseLt.js +14 -0
  469. package/node_modules/lodash/_baseMap.js +22 -0
  470. package/node_modules/lodash/_baseMatches.js +22 -0
  471. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  472. package/node_modules/lodash/_baseMean.js +20 -0
  473. package/node_modules/lodash/_baseMerge.js +42 -0
  474. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  475. package/node_modules/lodash/_baseNth.js +20 -0
  476. package/node_modules/lodash/_baseOrderBy.js +49 -0
  477. package/node_modules/lodash/_basePick.js +19 -0
  478. package/node_modules/lodash/_basePickBy.js +30 -0
  479. package/node_modules/lodash/_baseProperty.js +14 -0
  480. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  481. package/node_modules/lodash/_basePropertyOf.js +14 -0
  482. package/node_modules/lodash/_basePullAll.js +51 -0
  483. package/node_modules/lodash/_basePullAt.js +37 -0
  484. package/node_modules/lodash/_baseRandom.js +18 -0
  485. package/node_modules/lodash/_baseRange.js +28 -0
  486. package/node_modules/lodash/_baseReduce.js +23 -0
  487. package/node_modules/lodash/_baseRepeat.js +35 -0
  488. package/node_modules/lodash/_baseRest.js +17 -0
  489. package/node_modules/lodash/_baseSample.js +15 -0
  490. package/node_modules/lodash/_baseSampleSize.js +18 -0
  491. package/node_modules/lodash/_baseSet.js +51 -0
  492. package/node_modules/lodash/_baseSetData.js +17 -0
  493. package/node_modules/lodash/_baseSetToString.js +22 -0
  494. package/node_modules/lodash/_baseShuffle.js +15 -0
  495. package/node_modules/lodash/_baseSlice.js +31 -0
  496. package/node_modules/lodash/_baseSome.js +22 -0
  497. package/node_modules/lodash/_baseSortBy.js +21 -0
  498. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  499. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  500. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  501. package/node_modules/lodash/_baseSum.js +24 -0
  502. package/node_modules/lodash/_baseTimes.js +20 -0
  503. package/node_modules/lodash/_baseToNumber.js +24 -0
  504. package/node_modules/lodash/_baseToPairs.js +18 -0
  505. package/node_modules/lodash/_baseToString.js +37 -0
  506. package/node_modules/lodash/_baseTrim.js +19 -0
  507. package/node_modules/lodash/_baseUnary.js +14 -0
  508. package/node_modules/lodash/_baseUniq.js +72 -0
  509. package/node_modules/lodash/_baseUnset.js +52 -0
  510. package/node_modules/lodash/_baseUpdate.js +18 -0
  511. package/node_modules/lodash/_baseValues.js +19 -0
  512. package/node_modules/lodash/_baseWhile.js +26 -0
  513. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  514. package/node_modules/lodash/_baseXor.js +36 -0
  515. package/node_modules/lodash/_baseZipObject.js +23 -0
  516. package/node_modules/lodash/_cacheHas.js +13 -0
  517. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  518. package/node_modules/lodash/_castFunction.js +14 -0
  519. package/node_modules/lodash/_castPath.js +21 -0
  520. package/node_modules/lodash/_castRest.js +14 -0
  521. package/node_modules/lodash/_castSlice.js +18 -0
  522. package/node_modules/lodash/_charsEndIndex.js +19 -0
  523. package/node_modules/lodash/_charsStartIndex.js +20 -0
  524. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  525. package/node_modules/lodash/_cloneBuffer.js +35 -0
  526. package/node_modules/lodash/_cloneDataView.js +16 -0
  527. package/node_modules/lodash/_cloneRegExp.js +17 -0
  528. package/node_modules/lodash/_cloneSymbol.js +18 -0
  529. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  530. package/node_modules/lodash/_compareAscending.js +41 -0
  531. package/node_modules/lodash/_compareMultiple.js +44 -0
  532. package/node_modules/lodash/_composeArgs.js +39 -0
  533. package/node_modules/lodash/_composeArgsRight.js +41 -0
  534. package/node_modules/lodash/_copyArray.js +20 -0
  535. package/node_modules/lodash/_copyObject.js +40 -0
  536. package/node_modules/lodash/_copySymbols.js +16 -0
  537. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  538. package/node_modules/lodash/_coreJsData.js +6 -0
  539. package/node_modules/lodash/_countHolders.js +21 -0
  540. package/node_modules/lodash/_createAggregator.js +23 -0
  541. package/node_modules/lodash/_createAssigner.js +37 -0
  542. package/node_modules/lodash/_createBaseEach.js +32 -0
  543. package/node_modules/lodash/_createBaseFor.js +25 -0
  544. package/node_modules/lodash/_createBind.js +28 -0
  545. package/node_modules/lodash/_createCaseFirst.js +33 -0
  546. package/node_modules/lodash/_createCompounder.js +24 -0
  547. package/node_modules/lodash/_createCtor.js +37 -0
  548. package/node_modules/lodash/_createCurry.js +46 -0
  549. package/node_modules/lodash/_createFind.js +25 -0
  550. package/node_modules/lodash/_createFlow.js +78 -0
  551. package/node_modules/lodash/_createHybrid.js +92 -0
  552. package/node_modules/lodash/_createInverter.js +17 -0
  553. package/node_modules/lodash/_createMathOperation.js +38 -0
  554. package/node_modules/lodash/_createOver.js +27 -0
  555. package/node_modules/lodash/_createPadding.js +33 -0
  556. package/node_modules/lodash/_createPartial.js +43 -0
  557. package/node_modules/lodash/_createRange.js +30 -0
  558. package/node_modules/lodash/_createRecurry.js +56 -0
  559. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  560. package/node_modules/lodash/_createRound.js +35 -0
  561. package/node_modules/lodash/_createSet.js +19 -0
  562. package/node_modules/lodash/_createToPairs.js +30 -0
  563. package/node_modules/lodash/_createWrap.js +106 -0
  564. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  565. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  566. package/node_modules/lodash/_customOmitClone.js +16 -0
  567. package/node_modules/lodash/_deburrLetter.js +71 -0
  568. package/node_modules/lodash/_defineProperty.js +11 -0
  569. package/node_modules/lodash/_equalArrays.js +84 -0
  570. package/node_modules/lodash/_equalByTag.js +112 -0
  571. package/node_modules/lodash/_equalObjects.js +90 -0
  572. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  573. package/node_modules/lodash/_escapeStringChar.js +22 -0
  574. package/node_modules/lodash/_flatRest.js +16 -0
  575. package/node_modules/lodash/_freeGlobal.js +4 -0
  576. package/node_modules/lodash/_getAllKeys.js +16 -0
  577. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  578. package/node_modules/lodash/_getData.js +15 -0
  579. package/node_modules/lodash/_getFuncName.js +31 -0
  580. package/node_modules/lodash/_getHolder.js +13 -0
  581. package/node_modules/lodash/_getMapData.js +18 -0
  582. package/node_modules/lodash/_getMatchData.js +24 -0
  583. package/node_modules/lodash/_getNative.js +17 -0
  584. package/node_modules/lodash/_getPrototype.js +6 -0
  585. package/node_modules/lodash/_getRawTag.js +46 -0
  586. package/node_modules/lodash/_getSymbols.js +30 -0
  587. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  588. package/node_modules/lodash/_getTag.js +58 -0
  589. package/node_modules/lodash/_getValue.js +13 -0
  590. package/node_modules/lodash/_getView.js +33 -0
  591. package/node_modules/lodash/_getWrapDetails.js +17 -0
  592. package/node_modules/lodash/_hasPath.js +39 -0
  593. package/node_modules/lodash/_hasUnicode.js +26 -0
  594. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  595. package/node_modules/lodash/_hashClear.js +15 -0
  596. package/node_modules/lodash/_hashDelete.js +17 -0
  597. package/node_modules/lodash/_hashGet.js +30 -0
  598. package/node_modules/lodash/_hashHas.js +23 -0
  599. package/node_modules/lodash/_hashSet.js +23 -0
  600. package/node_modules/lodash/_initCloneArray.js +26 -0
  601. package/node_modules/lodash/_initCloneByTag.js +77 -0
  602. package/node_modules/lodash/_initCloneObject.js +18 -0
  603. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  604. package/node_modules/lodash/_isFlattenable.js +20 -0
  605. package/node_modules/lodash/_isIndex.js +25 -0
  606. package/node_modules/lodash/_isIterateeCall.js +30 -0
  607. package/node_modules/lodash/_isKey.js +29 -0
  608. package/node_modules/lodash/_isKeyable.js +15 -0
  609. package/node_modules/lodash/_isLaziable.js +28 -0
  610. package/node_modules/lodash/_isMaskable.js +14 -0
  611. package/node_modules/lodash/_isMasked.js +20 -0
  612. package/node_modules/lodash/_isPrototype.js +18 -0
  613. package/node_modules/lodash/_isStrictComparable.js +15 -0
  614. package/node_modules/lodash/_iteratorToArray.js +18 -0
  615. package/node_modules/lodash/_lazyClone.js +23 -0
  616. package/node_modules/lodash/_lazyReverse.js +23 -0
  617. package/node_modules/lodash/_lazyValue.js +69 -0
  618. package/node_modules/lodash/_listCacheClear.js +13 -0
  619. package/node_modules/lodash/_listCacheDelete.js +35 -0
  620. package/node_modules/lodash/_listCacheGet.js +19 -0
  621. package/node_modules/lodash/_listCacheHas.js +16 -0
  622. package/node_modules/lodash/_listCacheSet.js +26 -0
  623. package/node_modules/lodash/_mapCacheClear.js +21 -0
  624. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  625. package/node_modules/lodash/_mapCacheGet.js +16 -0
  626. package/node_modules/lodash/_mapCacheHas.js +16 -0
  627. package/node_modules/lodash/_mapCacheSet.js +22 -0
  628. package/node_modules/lodash/_mapToArray.js +18 -0
  629. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  630. package/node_modules/lodash/_memoizeCapped.js +26 -0
  631. package/node_modules/lodash/_mergeData.js +90 -0
  632. package/node_modules/lodash/_metaMap.js +6 -0
  633. package/node_modules/lodash/_nativeCreate.js +6 -0
  634. package/node_modules/lodash/_nativeKeys.js +6 -0
  635. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  636. package/node_modules/lodash/_nodeUtil.js +30 -0
  637. package/node_modules/lodash/_objectToString.js +22 -0
  638. package/node_modules/lodash/_overArg.js +15 -0
  639. package/node_modules/lodash/_overRest.js +36 -0
  640. package/node_modules/lodash/_parent.js +16 -0
  641. package/node_modules/lodash/_reEscape.js +4 -0
  642. package/node_modules/lodash/_reEvaluate.js +4 -0
  643. package/node_modules/lodash/_reInterpolate.js +4 -0
  644. package/node_modules/lodash/_realNames.js +4 -0
  645. package/node_modules/lodash/_reorder.js +29 -0
  646. package/node_modules/lodash/_replaceHolders.js +29 -0
  647. package/node_modules/lodash/_root.js +9 -0
  648. package/node_modules/lodash/_safeGet.js +21 -0
  649. package/node_modules/lodash/_setCacheAdd.js +19 -0
  650. package/node_modules/lodash/_setCacheHas.js +14 -0
  651. package/node_modules/lodash/_setData.js +20 -0
  652. package/node_modules/lodash/_setToArray.js +18 -0
  653. package/node_modules/lodash/_setToPairs.js +18 -0
  654. package/node_modules/lodash/_setToString.js +14 -0
  655. package/node_modules/lodash/_setWrapToString.js +21 -0
  656. package/node_modules/lodash/_shortOut.js +37 -0
  657. package/node_modules/lodash/_shuffleSelf.js +28 -0
  658. package/node_modules/lodash/_stackClear.js +15 -0
  659. package/node_modules/lodash/_stackDelete.js +18 -0
  660. package/node_modules/lodash/_stackGet.js +14 -0
  661. package/node_modules/lodash/_stackHas.js +14 -0
  662. package/node_modules/lodash/_stackSet.js +34 -0
  663. package/node_modules/lodash/_strictIndexOf.js +23 -0
  664. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  665. package/node_modules/lodash/_stringSize.js +18 -0
  666. package/node_modules/lodash/_stringToArray.js +18 -0
  667. package/node_modules/lodash/_stringToPath.js +27 -0
  668. package/node_modules/lodash/_toKey.js +21 -0
  669. package/node_modules/lodash/_toSource.js +26 -0
  670. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  671. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  672. package/node_modules/lodash/_unicodeSize.js +44 -0
  673. package/node_modules/lodash/_unicodeToArray.js +40 -0
  674. package/node_modules/lodash/_unicodeWords.js +69 -0
  675. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  676. package/node_modules/lodash/_wrapperClone.js +23 -0
  677. package/node_modules/lodash/add.js +22 -0
  678. package/node_modules/lodash/after.js +42 -0
  679. package/node_modules/lodash/array.js +67 -0
  680. package/node_modules/lodash/ary.js +29 -0
  681. package/node_modules/lodash/assign.js +58 -0
  682. package/node_modules/lodash/assignIn.js +40 -0
  683. package/node_modules/lodash/assignInWith.js +38 -0
  684. package/node_modules/lodash/assignWith.js +37 -0
  685. package/node_modules/lodash/at.js +23 -0
  686. package/node_modules/lodash/attempt.js +35 -0
  687. package/node_modules/lodash/before.js +40 -0
  688. package/node_modules/lodash/bind.js +57 -0
  689. package/node_modules/lodash/bindAll.js +41 -0
  690. package/node_modules/lodash/bindKey.js +68 -0
  691. package/node_modules/lodash/camelCase.js +29 -0
  692. package/node_modules/lodash/capitalize.js +23 -0
  693. package/node_modules/lodash/castArray.js +44 -0
  694. package/node_modules/lodash/ceil.js +26 -0
  695. package/node_modules/lodash/chain.js +38 -0
  696. package/node_modules/lodash/chunk.js +50 -0
  697. package/node_modules/lodash/clamp.js +39 -0
  698. package/node_modules/lodash/clone.js +36 -0
  699. package/node_modules/lodash/cloneDeep.js +29 -0
  700. package/node_modules/lodash/cloneDeepWith.js +40 -0
  701. package/node_modules/lodash/cloneWith.js +42 -0
  702. package/node_modules/lodash/collection.js +30 -0
  703. package/node_modules/lodash/commit.js +33 -0
  704. package/node_modules/lodash/compact.js +31 -0
  705. package/node_modules/lodash/concat.js +43 -0
  706. package/node_modules/lodash/cond.js +60 -0
  707. package/node_modules/lodash/conforms.js +35 -0
  708. package/node_modules/lodash/conformsTo.js +32 -0
  709. package/node_modules/lodash/constant.js +26 -0
  710. package/node_modules/lodash/core.js +3877 -0
  711. package/node_modules/lodash/core.min.js +30 -0
  712. package/node_modules/lodash/countBy.js +40 -0
  713. package/node_modules/lodash/create.js +43 -0
  714. package/node_modules/lodash/curry.js +57 -0
  715. package/node_modules/lodash/curryRight.js +54 -0
  716. package/node_modules/lodash/date.js +3 -0
  717. package/node_modules/lodash/debounce.js +191 -0
  718. package/node_modules/lodash/deburr.js +45 -0
  719. package/node_modules/lodash/defaultTo.js +25 -0
  720. package/node_modules/lodash/defaults.js +64 -0
  721. package/node_modules/lodash/defaultsDeep.js +30 -0
  722. package/node_modules/lodash/defer.js +26 -0
  723. package/node_modules/lodash/delay.js +28 -0
  724. package/node_modules/lodash/difference.js +33 -0
  725. package/node_modules/lodash/differenceBy.js +44 -0
  726. package/node_modules/lodash/differenceWith.js +40 -0
  727. package/node_modules/lodash/divide.js +22 -0
  728. package/node_modules/lodash/drop.js +38 -0
  729. package/node_modules/lodash/dropRight.js +39 -0
  730. package/node_modules/lodash/dropRightWhile.js +45 -0
  731. package/node_modules/lodash/dropWhile.js +45 -0
  732. package/node_modules/lodash/each.js +1 -0
  733. package/node_modules/lodash/eachRight.js +1 -0
  734. package/node_modules/lodash/endsWith.js +43 -0
  735. package/node_modules/lodash/entries.js +1 -0
  736. package/node_modules/lodash/entriesIn.js +1 -0
  737. package/node_modules/lodash/eq.js +37 -0
  738. package/node_modules/lodash/escape.js +43 -0
  739. package/node_modules/lodash/escapeRegExp.js +32 -0
  740. package/node_modules/lodash/every.js +56 -0
  741. package/node_modules/lodash/extend.js +1 -0
  742. package/node_modules/lodash/extendWith.js +1 -0
  743. package/node_modules/lodash/fill.js +45 -0
  744. package/node_modules/lodash/filter.js +52 -0
  745. package/node_modules/lodash/find.js +42 -0
  746. package/node_modules/lodash/findIndex.js +55 -0
  747. package/node_modules/lodash/findKey.js +44 -0
  748. package/node_modules/lodash/findLast.js +25 -0
  749. package/node_modules/lodash/findLastIndex.js +59 -0
  750. package/node_modules/lodash/findLastKey.js +44 -0
  751. package/node_modules/lodash/first.js +1 -0
  752. package/node_modules/lodash/flatMap.js +29 -0
  753. package/node_modules/lodash/flatMapDeep.js +31 -0
  754. package/node_modules/lodash/flatMapDepth.js +31 -0
  755. package/node_modules/lodash/flatten.js +22 -0
  756. package/node_modules/lodash/flattenDeep.js +25 -0
  757. package/node_modules/lodash/flattenDepth.js +33 -0
  758. package/node_modules/lodash/flip.js +28 -0
  759. package/node_modules/lodash/floor.js +26 -0
  760. package/node_modules/lodash/flow.js +27 -0
  761. package/node_modules/lodash/flowRight.js +26 -0
  762. package/node_modules/lodash/forEach.js +41 -0
  763. package/node_modules/lodash/forEachRight.js +31 -0
  764. package/node_modules/lodash/forIn.js +39 -0
  765. package/node_modules/lodash/forInRight.js +37 -0
  766. package/node_modules/lodash/forOwn.js +36 -0
  767. package/node_modules/lodash/forOwnRight.js +34 -0
  768. package/node_modules/lodash/fp/F.js +1 -0
  769. package/node_modules/lodash/fp/T.js +1 -0
  770. package/node_modules/lodash/fp/__.js +1 -0
  771. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  772. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  773. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  774. package/node_modules/lodash/fp/_mapping.js +358 -0
  775. package/node_modules/lodash/fp/_util.js +16 -0
  776. package/node_modules/lodash/fp/add.js +5 -0
  777. package/node_modules/lodash/fp/after.js +5 -0
  778. package/node_modules/lodash/fp/all.js +1 -0
  779. package/node_modules/lodash/fp/allPass.js +1 -0
  780. package/node_modules/lodash/fp/always.js +1 -0
  781. package/node_modules/lodash/fp/any.js +1 -0
  782. package/node_modules/lodash/fp/anyPass.js +1 -0
  783. package/node_modules/lodash/fp/apply.js +1 -0
  784. package/node_modules/lodash/fp/array.js +2 -0
  785. package/node_modules/lodash/fp/ary.js +5 -0
  786. package/node_modules/lodash/fp/assign.js +5 -0
  787. package/node_modules/lodash/fp/assignAll.js +5 -0
  788. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  789. package/node_modules/lodash/fp/assignIn.js +5 -0
  790. package/node_modules/lodash/fp/assignInAll.js +5 -0
  791. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  792. package/node_modules/lodash/fp/assignInWith.js +5 -0
  793. package/node_modules/lodash/fp/assignWith.js +5 -0
  794. package/node_modules/lodash/fp/assoc.js +1 -0
  795. package/node_modules/lodash/fp/assocPath.js +1 -0
  796. package/node_modules/lodash/fp/at.js +5 -0
  797. package/node_modules/lodash/fp/attempt.js +5 -0
  798. package/node_modules/lodash/fp/before.js +5 -0
  799. package/node_modules/lodash/fp/bind.js +5 -0
  800. package/node_modules/lodash/fp/bindAll.js +5 -0
  801. package/node_modules/lodash/fp/bindKey.js +5 -0
  802. package/node_modules/lodash/fp/camelCase.js +5 -0
  803. package/node_modules/lodash/fp/capitalize.js +5 -0
  804. package/node_modules/lodash/fp/castArray.js +5 -0
  805. package/node_modules/lodash/fp/ceil.js +5 -0
  806. package/node_modules/lodash/fp/chain.js +5 -0
  807. package/node_modules/lodash/fp/chunk.js +5 -0
  808. package/node_modules/lodash/fp/clamp.js +5 -0
  809. package/node_modules/lodash/fp/clone.js +5 -0
  810. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  811. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  812. package/node_modules/lodash/fp/cloneWith.js +5 -0
  813. package/node_modules/lodash/fp/collection.js +2 -0
  814. package/node_modules/lodash/fp/commit.js +5 -0
  815. package/node_modules/lodash/fp/compact.js +5 -0
  816. package/node_modules/lodash/fp/complement.js +1 -0
  817. package/node_modules/lodash/fp/compose.js +1 -0
  818. package/node_modules/lodash/fp/concat.js +5 -0
  819. package/node_modules/lodash/fp/cond.js +5 -0
  820. package/node_modules/lodash/fp/conforms.js +1 -0
  821. package/node_modules/lodash/fp/conformsTo.js +5 -0
  822. package/node_modules/lodash/fp/constant.js +5 -0
  823. package/node_modules/lodash/fp/contains.js +1 -0
  824. package/node_modules/lodash/fp/convert.js +18 -0
  825. package/node_modules/lodash/fp/countBy.js +5 -0
  826. package/node_modules/lodash/fp/create.js +5 -0
  827. package/node_modules/lodash/fp/curry.js +5 -0
  828. package/node_modules/lodash/fp/curryN.js +5 -0
  829. package/node_modules/lodash/fp/curryRight.js +5 -0
  830. package/node_modules/lodash/fp/curryRightN.js +5 -0
  831. package/node_modules/lodash/fp/date.js +2 -0
  832. package/node_modules/lodash/fp/debounce.js +5 -0
  833. package/node_modules/lodash/fp/deburr.js +5 -0
  834. package/node_modules/lodash/fp/defaultTo.js +5 -0
  835. package/node_modules/lodash/fp/defaults.js +5 -0
  836. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  837. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  838. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  839. package/node_modules/lodash/fp/defer.js +5 -0
  840. package/node_modules/lodash/fp/delay.js +5 -0
  841. package/node_modules/lodash/fp/difference.js +5 -0
  842. package/node_modules/lodash/fp/differenceBy.js +5 -0
  843. package/node_modules/lodash/fp/differenceWith.js +5 -0
  844. package/node_modules/lodash/fp/dissoc.js +1 -0
  845. package/node_modules/lodash/fp/dissocPath.js +1 -0
  846. package/node_modules/lodash/fp/divide.js +5 -0
  847. package/node_modules/lodash/fp/drop.js +5 -0
  848. package/node_modules/lodash/fp/dropLast.js +1 -0
  849. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  850. package/node_modules/lodash/fp/dropRight.js +5 -0
  851. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  852. package/node_modules/lodash/fp/dropWhile.js +5 -0
  853. package/node_modules/lodash/fp/each.js +1 -0
  854. package/node_modules/lodash/fp/eachRight.js +1 -0
  855. package/node_modules/lodash/fp/endsWith.js +5 -0
  856. package/node_modules/lodash/fp/entries.js +1 -0
  857. package/node_modules/lodash/fp/entriesIn.js +1 -0
  858. package/node_modules/lodash/fp/eq.js +5 -0
  859. package/node_modules/lodash/fp/equals.js +1 -0
  860. package/node_modules/lodash/fp/escape.js +5 -0
  861. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  862. package/node_modules/lodash/fp/every.js +5 -0
  863. package/node_modules/lodash/fp/extend.js +1 -0
  864. package/node_modules/lodash/fp/extendAll.js +1 -0
  865. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  866. package/node_modules/lodash/fp/extendWith.js +1 -0
  867. package/node_modules/lodash/fp/fill.js +5 -0
  868. package/node_modules/lodash/fp/filter.js +5 -0
  869. package/node_modules/lodash/fp/find.js +5 -0
  870. package/node_modules/lodash/fp/findFrom.js +5 -0
  871. package/node_modules/lodash/fp/findIndex.js +5 -0
  872. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  873. package/node_modules/lodash/fp/findKey.js +5 -0
  874. package/node_modules/lodash/fp/findLast.js +5 -0
  875. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  876. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  877. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  878. package/node_modules/lodash/fp/findLastKey.js +5 -0
  879. package/node_modules/lodash/fp/first.js +1 -0
  880. package/node_modules/lodash/fp/flatMap.js +5 -0
  881. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  882. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  883. package/node_modules/lodash/fp/flatten.js +5 -0
  884. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  885. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  886. package/node_modules/lodash/fp/flip.js +5 -0
  887. package/node_modules/lodash/fp/floor.js +5 -0
  888. package/node_modules/lodash/fp/flow.js +5 -0
  889. package/node_modules/lodash/fp/flowRight.js +5 -0
  890. package/node_modules/lodash/fp/forEach.js +5 -0
  891. package/node_modules/lodash/fp/forEachRight.js +5 -0
  892. package/node_modules/lodash/fp/forIn.js +5 -0
  893. package/node_modules/lodash/fp/forInRight.js +5 -0
  894. package/node_modules/lodash/fp/forOwn.js +5 -0
  895. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  896. package/node_modules/lodash/fp/fromPairs.js +5 -0
  897. package/node_modules/lodash/fp/function.js +2 -0
  898. package/node_modules/lodash/fp/functions.js +5 -0
  899. package/node_modules/lodash/fp/functionsIn.js +5 -0
  900. package/node_modules/lodash/fp/get.js +5 -0
  901. package/node_modules/lodash/fp/getOr.js +5 -0
  902. package/node_modules/lodash/fp/groupBy.js +5 -0
  903. package/node_modules/lodash/fp/gt.js +5 -0
  904. package/node_modules/lodash/fp/gte.js +5 -0
  905. package/node_modules/lodash/fp/has.js +5 -0
  906. package/node_modules/lodash/fp/hasIn.js +5 -0
  907. package/node_modules/lodash/fp/head.js +5 -0
  908. package/node_modules/lodash/fp/identical.js +1 -0
  909. package/node_modules/lodash/fp/identity.js +5 -0
  910. package/node_modules/lodash/fp/inRange.js +5 -0
  911. package/node_modules/lodash/fp/includes.js +5 -0
  912. package/node_modules/lodash/fp/includesFrom.js +5 -0
  913. package/node_modules/lodash/fp/indexBy.js +1 -0
  914. package/node_modules/lodash/fp/indexOf.js +5 -0
  915. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  916. package/node_modules/lodash/fp/init.js +1 -0
  917. package/node_modules/lodash/fp/initial.js +5 -0
  918. package/node_modules/lodash/fp/intersection.js +5 -0
  919. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  920. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  921. package/node_modules/lodash/fp/invert.js +5 -0
  922. package/node_modules/lodash/fp/invertBy.js +5 -0
  923. package/node_modules/lodash/fp/invertObj.js +1 -0
  924. package/node_modules/lodash/fp/invoke.js +5 -0
  925. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  926. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  927. package/node_modules/lodash/fp/invokeMap.js +5 -0
  928. package/node_modules/lodash/fp/isArguments.js +5 -0
  929. package/node_modules/lodash/fp/isArray.js +5 -0
  930. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  931. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  932. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  933. package/node_modules/lodash/fp/isBoolean.js +5 -0
  934. package/node_modules/lodash/fp/isBuffer.js +5 -0
  935. package/node_modules/lodash/fp/isDate.js +5 -0
  936. package/node_modules/lodash/fp/isElement.js +5 -0
  937. package/node_modules/lodash/fp/isEmpty.js +5 -0
  938. package/node_modules/lodash/fp/isEqual.js +5 -0
  939. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  940. package/node_modules/lodash/fp/isError.js +5 -0
  941. package/node_modules/lodash/fp/isFinite.js +5 -0
  942. package/node_modules/lodash/fp/isFunction.js +5 -0
  943. package/node_modules/lodash/fp/isInteger.js +5 -0
  944. package/node_modules/lodash/fp/isLength.js +5 -0
  945. package/node_modules/lodash/fp/isMap.js +5 -0
  946. package/node_modules/lodash/fp/isMatch.js +5 -0
  947. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  948. package/node_modules/lodash/fp/isNaN.js +5 -0
  949. package/node_modules/lodash/fp/isNative.js +5 -0
  950. package/node_modules/lodash/fp/isNil.js +5 -0
  951. package/node_modules/lodash/fp/isNull.js +5 -0
  952. package/node_modules/lodash/fp/isNumber.js +5 -0
  953. package/node_modules/lodash/fp/isObject.js +5 -0
  954. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  955. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  956. package/node_modules/lodash/fp/isRegExp.js +5 -0
  957. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  958. package/node_modules/lodash/fp/isSet.js +5 -0
  959. package/node_modules/lodash/fp/isString.js +5 -0
  960. package/node_modules/lodash/fp/isSymbol.js +5 -0
  961. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  962. package/node_modules/lodash/fp/isUndefined.js +5 -0
  963. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  964. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  965. package/node_modules/lodash/fp/iteratee.js +5 -0
  966. package/node_modules/lodash/fp/join.js +5 -0
  967. package/node_modules/lodash/fp/juxt.js +1 -0
  968. package/node_modules/lodash/fp/kebabCase.js +5 -0
  969. package/node_modules/lodash/fp/keyBy.js +5 -0
  970. package/node_modules/lodash/fp/keys.js +5 -0
  971. package/node_modules/lodash/fp/keysIn.js +5 -0
  972. package/node_modules/lodash/fp/lang.js +2 -0
  973. package/node_modules/lodash/fp/last.js +5 -0
  974. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  975. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  976. package/node_modules/lodash/fp/lowerCase.js +5 -0
  977. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  978. package/node_modules/lodash/fp/lt.js +5 -0
  979. package/node_modules/lodash/fp/lte.js +5 -0
  980. package/node_modules/lodash/fp/map.js +5 -0
  981. package/node_modules/lodash/fp/mapKeys.js +5 -0
  982. package/node_modules/lodash/fp/mapValues.js +5 -0
  983. package/node_modules/lodash/fp/matches.js +1 -0
  984. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  985. package/node_modules/lodash/fp/math.js +2 -0
  986. package/node_modules/lodash/fp/max.js +5 -0
  987. package/node_modules/lodash/fp/maxBy.js +5 -0
  988. package/node_modules/lodash/fp/mean.js +5 -0
  989. package/node_modules/lodash/fp/meanBy.js +5 -0
  990. package/node_modules/lodash/fp/memoize.js +5 -0
  991. package/node_modules/lodash/fp/merge.js +5 -0
  992. package/node_modules/lodash/fp/mergeAll.js +5 -0
  993. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  994. package/node_modules/lodash/fp/mergeWith.js +5 -0
  995. package/node_modules/lodash/fp/method.js +5 -0
  996. package/node_modules/lodash/fp/methodOf.js +5 -0
  997. package/node_modules/lodash/fp/min.js +5 -0
  998. package/node_modules/lodash/fp/minBy.js +5 -0
  999. package/node_modules/lodash/fp/mixin.js +5 -0
  1000. package/node_modules/lodash/fp/multiply.js +5 -0
  1001. package/node_modules/lodash/fp/nAry.js +1 -0
  1002. package/node_modules/lodash/fp/negate.js +5 -0
  1003. package/node_modules/lodash/fp/next.js +5 -0
  1004. package/node_modules/lodash/fp/noop.js +5 -0
  1005. package/node_modules/lodash/fp/now.js +5 -0
  1006. package/node_modules/lodash/fp/nth.js +5 -0
  1007. package/node_modules/lodash/fp/nthArg.js +5 -0
  1008. package/node_modules/lodash/fp/number.js +2 -0
  1009. package/node_modules/lodash/fp/object.js +2 -0
  1010. package/node_modules/lodash/fp/omit.js +5 -0
  1011. package/node_modules/lodash/fp/omitAll.js +1 -0
  1012. package/node_modules/lodash/fp/omitBy.js +5 -0
  1013. package/node_modules/lodash/fp/once.js +5 -0
  1014. package/node_modules/lodash/fp/orderBy.js +5 -0
  1015. package/node_modules/lodash/fp/over.js +5 -0
  1016. package/node_modules/lodash/fp/overArgs.js +5 -0
  1017. package/node_modules/lodash/fp/overEvery.js +5 -0
  1018. package/node_modules/lodash/fp/overSome.js +5 -0
  1019. package/node_modules/lodash/fp/pad.js +5 -0
  1020. package/node_modules/lodash/fp/padChars.js +5 -0
  1021. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1022. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  1023. package/node_modules/lodash/fp/padEnd.js +5 -0
  1024. package/node_modules/lodash/fp/padStart.js +5 -0
  1025. package/node_modules/lodash/fp/parseInt.js +5 -0
  1026. package/node_modules/lodash/fp/partial.js +5 -0
  1027. package/node_modules/lodash/fp/partialRight.js +5 -0
  1028. package/node_modules/lodash/fp/partition.js +5 -0
  1029. package/node_modules/lodash/fp/path.js +1 -0
  1030. package/node_modules/lodash/fp/pathEq.js +1 -0
  1031. package/node_modules/lodash/fp/pathOr.js +1 -0
  1032. package/node_modules/lodash/fp/paths.js +1 -0
  1033. package/node_modules/lodash/fp/pick.js +5 -0
  1034. package/node_modules/lodash/fp/pickAll.js +1 -0
  1035. package/node_modules/lodash/fp/pickBy.js +5 -0
  1036. package/node_modules/lodash/fp/pipe.js +1 -0
  1037. package/node_modules/lodash/fp/placeholder.js +6 -0
  1038. package/node_modules/lodash/fp/plant.js +5 -0
  1039. package/node_modules/lodash/fp/pluck.js +1 -0
  1040. package/node_modules/lodash/fp/prop.js +1 -0
  1041. package/node_modules/lodash/fp/propEq.js +1 -0
  1042. package/node_modules/lodash/fp/propOr.js +1 -0
  1043. package/node_modules/lodash/fp/property.js +1 -0
  1044. package/node_modules/lodash/fp/propertyOf.js +5 -0
  1045. package/node_modules/lodash/fp/props.js +1 -0
  1046. package/node_modules/lodash/fp/pull.js +5 -0
  1047. package/node_modules/lodash/fp/pullAll.js +5 -0
  1048. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  1049. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  1050. package/node_modules/lodash/fp/pullAt.js +5 -0
  1051. package/node_modules/lodash/fp/random.js +5 -0
  1052. package/node_modules/lodash/fp/range.js +5 -0
  1053. package/node_modules/lodash/fp/rangeRight.js +5 -0
  1054. package/node_modules/lodash/fp/rangeStep.js +5 -0
  1055. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1056. package/node_modules/lodash/fp/rearg.js +5 -0
  1057. package/node_modules/lodash/fp/reduce.js +5 -0
  1058. package/node_modules/lodash/fp/reduceRight.js +5 -0
  1059. package/node_modules/lodash/fp/reject.js +5 -0
  1060. package/node_modules/lodash/fp/remove.js +5 -0
  1061. package/node_modules/lodash/fp/repeat.js +5 -0
  1062. package/node_modules/lodash/fp/replace.js +5 -0
  1063. package/node_modules/lodash/fp/rest.js +5 -0
  1064. package/node_modules/lodash/fp/restFrom.js +5 -0
  1065. package/node_modules/lodash/fp/result.js +5 -0
  1066. package/node_modules/lodash/fp/reverse.js +5 -0
  1067. package/node_modules/lodash/fp/round.js +5 -0
  1068. package/node_modules/lodash/fp/sample.js +5 -0
  1069. package/node_modules/lodash/fp/sampleSize.js +5 -0
  1070. package/node_modules/lodash/fp/seq.js +2 -0
  1071. package/node_modules/lodash/fp/set.js +5 -0
  1072. package/node_modules/lodash/fp/setWith.js +5 -0
  1073. package/node_modules/lodash/fp/shuffle.js +5 -0
  1074. package/node_modules/lodash/fp/size.js +5 -0
  1075. package/node_modules/lodash/fp/slice.js +5 -0
  1076. package/node_modules/lodash/fp/snakeCase.js +5 -0
  1077. package/node_modules/lodash/fp/some.js +5 -0
  1078. package/node_modules/lodash/fp/sortBy.js +5 -0
  1079. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  1080. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1081. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1082. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1083. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1084. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1085. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  1086. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1087. package/node_modules/lodash/fp/split.js +5 -0
  1088. package/node_modules/lodash/fp/spread.js +5 -0
  1089. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  1090. package/node_modules/lodash/fp/startCase.js +5 -0
  1091. package/node_modules/lodash/fp/startsWith.js +5 -0
  1092. package/node_modules/lodash/fp/string.js +2 -0
  1093. package/node_modules/lodash/fp/stubArray.js +5 -0
  1094. package/node_modules/lodash/fp/stubFalse.js +5 -0
  1095. package/node_modules/lodash/fp/stubObject.js +5 -0
  1096. package/node_modules/lodash/fp/stubString.js +5 -0
  1097. package/node_modules/lodash/fp/stubTrue.js +5 -0
  1098. package/node_modules/lodash/fp/subtract.js +5 -0
  1099. package/node_modules/lodash/fp/sum.js +5 -0
  1100. package/node_modules/lodash/fp/sumBy.js +5 -0
  1101. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1102. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1103. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1104. package/node_modules/lodash/fp/tail.js +5 -0
  1105. package/node_modules/lodash/fp/take.js +5 -0
  1106. package/node_modules/lodash/fp/takeLast.js +1 -0
  1107. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1108. package/node_modules/lodash/fp/takeRight.js +5 -0
  1109. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1110. package/node_modules/lodash/fp/takeWhile.js +5 -0
  1111. package/node_modules/lodash/fp/tap.js +5 -0
  1112. package/node_modules/lodash/fp/template.js +5 -0
  1113. package/node_modules/lodash/fp/templateSettings.js +5 -0
  1114. package/node_modules/lodash/fp/throttle.js +5 -0
  1115. package/node_modules/lodash/fp/thru.js +5 -0
  1116. package/node_modules/lodash/fp/times.js +5 -0
  1117. package/node_modules/lodash/fp/toArray.js +5 -0
  1118. package/node_modules/lodash/fp/toFinite.js +5 -0
  1119. package/node_modules/lodash/fp/toInteger.js +5 -0
  1120. package/node_modules/lodash/fp/toIterator.js +5 -0
  1121. package/node_modules/lodash/fp/toJSON.js +5 -0
  1122. package/node_modules/lodash/fp/toLength.js +5 -0
  1123. package/node_modules/lodash/fp/toLower.js +5 -0
  1124. package/node_modules/lodash/fp/toNumber.js +5 -0
  1125. package/node_modules/lodash/fp/toPairs.js +5 -0
  1126. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  1127. package/node_modules/lodash/fp/toPath.js +5 -0
  1128. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  1129. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1130. package/node_modules/lodash/fp/toString.js +5 -0
  1131. package/node_modules/lodash/fp/toUpper.js +5 -0
  1132. package/node_modules/lodash/fp/transform.js +5 -0
  1133. package/node_modules/lodash/fp/trim.js +5 -0
  1134. package/node_modules/lodash/fp/trimChars.js +5 -0
  1135. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1136. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1137. package/node_modules/lodash/fp/trimEnd.js +5 -0
  1138. package/node_modules/lodash/fp/trimStart.js +5 -0
  1139. package/node_modules/lodash/fp/truncate.js +5 -0
  1140. package/node_modules/lodash/fp/unapply.js +1 -0
  1141. package/node_modules/lodash/fp/unary.js +5 -0
  1142. package/node_modules/lodash/fp/unescape.js +5 -0
  1143. package/node_modules/lodash/fp/union.js +5 -0
  1144. package/node_modules/lodash/fp/unionBy.js +5 -0
  1145. package/node_modules/lodash/fp/unionWith.js +5 -0
  1146. package/node_modules/lodash/fp/uniq.js +5 -0
  1147. package/node_modules/lodash/fp/uniqBy.js +5 -0
  1148. package/node_modules/lodash/fp/uniqWith.js +5 -0
  1149. package/node_modules/lodash/fp/uniqueId.js +5 -0
  1150. package/node_modules/lodash/fp/unnest.js +1 -0
  1151. package/node_modules/lodash/fp/unset.js +5 -0
  1152. package/node_modules/lodash/fp/unzip.js +5 -0
  1153. package/node_modules/lodash/fp/unzipWith.js +5 -0
  1154. package/node_modules/lodash/fp/update.js +5 -0
  1155. package/node_modules/lodash/fp/updateWith.js +5 -0
  1156. package/node_modules/lodash/fp/upperCase.js +5 -0
  1157. package/node_modules/lodash/fp/upperFirst.js +5 -0
  1158. package/node_modules/lodash/fp/useWith.js +1 -0
  1159. package/node_modules/lodash/fp/util.js +2 -0
  1160. package/node_modules/lodash/fp/value.js +5 -0
  1161. package/node_modules/lodash/fp/valueOf.js +5 -0
  1162. package/node_modules/lodash/fp/values.js +5 -0
  1163. package/node_modules/lodash/fp/valuesIn.js +5 -0
  1164. package/node_modules/lodash/fp/where.js +1 -0
  1165. package/node_modules/lodash/fp/whereEq.js +1 -0
  1166. package/node_modules/lodash/fp/without.js +5 -0
  1167. package/node_modules/lodash/fp/words.js +5 -0
  1168. package/node_modules/lodash/fp/wrap.js +5 -0
  1169. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  1170. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  1171. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1172. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1173. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  1174. package/node_modules/lodash/fp/xor.js +5 -0
  1175. package/node_modules/lodash/fp/xorBy.js +5 -0
  1176. package/node_modules/lodash/fp/xorWith.js +5 -0
  1177. package/node_modules/lodash/fp/zip.js +5 -0
  1178. package/node_modules/lodash/fp/zipAll.js +5 -0
  1179. package/node_modules/lodash/fp/zipObj.js +1 -0
  1180. package/node_modules/lodash/fp/zipObject.js +5 -0
  1181. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1182. package/node_modules/lodash/fp/zipWith.js +5 -0
  1183. package/node_modules/lodash/fp.js +2 -0
  1184. package/node_modules/lodash/fromPairs.js +30 -0
  1185. package/node_modules/lodash/function.js +25 -0
  1186. package/node_modules/lodash/functions.js +31 -0
  1187. package/node_modules/lodash/functionsIn.js +31 -0
  1188. package/node_modules/lodash/get.js +33 -0
  1189. package/node_modules/lodash/groupBy.js +41 -0
  1190. package/node_modules/lodash/gt.js +29 -0
  1191. package/node_modules/lodash/gte.js +30 -0
  1192. package/node_modules/lodash/has.js +35 -0
  1193. package/node_modules/lodash/hasIn.js +34 -0
  1194. package/node_modules/lodash/head.js +23 -0
  1195. package/node_modules/lodash/identity.js +21 -0
  1196. package/node_modules/lodash/inRange.js +55 -0
  1197. package/node_modules/lodash/includes.js +53 -0
  1198. package/node_modules/lodash/index.js +1 -0
  1199. package/node_modules/lodash/indexOf.js +42 -0
  1200. package/node_modules/lodash/initial.js +22 -0
  1201. package/node_modules/lodash/intersection.js +30 -0
  1202. package/node_modules/lodash/intersectionBy.js +45 -0
  1203. package/node_modules/lodash/intersectionWith.js +41 -0
  1204. package/node_modules/lodash/invert.js +42 -0
  1205. package/node_modules/lodash/invertBy.js +56 -0
  1206. package/node_modules/lodash/invoke.js +24 -0
  1207. package/node_modules/lodash/invokeMap.js +41 -0
  1208. package/node_modules/lodash/isArguments.js +36 -0
  1209. package/node_modules/lodash/isArray.js +26 -0
  1210. package/node_modules/lodash/isArrayBuffer.js +27 -0
  1211. package/node_modules/lodash/isArrayLike.js +33 -0
  1212. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  1213. package/node_modules/lodash/isBoolean.js +29 -0
  1214. package/node_modules/lodash/isBuffer.js +38 -0
  1215. package/node_modules/lodash/isDate.js +27 -0
  1216. package/node_modules/lodash/isElement.js +25 -0
  1217. package/node_modules/lodash/isEmpty.js +77 -0
  1218. package/node_modules/lodash/isEqual.js +35 -0
  1219. package/node_modules/lodash/isEqualWith.js +41 -0
  1220. package/node_modules/lodash/isError.js +36 -0
  1221. package/node_modules/lodash/isFinite.js +36 -0
  1222. package/node_modules/lodash/isFunction.js +37 -0
  1223. package/node_modules/lodash/isInteger.js +33 -0
  1224. package/node_modules/lodash/isLength.js +35 -0
  1225. package/node_modules/lodash/isMap.js +27 -0
  1226. package/node_modules/lodash/isMatch.js +36 -0
  1227. package/node_modules/lodash/isMatchWith.js +41 -0
  1228. package/node_modules/lodash/isNaN.js +38 -0
  1229. package/node_modules/lodash/isNative.js +40 -0
  1230. package/node_modules/lodash/isNil.js +25 -0
  1231. package/node_modules/lodash/isNull.js +22 -0
  1232. package/node_modules/lodash/isNumber.js +38 -0
  1233. package/node_modules/lodash/isObject.js +31 -0
  1234. package/node_modules/lodash/isObjectLike.js +29 -0
  1235. package/node_modules/lodash/isPlainObject.js +62 -0
  1236. package/node_modules/lodash/isRegExp.js +27 -0
  1237. package/node_modules/lodash/isSafeInteger.js +37 -0
  1238. package/node_modules/lodash/isSet.js +27 -0
  1239. package/node_modules/lodash/isString.js +30 -0
  1240. package/node_modules/lodash/isSymbol.js +29 -0
  1241. package/node_modules/lodash/isTypedArray.js +27 -0
  1242. package/node_modules/lodash/isUndefined.js +22 -0
  1243. package/node_modules/lodash/isWeakMap.js +28 -0
  1244. package/node_modules/lodash/isWeakSet.js +28 -0
  1245. package/node_modules/lodash/iteratee.js +53 -0
  1246. package/node_modules/lodash/join.js +26 -0
  1247. package/node_modules/lodash/kebabCase.js +28 -0
  1248. package/node_modules/lodash/keyBy.js +36 -0
  1249. package/node_modules/lodash/keys.js +37 -0
  1250. package/node_modules/lodash/keysIn.js +32 -0
  1251. package/node_modules/lodash/lang.js +58 -0
  1252. package/node_modules/lodash/last.js +20 -0
  1253. package/node_modules/lodash/lastIndexOf.js +46 -0
  1254. package/node_modules/lodash/lodash.js +17259 -0
  1255. package/node_modules/lodash/lodash.min.js +136 -0
  1256. package/node_modules/lodash/lowerCase.js +27 -0
  1257. package/node_modules/lodash/lowerFirst.js +22 -0
  1258. package/node_modules/lodash/lt.js +29 -0
  1259. package/node_modules/lodash/lte.js +30 -0
  1260. package/node_modules/lodash/map.js +53 -0
  1261. package/node_modules/lodash/mapKeys.js +36 -0
  1262. package/node_modules/lodash/mapValues.js +43 -0
  1263. package/node_modules/lodash/matches.js +46 -0
  1264. package/node_modules/lodash/matchesProperty.js +44 -0
  1265. package/node_modules/lodash/math.js +17 -0
  1266. package/node_modules/lodash/max.js +29 -0
  1267. package/node_modules/lodash/maxBy.js +34 -0
  1268. package/node_modules/lodash/mean.js +22 -0
  1269. package/node_modules/lodash/meanBy.js +31 -0
  1270. package/node_modules/lodash/memoize.js +73 -0
  1271. package/node_modules/lodash/merge.js +39 -0
  1272. package/node_modules/lodash/mergeWith.js +39 -0
  1273. package/node_modules/lodash/method.js +34 -0
  1274. package/node_modules/lodash/methodOf.js +33 -0
  1275. package/node_modules/lodash/min.js +29 -0
  1276. package/node_modules/lodash/minBy.js +34 -0
  1277. package/node_modules/lodash/mixin.js +74 -0
  1278. package/node_modules/lodash/multiply.js +22 -0
  1279. package/node_modules/lodash/negate.js +40 -0
  1280. package/node_modules/lodash/next.js +35 -0
  1281. package/node_modules/lodash/noop.js +17 -0
  1282. package/node_modules/lodash/now.js +23 -0
  1283. package/node_modules/lodash/nth.js +29 -0
  1284. package/node_modules/lodash/nthArg.js +32 -0
  1285. package/node_modules/lodash/number.js +5 -0
  1286. package/node_modules/lodash/object.js +49 -0
  1287. package/node_modules/lodash/omit.js +57 -0
  1288. package/node_modules/lodash/omitBy.js +29 -0
  1289. package/node_modules/lodash/once.js +25 -0
  1290. package/node_modules/lodash/orderBy.js +47 -0
  1291. package/node_modules/lodash/over.js +24 -0
  1292. package/node_modules/lodash/overArgs.js +61 -0
  1293. package/node_modules/lodash/overEvery.js +34 -0
  1294. package/node_modules/lodash/overSome.js +37 -0
  1295. package/node_modules/lodash/package.json +19 -0
  1296. package/node_modules/lodash/pad.js +49 -0
  1297. package/node_modules/lodash/padEnd.js +39 -0
  1298. package/node_modules/lodash/padStart.js +39 -0
  1299. package/node_modules/lodash/parseInt.js +43 -0
  1300. package/node_modules/lodash/partial.js +50 -0
  1301. package/node_modules/lodash/partialRight.js +49 -0
  1302. package/node_modules/lodash/partition.js +43 -0
  1303. package/node_modules/lodash/pick.js +25 -0
  1304. package/node_modules/lodash/pickBy.js +37 -0
  1305. package/node_modules/lodash/plant.js +48 -0
  1306. package/node_modules/lodash/property.js +32 -0
  1307. package/node_modules/lodash/propertyOf.js +30 -0
  1308. package/node_modules/lodash/pull.js +29 -0
  1309. package/node_modules/lodash/pullAll.js +29 -0
  1310. package/node_modules/lodash/pullAllBy.js +33 -0
  1311. package/node_modules/lodash/pullAllWith.js +32 -0
  1312. package/node_modules/lodash/pullAt.js +43 -0
  1313. package/node_modules/lodash/random.js +91 -0
  1314. package/node_modules/lodash/range.js +46 -0
  1315. package/node_modules/lodash/rangeRight.js +41 -0
  1316. package/node_modules/lodash/rearg.js +33 -0
  1317. package/node_modules/lodash/reduce.js +51 -0
  1318. package/node_modules/lodash/reduceRight.js +36 -0
  1319. package/node_modules/lodash/reject.js +46 -0
  1320. package/node_modules/lodash/remove.js +53 -0
  1321. package/node_modules/lodash/repeat.js +37 -0
  1322. package/node_modules/lodash/replace.js +29 -0
  1323. package/node_modules/lodash/rest.js +40 -0
  1324. package/node_modules/lodash/result.js +56 -0
  1325. package/node_modules/lodash/reverse.js +34 -0
  1326. package/node_modules/lodash/round.js +26 -0
  1327. package/node_modules/lodash/sample.js +24 -0
  1328. package/node_modules/lodash/sampleSize.js +37 -0
  1329. package/node_modules/lodash/seq.js +16 -0
  1330. package/node_modules/lodash/set.js +35 -0
  1331. package/node_modules/lodash/setWith.js +32 -0
  1332. package/node_modules/lodash/shuffle.js +25 -0
  1333. package/node_modules/lodash/size.js +46 -0
  1334. package/node_modules/lodash/slice.js +37 -0
  1335. package/node_modules/lodash/snakeCase.js +28 -0
  1336. package/node_modules/lodash/some.js +51 -0
  1337. package/node_modules/lodash/sortBy.js +48 -0
  1338. package/node_modules/lodash/sortedIndex.js +24 -0
  1339. package/node_modules/lodash/sortedIndexBy.js +33 -0
  1340. package/node_modules/lodash/sortedIndexOf.js +31 -0
  1341. package/node_modules/lodash/sortedLastIndex.js +25 -0
  1342. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1343. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1344. package/node_modules/lodash/sortedUniq.js +24 -0
  1345. package/node_modules/lodash/sortedUniqBy.js +26 -0
  1346. package/node_modules/lodash/split.js +52 -0
  1347. package/node_modules/lodash/spread.js +63 -0
  1348. package/node_modules/lodash/startCase.js +29 -0
  1349. package/node_modules/lodash/startsWith.js +39 -0
  1350. package/node_modules/lodash/string.js +33 -0
  1351. package/node_modules/lodash/stubArray.js +23 -0
  1352. package/node_modules/lodash/stubFalse.js +18 -0
  1353. package/node_modules/lodash/stubObject.js +23 -0
  1354. package/node_modules/lodash/stubString.js +18 -0
  1355. package/node_modules/lodash/stubTrue.js +18 -0
  1356. package/node_modules/lodash/subtract.js +22 -0
  1357. package/node_modules/lodash/sum.js +24 -0
  1358. package/node_modules/lodash/sumBy.js +33 -0
  1359. package/node_modules/lodash/tail.js +22 -0
  1360. package/node_modules/lodash/take.js +37 -0
  1361. package/node_modules/lodash/takeRight.js +39 -0
  1362. package/node_modules/lodash/takeRightWhile.js +45 -0
  1363. package/node_modules/lodash/takeWhile.js +45 -0
  1364. package/node_modules/lodash/tap.js +29 -0
  1365. package/node_modules/lodash/template.js +284 -0
  1366. package/node_modules/lodash/templateSettings.js +71 -0
  1367. package/node_modules/lodash/throttle.js +69 -0
  1368. package/node_modules/lodash/thru.js +28 -0
  1369. package/node_modules/lodash/times.js +51 -0
  1370. package/node_modules/lodash/toArray.js +58 -0
  1371. package/node_modules/lodash/toFinite.js +42 -0
  1372. package/node_modules/lodash/toInteger.js +36 -0
  1373. package/node_modules/lodash/toIterator.js +23 -0
  1374. package/node_modules/lodash/toJSON.js +1 -0
  1375. package/node_modules/lodash/toLength.js +38 -0
  1376. package/node_modules/lodash/toLower.js +28 -0
  1377. package/node_modules/lodash/toNumber.js +64 -0
  1378. package/node_modules/lodash/toPairs.js +30 -0
  1379. package/node_modules/lodash/toPairsIn.js +30 -0
  1380. package/node_modules/lodash/toPath.js +33 -0
  1381. package/node_modules/lodash/toPlainObject.js +32 -0
  1382. package/node_modules/lodash/toSafeInteger.js +37 -0
  1383. package/node_modules/lodash/toString.js +28 -0
  1384. package/node_modules/lodash/toUpper.js +28 -0
  1385. package/node_modules/lodash/transform.js +65 -0
  1386. package/node_modules/lodash/trim.js +47 -0
  1387. package/node_modules/lodash/trimEnd.js +41 -0
  1388. package/node_modules/lodash/trimStart.js +43 -0
  1389. package/node_modules/lodash/truncate.js +111 -0
  1390. package/node_modules/lodash/unary.js +22 -0
  1391. package/node_modules/lodash/unescape.js +34 -0
  1392. package/node_modules/lodash/union.js +26 -0
  1393. package/node_modules/lodash/unionBy.js +39 -0
  1394. package/node_modules/lodash/unionWith.js +34 -0
  1395. package/node_modules/lodash/uniq.js +25 -0
  1396. package/node_modules/lodash/uniqBy.js +31 -0
  1397. package/node_modules/lodash/uniqWith.js +28 -0
  1398. package/node_modules/lodash/uniqueId.js +28 -0
  1399. package/node_modules/lodash/unset.js +34 -0
  1400. package/node_modules/lodash/unzip.js +45 -0
  1401. package/node_modules/lodash/unzipWith.js +39 -0
  1402. package/node_modules/lodash/update.js +35 -0
  1403. package/node_modules/lodash/updateWith.js +33 -0
  1404. package/node_modules/lodash/upperCase.js +27 -0
  1405. package/node_modules/lodash/upperFirst.js +22 -0
  1406. package/node_modules/lodash/util.js +34 -0
  1407. package/node_modules/lodash/value.js +1 -0
  1408. package/node_modules/lodash/valueOf.js +1 -0
  1409. package/node_modules/lodash/values.js +34 -0
  1410. package/node_modules/lodash/valuesIn.js +32 -0
  1411. package/node_modules/lodash/without.js +31 -0
  1412. package/node_modules/lodash/words.js +35 -0
  1413. package/node_modules/lodash/wrap.js +30 -0
  1414. package/node_modules/lodash/wrapperAt.js +48 -0
  1415. package/node_modules/lodash/wrapperChain.js +34 -0
  1416. package/node_modules/lodash/wrapperLodash.js +147 -0
  1417. package/node_modules/lodash/wrapperReverse.js +44 -0
  1418. package/node_modules/lodash/wrapperValue.js +21 -0
  1419. package/node_modules/lodash/xor.js +28 -0
  1420. package/node_modules/lodash/xorBy.js +39 -0
  1421. package/node_modules/lodash/xorWith.js +34 -0
  1422. package/node_modules/lodash/zip.js +22 -0
  1423. package/node_modules/lodash/zipObject.js +24 -0
  1424. package/node_modules/lodash/zipObjectDeep.js +23 -0
  1425. package/node_modules/lodash/zipWith.js +32 -0
  1426. package/node_modules/math-intrinsics/.eslintrc +16 -0
  1427. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  1428. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  1429. package/node_modules/math-intrinsics/LICENSE +21 -0
  1430. package/node_modules/math-intrinsics/README.md +50 -0
  1431. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  1432. package/node_modules/math-intrinsics/abs.js +4 -0
  1433. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  1434. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  1435. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  1436. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  1437. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  1438. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  1439. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  1440. package/node_modules/math-intrinsics/floor.js +4 -0
  1441. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  1442. package/node_modules/math-intrinsics/isFinite.js +12 -0
  1443. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  1444. package/node_modules/math-intrinsics/isInteger.js +16 -0
  1445. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  1446. package/node_modules/math-intrinsics/isNaN.js +6 -0
  1447. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  1448. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  1449. package/node_modules/math-intrinsics/max.d.ts +1 -0
  1450. package/node_modules/math-intrinsics/max.js +4 -0
  1451. package/node_modules/math-intrinsics/min.d.ts +1 -0
  1452. package/node_modules/math-intrinsics/min.js +4 -0
  1453. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  1454. package/node_modules/math-intrinsics/mod.js +9 -0
  1455. package/node_modules/math-intrinsics/package.json +86 -0
  1456. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  1457. package/node_modules/math-intrinsics/pow.js +4 -0
  1458. package/node_modules/math-intrinsics/round.d.ts +1 -0
  1459. package/node_modules/math-intrinsics/round.js +4 -0
  1460. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  1461. package/node_modules/math-intrinsics/sign.js +11 -0
  1462. package/node_modules/math-intrinsics/test/index.js +192 -0
  1463. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  1464. package/node_modules/ms/index.js +162 -0
  1465. package/node_modules/ms/license.md +21 -0
  1466. package/node_modules/ms/package.json +37 -0
  1467. package/node_modules/ms/readme.md +60 -0
  1468. package/node_modules/zod/LICENSE +1 -1
  1469. package/node_modules/zod/README.md +114 -2782
  1470. package/node_modules/zod/index.cjs +33 -0
  1471. package/node_modules/zod/index.d.cts +4 -0
  1472. package/node_modules/zod/index.d.ts +4 -2
  1473. package/node_modules/zod/index.js +4 -0
  1474. package/node_modules/zod/package.json +94 -95
  1475. package/node_modules/zod/src/index.ts +4 -0
  1476. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  1477. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1478. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1479. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1480. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1481. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1482. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1483. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1484. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1485. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1486. package/node_modules/zod/src/v3/errors.ts +13 -0
  1487. package/node_modules/zod/src/v3/external.ts +6 -0
  1488. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1489. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1490. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1491. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1492. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1493. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1494. package/node_modules/zod/src/v3/index.ts +4 -0
  1495. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  1496. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1497. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1498. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1499. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1500. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1501. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1502. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1503. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1504. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1505. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1506. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1507. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1508. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  1509. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1510. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1511. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1512. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1513. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1514. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1515. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1516. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  1517. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1518. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1519. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  1520. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1521. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1522. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  1523. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1524. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  1525. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1526. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1527. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1528. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1529. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  1530. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1531. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1532. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1533. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1534. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1535. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  1536. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1537. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1538. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1539. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1540. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1541. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1542. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1543. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1544. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1545. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  1546. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1547. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1548. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1549. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1550. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1551. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1552. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  1553. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1554. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1555. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1556. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1557. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1558. package/node_modules/zod/src/v3/types.ts +5136 -0
  1559. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  1560. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1561. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  1562. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  1563. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  1564. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  1565. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  1566. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  1567. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  1568. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1569. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  1570. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  1571. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1572. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1573. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1574. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  1575. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  1576. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  1577. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1578. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1579. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  1580. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1581. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  1582. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  1583. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  1584. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1585. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  1586. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  1587. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  1588. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  1589. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  1590. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  1591. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  1592. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1593. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  1594. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  1595. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  1596. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  1597. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  1598. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  1599. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  1600. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1601. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1602. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  1603. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1604. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  1605. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  1606. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  1607. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  1608. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  1609. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  1610. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  1611. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  1612. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1613. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1614. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1615. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  1616. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  1617. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  1618. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  1619. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  1620. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  1621. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  1622. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  1623. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  1624. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  1625. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  1626. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  1627. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  1628. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  1629. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  1630. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1631. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1632. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  1633. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  1634. package/node_modules/zod/src/v4/core/config.ts +15 -0
  1635. package/node_modules/zod/src/v4/core/core.ts +134 -0
  1636. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  1637. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  1638. package/node_modules/zod/src/v4/core/function.ts +176 -0
  1639. package/node_modules/zod/src/v4/core/index.ts +15 -0
  1640. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  1641. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  1642. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  1643. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  1644. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  1645. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  1646. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1647. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1648. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1649. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1650. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1651. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  1652. package/node_modules/zod/src/v4/core/util.ts +775 -0
  1653. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  1654. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1655. package/node_modules/zod/src/v4/index.ts +4 -0
  1656. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  1657. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  1658. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  1659. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  1660. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  1661. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  1662. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  1663. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  1664. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  1665. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  1666. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  1667. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  1668. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  1669. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  1670. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  1671. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  1672. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  1673. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  1674. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  1675. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  1676. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  1677. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  1678. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  1679. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1680. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  1681. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  1682. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  1683. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  1684. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  1685. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  1686. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  1687. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  1688. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  1689. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  1690. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  1691. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  1692. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  1693. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  1694. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  1695. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  1696. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  1697. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  1698. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  1699. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1700. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  1701. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  1702. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  1703. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  1704. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  1705. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  1706. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  1707. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  1708. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  1709. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  1710. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  1711. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  1712. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1713. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  1714. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  1715. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  1716. package/node_modules/zod/v3/ZodError.cjs +138 -0
  1717. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1718. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1719. package/node_modules/zod/v3/ZodError.js +133 -0
  1720. package/node_modules/zod/v3/errors.cjs +17 -0
  1721. package/node_modules/zod/v3/errors.d.cts +5 -0
  1722. package/node_modules/zod/v3/errors.d.ts +5 -0
  1723. package/node_modules/zod/v3/errors.js +9 -0
  1724. package/node_modules/zod/v3/external.cjs +22 -0
  1725. package/node_modules/zod/v3/external.d.cts +6 -0
  1726. package/node_modules/zod/v3/external.d.ts +6 -0
  1727. package/node_modules/zod/v3/external.js +6 -0
  1728. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1729. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1730. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  1731. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1732. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1733. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1734. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  1735. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1736. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1737. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1738. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1739. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1740. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1741. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1742. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1743. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1744. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  1745. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1746. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1747. package/node_modules/zod/v3/helpers/util.js +133 -0
  1748. package/node_modules/zod/v3/index.cjs +33 -0
  1749. package/node_modules/zod/v3/index.d.cts +4 -0
  1750. package/node_modules/zod/v3/index.d.ts +4 -0
  1751. package/node_modules/zod/v3/index.js +4 -0
  1752. package/node_modules/zod/v3/locales/en.cjs +111 -0
  1753. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1754. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1755. package/node_modules/zod/v3/locales/en.js +109 -0
  1756. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  1757. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1758. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1759. package/node_modules/zod/v3/standard-schema.js +1 -0
  1760. package/node_modules/zod/v3/types.cjs +3775 -0
  1761. package/node_modules/zod/v3/types.d.cts +1031 -0
  1762. package/node_modules/zod/v3/types.d.ts +1031 -0
  1763. package/node_modules/zod/v3/types.js +3693 -0
  1764. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  1765. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1766. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1767. package/node_modules/zod/v4/classic/checks.js +1 -0
  1768. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1769. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1770. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1771. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1772. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  1773. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  1774. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  1775. package/node_modules/zod/v4/classic/compat.js +27 -0
  1776. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  1777. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1778. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1779. package/node_modules/zod/v4/classic/errors.js +41 -0
  1780. package/node_modules/zod/v4/classic/external.cjs +70 -0
  1781. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  1782. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  1783. package/node_modules/zod/v4/classic/external.js +18 -0
  1784. package/node_modules/zod/v4/classic/index.cjs +33 -0
  1785. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  1786. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  1787. package/node_modules/zod/v4/classic/index.js +4 -0
  1788. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  1789. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1790. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1791. package/node_modules/zod/v4/classic/iso.js +30 -0
  1792. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  1793. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  1794. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  1795. package/node_modules/zod/v4/classic/parse.js +6 -0
  1796. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  1797. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  1798. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  1799. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  1800. package/node_modules/zod/v4/core/api.cjs +1039 -0
  1801. package/node_modules/zod/v4/core/api.d.cts +284 -0
  1802. package/node_modules/zod/v4/core/api.d.ts +284 -0
  1803. package/node_modules/zod/v4/core/api.js +906 -0
  1804. package/node_modules/zod/v4/core/checks.cjs +591 -0
  1805. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  1806. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  1807. package/node_modules/zod/v4/core/checks.js +565 -0
  1808. package/node_modules/zod/v4/core/core.cjs +67 -0
  1809. package/node_modules/zod/v4/core/core.d.cts +49 -0
  1810. package/node_modules/zod/v4/core/core.d.ts +49 -0
  1811. package/node_modules/zod/v4/core/core.js +61 -0
  1812. package/node_modules/zod/v4/core/doc.cjs +39 -0
  1813. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  1814. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  1815. package/node_modules/zod/v4/core/doc.js +35 -0
  1816. package/node_modules/zod/v4/core/errors.cjs +226 -0
  1817. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  1818. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  1819. package/node_modules/zod/v4/core/errors.js +195 -0
  1820. package/node_modules/zod/v4/core/function.cjs +102 -0
  1821. package/node_modules/zod/v4/core/function.d.cts +52 -0
  1822. package/node_modules/zod/v4/core/function.d.ts +52 -0
  1823. package/node_modules/zod/v4/core/function.js +75 -0
  1824. package/node_modules/zod/v4/core/index.cjs +44 -0
  1825. package/node_modules/zod/v4/core/index.d.cts +15 -0
  1826. package/node_modules/zod/v4/core/index.d.ts +15 -0
  1827. package/node_modules/zod/v4/core/index.js +15 -0
  1828. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1829. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  1830. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  1831. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1832. package/node_modules/zod/v4/core/parse.cjs +87 -0
  1833. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  1834. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  1835. package/node_modules/zod/v4/core/parse.js +57 -0
  1836. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  1837. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  1838. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  1839. package/node_modules/zod/v4/core/regexes.js +95 -0
  1840. package/node_modules/zod/v4/core/registries.cjs +56 -0
  1841. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1842. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1843. package/node_modules/zod/v4/core/registries.js +51 -0
  1844. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  1845. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  1846. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  1847. package/node_modules/zod/v4/core/schemas.js +1717 -0
  1848. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1849. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  1850. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  1851. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1852. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  1853. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  1854. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  1855. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  1856. package/node_modules/zod/v4/core/util.cjs +539 -0
  1857. package/node_modules/zod/v4/core/util.d.cts +183 -0
  1858. package/node_modules/zod/v4/core/util.d.ts +183 -0
  1859. package/node_modules/zod/v4/core/util.js +493 -0
  1860. package/node_modules/zod/v4/core/versions.cjs +8 -0
  1861. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1862. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1863. package/node_modules/zod/v4/core/versions.js +5 -0
  1864. package/node_modules/zod/v4/index.cjs +22 -0
  1865. package/node_modules/zod/v4/index.d.cts +3 -0
  1866. package/node_modules/zod/v4/index.d.ts +3 -0
  1867. package/node_modules/zod/v4/index.js +3 -0
  1868. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  1869. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  1870. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1871. package/node_modules/zod/v4/locales/ar.js +116 -0
  1872. package/node_modules/zod/v4/locales/az.cjs +141 -0
  1873. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  1874. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1875. package/node_modules/zod/v4/locales/az.js +115 -0
  1876. package/node_modules/zod/v4/locales/be.cjs +190 -0
  1877. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  1878. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1879. package/node_modules/zod/v4/locales/be.js +164 -0
  1880. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  1881. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  1882. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1883. package/node_modules/zod/v4/locales/ca.js +118 -0
  1884. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  1885. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  1886. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1887. package/node_modules/zod/v4/locales/cs.js +135 -0
  1888. package/node_modules/zod/v4/locales/de.cjs +142 -0
  1889. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  1890. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1891. package/node_modules/zod/v4/locales/de.js +116 -0
  1892. package/node_modules/zod/v4/locales/en.cjs +145 -0
  1893. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1894. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  1895. package/node_modules/zod/v4/locales/en.js +117 -0
  1896. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  1897. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1898. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  1899. package/node_modules/zod/v4/locales/eo.js +116 -0
  1900. package/node_modules/zod/v4/locales/es.cjs +143 -0
  1901. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  1902. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1903. package/node_modules/zod/v4/locales/es.js +117 -0
  1904. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  1905. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  1906. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1907. package/node_modules/zod/v4/locales/fa.js +122 -0
  1908. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  1909. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  1910. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1911. package/node_modules/zod/v4/locales/fi.js +122 -0
  1912. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  1913. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  1914. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1915. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  1916. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  1917. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  1918. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1919. package/node_modules/zod/v4/locales/fr.js +116 -0
  1920. package/node_modules/zod/v4/locales/he.cjs +143 -0
  1921. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  1922. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1923. package/node_modules/zod/v4/locales/he.js +117 -0
  1924. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  1925. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  1926. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1927. package/node_modules/zod/v4/locales/hu.js +117 -0
  1928. package/node_modules/zod/v4/locales/id.cjs +142 -0
  1929. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  1930. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1931. package/node_modules/zod/v4/locales/id.js +116 -0
  1932. package/node_modules/zod/v4/locales/index.cjs +84 -0
  1933. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  1934. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  1935. package/node_modules/zod/v4/locales/index.js +39 -0
  1936. package/node_modules/zod/v4/locales/it.cjs +143 -0
  1937. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  1938. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1939. package/node_modules/zod/v4/locales/it.js +117 -0
  1940. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  1941. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  1942. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1943. package/node_modules/zod/v4/locales/ja.js +115 -0
  1944. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  1945. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  1946. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  1947. package/node_modules/zod/v4/locales/kh.js +117 -0
  1948. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  1949. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  1950. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1951. package/node_modules/zod/v4/locales/ko.js +121 -0
  1952. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  1953. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  1954. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1955. package/node_modules/zod/v4/locales/mk.js +118 -0
  1956. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  1957. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  1958. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1959. package/node_modules/zod/v4/locales/ms.js +116 -0
  1960. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  1961. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  1962. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1963. package/node_modules/zod/v4/locales/nl.js +117 -0
  1964. package/node_modules/zod/v4/locales/no.cjs +142 -0
  1965. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  1966. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1967. package/node_modules/zod/v4/locales/no.js +116 -0
  1968. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  1969. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  1970. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1971. package/node_modules/zod/v4/locales/ota.js +117 -0
  1972. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  1973. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  1974. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1975. package/node_modules/zod/v4/locales/pl.js +117 -0
  1976. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  1977. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  1978. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1979. package/node_modules/zod/v4/locales/ps.js +122 -0
  1980. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  1981. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  1982. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1983. package/node_modules/zod/v4/locales/pt.js +116 -0
  1984. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  1985. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  1986. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1987. package/node_modules/zod/v4/locales/ru.js +164 -0
  1988. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  1989. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  1990. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1991. package/node_modules/zod/v4/locales/sl.js +117 -0
  1992. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  1993. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  1994. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1995. package/node_modules/zod/v4/locales/sv.js +118 -0
  1996. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  1997. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  1998. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1999. package/node_modules/zod/v4/locales/ta.js +117 -0
  2000. package/node_modules/zod/v4/locales/th.cjs +143 -0
  2001. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  2002. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  2003. package/node_modules/zod/v4/locales/th.js +117 -0
  2004. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  2005. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  2006. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  2007. package/node_modules/zod/v4/locales/tr.js +115 -0
  2008. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  2009. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  2010. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  2011. package/node_modules/zod/v4/locales/ua.js +117 -0
  2012. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  2013. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  2014. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  2015. package/node_modules/zod/v4/locales/ur.js +117 -0
  2016. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  2017. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  2018. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  2019. package/node_modules/zod/v4/locales/vi.js +116 -0
  2020. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  2021. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  2022. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  2023. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  2024. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  2025. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  2026. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  2027. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  2028. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  2029. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  2030. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  2031. package/node_modules/zod/v4/mini/checks.js +1 -0
  2032. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  2033. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  2034. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  2035. package/node_modules/zod/v4/mini/coerce.js +17 -0
  2036. package/node_modules/zod/v4/mini/external.cjs +62 -0
  2037. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  2038. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  2039. package/node_modules/zod/v4/mini/external.js +13 -0
  2040. package/node_modules/zod/v4/mini/index.cjs +32 -0
  2041. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  2042. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  2043. package/node_modules/zod/v4/mini/index.js +3 -0
  2044. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  2045. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  2046. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  2047. package/node_modules/zod/v4/mini/iso.js +30 -0
  2048. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  2049. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  2050. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  2051. package/node_modules/zod/v4/mini/parse.js +1 -0
  2052. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  2053. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  2054. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  2055. package/node_modules/zod/v4/mini/schemas.js +732 -0
  2056. package/node_modules/zod/v4-mini/index.cjs +17 -0
  2057. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  2058. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  2059. package/node_modules/zod/v4-mini/index.js +1 -0
  2060. package/package.json +13 -9
  2061. package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +0 -35
  2062. package/node_modules/axios/CHANGELOG.md +0 -1039
  2063. package/node_modules/axios/LICENSE +0 -19
  2064. package/node_modules/axios/README.md +0 -1182
  2065. package/node_modules/axios/SECURITY.md +0 -5
  2066. package/node_modules/axios/UPGRADE_GUIDE.md +0 -190
  2067. package/node_modules/axios/bin/check-build-version.js +0 -19
  2068. package/node_modules/axios/bin/ssl_hotfix.js +0 -22
  2069. package/node_modules/axios/dist/axios.js +0 -2387
  2070. package/node_modules/axios/dist/axios.js.map +0 -1
  2071. package/node_modules/axios/dist/axios.min.js +0 -2
  2072. package/node_modules/axios/dist/axios.min.js.map +0 -1
  2073. package/node_modules/axios/dist/esm/axios.js +0 -2379
  2074. package/node_modules/axios/dist/esm/axios.js.map +0 -1
  2075. package/node_modules/axios/dist/esm/axios.min.js +0 -2
  2076. package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  2077. package/node_modules/axios/index.d.ts +0 -341
  2078. package/node_modules/axios/index.js +0 -1
  2079. package/node_modules/axios/lib/adapters/README.md +0 -37
  2080. package/node_modules/axios/lib/adapters/http.js +0 -463
  2081. package/node_modules/axios/lib/adapters/xhr.js +0 -226
  2082. package/node_modules/axios/lib/axios.js +0 -68
  2083. package/node_modules/axios/lib/cancel/CancelToken.js +0 -118
  2084. package/node_modules/axios/lib/cancel/CanceledError.js +0 -24
  2085. package/node_modules/axios/lib/cancel/isCancel.js +0 -5
  2086. package/node_modules/axios/lib/core/Axios.js +0 -176
  2087. package/node_modules/axios/lib/core/AxiosError.js +0 -97
  2088. package/node_modules/axios/lib/core/InterceptorManager.js +0 -63
  2089. package/node_modules/axios/lib/core/buildFullPath.js +0 -23
  2090. package/node_modules/axios/lib/core/dispatchRequest.js +0 -94
  2091. package/node_modules/axios/lib/core/mergeConfig.js +0 -103
  2092. package/node_modules/axios/lib/core/settle.js +0 -25
  2093. package/node_modules/axios/lib/core/transformData.js +0 -23
  2094. package/node_modules/axios/lib/defaults/index.js +0 -175
  2095. package/node_modules/axios/lib/defaults/transitional.js +0 -7
  2096. package/node_modules/axios/lib/env/classes/FormData.js +0 -2
  2097. package/node_modules/axios/lib/env/data.js +0 -3
  2098. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -42
  2099. package/node_modules/axios/lib/helpers/bind.js +0 -7
  2100. package/node_modules/axios/lib/helpers/buildURL.js +0 -55
  2101. package/node_modules/axios/lib/helpers/combineURLs.js +0 -14
  2102. package/node_modules/axios/lib/helpers/cookies.js +0 -53
  2103. package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
  2104. package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -74
  2105. package/node_modules/axios/lib/helpers/fromDataURI.js +0 -51
  2106. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
  2107. package/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
  2108. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
  2109. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  2110. package/node_modules/axios/lib/helpers/null.js +0 -2
  2111. package/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
  2112. package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  2113. package/node_modules/axios/lib/helpers/spread.js +0 -27
  2114. package/node_modules/axios/lib/helpers/toFormData.js +0 -179
  2115. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  2116. package/node_modules/axios/lib/helpers/validator.js +0 -86
  2117. package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  2118. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  2119. package/node_modules/axios/lib/platform/browser/index.js +0 -11
  2120. package/node_modules/axios/lib/platform/index.js +0 -3
  2121. package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  2122. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -5
  2123. package/node_modules/axios/lib/platform/node/index.js +0 -11
  2124. package/node_modules/axios/lib/utils.js +0 -522
  2125. package/node_modules/axios/package.json +0 -100
  2126. package/node_modules/axios/rollup.config.js +0 -60
  2127. package/node_modules/axios/tsconfig.json +0 -14
  2128. package/node_modules/axios/tslint.json +0 -6
  2129. package/node_modules/form-data/README.md.bak +0 -358
  2130. package/node_modules/form-data/Readme.md +0 -358
  2131. package/node_modules/form-data/lib/browser.js +0 -2
  2132. package/node_modules/form-data/lib/form_data.js +0 -501
  2133. package/node_modules/form-data/lib/populate.js +0 -10
  2134. package/node_modules/form-data/package.json +0 -68
  2135. package/node_modules/process/.eslintrc +0 -21
  2136. package/node_modules/process/LICENSE +0 -22
  2137. package/node_modules/process/README.md +0 -26
  2138. package/node_modules/process/browser.js +0 -184
  2139. package/node_modules/process/index.js +0 -2
  2140. package/node_modules/process/package.json +0 -27
  2141. package/node_modules/process/test.js +0 -199
  2142. package/node_modules/proxy-from-env/.eslintrc +0 -29
  2143. package/node_modules/proxy-from-env/.travis.yml +0 -10
  2144. package/node_modules/proxy-from-env/README.md +0 -131
  2145. package/node_modules/proxy-from-env/index.js +0 -108
  2146. package/node_modules/proxy-from-env/package.json +0 -34
  2147. package/node_modules/proxy-from-env/test.js +0 -483
  2148. package/node_modules/zod/lib/ZodError.d.ts +0 -164
  2149. package/node_modules/zod/lib/ZodError.js +0 -137
  2150. package/node_modules/zod/lib/__tests__/Mocker.d.ts +0 -17
  2151. package/node_modules/zod/lib/__tests__/Mocker.js +0 -57
  2152. package/node_modules/zod/lib/benchmarks/datetime.d.ts +0 -5
  2153. package/node_modules/zod/lib/benchmarks/datetime.js +0 -54
  2154. package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +0 -5
  2155. package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +0 -79
  2156. package/node_modules/zod/lib/benchmarks/index.js +0 -59
  2157. package/node_modules/zod/lib/benchmarks/ipv4.d.ts +0 -5
  2158. package/node_modules/zod/lib/benchmarks/ipv4.js +0 -54
  2159. package/node_modules/zod/lib/benchmarks/object.d.ts +0 -5
  2160. package/node_modules/zod/lib/benchmarks/object.js +0 -70
  2161. package/node_modules/zod/lib/benchmarks/primitives.d.ts +0 -5
  2162. package/node_modules/zod/lib/benchmarks/primitives.js +0 -170
  2163. package/node_modules/zod/lib/benchmarks/realworld.d.ts +0 -5
  2164. package/node_modules/zod/lib/benchmarks/realworld.js +0 -56
  2165. package/node_modules/zod/lib/benchmarks/string.d.ts +0 -5
  2166. package/node_modules/zod/lib/benchmarks/string.js +0 -55
  2167. package/node_modules/zod/lib/benchmarks/union.d.ts +0 -5
  2168. package/node_modules/zod/lib/benchmarks/union.js +0 -79
  2169. package/node_modules/zod/lib/errors.d.ts +0 -5
  2170. package/node_modules/zod/lib/errors.js +0 -17
  2171. package/node_modules/zod/lib/external.d.ts +0 -6
  2172. package/node_modules/zod/lib/external.js +0 -18
  2173. package/node_modules/zod/lib/helpers/errorUtil.d.ts +0 -9
  2174. package/node_modules/zod/lib/helpers/errorUtil.js +0 -8
  2175. package/node_modules/zod/lib/helpers/parseUtil.d.ts +0 -78
  2176. package/node_modules/zod/lib/helpers/parseUtil.js +0 -125
  2177. package/node_modules/zod/lib/helpers/partialUtil.d.ts +0 -8
  2178. package/node_modules/zod/lib/helpers/typeAliases.d.ts +0 -2
  2179. package/node_modules/zod/lib/helpers/util.d.ts +0 -82
  2180. package/node_modules/zod/lib/helpers/util.js +0 -142
  2181. package/node_modules/zod/lib/index.d.ts +0 -4
  2182. package/node_modules/zod/lib/index.js +0 -29
  2183. package/node_modules/zod/lib/index.mjs +0 -4236
  2184. package/node_modules/zod/lib/index.umd.js +0 -4351
  2185. package/node_modules/zod/lib/locales/en.d.ts +0 -3
  2186. package/node_modules/zod/lib/locales/en.js +0 -129
  2187. package/node_modules/zod/lib/types.d.ts +0 -1127
  2188. package/node_modules/zod/lib/types.js +0 -3677
  2189. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/core/README.md +0 -0
  2190. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/env/README.md +0 -0
  2191. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/helpers/README.md +0 -0
  2192. /package/node_modules/{form-data → @autonomous-testing/sdk/node_modules/form-data}/License +0 -0
  2193. /package/node_modules/{form-data → @autonomous-testing/sdk/node_modules/form-data}/index.d.ts +0 -0
  2194. /package/node_modules/{proxy-from-env → @autonomous-testing/sdk/node_modules/proxy-from-env}/LICENSE +0 -0
  2195. /package/node_modules/{zod/lib/benchmarks/index.d.ts → dotenv/config.d.ts} +0 -0
  2196. /package/node_modules/zod/{lib/helpers/enumUtil.js → v3/helpers/enumUtil.cjs} +0 -0
  2197. /package/node_modules/zod/{lib/helpers/enumUtil.d.ts → v3/helpers/enumUtil.d.cts} +0 -0
  2198. /package/node_modules/zod/{lib/helpers/partialUtil.js → v3/helpers/partialUtil.cjs} +0 -0
  2199. /package/node_modules/zod/{lib/helpers/typeAliases.js → v3/helpers/typeAliases.cjs} +0 -0
@@ -1,4351 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Zod = {}));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- exports.util = void 0;
8
- (function (util) {
9
- util.assertEqual = (val) => val;
10
- function assertIs(_arg) { }
11
- util.assertIs = assertIs;
12
- function assertNever(_x) {
13
- throw new Error();
14
- }
15
- util.assertNever = assertNever;
16
- util.arrayToEnum = (items) => {
17
- const obj = {};
18
- for (const item of items) {
19
- obj[item] = item;
20
- }
21
- return obj;
22
- };
23
- util.getValidEnumValues = (obj) => {
24
- const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
25
- const filtered = {};
26
- for (const k of validKeys) {
27
- filtered[k] = obj[k];
28
- }
29
- return util.objectValues(filtered);
30
- };
31
- util.objectValues = (obj) => {
32
- return util.objectKeys(obj).map(function (e) {
33
- return obj[e];
34
- });
35
- };
36
- util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
37
- ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
38
- : (object) => {
39
- const keys = [];
40
- for (const key in object) {
41
- if (Object.prototype.hasOwnProperty.call(object, key)) {
42
- keys.push(key);
43
- }
44
- }
45
- return keys;
46
- };
47
- util.find = (arr, checker) => {
48
- for (const item of arr) {
49
- if (checker(item))
50
- return item;
51
- }
52
- return undefined;
53
- };
54
- util.isInteger = typeof Number.isInteger === "function"
55
- ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
56
- : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
57
- function joinValues(array, separator = " | ") {
58
- return array
59
- .map((val) => (typeof val === "string" ? `'${val}'` : val))
60
- .join(separator);
61
- }
62
- util.joinValues = joinValues;
63
- util.jsonStringifyReplacer = (_, value) => {
64
- if (typeof value === "bigint") {
65
- return value.toString();
66
- }
67
- return value;
68
- };
69
- })(exports.util || (exports.util = {}));
70
- exports.objectUtil = void 0;
71
- (function (objectUtil) {
72
- objectUtil.mergeShapes = (first, second) => {
73
- return {
74
- ...first,
75
- ...second, // second overwrites first
76
- };
77
- };
78
- })(exports.objectUtil || (exports.objectUtil = {}));
79
- const ZodParsedType = exports.util.arrayToEnum([
80
- "string",
81
- "nan",
82
- "number",
83
- "integer",
84
- "float",
85
- "boolean",
86
- "date",
87
- "bigint",
88
- "symbol",
89
- "function",
90
- "undefined",
91
- "null",
92
- "array",
93
- "object",
94
- "unknown",
95
- "promise",
96
- "void",
97
- "never",
98
- "map",
99
- "set",
100
- ]);
101
- const getParsedType = (data) => {
102
- const t = typeof data;
103
- switch (t) {
104
- case "undefined":
105
- return ZodParsedType.undefined;
106
- case "string":
107
- return ZodParsedType.string;
108
- case "number":
109
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
110
- case "boolean":
111
- return ZodParsedType.boolean;
112
- case "function":
113
- return ZodParsedType.function;
114
- case "bigint":
115
- return ZodParsedType.bigint;
116
- case "symbol":
117
- return ZodParsedType.symbol;
118
- case "object":
119
- if (Array.isArray(data)) {
120
- return ZodParsedType.array;
121
- }
122
- if (data === null) {
123
- return ZodParsedType.null;
124
- }
125
- if (data.then &&
126
- typeof data.then === "function" &&
127
- data.catch &&
128
- typeof data.catch === "function") {
129
- return ZodParsedType.promise;
130
- }
131
- if (typeof Map !== "undefined" && data instanceof Map) {
132
- return ZodParsedType.map;
133
- }
134
- if (typeof Set !== "undefined" && data instanceof Set) {
135
- return ZodParsedType.set;
136
- }
137
- if (typeof Date !== "undefined" && data instanceof Date) {
138
- return ZodParsedType.date;
139
- }
140
- return ZodParsedType.object;
141
- default:
142
- return ZodParsedType.unknown;
143
- }
144
- };
145
-
146
- const ZodIssueCode = exports.util.arrayToEnum([
147
- "invalid_type",
148
- "invalid_literal",
149
- "custom",
150
- "invalid_union",
151
- "invalid_union_discriminator",
152
- "invalid_enum_value",
153
- "unrecognized_keys",
154
- "invalid_arguments",
155
- "invalid_return_type",
156
- "invalid_date",
157
- "invalid_string",
158
- "too_small",
159
- "too_big",
160
- "invalid_intersection_types",
161
- "not_multiple_of",
162
- "not_finite",
163
- ]);
164
- const quotelessJson = (obj) => {
165
- const json = JSON.stringify(obj, null, 2);
166
- return json.replace(/"([^"]+)":/g, "$1:");
167
- };
168
- class ZodError extends Error {
169
- constructor(issues) {
170
- super();
171
- this.issues = [];
172
- this.addIssue = (sub) => {
173
- this.issues = [...this.issues, sub];
174
- };
175
- this.addIssues = (subs = []) => {
176
- this.issues = [...this.issues, ...subs];
177
- };
178
- const actualProto = new.target.prototype;
179
- if (Object.setPrototypeOf) {
180
- // eslint-disable-next-line ban/ban
181
- Object.setPrototypeOf(this, actualProto);
182
- }
183
- else {
184
- this.__proto__ = actualProto;
185
- }
186
- this.name = "ZodError";
187
- this.issues = issues;
188
- }
189
- get errors() {
190
- return this.issues;
191
- }
192
- format(_mapper) {
193
- const mapper = _mapper ||
194
- function (issue) {
195
- return issue.message;
196
- };
197
- const fieldErrors = { _errors: [] };
198
- const processError = (error) => {
199
- for (const issue of error.issues) {
200
- if (issue.code === "invalid_union") {
201
- issue.unionErrors.map(processError);
202
- }
203
- else if (issue.code === "invalid_return_type") {
204
- processError(issue.returnTypeError);
205
- }
206
- else if (issue.code === "invalid_arguments") {
207
- processError(issue.argumentsError);
208
- }
209
- else if (issue.path.length === 0) {
210
- fieldErrors._errors.push(mapper(issue));
211
- }
212
- else {
213
- let curr = fieldErrors;
214
- let i = 0;
215
- while (i < issue.path.length) {
216
- const el = issue.path[i];
217
- const terminal = i === issue.path.length - 1;
218
- if (!terminal) {
219
- curr[el] = curr[el] || { _errors: [] };
220
- // if (typeof el === "string") {
221
- // curr[el] = curr[el] || { _errors: [] };
222
- // } else if (typeof el === "number") {
223
- // const errorArray: any = [];
224
- // errorArray._errors = [];
225
- // curr[el] = curr[el] || errorArray;
226
- // }
227
- }
228
- else {
229
- curr[el] = curr[el] || { _errors: [] };
230
- curr[el]._errors.push(mapper(issue));
231
- }
232
- curr = curr[el];
233
- i++;
234
- }
235
- }
236
- }
237
- };
238
- processError(this);
239
- return fieldErrors;
240
- }
241
- static assert(value) {
242
- if (!(value instanceof ZodError)) {
243
- throw new Error(`Not a ZodError: ${value}`);
244
- }
245
- }
246
- toString() {
247
- return this.message;
248
- }
249
- get message() {
250
- return JSON.stringify(this.issues, exports.util.jsonStringifyReplacer, 2);
251
- }
252
- get isEmpty() {
253
- return this.issues.length === 0;
254
- }
255
- flatten(mapper = (issue) => issue.message) {
256
- const fieldErrors = {};
257
- const formErrors = [];
258
- for (const sub of this.issues) {
259
- if (sub.path.length > 0) {
260
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
261
- fieldErrors[sub.path[0]].push(mapper(sub));
262
- }
263
- else {
264
- formErrors.push(mapper(sub));
265
- }
266
- }
267
- return { formErrors, fieldErrors };
268
- }
269
- get formErrors() {
270
- return this.flatten();
271
- }
272
- }
273
- ZodError.create = (issues) => {
274
- const error = new ZodError(issues);
275
- return error;
276
- };
277
-
278
- const errorMap = (issue, _ctx) => {
279
- let message;
280
- switch (issue.code) {
281
- case ZodIssueCode.invalid_type:
282
- if (issue.received === ZodParsedType.undefined) {
283
- message = "Required";
284
- }
285
- else {
286
- message = `Expected ${issue.expected}, received ${issue.received}`;
287
- }
288
- break;
289
- case ZodIssueCode.invalid_literal:
290
- message = `Invalid literal value, expected ${JSON.stringify(issue.expected, exports.util.jsonStringifyReplacer)}`;
291
- break;
292
- case ZodIssueCode.unrecognized_keys:
293
- message = `Unrecognized key(s) in object: ${exports.util.joinValues(issue.keys, ", ")}`;
294
- break;
295
- case ZodIssueCode.invalid_union:
296
- message = `Invalid input`;
297
- break;
298
- case ZodIssueCode.invalid_union_discriminator:
299
- message = `Invalid discriminator value. Expected ${exports.util.joinValues(issue.options)}`;
300
- break;
301
- case ZodIssueCode.invalid_enum_value:
302
- message = `Invalid enum value. Expected ${exports.util.joinValues(issue.options)}, received '${issue.received}'`;
303
- break;
304
- case ZodIssueCode.invalid_arguments:
305
- message = `Invalid function arguments`;
306
- break;
307
- case ZodIssueCode.invalid_return_type:
308
- message = `Invalid function return type`;
309
- break;
310
- case ZodIssueCode.invalid_date:
311
- message = `Invalid date`;
312
- break;
313
- case ZodIssueCode.invalid_string:
314
- if (typeof issue.validation === "object") {
315
- if ("includes" in issue.validation) {
316
- message = `Invalid input: must include "${issue.validation.includes}"`;
317
- if (typeof issue.validation.position === "number") {
318
- message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
319
- }
320
- }
321
- else if ("startsWith" in issue.validation) {
322
- message = `Invalid input: must start with "${issue.validation.startsWith}"`;
323
- }
324
- else if ("endsWith" in issue.validation) {
325
- message = `Invalid input: must end with "${issue.validation.endsWith}"`;
326
- }
327
- else {
328
- exports.util.assertNever(issue.validation);
329
- }
330
- }
331
- else if (issue.validation !== "regex") {
332
- message = `Invalid ${issue.validation}`;
333
- }
334
- else {
335
- message = "Invalid";
336
- }
337
- break;
338
- case ZodIssueCode.too_small:
339
- if (issue.type === "array")
340
- message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
341
- else if (issue.type === "string")
342
- message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
343
- else if (issue.type === "number")
344
- message = `Number must be ${issue.exact
345
- ? `exactly equal to `
346
- : issue.inclusive
347
- ? `greater than or equal to `
348
- : `greater than `}${issue.minimum}`;
349
- else if (issue.type === "date")
350
- message = `Date must be ${issue.exact
351
- ? `exactly equal to `
352
- : issue.inclusive
353
- ? `greater than or equal to `
354
- : `greater than `}${new Date(Number(issue.minimum))}`;
355
- else
356
- message = "Invalid input";
357
- break;
358
- case ZodIssueCode.too_big:
359
- if (issue.type === "array")
360
- message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
361
- else if (issue.type === "string")
362
- message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
363
- else if (issue.type === "number")
364
- message = `Number must be ${issue.exact
365
- ? `exactly`
366
- : issue.inclusive
367
- ? `less than or equal to`
368
- : `less than`} ${issue.maximum}`;
369
- else if (issue.type === "bigint")
370
- message = `BigInt must be ${issue.exact
371
- ? `exactly`
372
- : issue.inclusive
373
- ? `less than or equal to`
374
- : `less than`} ${issue.maximum}`;
375
- else if (issue.type === "date")
376
- message = `Date must be ${issue.exact
377
- ? `exactly`
378
- : issue.inclusive
379
- ? `smaller than or equal to`
380
- : `smaller than`} ${new Date(Number(issue.maximum))}`;
381
- else
382
- message = "Invalid input";
383
- break;
384
- case ZodIssueCode.custom:
385
- message = `Invalid input`;
386
- break;
387
- case ZodIssueCode.invalid_intersection_types:
388
- message = `Intersection results could not be merged`;
389
- break;
390
- case ZodIssueCode.not_multiple_of:
391
- message = `Number must be a multiple of ${issue.multipleOf}`;
392
- break;
393
- case ZodIssueCode.not_finite:
394
- message = "Number must be finite";
395
- break;
396
- default:
397
- message = _ctx.defaultError;
398
- exports.util.assertNever(issue);
399
- }
400
- return { message };
401
- };
402
-
403
- let overrideErrorMap = errorMap;
404
- function setErrorMap(map) {
405
- overrideErrorMap = map;
406
- }
407
- function getErrorMap() {
408
- return overrideErrorMap;
409
- }
410
-
411
- const makeIssue = (params) => {
412
- const { data, path, errorMaps, issueData } = params;
413
- const fullPath = [...path, ...(issueData.path || [])];
414
- const fullIssue = {
415
- ...issueData,
416
- path: fullPath,
417
- };
418
- if (issueData.message !== undefined) {
419
- return {
420
- ...issueData,
421
- path: fullPath,
422
- message: issueData.message,
423
- };
424
- }
425
- let errorMessage = "";
426
- const maps = errorMaps
427
- .filter((m) => !!m)
428
- .slice()
429
- .reverse();
430
- for (const map of maps) {
431
- errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
432
- }
433
- return {
434
- ...issueData,
435
- path: fullPath,
436
- message: errorMessage,
437
- };
438
- };
439
- const EMPTY_PATH = [];
440
- function addIssueToContext(ctx, issueData) {
441
- const overrideMap = getErrorMap();
442
- const issue = makeIssue({
443
- issueData: issueData,
444
- data: ctx.data,
445
- path: ctx.path,
446
- errorMaps: [
447
- ctx.common.contextualErrorMap,
448
- ctx.schemaErrorMap,
449
- overrideMap,
450
- overrideMap === errorMap ? undefined : errorMap, // then global default map
451
- ].filter((x) => !!x),
452
- });
453
- ctx.common.issues.push(issue);
454
- }
455
- class ParseStatus {
456
- constructor() {
457
- this.value = "valid";
458
- }
459
- dirty() {
460
- if (this.value === "valid")
461
- this.value = "dirty";
462
- }
463
- abort() {
464
- if (this.value !== "aborted")
465
- this.value = "aborted";
466
- }
467
- static mergeArray(status, results) {
468
- const arrayValue = [];
469
- for (const s of results) {
470
- if (s.status === "aborted")
471
- return INVALID;
472
- if (s.status === "dirty")
473
- status.dirty();
474
- arrayValue.push(s.value);
475
- }
476
- return { status: status.value, value: arrayValue };
477
- }
478
- static async mergeObjectAsync(status, pairs) {
479
- const syncPairs = [];
480
- for (const pair of pairs) {
481
- const key = await pair.key;
482
- const value = await pair.value;
483
- syncPairs.push({
484
- key,
485
- value,
486
- });
487
- }
488
- return ParseStatus.mergeObjectSync(status, syncPairs);
489
- }
490
- static mergeObjectSync(status, pairs) {
491
- const finalObject = {};
492
- for (const pair of pairs) {
493
- const { key, value } = pair;
494
- if (key.status === "aborted")
495
- return INVALID;
496
- if (value.status === "aborted")
497
- return INVALID;
498
- if (key.status === "dirty")
499
- status.dirty();
500
- if (value.status === "dirty")
501
- status.dirty();
502
- if (key.value !== "__proto__" &&
503
- (typeof value.value !== "undefined" || pair.alwaysSet)) {
504
- finalObject[key.value] = value.value;
505
- }
506
- }
507
- return { status: status.value, value: finalObject };
508
- }
509
- }
510
- const INVALID = Object.freeze({
511
- status: "aborted",
512
- });
513
- const DIRTY = (value) => ({ status: "dirty", value });
514
- const OK = (value) => ({ status: "valid", value });
515
- const isAborted = (x) => x.status === "aborted";
516
- const isDirty = (x) => x.status === "dirty";
517
- const isValid = (x) => x.status === "valid";
518
- const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
519
-
520
- /******************************************************************************
521
- Copyright (c) Microsoft Corporation.
522
-
523
- Permission to use, copy, modify, and/or distribute this software for any
524
- purpose with or without fee is hereby granted.
525
-
526
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
527
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
528
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
529
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
530
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
531
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
532
- PERFORMANCE OF THIS SOFTWARE.
533
- ***************************************************************************** */
534
-
535
- function __classPrivateFieldGet(receiver, state, kind, f) {
536
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
537
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
538
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
539
- }
540
-
541
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
542
- if (kind === "m") throw new TypeError("Private method is not writable");
543
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
544
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
545
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
546
- }
547
-
548
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
549
- var e = new Error(message);
550
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
551
- };
552
-
553
- var errorUtil;
554
- (function (errorUtil) {
555
- errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
556
- errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
557
- })(errorUtil || (errorUtil = {}));
558
-
559
- var _ZodEnum_cache, _ZodNativeEnum_cache;
560
- class ParseInputLazyPath {
561
- constructor(parent, value, path, key) {
562
- this._cachedPath = [];
563
- this.parent = parent;
564
- this.data = value;
565
- this._path = path;
566
- this._key = key;
567
- }
568
- get path() {
569
- if (!this._cachedPath.length) {
570
- if (this._key instanceof Array) {
571
- this._cachedPath.push(...this._path, ...this._key);
572
- }
573
- else {
574
- this._cachedPath.push(...this._path, this._key);
575
- }
576
- }
577
- return this._cachedPath;
578
- }
579
- }
580
- const handleResult = (ctx, result) => {
581
- if (isValid(result)) {
582
- return { success: true, data: result.value };
583
- }
584
- else {
585
- if (!ctx.common.issues.length) {
586
- throw new Error("Validation failed but no issues detected.");
587
- }
588
- return {
589
- success: false,
590
- get error() {
591
- if (this._error)
592
- return this._error;
593
- const error = new ZodError(ctx.common.issues);
594
- this._error = error;
595
- return this._error;
596
- },
597
- };
598
- }
599
- };
600
- function processCreateParams(params) {
601
- if (!params)
602
- return {};
603
- const { errorMap, invalid_type_error, required_error, description } = params;
604
- if (errorMap && (invalid_type_error || required_error)) {
605
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
606
- }
607
- if (errorMap)
608
- return { errorMap: errorMap, description };
609
- const customMap = (iss, ctx) => {
610
- var _a, _b;
611
- const { message } = params;
612
- if (iss.code === "invalid_enum_value") {
613
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
614
- }
615
- if (typeof ctx.data === "undefined") {
616
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
617
- }
618
- if (iss.code !== "invalid_type")
619
- return { message: ctx.defaultError };
620
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
621
- };
622
- return { errorMap: customMap, description };
623
- }
624
- class ZodType {
625
- constructor(def) {
626
- /** Alias of safeParseAsync */
627
- this.spa = this.safeParseAsync;
628
- this._def = def;
629
- this.parse = this.parse.bind(this);
630
- this.safeParse = this.safeParse.bind(this);
631
- this.parseAsync = this.parseAsync.bind(this);
632
- this.safeParseAsync = this.safeParseAsync.bind(this);
633
- this.spa = this.spa.bind(this);
634
- this.refine = this.refine.bind(this);
635
- this.refinement = this.refinement.bind(this);
636
- this.superRefine = this.superRefine.bind(this);
637
- this.optional = this.optional.bind(this);
638
- this.nullable = this.nullable.bind(this);
639
- this.nullish = this.nullish.bind(this);
640
- this.array = this.array.bind(this);
641
- this.promise = this.promise.bind(this);
642
- this.or = this.or.bind(this);
643
- this.and = this.and.bind(this);
644
- this.transform = this.transform.bind(this);
645
- this.brand = this.brand.bind(this);
646
- this.default = this.default.bind(this);
647
- this.catch = this.catch.bind(this);
648
- this.describe = this.describe.bind(this);
649
- this.pipe = this.pipe.bind(this);
650
- this.readonly = this.readonly.bind(this);
651
- this.isNullable = this.isNullable.bind(this);
652
- this.isOptional = this.isOptional.bind(this);
653
- }
654
- get description() {
655
- return this._def.description;
656
- }
657
- _getType(input) {
658
- return getParsedType(input.data);
659
- }
660
- _getOrReturnCtx(input, ctx) {
661
- return (ctx || {
662
- common: input.parent.common,
663
- data: input.data,
664
- parsedType: getParsedType(input.data),
665
- schemaErrorMap: this._def.errorMap,
666
- path: input.path,
667
- parent: input.parent,
668
- });
669
- }
670
- _processInputParams(input) {
671
- return {
672
- status: new ParseStatus(),
673
- ctx: {
674
- common: input.parent.common,
675
- data: input.data,
676
- parsedType: getParsedType(input.data),
677
- schemaErrorMap: this._def.errorMap,
678
- path: input.path,
679
- parent: input.parent,
680
- },
681
- };
682
- }
683
- _parseSync(input) {
684
- const result = this._parse(input);
685
- if (isAsync(result)) {
686
- throw new Error("Synchronous parse encountered promise.");
687
- }
688
- return result;
689
- }
690
- _parseAsync(input) {
691
- const result = this._parse(input);
692
- return Promise.resolve(result);
693
- }
694
- parse(data, params) {
695
- const result = this.safeParse(data, params);
696
- if (result.success)
697
- return result.data;
698
- throw result.error;
699
- }
700
- safeParse(data, params) {
701
- var _a;
702
- const ctx = {
703
- common: {
704
- issues: [],
705
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
706
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
707
- },
708
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
709
- schemaErrorMap: this._def.errorMap,
710
- parent: null,
711
- data,
712
- parsedType: getParsedType(data),
713
- };
714
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
715
- return handleResult(ctx, result);
716
- }
717
- async parseAsync(data, params) {
718
- const result = await this.safeParseAsync(data, params);
719
- if (result.success)
720
- return result.data;
721
- throw result.error;
722
- }
723
- async safeParseAsync(data, params) {
724
- const ctx = {
725
- common: {
726
- issues: [],
727
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
728
- async: true,
729
- },
730
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
731
- schemaErrorMap: this._def.errorMap,
732
- parent: null,
733
- data,
734
- parsedType: getParsedType(data),
735
- };
736
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
737
- const result = await (isAsync(maybeAsyncResult)
738
- ? maybeAsyncResult
739
- : Promise.resolve(maybeAsyncResult));
740
- return handleResult(ctx, result);
741
- }
742
- refine(check, message) {
743
- const getIssueProperties = (val) => {
744
- if (typeof message === "string" || typeof message === "undefined") {
745
- return { message };
746
- }
747
- else if (typeof message === "function") {
748
- return message(val);
749
- }
750
- else {
751
- return message;
752
- }
753
- };
754
- return this._refinement((val, ctx) => {
755
- const result = check(val);
756
- const setError = () => ctx.addIssue({
757
- code: ZodIssueCode.custom,
758
- ...getIssueProperties(val),
759
- });
760
- if (typeof Promise !== "undefined" && result instanceof Promise) {
761
- return result.then((data) => {
762
- if (!data) {
763
- setError();
764
- return false;
765
- }
766
- else {
767
- return true;
768
- }
769
- });
770
- }
771
- if (!result) {
772
- setError();
773
- return false;
774
- }
775
- else {
776
- return true;
777
- }
778
- });
779
- }
780
- refinement(check, refinementData) {
781
- return this._refinement((val, ctx) => {
782
- if (!check(val)) {
783
- ctx.addIssue(typeof refinementData === "function"
784
- ? refinementData(val, ctx)
785
- : refinementData);
786
- return false;
787
- }
788
- else {
789
- return true;
790
- }
791
- });
792
- }
793
- _refinement(refinement) {
794
- return new ZodEffects({
795
- schema: this,
796
- typeName: exports.ZodFirstPartyTypeKind.ZodEffects,
797
- effect: { type: "refinement", refinement },
798
- });
799
- }
800
- superRefine(refinement) {
801
- return this._refinement(refinement);
802
- }
803
- optional() {
804
- return ZodOptional.create(this, this._def);
805
- }
806
- nullable() {
807
- return ZodNullable.create(this, this._def);
808
- }
809
- nullish() {
810
- return this.nullable().optional();
811
- }
812
- array() {
813
- return ZodArray.create(this, this._def);
814
- }
815
- promise() {
816
- return ZodPromise.create(this, this._def);
817
- }
818
- or(option) {
819
- return ZodUnion.create([this, option], this._def);
820
- }
821
- and(incoming) {
822
- return ZodIntersection.create(this, incoming, this._def);
823
- }
824
- transform(transform) {
825
- return new ZodEffects({
826
- ...processCreateParams(this._def),
827
- schema: this,
828
- typeName: exports.ZodFirstPartyTypeKind.ZodEffects,
829
- effect: { type: "transform", transform },
830
- });
831
- }
832
- default(def) {
833
- const defaultValueFunc = typeof def === "function" ? def : () => def;
834
- return new ZodDefault({
835
- ...processCreateParams(this._def),
836
- innerType: this,
837
- defaultValue: defaultValueFunc,
838
- typeName: exports.ZodFirstPartyTypeKind.ZodDefault,
839
- });
840
- }
841
- brand() {
842
- return new ZodBranded({
843
- typeName: exports.ZodFirstPartyTypeKind.ZodBranded,
844
- type: this,
845
- ...processCreateParams(this._def),
846
- });
847
- }
848
- catch(def) {
849
- const catchValueFunc = typeof def === "function" ? def : () => def;
850
- return new ZodCatch({
851
- ...processCreateParams(this._def),
852
- innerType: this,
853
- catchValue: catchValueFunc,
854
- typeName: exports.ZodFirstPartyTypeKind.ZodCatch,
855
- });
856
- }
857
- describe(description) {
858
- const This = this.constructor;
859
- return new This({
860
- ...this._def,
861
- description,
862
- });
863
- }
864
- pipe(target) {
865
- return ZodPipeline.create(this, target);
866
- }
867
- readonly() {
868
- return ZodReadonly.create(this);
869
- }
870
- isOptional() {
871
- return this.safeParse(undefined).success;
872
- }
873
- isNullable() {
874
- return this.safeParse(null).success;
875
- }
876
- }
877
- const cuidRegex = /^c[^\s-]{8,}$/i;
878
- const cuid2Regex = /^[0-9a-z]+$/;
879
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
880
- // const uuidRegex =
881
- // /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
882
- const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
883
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
884
- const durationRegex = /^[-+]?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)?)??$/;
885
- // from https://stackoverflow.com/a/46181/1550155
886
- // old version: too slow, didn't support unicode
887
- // const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
888
- //old email regex
889
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
890
- // eslint-disable-next-line
891
- // const emailRegex =
892
- // /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
893
- // const emailRegex =
894
- // /^[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])?)*$/;
895
- // const emailRegex =
896
- // /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
897
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
898
- // const emailRegex =
899
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
900
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
901
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
902
- let emojiRegex;
903
- // faster, simpler, safer
904
- const ipv4Regex = /^(?:(?: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])$/;
905
- const ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
906
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
907
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
908
- // simple
909
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
910
- // no leap year validation
911
- // const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
912
- // with leap year validation
913
- const dateRegexSource = `((\\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])))`;
914
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
915
- function timeRegexSource(args) {
916
- // let regex = `\\d{2}:\\d{2}:\\d{2}`;
917
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
918
- if (args.precision) {
919
- regex = `${regex}\\.\\d{${args.precision}}`;
920
- }
921
- else if (args.precision == null) {
922
- regex = `${regex}(\\.\\d+)?`;
923
- }
924
- return regex;
925
- }
926
- function timeRegex(args) {
927
- return new RegExp(`^${timeRegexSource(args)}$`);
928
- }
929
- // Adapted from https://stackoverflow.com/a/3143231
930
- function datetimeRegex(args) {
931
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
932
- const opts = [];
933
- opts.push(args.local ? `Z?` : `Z`);
934
- if (args.offset)
935
- opts.push(`([+-]\\d{2}:?\\d{2})`);
936
- regex = `${regex}(${opts.join("|")})`;
937
- return new RegExp(`^${regex}$`);
938
- }
939
- function isValidIP(ip, version) {
940
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
941
- return true;
942
- }
943
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
944
- return true;
945
- }
946
- return false;
947
- }
948
- class ZodString extends ZodType {
949
- _parse(input) {
950
- if (this._def.coerce) {
951
- input.data = String(input.data);
952
- }
953
- const parsedType = this._getType(input);
954
- if (parsedType !== ZodParsedType.string) {
955
- const ctx = this._getOrReturnCtx(input);
956
- addIssueToContext(ctx, {
957
- code: ZodIssueCode.invalid_type,
958
- expected: ZodParsedType.string,
959
- received: ctx.parsedType,
960
- });
961
- return INVALID;
962
- }
963
- const status = new ParseStatus();
964
- let ctx = undefined;
965
- for (const check of this._def.checks) {
966
- if (check.kind === "min") {
967
- if (input.data.length < check.value) {
968
- ctx = this._getOrReturnCtx(input, ctx);
969
- addIssueToContext(ctx, {
970
- code: ZodIssueCode.too_small,
971
- minimum: check.value,
972
- type: "string",
973
- inclusive: true,
974
- exact: false,
975
- message: check.message,
976
- });
977
- status.dirty();
978
- }
979
- }
980
- else if (check.kind === "max") {
981
- if (input.data.length > check.value) {
982
- ctx = this._getOrReturnCtx(input, ctx);
983
- addIssueToContext(ctx, {
984
- code: ZodIssueCode.too_big,
985
- maximum: check.value,
986
- type: "string",
987
- inclusive: true,
988
- exact: false,
989
- message: check.message,
990
- });
991
- status.dirty();
992
- }
993
- }
994
- else if (check.kind === "length") {
995
- const tooBig = input.data.length > check.value;
996
- const tooSmall = input.data.length < check.value;
997
- if (tooBig || tooSmall) {
998
- ctx = this._getOrReturnCtx(input, ctx);
999
- if (tooBig) {
1000
- addIssueToContext(ctx, {
1001
- code: ZodIssueCode.too_big,
1002
- maximum: check.value,
1003
- type: "string",
1004
- inclusive: true,
1005
- exact: true,
1006
- message: check.message,
1007
- });
1008
- }
1009
- else if (tooSmall) {
1010
- addIssueToContext(ctx, {
1011
- code: ZodIssueCode.too_small,
1012
- minimum: check.value,
1013
- type: "string",
1014
- inclusive: true,
1015
- exact: true,
1016
- message: check.message,
1017
- });
1018
- }
1019
- status.dirty();
1020
- }
1021
- }
1022
- else if (check.kind === "email") {
1023
- if (!emailRegex.test(input.data)) {
1024
- ctx = this._getOrReturnCtx(input, ctx);
1025
- addIssueToContext(ctx, {
1026
- validation: "email",
1027
- code: ZodIssueCode.invalid_string,
1028
- message: check.message,
1029
- });
1030
- status.dirty();
1031
- }
1032
- }
1033
- else if (check.kind === "emoji") {
1034
- if (!emojiRegex) {
1035
- emojiRegex = new RegExp(_emojiRegex, "u");
1036
- }
1037
- if (!emojiRegex.test(input.data)) {
1038
- ctx = this._getOrReturnCtx(input, ctx);
1039
- addIssueToContext(ctx, {
1040
- validation: "emoji",
1041
- code: ZodIssueCode.invalid_string,
1042
- message: check.message,
1043
- });
1044
- status.dirty();
1045
- }
1046
- }
1047
- else if (check.kind === "uuid") {
1048
- if (!uuidRegex.test(input.data)) {
1049
- ctx = this._getOrReturnCtx(input, ctx);
1050
- addIssueToContext(ctx, {
1051
- validation: "uuid",
1052
- code: ZodIssueCode.invalid_string,
1053
- message: check.message,
1054
- });
1055
- status.dirty();
1056
- }
1057
- }
1058
- else if (check.kind === "nanoid") {
1059
- if (!nanoidRegex.test(input.data)) {
1060
- ctx = this._getOrReturnCtx(input, ctx);
1061
- addIssueToContext(ctx, {
1062
- validation: "nanoid",
1063
- code: ZodIssueCode.invalid_string,
1064
- message: check.message,
1065
- });
1066
- status.dirty();
1067
- }
1068
- }
1069
- else if (check.kind === "cuid") {
1070
- if (!cuidRegex.test(input.data)) {
1071
- ctx = this._getOrReturnCtx(input, ctx);
1072
- addIssueToContext(ctx, {
1073
- validation: "cuid",
1074
- code: ZodIssueCode.invalid_string,
1075
- message: check.message,
1076
- });
1077
- status.dirty();
1078
- }
1079
- }
1080
- else if (check.kind === "cuid2") {
1081
- if (!cuid2Regex.test(input.data)) {
1082
- ctx = this._getOrReturnCtx(input, ctx);
1083
- addIssueToContext(ctx, {
1084
- validation: "cuid2",
1085
- code: ZodIssueCode.invalid_string,
1086
- message: check.message,
1087
- });
1088
- status.dirty();
1089
- }
1090
- }
1091
- else if (check.kind === "ulid") {
1092
- if (!ulidRegex.test(input.data)) {
1093
- ctx = this._getOrReturnCtx(input, ctx);
1094
- addIssueToContext(ctx, {
1095
- validation: "ulid",
1096
- code: ZodIssueCode.invalid_string,
1097
- message: check.message,
1098
- });
1099
- status.dirty();
1100
- }
1101
- }
1102
- else if (check.kind === "url") {
1103
- try {
1104
- new URL(input.data);
1105
- }
1106
- catch (_a) {
1107
- ctx = this._getOrReturnCtx(input, ctx);
1108
- addIssueToContext(ctx, {
1109
- validation: "url",
1110
- code: ZodIssueCode.invalid_string,
1111
- message: check.message,
1112
- });
1113
- status.dirty();
1114
- }
1115
- }
1116
- else if (check.kind === "regex") {
1117
- check.regex.lastIndex = 0;
1118
- const testResult = check.regex.test(input.data);
1119
- if (!testResult) {
1120
- ctx = this._getOrReturnCtx(input, ctx);
1121
- addIssueToContext(ctx, {
1122
- validation: "regex",
1123
- code: ZodIssueCode.invalid_string,
1124
- message: check.message,
1125
- });
1126
- status.dirty();
1127
- }
1128
- }
1129
- else if (check.kind === "trim") {
1130
- input.data = input.data.trim();
1131
- }
1132
- else if (check.kind === "includes") {
1133
- if (!input.data.includes(check.value, check.position)) {
1134
- ctx = this._getOrReturnCtx(input, ctx);
1135
- addIssueToContext(ctx, {
1136
- code: ZodIssueCode.invalid_string,
1137
- validation: { includes: check.value, position: check.position },
1138
- message: check.message,
1139
- });
1140
- status.dirty();
1141
- }
1142
- }
1143
- else if (check.kind === "toLowerCase") {
1144
- input.data = input.data.toLowerCase();
1145
- }
1146
- else if (check.kind === "toUpperCase") {
1147
- input.data = input.data.toUpperCase();
1148
- }
1149
- else if (check.kind === "startsWith") {
1150
- if (!input.data.startsWith(check.value)) {
1151
- ctx = this._getOrReturnCtx(input, ctx);
1152
- addIssueToContext(ctx, {
1153
- code: ZodIssueCode.invalid_string,
1154
- validation: { startsWith: check.value },
1155
- message: check.message,
1156
- });
1157
- status.dirty();
1158
- }
1159
- }
1160
- else if (check.kind === "endsWith") {
1161
- if (!input.data.endsWith(check.value)) {
1162
- ctx = this._getOrReturnCtx(input, ctx);
1163
- addIssueToContext(ctx, {
1164
- code: ZodIssueCode.invalid_string,
1165
- validation: { endsWith: check.value },
1166
- message: check.message,
1167
- });
1168
- status.dirty();
1169
- }
1170
- }
1171
- else if (check.kind === "datetime") {
1172
- const regex = datetimeRegex(check);
1173
- if (!regex.test(input.data)) {
1174
- ctx = this._getOrReturnCtx(input, ctx);
1175
- addIssueToContext(ctx, {
1176
- code: ZodIssueCode.invalid_string,
1177
- validation: "datetime",
1178
- message: check.message,
1179
- });
1180
- status.dirty();
1181
- }
1182
- }
1183
- else if (check.kind === "date") {
1184
- const regex = dateRegex;
1185
- if (!regex.test(input.data)) {
1186
- ctx = this._getOrReturnCtx(input, ctx);
1187
- addIssueToContext(ctx, {
1188
- code: ZodIssueCode.invalid_string,
1189
- validation: "date",
1190
- message: check.message,
1191
- });
1192
- status.dirty();
1193
- }
1194
- }
1195
- else if (check.kind === "time") {
1196
- const regex = timeRegex(check);
1197
- if (!regex.test(input.data)) {
1198
- ctx = this._getOrReturnCtx(input, ctx);
1199
- addIssueToContext(ctx, {
1200
- code: ZodIssueCode.invalid_string,
1201
- validation: "time",
1202
- message: check.message,
1203
- });
1204
- status.dirty();
1205
- }
1206
- }
1207
- else if (check.kind === "duration") {
1208
- if (!durationRegex.test(input.data)) {
1209
- ctx = this._getOrReturnCtx(input, ctx);
1210
- addIssueToContext(ctx, {
1211
- validation: "duration",
1212
- code: ZodIssueCode.invalid_string,
1213
- message: check.message,
1214
- });
1215
- status.dirty();
1216
- }
1217
- }
1218
- else if (check.kind === "ip") {
1219
- if (!isValidIP(input.data, check.version)) {
1220
- ctx = this._getOrReturnCtx(input, ctx);
1221
- addIssueToContext(ctx, {
1222
- validation: "ip",
1223
- code: ZodIssueCode.invalid_string,
1224
- message: check.message,
1225
- });
1226
- status.dirty();
1227
- }
1228
- }
1229
- else if (check.kind === "base64") {
1230
- if (!base64Regex.test(input.data)) {
1231
- ctx = this._getOrReturnCtx(input, ctx);
1232
- addIssueToContext(ctx, {
1233
- validation: "base64",
1234
- code: ZodIssueCode.invalid_string,
1235
- message: check.message,
1236
- });
1237
- status.dirty();
1238
- }
1239
- }
1240
- else {
1241
- exports.util.assertNever(check);
1242
- }
1243
- }
1244
- return { status: status.value, value: input.data };
1245
- }
1246
- _regex(regex, validation, message) {
1247
- return this.refinement((data) => regex.test(data), {
1248
- validation,
1249
- code: ZodIssueCode.invalid_string,
1250
- ...errorUtil.errToObj(message),
1251
- });
1252
- }
1253
- _addCheck(check) {
1254
- return new ZodString({
1255
- ...this._def,
1256
- checks: [...this._def.checks, check],
1257
- });
1258
- }
1259
- email(message) {
1260
- return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });
1261
- }
1262
- url(message) {
1263
- return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });
1264
- }
1265
- emoji(message) {
1266
- return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });
1267
- }
1268
- uuid(message) {
1269
- return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
1270
- }
1271
- nanoid(message) {
1272
- return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
1273
- }
1274
- cuid(message) {
1275
- return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
1276
- }
1277
- cuid2(message) {
1278
- return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });
1279
- }
1280
- ulid(message) {
1281
- return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
1282
- }
1283
- base64(message) {
1284
- return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
1285
- }
1286
- ip(options) {
1287
- return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
1288
- }
1289
- datetime(options) {
1290
- var _a, _b;
1291
- if (typeof options === "string") {
1292
- return this._addCheck({
1293
- kind: "datetime",
1294
- precision: null,
1295
- offset: false,
1296
- local: false,
1297
- message: options,
1298
- });
1299
- }
1300
- return this._addCheck({
1301
- kind: "datetime",
1302
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1303
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
1304
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
1305
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1306
- });
1307
- }
1308
- date(message) {
1309
- return this._addCheck({ kind: "date", message });
1310
- }
1311
- time(options) {
1312
- if (typeof options === "string") {
1313
- return this._addCheck({
1314
- kind: "time",
1315
- precision: null,
1316
- message: options,
1317
- });
1318
- }
1319
- return this._addCheck({
1320
- kind: "time",
1321
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1322
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1323
- });
1324
- }
1325
- duration(message) {
1326
- return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
1327
- }
1328
- regex(regex, message) {
1329
- return this._addCheck({
1330
- kind: "regex",
1331
- regex: regex,
1332
- ...errorUtil.errToObj(message),
1333
- });
1334
- }
1335
- includes(value, options) {
1336
- return this._addCheck({
1337
- kind: "includes",
1338
- value: value,
1339
- position: options === null || options === void 0 ? void 0 : options.position,
1340
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1341
- });
1342
- }
1343
- startsWith(value, message) {
1344
- return this._addCheck({
1345
- kind: "startsWith",
1346
- value: value,
1347
- ...errorUtil.errToObj(message),
1348
- });
1349
- }
1350
- endsWith(value, message) {
1351
- return this._addCheck({
1352
- kind: "endsWith",
1353
- value: value,
1354
- ...errorUtil.errToObj(message),
1355
- });
1356
- }
1357
- min(minLength, message) {
1358
- return this._addCheck({
1359
- kind: "min",
1360
- value: minLength,
1361
- ...errorUtil.errToObj(message),
1362
- });
1363
- }
1364
- max(maxLength, message) {
1365
- return this._addCheck({
1366
- kind: "max",
1367
- value: maxLength,
1368
- ...errorUtil.errToObj(message),
1369
- });
1370
- }
1371
- length(len, message) {
1372
- return this._addCheck({
1373
- kind: "length",
1374
- value: len,
1375
- ...errorUtil.errToObj(message),
1376
- });
1377
- }
1378
- /**
1379
- * @deprecated Use z.string().min(1) instead.
1380
- * @see {@link ZodString.min}
1381
- */
1382
- nonempty(message) {
1383
- return this.min(1, errorUtil.errToObj(message));
1384
- }
1385
- trim() {
1386
- return new ZodString({
1387
- ...this._def,
1388
- checks: [...this._def.checks, { kind: "trim" }],
1389
- });
1390
- }
1391
- toLowerCase() {
1392
- return new ZodString({
1393
- ...this._def,
1394
- checks: [...this._def.checks, { kind: "toLowerCase" }],
1395
- });
1396
- }
1397
- toUpperCase() {
1398
- return new ZodString({
1399
- ...this._def,
1400
- checks: [...this._def.checks, { kind: "toUpperCase" }],
1401
- });
1402
- }
1403
- get isDatetime() {
1404
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
1405
- }
1406
- get isDate() {
1407
- return !!this._def.checks.find((ch) => ch.kind === "date");
1408
- }
1409
- get isTime() {
1410
- return !!this._def.checks.find((ch) => ch.kind === "time");
1411
- }
1412
- get isDuration() {
1413
- return !!this._def.checks.find((ch) => ch.kind === "duration");
1414
- }
1415
- get isEmail() {
1416
- return !!this._def.checks.find((ch) => ch.kind === "email");
1417
- }
1418
- get isURL() {
1419
- return !!this._def.checks.find((ch) => ch.kind === "url");
1420
- }
1421
- get isEmoji() {
1422
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
1423
- }
1424
- get isUUID() {
1425
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
1426
- }
1427
- get isNANOID() {
1428
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1429
- }
1430
- get isCUID() {
1431
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
1432
- }
1433
- get isCUID2() {
1434
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1435
- }
1436
- get isULID() {
1437
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
1438
- }
1439
- get isIP() {
1440
- return !!this._def.checks.find((ch) => ch.kind === "ip");
1441
- }
1442
- get isBase64() {
1443
- return !!this._def.checks.find((ch) => ch.kind === "base64");
1444
- }
1445
- get minLength() {
1446
- let min = null;
1447
- for (const ch of this._def.checks) {
1448
- if (ch.kind === "min") {
1449
- if (min === null || ch.value > min)
1450
- min = ch.value;
1451
- }
1452
- }
1453
- return min;
1454
- }
1455
- get maxLength() {
1456
- let max = null;
1457
- for (const ch of this._def.checks) {
1458
- if (ch.kind === "max") {
1459
- if (max === null || ch.value < max)
1460
- max = ch.value;
1461
- }
1462
- }
1463
- return max;
1464
- }
1465
- }
1466
- ZodString.create = (params) => {
1467
- var _a;
1468
- return new ZodString({
1469
- checks: [],
1470
- typeName: exports.ZodFirstPartyTypeKind.ZodString,
1471
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1472
- ...processCreateParams(params),
1473
- });
1474
- };
1475
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1476
- function floatSafeRemainder(val, step) {
1477
- const valDecCount = (val.toString().split(".")[1] || "").length;
1478
- const stepDecCount = (step.toString().split(".")[1] || "").length;
1479
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1480
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
1481
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
1482
- return (valInt % stepInt) / Math.pow(10, decCount);
1483
- }
1484
- class ZodNumber extends ZodType {
1485
- constructor() {
1486
- super(...arguments);
1487
- this.min = this.gte;
1488
- this.max = this.lte;
1489
- this.step = this.multipleOf;
1490
- }
1491
- _parse(input) {
1492
- if (this._def.coerce) {
1493
- input.data = Number(input.data);
1494
- }
1495
- const parsedType = this._getType(input);
1496
- if (parsedType !== ZodParsedType.number) {
1497
- const ctx = this._getOrReturnCtx(input);
1498
- addIssueToContext(ctx, {
1499
- code: ZodIssueCode.invalid_type,
1500
- expected: ZodParsedType.number,
1501
- received: ctx.parsedType,
1502
- });
1503
- return INVALID;
1504
- }
1505
- let ctx = undefined;
1506
- const status = new ParseStatus();
1507
- for (const check of this._def.checks) {
1508
- if (check.kind === "int") {
1509
- if (!exports.util.isInteger(input.data)) {
1510
- ctx = this._getOrReturnCtx(input, ctx);
1511
- addIssueToContext(ctx, {
1512
- code: ZodIssueCode.invalid_type,
1513
- expected: "integer",
1514
- received: "float",
1515
- message: check.message,
1516
- });
1517
- status.dirty();
1518
- }
1519
- }
1520
- else if (check.kind === "min") {
1521
- const tooSmall = check.inclusive
1522
- ? input.data < check.value
1523
- : input.data <= check.value;
1524
- if (tooSmall) {
1525
- ctx = this._getOrReturnCtx(input, ctx);
1526
- addIssueToContext(ctx, {
1527
- code: ZodIssueCode.too_small,
1528
- minimum: check.value,
1529
- type: "number",
1530
- inclusive: check.inclusive,
1531
- exact: false,
1532
- message: check.message,
1533
- });
1534
- status.dirty();
1535
- }
1536
- }
1537
- else if (check.kind === "max") {
1538
- const tooBig = check.inclusive
1539
- ? input.data > check.value
1540
- : input.data >= check.value;
1541
- if (tooBig) {
1542
- ctx = this._getOrReturnCtx(input, ctx);
1543
- addIssueToContext(ctx, {
1544
- code: ZodIssueCode.too_big,
1545
- maximum: check.value,
1546
- type: "number",
1547
- inclusive: check.inclusive,
1548
- exact: false,
1549
- message: check.message,
1550
- });
1551
- status.dirty();
1552
- }
1553
- }
1554
- else if (check.kind === "multipleOf") {
1555
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1556
- ctx = this._getOrReturnCtx(input, ctx);
1557
- addIssueToContext(ctx, {
1558
- code: ZodIssueCode.not_multiple_of,
1559
- multipleOf: check.value,
1560
- message: check.message,
1561
- });
1562
- status.dirty();
1563
- }
1564
- }
1565
- else if (check.kind === "finite") {
1566
- if (!Number.isFinite(input.data)) {
1567
- ctx = this._getOrReturnCtx(input, ctx);
1568
- addIssueToContext(ctx, {
1569
- code: ZodIssueCode.not_finite,
1570
- message: check.message,
1571
- });
1572
- status.dirty();
1573
- }
1574
- }
1575
- else {
1576
- exports.util.assertNever(check);
1577
- }
1578
- }
1579
- return { status: status.value, value: input.data };
1580
- }
1581
- gte(value, message) {
1582
- return this.setLimit("min", value, true, errorUtil.toString(message));
1583
- }
1584
- gt(value, message) {
1585
- return this.setLimit("min", value, false, errorUtil.toString(message));
1586
- }
1587
- lte(value, message) {
1588
- return this.setLimit("max", value, true, errorUtil.toString(message));
1589
- }
1590
- lt(value, message) {
1591
- return this.setLimit("max", value, false, errorUtil.toString(message));
1592
- }
1593
- setLimit(kind, value, inclusive, message) {
1594
- return new ZodNumber({
1595
- ...this._def,
1596
- checks: [
1597
- ...this._def.checks,
1598
- {
1599
- kind,
1600
- value,
1601
- inclusive,
1602
- message: errorUtil.toString(message),
1603
- },
1604
- ],
1605
- });
1606
- }
1607
- _addCheck(check) {
1608
- return new ZodNumber({
1609
- ...this._def,
1610
- checks: [...this._def.checks, check],
1611
- });
1612
- }
1613
- int(message) {
1614
- return this._addCheck({
1615
- kind: "int",
1616
- message: errorUtil.toString(message),
1617
- });
1618
- }
1619
- positive(message) {
1620
- return this._addCheck({
1621
- kind: "min",
1622
- value: 0,
1623
- inclusive: false,
1624
- message: errorUtil.toString(message),
1625
- });
1626
- }
1627
- negative(message) {
1628
- return this._addCheck({
1629
- kind: "max",
1630
- value: 0,
1631
- inclusive: false,
1632
- message: errorUtil.toString(message),
1633
- });
1634
- }
1635
- nonpositive(message) {
1636
- return this._addCheck({
1637
- kind: "max",
1638
- value: 0,
1639
- inclusive: true,
1640
- message: errorUtil.toString(message),
1641
- });
1642
- }
1643
- nonnegative(message) {
1644
- return this._addCheck({
1645
- kind: "min",
1646
- value: 0,
1647
- inclusive: true,
1648
- message: errorUtil.toString(message),
1649
- });
1650
- }
1651
- multipleOf(value, message) {
1652
- return this._addCheck({
1653
- kind: "multipleOf",
1654
- value: value,
1655
- message: errorUtil.toString(message),
1656
- });
1657
- }
1658
- finite(message) {
1659
- return this._addCheck({
1660
- kind: "finite",
1661
- message: errorUtil.toString(message),
1662
- });
1663
- }
1664
- safe(message) {
1665
- return this._addCheck({
1666
- kind: "min",
1667
- inclusive: true,
1668
- value: Number.MIN_SAFE_INTEGER,
1669
- message: errorUtil.toString(message),
1670
- })._addCheck({
1671
- kind: "max",
1672
- inclusive: true,
1673
- value: Number.MAX_SAFE_INTEGER,
1674
- message: errorUtil.toString(message),
1675
- });
1676
- }
1677
- get minValue() {
1678
- let min = null;
1679
- for (const ch of this._def.checks) {
1680
- if (ch.kind === "min") {
1681
- if (min === null || ch.value > min)
1682
- min = ch.value;
1683
- }
1684
- }
1685
- return min;
1686
- }
1687
- get maxValue() {
1688
- let max = null;
1689
- for (const ch of this._def.checks) {
1690
- if (ch.kind === "max") {
1691
- if (max === null || ch.value < max)
1692
- max = ch.value;
1693
- }
1694
- }
1695
- return max;
1696
- }
1697
- get isInt() {
1698
- return !!this._def.checks.find((ch) => ch.kind === "int" ||
1699
- (ch.kind === "multipleOf" && exports.util.isInteger(ch.value)));
1700
- }
1701
- get isFinite() {
1702
- let max = null, min = null;
1703
- for (const ch of this._def.checks) {
1704
- if (ch.kind === "finite" ||
1705
- ch.kind === "int" ||
1706
- ch.kind === "multipleOf") {
1707
- return true;
1708
- }
1709
- else if (ch.kind === "min") {
1710
- if (min === null || ch.value > min)
1711
- min = ch.value;
1712
- }
1713
- else if (ch.kind === "max") {
1714
- if (max === null || ch.value < max)
1715
- max = ch.value;
1716
- }
1717
- }
1718
- return Number.isFinite(min) && Number.isFinite(max);
1719
- }
1720
- }
1721
- ZodNumber.create = (params) => {
1722
- return new ZodNumber({
1723
- checks: [],
1724
- typeName: exports.ZodFirstPartyTypeKind.ZodNumber,
1725
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1726
- ...processCreateParams(params),
1727
- });
1728
- };
1729
- class ZodBigInt extends ZodType {
1730
- constructor() {
1731
- super(...arguments);
1732
- this.min = this.gte;
1733
- this.max = this.lte;
1734
- }
1735
- _parse(input) {
1736
- if (this._def.coerce) {
1737
- input.data = BigInt(input.data);
1738
- }
1739
- const parsedType = this._getType(input);
1740
- if (parsedType !== ZodParsedType.bigint) {
1741
- const ctx = this._getOrReturnCtx(input);
1742
- addIssueToContext(ctx, {
1743
- code: ZodIssueCode.invalid_type,
1744
- expected: ZodParsedType.bigint,
1745
- received: ctx.parsedType,
1746
- });
1747
- return INVALID;
1748
- }
1749
- let ctx = undefined;
1750
- const status = new ParseStatus();
1751
- for (const check of this._def.checks) {
1752
- if (check.kind === "min") {
1753
- const tooSmall = check.inclusive
1754
- ? input.data < check.value
1755
- : input.data <= check.value;
1756
- if (tooSmall) {
1757
- ctx = this._getOrReturnCtx(input, ctx);
1758
- addIssueToContext(ctx, {
1759
- code: ZodIssueCode.too_small,
1760
- type: "bigint",
1761
- minimum: check.value,
1762
- inclusive: check.inclusive,
1763
- message: check.message,
1764
- });
1765
- status.dirty();
1766
- }
1767
- }
1768
- else if (check.kind === "max") {
1769
- const tooBig = check.inclusive
1770
- ? input.data > check.value
1771
- : input.data >= check.value;
1772
- if (tooBig) {
1773
- ctx = this._getOrReturnCtx(input, ctx);
1774
- addIssueToContext(ctx, {
1775
- code: ZodIssueCode.too_big,
1776
- type: "bigint",
1777
- maximum: check.value,
1778
- inclusive: check.inclusive,
1779
- message: check.message,
1780
- });
1781
- status.dirty();
1782
- }
1783
- }
1784
- else if (check.kind === "multipleOf") {
1785
- if (input.data % check.value !== BigInt(0)) {
1786
- ctx = this._getOrReturnCtx(input, ctx);
1787
- addIssueToContext(ctx, {
1788
- code: ZodIssueCode.not_multiple_of,
1789
- multipleOf: check.value,
1790
- message: check.message,
1791
- });
1792
- status.dirty();
1793
- }
1794
- }
1795
- else {
1796
- exports.util.assertNever(check);
1797
- }
1798
- }
1799
- return { status: status.value, value: input.data };
1800
- }
1801
- gte(value, message) {
1802
- return this.setLimit("min", value, true, errorUtil.toString(message));
1803
- }
1804
- gt(value, message) {
1805
- return this.setLimit("min", value, false, errorUtil.toString(message));
1806
- }
1807
- lte(value, message) {
1808
- return this.setLimit("max", value, true, errorUtil.toString(message));
1809
- }
1810
- lt(value, message) {
1811
- return this.setLimit("max", value, false, errorUtil.toString(message));
1812
- }
1813
- setLimit(kind, value, inclusive, message) {
1814
- return new ZodBigInt({
1815
- ...this._def,
1816
- checks: [
1817
- ...this._def.checks,
1818
- {
1819
- kind,
1820
- value,
1821
- inclusive,
1822
- message: errorUtil.toString(message),
1823
- },
1824
- ],
1825
- });
1826
- }
1827
- _addCheck(check) {
1828
- return new ZodBigInt({
1829
- ...this._def,
1830
- checks: [...this._def.checks, check],
1831
- });
1832
- }
1833
- positive(message) {
1834
- return this._addCheck({
1835
- kind: "min",
1836
- value: BigInt(0),
1837
- inclusive: false,
1838
- message: errorUtil.toString(message),
1839
- });
1840
- }
1841
- negative(message) {
1842
- return this._addCheck({
1843
- kind: "max",
1844
- value: BigInt(0),
1845
- inclusive: false,
1846
- message: errorUtil.toString(message),
1847
- });
1848
- }
1849
- nonpositive(message) {
1850
- return this._addCheck({
1851
- kind: "max",
1852
- value: BigInt(0),
1853
- inclusive: true,
1854
- message: errorUtil.toString(message),
1855
- });
1856
- }
1857
- nonnegative(message) {
1858
- return this._addCheck({
1859
- kind: "min",
1860
- value: BigInt(0),
1861
- inclusive: true,
1862
- message: errorUtil.toString(message),
1863
- });
1864
- }
1865
- multipleOf(value, message) {
1866
- return this._addCheck({
1867
- kind: "multipleOf",
1868
- value,
1869
- message: errorUtil.toString(message),
1870
- });
1871
- }
1872
- get minValue() {
1873
- let min = null;
1874
- for (const ch of this._def.checks) {
1875
- if (ch.kind === "min") {
1876
- if (min === null || ch.value > min)
1877
- min = ch.value;
1878
- }
1879
- }
1880
- return min;
1881
- }
1882
- get maxValue() {
1883
- let max = null;
1884
- for (const ch of this._def.checks) {
1885
- if (ch.kind === "max") {
1886
- if (max === null || ch.value < max)
1887
- max = ch.value;
1888
- }
1889
- }
1890
- return max;
1891
- }
1892
- }
1893
- ZodBigInt.create = (params) => {
1894
- var _a;
1895
- return new ZodBigInt({
1896
- checks: [],
1897
- typeName: exports.ZodFirstPartyTypeKind.ZodBigInt,
1898
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1899
- ...processCreateParams(params),
1900
- });
1901
- };
1902
- class ZodBoolean extends ZodType {
1903
- _parse(input) {
1904
- if (this._def.coerce) {
1905
- input.data = Boolean(input.data);
1906
- }
1907
- const parsedType = this._getType(input);
1908
- if (parsedType !== ZodParsedType.boolean) {
1909
- const ctx = this._getOrReturnCtx(input);
1910
- addIssueToContext(ctx, {
1911
- code: ZodIssueCode.invalid_type,
1912
- expected: ZodParsedType.boolean,
1913
- received: ctx.parsedType,
1914
- });
1915
- return INVALID;
1916
- }
1917
- return OK(input.data);
1918
- }
1919
- }
1920
- ZodBoolean.create = (params) => {
1921
- return new ZodBoolean({
1922
- typeName: exports.ZodFirstPartyTypeKind.ZodBoolean,
1923
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1924
- ...processCreateParams(params),
1925
- });
1926
- };
1927
- class ZodDate extends ZodType {
1928
- _parse(input) {
1929
- if (this._def.coerce) {
1930
- input.data = new Date(input.data);
1931
- }
1932
- const parsedType = this._getType(input);
1933
- if (parsedType !== ZodParsedType.date) {
1934
- const ctx = this._getOrReturnCtx(input);
1935
- addIssueToContext(ctx, {
1936
- code: ZodIssueCode.invalid_type,
1937
- expected: ZodParsedType.date,
1938
- received: ctx.parsedType,
1939
- });
1940
- return INVALID;
1941
- }
1942
- if (isNaN(input.data.getTime())) {
1943
- const ctx = this._getOrReturnCtx(input);
1944
- addIssueToContext(ctx, {
1945
- code: ZodIssueCode.invalid_date,
1946
- });
1947
- return INVALID;
1948
- }
1949
- const status = new ParseStatus();
1950
- let ctx = undefined;
1951
- for (const check of this._def.checks) {
1952
- if (check.kind === "min") {
1953
- if (input.data.getTime() < check.value) {
1954
- ctx = this._getOrReturnCtx(input, ctx);
1955
- addIssueToContext(ctx, {
1956
- code: ZodIssueCode.too_small,
1957
- message: check.message,
1958
- inclusive: true,
1959
- exact: false,
1960
- minimum: check.value,
1961
- type: "date",
1962
- });
1963
- status.dirty();
1964
- }
1965
- }
1966
- else if (check.kind === "max") {
1967
- if (input.data.getTime() > check.value) {
1968
- ctx = this._getOrReturnCtx(input, ctx);
1969
- addIssueToContext(ctx, {
1970
- code: ZodIssueCode.too_big,
1971
- message: check.message,
1972
- inclusive: true,
1973
- exact: false,
1974
- maximum: check.value,
1975
- type: "date",
1976
- });
1977
- status.dirty();
1978
- }
1979
- }
1980
- else {
1981
- exports.util.assertNever(check);
1982
- }
1983
- }
1984
- return {
1985
- status: status.value,
1986
- value: new Date(input.data.getTime()),
1987
- };
1988
- }
1989
- _addCheck(check) {
1990
- return new ZodDate({
1991
- ...this._def,
1992
- checks: [...this._def.checks, check],
1993
- });
1994
- }
1995
- min(minDate, message) {
1996
- return this._addCheck({
1997
- kind: "min",
1998
- value: minDate.getTime(),
1999
- message: errorUtil.toString(message),
2000
- });
2001
- }
2002
- max(maxDate, message) {
2003
- return this._addCheck({
2004
- kind: "max",
2005
- value: maxDate.getTime(),
2006
- message: errorUtil.toString(message),
2007
- });
2008
- }
2009
- get minDate() {
2010
- let min = null;
2011
- for (const ch of this._def.checks) {
2012
- if (ch.kind === "min") {
2013
- if (min === null || ch.value > min)
2014
- min = ch.value;
2015
- }
2016
- }
2017
- return min != null ? new Date(min) : null;
2018
- }
2019
- get maxDate() {
2020
- let max = null;
2021
- for (const ch of this._def.checks) {
2022
- if (ch.kind === "max") {
2023
- if (max === null || ch.value < max)
2024
- max = ch.value;
2025
- }
2026
- }
2027
- return max != null ? new Date(max) : null;
2028
- }
2029
- }
2030
- ZodDate.create = (params) => {
2031
- return new ZodDate({
2032
- checks: [],
2033
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
2034
- typeName: exports.ZodFirstPartyTypeKind.ZodDate,
2035
- ...processCreateParams(params),
2036
- });
2037
- };
2038
- class ZodSymbol extends ZodType {
2039
- _parse(input) {
2040
- const parsedType = this._getType(input);
2041
- if (parsedType !== ZodParsedType.symbol) {
2042
- const ctx = this._getOrReturnCtx(input);
2043
- addIssueToContext(ctx, {
2044
- code: ZodIssueCode.invalid_type,
2045
- expected: ZodParsedType.symbol,
2046
- received: ctx.parsedType,
2047
- });
2048
- return INVALID;
2049
- }
2050
- return OK(input.data);
2051
- }
2052
- }
2053
- ZodSymbol.create = (params) => {
2054
- return new ZodSymbol({
2055
- typeName: exports.ZodFirstPartyTypeKind.ZodSymbol,
2056
- ...processCreateParams(params),
2057
- });
2058
- };
2059
- class ZodUndefined extends ZodType {
2060
- _parse(input) {
2061
- const parsedType = this._getType(input);
2062
- if (parsedType !== ZodParsedType.undefined) {
2063
- const ctx = this._getOrReturnCtx(input);
2064
- addIssueToContext(ctx, {
2065
- code: ZodIssueCode.invalid_type,
2066
- expected: ZodParsedType.undefined,
2067
- received: ctx.parsedType,
2068
- });
2069
- return INVALID;
2070
- }
2071
- return OK(input.data);
2072
- }
2073
- }
2074
- ZodUndefined.create = (params) => {
2075
- return new ZodUndefined({
2076
- typeName: exports.ZodFirstPartyTypeKind.ZodUndefined,
2077
- ...processCreateParams(params),
2078
- });
2079
- };
2080
- class ZodNull extends ZodType {
2081
- _parse(input) {
2082
- const parsedType = this._getType(input);
2083
- if (parsedType !== ZodParsedType.null) {
2084
- const ctx = this._getOrReturnCtx(input);
2085
- addIssueToContext(ctx, {
2086
- code: ZodIssueCode.invalid_type,
2087
- expected: ZodParsedType.null,
2088
- received: ctx.parsedType,
2089
- });
2090
- return INVALID;
2091
- }
2092
- return OK(input.data);
2093
- }
2094
- }
2095
- ZodNull.create = (params) => {
2096
- return new ZodNull({
2097
- typeName: exports.ZodFirstPartyTypeKind.ZodNull,
2098
- ...processCreateParams(params),
2099
- });
2100
- };
2101
- class ZodAny extends ZodType {
2102
- constructor() {
2103
- super(...arguments);
2104
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
2105
- this._any = true;
2106
- }
2107
- _parse(input) {
2108
- return OK(input.data);
2109
- }
2110
- }
2111
- ZodAny.create = (params) => {
2112
- return new ZodAny({
2113
- typeName: exports.ZodFirstPartyTypeKind.ZodAny,
2114
- ...processCreateParams(params),
2115
- });
2116
- };
2117
- class ZodUnknown extends ZodType {
2118
- constructor() {
2119
- super(...arguments);
2120
- // required
2121
- this._unknown = true;
2122
- }
2123
- _parse(input) {
2124
- return OK(input.data);
2125
- }
2126
- }
2127
- ZodUnknown.create = (params) => {
2128
- return new ZodUnknown({
2129
- typeName: exports.ZodFirstPartyTypeKind.ZodUnknown,
2130
- ...processCreateParams(params),
2131
- });
2132
- };
2133
- class ZodNever extends ZodType {
2134
- _parse(input) {
2135
- const ctx = this._getOrReturnCtx(input);
2136
- addIssueToContext(ctx, {
2137
- code: ZodIssueCode.invalid_type,
2138
- expected: ZodParsedType.never,
2139
- received: ctx.parsedType,
2140
- });
2141
- return INVALID;
2142
- }
2143
- }
2144
- ZodNever.create = (params) => {
2145
- return new ZodNever({
2146
- typeName: exports.ZodFirstPartyTypeKind.ZodNever,
2147
- ...processCreateParams(params),
2148
- });
2149
- };
2150
- class ZodVoid extends ZodType {
2151
- _parse(input) {
2152
- const parsedType = this._getType(input);
2153
- if (parsedType !== ZodParsedType.undefined) {
2154
- const ctx = this._getOrReturnCtx(input);
2155
- addIssueToContext(ctx, {
2156
- code: ZodIssueCode.invalid_type,
2157
- expected: ZodParsedType.void,
2158
- received: ctx.parsedType,
2159
- });
2160
- return INVALID;
2161
- }
2162
- return OK(input.data);
2163
- }
2164
- }
2165
- ZodVoid.create = (params) => {
2166
- return new ZodVoid({
2167
- typeName: exports.ZodFirstPartyTypeKind.ZodVoid,
2168
- ...processCreateParams(params),
2169
- });
2170
- };
2171
- class ZodArray extends ZodType {
2172
- _parse(input) {
2173
- const { ctx, status } = this._processInputParams(input);
2174
- const def = this._def;
2175
- if (ctx.parsedType !== ZodParsedType.array) {
2176
- addIssueToContext(ctx, {
2177
- code: ZodIssueCode.invalid_type,
2178
- expected: ZodParsedType.array,
2179
- received: ctx.parsedType,
2180
- });
2181
- return INVALID;
2182
- }
2183
- if (def.exactLength !== null) {
2184
- const tooBig = ctx.data.length > def.exactLength.value;
2185
- const tooSmall = ctx.data.length < def.exactLength.value;
2186
- if (tooBig || tooSmall) {
2187
- addIssueToContext(ctx, {
2188
- code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,
2189
- minimum: (tooSmall ? def.exactLength.value : undefined),
2190
- maximum: (tooBig ? def.exactLength.value : undefined),
2191
- type: "array",
2192
- inclusive: true,
2193
- exact: true,
2194
- message: def.exactLength.message,
2195
- });
2196
- status.dirty();
2197
- }
2198
- }
2199
- if (def.minLength !== null) {
2200
- if (ctx.data.length < def.minLength.value) {
2201
- addIssueToContext(ctx, {
2202
- code: ZodIssueCode.too_small,
2203
- minimum: def.minLength.value,
2204
- type: "array",
2205
- inclusive: true,
2206
- exact: false,
2207
- message: def.minLength.message,
2208
- });
2209
- status.dirty();
2210
- }
2211
- }
2212
- if (def.maxLength !== null) {
2213
- if (ctx.data.length > def.maxLength.value) {
2214
- addIssueToContext(ctx, {
2215
- code: ZodIssueCode.too_big,
2216
- maximum: def.maxLength.value,
2217
- type: "array",
2218
- inclusive: true,
2219
- exact: false,
2220
- message: def.maxLength.message,
2221
- });
2222
- status.dirty();
2223
- }
2224
- }
2225
- if (ctx.common.async) {
2226
- return Promise.all([...ctx.data].map((item, i) => {
2227
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
2228
- })).then((result) => {
2229
- return ParseStatus.mergeArray(status, result);
2230
- });
2231
- }
2232
- const result = [...ctx.data].map((item, i) => {
2233
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
2234
- });
2235
- return ParseStatus.mergeArray(status, result);
2236
- }
2237
- get element() {
2238
- return this._def.type;
2239
- }
2240
- min(minLength, message) {
2241
- return new ZodArray({
2242
- ...this._def,
2243
- minLength: { value: minLength, message: errorUtil.toString(message) },
2244
- });
2245
- }
2246
- max(maxLength, message) {
2247
- return new ZodArray({
2248
- ...this._def,
2249
- maxLength: { value: maxLength, message: errorUtil.toString(message) },
2250
- });
2251
- }
2252
- length(len, message) {
2253
- return new ZodArray({
2254
- ...this._def,
2255
- exactLength: { value: len, message: errorUtil.toString(message) },
2256
- });
2257
- }
2258
- nonempty(message) {
2259
- return this.min(1, message);
2260
- }
2261
- }
2262
- ZodArray.create = (schema, params) => {
2263
- return new ZodArray({
2264
- type: schema,
2265
- minLength: null,
2266
- maxLength: null,
2267
- exactLength: null,
2268
- typeName: exports.ZodFirstPartyTypeKind.ZodArray,
2269
- ...processCreateParams(params),
2270
- });
2271
- };
2272
- function deepPartialify(schema) {
2273
- if (schema instanceof ZodObject) {
2274
- const newShape = {};
2275
- for (const key in schema.shape) {
2276
- const fieldSchema = schema.shape[key];
2277
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
2278
- }
2279
- return new ZodObject({
2280
- ...schema._def,
2281
- shape: () => newShape,
2282
- });
2283
- }
2284
- else if (schema instanceof ZodArray) {
2285
- return new ZodArray({
2286
- ...schema._def,
2287
- type: deepPartialify(schema.element),
2288
- });
2289
- }
2290
- else if (schema instanceof ZodOptional) {
2291
- return ZodOptional.create(deepPartialify(schema.unwrap()));
2292
- }
2293
- else if (schema instanceof ZodNullable) {
2294
- return ZodNullable.create(deepPartialify(schema.unwrap()));
2295
- }
2296
- else if (schema instanceof ZodTuple) {
2297
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
2298
- }
2299
- else {
2300
- return schema;
2301
- }
2302
- }
2303
- class ZodObject extends ZodType {
2304
- constructor() {
2305
- super(...arguments);
2306
- this._cached = null;
2307
- /**
2308
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
2309
- * If you want to pass through unknown properties, use `.passthrough()` instead.
2310
- */
2311
- this.nonstrict = this.passthrough;
2312
- // extend<
2313
- // Augmentation extends ZodRawShape,
2314
- // NewOutput extends util.flatten<{
2315
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2316
- // ? Augmentation[k]["_output"]
2317
- // : k extends keyof Output
2318
- // ? Output[k]
2319
- // : never;
2320
- // }>,
2321
- // NewInput extends util.flatten<{
2322
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2323
- // ? Augmentation[k]["_input"]
2324
- // : k extends keyof Input
2325
- // ? Input[k]
2326
- // : never;
2327
- // }>
2328
- // >(
2329
- // augmentation: Augmentation
2330
- // ): ZodObject<
2331
- // extendShape<T, Augmentation>,
2332
- // UnknownKeys,
2333
- // Catchall,
2334
- // NewOutput,
2335
- // NewInput
2336
- // > {
2337
- // return new ZodObject({
2338
- // ...this._def,
2339
- // shape: () => ({
2340
- // ...this._def.shape(),
2341
- // ...augmentation,
2342
- // }),
2343
- // }) as any;
2344
- // }
2345
- /**
2346
- * @deprecated Use `.extend` instead
2347
- * */
2348
- this.augment = this.extend;
2349
- }
2350
- _getCached() {
2351
- if (this._cached !== null)
2352
- return this._cached;
2353
- const shape = this._def.shape();
2354
- const keys = exports.util.objectKeys(shape);
2355
- return (this._cached = { shape, keys });
2356
- }
2357
- _parse(input) {
2358
- const parsedType = this._getType(input);
2359
- if (parsedType !== ZodParsedType.object) {
2360
- const ctx = this._getOrReturnCtx(input);
2361
- addIssueToContext(ctx, {
2362
- code: ZodIssueCode.invalid_type,
2363
- expected: ZodParsedType.object,
2364
- received: ctx.parsedType,
2365
- });
2366
- return INVALID;
2367
- }
2368
- const { status, ctx } = this._processInputParams(input);
2369
- const { shape, keys: shapeKeys } = this._getCached();
2370
- const extraKeys = [];
2371
- if (!(this._def.catchall instanceof ZodNever &&
2372
- this._def.unknownKeys === "strip")) {
2373
- for (const key in ctx.data) {
2374
- if (!shapeKeys.includes(key)) {
2375
- extraKeys.push(key);
2376
- }
2377
- }
2378
- }
2379
- const pairs = [];
2380
- for (const key of shapeKeys) {
2381
- const keyValidator = shape[key];
2382
- const value = ctx.data[key];
2383
- pairs.push({
2384
- key: { status: "valid", value: key },
2385
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
2386
- alwaysSet: key in ctx.data,
2387
- });
2388
- }
2389
- if (this._def.catchall instanceof ZodNever) {
2390
- const unknownKeys = this._def.unknownKeys;
2391
- if (unknownKeys === "passthrough") {
2392
- for (const key of extraKeys) {
2393
- pairs.push({
2394
- key: { status: "valid", value: key },
2395
- value: { status: "valid", value: ctx.data[key] },
2396
- });
2397
- }
2398
- }
2399
- else if (unknownKeys === "strict") {
2400
- if (extraKeys.length > 0) {
2401
- addIssueToContext(ctx, {
2402
- code: ZodIssueCode.unrecognized_keys,
2403
- keys: extraKeys,
2404
- });
2405
- status.dirty();
2406
- }
2407
- }
2408
- else if (unknownKeys === "strip") ;
2409
- else {
2410
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2411
- }
2412
- }
2413
- else {
2414
- // run catchall validation
2415
- const catchall = this._def.catchall;
2416
- for (const key of extraKeys) {
2417
- const value = ctx.data[key];
2418
- pairs.push({
2419
- key: { status: "valid", value: key },
2420
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2421
- ),
2422
- alwaysSet: key in ctx.data,
2423
- });
2424
- }
2425
- }
2426
- if (ctx.common.async) {
2427
- return Promise.resolve()
2428
- .then(async () => {
2429
- const syncPairs = [];
2430
- for (const pair of pairs) {
2431
- const key = await pair.key;
2432
- const value = await pair.value;
2433
- syncPairs.push({
2434
- key,
2435
- value,
2436
- alwaysSet: pair.alwaysSet,
2437
- });
2438
- }
2439
- return syncPairs;
2440
- })
2441
- .then((syncPairs) => {
2442
- return ParseStatus.mergeObjectSync(status, syncPairs);
2443
- });
2444
- }
2445
- else {
2446
- return ParseStatus.mergeObjectSync(status, pairs);
2447
- }
2448
- }
2449
- get shape() {
2450
- return this._def.shape();
2451
- }
2452
- strict(message) {
2453
- errorUtil.errToObj;
2454
- return new ZodObject({
2455
- ...this._def,
2456
- unknownKeys: "strict",
2457
- ...(message !== undefined
2458
- ? {
2459
- errorMap: (issue, ctx) => {
2460
- var _a, _b, _c, _d;
2461
- const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
2462
- if (issue.code === "unrecognized_keys")
2463
- return {
2464
- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,
2465
- };
2466
- return {
2467
- message: defaultError,
2468
- };
2469
- },
2470
- }
2471
- : {}),
2472
- });
2473
- }
2474
- strip() {
2475
- return new ZodObject({
2476
- ...this._def,
2477
- unknownKeys: "strip",
2478
- });
2479
- }
2480
- passthrough() {
2481
- return new ZodObject({
2482
- ...this._def,
2483
- unknownKeys: "passthrough",
2484
- });
2485
- }
2486
- // const AugmentFactory =
2487
- // <Def extends ZodObjectDef>(def: Def) =>
2488
- // <Augmentation extends ZodRawShape>(
2489
- // augmentation: Augmentation
2490
- // ): ZodObject<
2491
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2492
- // Def["unknownKeys"],
2493
- // Def["catchall"]
2494
- // > => {
2495
- // return new ZodObject({
2496
- // ...def,
2497
- // shape: () => ({
2498
- // ...def.shape(),
2499
- // ...augmentation,
2500
- // }),
2501
- // }) as any;
2502
- // };
2503
- extend(augmentation) {
2504
- return new ZodObject({
2505
- ...this._def,
2506
- shape: () => ({
2507
- ...this._def.shape(),
2508
- ...augmentation,
2509
- }),
2510
- });
2511
- }
2512
- /**
2513
- * Prior to zod@1.0.12 there was a bug in the
2514
- * inferred type of merged objects. Please
2515
- * upgrade if you are experiencing issues.
2516
- */
2517
- merge(merging) {
2518
- const merged = new ZodObject({
2519
- unknownKeys: merging._def.unknownKeys,
2520
- catchall: merging._def.catchall,
2521
- shape: () => ({
2522
- ...this._def.shape(),
2523
- ...merging._def.shape(),
2524
- }),
2525
- typeName: exports.ZodFirstPartyTypeKind.ZodObject,
2526
- });
2527
- return merged;
2528
- }
2529
- // merge<
2530
- // Incoming extends AnyZodObject,
2531
- // Augmentation extends Incoming["shape"],
2532
- // NewOutput extends {
2533
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2534
- // ? Augmentation[k]["_output"]
2535
- // : k extends keyof Output
2536
- // ? Output[k]
2537
- // : never;
2538
- // },
2539
- // NewInput extends {
2540
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2541
- // ? Augmentation[k]["_input"]
2542
- // : k extends keyof Input
2543
- // ? Input[k]
2544
- // : never;
2545
- // }
2546
- // >(
2547
- // merging: Incoming
2548
- // ): ZodObject<
2549
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2550
- // Incoming["_def"]["unknownKeys"],
2551
- // Incoming["_def"]["catchall"],
2552
- // NewOutput,
2553
- // NewInput
2554
- // > {
2555
- // const merged: any = new ZodObject({
2556
- // unknownKeys: merging._def.unknownKeys,
2557
- // catchall: merging._def.catchall,
2558
- // shape: () =>
2559
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2560
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2561
- // }) as any;
2562
- // return merged;
2563
- // }
2564
- setKey(key, schema) {
2565
- return this.augment({ [key]: schema });
2566
- }
2567
- // merge<Incoming extends AnyZodObject>(
2568
- // merging: Incoming
2569
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2570
- // ZodObject<
2571
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2572
- // Incoming["_def"]["unknownKeys"],
2573
- // Incoming["_def"]["catchall"]
2574
- // > {
2575
- // // const mergedShape = objectUtil.mergeShapes(
2576
- // // this._def.shape(),
2577
- // // merging._def.shape()
2578
- // // );
2579
- // const merged: any = new ZodObject({
2580
- // unknownKeys: merging._def.unknownKeys,
2581
- // catchall: merging._def.catchall,
2582
- // shape: () =>
2583
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2584
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2585
- // }) as any;
2586
- // return merged;
2587
- // }
2588
- catchall(index) {
2589
- return new ZodObject({
2590
- ...this._def,
2591
- catchall: index,
2592
- });
2593
- }
2594
- pick(mask) {
2595
- const shape = {};
2596
- exports.util.objectKeys(mask).forEach((key) => {
2597
- if (mask[key] && this.shape[key]) {
2598
- shape[key] = this.shape[key];
2599
- }
2600
- });
2601
- return new ZodObject({
2602
- ...this._def,
2603
- shape: () => shape,
2604
- });
2605
- }
2606
- omit(mask) {
2607
- const shape = {};
2608
- exports.util.objectKeys(this.shape).forEach((key) => {
2609
- if (!mask[key]) {
2610
- shape[key] = this.shape[key];
2611
- }
2612
- });
2613
- return new ZodObject({
2614
- ...this._def,
2615
- shape: () => shape,
2616
- });
2617
- }
2618
- /**
2619
- * @deprecated
2620
- */
2621
- deepPartial() {
2622
- return deepPartialify(this);
2623
- }
2624
- partial(mask) {
2625
- const newShape = {};
2626
- exports.util.objectKeys(this.shape).forEach((key) => {
2627
- const fieldSchema = this.shape[key];
2628
- if (mask && !mask[key]) {
2629
- newShape[key] = fieldSchema;
2630
- }
2631
- else {
2632
- newShape[key] = fieldSchema.optional();
2633
- }
2634
- });
2635
- return new ZodObject({
2636
- ...this._def,
2637
- shape: () => newShape,
2638
- });
2639
- }
2640
- required(mask) {
2641
- const newShape = {};
2642
- exports.util.objectKeys(this.shape).forEach((key) => {
2643
- if (mask && !mask[key]) {
2644
- newShape[key] = this.shape[key];
2645
- }
2646
- else {
2647
- const fieldSchema = this.shape[key];
2648
- let newField = fieldSchema;
2649
- while (newField instanceof ZodOptional) {
2650
- newField = newField._def.innerType;
2651
- }
2652
- newShape[key] = newField;
2653
- }
2654
- });
2655
- return new ZodObject({
2656
- ...this._def,
2657
- shape: () => newShape,
2658
- });
2659
- }
2660
- keyof() {
2661
- return createZodEnum(exports.util.objectKeys(this.shape));
2662
- }
2663
- }
2664
- ZodObject.create = (shape, params) => {
2665
- return new ZodObject({
2666
- shape: () => shape,
2667
- unknownKeys: "strip",
2668
- catchall: ZodNever.create(),
2669
- typeName: exports.ZodFirstPartyTypeKind.ZodObject,
2670
- ...processCreateParams(params),
2671
- });
2672
- };
2673
- ZodObject.strictCreate = (shape, params) => {
2674
- return new ZodObject({
2675
- shape: () => shape,
2676
- unknownKeys: "strict",
2677
- catchall: ZodNever.create(),
2678
- typeName: exports.ZodFirstPartyTypeKind.ZodObject,
2679
- ...processCreateParams(params),
2680
- });
2681
- };
2682
- ZodObject.lazycreate = (shape, params) => {
2683
- return new ZodObject({
2684
- shape,
2685
- unknownKeys: "strip",
2686
- catchall: ZodNever.create(),
2687
- typeName: exports.ZodFirstPartyTypeKind.ZodObject,
2688
- ...processCreateParams(params),
2689
- });
2690
- };
2691
- class ZodUnion extends ZodType {
2692
- _parse(input) {
2693
- const { ctx } = this._processInputParams(input);
2694
- const options = this._def.options;
2695
- function handleResults(results) {
2696
- // return first issue-free validation if it exists
2697
- for (const result of results) {
2698
- if (result.result.status === "valid") {
2699
- return result.result;
2700
- }
2701
- }
2702
- for (const result of results) {
2703
- if (result.result.status === "dirty") {
2704
- // add issues from dirty option
2705
- ctx.common.issues.push(...result.ctx.common.issues);
2706
- return result.result;
2707
- }
2708
- }
2709
- // return invalid
2710
- const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));
2711
- addIssueToContext(ctx, {
2712
- code: ZodIssueCode.invalid_union,
2713
- unionErrors,
2714
- });
2715
- return INVALID;
2716
- }
2717
- if (ctx.common.async) {
2718
- return Promise.all(options.map(async (option) => {
2719
- const childCtx = {
2720
- ...ctx,
2721
- common: {
2722
- ...ctx.common,
2723
- issues: [],
2724
- },
2725
- parent: null,
2726
- };
2727
- return {
2728
- result: await option._parseAsync({
2729
- data: ctx.data,
2730
- path: ctx.path,
2731
- parent: childCtx,
2732
- }),
2733
- ctx: childCtx,
2734
- };
2735
- })).then(handleResults);
2736
- }
2737
- else {
2738
- let dirty = undefined;
2739
- const issues = [];
2740
- for (const option of options) {
2741
- const childCtx = {
2742
- ...ctx,
2743
- common: {
2744
- ...ctx.common,
2745
- issues: [],
2746
- },
2747
- parent: null,
2748
- };
2749
- const result = option._parseSync({
2750
- data: ctx.data,
2751
- path: ctx.path,
2752
- parent: childCtx,
2753
- });
2754
- if (result.status === "valid") {
2755
- return result;
2756
- }
2757
- else if (result.status === "dirty" && !dirty) {
2758
- dirty = { result, ctx: childCtx };
2759
- }
2760
- if (childCtx.common.issues.length) {
2761
- issues.push(childCtx.common.issues);
2762
- }
2763
- }
2764
- if (dirty) {
2765
- ctx.common.issues.push(...dirty.ctx.common.issues);
2766
- return dirty.result;
2767
- }
2768
- const unionErrors = issues.map((issues) => new ZodError(issues));
2769
- addIssueToContext(ctx, {
2770
- code: ZodIssueCode.invalid_union,
2771
- unionErrors,
2772
- });
2773
- return INVALID;
2774
- }
2775
- }
2776
- get options() {
2777
- return this._def.options;
2778
- }
2779
- }
2780
- ZodUnion.create = (types, params) => {
2781
- return new ZodUnion({
2782
- options: types,
2783
- typeName: exports.ZodFirstPartyTypeKind.ZodUnion,
2784
- ...processCreateParams(params),
2785
- });
2786
- };
2787
- /////////////////////////////////////////////////////
2788
- /////////////////////////////////////////////////////
2789
- ////////// //////////
2790
- ////////// ZodDiscriminatedUnion //////////
2791
- ////////// //////////
2792
- /////////////////////////////////////////////////////
2793
- /////////////////////////////////////////////////////
2794
- const getDiscriminator = (type) => {
2795
- if (type instanceof ZodLazy) {
2796
- return getDiscriminator(type.schema);
2797
- }
2798
- else if (type instanceof ZodEffects) {
2799
- return getDiscriminator(type.innerType());
2800
- }
2801
- else if (type instanceof ZodLiteral) {
2802
- return [type.value];
2803
- }
2804
- else if (type instanceof ZodEnum) {
2805
- return type.options;
2806
- }
2807
- else if (type instanceof ZodNativeEnum) {
2808
- // eslint-disable-next-line ban/ban
2809
- return exports.util.objectValues(type.enum);
2810
- }
2811
- else if (type instanceof ZodDefault) {
2812
- return getDiscriminator(type._def.innerType);
2813
- }
2814
- else if (type instanceof ZodUndefined) {
2815
- return [undefined];
2816
- }
2817
- else if (type instanceof ZodNull) {
2818
- return [null];
2819
- }
2820
- else if (type instanceof ZodOptional) {
2821
- return [undefined, ...getDiscriminator(type.unwrap())];
2822
- }
2823
- else if (type instanceof ZodNullable) {
2824
- return [null, ...getDiscriminator(type.unwrap())];
2825
- }
2826
- else if (type instanceof ZodBranded) {
2827
- return getDiscriminator(type.unwrap());
2828
- }
2829
- else if (type instanceof ZodReadonly) {
2830
- return getDiscriminator(type.unwrap());
2831
- }
2832
- else if (type instanceof ZodCatch) {
2833
- return getDiscriminator(type._def.innerType);
2834
- }
2835
- else {
2836
- return [];
2837
- }
2838
- };
2839
- class ZodDiscriminatedUnion extends ZodType {
2840
- _parse(input) {
2841
- const { ctx } = this._processInputParams(input);
2842
- if (ctx.parsedType !== ZodParsedType.object) {
2843
- addIssueToContext(ctx, {
2844
- code: ZodIssueCode.invalid_type,
2845
- expected: ZodParsedType.object,
2846
- received: ctx.parsedType,
2847
- });
2848
- return INVALID;
2849
- }
2850
- const discriminator = this.discriminator;
2851
- const discriminatorValue = ctx.data[discriminator];
2852
- const option = this.optionsMap.get(discriminatorValue);
2853
- if (!option) {
2854
- addIssueToContext(ctx, {
2855
- code: ZodIssueCode.invalid_union_discriminator,
2856
- options: Array.from(this.optionsMap.keys()),
2857
- path: [discriminator],
2858
- });
2859
- return INVALID;
2860
- }
2861
- if (ctx.common.async) {
2862
- return option._parseAsync({
2863
- data: ctx.data,
2864
- path: ctx.path,
2865
- parent: ctx,
2866
- });
2867
- }
2868
- else {
2869
- return option._parseSync({
2870
- data: ctx.data,
2871
- path: ctx.path,
2872
- parent: ctx,
2873
- });
2874
- }
2875
- }
2876
- get discriminator() {
2877
- return this._def.discriminator;
2878
- }
2879
- get options() {
2880
- return this._def.options;
2881
- }
2882
- get optionsMap() {
2883
- return this._def.optionsMap;
2884
- }
2885
- /**
2886
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2887
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2888
- * have a different value for each object in the union.
2889
- * @param discriminator the name of the discriminator property
2890
- * @param types an array of object schemas
2891
- * @param params
2892
- */
2893
- static create(discriminator, options, params) {
2894
- // Get all the valid discriminator values
2895
- const optionsMap = new Map();
2896
- // try {
2897
- for (const type of options) {
2898
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2899
- if (!discriminatorValues.length) {
2900
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2901
- }
2902
- for (const value of discriminatorValues) {
2903
- if (optionsMap.has(value)) {
2904
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2905
- }
2906
- optionsMap.set(value, type);
2907
- }
2908
- }
2909
- return new ZodDiscriminatedUnion({
2910
- typeName: exports.ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2911
- discriminator,
2912
- options,
2913
- optionsMap,
2914
- ...processCreateParams(params),
2915
- });
2916
- }
2917
- }
2918
- function mergeValues(a, b) {
2919
- const aType = getParsedType(a);
2920
- const bType = getParsedType(b);
2921
- if (a === b) {
2922
- return { valid: true, data: a };
2923
- }
2924
- else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
2925
- const bKeys = exports.util.objectKeys(b);
2926
- const sharedKeys = exports.util
2927
- .objectKeys(a)
2928
- .filter((key) => bKeys.indexOf(key) !== -1);
2929
- const newObj = { ...a, ...b };
2930
- for (const key of sharedKeys) {
2931
- const sharedValue = mergeValues(a[key], b[key]);
2932
- if (!sharedValue.valid) {
2933
- return { valid: false };
2934
- }
2935
- newObj[key] = sharedValue.data;
2936
- }
2937
- return { valid: true, data: newObj };
2938
- }
2939
- else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
2940
- if (a.length !== b.length) {
2941
- return { valid: false };
2942
- }
2943
- const newArray = [];
2944
- for (let index = 0; index < a.length; index++) {
2945
- const itemA = a[index];
2946
- const itemB = b[index];
2947
- const sharedValue = mergeValues(itemA, itemB);
2948
- if (!sharedValue.valid) {
2949
- return { valid: false };
2950
- }
2951
- newArray.push(sharedValue.data);
2952
- }
2953
- return { valid: true, data: newArray };
2954
- }
2955
- else if (aType === ZodParsedType.date &&
2956
- bType === ZodParsedType.date &&
2957
- +a === +b) {
2958
- return { valid: true, data: a };
2959
- }
2960
- else {
2961
- return { valid: false };
2962
- }
2963
- }
2964
- class ZodIntersection extends ZodType {
2965
- _parse(input) {
2966
- const { status, ctx } = this._processInputParams(input);
2967
- const handleParsed = (parsedLeft, parsedRight) => {
2968
- if (isAborted(parsedLeft) || isAborted(parsedRight)) {
2969
- return INVALID;
2970
- }
2971
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2972
- if (!merged.valid) {
2973
- addIssueToContext(ctx, {
2974
- code: ZodIssueCode.invalid_intersection_types,
2975
- });
2976
- return INVALID;
2977
- }
2978
- if (isDirty(parsedLeft) || isDirty(parsedRight)) {
2979
- status.dirty();
2980
- }
2981
- return { status: status.value, value: merged.data };
2982
- };
2983
- if (ctx.common.async) {
2984
- return Promise.all([
2985
- this._def.left._parseAsync({
2986
- data: ctx.data,
2987
- path: ctx.path,
2988
- parent: ctx,
2989
- }),
2990
- this._def.right._parseAsync({
2991
- data: ctx.data,
2992
- path: ctx.path,
2993
- parent: ctx,
2994
- }),
2995
- ]).then(([left, right]) => handleParsed(left, right));
2996
- }
2997
- else {
2998
- return handleParsed(this._def.left._parseSync({
2999
- data: ctx.data,
3000
- path: ctx.path,
3001
- parent: ctx,
3002
- }), this._def.right._parseSync({
3003
- data: ctx.data,
3004
- path: ctx.path,
3005
- parent: ctx,
3006
- }));
3007
- }
3008
- }
3009
- }
3010
- ZodIntersection.create = (left, right, params) => {
3011
- return new ZodIntersection({
3012
- left: left,
3013
- right: right,
3014
- typeName: exports.ZodFirstPartyTypeKind.ZodIntersection,
3015
- ...processCreateParams(params),
3016
- });
3017
- };
3018
- class ZodTuple extends ZodType {
3019
- _parse(input) {
3020
- const { status, ctx } = this._processInputParams(input);
3021
- if (ctx.parsedType !== ZodParsedType.array) {
3022
- addIssueToContext(ctx, {
3023
- code: ZodIssueCode.invalid_type,
3024
- expected: ZodParsedType.array,
3025
- received: ctx.parsedType,
3026
- });
3027
- return INVALID;
3028
- }
3029
- if (ctx.data.length < this._def.items.length) {
3030
- addIssueToContext(ctx, {
3031
- code: ZodIssueCode.too_small,
3032
- minimum: this._def.items.length,
3033
- inclusive: true,
3034
- exact: false,
3035
- type: "array",
3036
- });
3037
- return INVALID;
3038
- }
3039
- const rest = this._def.rest;
3040
- if (!rest && ctx.data.length > this._def.items.length) {
3041
- addIssueToContext(ctx, {
3042
- code: ZodIssueCode.too_big,
3043
- maximum: this._def.items.length,
3044
- inclusive: true,
3045
- exact: false,
3046
- type: "array",
3047
- });
3048
- status.dirty();
3049
- }
3050
- const items = [...ctx.data]
3051
- .map((item, itemIndex) => {
3052
- const schema = this._def.items[itemIndex] || this._def.rest;
3053
- if (!schema)
3054
- return null;
3055
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
3056
- })
3057
- .filter((x) => !!x); // filter nulls
3058
- if (ctx.common.async) {
3059
- return Promise.all(items).then((results) => {
3060
- return ParseStatus.mergeArray(status, results);
3061
- });
3062
- }
3063
- else {
3064
- return ParseStatus.mergeArray(status, items);
3065
- }
3066
- }
3067
- get items() {
3068
- return this._def.items;
3069
- }
3070
- rest(rest) {
3071
- return new ZodTuple({
3072
- ...this._def,
3073
- rest,
3074
- });
3075
- }
3076
- }
3077
- ZodTuple.create = (schemas, params) => {
3078
- if (!Array.isArray(schemas)) {
3079
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
3080
- }
3081
- return new ZodTuple({
3082
- items: schemas,
3083
- typeName: exports.ZodFirstPartyTypeKind.ZodTuple,
3084
- rest: null,
3085
- ...processCreateParams(params),
3086
- });
3087
- };
3088
- class ZodRecord extends ZodType {
3089
- get keySchema() {
3090
- return this._def.keyType;
3091
- }
3092
- get valueSchema() {
3093
- return this._def.valueType;
3094
- }
3095
- _parse(input) {
3096
- const { status, ctx } = this._processInputParams(input);
3097
- if (ctx.parsedType !== ZodParsedType.object) {
3098
- addIssueToContext(ctx, {
3099
- code: ZodIssueCode.invalid_type,
3100
- expected: ZodParsedType.object,
3101
- received: ctx.parsedType,
3102
- });
3103
- return INVALID;
3104
- }
3105
- const pairs = [];
3106
- const keyType = this._def.keyType;
3107
- const valueType = this._def.valueType;
3108
- for (const key in ctx.data) {
3109
- pairs.push({
3110
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
3111
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
3112
- alwaysSet: key in ctx.data,
3113
- });
3114
- }
3115
- if (ctx.common.async) {
3116
- return ParseStatus.mergeObjectAsync(status, pairs);
3117
- }
3118
- else {
3119
- return ParseStatus.mergeObjectSync(status, pairs);
3120
- }
3121
- }
3122
- get element() {
3123
- return this._def.valueType;
3124
- }
3125
- static create(first, second, third) {
3126
- if (second instanceof ZodType) {
3127
- return new ZodRecord({
3128
- keyType: first,
3129
- valueType: second,
3130
- typeName: exports.ZodFirstPartyTypeKind.ZodRecord,
3131
- ...processCreateParams(third),
3132
- });
3133
- }
3134
- return new ZodRecord({
3135
- keyType: ZodString.create(),
3136
- valueType: first,
3137
- typeName: exports.ZodFirstPartyTypeKind.ZodRecord,
3138
- ...processCreateParams(second),
3139
- });
3140
- }
3141
- }
3142
- class ZodMap extends ZodType {
3143
- get keySchema() {
3144
- return this._def.keyType;
3145
- }
3146
- get valueSchema() {
3147
- return this._def.valueType;
3148
- }
3149
- _parse(input) {
3150
- const { status, ctx } = this._processInputParams(input);
3151
- if (ctx.parsedType !== ZodParsedType.map) {
3152
- addIssueToContext(ctx, {
3153
- code: ZodIssueCode.invalid_type,
3154
- expected: ZodParsedType.map,
3155
- received: ctx.parsedType,
3156
- });
3157
- return INVALID;
3158
- }
3159
- const keyType = this._def.keyType;
3160
- const valueType = this._def.valueType;
3161
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
3162
- return {
3163
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
3164
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
3165
- };
3166
- });
3167
- if (ctx.common.async) {
3168
- const finalMap = new Map();
3169
- return Promise.resolve().then(async () => {
3170
- for (const pair of pairs) {
3171
- const key = await pair.key;
3172
- const value = await pair.value;
3173
- if (key.status === "aborted" || value.status === "aborted") {
3174
- return INVALID;
3175
- }
3176
- if (key.status === "dirty" || value.status === "dirty") {
3177
- status.dirty();
3178
- }
3179
- finalMap.set(key.value, value.value);
3180
- }
3181
- return { status: status.value, value: finalMap };
3182
- });
3183
- }
3184
- else {
3185
- const finalMap = new Map();
3186
- for (const pair of pairs) {
3187
- const key = pair.key;
3188
- const value = pair.value;
3189
- if (key.status === "aborted" || value.status === "aborted") {
3190
- return INVALID;
3191
- }
3192
- if (key.status === "dirty" || value.status === "dirty") {
3193
- status.dirty();
3194
- }
3195
- finalMap.set(key.value, value.value);
3196
- }
3197
- return { status: status.value, value: finalMap };
3198
- }
3199
- }
3200
- }
3201
- ZodMap.create = (keyType, valueType, params) => {
3202
- return new ZodMap({
3203
- valueType,
3204
- keyType,
3205
- typeName: exports.ZodFirstPartyTypeKind.ZodMap,
3206
- ...processCreateParams(params),
3207
- });
3208
- };
3209
- class ZodSet extends ZodType {
3210
- _parse(input) {
3211
- const { status, ctx } = this._processInputParams(input);
3212
- if (ctx.parsedType !== ZodParsedType.set) {
3213
- addIssueToContext(ctx, {
3214
- code: ZodIssueCode.invalid_type,
3215
- expected: ZodParsedType.set,
3216
- received: ctx.parsedType,
3217
- });
3218
- return INVALID;
3219
- }
3220
- const def = this._def;
3221
- if (def.minSize !== null) {
3222
- if (ctx.data.size < def.minSize.value) {
3223
- addIssueToContext(ctx, {
3224
- code: ZodIssueCode.too_small,
3225
- minimum: def.minSize.value,
3226
- type: "set",
3227
- inclusive: true,
3228
- exact: false,
3229
- message: def.minSize.message,
3230
- });
3231
- status.dirty();
3232
- }
3233
- }
3234
- if (def.maxSize !== null) {
3235
- if (ctx.data.size > def.maxSize.value) {
3236
- addIssueToContext(ctx, {
3237
- code: ZodIssueCode.too_big,
3238
- maximum: def.maxSize.value,
3239
- type: "set",
3240
- inclusive: true,
3241
- exact: false,
3242
- message: def.maxSize.message,
3243
- });
3244
- status.dirty();
3245
- }
3246
- }
3247
- const valueType = this._def.valueType;
3248
- function finalizeSet(elements) {
3249
- const parsedSet = new Set();
3250
- for (const element of elements) {
3251
- if (element.status === "aborted")
3252
- return INVALID;
3253
- if (element.status === "dirty")
3254
- status.dirty();
3255
- parsedSet.add(element.value);
3256
- }
3257
- return { status: status.value, value: parsedSet };
3258
- }
3259
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
3260
- if (ctx.common.async) {
3261
- return Promise.all(elements).then((elements) => finalizeSet(elements));
3262
- }
3263
- else {
3264
- return finalizeSet(elements);
3265
- }
3266
- }
3267
- min(minSize, message) {
3268
- return new ZodSet({
3269
- ...this._def,
3270
- minSize: { value: minSize, message: errorUtil.toString(message) },
3271
- });
3272
- }
3273
- max(maxSize, message) {
3274
- return new ZodSet({
3275
- ...this._def,
3276
- maxSize: { value: maxSize, message: errorUtil.toString(message) },
3277
- });
3278
- }
3279
- size(size, message) {
3280
- return this.min(size, message).max(size, message);
3281
- }
3282
- nonempty(message) {
3283
- return this.min(1, message);
3284
- }
3285
- }
3286
- ZodSet.create = (valueType, params) => {
3287
- return new ZodSet({
3288
- valueType,
3289
- minSize: null,
3290
- maxSize: null,
3291
- typeName: exports.ZodFirstPartyTypeKind.ZodSet,
3292
- ...processCreateParams(params),
3293
- });
3294
- };
3295
- class ZodFunction extends ZodType {
3296
- constructor() {
3297
- super(...arguments);
3298
- this.validate = this.implement;
3299
- }
3300
- _parse(input) {
3301
- const { ctx } = this._processInputParams(input);
3302
- if (ctx.parsedType !== ZodParsedType.function) {
3303
- addIssueToContext(ctx, {
3304
- code: ZodIssueCode.invalid_type,
3305
- expected: ZodParsedType.function,
3306
- received: ctx.parsedType,
3307
- });
3308
- return INVALID;
3309
- }
3310
- function makeArgsIssue(args, error) {
3311
- return makeIssue({
3312
- data: args,
3313
- path: ctx.path,
3314
- errorMaps: [
3315
- ctx.common.contextualErrorMap,
3316
- ctx.schemaErrorMap,
3317
- getErrorMap(),
3318
- errorMap,
3319
- ].filter((x) => !!x),
3320
- issueData: {
3321
- code: ZodIssueCode.invalid_arguments,
3322
- argumentsError: error,
3323
- },
3324
- });
3325
- }
3326
- function makeReturnsIssue(returns, error) {
3327
- return makeIssue({
3328
- data: returns,
3329
- path: ctx.path,
3330
- errorMaps: [
3331
- ctx.common.contextualErrorMap,
3332
- ctx.schemaErrorMap,
3333
- getErrorMap(),
3334
- errorMap,
3335
- ].filter((x) => !!x),
3336
- issueData: {
3337
- code: ZodIssueCode.invalid_return_type,
3338
- returnTypeError: error,
3339
- },
3340
- });
3341
- }
3342
- const params = { errorMap: ctx.common.contextualErrorMap };
3343
- const fn = ctx.data;
3344
- if (this._def.returns instanceof ZodPromise) {
3345
- // Would love a way to avoid disabling this rule, but we need
3346
- // an alias (using an arrow function was what caused 2651).
3347
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3348
- const me = this;
3349
- return OK(async function (...args) {
3350
- const error = new ZodError([]);
3351
- const parsedArgs = await me._def.args
3352
- .parseAsync(args, params)
3353
- .catch((e) => {
3354
- error.addIssue(makeArgsIssue(args, e));
3355
- throw error;
3356
- });
3357
- const result = await Reflect.apply(fn, this, parsedArgs);
3358
- const parsedReturns = await me._def.returns._def.type
3359
- .parseAsync(result, params)
3360
- .catch((e) => {
3361
- error.addIssue(makeReturnsIssue(result, e));
3362
- throw error;
3363
- });
3364
- return parsedReturns;
3365
- });
3366
- }
3367
- else {
3368
- // Would love a way to avoid disabling this rule, but we need
3369
- // an alias (using an arrow function was what caused 2651).
3370
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3371
- const me = this;
3372
- return OK(function (...args) {
3373
- const parsedArgs = me._def.args.safeParse(args, params);
3374
- if (!parsedArgs.success) {
3375
- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3376
- }
3377
- const result = Reflect.apply(fn, this, parsedArgs.data);
3378
- const parsedReturns = me._def.returns.safeParse(result, params);
3379
- if (!parsedReturns.success) {
3380
- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
3381
- }
3382
- return parsedReturns.data;
3383
- });
3384
- }
3385
- }
3386
- parameters() {
3387
- return this._def.args;
3388
- }
3389
- returnType() {
3390
- return this._def.returns;
3391
- }
3392
- args(...items) {
3393
- return new ZodFunction({
3394
- ...this._def,
3395
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
3396
- });
3397
- }
3398
- returns(returnType) {
3399
- return new ZodFunction({
3400
- ...this._def,
3401
- returns: returnType,
3402
- });
3403
- }
3404
- implement(func) {
3405
- const validatedFunc = this.parse(func);
3406
- return validatedFunc;
3407
- }
3408
- strictImplement(func) {
3409
- const validatedFunc = this.parse(func);
3410
- return validatedFunc;
3411
- }
3412
- static create(args, returns, params) {
3413
- return new ZodFunction({
3414
- args: (args
3415
- ? args
3416
- : ZodTuple.create([]).rest(ZodUnknown.create())),
3417
- returns: returns || ZodUnknown.create(),
3418
- typeName: exports.ZodFirstPartyTypeKind.ZodFunction,
3419
- ...processCreateParams(params),
3420
- });
3421
- }
3422
- }
3423
- class ZodLazy extends ZodType {
3424
- get schema() {
3425
- return this._def.getter();
3426
- }
3427
- _parse(input) {
3428
- const { ctx } = this._processInputParams(input);
3429
- const lazySchema = this._def.getter();
3430
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
3431
- }
3432
- }
3433
- ZodLazy.create = (getter, params) => {
3434
- return new ZodLazy({
3435
- getter: getter,
3436
- typeName: exports.ZodFirstPartyTypeKind.ZodLazy,
3437
- ...processCreateParams(params),
3438
- });
3439
- };
3440
- class ZodLiteral extends ZodType {
3441
- _parse(input) {
3442
- if (input.data !== this._def.value) {
3443
- const ctx = this._getOrReturnCtx(input);
3444
- addIssueToContext(ctx, {
3445
- received: ctx.data,
3446
- code: ZodIssueCode.invalid_literal,
3447
- expected: this._def.value,
3448
- });
3449
- return INVALID;
3450
- }
3451
- return { status: "valid", value: input.data };
3452
- }
3453
- get value() {
3454
- return this._def.value;
3455
- }
3456
- }
3457
- ZodLiteral.create = (value, params) => {
3458
- return new ZodLiteral({
3459
- value: value,
3460
- typeName: exports.ZodFirstPartyTypeKind.ZodLiteral,
3461
- ...processCreateParams(params),
3462
- });
3463
- };
3464
- function createZodEnum(values, params) {
3465
- return new ZodEnum({
3466
- values,
3467
- typeName: exports.ZodFirstPartyTypeKind.ZodEnum,
3468
- ...processCreateParams(params),
3469
- });
3470
- }
3471
- class ZodEnum extends ZodType {
3472
- constructor() {
3473
- super(...arguments);
3474
- _ZodEnum_cache.set(this, void 0);
3475
- }
3476
- _parse(input) {
3477
- if (typeof input.data !== "string") {
3478
- const ctx = this._getOrReturnCtx(input);
3479
- const expectedValues = this._def.values;
3480
- addIssueToContext(ctx, {
3481
- expected: exports.util.joinValues(expectedValues),
3482
- received: ctx.parsedType,
3483
- code: ZodIssueCode.invalid_type,
3484
- });
3485
- return INVALID;
3486
- }
3487
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
3488
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
3489
- }
3490
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
3491
- const ctx = this._getOrReturnCtx(input);
3492
- const expectedValues = this._def.values;
3493
- addIssueToContext(ctx, {
3494
- received: ctx.data,
3495
- code: ZodIssueCode.invalid_enum_value,
3496
- options: expectedValues,
3497
- });
3498
- return INVALID;
3499
- }
3500
- return OK(input.data);
3501
- }
3502
- get options() {
3503
- return this._def.values;
3504
- }
3505
- get enum() {
3506
- const enumValues = {};
3507
- for (const val of this._def.values) {
3508
- enumValues[val] = val;
3509
- }
3510
- return enumValues;
3511
- }
3512
- get Values() {
3513
- const enumValues = {};
3514
- for (const val of this._def.values) {
3515
- enumValues[val] = val;
3516
- }
3517
- return enumValues;
3518
- }
3519
- get Enum() {
3520
- const enumValues = {};
3521
- for (const val of this._def.values) {
3522
- enumValues[val] = val;
3523
- }
3524
- return enumValues;
3525
- }
3526
- extract(values, newDef = this._def) {
3527
- return ZodEnum.create(values, {
3528
- ...this._def,
3529
- ...newDef,
3530
- });
3531
- }
3532
- exclude(values, newDef = this._def) {
3533
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3534
- ...this._def,
3535
- ...newDef,
3536
- });
3537
- }
3538
- }
3539
- _ZodEnum_cache = new WeakMap();
3540
- ZodEnum.create = createZodEnum;
3541
- class ZodNativeEnum extends ZodType {
3542
- constructor() {
3543
- super(...arguments);
3544
- _ZodNativeEnum_cache.set(this, void 0);
3545
- }
3546
- _parse(input) {
3547
- const nativeEnumValues = exports.util.getValidEnumValues(this._def.values);
3548
- const ctx = this._getOrReturnCtx(input);
3549
- if (ctx.parsedType !== ZodParsedType.string &&
3550
- ctx.parsedType !== ZodParsedType.number) {
3551
- const expectedValues = exports.util.objectValues(nativeEnumValues);
3552
- addIssueToContext(ctx, {
3553
- expected: exports.util.joinValues(expectedValues),
3554
- received: ctx.parsedType,
3555
- code: ZodIssueCode.invalid_type,
3556
- });
3557
- return INVALID;
3558
- }
3559
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
3560
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(exports.util.getValidEnumValues(this._def.values)), "f");
3561
- }
3562
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
3563
- const expectedValues = exports.util.objectValues(nativeEnumValues);
3564
- addIssueToContext(ctx, {
3565
- received: ctx.data,
3566
- code: ZodIssueCode.invalid_enum_value,
3567
- options: expectedValues,
3568
- });
3569
- return INVALID;
3570
- }
3571
- return OK(input.data);
3572
- }
3573
- get enum() {
3574
- return this._def.values;
3575
- }
3576
- }
3577
- _ZodNativeEnum_cache = new WeakMap();
3578
- ZodNativeEnum.create = (values, params) => {
3579
- return new ZodNativeEnum({
3580
- values: values,
3581
- typeName: exports.ZodFirstPartyTypeKind.ZodNativeEnum,
3582
- ...processCreateParams(params),
3583
- });
3584
- };
3585
- class ZodPromise extends ZodType {
3586
- unwrap() {
3587
- return this._def.type;
3588
- }
3589
- _parse(input) {
3590
- const { ctx } = this._processInputParams(input);
3591
- if (ctx.parsedType !== ZodParsedType.promise &&
3592
- ctx.common.async === false) {
3593
- addIssueToContext(ctx, {
3594
- code: ZodIssueCode.invalid_type,
3595
- expected: ZodParsedType.promise,
3596
- received: ctx.parsedType,
3597
- });
3598
- return INVALID;
3599
- }
3600
- const promisified = ctx.parsedType === ZodParsedType.promise
3601
- ? ctx.data
3602
- : Promise.resolve(ctx.data);
3603
- return OK(promisified.then((data) => {
3604
- return this._def.type.parseAsync(data, {
3605
- path: ctx.path,
3606
- errorMap: ctx.common.contextualErrorMap,
3607
- });
3608
- }));
3609
- }
3610
- }
3611
- ZodPromise.create = (schema, params) => {
3612
- return new ZodPromise({
3613
- type: schema,
3614
- typeName: exports.ZodFirstPartyTypeKind.ZodPromise,
3615
- ...processCreateParams(params),
3616
- });
3617
- };
3618
- class ZodEffects extends ZodType {
3619
- innerType() {
3620
- return this._def.schema;
3621
- }
3622
- sourceType() {
3623
- return this._def.schema._def.typeName === exports.ZodFirstPartyTypeKind.ZodEffects
3624
- ? this._def.schema.sourceType()
3625
- : this._def.schema;
3626
- }
3627
- _parse(input) {
3628
- const { status, ctx } = this._processInputParams(input);
3629
- const effect = this._def.effect || null;
3630
- const checkCtx = {
3631
- addIssue: (arg) => {
3632
- addIssueToContext(ctx, arg);
3633
- if (arg.fatal) {
3634
- status.abort();
3635
- }
3636
- else {
3637
- status.dirty();
3638
- }
3639
- },
3640
- get path() {
3641
- return ctx.path;
3642
- },
3643
- };
3644
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3645
- if (effect.type === "preprocess") {
3646
- const processed = effect.transform(ctx.data, checkCtx);
3647
- if (ctx.common.async) {
3648
- return Promise.resolve(processed).then(async (processed) => {
3649
- if (status.value === "aborted")
3650
- return INVALID;
3651
- const result = await this._def.schema._parseAsync({
3652
- data: processed,
3653
- path: ctx.path,
3654
- parent: ctx,
3655
- });
3656
- if (result.status === "aborted")
3657
- return INVALID;
3658
- if (result.status === "dirty")
3659
- return DIRTY(result.value);
3660
- if (status.value === "dirty")
3661
- return DIRTY(result.value);
3662
- return result;
3663
- });
3664
- }
3665
- else {
3666
- if (status.value === "aborted")
3667
- return INVALID;
3668
- const result = this._def.schema._parseSync({
3669
- data: processed,
3670
- path: ctx.path,
3671
- parent: ctx,
3672
- });
3673
- if (result.status === "aborted")
3674
- return INVALID;
3675
- if (result.status === "dirty")
3676
- return DIRTY(result.value);
3677
- if (status.value === "dirty")
3678
- return DIRTY(result.value);
3679
- return result;
3680
- }
3681
- }
3682
- if (effect.type === "refinement") {
3683
- const executeRefinement = (acc) => {
3684
- const result = effect.refinement(acc, checkCtx);
3685
- if (ctx.common.async) {
3686
- return Promise.resolve(result);
3687
- }
3688
- if (result instanceof Promise) {
3689
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3690
- }
3691
- return acc;
3692
- };
3693
- if (ctx.common.async === false) {
3694
- const inner = this._def.schema._parseSync({
3695
- data: ctx.data,
3696
- path: ctx.path,
3697
- parent: ctx,
3698
- });
3699
- if (inner.status === "aborted")
3700
- return INVALID;
3701
- if (inner.status === "dirty")
3702
- status.dirty();
3703
- // return value is ignored
3704
- executeRefinement(inner.value);
3705
- return { status: status.value, value: inner.value };
3706
- }
3707
- else {
3708
- return this._def.schema
3709
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3710
- .then((inner) => {
3711
- if (inner.status === "aborted")
3712
- return INVALID;
3713
- if (inner.status === "dirty")
3714
- status.dirty();
3715
- return executeRefinement(inner.value).then(() => {
3716
- return { status: status.value, value: inner.value };
3717
- });
3718
- });
3719
- }
3720
- }
3721
- if (effect.type === "transform") {
3722
- if (ctx.common.async === false) {
3723
- const base = this._def.schema._parseSync({
3724
- data: ctx.data,
3725
- path: ctx.path,
3726
- parent: ctx,
3727
- });
3728
- if (!isValid(base))
3729
- return base;
3730
- const result = effect.transform(base.value, checkCtx);
3731
- if (result instanceof Promise) {
3732
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3733
- }
3734
- return { status: status.value, value: result };
3735
- }
3736
- else {
3737
- return this._def.schema
3738
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3739
- .then((base) => {
3740
- if (!isValid(base))
3741
- return base;
3742
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
3743
- });
3744
- }
3745
- }
3746
- exports.util.assertNever(effect);
3747
- }
3748
- }
3749
- ZodEffects.create = (schema, effect, params) => {
3750
- return new ZodEffects({
3751
- schema,
3752
- typeName: exports.ZodFirstPartyTypeKind.ZodEffects,
3753
- effect,
3754
- ...processCreateParams(params),
3755
- });
3756
- };
3757
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3758
- return new ZodEffects({
3759
- schema,
3760
- effect: { type: "preprocess", transform: preprocess },
3761
- typeName: exports.ZodFirstPartyTypeKind.ZodEffects,
3762
- ...processCreateParams(params),
3763
- });
3764
- };
3765
- class ZodOptional extends ZodType {
3766
- _parse(input) {
3767
- const parsedType = this._getType(input);
3768
- if (parsedType === ZodParsedType.undefined) {
3769
- return OK(undefined);
3770
- }
3771
- return this._def.innerType._parse(input);
3772
- }
3773
- unwrap() {
3774
- return this._def.innerType;
3775
- }
3776
- }
3777
- ZodOptional.create = (type, params) => {
3778
- return new ZodOptional({
3779
- innerType: type,
3780
- typeName: exports.ZodFirstPartyTypeKind.ZodOptional,
3781
- ...processCreateParams(params),
3782
- });
3783
- };
3784
- class ZodNullable extends ZodType {
3785
- _parse(input) {
3786
- const parsedType = this._getType(input);
3787
- if (parsedType === ZodParsedType.null) {
3788
- return OK(null);
3789
- }
3790
- return this._def.innerType._parse(input);
3791
- }
3792
- unwrap() {
3793
- return this._def.innerType;
3794
- }
3795
- }
3796
- ZodNullable.create = (type, params) => {
3797
- return new ZodNullable({
3798
- innerType: type,
3799
- typeName: exports.ZodFirstPartyTypeKind.ZodNullable,
3800
- ...processCreateParams(params),
3801
- });
3802
- };
3803
- class ZodDefault extends ZodType {
3804
- _parse(input) {
3805
- const { ctx } = this._processInputParams(input);
3806
- let data = ctx.data;
3807
- if (ctx.parsedType === ZodParsedType.undefined) {
3808
- data = this._def.defaultValue();
3809
- }
3810
- return this._def.innerType._parse({
3811
- data,
3812
- path: ctx.path,
3813
- parent: ctx,
3814
- });
3815
- }
3816
- removeDefault() {
3817
- return this._def.innerType;
3818
- }
3819
- }
3820
- ZodDefault.create = (type, params) => {
3821
- return new ZodDefault({
3822
- innerType: type,
3823
- typeName: exports.ZodFirstPartyTypeKind.ZodDefault,
3824
- defaultValue: typeof params.default === "function"
3825
- ? params.default
3826
- : () => params.default,
3827
- ...processCreateParams(params),
3828
- });
3829
- };
3830
- class ZodCatch extends ZodType {
3831
- _parse(input) {
3832
- const { ctx } = this._processInputParams(input);
3833
- // newCtx is used to not collect issues from inner types in ctx
3834
- const newCtx = {
3835
- ...ctx,
3836
- common: {
3837
- ...ctx.common,
3838
- issues: [],
3839
- },
3840
- };
3841
- const result = this._def.innerType._parse({
3842
- data: newCtx.data,
3843
- path: newCtx.path,
3844
- parent: {
3845
- ...newCtx,
3846
- },
3847
- });
3848
- if (isAsync(result)) {
3849
- return result.then((result) => {
3850
- return {
3851
- status: "valid",
3852
- value: result.status === "valid"
3853
- ? result.value
3854
- : this._def.catchValue({
3855
- get error() {
3856
- return new ZodError(newCtx.common.issues);
3857
- },
3858
- input: newCtx.data,
3859
- }),
3860
- };
3861
- });
3862
- }
3863
- else {
3864
- return {
3865
- status: "valid",
3866
- value: result.status === "valid"
3867
- ? result.value
3868
- : this._def.catchValue({
3869
- get error() {
3870
- return new ZodError(newCtx.common.issues);
3871
- },
3872
- input: newCtx.data,
3873
- }),
3874
- };
3875
- }
3876
- }
3877
- removeCatch() {
3878
- return this._def.innerType;
3879
- }
3880
- }
3881
- ZodCatch.create = (type, params) => {
3882
- return new ZodCatch({
3883
- innerType: type,
3884
- typeName: exports.ZodFirstPartyTypeKind.ZodCatch,
3885
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3886
- ...processCreateParams(params),
3887
- });
3888
- };
3889
- class ZodNaN extends ZodType {
3890
- _parse(input) {
3891
- const parsedType = this._getType(input);
3892
- if (parsedType !== ZodParsedType.nan) {
3893
- const ctx = this._getOrReturnCtx(input);
3894
- addIssueToContext(ctx, {
3895
- code: ZodIssueCode.invalid_type,
3896
- expected: ZodParsedType.nan,
3897
- received: ctx.parsedType,
3898
- });
3899
- return INVALID;
3900
- }
3901
- return { status: "valid", value: input.data };
3902
- }
3903
- }
3904
- ZodNaN.create = (params) => {
3905
- return new ZodNaN({
3906
- typeName: exports.ZodFirstPartyTypeKind.ZodNaN,
3907
- ...processCreateParams(params),
3908
- });
3909
- };
3910
- const BRAND = Symbol("zod_brand");
3911
- class ZodBranded extends ZodType {
3912
- _parse(input) {
3913
- const { ctx } = this._processInputParams(input);
3914
- const data = ctx.data;
3915
- return this._def.type._parse({
3916
- data,
3917
- path: ctx.path,
3918
- parent: ctx,
3919
- });
3920
- }
3921
- unwrap() {
3922
- return this._def.type;
3923
- }
3924
- }
3925
- class ZodPipeline extends ZodType {
3926
- _parse(input) {
3927
- const { status, ctx } = this._processInputParams(input);
3928
- if (ctx.common.async) {
3929
- const handleAsync = async () => {
3930
- const inResult = await this._def.in._parseAsync({
3931
- data: ctx.data,
3932
- path: ctx.path,
3933
- parent: ctx,
3934
- });
3935
- if (inResult.status === "aborted")
3936
- return INVALID;
3937
- if (inResult.status === "dirty") {
3938
- status.dirty();
3939
- return DIRTY(inResult.value);
3940
- }
3941
- else {
3942
- return this._def.out._parseAsync({
3943
- data: inResult.value,
3944
- path: ctx.path,
3945
- parent: ctx,
3946
- });
3947
- }
3948
- };
3949
- return handleAsync();
3950
- }
3951
- else {
3952
- const inResult = this._def.in._parseSync({
3953
- data: ctx.data,
3954
- path: ctx.path,
3955
- parent: ctx,
3956
- });
3957
- if (inResult.status === "aborted")
3958
- return INVALID;
3959
- if (inResult.status === "dirty") {
3960
- status.dirty();
3961
- return {
3962
- status: "dirty",
3963
- value: inResult.value,
3964
- };
3965
- }
3966
- else {
3967
- return this._def.out._parseSync({
3968
- data: inResult.value,
3969
- path: ctx.path,
3970
- parent: ctx,
3971
- });
3972
- }
3973
- }
3974
- }
3975
- static create(a, b) {
3976
- return new ZodPipeline({
3977
- in: a,
3978
- out: b,
3979
- typeName: exports.ZodFirstPartyTypeKind.ZodPipeline,
3980
- });
3981
- }
3982
- }
3983
- class ZodReadonly extends ZodType {
3984
- _parse(input) {
3985
- const result = this._def.innerType._parse(input);
3986
- const freeze = (data) => {
3987
- if (isValid(data)) {
3988
- data.value = Object.freeze(data.value);
3989
- }
3990
- return data;
3991
- };
3992
- return isAsync(result)
3993
- ? result.then((data) => freeze(data))
3994
- : freeze(result);
3995
- }
3996
- unwrap() {
3997
- return this._def.innerType;
3998
- }
3999
- }
4000
- ZodReadonly.create = (type, params) => {
4001
- return new ZodReadonly({
4002
- innerType: type,
4003
- typeName: exports.ZodFirstPartyTypeKind.ZodReadonly,
4004
- ...processCreateParams(params),
4005
- });
4006
- };
4007
- function custom(check, params = {},
4008
- /**
4009
- * @deprecated
4010
- *
4011
- * Pass `fatal` into the params object instead:
4012
- *
4013
- * ```ts
4014
- * z.string().custom((val) => val.length > 5, { fatal: false })
4015
- * ```
4016
- *
4017
- */
4018
- fatal) {
4019
- if (check)
4020
- return ZodAny.create().superRefine((data, ctx) => {
4021
- var _a, _b;
4022
- if (!check(data)) {
4023
- const p = typeof params === "function"
4024
- ? params(data)
4025
- : typeof params === "string"
4026
- ? { message: params }
4027
- : params;
4028
- const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4029
- const p2 = typeof p === "string" ? { message: p } : p;
4030
- ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
4031
- }
4032
- });
4033
- return ZodAny.create();
4034
- }
4035
- const late = {
4036
- object: ZodObject.lazycreate,
4037
- };
4038
- exports.ZodFirstPartyTypeKind = void 0;
4039
- (function (ZodFirstPartyTypeKind) {
4040
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
4041
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
4042
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
4043
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
4044
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
4045
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
4046
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
4047
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
4048
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
4049
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
4050
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
4051
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
4052
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
4053
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
4054
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
4055
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
4056
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
4057
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
4058
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
4059
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
4060
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
4061
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
4062
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
4063
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
4064
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
4065
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
4066
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
4067
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
4068
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
4069
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
4070
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
4071
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
4072
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
4073
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
4074
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
4075
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
4076
- })(exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));
4077
- const instanceOfType = (
4078
- // const instanceOfType = <T extends new (...args: any[]) => any>(
4079
- cls, params = {
4080
- message: `Input not instance of ${cls.name}`,
4081
- }) => custom((data) => data instanceof cls, params);
4082
- const stringType = ZodString.create;
4083
- const numberType = ZodNumber.create;
4084
- const nanType = ZodNaN.create;
4085
- const bigIntType = ZodBigInt.create;
4086
- const booleanType = ZodBoolean.create;
4087
- const dateType = ZodDate.create;
4088
- const symbolType = ZodSymbol.create;
4089
- const undefinedType = ZodUndefined.create;
4090
- const nullType = ZodNull.create;
4091
- const anyType = ZodAny.create;
4092
- const unknownType = ZodUnknown.create;
4093
- const neverType = ZodNever.create;
4094
- const voidType = ZodVoid.create;
4095
- const arrayType = ZodArray.create;
4096
- const objectType = ZodObject.create;
4097
- const strictObjectType = ZodObject.strictCreate;
4098
- const unionType = ZodUnion.create;
4099
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
4100
- const intersectionType = ZodIntersection.create;
4101
- const tupleType = ZodTuple.create;
4102
- const recordType = ZodRecord.create;
4103
- const mapType = ZodMap.create;
4104
- const setType = ZodSet.create;
4105
- const functionType = ZodFunction.create;
4106
- const lazyType = ZodLazy.create;
4107
- const literalType = ZodLiteral.create;
4108
- const enumType = ZodEnum.create;
4109
- const nativeEnumType = ZodNativeEnum.create;
4110
- const promiseType = ZodPromise.create;
4111
- const effectsType = ZodEffects.create;
4112
- const optionalType = ZodOptional.create;
4113
- const nullableType = ZodNullable.create;
4114
- const preprocessType = ZodEffects.createWithPreprocess;
4115
- const pipelineType = ZodPipeline.create;
4116
- const ostring = () => stringType().optional();
4117
- const onumber = () => numberType().optional();
4118
- const oboolean = () => booleanType().optional();
4119
- const coerce = {
4120
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
4121
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
4122
- boolean: ((arg) => ZodBoolean.create({
4123
- ...arg,
4124
- coerce: true,
4125
- })),
4126
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
4127
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
4128
- };
4129
- const NEVER = INVALID;
4130
-
4131
- var z = /*#__PURE__*/Object.freeze({
4132
- __proto__: null,
4133
- defaultErrorMap: errorMap,
4134
- setErrorMap: setErrorMap,
4135
- getErrorMap: getErrorMap,
4136
- makeIssue: makeIssue,
4137
- EMPTY_PATH: EMPTY_PATH,
4138
- addIssueToContext: addIssueToContext,
4139
- ParseStatus: ParseStatus,
4140
- INVALID: INVALID,
4141
- DIRTY: DIRTY,
4142
- OK: OK,
4143
- isAborted: isAborted,
4144
- isDirty: isDirty,
4145
- isValid: isValid,
4146
- isAsync: isAsync,
4147
- get util () { return exports.util; },
4148
- get objectUtil () { return exports.objectUtil; },
4149
- ZodParsedType: ZodParsedType,
4150
- getParsedType: getParsedType,
4151
- ZodType: ZodType,
4152
- datetimeRegex: datetimeRegex,
4153
- ZodString: ZodString,
4154
- ZodNumber: ZodNumber,
4155
- ZodBigInt: ZodBigInt,
4156
- ZodBoolean: ZodBoolean,
4157
- ZodDate: ZodDate,
4158
- ZodSymbol: ZodSymbol,
4159
- ZodUndefined: ZodUndefined,
4160
- ZodNull: ZodNull,
4161
- ZodAny: ZodAny,
4162
- ZodUnknown: ZodUnknown,
4163
- ZodNever: ZodNever,
4164
- ZodVoid: ZodVoid,
4165
- ZodArray: ZodArray,
4166
- ZodObject: ZodObject,
4167
- ZodUnion: ZodUnion,
4168
- ZodDiscriminatedUnion: ZodDiscriminatedUnion,
4169
- ZodIntersection: ZodIntersection,
4170
- ZodTuple: ZodTuple,
4171
- ZodRecord: ZodRecord,
4172
- ZodMap: ZodMap,
4173
- ZodSet: ZodSet,
4174
- ZodFunction: ZodFunction,
4175
- ZodLazy: ZodLazy,
4176
- ZodLiteral: ZodLiteral,
4177
- ZodEnum: ZodEnum,
4178
- ZodNativeEnum: ZodNativeEnum,
4179
- ZodPromise: ZodPromise,
4180
- ZodEffects: ZodEffects,
4181
- ZodTransformer: ZodEffects,
4182
- ZodOptional: ZodOptional,
4183
- ZodNullable: ZodNullable,
4184
- ZodDefault: ZodDefault,
4185
- ZodCatch: ZodCatch,
4186
- ZodNaN: ZodNaN,
4187
- BRAND: BRAND,
4188
- ZodBranded: ZodBranded,
4189
- ZodPipeline: ZodPipeline,
4190
- ZodReadonly: ZodReadonly,
4191
- custom: custom,
4192
- Schema: ZodType,
4193
- ZodSchema: ZodType,
4194
- late: late,
4195
- get ZodFirstPartyTypeKind () { return exports.ZodFirstPartyTypeKind; },
4196
- coerce: coerce,
4197
- any: anyType,
4198
- array: arrayType,
4199
- bigint: bigIntType,
4200
- boolean: booleanType,
4201
- date: dateType,
4202
- discriminatedUnion: discriminatedUnionType,
4203
- effect: effectsType,
4204
- 'enum': enumType,
4205
- 'function': functionType,
4206
- 'instanceof': instanceOfType,
4207
- intersection: intersectionType,
4208
- lazy: lazyType,
4209
- literal: literalType,
4210
- map: mapType,
4211
- nan: nanType,
4212
- nativeEnum: nativeEnumType,
4213
- never: neverType,
4214
- 'null': nullType,
4215
- nullable: nullableType,
4216
- number: numberType,
4217
- object: objectType,
4218
- oboolean: oboolean,
4219
- onumber: onumber,
4220
- optional: optionalType,
4221
- ostring: ostring,
4222
- pipeline: pipelineType,
4223
- preprocess: preprocessType,
4224
- promise: promiseType,
4225
- record: recordType,
4226
- set: setType,
4227
- strictObject: strictObjectType,
4228
- string: stringType,
4229
- symbol: symbolType,
4230
- transformer: effectsType,
4231
- tuple: tupleType,
4232
- 'undefined': undefinedType,
4233
- union: unionType,
4234
- unknown: unknownType,
4235
- 'void': voidType,
4236
- NEVER: NEVER,
4237
- ZodIssueCode: ZodIssueCode,
4238
- quotelessJson: quotelessJson,
4239
- ZodError: ZodError
4240
- });
4241
-
4242
- exports.BRAND = BRAND;
4243
- exports.DIRTY = DIRTY;
4244
- exports.EMPTY_PATH = EMPTY_PATH;
4245
- exports.INVALID = INVALID;
4246
- exports.NEVER = NEVER;
4247
- exports.OK = OK;
4248
- exports.ParseStatus = ParseStatus;
4249
- exports.Schema = ZodType;
4250
- exports.ZodAny = ZodAny;
4251
- exports.ZodArray = ZodArray;
4252
- exports.ZodBigInt = ZodBigInt;
4253
- exports.ZodBoolean = ZodBoolean;
4254
- exports.ZodBranded = ZodBranded;
4255
- exports.ZodCatch = ZodCatch;
4256
- exports.ZodDate = ZodDate;
4257
- exports.ZodDefault = ZodDefault;
4258
- exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
4259
- exports.ZodEffects = ZodEffects;
4260
- exports.ZodEnum = ZodEnum;
4261
- exports.ZodError = ZodError;
4262
- exports.ZodFunction = ZodFunction;
4263
- exports.ZodIntersection = ZodIntersection;
4264
- exports.ZodIssueCode = ZodIssueCode;
4265
- exports.ZodLazy = ZodLazy;
4266
- exports.ZodLiteral = ZodLiteral;
4267
- exports.ZodMap = ZodMap;
4268
- exports.ZodNaN = ZodNaN;
4269
- exports.ZodNativeEnum = ZodNativeEnum;
4270
- exports.ZodNever = ZodNever;
4271
- exports.ZodNull = ZodNull;
4272
- exports.ZodNullable = ZodNullable;
4273
- exports.ZodNumber = ZodNumber;
4274
- exports.ZodObject = ZodObject;
4275
- exports.ZodOptional = ZodOptional;
4276
- exports.ZodParsedType = ZodParsedType;
4277
- exports.ZodPipeline = ZodPipeline;
4278
- exports.ZodPromise = ZodPromise;
4279
- exports.ZodReadonly = ZodReadonly;
4280
- exports.ZodRecord = ZodRecord;
4281
- exports.ZodSchema = ZodType;
4282
- exports.ZodSet = ZodSet;
4283
- exports.ZodString = ZodString;
4284
- exports.ZodSymbol = ZodSymbol;
4285
- exports.ZodTransformer = ZodEffects;
4286
- exports.ZodTuple = ZodTuple;
4287
- exports.ZodType = ZodType;
4288
- exports.ZodUndefined = ZodUndefined;
4289
- exports.ZodUnion = ZodUnion;
4290
- exports.ZodUnknown = ZodUnknown;
4291
- exports.ZodVoid = ZodVoid;
4292
- exports.addIssueToContext = addIssueToContext;
4293
- exports.any = anyType;
4294
- exports.array = arrayType;
4295
- exports.bigint = bigIntType;
4296
- exports.boolean = booleanType;
4297
- exports.coerce = coerce;
4298
- exports.custom = custom;
4299
- exports.date = dateType;
4300
- exports.datetimeRegex = datetimeRegex;
4301
- exports["default"] = z;
4302
- exports.defaultErrorMap = errorMap;
4303
- exports.discriminatedUnion = discriminatedUnionType;
4304
- exports.effect = effectsType;
4305
- exports["enum"] = enumType;
4306
- exports["function"] = functionType;
4307
- exports.getErrorMap = getErrorMap;
4308
- exports.getParsedType = getParsedType;
4309
- exports["instanceof"] = instanceOfType;
4310
- exports.intersection = intersectionType;
4311
- exports.isAborted = isAborted;
4312
- exports.isAsync = isAsync;
4313
- exports.isDirty = isDirty;
4314
- exports.isValid = isValid;
4315
- exports.late = late;
4316
- exports.lazy = lazyType;
4317
- exports.literal = literalType;
4318
- exports.makeIssue = makeIssue;
4319
- exports.map = mapType;
4320
- exports.nan = nanType;
4321
- exports.nativeEnum = nativeEnumType;
4322
- exports.never = neverType;
4323
- exports["null"] = nullType;
4324
- exports.nullable = nullableType;
4325
- exports.number = numberType;
4326
- exports.object = objectType;
4327
- exports.oboolean = oboolean;
4328
- exports.onumber = onumber;
4329
- exports.optional = optionalType;
4330
- exports.ostring = ostring;
4331
- exports.pipeline = pipelineType;
4332
- exports.preprocess = preprocessType;
4333
- exports.promise = promiseType;
4334
- exports.quotelessJson = quotelessJson;
4335
- exports.record = recordType;
4336
- exports.set = setType;
4337
- exports.setErrorMap = setErrorMap;
4338
- exports.strictObject = strictObjectType;
4339
- exports.string = stringType;
4340
- exports.symbol = symbolType;
4341
- exports.transformer = effectsType;
4342
- exports.tuple = tupleType;
4343
- exports["undefined"] = undefinedType;
4344
- exports.union = unionType;
4345
- exports.unknown = unknownType;
4346
- exports["void"] = voidType;
4347
- exports.z = z;
4348
-
4349
- Object.defineProperty(exports, '__esModule', { value: true });
4350
-
4351
- }));