@epic-web/workshop-app 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2187) hide show
  1. package/build/client/assets/_-CWSCXcBv.js +2 -0
  2. package/build/client/assets/_-CWSCXcBv.js.map +1 -0
  3. package/build/client/assets/_exerciseNumber-DarnXgbX.js +2 -0
  4. package/build/client/assets/_exerciseNumber-DarnXgbX.js.map +1 -0
  5. package/build/client/assets/_exerciseNumber_._stepNumber-BA2Xhzqs.js +2 -0
  6. package/build/client/assets/_exerciseNumber_._stepNumber-BA2Xhzqs.js.map +1 -0
  7. package/build/client/assets/_exerciseNumber_.finished-DEzaS_Ji.js +2 -0
  8. package/build/client/assets/_exerciseNumber_.finished-DEzaS_Ji.js.map +1 -0
  9. package/build/client/assets/_layout-88n0To1b.js +2 -0
  10. package/build/client/assets/_layout-88n0To1b.js.map +1 -0
  11. package/build/client/assets/_layout-BTrPWpBz.js +2 -0
  12. package/build/client/assets/_layout-BTrPWpBz.js.map +1 -0
  13. package/build/client/assets/_layout-T2hZtl0D.js +6 -0
  14. package/build/client/assets/_layout-T2hZtl0D.js.map +1 -0
  15. package/build/client/assets/_layout-gyrNluke.js +2 -0
  16. package/build/client/assets/_layout-gyrNluke.js.map +1 -0
  17. package/build/client/assets/accordion-DC885Li1.js +2 -0
  18. package/build/client/assets/accordion-DC885Li1.js.map +1 -0
  19. package/build/client/assets/account-CPFwPYf1.js +2 -0
  20. package/build/client/assets/account-CPFwPYf1.js.map +1 -0
  21. package/build/client/assets/app-CM8yuYni.js +2 -0
  22. package/build/client/assets/app-CM8yuYni.js.map +1 -0
  23. package/build/client/assets/button-DQ001ob0.js +2 -0
  24. package/build/client/assets/button-DQ001ob0.js.map +1 -0
  25. package/build/client/assets/components-9EGYHTc_.js +158 -0
  26. package/build/client/assets/components-9EGYHTc_.js.map +1 -0
  27. package/build/client/assets/diff-assn_bSK.js +2 -0
  28. package/build/client/assets/diff-assn_bSK.js.map +1 -0
  29. package/build/client/assets/diff-jlCv3hv0.js +2 -0
  30. package/build/client/assets/diff-jlCv3hv0.js.map +1 -0
  31. package/build/client/assets/discord-CHsbqaqM.js +2 -0
  32. package/build/client/assets/discord-CHsbqaqM.js.map +1 -0
  33. package/build/client/assets/discord-DoeazikD.js +2 -0
  34. package/build/client/assets/discord-DoeazikD.js.map +1 -0
  35. package/build/client/assets/entry.client-BTYTUpFV.js +44 -0
  36. package/build/client/assets/entry.client-BTYTUpFV.js.map +1 -0
  37. package/build/client/assets/epic-video-GDpD7_Qt.js +3053 -0
  38. package/build/client/assets/epic-video-GDpD7_Qt.js.map +1 -0
  39. package/build/client/assets/error-boundary-1-dmC941.js +2 -0
  40. package/build/client/assets/error-boundary-1-dmC941.js.map +1 -0
  41. package/build/client/assets/finished-DVV0zwmP.js +2 -0
  42. package/build/client/assets/finished-DVV0zwmP.js.map +1 -0
  43. package/build/client/assets/index-BCxBKsqT.js +2 -0
  44. package/build/client/assets/index-BCxBKsqT.js.map +1 -0
  45. package/build/client/assets/index-BFGhCX_U.js +38 -0
  46. package/build/client/assets/index-BFGhCX_U.js.map +1 -0
  47. package/build/client/assets/index-BuA_RWlU.js +2 -0
  48. package/build/client/assets/index-BuA_RWlU.js.map +1 -0
  49. package/build/client/assets/index-BuoaxPEj.js +42 -0
  50. package/build/client/assets/index-BuoaxPEj.js.map +1 -0
  51. package/build/client/assets/index-DJF1fiZI.js +2 -0
  52. package/build/client/assets/index-DJF1fiZI.js.map +1 -0
  53. package/build/client/assets/index-DRH72MzK.js +3 -0
  54. package/build/client/assets/index-DRH72MzK.js.map +1 -0
  55. package/build/client/assets/index-KgMLc41c.js +2 -0
  56. package/build/client/assets/index-KgMLc41c.js.map +1 -0
  57. package/build/client/assets/index-_J-F_Dnc.js +36 -0
  58. package/build/client/assets/index-_J-F_Dnc.js.map +1 -0
  59. package/build/client/assets/loading-Dk0n07O3.js +2 -0
  60. package/build/client/assets/loading-Dk0n07O3.js.map +1 -0
  61. package/build/client/assets/login-pZYDEC_l.js +2 -0
  62. package/build/client/assets/login-pZYDEC_l.js.map +1 -0
  63. package/build/client/assets/manifest-3338a6ab.js +1 -0
  64. package/build/client/assets/mdx-hW1uYjc1.js +2 -0
  65. package/build/client/assets/mdx-hW1uYjc1.js.map +1 -0
  66. package/build/client/assets/misc-BJtHv_Jh.js +2 -0
  67. package/build/client/assets/misc-BJtHv_Jh.js.map +1 -0
  68. package/build/client/assets/nav-chevrons-CgbSMLeb.js +2 -0
  69. package/build/client/assets/nav-chevrons-CgbSMLeb.js.map +1 -0
  70. package/build/client/assets/onboarding-DCuSqnkZ.js +2 -0
  71. package/build/client/assets/onboarding-DCuSqnkZ.js.map +1 -0
  72. package/build/client/assets/pe-ChIwTk8v.js +2 -0
  73. package/build/client/assets/pe-ChIwTk8v.js.map +1 -0
  74. package/build/client/assets/presence-CdyMdOKk.js +28 -0
  75. package/build/client/assets/presence-CdyMdOKk.js.map +1 -0
  76. package/build/client/assets/preview-CW_12I0i.js +2 -0
  77. package/build/client/assets/preview-CW_12I0i.js.map +1 -0
  78. package/build/client/assets/product-C1ynnrN_.js +2 -0
  79. package/build/client/assets/product-C1ynnrN_.js.map +1 -0
  80. package/build/client/assets/progress-DAB3nDa2.js +2 -0
  81. package/build/client/assets/progress-DAB3nDa2.js.map +1 -0
  82. package/build/client/assets/progress-bar-Cj5R4Zk7.js +2 -0
  83. package/build/client/assets/progress-bar-Cj5R4Zk7.js.map +1 -0
  84. package/build/client/assets/request-info-DCIQLE6H.js +2 -0
  85. package/build/client/assets/request-info-DCIQLE6H.js.map +1 -0
  86. package/build/client/assets/revalidation-ws-DU-PzW-_.js +2 -0
  87. package/build/client/assets/revalidation-ws-DU-PzW-_.js.map +1 -0
  88. package/build/client/assets/root-DojjHZlY.js +11 -0
  89. package/build/client/assets/root-DojjHZlY.js.map +1 -0
  90. package/build/client/assets/set-playground-DgnOJqFN.js +2 -0
  91. package/build/client/assets/set-playground-DgnOJqFN.js.map +1 -0
  92. package/build/client/assets/support-BNS-kEhc.js +2 -0
  93. package/build/client/assets/support-BNS-kEhc.js.map +1 -0
  94. package/build/client/assets/tailwind-B5AAMtGC.css +1 -0
  95. package/build/client/assets/test-DJ7oeeeg.js +2 -0
  96. package/build/client/assets/test-DJ7oeeeg.js.map +1 -0
  97. package/build/client/assets/tests-Bw1rCopV.js +4 -0
  98. package/build/client/assets/tests-Bw1rCopV.js.map +1 -0
  99. package/build/client/assets/tooltip-BgynKV2c.js +2 -0
  100. package/build/client/assets/tooltip-BgynKV2c.js.map +1 -0
  101. package/build/client/assets/use-event-source-x59d4R2Z.js +2 -0
  102. package/build/client/assets/use-event-source-x59d4R2Z.js.map +1 -0
  103. package/build/client/assets/user-BBryXlM_.js +2 -0
  104. package/build/client/assets/user-BBryXlM_.js.map +1 -0
  105. package/build/client/assets/workshop-config-DJY2cXU_.js +2 -0
  106. package/build/client/assets/workshop-config-DJY2cXU_.js.map +1 -0
  107. package/build/server/index.js +110 -2346
  108. package/build/server/index.js.map +1 -1
  109. package/dist/server/index.js +7 -12
  110. package/package.json +68 -95
  111. package/build/client/assets/_-ZHCWB__B.js +0 -2
  112. package/build/client/assets/_-ZHCWB__B.js.map +0 -1
  113. package/build/client/assets/_exerciseNumber-BFTlBdr4.js +0 -2
  114. package/build/client/assets/_exerciseNumber-BFTlBdr4.js.map +0 -1
  115. package/build/client/assets/_exerciseNumber_._stepNumber-_687iGFh.js +0 -2
  116. package/build/client/assets/_exerciseNumber_._stepNumber-_687iGFh.js.map +0 -1
  117. package/build/client/assets/_exerciseNumber_.finished-BEfn-nJi.js +0 -2
  118. package/build/client/assets/_exerciseNumber_.finished-BEfn-nJi.js.map +0 -1
  119. package/build/client/assets/_layout-BLJr2x2F.js +0 -2
  120. package/build/client/assets/_layout-BLJr2x2F.js.map +0 -1
  121. package/build/client/assets/_layout-BriOqd2R.js +0 -2
  122. package/build/client/assets/_layout-BriOqd2R.js.map +0 -1
  123. package/build/client/assets/_layout-Cfbi6StB.js +0 -2
  124. package/build/client/assets/_layout-Cfbi6StB.js.map +0 -1
  125. package/build/client/assets/_layout-frPHZWgR.js +0 -6
  126. package/build/client/assets/_layout-frPHZWgR.js.map +0 -1
  127. package/build/client/assets/accordion-DuE9VejZ.js +0 -2
  128. package/build/client/assets/accordion-DuE9VejZ.js.map +0 -1
  129. package/build/client/assets/account-DDuV9rZX.js +0 -2
  130. package/build/client/assets/account-DDuV9rZX.js.map +0 -1
  131. package/build/client/assets/app-wbMCZEiv.js +0 -2
  132. package/build/client/assets/app-wbMCZEiv.js.map +0 -1
  133. package/build/client/assets/button-CMkJ8p0a.js +0 -2
  134. package/build/client/assets/button-CMkJ8p0a.js.map +0 -1
  135. package/build/client/assets/components-DZ8XIeZ3.js +0 -166
  136. package/build/client/assets/components-DZ8XIeZ3.js.map +0 -1
  137. package/build/client/assets/diff-B6thd_Sf.js +0 -2
  138. package/build/client/assets/diff-B6thd_Sf.js.map +0 -1
  139. package/build/client/assets/diff-BEk79KPK.js +0 -2
  140. package/build/client/assets/diff-BEk79KPK.js.map +0 -1
  141. package/build/client/assets/discord-C9bVfiZ6.js +0 -2
  142. package/build/client/assets/discord-C9bVfiZ6.js.map +0 -1
  143. package/build/client/assets/discord-DYeU0QX6.js +0 -2
  144. package/build/client/assets/discord-DYeU0QX6.js.map +0 -1
  145. package/build/client/assets/entry.client-CW5CUf_W.js +0 -43
  146. package/build/client/assets/entry.client-CW5CUf_W.js.map +0 -1
  147. package/build/client/assets/epic-video-bs7WmhbC.js +0 -2988
  148. package/build/client/assets/epic-video-bs7WmhbC.js.map +0 -1
  149. package/build/client/assets/error-boundary-BcGxKpte.js +0 -2
  150. package/build/client/assets/error-boundary-BcGxKpte.js.map +0 -1
  151. package/build/client/assets/finished-C2dgX1d-.js +0 -2
  152. package/build/client/assets/finished-C2dgX1d-.js.map +0 -1
  153. package/build/client/assets/index-BczhSZ3e.js +0 -2
  154. package/build/client/assets/index-BczhSZ3e.js.map +0 -1
  155. package/build/client/assets/index-BjNhezSK.js +0 -42
  156. package/build/client/assets/index-BjNhezSK.js.map +0 -1
  157. package/build/client/assets/index-BvihEwfB.js +0 -36
  158. package/build/client/assets/index-BvihEwfB.js.map +0 -1
  159. package/build/client/assets/index-C2yr7Uiu.js +0 -2
  160. package/build/client/assets/index-C2yr7Uiu.js.map +0 -1
  161. package/build/client/assets/index-CuV1bRbu.js +0 -2
  162. package/build/client/assets/index-CuV1bRbu.js.map +0 -1
  163. package/build/client/assets/index-DBrRQJxF.js +0 -2
  164. package/build/client/assets/index-DBrRQJxF.js.map +0 -1
  165. package/build/client/assets/index-DF_XBInP.js +0 -37
  166. package/build/client/assets/index-DF_XBInP.js.map +0 -1
  167. package/build/client/assets/index-YtpQLUzj.js +0 -3
  168. package/build/client/assets/index-YtpQLUzj.js.map +0 -1
  169. package/build/client/assets/loading-Br41_Pbf.js +0 -2
  170. package/build/client/assets/loading-Br41_Pbf.js.map +0 -1
  171. package/build/client/assets/login-kjV7hrVt.js +0 -2
  172. package/build/client/assets/login-kjV7hrVt.js.map +0 -1
  173. package/build/client/assets/manifest-77ab30ae.js +0 -1
  174. package/build/client/assets/mdx-CRxPouxB.js +0 -2
  175. package/build/client/assets/mdx-CRxPouxB.js.map +0 -1
  176. package/build/client/assets/misc-BE75ioh8.js +0 -2
  177. package/build/client/assets/misc-BE75ioh8.js.map +0 -1
  178. package/build/client/assets/nav-chevrons-DYiI8EMU.js +0 -2
  179. package/build/client/assets/nav-chevrons-DYiI8EMU.js.map +0 -1
  180. package/build/client/assets/onboarding-B4Z_yevk.js +0 -2
  181. package/build/client/assets/onboarding-B4Z_yevk.js.map +0 -1
  182. package/build/client/assets/pe-CvPIToj6.js +0 -2
  183. package/build/client/assets/pe-CvPIToj6.js.map +0 -1
  184. package/build/client/assets/presence-Dd98AJ_5.js +0 -28
  185. package/build/client/assets/presence-Dd98AJ_5.js.map +0 -1
  186. package/build/client/assets/preview-DZcdG4kw.js +0 -2
  187. package/build/client/assets/preview-DZcdG4kw.js.map +0 -1
  188. package/build/client/assets/product-mjsTrqXs.js +0 -2
  189. package/build/client/assets/product-mjsTrqXs.js.map +0 -1
  190. package/build/client/assets/progress-Co-59mG2.js +0 -2
  191. package/build/client/assets/progress-Co-59mG2.js.map +0 -1
  192. package/build/client/assets/progress-bar-F8_2mvYp.js +0 -2
  193. package/build/client/assets/progress-bar-F8_2mvYp.js.map +0 -1
  194. package/build/client/assets/request-info-DGnmXtfj.js +0 -2
  195. package/build/client/assets/request-info-DGnmXtfj.js.map +0 -1
  196. package/build/client/assets/revalidation-ws-DcvYvzyj.js +0 -2
  197. package/build/client/assets/revalidation-ws-DcvYvzyj.js.map +0 -1
  198. package/build/client/assets/root-Cl86OUog.js +0 -11
  199. package/build/client/assets/root-Cl86OUog.js.map +0 -1
  200. package/build/client/assets/set-playground-pMKmtPtz.js +0 -2
  201. package/build/client/assets/set-playground-pMKmtPtz.js.map +0 -1
  202. package/build/client/assets/support-B0E_F4Zh.js +0 -2
  203. package/build/client/assets/support-B0E_F4Zh.js.map +0 -1
  204. package/build/client/assets/tailwind-B9pSujyx.css +0 -1
  205. package/build/client/assets/test-B6zIK2V6.js +0 -2
  206. package/build/client/assets/test-B6zIK2V6.js.map +0 -1
  207. package/build/client/assets/tests-BeAEgPAw.js +0 -4
  208. package/build/client/assets/tests-BeAEgPAw.js.map +0 -1
  209. package/build/client/assets/tooltip-6-WS-Xux.js +0 -2
  210. package/build/client/assets/tooltip-6-WS-Xux.js.map +0 -1
  211. package/build/client/assets/use-event-source-CCGBLG92.js +0 -2
  212. package/build/client/assets/use-event-source-CCGBLG92.js.map +0 -1
  213. package/build/client/assets/user-Boua6jiU.js +0 -2
  214. package/build/client/assets/user-Boua6jiU.js.map +0 -1
  215. package/build/client/assets/workshop-config-Ce9sSc3I.js +0 -2
  216. package/build/client/assets/workshop-config-Ce9sSc3I.js.map +0 -1
  217. package/node_modules/@babel/runtime/LICENSE +0 -22
  218. package/node_modules/@babel/runtime/README.md +0 -19
  219. package/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
  220. package/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
  221. package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
  222. package/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
  223. package/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
  224. package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
  225. package/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
  226. package/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
  227. package/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
  228. package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
  229. package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
  230. package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
  231. package/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
  232. package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
  233. package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
  234. package/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
  235. package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
  236. package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
  237. package/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
  238. package/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
  239. package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
  240. package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
  241. package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
  242. package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
  243. package/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
  244. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
  245. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
  246. package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
  247. package/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
  248. package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
  249. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
  250. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
  251. package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
  252. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
  253. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
  254. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
  255. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
  256. package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
  257. package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
  258. package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
  259. package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
  260. package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
  261. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
  262. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
  263. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
  264. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
  265. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
  266. package/node_modules/@babel/runtime/helpers/construct.js +0 -10
  267. package/node_modules/@babel/runtime/helpers/createClass.js +0 -13
  268. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
  269. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
  270. package/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
  271. package/node_modules/@babel/runtime/helpers/decorate.js +0 -250
  272. package/node_modules/@babel/runtime/helpers/defaults.js +0 -9
  273. package/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
  274. package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
  275. package/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
  276. package/node_modules/@babel/runtime/helpers/dispose.js +0 -28
  277. package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
  278. package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
  279. package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
  280. package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
  281. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
  282. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
  283. package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
  284. package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
  285. package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
  286. package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
  287. package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
  288. package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
  289. package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
  290. package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
  291. package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
  292. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
  293. package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
  294. package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
  295. package/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
  296. package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
  297. package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
  298. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
  299. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
  300. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
  301. package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
  302. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
  303. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
  304. package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
  305. package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
  306. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
  307. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
  308. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
  309. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
  310. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
  311. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
  312. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
  313. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
  314. package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
  315. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
  316. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
  317. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
  318. package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
  319. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
  320. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
  321. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
  322. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
  323. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
  324. package/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
  325. package/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
  326. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
  327. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
  328. package/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
  329. package/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
  330. package/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
  331. package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
  332. package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
  333. package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
  334. package/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
  335. package/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
  336. package/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
  337. package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
  338. package/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
  339. package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
  340. package/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
  341. package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
  342. package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
  343. package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
  344. package/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
  345. package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
  346. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -27
  347. package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
  348. package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
  349. package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
  350. package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
  351. package/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
  352. package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
  353. package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
  354. package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
  355. package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
  356. package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
  357. package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
  358. package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
  359. package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
  360. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
  361. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
  362. package/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
  363. package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
  364. package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
  365. package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -304
  366. package/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
  367. package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
  368. package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
  369. package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
  370. package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
  371. package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
  372. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
  373. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
  374. package/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
  375. package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
  376. package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
  377. package/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
  378. package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
  379. package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
  380. package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
  381. package/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
  382. package/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
  383. package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
  384. package/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
  385. package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -47
  386. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -69
  387. package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
  388. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -51
  389. package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
  390. package/node_modules/@babel/runtime/helpers/extends.js +0 -10
  391. package/node_modules/@babel/runtime/helpers/get.js +0 -11
  392. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
  393. package/node_modules/@babel/runtime/helpers/identity.js +0 -4
  394. package/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
  395. package/node_modules/@babel/runtime/helpers/inherits.js +0 -14
  396. package/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
  397. package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
  398. package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
  399. package/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
  400. package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
  401. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -27
  402. package/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
  403. package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
  404. package/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
  405. package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
  406. package/node_modules/@babel/runtime/helpers/jsx.js +0 -22
  407. package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
  408. package/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
  409. package/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
  410. package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
  411. package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
  412. package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
  413. package/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
  414. package/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
  415. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
  416. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
  417. package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
  418. package/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
  419. package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -304
  420. package/node_modules/@babel/runtime/helpers/set.js +0 -22
  421. package/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
  422. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
  423. package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
  424. package/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
  425. package/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
  426. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
  427. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
  428. package/node_modules/@babel/runtime/helpers/tdz.js +0 -4
  429. package/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
  430. package/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
  431. package/node_modules/@babel/runtime/helpers/toArray.js +0 -8
  432. package/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
  433. package/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
  434. package/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
  435. package/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
  436. package/node_modules/@babel/runtime/helpers/typeof.js +0 -10
  437. package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
  438. package/node_modules/@babel/runtime/helpers/using.js +0 -12
  439. package/node_modules/@babel/runtime/helpers/usingCtx.js +0 -47
  440. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -69
  441. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
  442. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -51
  443. package/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
  444. package/node_modules/@babel/runtime/package.json +0 -1038
  445. package/node_modules/@babel/runtime/regenerator/index.js +0 -15
  446. package/node_modules/@conform-to/dom/LICENSE +0 -21
  447. package/node_modules/@conform-to/dom/README +0 -37
  448. package/node_modules/@conform-to/dom/_virtual/_rollupPluginBabelHelpers.js +0 -58
  449. package/node_modules/@conform-to/dom/_virtual/_rollupPluginBabelHelpers.mjs +0 -51
  450. package/node_modules/@conform-to/dom/dom.d.ts +0 -55
  451. package/node_modules/@conform-to/dom/dom.js +0 -104
  452. package/node_modules/@conform-to/dom/dom.mjs +0 -95
  453. package/node_modules/@conform-to/dom/form.d.ts +0 -246
  454. package/node_modules/@conform-to/dom/form.js +0 -582
  455. package/node_modules/@conform-to/dom/form.mjs +0 -578
  456. package/node_modules/@conform-to/dom/formdata.d.ts +0 -61
  457. package/node_modules/@conform-to/dom/formdata.js +0 -214
  458. package/node_modules/@conform-to/dom/formdata.mjs +0 -200
  459. package/node_modules/@conform-to/dom/index.d.ts +0 -26
  460. package/node_modules/@conform-to/dom/index.js +0 -20
  461. package/node_modules/@conform-to/dom/index.mjs +0 -4
  462. package/node_modules/@conform-to/dom/intent.d.ts +0 -114
  463. package/node_modules/@conform-to/dom/intent.js +0 -136
  464. package/node_modules/@conform-to/dom/intent.mjs +0 -126
  465. package/node_modules/@conform-to/dom/package.json +0 -59
  466. package/node_modules/@conform-to/dom/parse.d.ts +0 -50
  467. package/node_modules/@conform-to/dom/parse.js +0 -43
  468. package/node_modules/@conform-to/dom/parse.mjs +0 -37
  469. package/node_modules/@conform-to/dom/submission.d.ts +0 -135
  470. package/node_modules/@conform-to/dom/submission.js +0 -305
  471. package/node_modules/@conform-to/dom/submission.mjs +0 -288
  472. package/node_modules/@conform-to/dom/types.d.ts +0 -23
  473. package/node_modules/@conform-to/dom/util.d.ts +0 -6
  474. package/node_modules/@conform-to/dom/util.js +0 -19
  475. package/node_modules/@conform-to/dom/util.mjs +0 -13
  476. package/node_modules/@conform-to/react/LICENSE +0 -21
  477. package/node_modules/@conform-to/react/README +0 -37
  478. package/node_modules/@conform-to/react/_virtual/_rollupPluginBabelHelpers.js +0 -87
  479. package/node_modules/@conform-to/react/_virtual/_rollupPluginBabelHelpers.mjs +0 -78
  480. package/node_modules/@conform-to/react/context.d.ts +0 -200
  481. package/node_modules/@conform-to/react/context.js +0 -256
  482. package/node_modules/@conform-to/react/context.mjs +0 -241
  483. package/node_modules/@conform-to/react/experimental.d.ts +0 -0
  484. package/node_modules/@conform-to/react/helpers.d.ts +0 -208
  485. package/node_modules/@conform-to/react/helpers.js +0 -222
  486. package/node_modules/@conform-to/react/helpers.mjs +0 -211
  487. package/node_modules/@conform-to/react/hooks.d.ts +0 -63
  488. package/node_modules/@conform-to/react/hooks.js +0 -88
  489. package/node_modules/@conform-to/react/hooks.mjs +0 -79
  490. package/node_modules/@conform-to/react/index.d.ts +0 -29
  491. package/node_modules/@conform-to/react/index.js +0 -30
  492. package/node_modules/@conform-to/react/index.mjs +0 -5
  493. package/node_modules/@conform-to/react/integrations.d.ts +0 -45
  494. package/node_modules/@conform-to/react/integrations.js +0 -298
  495. package/node_modules/@conform-to/react/integrations.mjs +0 -284
  496. package/node_modules/@conform-to/react/package.json +0 -69
  497. package/node_modules/@conform-to/zod/LICENSE +0 -21
  498. package/node_modules/@conform-to/zod/README +0 -37
  499. package/node_modules/@conform-to/zod/_virtual/_rollupPluginBabelHelpers.js +0 -58
  500. package/node_modules/@conform-to/zod/_virtual/_rollupPluginBabelHelpers.mjs +0 -51
  501. package/node_modules/@conform-to/zod/coercion.d.ts +0 -37
  502. package/node_modules/@conform-to/zod/coercion.js +0 -171
  503. package/node_modules/@conform-to/zod/coercion.mjs +0 -164
  504. package/node_modules/@conform-to/zod/constraint.d.ts +0 -5
  505. package/node_modules/@conform-to/zod/constraint.js +0 -103
  506. package/node_modules/@conform-to/zod/constraint.mjs +0 -99
  507. package/node_modules/@conform-to/zod/index.d.ts +0 -2
  508. package/node_modules/@conform-to/zod/index.js +0 -12
  509. package/node_modules/@conform-to/zod/index.mjs +0 -2
  510. package/node_modules/@conform-to/zod/package.json +0 -61
  511. package/node_modules/@conform-to/zod/parse.d.ts +0 -46
  512. package/node_modules/@conform-to/zod/parse.js +0 -64
  513. package/node_modules/@conform-to/zod/parse.mjs +0 -59
  514. package/node_modules/@epic-web/client-hints/README.md +0 -221
  515. package/node_modules/@epic-web/client-hints/dist/color-scheme.d.ts +0 -12
  516. package/node_modules/@epic-web/client-hints/dist/color-scheme.js +0 -25
  517. package/node_modules/@epic-web/client-hints/dist/index.d.ts +0 -6
  518. package/node_modules/@epic-web/client-hints/dist/index.js +0 -79
  519. package/node_modules/@epic-web/client-hints/dist/reduced-motion.d.ts +0 -12
  520. package/node_modules/@epic-web/client-hints/dist/reduced-motion.js +0 -25
  521. package/node_modules/@epic-web/client-hints/dist/time-zone.d.ts +0 -5
  522. package/node_modules/@epic-web/client-hints/dist/time-zone.js +0 -5
  523. package/node_modules/@epic-web/client-hints/dist/utils.d.ts +0 -9
  524. package/node_modules/@epic-web/client-hints/dist/utils.js +0 -1
  525. package/node_modules/@epic-web/client-hints/package.json +0 -71
  526. package/node_modules/@epic-web/restore-scroll/README.md +0 -108
  527. package/node_modules/@epic-web/restore-scroll/dist/index.d.ts +0 -7
  528. package/node_modules/@epic-web/restore-scroll/dist/index.js +0 -85
  529. package/node_modules/@epic-web/restore-scroll/package.json +0 -64
  530. package/node_modules/@floating-ui/core/LICENSE +0 -20
  531. package/node_modules/@floating-ui/core/README.md +0 -4
  532. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +0 -1
  533. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +0 -1164
  534. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -521
  535. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +0 -521
  536. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +0 -1036
  537. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1036
  538. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +0 -1183
  539. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +0 -1
  540. package/node_modules/@floating-ui/core/package.json +0 -63
  541. package/node_modules/@floating-ui/dom/LICENSE +0 -20
  542. package/node_modules/@floating-ui/dom/README.md +0 -4
  543. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +0 -1
  544. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +0 -853
  545. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +0 -356
  546. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +0 -356
  547. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +0 -704
  548. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -704
  549. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +0 -872
  550. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +0 -1
  551. package/node_modules/@floating-ui/dom/package.json +0 -71
  552. package/node_modules/@floating-ui/react-dom/LICENSE +0 -20
  553. package/node_modules/@floating-ui/react-dom/README.md +0 -3
  554. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +0 -307
  555. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +0 -307
  556. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +0 -363
  557. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +0 -363
  558. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +0 -414
  559. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.min.js +0 -1
  560. package/node_modules/@floating-ui/react-dom/package.json +0 -77
  561. package/node_modules/@floating-ui/utils/LICENSE +0 -20
  562. package/node_modules/@floating-ui/utils/README.md +0 -4
  563. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -103
  564. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +0 -103
  565. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -45
  566. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +0 -45
  567. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +0 -139
  568. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -139
  569. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +0 -165
  570. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +0 -1
  571. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +0 -138
  572. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -138
  573. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +0 -169
  574. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +0 -1
  575. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +0 -45
  576. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +0 -139
  577. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +0 -165
  578. package/node_modules/@floating-ui/utils/dom/package.json +0 -6
  579. package/node_modules/@floating-ui/utils/package.json +0 -70
  580. package/node_modules/@radix-ui/number/README.md +0 -13
  581. package/node_modules/@radix-ui/number/dist/index.d.mts +0 -3
  582. package/node_modules/@radix-ui/number/dist/index.d.ts +0 -3
  583. package/node_modules/@radix-ui/number/dist/index.js +0 -31
  584. package/node_modules/@radix-ui/number/dist/index.js.map +0 -7
  585. package/node_modules/@radix-ui/number/dist/index.mjs +0 -8
  586. package/node_modules/@radix-ui/number/dist/index.mjs.map +0 -7
  587. package/node_modules/@radix-ui/number/package.json +0 -38
  588. package/node_modules/@radix-ui/primitive/README.md +0 -13
  589. package/node_modules/@radix-ui/primitive/dist/index.d.mts +0 -5
  590. package/node_modules/@radix-ui/primitive/dist/index.d.ts +0 -5
  591. package/node_modules/@radix-ui/primitive/dist/index.js +0 -36
  592. package/node_modules/@radix-ui/primitive/dist/index.js.map +0 -7
  593. package/node_modules/@radix-ui/primitive/dist/index.mjs +0 -13
  594. package/node_modules/@radix-ui/primitive/dist/index.mjs.map +0 -7
  595. package/node_modules/@radix-ui/primitive/package.json +0 -38
  596. package/node_modules/@radix-ui/react-accordion/README.md +0 -13
  597. package/node_modules/@radix-ui/react-accordion/dist/index.d.mts +0 -125
  598. package/node_modules/@radix-ui/react-accordion/dist/index.d.ts +0 -125
  599. package/node_modules/@radix-ui/react-accordion/dist/index.js +0 -350
  600. package/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -7
  601. package/node_modules/@radix-ui/react-accordion/dist/index.mjs +0 -318
  602. package/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +0 -7
  603. package/node_modules/@radix-ui/react-accordion/package.json +0 -63
  604. package/node_modules/@radix-ui/react-arrow/README.md +0 -13
  605. package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +0 -10
  606. package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +0 -10
  607. package/node_modules/@radix-ui/react-arrow/dist/index.js +0 -60
  608. package/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -7
  609. package/node_modules/@radix-ui/react-arrow/dist/index.mjs +0 -27
  610. package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +0 -7
  611. package/node_modules/@radix-ui/react-arrow/package.json +0 -55
  612. package/node_modules/@radix-ui/react-collapsible/README.md +0 -13
  613. package/node_modules/@radix-ui/react-collapsible/dist/index.d.mts +0 -43
  614. package/node_modules/@radix-ui/react-collapsible/dist/index.d.ts +0 -43
  615. package/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -186
  616. package/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -7
  617. package/node_modules/@radix-ui/react-collapsible/dist/index.mjs +0 -154
  618. package/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +0 -7
  619. package/node_modules/@radix-ui/react-collapsible/package.json +0 -62
  620. package/node_modules/@radix-ui/react-collection/README.md +0 -13
  621. package/node_modules/@radix-ui/react-collection/dist/index.d.mts +0 -34
  622. package/node_modules/@radix-ui/react-collection/dist/index.d.ts +0 -34
  623. package/node_modules/@radix-ui/react-collection/dist/index.js +0 -104
  624. package/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -7
  625. package/node_modules/@radix-ui/react-collection/dist/index.mjs +0 -72
  626. package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +0 -7
  627. package/node_modules/@radix-ui/react-collection/package.json +0 -58
  628. package/node_modules/@radix-ui/react-compose-refs/README.md +0 -13
  629. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +0 -15
  630. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +0 -15
  631. package/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -53
  632. package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -7
  633. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +0 -20
  634. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +0 -7
  635. package/node_modules/@radix-ui/react-compose-refs/package.json +0 -47
  636. package/node_modules/@radix-ui/react-context/README.md +0 -13
  637. package/node_modules/@radix-ui/react-context/dist/index.d.mts +0 -28
  638. package/node_modules/@radix-ui/react-context/dist/index.d.ts +0 -28
  639. package/node_modules/@radix-ui/react-context/dist/index.js +0 -114
  640. package/node_modules/@radix-ui/react-context/dist/index.js.map +0 -7
  641. package/node_modules/@radix-ui/react-context/dist/index.mjs +0 -81
  642. package/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -7
  643. package/node_modules/@radix-ui/react-context/package.json +0 -47
  644. package/node_modules/@radix-ui/react-direction/README.md +0 -13
  645. package/node_modules/@radix-ui/react-direction/dist/index.d.mts +0 -12
  646. package/node_modules/@radix-ui/react-direction/dist/index.d.ts +0 -12
  647. package/node_modules/@radix-ui/react-direction/dist/index.js +0 -52
  648. package/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -7
  649. package/node_modules/@radix-ui/react-direction/dist/index.mjs +0 -19
  650. package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +0 -7
  651. package/node_modules/@radix-ui/react-direction/package.json +0 -47
  652. package/node_modules/@radix-ui/react-dismissable-layer/README.md +0 -13
  653. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +0 -51
  654. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +0 -51
  655. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -253
  656. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -7
  657. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +0 -221
  658. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +0 -7
  659. package/node_modules/@radix-ui/react-dismissable-layer/package.json +0 -62
  660. package/node_modules/@radix-ui/react-focus-guards/README.md +0 -13
  661. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +0 -9
  662. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +0 -9
  663. package/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -69
  664. package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -7
  665. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +0 -37
  666. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +0 -7
  667. package/node_modules/@radix-ui/react-focus-guards/package.json +0 -47
  668. package/node_modules/@radix-ui/react-focus-scope/README.md +0 -13
  669. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +0 -32
  670. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +0 -32
  671. package/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -246
  672. package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -7
  673. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +0 -214
  674. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +0 -7
  675. package/node_modules/@radix-ui/react-focus-scope/package.json +0 -57
  676. package/node_modules/@radix-ui/react-id/README.md +0 -13
  677. package/node_modules/@radix-ui/react-id/dist/index.d.mts +0 -3
  678. package/node_modules/@radix-ui/react-id/dist/index.d.ts +0 -3
  679. package/node_modules/@radix-ui/react-id/dist/index.js +0 -49
  680. package/node_modules/@radix-ui/react-id/dist/index.js.map +0 -7
  681. package/node_modules/@radix-ui/react-id/dist/index.mjs +0 -16
  682. package/node_modules/@radix-ui/react-id/dist/index.mjs.map +0 -7
  683. package/node_modules/@radix-ui/react-id/package.json +0 -50
  684. package/node_modules/@radix-ui/react-popover/README.md +0 -13
  685. package/node_modules/@radix-ui/react-popover/dist/index.d.mts +0 -95
  686. package/node_modules/@radix-ui/react-popover/dist/index.d.ts +0 -95
  687. package/node_modules/@radix-ui/react-popover/dist/index.js +0 -350
  688. package/node_modules/@radix-ui/react-popover/dist/index.js.map +0 -7
  689. package/node_modules/@radix-ui/react-popover/dist/index.mjs +0 -318
  690. package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +0 -7
  691. package/node_modules/@radix-ui/react-popover/package.json +0 -69
  692. package/node_modules/@radix-ui/react-popper/README.md +0 -13
  693. package/node_modules/@radix-ui/react-popper/dist/index.d.mts +0 -56
  694. package/node_modules/@radix-ui/react-popper/dist/index.d.ts +0 -56
  695. package/node_modules/@radix-ui/react-popper/dist/index.js +0 -325
  696. package/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -7
  697. package/node_modules/@radix-ui/react-popper/dist/index.mjs +0 -303
  698. package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +0 -7
  699. package/node_modules/@radix-ui/react-popper/package.json +0 -64
  700. package/node_modules/@radix-ui/react-portal/README.md +0 -13
  701. package/node_modules/@radix-ui/react-portal/dist/index.d.mts +0 -14
  702. package/node_modules/@radix-ui/react-portal/dist/index.d.ts +0 -14
  703. package/node_modules/@radix-ui/react-portal/dist/index.js +0 -55
  704. package/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -7
  705. package/node_modules/@radix-ui/react-portal/dist/index.mjs +0 -23
  706. package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +0 -7
  707. package/node_modules/@radix-ui/react-portal/package.json +0 -56
  708. package/node_modules/@radix-ui/react-presence/README.md +0 -13
  709. package/node_modules/@radix-ui/react-presence/dist/index.d.mts +0 -11
  710. package/node_modules/@radix-ui/react-presence/dist/index.d.ts +0 -11
  711. package/node_modules/@radix-ui/react-presence/dist/index.js +0 -158
  712. package/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -7
  713. package/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -126
  714. package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -7
  715. package/node_modules/@radix-ui/react-presence/package.json +0 -56
  716. package/node_modules/@radix-ui/react-primitive/README.md +0 -13
  717. package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +0 -52
  718. package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +0 -52
  719. package/node_modules/@radix-ui/react-primitive/dist/index.js +0 -78
  720. package/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -7
  721. package/node_modules/@radix-ui/react-primitive/dist/index.mjs +0 -45
  722. package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +0 -7
  723. package/node_modules/@radix-ui/react-primitive/package.json +0 -58
  724. package/node_modules/@radix-ui/react-roving-focus/README.md +0 -13
  725. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +0 -55
  726. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +0 -55
  727. package/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -260
  728. package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -7
  729. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +0 -228
  730. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +0 -7
  731. package/node_modules/@radix-ui/react-roving-focus/package.json +0 -63
  732. package/node_modules/@radix-ui/react-select/README.md +0 -13
  733. package/node_modules/@radix-ui/react-select/dist/index.d.mts +0 -144
  734. package/node_modules/@radix-ui/react-select/dist/index.d.ts +0 -144
  735. package/node_modules/@radix-ui/react-select/dist/index.js +0 -1182
  736. package/node_modules/@radix-ui/react-select/dist/index.js.map +0 -7
  737. package/node_modules/@radix-ui/react-select/dist/index.mjs +0 -1150
  738. package/node_modules/@radix-ui/react-select/dist/index.mjs.map +0 -7
  739. package/node_modules/@radix-ui/react-select/package.json +0 -75
  740. package/node_modules/@radix-ui/react-slot/README.md +0 -13
  741. package/node_modules/@radix-ui/react-slot/dist/index.d.mts +0 -13
  742. package/node_modules/@radix-ui/react-slot/dist/index.d.ts +0 -13
  743. package/node_modules/@radix-ui/react-slot/dist/index.js +0 -118
  744. package/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -7
  745. package/node_modules/@radix-ui/react-slot/dist/index.mjs +0 -85
  746. package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +0 -7
  747. package/node_modules/@radix-ui/react-slot/package.json +0 -50
  748. package/node_modules/@radix-ui/react-tabs/README.md +0 -13
  749. package/node_modules/@radix-ui/react-tabs/dist/index.d.mts +0 -66
  750. package/node_modules/@radix-ui/react-tabs/dist/index.d.ts +0 -66
  751. package/node_modules/@radix-ui/react-tabs/dist/index.js +0 -231
  752. package/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -7
  753. package/node_modules/@radix-ui/react-tabs/dist/index.mjs +0 -199
  754. package/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +0 -7
  755. package/node_modules/@radix-ui/react-tabs/package.json +0 -62
  756. package/node_modules/@radix-ui/react-toast/README.md +0 -13
  757. package/node_modules/@radix-ui/react-toast/dist/index.d.mts +0 -130
  758. package/node_modules/@radix-ui/react-toast/dist/index.d.ts +0 -130
  759. package/node_modules/@radix-ui/react-toast/dist/index.js +0 -681
  760. package/node_modules/@radix-ui/react-toast/dist/index.js.map +0 -7
  761. package/node_modules/@radix-ui/react-toast/dist/index.mjs +0 -649
  762. package/node_modules/@radix-ui/react-toast/dist/index.mjs.map +0 -7
  763. package/node_modules/@radix-ui/react-toast/package.json +0 -66
  764. package/node_modules/@radix-ui/react-use-callback-ref/README.md +0 -13
  765. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +0 -7
  766. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +0 -7
  767. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -46
  768. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -7
  769. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +0 -13
  770. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +0 -7
  771. package/node_modules/@radix-ui/react-use-callback-ref/package.json +0 -47
  772. package/node_modules/@radix-ui/react-use-controllable-state/README.md +0 -13
  773. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +0 -10
  774. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +0 -10
  775. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -80
  776. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -7
  777. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +0 -47
  778. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +0 -7
  779. package/node_modules/@radix-ui/react-use-controllable-state/package.json +0 -50
  780. package/node_modules/@radix-ui/react-use-escape-keydown/README.md +0 -13
  781. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +0 -6
  782. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +0 -6
  783. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -52
  784. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -7
  785. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +0 -19
  786. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +0 -7
  787. package/node_modules/@radix-ui/react-use-escape-keydown/package.json +0 -50
  788. package/node_modules/@radix-ui/react-use-layout-effect/README.md +0 -13
  789. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +0 -12
  790. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +0 -12
  791. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -41
  792. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -7
  793. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +0 -8
  794. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +0 -7
  795. package/node_modules/@radix-ui/react-use-layout-effect/package.json +0 -47
  796. package/node_modules/@radix-ui/react-use-previous/README.md +0 -13
  797. package/node_modules/@radix-ui/react-use-previous/dist/index.d.mts +0 -3
  798. package/node_modules/@radix-ui/react-use-previous/dist/index.d.ts +0 -3
  799. package/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -49
  800. package/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -7
  801. package/node_modules/@radix-ui/react-use-previous/dist/index.mjs +0 -16
  802. package/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +0 -7
  803. package/node_modules/@radix-ui/react-use-previous/package.json +0 -47
  804. package/node_modules/@radix-ui/react-use-rect/README.md +0 -13
  805. package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +0 -9
  806. package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +0 -9
  807. package/node_modules/@radix-ui/react-use-rect/dist/index.js +0 -54
  808. package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +0 -7
  809. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +0 -21
  810. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +0 -7
  811. package/node_modules/@radix-ui/react-use-rect/package.json +0 -50
  812. package/node_modules/@radix-ui/react-use-size/README.md +0 -13
  813. package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +0 -6
  814. package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +0 -6
  815. package/node_modules/@radix-ui/react-use-size/dist/index.js +0 -74
  816. package/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -7
  817. package/node_modules/@radix-ui/react-use-size/dist/index.mjs +0 -41
  818. package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +0 -7
  819. package/node_modules/@radix-ui/react-use-size/package.json +0 -53
  820. package/node_modules/@radix-ui/react-visually-hidden/README.md +0 -13
  821. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +0 -10
  822. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +0 -10
  823. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -70
  824. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -7
  825. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +0 -37
  826. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +0 -7
  827. package/node_modules/@radix-ui/react-visually-hidden/package.json +0 -55
  828. package/node_modules/@radix-ui/rect/README.md +0 -13
  829. package/node_modules/@radix-ui/rect/dist/index.d.mts +0 -16
  830. package/node_modules/@radix-ui/rect/dist/index.d.ts +0 -16
  831. package/node_modules/@radix-ui/rect/dist/index.js +0 -73
  832. package/node_modules/@radix-ui/rect/dist/index.js.map +0 -7
  833. package/node_modules/@radix-ui/rect/dist/index.mjs +0 -50
  834. package/node_modules/@radix-ui/rect/dist/index.mjs.map +0 -7
  835. package/node_modules/@radix-ui/rect/package.json +0 -38
  836. package/node_modules/@remix-run/react/CHANGELOG.md +0 -964
  837. package/node_modules/@remix-run/react/LICENSE.md +0 -22
  838. package/node_modules/@remix-run/react/README.md +0 -13
  839. package/node_modules/@remix-run/react/dist/_virtual/_rollupPluginBabelHelpers.js +0 -30
  840. package/node_modules/@remix-run/react/dist/browser.d.ts +0 -37
  841. package/node_modules/@remix-run/react/dist/browser.js +0 -268
  842. package/node_modules/@remix-run/react/dist/components.d.ts +0 -137
  843. package/node_modules/@remix-run/react/dist/components.js +0 -911
  844. package/node_modules/@remix-run/react/dist/data.d.ts +0 -15
  845. package/node_modules/@remix-run/react/dist/data.js +0 -280
  846. package/node_modules/@remix-run/react/dist/entry.d.ts +0 -51
  847. package/node_modules/@remix-run/react/dist/errorBoundaries.d.ts +0 -36
  848. package/node_modules/@remix-run/react/dist/errorBoundaries.js +0 -186
  849. package/node_modules/@remix-run/react/dist/errors.d.ts +0 -2
  850. package/node_modules/@remix-run/react/dist/errors.js +0 -53
  851. package/node_modules/@remix-run/react/dist/esm/_virtual/_rollupPluginBabelHelpers.js +0 -26
  852. package/node_modules/@remix-run/react/dist/esm/browser.js +0 -308
  853. package/node_modules/@remix-run/react/dist/esm/components.js +0 -878
  854. package/node_modules/@remix-run/react/dist/esm/data.js +0 -267
  855. package/node_modules/@remix-run/react/dist/esm/errorBoundaries.js +0 -160
  856. package/node_modules/@remix-run/react/dist/esm/errors.js +0 -49
  857. package/node_modules/@remix-run/react/dist/esm/fallback.js +0 -35
  858. package/node_modules/@remix-run/react/dist/esm/fog-of-war.js +0 -226
  859. package/node_modules/@remix-run/react/dist/esm/index.js +0 -17
  860. package/node_modules/@remix-run/react/dist/esm/invariant.js +0 -17
  861. package/node_modules/@remix-run/react/dist/esm/links.js +0 -258
  862. package/node_modules/@remix-run/react/dist/esm/markup.js +0 -34
  863. package/node_modules/@remix-run/react/dist/esm/routeModules.js +0 -89
  864. package/node_modules/@remix-run/react/dist/esm/routes.js +0 -411
  865. package/node_modules/@remix-run/react/dist/esm/scroll-restoration.js +0 -84
  866. package/node_modules/@remix-run/react/dist/esm/server.js +0 -93
  867. package/node_modules/@remix-run/react/dist/esm/single-fetch.js +0 -309
  868. package/node_modules/@remix-run/react/dist/fallback.d.ts +0 -2
  869. package/node_modules/@remix-run/react/dist/fallback.js +0 -59
  870. package/node_modules/@remix-run/react/dist/fog-of-war.d.ts +0 -37
  871. package/node_modules/@remix-run/react/dist/fog-of-war.js +0 -254
  872. package/node_modules/@remix-run/react/dist/index.d.ts +0 -16
  873. package/node_modules/@remix-run/react/dist/index.js +0 -227
  874. package/node_modules/@remix-run/react/dist/invariant.d.ts +0 -2
  875. package/node_modules/@remix-run/react/dist/invariant.js +0 -19
  876. package/node_modules/@remix-run/react/dist/links.d.ts +0 -128
  877. package/node_modules/@remix-run/react/dist/links.js +0 -268
  878. package/node_modules/@remix-run/react/dist/markup.d.ts +0 -5
  879. package/node_modules/@remix-run/react/dist/markup.js +0 -39
  880. package/node_modules/@remix-run/react/dist/routeModules.d.ts +0 -132
  881. package/node_modules/@remix-run/react/dist/routeModules.js +0 -111
  882. package/node_modules/@remix-run/react/dist/routes.d.ts +0 -32
  883. package/node_modules/@remix-run/react/dist/routes.js +0 -438
  884. package/node_modules/@remix-run/react/dist/scroll-restoration.d.ts +0 -12
  885. package/node_modules/@remix-run/react/dist/scroll-restoration.js +0 -108
  886. package/node_modules/@remix-run/react/dist/server.d.ts +0 -14
  887. package/node_modules/@remix-run/react/dist/server.js +0 -117
  888. package/node_modules/@remix-run/react/dist/single-fetch.d.ts +0 -34
  889. package/node_modules/@remix-run/react/dist/single-fetch.js +0 -339
  890. package/node_modules/@remix-run/react/dist/warnings.d.ts +0 -1
  891. package/node_modules/@remix-run/react/future/single-fetch.d.ts +0 -73
  892. package/node_modules/@remix-run/react/package.json +0 -59
  893. package/node_modules/@remix-run/router/CHANGELOG.md +0 -747
  894. package/node_modules/@remix-run/router/LICENSE.md +0 -23
  895. package/node_modules/@remix-run/router/README.md +0 -135
  896. package/node_modules/@remix-run/router/dist/history.d.ts +0 -250
  897. package/node_modules/@remix-run/router/dist/index.d.ts +0 -9
  898. package/node_modules/@remix-run/router/dist/router.cjs.js +0 -5407
  899. package/node_modules/@remix-run/router/dist/router.cjs.js.map +0 -1
  900. package/node_modules/@remix-run/router/dist/router.d.ts +0 -523
  901. package/node_modules/@remix-run/router/dist/router.js +0 -4856
  902. package/node_modules/@remix-run/router/dist/router.js.map +0 -1
  903. package/node_modules/@remix-run/router/dist/router.umd.js +0 -5413
  904. package/node_modules/@remix-run/router/dist/router.umd.js.map +0 -1
  905. package/node_modules/@remix-run/router/dist/router.umd.min.js +0 -12
  906. package/node_modules/@remix-run/router/dist/router.umd.min.js.map +0 -1
  907. package/node_modules/@remix-run/router/dist/utils.d.ts +0 -528
  908. package/node_modules/@remix-run/router/history.ts +0 -746
  909. package/node_modules/@remix-run/router/index.ts +0 -101
  910. package/node_modules/@remix-run/router/package.json +0 -33
  911. package/node_modules/@remix-run/router/router.ts +0 -5760
  912. package/node_modules/@remix-run/router/utils.ts +0 -1673
  913. package/node_modules/@remix-run/server-runtime/CHANGELOG.md +0 -1023
  914. package/node_modules/@remix-run/server-runtime/LICENSE.md +0 -22
  915. package/node_modules/@remix-run/server-runtime/README.md +0 -26
  916. package/node_modules/@remix-run/server-runtime/dist/build.d.ts +0 -39
  917. package/node_modules/@remix-run/server-runtime/dist/cookies.d.ts +0 -69
  918. package/node_modules/@remix-run/server-runtime/dist/cookies.js +0 -173
  919. package/node_modules/@remix-run/server-runtime/dist/crypto.d.ts +0 -2
  920. package/node_modules/@remix-run/server-runtime/dist/data.d.ts +0 -33
  921. package/node_modules/@remix-run/server-runtime/dist/data.js +0 -138
  922. package/node_modules/@remix-run/server-runtime/dist/deprecations.d.ts +0 -1
  923. package/node_modules/@remix-run/server-runtime/dist/deprecations.js +0 -19
  924. package/node_modules/@remix-run/server-runtime/dist/dev.d.ts +0 -10
  925. package/node_modules/@remix-run/server-runtime/dist/dev.js +0 -53
  926. package/node_modules/@remix-run/server-runtime/dist/entry.d.ts +0 -43
  927. package/node_modules/@remix-run/server-runtime/dist/entry.js +0 -22
  928. package/node_modules/@remix-run/server-runtime/dist/errors.d.ts +0 -51
  929. package/node_modules/@remix-run/server-runtime/dist/errors.js +0 -122
  930. package/node_modules/@remix-run/server-runtime/dist/esm/cookies.js +0 -168
  931. package/node_modules/@remix-run/server-runtime/dist/esm/data.js +0 -133
  932. package/node_modules/@remix-run/server-runtime/dist/esm/deprecations.js +0 -15
  933. package/node_modules/@remix-run/server-runtime/dist/esm/dev.js +0 -46
  934. package/node_modules/@remix-run/server-runtime/dist/esm/entry.js +0 -18
  935. package/node_modules/@remix-run/server-runtime/dist/esm/errors.js +0 -115
  936. package/node_modules/@remix-run/server-runtime/dist/esm/formData.js +0 -55
  937. package/node_modules/@remix-run/server-runtime/dist/esm/headers.js +0 -90
  938. package/node_modules/@remix-run/server-runtime/dist/esm/index.js +0 -21
  939. package/node_modules/@remix-run/server-runtime/dist/esm/invariant.js +0 -18
  940. package/node_modules/@remix-run/server-runtime/dist/esm/markup.js +0 -29
  941. package/node_modules/@remix-run/server-runtime/dist/esm/mode.js +0 -24
  942. package/node_modules/@remix-run/server-runtime/dist/esm/responses.js +0 -123
  943. package/node_modules/@remix-run/server-runtime/dist/esm/routeMatching.js +0 -23
  944. package/node_modules/@remix-run/server-runtime/dist/esm/routes.js +0 -81
  945. package/node_modules/@remix-run/server-runtime/dist/esm/server.js +0 -524
  946. package/node_modules/@remix-run/server-runtime/dist/esm/serverHandoff.js +0 -20
  947. package/node_modules/@remix-run/server-runtime/dist/esm/sessions/cookieStorage.js +0 -51
  948. package/node_modules/@remix-run/server-runtime/dist/esm/sessions/memoryStorage.js +0 -61
  949. package/node_modules/@remix-run/server-runtime/dist/esm/sessions.js +0 -145
  950. package/node_modules/@remix-run/server-runtime/dist/esm/single-fetch.js +0 -450
  951. package/node_modules/@remix-run/server-runtime/dist/esm/upload/errors.js +0 -19
  952. package/node_modules/@remix-run/server-runtime/dist/esm/upload/memoryUploadHandler.js +0 -50
  953. package/node_modules/@remix-run/server-runtime/dist/esm/warnings.js +0 -19
  954. package/node_modules/@remix-run/server-runtime/dist/formData.d.ts +0 -15
  955. package/node_modules/@remix-run/server-runtime/dist/formData.js +0 -60
  956. package/node_modules/@remix-run/server-runtime/dist/headers.d.ts +0 -3
  957. package/node_modules/@remix-run/server-runtime/dist/headers.js +0 -94
  958. package/node_modules/@remix-run/server-runtime/dist/index.d.ts +0 -14
  959. package/node_modules/@remix-run/server-runtime/dist/index.js +0 -50
  960. package/node_modules/@remix-run/server-runtime/dist/interface.d.ts +0 -6
  961. package/node_modules/@remix-run/server-runtime/dist/invariant.d.ts +0 -2
  962. package/node_modules/@remix-run/server-runtime/dist/invariant.js +0 -22
  963. package/node_modules/@remix-run/server-runtime/dist/jsonify.d.ts +0 -33
  964. package/node_modules/@remix-run/server-runtime/dist/links.d.ts +0 -104
  965. package/node_modules/@remix-run/server-runtime/dist/markup.d.ts +0 -1
  966. package/node_modules/@remix-run/server-runtime/dist/markup.js +0 -33
  967. package/node_modules/@remix-run/server-runtime/dist/mode.d.ts +0 -9
  968. package/node_modules/@remix-run/server-runtime/dist/mode.js +0 -29
  969. package/node_modules/@remix-run/server-runtime/dist/reexport.d.ts +0 -14
  970. package/node_modules/@remix-run/server-runtime/dist/responses.d.ts +0 -47
  971. package/node_modules/@remix-run/server-runtime/dist/responses.js +0 -135
  972. package/node_modules/@remix-run/server-runtime/dist/routeMatching.d.ts +0 -8
  973. package/node_modules/@remix-run/server-runtime/dist/routeMatching.js +0 -27
  974. package/node_modules/@remix-run/server-runtime/dist/routeModules.d.ts +0 -214
  975. package/node_modules/@remix-run/server-runtime/dist/routes.d.ts +0 -31
  976. package/node_modules/@remix-run/server-runtime/dist/routes.js +0 -86
  977. package/node_modules/@remix-run/server-runtime/dist/serialize.d.ts +0 -25
  978. package/node_modules/@remix-run/server-runtime/dist/server.d.ts +0 -5
  979. package/node_modules/@remix-run/server-runtime/dist/server.js +0 -528
  980. package/node_modules/@remix-run/server-runtime/dist/serverHandoff.d.ts +0 -12
  981. package/node_modules/@remix-run/server-runtime/dist/serverHandoff.js +0 -24
  982. package/node_modules/@remix-run/server-runtime/dist/sessions/cookieStorage.d.ts +0 -23
  983. package/node_modules/@remix-run/server-runtime/dist/sessions/cookieStorage.js +0 -55
  984. package/node_modules/@remix-run/server-runtime/dist/sessions/memoryStorage.d.ts +0 -20
  985. package/node_modules/@remix-run/server-runtime/dist/sessions/memoryStorage.js +0 -65
  986. package/node_modules/@remix-run/server-runtime/dist/sessions.d.ts +0 -143
  987. package/node_modules/@remix-run/server-runtime/dist/sessions.js +0 -152
  988. package/node_modules/@remix-run/server-runtime/dist/single-fetch.d.ts +0 -90
  989. package/node_modules/@remix-run/server-runtime/dist/single-fetch.js +0 -468
  990. package/node_modules/@remix-run/server-runtime/dist/typecheck.d.ts +0 -4
  991. package/node_modules/@remix-run/server-runtime/dist/upload/errors.d.ts +0 -5
  992. package/node_modules/@remix-run/server-runtime/dist/upload/errors.js +0 -23
  993. package/node_modules/@remix-run/server-runtime/dist/upload/memoryUploadHandler.d.ts +0 -21
  994. package/node_modules/@remix-run/server-runtime/dist/upload/memoryUploadHandler.js +0 -54
  995. package/node_modules/@remix-run/server-runtime/dist/warnings.d.ts +0 -1
  996. package/node_modules/@remix-run/server-runtime/dist/warnings.js +0 -23
  997. package/node_modules/@remix-run/server-runtime/package.json +0 -51
  998. package/node_modules/@types/cookie/LICENSE +0 -21
  999. package/node_modules/@types/cookie/README.md +0 -15
  1000. package/node_modules/@types/cookie/index.d.ts +0 -154
  1001. package/node_modules/@types/cookie/package.json +0 -30
  1002. package/node_modules/@web3-storage/multipart-parser/README.md +0 -37
  1003. package/node_modules/@web3-storage/multipart-parser/cjs/src/index.js +0 -218
  1004. package/node_modules/@web3-storage/multipart-parser/cjs/src/search.js +0 -269
  1005. package/node_modules/@web3-storage/multipart-parser/cjs/src/utils.js +0 -37
  1006. package/node_modules/@web3-storage/multipart-parser/esm/package.json +0 -4
  1007. package/node_modules/@web3-storage/multipart-parser/esm/src/index.js +0 -219
  1008. package/node_modules/@web3-storage/multipart-parser/esm/src/search.js +0 -269
  1009. package/node_modules/@web3-storage/multipart-parser/esm/src/utils.js +0 -28
  1010. package/node_modules/@web3-storage/multipart-parser/index.js +0 -1
  1011. package/node_modules/@web3-storage/multipart-parser/package.json +0 -44
  1012. package/node_modules/@web3-storage/multipart-parser/src/index.js +0 -257
  1013. package/node_modules/@web3-storage/multipart-parser/src/search.js +0 -329
  1014. package/node_modules/@web3-storage/multipart-parser/src/utils.js +0 -43
  1015. package/node_modules/@web3-storage/multipart-parser/test/test.spec.js +0 -65
  1016. package/node_modules/@web3-storage/multipart-parser/tsconfig.json +0 -41
  1017. package/node_modules/@web3-storage/multipart-parser/types/index.d.ts +0 -15
  1018. package/node_modules/@web3-storage/multipart-parser/types/index.d.ts.map +0 -1
  1019. package/node_modules/@web3-storage/multipart-parser/types/search.d.ts +0 -36
  1020. package/node_modules/@web3-storage/multipart-parser/types/search.d.ts.map +0 -1
  1021. package/node_modules/@web3-storage/multipart-parser/types/utils.d.ts +0 -18
  1022. package/node_modules/@web3-storage/multipart-parser/types/utils.d.ts.map +0 -1
  1023. package/node_modules/aria-hidden/LICENSE +0 -21
  1024. package/node_modules/aria-hidden/README.md +0 -99
  1025. package/node_modules/aria-hidden/dist/es2015/index.d.ts +0 -29
  1026. package/node_modules/aria-hidden/dist/es2015/index.js +0 -166
  1027. package/node_modules/aria-hidden/dist/es2019/index.d.ts +0 -29
  1028. package/node_modules/aria-hidden/dist/es2019/index.js +0 -155
  1029. package/node_modules/aria-hidden/dist/es5/index.d.ts +0 -29
  1030. package/node_modules/aria-hidden/dist/es5/index.js +0 -173
  1031. package/node_modules/aria-hidden/package.json +0 -70
  1032. package/node_modules/assertion-error/LICENSE +0 -21
  1033. package/node_modules/assertion-error/README.md +0 -68
  1034. package/node_modules/assertion-error/index.d.ts +0 -27
  1035. package/node_modules/assertion-error/index.js +0 -60
  1036. package/node_modules/assertion-error/package.json +0 -32
  1037. package/node_modules/chai/CODEOWNERS +0 -1
  1038. package/node_modules/chai/CODE_OF_CONDUCT.md +0 -58
  1039. package/node_modules/chai/CONTRIBUTING.md +0 -218
  1040. package/node_modules/chai/History.md +0 -1059
  1041. package/node_modules/chai/LICENSE +0 -21
  1042. package/node_modules/chai/README.md +0 -154
  1043. package/node_modules/chai/ReleaseNotes.md +0 -737
  1044. package/node_modules/chai/chai.js +0 -4018
  1045. package/node_modules/chai/eslint.config.js +0 -12
  1046. package/node_modules/chai/index.js +0 -1
  1047. package/node_modules/chai/lib/chai/assertion.js +0 -164
  1048. package/node_modules/chai/lib/chai/config.js +0 -114
  1049. package/node_modules/chai/lib/chai/core/assertions.js +0 -3933
  1050. package/node_modules/chai/lib/chai/interface/assert.js +0 -3012
  1051. package/node_modules/chai/lib/chai/interface/expect.js +0 -55
  1052. package/node_modules/chai/lib/chai/interface/should.js +0 -221
  1053. package/node_modules/chai/lib/chai/utils/addChainableMethod.js +0 -147
  1054. package/node_modules/chai/lib/chai/utils/addLengthGuard.js +0 -60
  1055. package/node_modules/chai/lib/chai/utils/addMethod.js +0 -67
  1056. package/node_modules/chai/lib/chai/utils/addProperty.js +0 -71
  1057. package/node_modules/chai/lib/chai/utils/compareByInspect.js +0 -26
  1058. package/node_modules/chai/lib/chai/utils/expectTypes.js +0 -50
  1059. package/node_modules/chai/lib/chai/utils/flag.js +0 -33
  1060. package/node_modules/chai/lib/chai/utils/getActual.js +0 -20
  1061. package/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +0 -25
  1062. package/node_modules/chai/lib/chai/utils/getMessage.js +0 -46
  1063. package/node_modules/chai/lib/chai/utils/getOperator.js +0 -58
  1064. package/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js +0 -24
  1065. package/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js +0 -26
  1066. package/node_modules/chai/lib/chai/utils/getProperties.js +0 -38
  1067. package/node_modules/chai/lib/chai/utils/index.js +0 -107
  1068. package/node_modules/chai/lib/chai/utils/inspect.js +0 -31
  1069. package/node_modules/chai/lib/chai/utils/isNaN.js +0 -26
  1070. package/node_modules/chai/lib/chai/utils/isProxyEnabled.js +0 -24
  1071. package/node_modules/chai/lib/chai/utils/objDisplay.js +0 -46
  1072. package/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +0 -68
  1073. package/node_modules/chai/lib/chai/utils/overwriteMethod.js +0 -91
  1074. package/node_modules/chai/lib/chai/utils/overwriteProperty.js +0 -90
  1075. package/node_modules/chai/lib/chai/utils/proxify.js +0 -147
  1076. package/node_modules/chai/lib/chai/utils/test.js +0 -24
  1077. package/node_modules/chai/lib/chai/utils/transferFlags.js +0 -43
  1078. package/node_modules/chai/lib/chai/utils/type-detect.js +0 -20
  1079. package/node_modules/chai/lib/chai.js +0 -65
  1080. package/node_modules/chai/package.json +0 -61
  1081. package/node_modules/chai/register-assert.cjs +0 -3
  1082. package/node_modules/chai/register-assert.js +0 -3
  1083. package/node_modules/chai/register-expect.cjs +0 -3
  1084. package/node_modules/chai/register-expect.js +0 -3
  1085. package/node_modules/chai/register-should.cjs +0 -3
  1086. package/node_modules/chai/register-should.js +0 -3
  1087. package/node_modules/chai/web-test-runner.config.js +0 -20
  1088. package/node_modules/chai-dom/.eslintrc +0 -22
  1089. package/node_modules/chai-dom/.travis.yml +0 -15
  1090. package/node_modules/chai-dom/LICENSE +0 -24
  1091. package/node_modules/chai-dom/README.md +0 -267
  1092. package/node_modules/chai-dom/bower.json +0 -31
  1093. package/node_modules/chai-dom/chai-dom.js +0 -429
  1094. package/node_modules/chai-dom/package.json +0 -44
  1095. package/node_modules/chai-dom/test/.eslintrc +0 -12
  1096. package/node_modules/chai-dom/test/index.html +0 -27
  1097. package/node_modules/chai-dom/test/tests.js +0 -1124
  1098. package/node_modules/chai-dom/testem.js +0 -31
  1099. package/node_modules/check-error/LICENSE +0 -19
  1100. package/node_modules/check-error/README.md +0 -144
  1101. package/node_modules/check-error/index.js +0 -135
  1102. package/node_modules/check-error/package.json +0 -66
  1103. package/node_modules/clsx/clsx.d.mts +0 -6
  1104. package/node_modules/clsx/clsx.d.ts +0 -10
  1105. package/node_modules/clsx/dist/clsx.js +0 -1
  1106. package/node_modules/clsx/dist/clsx.min.js +0 -1
  1107. package/node_modules/clsx/dist/clsx.mjs +0 -1
  1108. package/node_modules/clsx/dist/lite.js +0 -1
  1109. package/node_modules/clsx/dist/lite.mjs +0 -1
  1110. package/node_modules/clsx/license +0 -9
  1111. package/node_modules/clsx/package.json +0 -60
  1112. package/node_modules/clsx/readme.md +0 -154
  1113. package/node_modules/cookie/HISTORY.md +0 -147
  1114. package/node_modules/cookie/LICENSE +0 -24
  1115. package/node_modules/cookie/README.md +0 -317
  1116. package/node_modules/cookie/SECURITY.md +0 -25
  1117. package/node_modules/cookie/index.js +0 -274
  1118. package/node_modules/cookie/package.json +0 -44
  1119. package/node_modules/deep-eql/LICENSE +0 -19
  1120. package/node_modules/deep-eql/README.md +0 -93
  1121. package/node_modules/deep-eql/index.js +0 -513
  1122. package/node_modules/deep-eql/package.json +0 -73
  1123. package/node_modules/detect-node-es/LICENSE +0 -21
  1124. package/node_modules/detect-node-es/Readme.md +0 -39
  1125. package/node_modules/detect-node-es/es5/browser.js +0 -2
  1126. package/node_modules/detect-node-es/es5/node.d.ts +0 -4
  1127. package/node_modules/detect-node-es/es5/node.js +0 -2
  1128. package/node_modules/detect-node-es/esm/browser.js +0 -2
  1129. package/node_modules/detect-node-es/esm/node.js +0 -2
  1130. package/node_modules/detect-node-es/package.json +0 -29
  1131. package/node_modules/framer-motion/LICENSE.md +0 -21
  1132. package/node_modules/framer-motion/README.md +0 -105
  1133. package/node_modules/framer-motion/dist/cjs/dom-entry-GDJJhIpT.js +0 -5959
  1134. package/node_modules/framer-motion/dist/cjs/dom-entry.js +0 -53
  1135. package/node_modules/framer-motion/dist/cjs/index.js +0 -6566
  1136. package/node_modules/framer-motion/dist/dom-entry.d.ts +0 -964
  1137. package/node_modules/framer-motion/dist/dom.js +0 -1
  1138. package/node_modules/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +0 -80
  1139. package/node_modules/framer-motion/dist/es/animation/animate.mjs +0 -83
  1140. package/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -295
  1141. package/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -84
  1142. package/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -382
  1143. package/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -17
  1144. package/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +0 -40
  1145. package/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs +0 -40
  1146. package/node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -23
  1147. package/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -12
  1148. package/node_modules/framer-motion/dist/es/animation/generators/inertia.mjs +0 -87
  1149. package/node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -51
  1150. package/node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs +0 -89
  1151. package/node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs +0 -131
  1152. package/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +0 -17
  1153. package/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -9
  1154. package/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs +0 -80
  1155. package/node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs +0 -17
  1156. package/node_modules/framer-motion/dist/es/animation/hooks/use-animated-state.mjs +0 -62
  1157. package/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs +0 -41
  1158. package/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs +0 -112
  1159. package/node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs +0 -11
  1160. package/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +0 -80
  1161. package/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs +0 -66
  1162. package/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs +0 -29
  1163. package/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -6
  1164. package/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -7
  1165. package/node_modules/framer-motion/dist/es/animation/optimized-appear/handoff.mjs +0 -83
  1166. package/node_modules/framer-motion/dist/es/animation/optimized-appear/start.mjs +0 -80
  1167. package/node_modules/framer-motion/dist/es/animation/optimized-appear/store-id.mjs +0 -3
  1168. package/node_modules/framer-motion/dist/es/animation/optimized-appear/store.mjs +0 -3
  1169. package/node_modules/framer-motion/dist/es/animation/sequence/create.mjs +0 -230
  1170. package/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -21
  1171. package/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -31
  1172. package/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -14
  1173. package/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -32
  1174. package/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -40
  1175. package/node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -30
  1176. package/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -7
  1177. package/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -5
  1178. package/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -5
  1179. package/node_modules/framer-motion/dist/es/animation/utils/is-none.mjs +0 -15
  1180. package/node_modules/framer-motion/dist/es/animation/utils/stagger.mjs +0 -26
  1181. package/node_modules/framer-motion/dist/es/animation/utils/transitions.mjs +0 -15
  1182. package/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs +0 -76
  1183. package/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs +0 -57
  1184. package/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs +0 -169
  1185. package/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs +0 -66
  1186. package/node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs +0 -15
  1187. package/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs +0 -31
  1188. package/node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs +0 -67
  1189. package/node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs +0 -43
  1190. package/node_modules/framer-motion/dist/es/components/Reorder/Group.mjs +0 -52
  1191. package/node_modules/framer-motion/dist/es/components/Reorder/Item.mjs +0 -33
  1192. package/node_modules/framer-motion/dist/es/components/Reorder/index.mjs +0 -9
  1193. package/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs +0 -24
  1194. package/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs +0 -10
  1195. package/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs +0 -5
  1196. package/node_modules/framer-motion/dist/es/context/LazyContext.mjs +0 -5
  1197. package/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs +0 -12
  1198. package/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs +0 -13
  1199. package/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs +0 -5
  1200. package/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs +0 -17
  1201. package/node_modules/framer-motion/dist/es/context/PresenceContext.mjs +0 -8
  1202. package/node_modules/framer-motion/dist/es/context/ReorderContext.mjs +0 -5
  1203. package/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs +0 -8
  1204. package/node_modules/framer-motion/dist/es/debug/record.mjs +0 -7
  1205. package/node_modules/framer-motion/dist/es/dom-entry.mjs +0 -25
  1206. package/node_modules/framer-motion/dist/es/easing/anticipate.mjs +0 -5
  1207. package/node_modules/framer-motion/dist/es/easing/back.mjs +0 -9
  1208. package/node_modules/framer-motion/dist/es/easing/circ.mjs +0 -8
  1209. package/node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs +0 -51
  1210. package/node_modules/framer-motion/dist/es/easing/ease.mjs +0 -7
  1211. package/node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -5
  1212. package/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -5
  1213. package/node_modules/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +0 -18
  1214. package/node_modules/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -8
  1215. package/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +0 -3
  1216. package/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -5
  1217. package/node_modules/framer-motion/dist/es/easing/utils/map.mjs +0 -37
  1218. package/node_modules/framer-motion/dist/es/events/add-dom-event.mjs +0 -6
  1219. package/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs +0 -8
  1220. package/node_modules/framer-motion/dist/es/events/event-info.mjs +0 -15
  1221. package/node_modules/framer-motion/dist/es/events/use-dom-event.mjs +0 -34
  1222. package/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs +0 -18
  1223. package/node_modules/framer-motion/dist/es/frameloop/batcher.mjs +0 -65
  1224. package/node_modules/framer-motion/dist/es/frameloop/frame.mjs +0 -6
  1225. package/node_modules/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -20
  1226. package/node_modules/framer-motion/dist/es/frameloop/microtask.mjs +0 -5
  1227. package/node_modules/framer-motion/dist/es/frameloop/render-step.mjs +0 -104
  1228. package/node_modules/framer-motion/dist/es/frameloop/sync-time.mjs +0 -31
  1229. package/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +0 -484
  1230. package/node_modules/framer-motion/dist/es/gestures/drag/index.mjs +0 -27
  1231. package/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs +0 -88
  1232. package/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs +0 -129
  1233. package/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs +0 -53
  1234. package/node_modules/framer-motion/dist/es/gestures/focus.mjs +0 -41
  1235. package/node_modules/framer-motion/dist/es/gestures/hover.mjs +0 -33
  1236. package/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs +0 -156
  1237. package/node_modules/framer-motion/dist/es/gestures/pan/index.mjs +0 -50
  1238. package/node_modules/framer-motion/dist/es/gestures/press.mjs +0 -130
  1239. package/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs +0 -20
  1240. package/node_modules/framer-motion/dist/es/index.mjs +0 -101
  1241. package/node_modules/framer-motion/dist/es/motion/features/Feature.mjs +0 -9
  1242. package/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs +0 -31
  1243. package/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs +0 -41
  1244. package/node_modules/framer-motion/dist/es/motion/features/animations.mjs +0 -13
  1245. package/node_modules/framer-motion/dist/es/motion/features/definitions.mjs +0 -28
  1246. package/node_modules/framer-motion/dist/es/motion/features/drag.mjs +0 -17
  1247. package/node_modules/framer-motion/dist/es/motion/features/gestures.mjs +0 -21
  1248. package/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +0 -133
  1249. package/node_modules/framer-motion/dist/es/motion/features/layout.mjs +0 -11
  1250. package/node_modules/framer-motion/dist/es/motion/features/load-features.mjs +0 -12
  1251. package/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs +0 -72
  1252. package/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs +0 -49
  1253. package/node_modules/framer-motion/dist/es/motion/index.mjs +0 -97
  1254. package/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -11
  1255. package/node_modules/framer-motion/dist/es/motion/utils/is-motion-component.mjs +0 -12
  1256. package/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs +0 -3
  1257. package/node_modules/framer-motion/dist/es/motion/utils/unwrap-motion-component.mjs +0 -17
  1258. package/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +0 -36
  1259. package/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs +0 -127
  1260. package/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs +0 -81
  1261. package/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs +0 -57
  1262. package/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs +0 -93
  1263. package/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -33
  1264. package/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs +0 -20
  1265. package/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -122
  1266. package/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -41
  1267. package/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -54
  1268. package/node_modules/framer-motion/dist/es/projection/geometry/models.mjs +0 -17
  1269. package/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs +0 -25
  1270. package/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -13
  1271. package/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -27
  1272. package/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs +0 -1562
  1273. package/node_modules/framer-motion/dist/es/projection/node/group.mjs +0 -24
  1274. package/node_modules/framer-motion/dist/es/projection/node/state.mjs +0 -19
  1275. package/node_modules/framer-motion/dist/es/projection/shared/stack.mjs +0 -112
  1276. package/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -41
  1277. package/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -35
  1278. package/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -6
  1279. package/node_modules/framer-motion/dist/es/projection/styles/transform.mjs +0 -49
  1280. package/node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs +0 -14
  1281. package/node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs +0 -14
  1282. package/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -5
  1283. package/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -26
  1284. package/node_modules/framer-motion/dist/es/projection/utils/measure.mjs +0 -17
  1285. package/node_modules/framer-motion/dist/es/projection-entry.mjs +0 -11
  1286. package/node_modules/framer-motion/dist/es/render/VisualElement.mjs +0 -496
  1287. package/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -130
  1288. package/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -28
  1289. package/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs +0 -15
  1290. package/node_modules/framer-motion/dist/es/render/dom/features-animation.mjs +0 -14
  1291. package/node_modules/framer-motion/dist/es/render/dom/features-max.mjs +0 -14
  1292. package/node_modules/framer-motion/dist/es/render/dom/motion-minimal.mjs +0 -9
  1293. package/node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs +0 -47
  1294. package/node_modules/framer-motion/dist/es/render/dom/motion.mjs +0 -42
  1295. package/node_modules/framer-motion/dist/es/render/dom/resize/handle-element.mjs +0 -64
  1296. package/node_modules/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -30
  1297. package/node_modules/framer-motion/dist/es/render/dom/resize/index.mjs +0 -8
  1298. package/node_modules/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -36
  1299. package/node_modules/framer-motion/dist/es/render/dom/scroll/info.mjs +0 -56
  1300. package/node_modules/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -18
  1301. package/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -45
  1302. package/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -59
  1303. package/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -45
  1304. package/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -35
  1305. package/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -20
  1306. package/node_modules/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -48
  1307. package/node_modules/framer-motion/dist/es/render/dom/scroll/supports.mjs +0 -5
  1308. package/node_modules/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -84
  1309. package/node_modules/framer-motion/dist/es/render/dom/use-render.mjs +0 -33
  1310. package/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -6
  1311. package/node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs +0 -19
  1312. package/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +0 -42
  1313. package/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs +0 -59
  1314. package/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -13
  1315. package/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs +0 -30
  1316. package/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -5
  1317. package/node_modules/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +0 -28
  1318. package/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +0 -65
  1319. package/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -15
  1320. package/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -30
  1321. package/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -15
  1322. package/node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -15
  1323. package/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -10
  1324. package/node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -74
  1325. package/node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -6
  1326. package/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -9
  1327. package/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -8
  1328. package/node_modules/framer-motion/dist/es/render/dom/viewport/index.mjs +0 -43
  1329. package/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +0 -59
  1330. package/node_modules/framer-motion/dist/es/render/html/config-motion.mjs +0 -12
  1331. package/node_modules/framer-motion/dist/es/render/html/use-props.mjs +0 -57
  1332. package/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -74
  1333. package/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -45
  1334. package/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs +0 -8
  1335. package/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -30
  1336. package/node_modules/framer-motion/dist/es/render/html/utils/render.mjs +0 -9
  1337. package/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -20
  1338. package/node_modules/framer-motion/dist/es/render/html/utils/transform.mjs +0 -28
  1339. package/node_modules/framer-motion/dist/es/render/store.mjs +0 -3
  1340. package/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +0 -47
  1341. package/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs +0 -40
  1342. package/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs +0 -33
  1343. package/node_modules/framer-motion/dist/es/render/svg/use-props.mjs +0 -24
  1344. package/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -52
  1345. package/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -30
  1346. package/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs +0 -8
  1347. package/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -3
  1348. package/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs +0 -32
  1349. package/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs +0 -12
  1350. package/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -19
  1351. package/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -18
  1352. package/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -164
  1353. package/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs +0 -328
  1354. package/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -3
  1355. package/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -24
  1356. package/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -13
  1357. package/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -8
  1358. package/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs +0 -67
  1359. package/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -8
  1360. package/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -36
  1361. package/node_modules/framer-motion/dist/es/render/utils/setters.mjs +0 -27
  1362. package/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs +0 -12
  1363. package/node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -6
  1364. package/node_modules/framer-motion/dist/es/utils/array.mjs +0 -21
  1365. package/node_modules/framer-motion/dist/es/utils/clamp.mjs +0 -9
  1366. package/node_modules/framer-motion/dist/es/utils/delay.mjs +0 -20
  1367. package/node_modules/framer-motion/dist/es/utils/distance.mjs +0 -9
  1368. package/node_modules/framer-motion/dist/es/utils/errors.mjs +0 -18
  1369. package/node_modules/framer-motion/dist/es/utils/get-context-window.mjs +0 -6
  1370. package/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -42
  1371. package/node_modules/framer-motion/dist/es/utils/interpolate.mjs +0 -75
  1372. package/node_modules/framer-motion/dist/es/utils/is-browser.mjs +0 -3
  1373. package/node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -6
  1374. package/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs +0 -7
  1375. package/node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -6
  1376. package/node_modules/framer-motion/dist/es/utils/memo.mjs +0 -10
  1377. package/node_modules/framer-motion/dist/es/utils/mix/color.mjs +0 -47
  1378. package/node_modules/framer-motion/dist/es/utils/mix/complex.mjs +0 -94
  1379. package/node_modules/framer-motion/dist/es/utils/mix/immediate.mjs +0 -5
  1380. package/node_modules/framer-motion/dist/es/utils/mix/index.mjs +0 -14
  1381. package/node_modules/framer-motion/dist/es/utils/mix/number.mjs +0 -26
  1382. package/node_modules/framer-motion/dist/es/utils/mix/visibility.mjs +0 -16
  1383. package/node_modules/framer-motion/dist/es/utils/noop.mjs +0 -3
  1384. package/node_modules/framer-motion/dist/es/utils/offsets/default.mjs +0 -9
  1385. package/node_modules/framer-motion/dist/es/utils/offsets/fill.mjs +0 -12
  1386. package/node_modules/framer-motion/dist/es/utils/offsets/time.mjs +0 -5
  1387. package/node_modules/framer-motion/dist/es/utils/pipe.mjs +0 -11
  1388. package/node_modules/framer-motion/dist/es/utils/progress.mjs +0 -18
  1389. package/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -19
  1390. package/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -5
  1391. package/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +0 -19
  1392. package/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs +0 -47
  1393. package/node_modules/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
  1394. package/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs +0 -14
  1395. package/node_modules/framer-motion/dist/es/utils/subscription-manager.mjs +0 -40
  1396. package/node_modules/framer-motion/dist/es/utils/time-conversion.mjs +0 -10
  1397. package/node_modules/framer-motion/dist/es/utils/transform.mjs +0 -21
  1398. package/node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs +0 -21
  1399. package/node_modules/framer-motion/dist/es/utils/use-constant.mjs +0 -18
  1400. package/node_modules/framer-motion/dist/es/utils/use-cycle.mjs +0 -47
  1401. package/node_modules/framer-motion/dist/es/utils/use-force-update.mjs +0 -19
  1402. package/node_modules/framer-motion/dist/es/utils/use-in-view.mjs +0 -23
  1403. package/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs +0 -5
  1404. package/node_modules/framer-motion/dist/es/utils/use-instant-transition.mjs +0 -41
  1405. package/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs +0 -15
  1406. package/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs +0 -6
  1407. package/node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs +0 -13
  1408. package/node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs +0 -7
  1409. package/node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -11
  1410. package/node_modules/framer-motion/dist/es/utils/warn-once.mjs +0 -11
  1411. package/node_modules/framer-motion/dist/es/utils/wrap.mjs +0 -6
  1412. package/node_modules/framer-motion/dist/es/value/index.mjs +0 -319
  1413. package/node_modules/framer-motion/dist/es/value/scroll/use-element-scroll.mjs +0 -14
  1414. package/node_modules/framer-motion/dist/es/value/scroll/use-viewport-scroll.mjs +0 -14
  1415. package/node_modules/framer-motion/dist/es/value/types/color/hex.mjs +0 -40
  1416. package/node_modules/framer-motion/dist/es/value/types/color/hsla.mjs +0 -22
  1417. package/node_modules/framer-motion/dist/es/value/types/color/index.mjs +0 -28
  1418. package/node_modules/framer-motion/dist/es/value/types/color/rgba.mjs +0 -25
  1419. package/node_modules/framer-motion/dist/es/value/types/color/utils.mjs +0 -23
  1420. package/node_modules/framer-motion/dist/es/value/types/complex/filter.mjs +0 -30
  1421. package/node_modules/framer-motion/dist/es/value/types/complex/index.mjs +0 -90
  1422. package/node_modules/framer-motion/dist/es/value/types/numbers/index.mjs +0 -17
  1423. package/node_modules/framer-motion/dist/es/value/types/numbers/units.mjs +0 -19
  1424. package/node_modules/framer-motion/dist/es/value/types/utils.mjs +0 -15
  1425. package/node_modules/framer-motion/dist/es/value/use-combine-values.mjs +0 -37
  1426. package/node_modules/framer-motion/dist/es/value/use-computed.mjs +0 -19
  1427. package/node_modules/framer-motion/dist/es/value/use-inverted-scale.mjs +0 -52
  1428. package/node_modules/framer-motion/dist/es/value/use-motion-template.mjs +0 -45
  1429. package/node_modules/framer-motion/dist/es/value/use-motion-value.mjs +0 -38
  1430. package/node_modules/framer-motion/dist/es/value/use-scroll.mjs +0 -39
  1431. package/node_modules/framer-motion/dist/es/value/use-spring.mjs +0 -80
  1432. package/node_modules/framer-motion/dist/es/value/use-time.mjs +0 -10
  1433. package/node_modules/framer-motion/dist/es/value/use-transform.mjs +0 -29
  1434. package/node_modules/framer-motion/dist/es/value/use-velocity.mjs +0 -35
  1435. package/node_modules/framer-motion/dist/es/value/use-will-change/index.mjs +0 -50
  1436. package/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs +0 -7
  1437. package/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -3
  1438. package/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -16
  1439. package/node_modules/framer-motion/dist/framer-motion.dev.js +0 -12433
  1440. package/node_modules/framer-motion/dist/framer-motion.js +0 -1
  1441. package/node_modules/framer-motion/dist/index.d.ts +0 -5278
  1442. package/node_modules/framer-motion/dist/three-entry.d.ts +0 -2954
  1443. package/node_modules/framer-motion/dom/README.md +0 -1
  1444. package/node_modules/framer-motion/dom/package.json +0 -6
  1445. package/node_modules/framer-motion/package.json +0 -108
  1446. package/node_modules/get-func-name/LICENSE +0 -19
  1447. package/node_modules/get-func-name/README.md +0 -123
  1448. package/node_modules/get-func-name/get-func-name.js +0 -1
  1449. package/node_modules/get-func-name/index.js +0 -52
  1450. package/node_modules/get-func-name/package.json +0 -85
  1451. package/node_modules/get-nonce/LICENSE +0 -21
  1452. package/node_modules/get-nonce/README.md +0 -54
  1453. package/node_modules/get-nonce/dist/es2015/index.d.ts +0 -2
  1454. package/node_modules/get-nonce/dist/es2015/index.js +0 -13
  1455. package/node_modules/get-nonce/dist/es5/index.d.ts +0 -2
  1456. package/node_modules/get-nonce/dist/es5/index.js +0 -15
  1457. package/node_modules/get-nonce/package.json +0 -68
  1458. package/node_modules/invariant/LICENSE +0 -21
  1459. package/node_modules/invariant/README.md +0 -37
  1460. package/node_modules/invariant/browser.js +0 -49
  1461. package/node_modules/invariant/invariant.js +0 -51
  1462. package/node_modules/invariant/invariant.js.flow +0 -7
  1463. package/node_modules/invariant/package.json +0 -35
  1464. package/node_modules/js-tokens/LICENSE +0 -21
  1465. package/node_modules/js-tokens/README.md +0 -240
  1466. package/node_modules/js-tokens/index.js +0 -23
  1467. package/node_modules/js-tokens/package.json +0 -30
  1468. package/node_modules/loose-envify/LICENSE +0 -21
  1469. package/node_modules/loose-envify/README.md +0 -45
  1470. package/node_modules/loose-envify/cli.js +0 -16
  1471. package/node_modules/loose-envify/custom.js +0 -4
  1472. package/node_modules/loose-envify/index.js +0 -3
  1473. package/node_modules/loose-envify/loose-envify.js +0 -36
  1474. package/node_modules/loose-envify/package.json +0 -36
  1475. package/node_modules/loose-envify/replace.js +0 -65
  1476. package/node_modules/loupe/LICENSE +0 -9
  1477. package/node_modules/loupe/README.md +0 -63
  1478. package/node_modules/loupe/lib/arguments.d.ts +0 -3
  1479. package/node_modules/loupe/lib/arguments.d.ts.map +0 -1
  1480. package/node_modules/loupe/lib/arguments.js +0 -7
  1481. package/node_modules/loupe/lib/array.d.ts +0 -3
  1482. package/node_modules/loupe/lib/array.d.ts.map +0 -1
  1483. package/node_modules/loupe/lib/array.js +0 -16
  1484. package/node_modules/loupe/lib/bigint.d.ts +0 -3
  1485. package/node_modules/loupe/lib/bigint.d.ts.map +0 -1
  1486. package/node_modules/loupe/lib/bigint.js +0 -7
  1487. package/node_modules/loupe/lib/class.d.ts +0 -5
  1488. package/node_modules/loupe/lib/class.d.ts.map +0 -1
  1489. package/node_modules/loupe/lib/class.js +0 -15
  1490. package/node_modules/loupe/lib/date.d.ts +0 -3
  1491. package/node_modules/loupe/lib/date.d.ts.map +0 -1
  1492. package/node_modules/loupe/lib/date.js +0 -11
  1493. package/node_modules/loupe/lib/error.d.ts +0 -3
  1494. package/node_modules/loupe/lib/error.d.ts.map +0 -1
  1495. package/node_modules/loupe/lib/error.js +0 -29
  1496. package/node_modules/loupe/lib/function.d.ts +0 -7
  1497. package/node_modules/loupe/lib/function.d.ts.map +0 -1
  1498. package/node_modules/loupe/lib/function.js +0 -9
  1499. package/node_modules/loupe/lib/helpers.d.ts +0 -7
  1500. package/node_modules/loupe/lib/helpers.d.ts.map +0 -1
  1501. package/node_modules/loupe/lib/helpers.js +0 -159
  1502. package/node_modules/loupe/lib/html.d.ts +0 -5
  1503. package/node_modules/loupe/lib/html.d.ts.map +0 -1
  1504. package/node_modules/loupe/lib/html.js +0 -34
  1505. package/node_modules/loupe/lib/index.d.ts +0 -7
  1506. package/node_modules/loupe/lib/index.d.ts.map +0 -1
  1507. package/node_modules/loupe/lib/index.js +0 -161
  1508. package/node_modules/loupe/lib/map.d.ts +0 -3
  1509. package/node_modules/loupe/lib/map.d.ts.map +0 -1
  1510. package/node_modules/loupe/lib/map.js +0 -24
  1511. package/node_modules/loupe/lib/number.d.ts +0 -3
  1512. package/node_modules/loupe/lib/number.d.ts.map +0 -1
  1513. package/node_modules/loupe/lib/number.js +0 -17
  1514. package/node_modules/loupe/lib/object.d.ts +0 -3
  1515. package/node_modules/loupe/lib/object.d.ts.map +0 -1
  1516. package/node_modules/loupe/lib/object.js +0 -22
  1517. package/node_modules/loupe/lib/promise.d.ts +0 -5
  1518. package/node_modules/loupe/lib/promise.d.ts.map +0 -1
  1519. package/node_modules/loupe/lib/promise.js +0 -18
  1520. package/node_modules/loupe/lib/regexp.d.ts +0 -3
  1521. package/node_modules/loupe/lib/regexp.d.ts.map +0 -1
  1522. package/node_modules/loupe/lib/regexp.js +0 -7
  1523. package/node_modules/loupe/lib/set.d.ts +0 -3
  1524. package/node_modules/loupe/lib/set.d.ts.map +0 -1
  1525. package/node_modules/loupe/lib/set.js +0 -15
  1526. package/node_modules/loupe/lib/string.d.ts +0 -3
  1527. package/node_modules/loupe/lib/string.d.ts.map +0 -1
  1528. package/node_modules/loupe/lib/string.js +0 -24
  1529. package/node_modules/loupe/lib/symbol.d.ts +0 -2
  1530. package/node_modules/loupe/lib/symbol.d.ts.map +0 -1
  1531. package/node_modules/loupe/lib/symbol.js +0 -6
  1532. package/node_modules/loupe/lib/typedarray.d.ts +0 -5
  1533. package/node_modules/loupe/lib/typedarray.d.ts.map +0 -1
  1534. package/node_modules/loupe/lib/typedarray.js +0 -38
  1535. package/node_modules/loupe/lib/types.d.ts +0 -15
  1536. package/node_modules/loupe/lib/types.d.ts.map +0 -1
  1537. package/node_modules/loupe/lib/types.js +0 -1
  1538. package/node_modules/loupe/loupe.js +0 -644
  1539. package/node_modules/loupe/package.json +0 -126
  1540. package/node_modules/pathval/LICENSE +0 -16
  1541. package/node_modules/pathval/README.md +0 -147
  1542. package/node_modules/pathval/index.js +0 -292
  1543. package/node_modules/pathval/package.json +0 -73
  1544. package/node_modules/pathval/pathval.js +0 -1
  1545. package/node_modules/react-remove-scroll/LICENSE +0 -21
  1546. package/node_modules/react-remove-scroll/README.md +0 -152
  1547. package/node_modules/react-remove-scroll/UI/UI.d.ts +0 -1
  1548. package/node_modules/react-remove-scroll/UI/package.json +0 -8
  1549. package/node_modules/react-remove-scroll/dist/es2015/Combination.d.ts +0 -3
  1550. package/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -7
  1551. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.d.ts +0 -5
  1552. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -157
  1553. package/node_modules/react-remove-scroll/dist/es2015/UI.d.ts +0 -7
  1554. package/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -36
  1555. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.d.ts +0 -3
  1556. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -19
  1557. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.d.ts +0 -3
  1558. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -104
  1559. package/node_modules/react-remove-scroll/dist/es2015/index.d.ts +0 -2
  1560. package/node_modules/react-remove-scroll/dist/es2015/index.js +0 -2
  1561. package/node_modules/react-remove-scroll/dist/es2015/medium.d.ts +0 -2
  1562. package/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -2
  1563. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.d.ts +0 -8
  1564. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.js +0 -33
  1565. package/node_modules/react-remove-scroll/dist/es2015/sidecar.d.ts +0 -2
  1566. package/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -4
  1567. package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +0 -98
  1568. package/node_modules/react-remove-scroll/dist/es2015/types.js +0 -1
  1569. package/node_modules/react-remove-scroll/dist/es2019/Combination.d.ts +0 -3
  1570. package/node_modules/react-remove-scroll/dist/es2019/Combination.js +0 -6
  1571. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.d.ts +0 -5
  1572. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +0 -155
  1573. package/node_modules/react-remove-scroll/dist/es2019/UI.d.ts +0 -7
  1574. package/node_modules/react-remove-scroll/dist/es2019/UI.js +0 -41
  1575. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.d.ts +0 -3
  1576. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.js +0 -19
  1577. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.d.ts +0 -3
  1578. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +0 -92
  1579. package/node_modules/react-remove-scroll/dist/es2019/index.d.ts +0 -2
  1580. package/node_modules/react-remove-scroll/dist/es2019/index.js +0 -2
  1581. package/node_modules/react-remove-scroll/dist/es2019/medium.d.ts +0 -2
  1582. package/node_modules/react-remove-scroll/dist/es2019/medium.js +0 -2
  1583. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.d.ts +0 -8
  1584. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.js +0 -33
  1585. package/node_modules/react-remove-scroll/dist/es2019/sidecar.d.ts +0 -2
  1586. package/node_modules/react-remove-scroll/dist/es2019/sidecar.js +0 -4
  1587. package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +0 -98
  1588. package/node_modules/react-remove-scroll/dist/es2019/types.js +0 -1
  1589. package/node_modules/react-remove-scroll/dist/es5/Combination.d.ts +0 -3
  1590. package/node_modules/react-remove-scroll/dist/es5/Combination.js +0 -9
  1591. package/node_modules/react-remove-scroll/dist/es5/SideEffect.d.ts +0 -5
  1592. package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +0 -163
  1593. package/node_modules/react-remove-scroll/dist/es5/UI.d.ts +0 -7
  1594. package/node_modules/react-remove-scroll/dist/es5/UI.js +0 -39
  1595. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.d.ts +0 -3
  1596. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.js +0 -22
  1597. package/node_modules/react-remove-scroll/dist/es5/handleScroll.d.ts +0 -3
  1598. package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +0 -109
  1599. package/node_modules/react-remove-scroll/dist/es5/index.d.ts +0 -2
  1600. package/node_modules/react-remove-scroll/dist/es5/index.js +0 -6
  1601. package/node_modules/react-remove-scroll/dist/es5/medium.d.ts +0 -2
  1602. package/node_modules/react-remove-scroll/dist/es5/medium.js +0 -5
  1603. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.d.ts +0 -8
  1604. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.js +0 -37
  1605. package/node_modules/react-remove-scroll/dist/es5/sidecar.d.ts +0 -2
  1606. package/node_modules/react-remove-scroll/dist/es5/sidecar.js +0 -6
  1607. package/node_modules/react-remove-scroll/dist/es5/types.d.ts +0 -98
  1608. package/node_modules/react-remove-scroll/dist/es5/types.js +0 -2
  1609. package/node_modules/react-remove-scroll/dist/index.js +0 -93
  1610. package/node_modules/react-remove-scroll/package.json +0 -97
  1611. package/node_modules/react-remove-scroll/sidecar/package.json +0 -7
  1612. package/node_modules/react-remove-scroll/sidecar/sidecar.d.ts +0 -5
  1613. package/node_modules/react-remove-scroll-bar/README.md +0 -52
  1614. package/node_modules/react-remove-scroll-bar/constants/package.json +0 -8
  1615. package/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts +0 -13
  1616. package/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -53
  1617. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.d.ts +0 -8
  1618. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -8
  1619. package/node_modules/react-remove-scroll-bar/dist/es2015/index.d.ts +0 -4
  1620. package/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -4
  1621. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.d.ts +0 -14
  1622. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -29
  1623. package/node_modules/react-remove-scroll-bar/dist/es2019/component.d.ts +0 -13
  1624. package/node_modules/react-remove-scroll-bar/dist/es2019/component.js +0 -85
  1625. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.d.ts +0 -8
  1626. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.js +0 -8
  1627. package/node_modules/react-remove-scroll-bar/dist/es2019/index.d.ts +0 -4
  1628. package/node_modules/react-remove-scroll-bar/dist/es2019/index.js +0 -4
  1629. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.d.ts +0 -14
  1630. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.js +0 -28
  1631. package/node_modules/react-remove-scroll-bar/dist/es5/component.d.ts +0 -13
  1632. package/node_modules/react-remove-scroll-bar/dist/es5/component.js +0 -59
  1633. package/node_modules/react-remove-scroll-bar/dist/es5/constants.d.ts +0 -8
  1634. package/node_modules/react-remove-scroll-bar/dist/es5/constants.js +0 -11
  1635. package/node_modules/react-remove-scroll-bar/dist/es5/index.d.ts +0 -4
  1636. package/node_modules/react-remove-scroll-bar/dist/es5/index.js +0 -12
  1637. package/node_modules/react-remove-scroll-bar/dist/es5/utils.d.ts +0 -14
  1638. package/node_modules/react-remove-scroll-bar/dist/es5/utils.js +0 -33
  1639. package/node_modules/react-remove-scroll-bar/package.json +0 -85
  1640. package/node_modules/react-router/CHANGELOG.md +0 -723
  1641. package/node_modules/react-router/LICENSE.md +0 -23
  1642. package/node_modules/react-router/README.md +0 -16
  1643. package/node_modules/react-router/dist/index.d.ts +0 -29
  1644. package/node_modules/react-router/dist/index.js +0 -1456
  1645. package/node_modules/react-router/dist/index.js.map +0 -1
  1646. package/node_modules/react-router/dist/lib/components.d.ts +0 -157
  1647. package/node_modules/react-router/dist/lib/context.d.ts +0 -102
  1648. package/node_modules/react-router/dist/lib/hooks.d.ts +0 -181
  1649. package/node_modules/react-router/dist/main.js +0 -19
  1650. package/node_modules/react-router/dist/react-router.development.js +0 -1352
  1651. package/node_modules/react-router/dist/react-router.development.js.map +0 -1
  1652. package/node_modules/react-router/dist/react-router.production.min.js +0 -12
  1653. package/node_modules/react-router/dist/react-router.production.min.js.map +0 -1
  1654. package/node_modules/react-router/dist/umd/react-router.development.js +0 -1574
  1655. package/node_modules/react-router/dist/umd/react-router.development.js.map +0 -1
  1656. package/node_modules/react-router/dist/umd/react-router.production.min.js +0 -12
  1657. package/node_modules/react-router/dist/umd/react-router.production.min.js.map +0 -1
  1658. package/node_modules/react-router/package.json +0 -44
  1659. package/node_modules/react-router-dom/CHANGELOG.md +0 -866
  1660. package/node_modules/react-router-dom/LICENSE.md +0 -23
  1661. package/node_modules/react-router-dom/README.md +0 -5
  1662. package/node_modules/react-router-dom/dist/dom.d.ts +0 -117
  1663. package/node_modules/react-router-dom/dist/index.d.ts +0 -331
  1664. package/node_modules/react-router-dom/dist/index.js +0 -1447
  1665. package/node_modules/react-router-dom/dist/index.js.map +0 -1
  1666. package/node_modules/react-router-dom/dist/main.js +0 -19
  1667. package/node_modules/react-router-dom/dist/react-router-dom.development.js +0 -1514
  1668. package/node_modules/react-router-dom/dist/react-router-dom.development.js.map +0 -1
  1669. package/node_modules/react-router-dom/dist/react-router-dom.production.min.js +0 -12
  1670. package/node_modules/react-router-dom/dist/react-router-dom.production.min.js.map +0 -1
  1671. package/node_modules/react-router-dom/dist/server.d.ts +0 -31
  1672. package/node_modules/react-router-dom/dist/server.js +0 -322
  1673. package/node_modules/react-router-dom/dist/server.mjs +0 -297
  1674. package/node_modules/react-router-dom/dist/umd/react-router-dom.development.js +0 -1813
  1675. package/node_modules/react-router-dom/dist/umd/react-router-dom.development.js.map +0 -1
  1676. package/node_modules/react-router-dom/dist/umd/react-router-dom.production.min.js +0 -12
  1677. package/node_modules/react-router-dom/dist/umd/react-router-dom.production.min.js.map +0 -1
  1678. package/node_modules/react-router-dom/package.json +0 -49
  1679. package/node_modules/react-router-dom/server.d.ts +0 -31
  1680. package/node_modules/react-router-dom/server.js +0 -322
  1681. package/node_modules/react-router-dom/server.mjs +0 -297
  1682. package/node_modules/react-style-singleton/README.md +0 -41
  1683. package/node_modules/react-style-singleton/dist/es2015/component.d.ts +0 -21
  1684. package/node_modules/react-style-singleton/dist/es2015/component.js +0 -16
  1685. package/node_modules/react-style-singleton/dist/es2015/hook.d.ts +0 -23
  1686. package/node_modules/react-style-singleton/dist/es2015/hook.js +0 -22
  1687. package/node_modules/react-style-singleton/dist/es2015/index.d.ts +0 -3
  1688. package/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
  1689. package/node_modules/react-style-singleton/dist/es2015/singleton.d.ts +0 -4
  1690. package/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -48
  1691. package/node_modules/react-style-singleton/dist/es2019/component.d.ts +0 -21
  1692. package/node_modules/react-style-singleton/dist/es2019/component.js +0 -15
  1693. package/node_modules/react-style-singleton/dist/es2019/hook.d.ts +0 -23
  1694. package/node_modules/react-style-singleton/dist/es2019/hook.js +0 -22
  1695. package/node_modules/react-style-singleton/dist/es2019/index.d.ts +0 -3
  1696. package/node_modules/react-style-singleton/dist/es2019/index.js +0 -3
  1697. package/node_modules/react-style-singleton/dist/es2019/singleton.d.ts +0 -4
  1698. package/node_modules/react-style-singleton/dist/es2019/singleton.js +0 -48
  1699. package/node_modules/react-style-singleton/dist/es5/component.d.ts +0 -21
  1700. package/node_modules/react-style-singleton/dist/es5/component.js +0 -20
  1701. package/node_modules/react-style-singleton/dist/es5/hook.d.ts +0 -23
  1702. package/node_modules/react-style-singleton/dist/es5/hook.js +0 -27
  1703. package/node_modules/react-style-singleton/dist/es5/index.d.ts +0 -3
  1704. package/node_modules/react-style-singleton/dist/es5/index.js +0 -9
  1705. package/node_modules/react-style-singleton/dist/es5/singleton.d.ts +0 -4
  1706. package/node_modules/react-style-singleton/dist/es5/singleton.js +0 -52
  1707. package/node_modules/react-style-singleton/dist/index.js +0 -1
  1708. package/node_modules/react-style-singleton/package.json +0 -87
  1709. package/node_modules/regenerator-runtime/LICENSE +0 -21
  1710. package/node_modules/regenerator-runtime/README.md +0 -31
  1711. package/node_modules/regenerator-runtime/package.json +0 -19
  1712. package/node_modules/regenerator-runtime/path.js +0 -11
  1713. package/node_modules/regenerator-runtime/runtime.js +0 -761
  1714. package/node_modules/remix-utils/.eslintrc.cjs +0 -54
  1715. package/node_modules/remix-utils/LICENSE +0 -21
  1716. package/node_modules/remix-utils/README.md +0 -2149
  1717. package/node_modules/remix-utils/build/client/cache-assets.d.ts +0 -22
  1718. package/node_modules/remix-utils/build/client/cache-assets.js +0 -66
  1719. package/node_modules/remix-utils/build/common/promise.d.ts +0 -87
  1720. package/node_modules/remix-utils/build/common/promise.js +0 -112
  1721. package/node_modules/remix-utils/build/common/timers.d.ts +0 -27
  1722. package/node_modules/remix-utils/build/common/timers.js +0 -47
  1723. package/node_modules/remix-utils/build/react/authenticity-token.d.ts +0 -50
  1724. package/node_modules/remix-utils/build/react/authenticity-token.js +0 -54
  1725. package/node_modules/remix-utils/build/react/client-only.d.ts +0 -27
  1726. package/node_modules/remix-utils/build/react/client-only.js +0 -20
  1727. package/node_modules/remix-utils/build/react/existing-search-params.d.ts +0 -34
  1728. package/node_modules/remix-utils/build/react/existing-search-params.js +0 -32
  1729. package/node_modules/remix-utils/build/react/external-scripts.d.ts +0 -91
  1730. package/node_modules/remix-utils/build/react/external-scripts.js +0 -106
  1731. package/node_modules/remix-utils/build/react/fetcher-type.d.ts +0 -31
  1732. package/node_modules/remix-utils/build/react/fetcher-type.js +0 -53
  1733. package/node_modules/remix-utils/build/react/handle-conventions.d.ts +0 -10
  1734. package/node_modules/remix-utils/build/react/handle-conventions.js +0 -1
  1735. package/node_modules/remix-utils/build/react/honeypot.d.ts +0 -11
  1736. package/node_modules/remix-utils/build/react/honeypot.js +0 -16
  1737. package/node_modules/remix-utils/build/react/server-only.d.ts +0 -25
  1738. package/node_modules/remix-utils/build/react/server-only.js +0 -18
  1739. package/node_modules/remix-utils/build/react/use-debounce-fetcher.d.ts +0 -28
  1740. package/node_modules/remix-utils/build/react/use-debounce-fetcher.js +0 -27
  1741. package/node_modules/remix-utils/build/react/use-debounce-submit.d.ts +0 -7
  1742. package/node_modules/remix-utils/build/react/use-debounce-submit.js +0 -41
  1743. package/node_modules/remix-utils/build/react/use-delegated-anchors.d.ts +0 -6
  1744. package/node_modules/remix-utils/build/react/use-delegated-anchors.js +0 -69
  1745. package/node_modules/remix-utils/build/react/use-event-source.d.ts +0 -17
  1746. package/node_modules/remix-utils/build/react/use-event-source.js +0 -37
  1747. package/node_modules/remix-utils/build/react/use-global-navigation-state.d.ts +0 -33
  1748. package/node_modules/remix-utils/build/react/use-global-navigation-state.js +0 -67
  1749. package/node_modules/remix-utils/build/react/use-hydrated.d.ts +0 -18
  1750. package/node_modules/remix-utils/build/react/use-hydrated.js +0 -24
  1751. package/node_modules/remix-utils/build/react/use-locales.d.ts +0 -24
  1752. package/node_modules/remix-utils/build/react/use-locales.js +0 -56
  1753. package/node_modules/remix-utils/build/react/use-should-hydrate.d.ts +0 -21
  1754. package/node_modules/remix-utils/build/react/use-should-hydrate.js +0 -44
  1755. package/node_modules/remix-utils/build/server/cors.d.ts +0 -101
  1756. package/node_modules/remix-utils/build/server/cors.js +0 -179
  1757. package/node_modules/remix-utils/build/server/csrf.d.ts +0 -85
  1758. package/node_modules/remix-utils/build/server/csrf.js +0 -121
  1759. package/node_modules/remix-utils/build/server/event-stream.d.ts +0 -27
  1760. package/node_modules/remix-utils/build/server/event-stream.js +0 -44
  1761. package/node_modules/remix-utils/build/server/get-client-ip-address.d.ts +0 -29
  1762. package/node_modules/remix-utils/build/server/get-client-ip-address.js +0 -51
  1763. package/node_modules/remix-utils/build/server/get-client-locales.d.ts +0 -18
  1764. package/node_modules/remix-utils/build/server/get-client-locales.js +0 -18
  1765. package/node_modules/remix-utils/build/server/get-headers.d.ts +0 -6
  1766. package/node_modules/remix-utils/build/server/get-headers.js +0 -11
  1767. package/node_modules/remix-utils/build/server/honeypot.d.ts +0 -32
  1768. package/node_modules/remix-utils/build/server/honeypot.js +0 -96
  1769. package/node_modules/remix-utils/build/server/is-prefetch.d.ts +0 -16
  1770. package/node_modules/remix-utils/build/server/is-prefetch.js +0 -11
  1771. package/node_modules/remix-utils/build/server/json-hash.d.ts +0 -6
  1772. package/node_modules/remix-utils/build/server/json-hash.js +0 -16
  1773. package/node_modules/remix-utils/build/server/named-action.d.ts +0 -19
  1774. package/node_modules/remix-utils/build/server/named-action.js +0 -62
  1775. package/node_modules/remix-utils/build/server/parse-accept-header.d.ts +0 -12
  1776. package/node_modules/remix-utils/build/server/parse-accept-header.js +0 -17
  1777. package/node_modules/remix-utils/build/server/preload-route-assets.d.ts +0 -80
  1778. package/node_modules/remix-utils/build/server/preload-route-assets.js +0 -120
  1779. package/node_modules/remix-utils/build/server/redirect-back.d.ts +0 -18
  1780. package/node_modules/remix-utils/build/server/redirect-back.js +0 -29
  1781. package/node_modules/remix-utils/build/server/respond-to.d.ts +0 -40
  1782. package/node_modules/remix-utils/build/server/respond-to.js +0 -22
  1783. package/node_modules/remix-utils/build/server/responses.d.ts +0 -100
  1784. package/node_modules/remix-utils/build/server/responses.js +0 -167
  1785. package/node_modules/remix-utils/build/server/rolling-cookie.d.ts +0 -4
  1786. package/node_modules/remix-utils/build/server/rolling-cookie.js +0 -9
  1787. package/node_modules/remix-utils/build/server/safe-redirect.d.ts +0 -10
  1788. package/node_modules/remix-utils/build/server/safe-redirect.js +0 -22
  1789. package/node_modules/remix-utils/build/server/sec-fetch.d.ts +0 -43
  1790. package/node_modules/remix-utils/build/server/sec-fetch.js +0 -67
  1791. package/node_modules/remix-utils/build/server/typed-cookie.d.ts +0 -17
  1792. package/node_modules/remix-utils/build/server/typed-cookie.js +0 -58
  1793. package/node_modules/remix-utils/build/server/typed-session.d.ts +0 -59
  1794. package/node_modules/remix-utils/build/server/typed-session.js +0 -88
  1795. package/node_modules/remix-utils/package.json +0 -182
  1796. package/node_modules/remix-utils/scripts/check-pkg-exports.ts +0 -61
  1797. package/node_modules/set-cookie-parser/LICENSE +0 -21
  1798. package/node_modules/set-cookie-parser/README.md +0 -199
  1799. package/node_modules/set-cookie-parser/lib/set-cookie.js +0 -226
  1800. package/node_modules/set-cookie-parser/package.json +0 -43
  1801. package/node_modules/source-map/LICENSE +0 -28
  1802. package/node_modules/source-map/README.md +0 -742
  1803. package/node_modules/source-map/dist/source-map.debug.js +0 -3234
  1804. package/node_modules/source-map/dist/source-map.js +0 -3233
  1805. package/node_modules/source-map/dist/source-map.min.js +0 -2
  1806. package/node_modules/source-map/dist/source-map.min.js.map +0 -1
  1807. package/node_modules/source-map/lib/array-set.js +0 -121
  1808. package/node_modules/source-map/lib/base64-vlq.js +0 -140
  1809. package/node_modules/source-map/lib/base64.js +0 -67
  1810. package/node_modules/source-map/lib/binary-search.js +0 -111
  1811. package/node_modules/source-map/lib/mapping-list.js +0 -79
  1812. package/node_modules/source-map/lib/mappings.wasm +0 -0
  1813. package/node_modules/source-map/lib/quick-sort.js +0 -114
  1814. package/node_modules/source-map/lib/read-wasm.js +0 -49
  1815. package/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  1816. package/node_modules/source-map/lib/source-map-generator.js +0 -425
  1817. package/node_modules/source-map/lib/source-node.js +0 -413
  1818. package/node_modules/source-map/lib/util.js +0 -488
  1819. package/node_modules/source-map/lib/wasm.js +0 -107
  1820. package/node_modules/source-map/package.json +0 -73
  1821. package/node_modules/source-map/source-map.d.ts +0 -98
  1822. package/node_modules/source-map/source-map.js +0 -8
  1823. package/node_modules/tailwind-merge/LICENSE.md +0 -21
  1824. package/node_modules/tailwind-merge/README.md +0 -38
  1825. package/node_modules/tailwind-merge/dist/bundle-cjs.js +0 -2595
  1826. package/node_modules/tailwind-merge/dist/bundle-cjs.js.map +0 -1
  1827. package/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -2583
  1828. package/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +0 -1
  1829. package/node_modules/tailwind-merge/dist/es5/bundle-cjs.js +0 -2645
  1830. package/node_modules/tailwind-merge/dist/es5/bundle-cjs.js.map +0 -1
  1831. package/node_modules/tailwind-merge/dist/es5/bundle-mjs.mjs +0 -2633
  1832. package/node_modules/tailwind-merge/dist/es5/bundle-mjs.mjs.map +0 -1
  1833. package/node_modules/tailwind-merge/dist/types.d.ts +0 -2143
  1834. package/node_modules/tailwind-merge/package.json +0 -95
  1835. package/node_modules/tailwind-merge/src/index.ts +0 -14
  1836. package/node_modules/tailwind-merge/src/lib/class-utils.ts +0 -215
  1837. package/node_modules/tailwind-merge/src/lib/config-utils.ts +0 -14
  1838. package/node_modules/tailwind-merge/src/lib/create-tailwind-merge.ts +0 -50
  1839. package/node_modules/tailwind-merge/src/lib/default-config.ts +0 -1865
  1840. package/node_modules/tailwind-merge/src/lib/extend-tailwind-merge.ts +0 -26
  1841. package/node_modules/tailwind-merge/src/lib/from-theme.ts +0 -13
  1842. package/node_modules/tailwind-merge/src/lib/lru-cache.ts +0 -52
  1843. package/node_modules/tailwind-merge/src/lib/merge-classlist.ts +0 -99
  1844. package/node_modules/tailwind-merge/src/lib/merge-configs.ts +0 -72
  1845. package/node_modules/tailwind-merge/src/lib/modifier-utils.ts +0 -95
  1846. package/node_modules/tailwind-merge/src/lib/tw-join.ts +0 -50
  1847. package/node_modules/tailwind-merge/src/lib/tw-merge.ts +0 -4
  1848. package/node_modules/tailwind-merge/src/lib/types.ts +0 -412
  1849. package/node_modules/tailwind-merge/src/lib/validators.ts +0 -104
  1850. package/node_modules/tslib/CopyrightNotice.txt +0 -15
  1851. package/node_modules/tslib/LICENSE.txt +0 -12
  1852. package/node_modules/tslib/README.md +0 -164
  1853. package/node_modules/tslib/SECURITY.md +0 -41
  1854. package/node_modules/tslib/modules/index.d.ts +0 -37
  1855. package/node_modules/tslib/modules/index.js +0 -68
  1856. package/node_modules/tslib/modules/package.json +0 -3
  1857. package/node_modules/tslib/package.json +0 -47
  1858. package/node_modules/tslib/tslib.d.ts +0 -453
  1859. package/node_modules/tslib/tslib.es6.html +0 -1
  1860. package/node_modules/tslib/tslib.es6.js +0 -374
  1861. package/node_modules/tslib/tslib.es6.mjs +0 -373
  1862. package/node_modules/tslib/tslib.html +0 -1
  1863. package/node_modules/tslib/tslib.js +0 -424
  1864. package/node_modules/turbo-stream/LICENSE +0 -7
  1865. package/node_modules/turbo-stream/README.md +0 -31
  1866. package/node_modules/turbo-stream/dist/flatten.d.ts +0 -2
  1867. package/node_modules/turbo-stream/dist/flatten.js +0 -172
  1868. package/node_modules/turbo-stream/dist/turbo-stream.d.ts +0 -12
  1869. package/node_modules/turbo-stream/dist/turbo-stream.js +0 -202
  1870. package/node_modules/turbo-stream/dist/turbo-stream.mjs +0 -530
  1871. package/node_modules/turbo-stream/dist/unflatten.d.ts +0 -2
  1872. package/node_modules/turbo-stream/dist/unflatten.js +0 -127
  1873. package/node_modules/turbo-stream/dist/utils.d.ts +0 -43
  1874. package/node_modules/turbo-stream/dist/utils.js +0 -55
  1875. package/node_modules/turbo-stream/package.json +0 -50
  1876. package/node_modules/type-fest/index.d.ts +0 -160
  1877. package/node_modules/type-fest/package.json +0 -72
  1878. package/node_modules/type-fest/readme.md +0 -992
  1879. package/node_modules/type-fest/source/and.d.ts +0 -25
  1880. package/node_modules/type-fest/source/array-indices.d.ts +0 -23
  1881. package/node_modules/type-fest/source/array-slice.d.ts +0 -107
  1882. package/node_modules/type-fest/source/array-splice.d.ts +0 -97
  1883. package/node_modules/type-fest/source/array-values.d.ts +0 -22
  1884. package/node_modules/type-fest/source/async-return-type.d.ts +0 -23
  1885. package/node_modules/type-fest/source/asyncify.d.ts +0 -32
  1886. package/node_modules/type-fest/source/basic.d.ts +0 -68
  1887. package/node_modules/type-fest/source/camel-case.d.ts +0 -80
  1888. package/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +0 -87
  1889. package/node_modules/type-fest/source/camel-cased-properties.d.ts +0 -36
  1890. package/node_modules/type-fest/source/conditional-except.d.ts +0 -45
  1891. package/node_modules/type-fest/source/conditional-keys.d.ts +0 -47
  1892. package/node_modules/type-fest/source/conditional-pick-deep.d.ts +0 -104
  1893. package/node_modules/type-fest/source/conditional-pick.d.ts +0 -44
  1894. package/node_modules/type-fest/source/conditional-simplify.d.ts +0 -32
  1895. package/node_modules/type-fest/source/delimiter-case.d.ts +0 -99
  1896. package/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +0 -84
  1897. package/node_modules/type-fest/source/delimiter-cased-properties.d.ts +0 -37
  1898. package/node_modules/type-fest/source/distributed-omit.d.ts +0 -89
  1899. package/node_modules/type-fest/source/distributed-pick.d.ts +0 -85
  1900. package/node_modules/type-fest/source/empty-object.d.ts +0 -46
  1901. package/node_modules/type-fest/source/enforce-optional.d.ts +0 -47
  1902. package/node_modules/type-fest/source/entries.d.ts +0 -62
  1903. package/node_modules/type-fest/source/entry.d.ts +0 -65
  1904. package/node_modules/type-fest/source/exact.d.ts +0 -63
  1905. package/node_modules/type-fest/source/except.d.ts +0 -80
  1906. package/node_modules/type-fest/source/fixed-length-array.d.ts +0 -43
  1907. package/node_modules/type-fest/source/get.d.ts +0 -191
  1908. package/node_modules/type-fest/source/global-this.d.ts +0 -21
  1909. package/node_modules/type-fest/source/greater-than-or-equal.d.ts +0 -22
  1910. package/node_modules/type-fest/source/greater-than.d.ts +0 -51
  1911. package/node_modules/type-fest/source/has-optional-keys.d.ts +0 -21
  1912. package/node_modules/type-fest/source/has-readonly-keys.d.ts +0 -21
  1913. package/node_modules/type-fest/source/has-required-keys.d.ts +0 -59
  1914. package/node_modules/type-fest/source/has-writable-keys.d.ts +0 -21
  1915. package/node_modules/type-fest/source/if-any.d.ts +0 -24
  1916. package/node_modules/type-fest/source/if-empty-object.d.ts +0 -26
  1917. package/node_modules/type-fest/source/if-never.d.ts +0 -24
  1918. package/node_modules/type-fest/source/if-null.d.ts +0 -24
  1919. package/node_modules/type-fest/source/if-unknown.d.ts +0 -24
  1920. package/node_modules/type-fest/source/includes.d.ts +0 -22
  1921. package/node_modules/type-fest/source/int-range.d.ts +0 -53
  1922. package/node_modules/type-fest/source/internal.d.ts +0 -783
  1923. package/node_modules/type-fest/source/invariant-of.d.ts +0 -78
  1924. package/node_modules/type-fest/source/is-any.d.ts +0 -29
  1925. package/node_modules/type-fest/source/is-equal.d.ts +0 -31
  1926. package/node_modules/type-fest/source/is-float.d.ts +0 -33
  1927. package/node_modules/type-fest/source/is-integer.d.ts +0 -48
  1928. package/node_modules/type-fest/source/is-literal.d.ts +0 -258
  1929. package/node_modules/type-fest/source/is-never.d.ts +0 -42
  1930. package/node_modules/type-fest/source/is-null.d.ts +0 -20
  1931. package/node_modules/type-fest/source/is-unknown.d.ts +0 -52
  1932. package/node_modules/type-fest/source/iterable-element.d.ts +0 -54
  1933. package/node_modules/type-fest/source/join.d.ts +0 -68
  1934. package/node_modules/type-fest/source/jsonifiable.d.ts +0 -37
  1935. package/node_modules/type-fest/source/jsonify.d.ts +0 -121
  1936. package/node_modules/type-fest/source/kebab-case.d.ts +0 -38
  1937. package/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +0 -47
  1938. package/node_modules/type-fest/source/kebab-cased-properties.d.ts +0 -30
  1939. package/node_modules/type-fest/source/keys-of-union.d.ts +0 -40
  1940. package/node_modules/type-fest/source/last-array-element.d.ts +0 -38
  1941. package/node_modules/type-fest/source/less-than-or-equal.d.ts +0 -22
  1942. package/node_modules/type-fest/source/less-than.d.ts +0 -22
  1943. package/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +0 -36
  1944. package/node_modules/type-fest/source/literal-to-primitive.d.ts +0 -36
  1945. package/node_modules/type-fest/source/literal-union.d.ts +0 -35
  1946. package/node_modules/type-fest/source/merge-deep.d.ts +0 -486
  1947. package/node_modules/type-fest/source/merge-exclusive.d.ts +0 -41
  1948. package/node_modules/type-fest/source/merge.d.ts +0 -48
  1949. package/node_modules/type-fest/source/multidimensional-array.d.ts +0 -44
  1950. package/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +0 -48
  1951. package/node_modules/type-fest/source/non-empty-object.d.ts +0 -35
  1952. package/node_modules/type-fest/source/numeric.d.ts +0 -222
  1953. package/node_modules/type-fest/source/observable-like.d.ts +0 -63
  1954. package/node_modules/type-fest/source/omit-deep.d.ts +0 -140
  1955. package/node_modules/type-fest/source/omit-index-signature.d.ts +0 -107
  1956. package/node_modules/type-fest/source/opaque.d.ts +0 -252
  1957. package/node_modules/type-fest/source/optional-keys-of.d.ts +0 -38
  1958. package/node_modules/type-fest/source/or.d.ts +0 -25
  1959. package/node_modules/type-fest/source/override-properties.d.ts +0 -36
  1960. package/node_modules/type-fest/source/package-json.d.ts +0 -676
  1961. package/node_modules/type-fest/source/partial-deep.d.ts +0 -109
  1962. package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +0 -71
  1963. package/node_modules/type-fest/source/pascal-case.d.ts +0 -38
  1964. package/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +0 -55
  1965. package/node_modules/type-fest/source/pascal-cased-properties.d.ts +0 -35
  1966. package/node_modules/type-fest/source/paths.d.ts +0 -85
  1967. package/node_modules/type-fest/source/pick-deep.d.ts +0 -149
  1968. package/node_modules/type-fest/source/pick-index-signature.d.ts +0 -102
  1969. package/node_modules/type-fest/source/primitive.d.ts +0 -13
  1970. package/node_modules/type-fest/source/promisable.d.ts +0 -25
  1971. package/node_modules/type-fest/source/readonly-deep.d.ts +0 -81
  1972. package/node_modules/type-fest/source/readonly-keys-of.d.ts +0 -29
  1973. package/node_modules/type-fest/source/readonly-tuple.d.ts +0 -41
  1974. package/node_modules/type-fest/source/replace.d.ts +0 -67
  1975. package/node_modules/type-fest/source/require-all-or-none.d.ts +0 -42
  1976. package/node_modules/type-fest/source/require-at-least-one.d.ts +0 -34
  1977. package/node_modules/type-fest/source/require-exactly-one.d.ts +0 -34
  1978. package/node_modules/type-fest/source/require-one-or-none.d.ts +0 -37
  1979. package/node_modules/type-fest/source/required-deep.d.ts +0 -78
  1980. package/node_modules/type-fest/source/required-keys-of.d.ts +0 -29
  1981. package/node_modules/type-fest/source/schema.d.ts +0 -71
  1982. package/node_modules/type-fest/source/screaming-snake-case.d.ts +0 -33
  1983. package/node_modules/type-fest/source/set-field-type.d.ts +0 -37
  1984. package/node_modules/type-fest/source/set-non-nullable.d.ts +0 -39
  1985. package/node_modules/type-fest/source/set-optional.d.ts +0 -35
  1986. package/node_modules/type-fest/source/set-parameter-type.d.ts +0 -117
  1987. package/node_modules/type-fest/source/set-readonly.d.ts +0 -38
  1988. package/node_modules/type-fest/source/set-required.d.ts +0 -40
  1989. package/node_modules/type-fest/source/set-return-type.d.ts +0 -29
  1990. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +0 -168
  1991. package/node_modules/type-fest/source/simplify-deep.d.ts +0 -115
  1992. package/node_modules/type-fest/source/simplify.d.ts +0 -58
  1993. package/node_modules/type-fest/source/single-key-object.d.ts +0 -29
  1994. package/node_modules/type-fest/source/snake-case.d.ts +0 -38
  1995. package/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +0 -47
  1996. package/node_modules/type-fest/source/snake-cased-properties.d.ts +0 -30
  1997. package/node_modules/type-fest/source/split-words.d.ts +0 -57
  1998. package/node_modules/type-fest/source/split.d.ts +0 -29
  1999. package/node_modules/type-fest/source/spread.d.ts +0 -85
  2000. package/node_modules/type-fest/source/string-key-of.d.ts +0 -25
  2001. package/node_modules/type-fest/source/string-slice.d.ts +0 -37
  2002. package/node_modules/type-fest/source/stringified.d.ts +0 -23
  2003. package/node_modules/type-fest/source/subtract.d.ts +0 -70
  2004. package/node_modules/type-fest/source/sum.d.ts +0 -70
  2005. package/node_modules/type-fest/source/tagged-union.d.ts +0 -51
  2006. package/node_modules/type-fest/source/trim.d.ts +0 -27
  2007. package/node_modules/type-fest/source/tsconfig-json.d.ts +0 -1198
  2008. package/node_modules/type-fest/source/tuple-to-union.d.ts +0 -51
  2009. package/node_modules/type-fest/source/typed-array.d.ts +0 -17
  2010. package/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +0 -81
  2011. package/node_modules/type-fest/source/union-to-intersection.d.ts +0 -61
  2012. package/node_modules/type-fest/source/unknown-array.d.ts +0 -25
  2013. package/node_modules/type-fest/source/unknown-record.d.ts +0 -31
  2014. package/node_modules/type-fest/source/value-of.d.ts +0 -42
  2015. package/node_modules/type-fest/source/writable-deep.d.ts +0 -83
  2016. package/node_modules/type-fest/source/writable-keys-of.d.ts +0 -30
  2017. package/node_modules/type-fest/source/writable.d.ts +0 -68
  2018. package/node_modules/use-callback-ref/LICENSE +0 -21
  2019. package/node_modules/use-callback-ref/README.md +0 -170
  2020. package/node_modules/use-callback-ref/dist/es2015/assignRef.d.ts +0 -15
  2021. package/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -22
  2022. package/node_modules/use-callback-ref/dist/es2015/createRef.d.ts +0 -10
  2023. package/node_modules/use-callback-ref/dist/es2015/createRef.js +0 -23
  2024. package/node_modules/use-callback-ref/dist/es2015/index.d.ts +0 -8
  2025. package/node_modules/use-callback-ref/dist/es2015/index.js +0 -12
  2026. package/node_modules/use-callback-ref/dist/es2015/mergeRef.d.ts +0 -16
  2027. package/node_modules/use-callback-ref/dist/es2015/mergeRef.js +0 -18
  2028. package/node_modules/use-callback-ref/dist/es2015/refToCallback.d.ts +0 -24
  2029. package/node_modules/use-callback-ref/dist/es2015/refToCallback.js +0 -48
  2030. package/node_modules/use-callback-ref/dist/es2015/transformRef.d.ts +0 -11
  2031. package/node_modules/use-callback-ref/dist/es2015/transformRef.js +0 -14
  2032. package/node_modules/use-callback-ref/dist/es2015/types.d.ts +0 -5
  2033. package/node_modules/use-callback-ref/dist/es2015/types.js +0 -1
  2034. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.d.ts +0 -17
  2035. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -45
  2036. package/node_modules/use-callback-ref/dist/es2015/useRef.d.ts +0 -16
  2037. package/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -39
  2038. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.d.ts +0 -15
  2039. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.js +0 -18
  2040. package/node_modules/use-callback-ref/dist/es2019/assignRef.d.ts +0 -15
  2041. package/node_modules/use-callback-ref/dist/es2019/assignRef.js +0 -22
  2042. package/node_modules/use-callback-ref/dist/es2019/createRef.d.ts +0 -10
  2043. package/node_modules/use-callback-ref/dist/es2019/createRef.js +0 -23
  2044. package/node_modules/use-callback-ref/dist/es2019/index.d.ts +0 -8
  2045. package/node_modules/use-callback-ref/dist/es2019/index.js +0 -12
  2046. package/node_modules/use-callback-ref/dist/es2019/mergeRef.d.ts +0 -16
  2047. package/node_modules/use-callback-ref/dist/es2019/mergeRef.js +0 -18
  2048. package/node_modules/use-callback-ref/dist/es2019/refToCallback.d.ts +0 -24
  2049. package/node_modules/use-callback-ref/dist/es2019/refToCallback.js +0 -48
  2050. package/node_modules/use-callback-ref/dist/es2019/transformRef.d.ts +0 -11
  2051. package/node_modules/use-callback-ref/dist/es2019/transformRef.js +0 -14
  2052. package/node_modules/use-callback-ref/dist/es2019/types.d.ts +0 -5
  2053. package/node_modules/use-callback-ref/dist/es2019/types.js +0 -1
  2054. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.d.ts +0 -17
  2055. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.js +0 -43
  2056. package/node_modules/use-callback-ref/dist/es2019/useRef.d.ts +0 -16
  2057. package/node_modules/use-callback-ref/dist/es2019/useRef.js +0 -39
  2058. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.d.ts +0 -15
  2059. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.js +0 -18
  2060. package/node_modules/use-callback-ref/dist/es5/assignRef.d.ts +0 -15
  2061. package/node_modules/use-callback-ref/dist/es5/assignRef.js +0 -26
  2062. package/node_modules/use-callback-ref/dist/es5/createRef.d.ts +0 -10
  2063. package/node_modules/use-callback-ref/dist/es5/createRef.js +0 -27
  2064. package/node_modules/use-callback-ref/dist/es5/index.d.ts +0 -8
  2065. package/node_modules/use-callback-ref/dist/es5/index.js +0 -24
  2066. package/node_modules/use-callback-ref/dist/es5/mergeRef.d.ts +0 -16
  2067. package/node_modules/use-callback-ref/dist/es5/mergeRef.js +0 -22
  2068. package/node_modules/use-callback-ref/dist/es5/refToCallback.d.ts +0 -24
  2069. package/node_modules/use-callback-ref/dist/es5/refToCallback.js +0 -53
  2070. package/node_modules/use-callback-ref/dist/es5/transformRef.d.ts +0 -11
  2071. package/node_modules/use-callback-ref/dist/es5/transformRef.js +0 -18
  2072. package/node_modules/use-callback-ref/dist/es5/types.d.ts +0 -5
  2073. package/node_modules/use-callback-ref/dist/es5/types.js +0 -2
  2074. package/node_modules/use-callback-ref/dist/es5/useMergeRef.d.ts +0 -17
  2075. package/node_modules/use-callback-ref/dist/es5/useMergeRef.js +0 -50
  2076. package/node_modules/use-callback-ref/dist/es5/useRef.d.ts +0 -16
  2077. package/node_modules/use-callback-ref/dist/es5/useRef.js +0 -43
  2078. package/node_modules/use-callback-ref/dist/es5/useTransformRef.d.ts +0 -15
  2079. package/node_modules/use-callback-ref/dist/es5/useTransformRef.js +0 -22
  2080. package/node_modules/use-callback-ref/package.json +0 -84
  2081. package/node_modules/use-sidecar/LICENSE +0 -21
  2082. package/node_modules/use-sidecar/README.md +0 -349
  2083. package/node_modules/use-sidecar/dist/es2015/config.d.ts +0 -5
  2084. package/node_modules/use-sidecar/dist/es2015/config.js +0 -6
  2085. package/node_modules/use-sidecar/dist/es2015/env.d.ts +0 -4
  2086. package/node_modules/use-sidecar/dist/es2015/env.js +0 -5
  2087. package/node_modules/use-sidecar/dist/es2015/exports.d.ts +0 -3
  2088. package/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  2089. package/node_modules/use-sidecar/dist/es2015/hoc.d.ts +0 -3
  2090. package/node_modules/use-sidecar/dist/es2015/hoc.js +0 -15
  2091. package/node_modules/use-sidecar/dist/es2015/hook.d.ts +0 -2
  2092. package/node_modules/use-sidecar/dist/es2015/hook.js +0 -41
  2093. package/node_modules/use-sidecar/dist/es2015/index.d.ts +0 -7
  2094. package/node_modules/use-sidecar/dist/es2015/index.js +0 -6
  2095. package/node_modules/use-sidecar/dist/es2015/medium.d.ts +0 -3
  2096. package/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  2097. package/node_modules/use-sidecar/dist/es2015/renderProp.d.ts +0 -8
  2098. package/node_modules/use-sidecar/dist/es2015/renderProp.js +0 -35
  2099. package/node_modules/use-sidecar/dist/es2015/types.d.ts +0 -47
  2100. package/node_modules/use-sidecar/dist/es2015/types.js +0 -1
  2101. package/node_modules/use-sidecar/dist/es2019/config.d.ts +0 -5
  2102. package/node_modules/use-sidecar/dist/es2019/config.js +0 -6
  2103. package/node_modules/use-sidecar/dist/es2019/env.d.ts +0 -4
  2104. package/node_modules/use-sidecar/dist/es2019/env.js +0 -5
  2105. package/node_modules/use-sidecar/dist/es2019/exports.d.ts +0 -3
  2106. package/node_modules/use-sidecar/dist/es2019/exports.js +0 -16
  2107. package/node_modules/use-sidecar/dist/es2019/hoc.d.ts +0 -3
  2108. package/node_modules/use-sidecar/dist/es2019/hoc.js +0 -14
  2109. package/node_modules/use-sidecar/dist/es2019/hook.d.ts +0 -2
  2110. package/node_modules/use-sidecar/dist/es2019/hook.js +0 -41
  2111. package/node_modules/use-sidecar/dist/es2019/index.d.ts +0 -7
  2112. package/node_modules/use-sidecar/dist/es2019/index.js +0 -6
  2113. package/node_modules/use-sidecar/dist/es2019/medium.d.ts +0 -3
  2114. package/node_modules/use-sidecar/dist/es2019/medium.js +0 -78
  2115. package/node_modules/use-sidecar/dist/es2019/renderProp.d.ts +0 -8
  2116. package/node_modules/use-sidecar/dist/es2019/renderProp.js +0 -28
  2117. package/node_modules/use-sidecar/dist/es2019/types.d.ts +0 -47
  2118. package/node_modules/use-sidecar/dist/es2019/types.js +0 -1
  2119. package/node_modules/use-sidecar/dist/es5/config.d.ts +0 -5
  2120. package/node_modules/use-sidecar/dist/es5/config.js +0 -10
  2121. package/node_modules/use-sidecar/dist/es5/env.d.ts +0 -4
  2122. package/node_modules/use-sidecar/dist/es5/env.js +0 -8
  2123. package/node_modules/use-sidecar/dist/es5/exports.d.ts +0 -3
  2124. package/node_modules/use-sidecar/dist/es5/exports.js +0 -22
  2125. package/node_modules/use-sidecar/dist/es5/hoc.d.ts +0 -3
  2126. package/node_modules/use-sidecar/dist/es5/hoc.js +0 -19
  2127. package/node_modules/use-sidecar/dist/es5/hook.d.ts +0 -2
  2128. package/node_modules/use-sidecar/dist/es5/hook.js +0 -45
  2129. package/node_modules/use-sidecar/dist/es5/index.d.ts +0 -7
  2130. package/node_modules/use-sidecar/dist/es5/index.js +0 -16
  2131. package/node_modules/use-sidecar/dist/es5/medium.d.ts +0 -3
  2132. package/node_modules/use-sidecar/dist/es5/medium.js +0 -83
  2133. package/node_modules/use-sidecar/dist/es5/renderProp.d.ts +0 -8
  2134. package/node_modules/use-sidecar/dist/es5/renderProp.js +0 -39
  2135. package/node_modules/use-sidecar/dist/es5/types.d.ts +0 -47
  2136. package/node_modules/use-sidecar/dist/es5/types.js +0 -2
  2137. package/node_modules/use-sidecar/package.json +0 -89
  2138. package/node_modules/zod/LICENSE +0 -21
  2139. package/node_modules/zod/README.md +0 -2876
  2140. package/node_modules/zod/index.d.ts +0 -2
  2141. package/node_modules/zod/lib/ZodError.d.ts +0 -164
  2142. package/node_modules/zod/lib/ZodError.js +0 -137
  2143. package/node_modules/zod/lib/__tests__/Mocker.d.ts +0 -17
  2144. package/node_modules/zod/lib/__tests__/Mocker.js +0 -57
  2145. package/node_modules/zod/lib/benchmarks/datetime.d.ts +0 -5
  2146. package/node_modules/zod/lib/benchmarks/datetime.js +0 -54
  2147. package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +0 -5
  2148. package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +0 -79
  2149. package/node_modules/zod/lib/benchmarks/index.d.ts +0 -1
  2150. package/node_modules/zod/lib/benchmarks/index.js +0 -59
  2151. package/node_modules/zod/lib/benchmarks/ipv4.d.ts +0 -5
  2152. package/node_modules/zod/lib/benchmarks/ipv4.js +0 -54
  2153. package/node_modules/zod/lib/benchmarks/object.d.ts +0 -5
  2154. package/node_modules/zod/lib/benchmarks/object.js +0 -70
  2155. package/node_modules/zod/lib/benchmarks/primitives.d.ts +0 -5
  2156. package/node_modules/zod/lib/benchmarks/primitives.js +0 -170
  2157. package/node_modules/zod/lib/benchmarks/realworld.d.ts +0 -5
  2158. package/node_modules/zod/lib/benchmarks/realworld.js +0 -56
  2159. package/node_modules/zod/lib/benchmarks/string.d.ts +0 -5
  2160. package/node_modules/zod/lib/benchmarks/string.js +0 -55
  2161. package/node_modules/zod/lib/benchmarks/union.d.ts +0 -5
  2162. package/node_modules/zod/lib/benchmarks/union.js +0 -79
  2163. package/node_modules/zod/lib/errors.d.ts +0 -5
  2164. package/node_modules/zod/lib/errors.js +0 -17
  2165. package/node_modules/zod/lib/external.d.ts +0 -6
  2166. package/node_modules/zod/lib/external.js +0 -18
  2167. package/node_modules/zod/lib/helpers/enumUtil.d.ts +0 -8
  2168. package/node_modules/zod/lib/helpers/enumUtil.js +0 -2
  2169. package/node_modules/zod/lib/helpers/errorUtil.d.ts +0 -9
  2170. package/node_modules/zod/lib/helpers/errorUtil.js +0 -8
  2171. package/node_modules/zod/lib/helpers/parseUtil.d.ts +0 -78
  2172. package/node_modules/zod/lib/helpers/parseUtil.js +0 -125
  2173. package/node_modules/zod/lib/helpers/partialUtil.d.ts +0 -8
  2174. package/node_modules/zod/lib/helpers/partialUtil.js +0 -2
  2175. package/node_modules/zod/lib/helpers/typeAliases.d.ts +0 -2
  2176. package/node_modules/zod/lib/helpers/typeAliases.js +0 -2
  2177. package/node_modules/zod/lib/helpers/util.d.ts +0 -82
  2178. package/node_modules/zod/lib/helpers/util.js +0 -142
  2179. package/node_modules/zod/lib/index.d.ts +0 -4
  2180. package/node_modules/zod/lib/index.js +0 -29
  2181. package/node_modules/zod/lib/index.mjs +0 -4236
  2182. package/node_modules/zod/lib/index.umd.js +0 -4351
  2183. package/node_modules/zod/lib/locales/en.d.ts +0 -3
  2184. package/node_modules/zod/lib/locales/en.js +0 -129
  2185. package/node_modules/zod/lib/types.d.ts +0 -1127
  2186. package/node_modules/zod/lib/types.js +0 -3677
  2187. package/node_modules/zod/package.json +0 -119
@@ -1,4236 +0,0 @@
1
- var util;
2
- (function (util) {
3
- util.assertEqual = (val) => val;
4
- function assertIs(_arg) { }
5
- util.assertIs = assertIs;
6
- function assertNever(_x) {
7
- throw new Error();
8
- }
9
- util.assertNever = assertNever;
10
- util.arrayToEnum = (items) => {
11
- const obj = {};
12
- for (const item of items) {
13
- obj[item] = item;
14
- }
15
- return obj;
16
- };
17
- util.getValidEnumValues = (obj) => {
18
- const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
19
- const filtered = {};
20
- for (const k of validKeys) {
21
- filtered[k] = obj[k];
22
- }
23
- return util.objectValues(filtered);
24
- };
25
- util.objectValues = (obj) => {
26
- return util.objectKeys(obj).map(function (e) {
27
- return obj[e];
28
- });
29
- };
30
- util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
31
- ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
32
- : (object) => {
33
- const keys = [];
34
- for (const key in object) {
35
- if (Object.prototype.hasOwnProperty.call(object, key)) {
36
- keys.push(key);
37
- }
38
- }
39
- return keys;
40
- };
41
- util.find = (arr, checker) => {
42
- for (const item of arr) {
43
- if (checker(item))
44
- return item;
45
- }
46
- return undefined;
47
- };
48
- util.isInteger = typeof Number.isInteger === "function"
49
- ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
50
- : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
51
- function joinValues(array, separator = " | ") {
52
- return array
53
- .map((val) => (typeof val === "string" ? `'${val}'` : val))
54
- .join(separator);
55
- }
56
- util.joinValues = joinValues;
57
- util.jsonStringifyReplacer = (_, value) => {
58
- if (typeof value === "bigint") {
59
- return value.toString();
60
- }
61
- return value;
62
- };
63
- })(util || (util = {}));
64
- var objectUtil;
65
- (function (objectUtil) {
66
- objectUtil.mergeShapes = (first, second) => {
67
- return {
68
- ...first,
69
- ...second, // second overwrites first
70
- };
71
- };
72
- })(objectUtil || (objectUtil = {}));
73
- const ZodParsedType = util.arrayToEnum([
74
- "string",
75
- "nan",
76
- "number",
77
- "integer",
78
- "float",
79
- "boolean",
80
- "date",
81
- "bigint",
82
- "symbol",
83
- "function",
84
- "undefined",
85
- "null",
86
- "array",
87
- "object",
88
- "unknown",
89
- "promise",
90
- "void",
91
- "never",
92
- "map",
93
- "set",
94
- ]);
95
- const getParsedType = (data) => {
96
- const t = typeof data;
97
- switch (t) {
98
- case "undefined":
99
- return ZodParsedType.undefined;
100
- case "string":
101
- return ZodParsedType.string;
102
- case "number":
103
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
104
- case "boolean":
105
- return ZodParsedType.boolean;
106
- case "function":
107
- return ZodParsedType.function;
108
- case "bigint":
109
- return ZodParsedType.bigint;
110
- case "symbol":
111
- return ZodParsedType.symbol;
112
- case "object":
113
- if (Array.isArray(data)) {
114
- return ZodParsedType.array;
115
- }
116
- if (data === null) {
117
- return ZodParsedType.null;
118
- }
119
- if (data.then &&
120
- typeof data.then === "function" &&
121
- data.catch &&
122
- typeof data.catch === "function") {
123
- return ZodParsedType.promise;
124
- }
125
- if (typeof Map !== "undefined" && data instanceof Map) {
126
- return ZodParsedType.map;
127
- }
128
- if (typeof Set !== "undefined" && data instanceof Set) {
129
- return ZodParsedType.set;
130
- }
131
- if (typeof Date !== "undefined" && data instanceof Date) {
132
- return ZodParsedType.date;
133
- }
134
- return ZodParsedType.object;
135
- default:
136
- return ZodParsedType.unknown;
137
- }
138
- };
139
-
140
- const ZodIssueCode = util.arrayToEnum([
141
- "invalid_type",
142
- "invalid_literal",
143
- "custom",
144
- "invalid_union",
145
- "invalid_union_discriminator",
146
- "invalid_enum_value",
147
- "unrecognized_keys",
148
- "invalid_arguments",
149
- "invalid_return_type",
150
- "invalid_date",
151
- "invalid_string",
152
- "too_small",
153
- "too_big",
154
- "invalid_intersection_types",
155
- "not_multiple_of",
156
- "not_finite",
157
- ]);
158
- const quotelessJson = (obj) => {
159
- const json = JSON.stringify(obj, null, 2);
160
- return json.replace(/"([^"]+)":/g, "$1:");
161
- };
162
- class ZodError extends Error {
163
- constructor(issues) {
164
- super();
165
- this.issues = [];
166
- this.addIssue = (sub) => {
167
- this.issues = [...this.issues, sub];
168
- };
169
- this.addIssues = (subs = []) => {
170
- this.issues = [...this.issues, ...subs];
171
- };
172
- const actualProto = new.target.prototype;
173
- if (Object.setPrototypeOf) {
174
- // eslint-disable-next-line ban/ban
175
- Object.setPrototypeOf(this, actualProto);
176
- }
177
- else {
178
- this.__proto__ = actualProto;
179
- }
180
- this.name = "ZodError";
181
- this.issues = issues;
182
- }
183
- get errors() {
184
- return this.issues;
185
- }
186
- format(_mapper) {
187
- const mapper = _mapper ||
188
- function (issue) {
189
- return issue.message;
190
- };
191
- const fieldErrors = { _errors: [] };
192
- const processError = (error) => {
193
- for (const issue of error.issues) {
194
- if (issue.code === "invalid_union") {
195
- issue.unionErrors.map(processError);
196
- }
197
- else if (issue.code === "invalid_return_type") {
198
- processError(issue.returnTypeError);
199
- }
200
- else if (issue.code === "invalid_arguments") {
201
- processError(issue.argumentsError);
202
- }
203
- else if (issue.path.length === 0) {
204
- fieldErrors._errors.push(mapper(issue));
205
- }
206
- else {
207
- let curr = fieldErrors;
208
- let i = 0;
209
- while (i < issue.path.length) {
210
- const el = issue.path[i];
211
- const terminal = i === issue.path.length - 1;
212
- if (!terminal) {
213
- curr[el] = curr[el] || { _errors: [] };
214
- // if (typeof el === "string") {
215
- // curr[el] = curr[el] || { _errors: [] };
216
- // } else if (typeof el === "number") {
217
- // const errorArray: any = [];
218
- // errorArray._errors = [];
219
- // curr[el] = curr[el] || errorArray;
220
- // }
221
- }
222
- else {
223
- curr[el] = curr[el] || { _errors: [] };
224
- curr[el]._errors.push(mapper(issue));
225
- }
226
- curr = curr[el];
227
- i++;
228
- }
229
- }
230
- }
231
- };
232
- processError(this);
233
- return fieldErrors;
234
- }
235
- static assert(value) {
236
- if (!(value instanceof ZodError)) {
237
- throw new Error(`Not a ZodError: ${value}`);
238
- }
239
- }
240
- toString() {
241
- return this.message;
242
- }
243
- get message() {
244
- return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
245
- }
246
- get isEmpty() {
247
- return this.issues.length === 0;
248
- }
249
- flatten(mapper = (issue) => issue.message) {
250
- const fieldErrors = {};
251
- const formErrors = [];
252
- for (const sub of this.issues) {
253
- if (sub.path.length > 0) {
254
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
255
- fieldErrors[sub.path[0]].push(mapper(sub));
256
- }
257
- else {
258
- formErrors.push(mapper(sub));
259
- }
260
- }
261
- return { formErrors, fieldErrors };
262
- }
263
- get formErrors() {
264
- return this.flatten();
265
- }
266
- }
267
- ZodError.create = (issues) => {
268
- const error = new ZodError(issues);
269
- return error;
270
- };
271
-
272
- const errorMap = (issue, _ctx) => {
273
- let message;
274
- switch (issue.code) {
275
- case ZodIssueCode.invalid_type:
276
- if (issue.received === ZodParsedType.undefined) {
277
- message = "Required";
278
- }
279
- else {
280
- message = `Expected ${issue.expected}, received ${issue.received}`;
281
- }
282
- break;
283
- case ZodIssueCode.invalid_literal:
284
- message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
285
- break;
286
- case ZodIssueCode.unrecognized_keys:
287
- message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
288
- break;
289
- case ZodIssueCode.invalid_union:
290
- message = `Invalid input`;
291
- break;
292
- case ZodIssueCode.invalid_union_discriminator:
293
- message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
294
- break;
295
- case ZodIssueCode.invalid_enum_value:
296
- message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
297
- break;
298
- case ZodIssueCode.invalid_arguments:
299
- message = `Invalid function arguments`;
300
- break;
301
- case ZodIssueCode.invalid_return_type:
302
- message = `Invalid function return type`;
303
- break;
304
- case ZodIssueCode.invalid_date:
305
- message = `Invalid date`;
306
- break;
307
- case ZodIssueCode.invalid_string:
308
- if (typeof issue.validation === "object") {
309
- if ("includes" in issue.validation) {
310
- message = `Invalid input: must include "${issue.validation.includes}"`;
311
- if (typeof issue.validation.position === "number") {
312
- message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
313
- }
314
- }
315
- else if ("startsWith" in issue.validation) {
316
- message = `Invalid input: must start with "${issue.validation.startsWith}"`;
317
- }
318
- else if ("endsWith" in issue.validation) {
319
- message = `Invalid input: must end with "${issue.validation.endsWith}"`;
320
- }
321
- else {
322
- util.assertNever(issue.validation);
323
- }
324
- }
325
- else if (issue.validation !== "regex") {
326
- message = `Invalid ${issue.validation}`;
327
- }
328
- else {
329
- message = "Invalid";
330
- }
331
- break;
332
- case ZodIssueCode.too_small:
333
- if (issue.type === "array")
334
- message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
335
- else if (issue.type === "string")
336
- message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
337
- else if (issue.type === "number")
338
- message = `Number must be ${issue.exact
339
- ? `exactly equal to `
340
- : issue.inclusive
341
- ? `greater than or equal to `
342
- : `greater than `}${issue.minimum}`;
343
- else if (issue.type === "date")
344
- message = `Date must be ${issue.exact
345
- ? `exactly equal to `
346
- : issue.inclusive
347
- ? `greater than or equal to `
348
- : `greater than `}${new Date(Number(issue.minimum))}`;
349
- else
350
- message = "Invalid input";
351
- break;
352
- case ZodIssueCode.too_big:
353
- if (issue.type === "array")
354
- message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
355
- else if (issue.type === "string")
356
- message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
357
- else if (issue.type === "number")
358
- message = `Number must be ${issue.exact
359
- ? `exactly`
360
- : issue.inclusive
361
- ? `less than or equal to`
362
- : `less than`} ${issue.maximum}`;
363
- else if (issue.type === "bigint")
364
- message = `BigInt 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 === "date")
370
- message = `Date must be ${issue.exact
371
- ? `exactly`
372
- : issue.inclusive
373
- ? `smaller than or equal to`
374
- : `smaller than`} ${new Date(Number(issue.maximum))}`;
375
- else
376
- message = "Invalid input";
377
- break;
378
- case ZodIssueCode.custom:
379
- message = `Invalid input`;
380
- break;
381
- case ZodIssueCode.invalid_intersection_types:
382
- message = `Intersection results could not be merged`;
383
- break;
384
- case ZodIssueCode.not_multiple_of:
385
- message = `Number must be a multiple of ${issue.multipleOf}`;
386
- break;
387
- case ZodIssueCode.not_finite:
388
- message = "Number must be finite";
389
- break;
390
- default:
391
- message = _ctx.defaultError;
392
- util.assertNever(issue);
393
- }
394
- return { message };
395
- };
396
-
397
- let overrideErrorMap = errorMap;
398
- function setErrorMap(map) {
399
- overrideErrorMap = map;
400
- }
401
- function getErrorMap() {
402
- return overrideErrorMap;
403
- }
404
-
405
- const makeIssue = (params) => {
406
- const { data, path, errorMaps, issueData } = params;
407
- const fullPath = [...path, ...(issueData.path || [])];
408
- const fullIssue = {
409
- ...issueData,
410
- path: fullPath,
411
- };
412
- if (issueData.message !== undefined) {
413
- return {
414
- ...issueData,
415
- path: fullPath,
416
- message: issueData.message,
417
- };
418
- }
419
- let errorMessage = "";
420
- const maps = errorMaps
421
- .filter((m) => !!m)
422
- .slice()
423
- .reverse();
424
- for (const map of maps) {
425
- errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
426
- }
427
- return {
428
- ...issueData,
429
- path: fullPath,
430
- message: errorMessage,
431
- };
432
- };
433
- const EMPTY_PATH = [];
434
- function addIssueToContext(ctx, issueData) {
435
- const overrideMap = getErrorMap();
436
- const issue = makeIssue({
437
- issueData: issueData,
438
- data: ctx.data,
439
- path: ctx.path,
440
- errorMaps: [
441
- ctx.common.contextualErrorMap,
442
- ctx.schemaErrorMap,
443
- overrideMap,
444
- overrideMap === errorMap ? undefined : errorMap, // then global default map
445
- ].filter((x) => !!x),
446
- });
447
- ctx.common.issues.push(issue);
448
- }
449
- class ParseStatus {
450
- constructor() {
451
- this.value = "valid";
452
- }
453
- dirty() {
454
- if (this.value === "valid")
455
- this.value = "dirty";
456
- }
457
- abort() {
458
- if (this.value !== "aborted")
459
- this.value = "aborted";
460
- }
461
- static mergeArray(status, results) {
462
- const arrayValue = [];
463
- for (const s of results) {
464
- if (s.status === "aborted")
465
- return INVALID;
466
- if (s.status === "dirty")
467
- status.dirty();
468
- arrayValue.push(s.value);
469
- }
470
- return { status: status.value, value: arrayValue };
471
- }
472
- static async mergeObjectAsync(status, pairs) {
473
- const syncPairs = [];
474
- for (const pair of pairs) {
475
- const key = await pair.key;
476
- const value = await pair.value;
477
- syncPairs.push({
478
- key,
479
- value,
480
- });
481
- }
482
- return ParseStatus.mergeObjectSync(status, syncPairs);
483
- }
484
- static mergeObjectSync(status, pairs) {
485
- const finalObject = {};
486
- for (const pair of pairs) {
487
- const { key, value } = pair;
488
- if (key.status === "aborted")
489
- return INVALID;
490
- if (value.status === "aborted")
491
- return INVALID;
492
- if (key.status === "dirty")
493
- status.dirty();
494
- if (value.status === "dirty")
495
- status.dirty();
496
- if (key.value !== "__proto__" &&
497
- (typeof value.value !== "undefined" || pair.alwaysSet)) {
498
- finalObject[key.value] = value.value;
499
- }
500
- }
501
- return { status: status.value, value: finalObject };
502
- }
503
- }
504
- const INVALID = Object.freeze({
505
- status: "aborted",
506
- });
507
- const DIRTY = (value) => ({ status: "dirty", value });
508
- const OK = (value) => ({ status: "valid", value });
509
- const isAborted = (x) => x.status === "aborted";
510
- const isDirty = (x) => x.status === "dirty";
511
- const isValid = (x) => x.status === "valid";
512
- const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
513
-
514
- /******************************************************************************
515
- Copyright (c) Microsoft Corporation.
516
-
517
- Permission to use, copy, modify, and/or distribute this software for any
518
- purpose with or without fee is hereby granted.
519
-
520
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
521
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
522
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
523
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
524
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
525
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
526
- PERFORMANCE OF THIS SOFTWARE.
527
- ***************************************************************************** */
528
-
529
- function __classPrivateFieldGet(receiver, state, kind, f) {
530
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
531
- 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");
532
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
533
- }
534
-
535
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
536
- if (kind === "m") throw new TypeError("Private method is not writable");
537
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
538
- 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");
539
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
540
- }
541
-
542
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
543
- var e = new Error(message);
544
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
545
- };
546
-
547
- var errorUtil;
548
- (function (errorUtil) {
549
- errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
550
- errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
551
- })(errorUtil || (errorUtil = {}));
552
-
553
- var _ZodEnum_cache, _ZodNativeEnum_cache;
554
- class ParseInputLazyPath {
555
- constructor(parent, value, path, key) {
556
- this._cachedPath = [];
557
- this.parent = parent;
558
- this.data = value;
559
- this._path = path;
560
- this._key = key;
561
- }
562
- get path() {
563
- if (!this._cachedPath.length) {
564
- if (this._key instanceof Array) {
565
- this._cachedPath.push(...this._path, ...this._key);
566
- }
567
- else {
568
- this._cachedPath.push(...this._path, this._key);
569
- }
570
- }
571
- return this._cachedPath;
572
- }
573
- }
574
- const handleResult = (ctx, result) => {
575
- if (isValid(result)) {
576
- return { success: true, data: result.value };
577
- }
578
- else {
579
- if (!ctx.common.issues.length) {
580
- throw new Error("Validation failed but no issues detected.");
581
- }
582
- return {
583
- success: false,
584
- get error() {
585
- if (this._error)
586
- return this._error;
587
- const error = new ZodError(ctx.common.issues);
588
- this._error = error;
589
- return this._error;
590
- },
591
- };
592
- }
593
- };
594
- function processCreateParams(params) {
595
- if (!params)
596
- return {};
597
- const { errorMap, invalid_type_error, required_error, description } = params;
598
- if (errorMap && (invalid_type_error || required_error)) {
599
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
600
- }
601
- if (errorMap)
602
- return { errorMap: errorMap, description };
603
- const customMap = (iss, ctx) => {
604
- var _a, _b;
605
- const { message } = params;
606
- if (iss.code === "invalid_enum_value") {
607
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
608
- }
609
- if (typeof ctx.data === "undefined") {
610
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
611
- }
612
- if (iss.code !== "invalid_type")
613
- return { message: ctx.defaultError };
614
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
615
- };
616
- return { errorMap: customMap, description };
617
- }
618
- class ZodType {
619
- constructor(def) {
620
- /** Alias of safeParseAsync */
621
- this.spa = this.safeParseAsync;
622
- this._def = def;
623
- this.parse = this.parse.bind(this);
624
- this.safeParse = this.safeParse.bind(this);
625
- this.parseAsync = this.parseAsync.bind(this);
626
- this.safeParseAsync = this.safeParseAsync.bind(this);
627
- this.spa = this.spa.bind(this);
628
- this.refine = this.refine.bind(this);
629
- this.refinement = this.refinement.bind(this);
630
- this.superRefine = this.superRefine.bind(this);
631
- this.optional = this.optional.bind(this);
632
- this.nullable = this.nullable.bind(this);
633
- this.nullish = this.nullish.bind(this);
634
- this.array = this.array.bind(this);
635
- this.promise = this.promise.bind(this);
636
- this.or = this.or.bind(this);
637
- this.and = this.and.bind(this);
638
- this.transform = this.transform.bind(this);
639
- this.brand = this.brand.bind(this);
640
- this.default = this.default.bind(this);
641
- this.catch = this.catch.bind(this);
642
- this.describe = this.describe.bind(this);
643
- this.pipe = this.pipe.bind(this);
644
- this.readonly = this.readonly.bind(this);
645
- this.isNullable = this.isNullable.bind(this);
646
- this.isOptional = this.isOptional.bind(this);
647
- }
648
- get description() {
649
- return this._def.description;
650
- }
651
- _getType(input) {
652
- return getParsedType(input.data);
653
- }
654
- _getOrReturnCtx(input, ctx) {
655
- return (ctx || {
656
- common: input.parent.common,
657
- data: input.data,
658
- parsedType: getParsedType(input.data),
659
- schemaErrorMap: this._def.errorMap,
660
- path: input.path,
661
- parent: input.parent,
662
- });
663
- }
664
- _processInputParams(input) {
665
- return {
666
- status: new ParseStatus(),
667
- ctx: {
668
- common: input.parent.common,
669
- data: input.data,
670
- parsedType: getParsedType(input.data),
671
- schemaErrorMap: this._def.errorMap,
672
- path: input.path,
673
- parent: input.parent,
674
- },
675
- };
676
- }
677
- _parseSync(input) {
678
- const result = this._parse(input);
679
- if (isAsync(result)) {
680
- throw new Error("Synchronous parse encountered promise.");
681
- }
682
- return result;
683
- }
684
- _parseAsync(input) {
685
- const result = this._parse(input);
686
- return Promise.resolve(result);
687
- }
688
- parse(data, params) {
689
- const result = this.safeParse(data, params);
690
- if (result.success)
691
- return result.data;
692
- throw result.error;
693
- }
694
- safeParse(data, params) {
695
- var _a;
696
- const ctx = {
697
- common: {
698
- issues: [],
699
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
700
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
701
- },
702
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
703
- schemaErrorMap: this._def.errorMap,
704
- parent: null,
705
- data,
706
- parsedType: getParsedType(data),
707
- };
708
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
709
- return handleResult(ctx, result);
710
- }
711
- async parseAsync(data, params) {
712
- const result = await this.safeParseAsync(data, params);
713
- if (result.success)
714
- return result.data;
715
- throw result.error;
716
- }
717
- async safeParseAsync(data, params) {
718
- const ctx = {
719
- common: {
720
- issues: [],
721
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
722
- async: true,
723
- },
724
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
725
- schemaErrorMap: this._def.errorMap,
726
- parent: null,
727
- data,
728
- parsedType: getParsedType(data),
729
- };
730
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
731
- const result = await (isAsync(maybeAsyncResult)
732
- ? maybeAsyncResult
733
- : Promise.resolve(maybeAsyncResult));
734
- return handleResult(ctx, result);
735
- }
736
- refine(check, message) {
737
- const getIssueProperties = (val) => {
738
- if (typeof message === "string" || typeof message === "undefined") {
739
- return { message };
740
- }
741
- else if (typeof message === "function") {
742
- return message(val);
743
- }
744
- else {
745
- return message;
746
- }
747
- };
748
- return this._refinement((val, ctx) => {
749
- const result = check(val);
750
- const setError = () => ctx.addIssue({
751
- code: ZodIssueCode.custom,
752
- ...getIssueProperties(val),
753
- });
754
- if (typeof Promise !== "undefined" && result instanceof Promise) {
755
- return result.then((data) => {
756
- if (!data) {
757
- setError();
758
- return false;
759
- }
760
- else {
761
- return true;
762
- }
763
- });
764
- }
765
- if (!result) {
766
- setError();
767
- return false;
768
- }
769
- else {
770
- return true;
771
- }
772
- });
773
- }
774
- refinement(check, refinementData) {
775
- return this._refinement((val, ctx) => {
776
- if (!check(val)) {
777
- ctx.addIssue(typeof refinementData === "function"
778
- ? refinementData(val, ctx)
779
- : refinementData);
780
- return false;
781
- }
782
- else {
783
- return true;
784
- }
785
- });
786
- }
787
- _refinement(refinement) {
788
- return new ZodEffects({
789
- schema: this,
790
- typeName: ZodFirstPartyTypeKind.ZodEffects,
791
- effect: { type: "refinement", refinement },
792
- });
793
- }
794
- superRefine(refinement) {
795
- return this._refinement(refinement);
796
- }
797
- optional() {
798
- return ZodOptional.create(this, this._def);
799
- }
800
- nullable() {
801
- return ZodNullable.create(this, this._def);
802
- }
803
- nullish() {
804
- return this.nullable().optional();
805
- }
806
- array() {
807
- return ZodArray.create(this, this._def);
808
- }
809
- promise() {
810
- return ZodPromise.create(this, this._def);
811
- }
812
- or(option) {
813
- return ZodUnion.create([this, option], this._def);
814
- }
815
- and(incoming) {
816
- return ZodIntersection.create(this, incoming, this._def);
817
- }
818
- transform(transform) {
819
- return new ZodEffects({
820
- ...processCreateParams(this._def),
821
- schema: this,
822
- typeName: ZodFirstPartyTypeKind.ZodEffects,
823
- effect: { type: "transform", transform },
824
- });
825
- }
826
- default(def) {
827
- const defaultValueFunc = typeof def === "function" ? def : () => def;
828
- return new ZodDefault({
829
- ...processCreateParams(this._def),
830
- innerType: this,
831
- defaultValue: defaultValueFunc,
832
- typeName: ZodFirstPartyTypeKind.ZodDefault,
833
- });
834
- }
835
- brand() {
836
- return new ZodBranded({
837
- typeName: ZodFirstPartyTypeKind.ZodBranded,
838
- type: this,
839
- ...processCreateParams(this._def),
840
- });
841
- }
842
- catch(def) {
843
- const catchValueFunc = typeof def === "function" ? def : () => def;
844
- return new ZodCatch({
845
- ...processCreateParams(this._def),
846
- innerType: this,
847
- catchValue: catchValueFunc,
848
- typeName: ZodFirstPartyTypeKind.ZodCatch,
849
- });
850
- }
851
- describe(description) {
852
- const This = this.constructor;
853
- return new This({
854
- ...this._def,
855
- description,
856
- });
857
- }
858
- pipe(target) {
859
- return ZodPipeline.create(this, target);
860
- }
861
- readonly() {
862
- return ZodReadonly.create(this);
863
- }
864
- isOptional() {
865
- return this.safeParse(undefined).success;
866
- }
867
- isNullable() {
868
- return this.safeParse(null).success;
869
- }
870
- }
871
- const cuidRegex = /^c[^\s-]{8,}$/i;
872
- const cuid2Regex = /^[0-9a-z]+$/;
873
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
874
- // const uuidRegex =
875
- // /^([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;
876
- 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;
877
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
878
- 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)?)??$/;
879
- // from https://stackoverflow.com/a/46181/1550155
880
- // old version: too slow, didn't support unicode
881
- // 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;
882
- //old email regex
883
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
884
- // eslint-disable-next-line
885
- // const emailRegex =
886
- // /^(([^<>()[\]\\.,;:\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,})+))$/;
887
- // const emailRegex =
888
- // /^[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])?)*$/;
889
- // const emailRegex =
890
- // /^(?:[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;
891
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
892
- // const emailRegex =
893
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
894
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
895
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
896
- let emojiRegex;
897
- // faster, simpler, safer
898
- 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])$/;
899
- 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})))$/;
900
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
901
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
902
- // simple
903
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
904
- // no leap year validation
905
- // 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))`;
906
- // with leap year validation
907
- 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])))`;
908
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
909
- function timeRegexSource(args) {
910
- // let regex = `\\d{2}:\\d{2}:\\d{2}`;
911
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
912
- if (args.precision) {
913
- regex = `${regex}\\.\\d{${args.precision}}`;
914
- }
915
- else if (args.precision == null) {
916
- regex = `${regex}(\\.\\d+)?`;
917
- }
918
- return regex;
919
- }
920
- function timeRegex(args) {
921
- return new RegExp(`^${timeRegexSource(args)}$`);
922
- }
923
- // Adapted from https://stackoverflow.com/a/3143231
924
- function datetimeRegex(args) {
925
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
926
- const opts = [];
927
- opts.push(args.local ? `Z?` : `Z`);
928
- if (args.offset)
929
- opts.push(`([+-]\\d{2}:?\\d{2})`);
930
- regex = `${regex}(${opts.join("|")})`;
931
- return new RegExp(`^${regex}$`);
932
- }
933
- function isValidIP(ip, version) {
934
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
935
- return true;
936
- }
937
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
938
- return true;
939
- }
940
- return false;
941
- }
942
- class ZodString extends ZodType {
943
- _parse(input) {
944
- if (this._def.coerce) {
945
- input.data = String(input.data);
946
- }
947
- const parsedType = this._getType(input);
948
- if (parsedType !== ZodParsedType.string) {
949
- const ctx = this._getOrReturnCtx(input);
950
- addIssueToContext(ctx, {
951
- code: ZodIssueCode.invalid_type,
952
- expected: ZodParsedType.string,
953
- received: ctx.parsedType,
954
- });
955
- return INVALID;
956
- }
957
- const status = new ParseStatus();
958
- let ctx = undefined;
959
- for (const check of this._def.checks) {
960
- if (check.kind === "min") {
961
- if (input.data.length < check.value) {
962
- ctx = this._getOrReturnCtx(input, ctx);
963
- addIssueToContext(ctx, {
964
- code: ZodIssueCode.too_small,
965
- minimum: check.value,
966
- type: "string",
967
- inclusive: true,
968
- exact: false,
969
- message: check.message,
970
- });
971
- status.dirty();
972
- }
973
- }
974
- else if (check.kind === "max") {
975
- if (input.data.length > check.value) {
976
- ctx = this._getOrReturnCtx(input, ctx);
977
- addIssueToContext(ctx, {
978
- code: ZodIssueCode.too_big,
979
- maximum: check.value,
980
- type: "string",
981
- inclusive: true,
982
- exact: false,
983
- message: check.message,
984
- });
985
- status.dirty();
986
- }
987
- }
988
- else if (check.kind === "length") {
989
- const tooBig = input.data.length > check.value;
990
- const tooSmall = input.data.length < check.value;
991
- if (tooBig || tooSmall) {
992
- ctx = this._getOrReturnCtx(input, ctx);
993
- if (tooBig) {
994
- addIssueToContext(ctx, {
995
- code: ZodIssueCode.too_big,
996
- maximum: check.value,
997
- type: "string",
998
- inclusive: true,
999
- exact: true,
1000
- message: check.message,
1001
- });
1002
- }
1003
- else if (tooSmall) {
1004
- addIssueToContext(ctx, {
1005
- code: ZodIssueCode.too_small,
1006
- minimum: check.value,
1007
- type: "string",
1008
- inclusive: true,
1009
- exact: true,
1010
- message: check.message,
1011
- });
1012
- }
1013
- status.dirty();
1014
- }
1015
- }
1016
- else if (check.kind === "email") {
1017
- if (!emailRegex.test(input.data)) {
1018
- ctx = this._getOrReturnCtx(input, ctx);
1019
- addIssueToContext(ctx, {
1020
- validation: "email",
1021
- code: ZodIssueCode.invalid_string,
1022
- message: check.message,
1023
- });
1024
- status.dirty();
1025
- }
1026
- }
1027
- else if (check.kind === "emoji") {
1028
- if (!emojiRegex) {
1029
- emojiRegex = new RegExp(_emojiRegex, "u");
1030
- }
1031
- if (!emojiRegex.test(input.data)) {
1032
- ctx = this._getOrReturnCtx(input, ctx);
1033
- addIssueToContext(ctx, {
1034
- validation: "emoji",
1035
- code: ZodIssueCode.invalid_string,
1036
- message: check.message,
1037
- });
1038
- status.dirty();
1039
- }
1040
- }
1041
- else if (check.kind === "uuid") {
1042
- if (!uuidRegex.test(input.data)) {
1043
- ctx = this._getOrReturnCtx(input, ctx);
1044
- addIssueToContext(ctx, {
1045
- validation: "uuid",
1046
- code: ZodIssueCode.invalid_string,
1047
- message: check.message,
1048
- });
1049
- status.dirty();
1050
- }
1051
- }
1052
- else if (check.kind === "nanoid") {
1053
- if (!nanoidRegex.test(input.data)) {
1054
- ctx = this._getOrReturnCtx(input, ctx);
1055
- addIssueToContext(ctx, {
1056
- validation: "nanoid",
1057
- code: ZodIssueCode.invalid_string,
1058
- message: check.message,
1059
- });
1060
- status.dirty();
1061
- }
1062
- }
1063
- else if (check.kind === "cuid") {
1064
- if (!cuidRegex.test(input.data)) {
1065
- ctx = this._getOrReturnCtx(input, ctx);
1066
- addIssueToContext(ctx, {
1067
- validation: "cuid",
1068
- code: ZodIssueCode.invalid_string,
1069
- message: check.message,
1070
- });
1071
- status.dirty();
1072
- }
1073
- }
1074
- else if (check.kind === "cuid2") {
1075
- if (!cuid2Regex.test(input.data)) {
1076
- ctx = this._getOrReturnCtx(input, ctx);
1077
- addIssueToContext(ctx, {
1078
- validation: "cuid2",
1079
- code: ZodIssueCode.invalid_string,
1080
- message: check.message,
1081
- });
1082
- status.dirty();
1083
- }
1084
- }
1085
- else if (check.kind === "ulid") {
1086
- if (!ulidRegex.test(input.data)) {
1087
- ctx = this._getOrReturnCtx(input, ctx);
1088
- addIssueToContext(ctx, {
1089
- validation: "ulid",
1090
- code: ZodIssueCode.invalid_string,
1091
- message: check.message,
1092
- });
1093
- status.dirty();
1094
- }
1095
- }
1096
- else if (check.kind === "url") {
1097
- try {
1098
- new URL(input.data);
1099
- }
1100
- catch (_a) {
1101
- ctx = this._getOrReturnCtx(input, ctx);
1102
- addIssueToContext(ctx, {
1103
- validation: "url",
1104
- code: ZodIssueCode.invalid_string,
1105
- message: check.message,
1106
- });
1107
- status.dirty();
1108
- }
1109
- }
1110
- else if (check.kind === "regex") {
1111
- check.regex.lastIndex = 0;
1112
- const testResult = check.regex.test(input.data);
1113
- if (!testResult) {
1114
- ctx = this._getOrReturnCtx(input, ctx);
1115
- addIssueToContext(ctx, {
1116
- validation: "regex",
1117
- code: ZodIssueCode.invalid_string,
1118
- message: check.message,
1119
- });
1120
- status.dirty();
1121
- }
1122
- }
1123
- else if (check.kind === "trim") {
1124
- input.data = input.data.trim();
1125
- }
1126
- else if (check.kind === "includes") {
1127
- if (!input.data.includes(check.value, check.position)) {
1128
- ctx = this._getOrReturnCtx(input, ctx);
1129
- addIssueToContext(ctx, {
1130
- code: ZodIssueCode.invalid_string,
1131
- validation: { includes: check.value, position: check.position },
1132
- message: check.message,
1133
- });
1134
- status.dirty();
1135
- }
1136
- }
1137
- else if (check.kind === "toLowerCase") {
1138
- input.data = input.data.toLowerCase();
1139
- }
1140
- else if (check.kind === "toUpperCase") {
1141
- input.data = input.data.toUpperCase();
1142
- }
1143
- else if (check.kind === "startsWith") {
1144
- if (!input.data.startsWith(check.value)) {
1145
- ctx = this._getOrReturnCtx(input, ctx);
1146
- addIssueToContext(ctx, {
1147
- code: ZodIssueCode.invalid_string,
1148
- validation: { startsWith: check.value },
1149
- message: check.message,
1150
- });
1151
- status.dirty();
1152
- }
1153
- }
1154
- else if (check.kind === "endsWith") {
1155
- if (!input.data.endsWith(check.value)) {
1156
- ctx = this._getOrReturnCtx(input, ctx);
1157
- addIssueToContext(ctx, {
1158
- code: ZodIssueCode.invalid_string,
1159
- validation: { endsWith: check.value },
1160
- message: check.message,
1161
- });
1162
- status.dirty();
1163
- }
1164
- }
1165
- else if (check.kind === "datetime") {
1166
- const regex = datetimeRegex(check);
1167
- if (!regex.test(input.data)) {
1168
- ctx = this._getOrReturnCtx(input, ctx);
1169
- addIssueToContext(ctx, {
1170
- code: ZodIssueCode.invalid_string,
1171
- validation: "datetime",
1172
- message: check.message,
1173
- });
1174
- status.dirty();
1175
- }
1176
- }
1177
- else if (check.kind === "date") {
1178
- const regex = dateRegex;
1179
- if (!regex.test(input.data)) {
1180
- ctx = this._getOrReturnCtx(input, ctx);
1181
- addIssueToContext(ctx, {
1182
- code: ZodIssueCode.invalid_string,
1183
- validation: "date",
1184
- message: check.message,
1185
- });
1186
- status.dirty();
1187
- }
1188
- }
1189
- else if (check.kind === "time") {
1190
- const regex = timeRegex(check);
1191
- if (!regex.test(input.data)) {
1192
- ctx = this._getOrReturnCtx(input, ctx);
1193
- addIssueToContext(ctx, {
1194
- code: ZodIssueCode.invalid_string,
1195
- validation: "time",
1196
- message: check.message,
1197
- });
1198
- status.dirty();
1199
- }
1200
- }
1201
- else if (check.kind === "duration") {
1202
- if (!durationRegex.test(input.data)) {
1203
- ctx = this._getOrReturnCtx(input, ctx);
1204
- addIssueToContext(ctx, {
1205
- validation: "duration",
1206
- code: ZodIssueCode.invalid_string,
1207
- message: check.message,
1208
- });
1209
- status.dirty();
1210
- }
1211
- }
1212
- else if (check.kind === "ip") {
1213
- if (!isValidIP(input.data, check.version)) {
1214
- ctx = this._getOrReturnCtx(input, ctx);
1215
- addIssueToContext(ctx, {
1216
- validation: "ip",
1217
- code: ZodIssueCode.invalid_string,
1218
- message: check.message,
1219
- });
1220
- status.dirty();
1221
- }
1222
- }
1223
- else if (check.kind === "base64") {
1224
- if (!base64Regex.test(input.data)) {
1225
- ctx = this._getOrReturnCtx(input, ctx);
1226
- addIssueToContext(ctx, {
1227
- validation: "base64",
1228
- code: ZodIssueCode.invalid_string,
1229
- message: check.message,
1230
- });
1231
- status.dirty();
1232
- }
1233
- }
1234
- else {
1235
- util.assertNever(check);
1236
- }
1237
- }
1238
- return { status: status.value, value: input.data };
1239
- }
1240
- _regex(regex, validation, message) {
1241
- return this.refinement((data) => regex.test(data), {
1242
- validation,
1243
- code: ZodIssueCode.invalid_string,
1244
- ...errorUtil.errToObj(message),
1245
- });
1246
- }
1247
- _addCheck(check) {
1248
- return new ZodString({
1249
- ...this._def,
1250
- checks: [...this._def.checks, check],
1251
- });
1252
- }
1253
- email(message) {
1254
- return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });
1255
- }
1256
- url(message) {
1257
- return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });
1258
- }
1259
- emoji(message) {
1260
- return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });
1261
- }
1262
- uuid(message) {
1263
- return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
1264
- }
1265
- nanoid(message) {
1266
- return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
1267
- }
1268
- cuid(message) {
1269
- return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
1270
- }
1271
- cuid2(message) {
1272
- return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });
1273
- }
1274
- ulid(message) {
1275
- return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
1276
- }
1277
- base64(message) {
1278
- return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
1279
- }
1280
- ip(options) {
1281
- return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
1282
- }
1283
- datetime(options) {
1284
- var _a, _b;
1285
- if (typeof options === "string") {
1286
- return this._addCheck({
1287
- kind: "datetime",
1288
- precision: null,
1289
- offset: false,
1290
- local: false,
1291
- message: options,
1292
- });
1293
- }
1294
- return this._addCheck({
1295
- kind: "datetime",
1296
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1297
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
1298
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
1299
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1300
- });
1301
- }
1302
- date(message) {
1303
- return this._addCheck({ kind: "date", message });
1304
- }
1305
- time(options) {
1306
- if (typeof options === "string") {
1307
- return this._addCheck({
1308
- kind: "time",
1309
- precision: null,
1310
- message: options,
1311
- });
1312
- }
1313
- return this._addCheck({
1314
- kind: "time",
1315
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1316
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1317
- });
1318
- }
1319
- duration(message) {
1320
- return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
1321
- }
1322
- regex(regex, message) {
1323
- return this._addCheck({
1324
- kind: "regex",
1325
- regex: regex,
1326
- ...errorUtil.errToObj(message),
1327
- });
1328
- }
1329
- includes(value, options) {
1330
- return this._addCheck({
1331
- kind: "includes",
1332
- value: value,
1333
- position: options === null || options === void 0 ? void 0 : options.position,
1334
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1335
- });
1336
- }
1337
- startsWith(value, message) {
1338
- return this._addCheck({
1339
- kind: "startsWith",
1340
- value: value,
1341
- ...errorUtil.errToObj(message),
1342
- });
1343
- }
1344
- endsWith(value, message) {
1345
- return this._addCheck({
1346
- kind: "endsWith",
1347
- value: value,
1348
- ...errorUtil.errToObj(message),
1349
- });
1350
- }
1351
- min(minLength, message) {
1352
- return this._addCheck({
1353
- kind: "min",
1354
- value: minLength,
1355
- ...errorUtil.errToObj(message),
1356
- });
1357
- }
1358
- max(maxLength, message) {
1359
- return this._addCheck({
1360
- kind: "max",
1361
- value: maxLength,
1362
- ...errorUtil.errToObj(message),
1363
- });
1364
- }
1365
- length(len, message) {
1366
- return this._addCheck({
1367
- kind: "length",
1368
- value: len,
1369
- ...errorUtil.errToObj(message),
1370
- });
1371
- }
1372
- /**
1373
- * @deprecated Use z.string().min(1) instead.
1374
- * @see {@link ZodString.min}
1375
- */
1376
- nonempty(message) {
1377
- return this.min(1, errorUtil.errToObj(message));
1378
- }
1379
- trim() {
1380
- return new ZodString({
1381
- ...this._def,
1382
- checks: [...this._def.checks, { kind: "trim" }],
1383
- });
1384
- }
1385
- toLowerCase() {
1386
- return new ZodString({
1387
- ...this._def,
1388
- checks: [...this._def.checks, { kind: "toLowerCase" }],
1389
- });
1390
- }
1391
- toUpperCase() {
1392
- return new ZodString({
1393
- ...this._def,
1394
- checks: [...this._def.checks, { kind: "toUpperCase" }],
1395
- });
1396
- }
1397
- get isDatetime() {
1398
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
1399
- }
1400
- get isDate() {
1401
- return !!this._def.checks.find((ch) => ch.kind === "date");
1402
- }
1403
- get isTime() {
1404
- return !!this._def.checks.find((ch) => ch.kind === "time");
1405
- }
1406
- get isDuration() {
1407
- return !!this._def.checks.find((ch) => ch.kind === "duration");
1408
- }
1409
- get isEmail() {
1410
- return !!this._def.checks.find((ch) => ch.kind === "email");
1411
- }
1412
- get isURL() {
1413
- return !!this._def.checks.find((ch) => ch.kind === "url");
1414
- }
1415
- get isEmoji() {
1416
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
1417
- }
1418
- get isUUID() {
1419
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
1420
- }
1421
- get isNANOID() {
1422
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1423
- }
1424
- get isCUID() {
1425
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
1426
- }
1427
- get isCUID2() {
1428
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1429
- }
1430
- get isULID() {
1431
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
1432
- }
1433
- get isIP() {
1434
- return !!this._def.checks.find((ch) => ch.kind === "ip");
1435
- }
1436
- get isBase64() {
1437
- return !!this._def.checks.find((ch) => ch.kind === "base64");
1438
- }
1439
- get minLength() {
1440
- let min = null;
1441
- for (const ch of this._def.checks) {
1442
- if (ch.kind === "min") {
1443
- if (min === null || ch.value > min)
1444
- min = ch.value;
1445
- }
1446
- }
1447
- return min;
1448
- }
1449
- get maxLength() {
1450
- let max = null;
1451
- for (const ch of this._def.checks) {
1452
- if (ch.kind === "max") {
1453
- if (max === null || ch.value < max)
1454
- max = ch.value;
1455
- }
1456
- }
1457
- return max;
1458
- }
1459
- }
1460
- ZodString.create = (params) => {
1461
- var _a;
1462
- return new ZodString({
1463
- checks: [],
1464
- typeName: ZodFirstPartyTypeKind.ZodString,
1465
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1466
- ...processCreateParams(params),
1467
- });
1468
- };
1469
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1470
- function floatSafeRemainder(val, step) {
1471
- const valDecCount = (val.toString().split(".")[1] || "").length;
1472
- const stepDecCount = (step.toString().split(".")[1] || "").length;
1473
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1474
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
1475
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
1476
- return (valInt % stepInt) / Math.pow(10, decCount);
1477
- }
1478
- class ZodNumber extends ZodType {
1479
- constructor() {
1480
- super(...arguments);
1481
- this.min = this.gte;
1482
- this.max = this.lte;
1483
- this.step = this.multipleOf;
1484
- }
1485
- _parse(input) {
1486
- if (this._def.coerce) {
1487
- input.data = Number(input.data);
1488
- }
1489
- const parsedType = this._getType(input);
1490
- if (parsedType !== ZodParsedType.number) {
1491
- const ctx = this._getOrReturnCtx(input);
1492
- addIssueToContext(ctx, {
1493
- code: ZodIssueCode.invalid_type,
1494
- expected: ZodParsedType.number,
1495
- received: ctx.parsedType,
1496
- });
1497
- return INVALID;
1498
- }
1499
- let ctx = undefined;
1500
- const status = new ParseStatus();
1501
- for (const check of this._def.checks) {
1502
- if (check.kind === "int") {
1503
- if (!util.isInteger(input.data)) {
1504
- ctx = this._getOrReturnCtx(input, ctx);
1505
- addIssueToContext(ctx, {
1506
- code: ZodIssueCode.invalid_type,
1507
- expected: "integer",
1508
- received: "float",
1509
- message: check.message,
1510
- });
1511
- status.dirty();
1512
- }
1513
- }
1514
- else if (check.kind === "min") {
1515
- const tooSmall = check.inclusive
1516
- ? input.data < check.value
1517
- : input.data <= check.value;
1518
- if (tooSmall) {
1519
- ctx = this._getOrReturnCtx(input, ctx);
1520
- addIssueToContext(ctx, {
1521
- code: ZodIssueCode.too_small,
1522
- minimum: check.value,
1523
- type: "number",
1524
- inclusive: check.inclusive,
1525
- exact: false,
1526
- message: check.message,
1527
- });
1528
- status.dirty();
1529
- }
1530
- }
1531
- else if (check.kind === "max") {
1532
- const tooBig = check.inclusive
1533
- ? input.data > check.value
1534
- : input.data >= check.value;
1535
- if (tooBig) {
1536
- ctx = this._getOrReturnCtx(input, ctx);
1537
- addIssueToContext(ctx, {
1538
- code: ZodIssueCode.too_big,
1539
- maximum: check.value,
1540
- type: "number",
1541
- inclusive: check.inclusive,
1542
- exact: false,
1543
- message: check.message,
1544
- });
1545
- status.dirty();
1546
- }
1547
- }
1548
- else if (check.kind === "multipleOf") {
1549
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1550
- ctx = this._getOrReturnCtx(input, ctx);
1551
- addIssueToContext(ctx, {
1552
- code: ZodIssueCode.not_multiple_of,
1553
- multipleOf: check.value,
1554
- message: check.message,
1555
- });
1556
- status.dirty();
1557
- }
1558
- }
1559
- else if (check.kind === "finite") {
1560
- if (!Number.isFinite(input.data)) {
1561
- ctx = this._getOrReturnCtx(input, ctx);
1562
- addIssueToContext(ctx, {
1563
- code: ZodIssueCode.not_finite,
1564
- message: check.message,
1565
- });
1566
- status.dirty();
1567
- }
1568
- }
1569
- else {
1570
- util.assertNever(check);
1571
- }
1572
- }
1573
- return { status: status.value, value: input.data };
1574
- }
1575
- gte(value, message) {
1576
- return this.setLimit("min", value, true, errorUtil.toString(message));
1577
- }
1578
- gt(value, message) {
1579
- return this.setLimit("min", value, false, errorUtil.toString(message));
1580
- }
1581
- lte(value, message) {
1582
- return this.setLimit("max", value, true, errorUtil.toString(message));
1583
- }
1584
- lt(value, message) {
1585
- return this.setLimit("max", value, false, errorUtil.toString(message));
1586
- }
1587
- setLimit(kind, value, inclusive, message) {
1588
- return new ZodNumber({
1589
- ...this._def,
1590
- checks: [
1591
- ...this._def.checks,
1592
- {
1593
- kind,
1594
- value,
1595
- inclusive,
1596
- message: errorUtil.toString(message),
1597
- },
1598
- ],
1599
- });
1600
- }
1601
- _addCheck(check) {
1602
- return new ZodNumber({
1603
- ...this._def,
1604
- checks: [...this._def.checks, check],
1605
- });
1606
- }
1607
- int(message) {
1608
- return this._addCheck({
1609
- kind: "int",
1610
- message: errorUtil.toString(message),
1611
- });
1612
- }
1613
- positive(message) {
1614
- return this._addCheck({
1615
- kind: "min",
1616
- value: 0,
1617
- inclusive: false,
1618
- message: errorUtil.toString(message),
1619
- });
1620
- }
1621
- negative(message) {
1622
- return this._addCheck({
1623
- kind: "max",
1624
- value: 0,
1625
- inclusive: false,
1626
- message: errorUtil.toString(message),
1627
- });
1628
- }
1629
- nonpositive(message) {
1630
- return this._addCheck({
1631
- kind: "max",
1632
- value: 0,
1633
- inclusive: true,
1634
- message: errorUtil.toString(message),
1635
- });
1636
- }
1637
- nonnegative(message) {
1638
- return this._addCheck({
1639
- kind: "min",
1640
- value: 0,
1641
- inclusive: true,
1642
- message: errorUtil.toString(message),
1643
- });
1644
- }
1645
- multipleOf(value, message) {
1646
- return this._addCheck({
1647
- kind: "multipleOf",
1648
- value: value,
1649
- message: errorUtil.toString(message),
1650
- });
1651
- }
1652
- finite(message) {
1653
- return this._addCheck({
1654
- kind: "finite",
1655
- message: errorUtil.toString(message),
1656
- });
1657
- }
1658
- safe(message) {
1659
- return this._addCheck({
1660
- kind: "min",
1661
- inclusive: true,
1662
- value: Number.MIN_SAFE_INTEGER,
1663
- message: errorUtil.toString(message),
1664
- })._addCheck({
1665
- kind: "max",
1666
- inclusive: true,
1667
- value: Number.MAX_SAFE_INTEGER,
1668
- message: errorUtil.toString(message),
1669
- });
1670
- }
1671
- get minValue() {
1672
- let min = null;
1673
- for (const ch of this._def.checks) {
1674
- if (ch.kind === "min") {
1675
- if (min === null || ch.value > min)
1676
- min = ch.value;
1677
- }
1678
- }
1679
- return min;
1680
- }
1681
- get maxValue() {
1682
- let max = null;
1683
- for (const ch of this._def.checks) {
1684
- if (ch.kind === "max") {
1685
- if (max === null || ch.value < max)
1686
- max = ch.value;
1687
- }
1688
- }
1689
- return max;
1690
- }
1691
- get isInt() {
1692
- return !!this._def.checks.find((ch) => ch.kind === "int" ||
1693
- (ch.kind === "multipleOf" && util.isInteger(ch.value)));
1694
- }
1695
- get isFinite() {
1696
- let max = null, min = null;
1697
- for (const ch of this._def.checks) {
1698
- if (ch.kind === "finite" ||
1699
- ch.kind === "int" ||
1700
- ch.kind === "multipleOf") {
1701
- return true;
1702
- }
1703
- else if (ch.kind === "min") {
1704
- if (min === null || ch.value > min)
1705
- min = ch.value;
1706
- }
1707
- else if (ch.kind === "max") {
1708
- if (max === null || ch.value < max)
1709
- max = ch.value;
1710
- }
1711
- }
1712
- return Number.isFinite(min) && Number.isFinite(max);
1713
- }
1714
- }
1715
- ZodNumber.create = (params) => {
1716
- return new ZodNumber({
1717
- checks: [],
1718
- typeName: ZodFirstPartyTypeKind.ZodNumber,
1719
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1720
- ...processCreateParams(params),
1721
- });
1722
- };
1723
- class ZodBigInt extends ZodType {
1724
- constructor() {
1725
- super(...arguments);
1726
- this.min = this.gte;
1727
- this.max = this.lte;
1728
- }
1729
- _parse(input) {
1730
- if (this._def.coerce) {
1731
- input.data = BigInt(input.data);
1732
- }
1733
- const parsedType = this._getType(input);
1734
- if (parsedType !== ZodParsedType.bigint) {
1735
- const ctx = this._getOrReturnCtx(input);
1736
- addIssueToContext(ctx, {
1737
- code: ZodIssueCode.invalid_type,
1738
- expected: ZodParsedType.bigint,
1739
- received: ctx.parsedType,
1740
- });
1741
- return INVALID;
1742
- }
1743
- let ctx = undefined;
1744
- const status = new ParseStatus();
1745
- for (const check of this._def.checks) {
1746
- if (check.kind === "min") {
1747
- const tooSmall = check.inclusive
1748
- ? input.data < check.value
1749
- : input.data <= check.value;
1750
- if (tooSmall) {
1751
- ctx = this._getOrReturnCtx(input, ctx);
1752
- addIssueToContext(ctx, {
1753
- code: ZodIssueCode.too_small,
1754
- type: "bigint",
1755
- minimum: check.value,
1756
- inclusive: check.inclusive,
1757
- message: check.message,
1758
- });
1759
- status.dirty();
1760
- }
1761
- }
1762
- else if (check.kind === "max") {
1763
- const tooBig = check.inclusive
1764
- ? input.data > check.value
1765
- : input.data >= check.value;
1766
- if (tooBig) {
1767
- ctx = this._getOrReturnCtx(input, ctx);
1768
- addIssueToContext(ctx, {
1769
- code: ZodIssueCode.too_big,
1770
- type: "bigint",
1771
- maximum: check.value,
1772
- inclusive: check.inclusive,
1773
- message: check.message,
1774
- });
1775
- status.dirty();
1776
- }
1777
- }
1778
- else if (check.kind === "multipleOf") {
1779
- if (input.data % check.value !== BigInt(0)) {
1780
- ctx = this._getOrReturnCtx(input, ctx);
1781
- addIssueToContext(ctx, {
1782
- code: ZodIssueCode.not_multiple_of,
1783
- multipleOf: check.value,
1784
- message: check.message,
1785
- });
1786
- status.dirty();
1787
- }
1788
- }
1789
- else {
1790
- util.assertNever(check);
1791
- }
1792
- }
1793
- return { status: status.value, value: input.data };
1794
- }
1795
- gte(value, message) {
1796
- return this.setLimit("min", value, true, errorUtil.toString(message));
1797
- }
1798
- gt(value, message) {
1799
- return this.setLimit("min", value, false, errorUtil.toString(message));
1800
- }
1801
- lte(value, message) {
1802
- return this.setLimit("max", value, true, errorUtil.toString(message));
1803
- }
1804
- lt(value, message) {
1805
- return this.setLimit("max", value, false, errorUtil.toString(message));
1806
- }
1807
- setLimit(kind, value, inclusive, message) {
1808
- return new ZodBigInt({
1809
- ...this._def,
1810
- checks: [
1811
- ...this._def.checks,
1812
- {
1813
- kind,
1814
- value,
1815
- inclusive,
1816
- message: errorUtil.toString(message),
1817
- },
1818
- ],
1819
- });
1820
- }
1821
- _addCheck(check) {
1822
- return new ZodBigInt({
1823
- ...this._def,
1824
- checks: [...this._def.checks, check],
1825
- });
1826
- }
1827
- positive(message) {
1828
- return this._addCheck({
1829
- kind: "min",
1830
- value: BigInt(0),
1831
- inclusive: false,
1832
- message: errorUtil.toString(message),
1833
- });
1834
- }
1835
- negative(message) {
1836
- return this._addCheck({
1837
- kind: "max",
1838
- value: BigInt(0),
1839
- inclusive: false,
1840
- message: errorUtil.toString(message),
1841
- });
1842
- }
1843
- nonpositive(message) {
1844
- return this._addCheck({
1845
- kind: "max",
1846
- value: BigInt(0),
1847
- inclusive: true,
1848
- message: errorUtil.toString(message),
1849
- });
1850
- }
1851
- nonnegative(message) {
1852
- return this._addCheck({
1853
- kind: "min",
1854
- value: BigInt(0),
1855
- inclusive: true,
1856
- message: errorUtil.toString(message),
1857
- });
1858
- }
1859
- multipleOf(value, message) {
1860
- return this._addCheck({
1861
- kind: "multipleOf",
1862
- value,
1863
- message: errorUtil.toString(message),
1864
- });
1865
- }
1866
- get minValue() {
1867
- let min = null;
1868
- for (const ch of this._def.checks) {
1869
- if (ch.kind === "min") {
1870
- if (min === null || ch.value > min)
1871
- min = ch.value;
1872
- }
1873
- }
1874
- return min;
1875
- }
1876
- get maxValue() {
1877
- let max = null;
1878
- for (const ch of this._def.checks) {
1879
- if (ch.kind === "max") {
1880
- if (max === null || ch.value < max)
1881
- max = ch.value;
1882
- }
1883
- }
1884
- return max;
1885
- }
1886
- }
1887
- ZodBigInt.create = (params) => {
1888
- var _a;
1889
- return new ZodBigInt({
1890
- checks: [],
1891
- typeName: ZodFirstPartyTypeKind.ZodBigInt,
1892
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1893
- ...processCreateParams(params),
1894
- });
1895
- };
1896
- class ZodBoolean extends ZodType {
1897
- _parse(input) {
1898
- if (this._def.coerce) {
1899
- input.data = Boolean(input.data);
1900
- }
1901
- const parsedType = this._getType(input);
1902
- if (parsedType !== ZodParsedType.boolean) {
1903
- const ctx = this._getOrReturnCtx(input);
1904
- addIssueToContext(ctx, {
1905
- code: ZodIssueCode.invalid_type,
1906
- expected: ZodParsedType.boolean,
1907
- received: ctx.parsedType,
1908
- });
1909
- return INVALID;
1910
- }
1911
- return OK(input.data);
1912
- }
1913
- }
1914
- ZodBoolean.create = (params) => {
1915
- return new ZodBoolean({
1916
- typeName: ZodFirstPartyTypeKind.ZodBoolean,
1917
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1918
- ...processCreateParams(params),
1919
- });
1920
- };
1921
- class ZodDate extends ZodType {
1922
- _parse(input) {
1923
- if (this._def.coerce) {
1924
- input.data = new Date(input.data);
1925
- }
1926
- const parsedType = this._getType(input);
1927
- if (parsedType !== ZodParsedType.date) {
1928
- const ctx = this._getOrReturnCtx(input);
1929
- addIssueToContext(ctx, {
1930
- code: ZodIssueCode.invalid_type,
1931
- expected: ZodParsedType.date,
1932
- received: ctx.parsedType,
1933
- });
1934
- return INVALID;
1935
- }
1936
- if (isNaN(input.data.getTime())) {
1937
- const ctx = this._getOrReturnCtx(input);
1938
- addIssueToContext(ctx, {
1939
- code: ZodIssueCode.invalid_date,
1940
- });
1941
- return INVALID;
1942
- }
1943
- const status = new ParseStatus();
1944
- let ctx = undefined;
1945
- for (const check of this._def.checks) {
1946
- if (check.kind === "min") {
1947
- if (input.data.getTime() < check.value) {
1948
- ctx = this._getOrReturnCtx(input, ctx);
1949
- addIssueToContext(ctx, {
1950
- code: ZodIssueCode.too_small,
1951
- message: check.message,
1952
- inclusive: true,
1953
- exact: false,
1954
- minimum: check.value,
1955
- type: "date",
1956
- });
1957
- status.dirty();
1958
- }
1959
- }
1960
- else if (check.kind === "max") {
1961
- if (input.data.getTime() > check.value) {
1962
- ctx = this._getOrReturnCtx(input, ctx);
1963
- addIssueToContext(ctx, {
1964
- code: ZodIssueCode.too_big,
1965
- message: check.message,
1966
- inclusive: true,
1967
- exact: false,
1968
- maximum: check.value,
1969
- type: "date",
1970
- });
1971
- status.dirty();
1972
- }
1973
- }
1974
- else {
1975
- util.assertNever(check);
1976
- }
1977
- }
1978
- return {
1979
- status: status.value,
1980
- value: new Date(input.data.getTime()),
1981
- };
1982
- }
1983
- _addCheck(check) {
1984
- return new ZodDate({
1985
- ...this._def,
1986
- checks: [...this._def.checks, check],
1987
- });
1988
- }
1989
- min(minDate, message) {
1990
- return this._addCheck({
1991
- kind: "min",
1992
- value: minDate.getTime(),
1993
- message: errorUtil.toString(message),
1994
- });
1995
- }
1996
- max(maxDate, message) {
1997
- return this._addCheck({
1998
- kind: "max",
1999
- value: maxDate.getTime(),
2000
- message: errorUtil.toString(message),
2001
- });
2002
- }
2003
- get minDate() {
2004
- let min = null;
2005
- for (const ch of this._def.checks) {
2006
- if (ch.kind === "min") {
2007
- if (min === null || ch.value > min)
2008
- min = ch.value;
2009
- }
2010
- }
2011
- return min != null ? new Date(min) : null;
2012
- }
2013
- get maxDate() {
2014
- let max = null;
2015
- for (const ch of this._def.checks) {
2016
- if (ch.kind === "max") {
2017
- if (max === null || ch.value < max)
2018
- max = ch.value;
2019
- }
2020
- }
2021
- return max != null ? new Date(max) : null;
2022
- }
2023
- }
2024
- ZodDate.create = (params) => {
2025
- return new ZodDate({
2026
- checks: [],
2027
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
2028
- typeName: ZodFirstPartyTypeKind.ZodDate,
2029
- ...processCreateParams(params),
2030
- });
2031
- };
2032
- class ZodSymbol extends ZodType {
2033
- _parse(input) {
2034
- const parsedType = this._getType(input);
2035
- if (parsedType !== ZodParsedType.symbol) {
2036
- const ctx = this._getOrReturnCtx(input);
2037
- addIssueToContext(ctx, {
2038
- code: ZodIssueCode.invalid_type,
2039
- expected: ZodParsedType.symbol,
2040
- received: ctx.parsedType,
2041
- });
2042
- return INVALID;
2043
- }
2044
- return OK(input.data);
2045
- }
2046
- }
2047
- ZodSymbol.create = (params) => {
2048
- return new ZodSymbol({
2049
- typeName: ZodFirstPartyTypeKind.ZodSymbol,
2050
- ...processCreateParams(params),
2051
- });
2052
- };
2053
- class ZodUndefined extends ZodType {
2054
- _parse(input) {
2055
- const parsedType = this._getType(input);
2056
- if (parsedType !== ZodParsedType.undefined) {
2057
- const ctx = this._getOrReturnCtx(input);
2058
- addIssueToContext(ctx, {
2059
- code: ZodIssueCode.invalid_type,
2060
- expected: ZodParsedType.undefined,
2061
- received: ctx.parsedType,
2062
- });
2063
- return INVALID;
2064
- }
2065
- return OK(input.data);
2066
- }
2067
- }
2068
- ZodUndefined.create = (params) => {
2069
- return new ZodUndefined({
2070
- typeName: ZodFirstPartyTypeKind.ZodUndefined,
2071
- ...processCreateParams(params),
2072
- });
2073
- };
2074
- class ZodNull extends ZodType {
2075
- _parse(input) {
2076
- const parsedType = this._getType(input);
2077
- if (parsedType !== ZodParsedType.null) {
2078
- const ctx = this._getOrReturnCtx(input);
2079
- addIssueToContext(ctx, {
2080
- code: ZodIssueCode.invalid_type,
2081
- expected: ZodParsedType.null,
2082
- received: ctx.parsedType,
2083
- });
2084
- return INVALID;
2085
- }
2086
- return OK(input.data);
2087
- }
2088
- }
2089
- ZodNull.create = (params) => {
2090
- return new ZodNull({
2091
- typeName: ZodFirstPartyTypeKind.ZodNull,
2092
- ...processCreateParams(params),
2093
- });
2094
- };
2095
- class ZodAny extends ZodType {
2096
- constructor() {
2097
- super(...arguments);
2098
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
2099
- this._any = true;
2100
- }
2101
- _parse(input) {
2102
- return OK(input.data);
2103
- }
2104
- }
2105
- ZodAny.create = (params) => {
2106
- return new ZodAny({
2107
- typeName: ZodFirstPartyTypeKind.ZodAny,
2108
- ...processCreateParams(params),
2109
- });
2110
- };
2111
- class ZodUnknown extends ZodType {
2112
- constructor() {
2113
- super(...arguments);
2114
- // required
2115
- this._unknown = true;
2116
- }
2117
- _parse(input) {
2118
- return OK(input.data);
2119
- }
2120
- }
2121
- ZodUnknown.create = (params) => {
2122
- return new ZodUnknown({
2123
- typeName: ZodFirstPartyTypeKind.ZodUnknown,
2124
- ...processCreateParams(params),
2125
- });
2126
- };
2127
- class ZodNever extends ZodType {
2128
- _parse(input) {
2129
- const ctx = this._getOrReturnCtx(input);
2130
- addIssueToContext(ctx, {
2131
- code: ZodIssueCode.invalid_type,
2132
- expected: ZodParsedType.never,
2133
- received: ctx.parsedType,
2134
- });
2135
- return INVALID;
2136
- }
2137
- }
2138
- ZodNever.create = (params) => {
2139
- return new ZodNever({
2140
- typeName: ZodFirstPartyTypeKind.ZodNever,
2141
- ...processCreateParams(params),
2142
- });
2143
- };
2144
- class ZodVoid extends ZodType {
2145
- _parse(input) {
2146
- const parsedType = this._getType(input);
2147
- if (parsedType !== ZodParsedType.undefined) {
2148
- const ctx = this._getOrReturnCtx(input);
2149
- addIssueToContext(ctx, {
2150
- code: ZodIssueCode.invalid_type,
2151
- expected: ZodParsedType.void,
2152
- received: ctx.parsedType,
2153
- });
2154
- return INVALID;
2155
- }
2156
- return OK(input.data);
2157
- }
2158
- }
2159
- ZodVoid.create = (params) => {
2160
- return new ZodVoid({
2161
- typeName: ZodFirstPartyTypeKind.ZodVoid,
2162
- ...processCreateParams(params),
2163
- });
2164
- };
2165
- class ZodArray extends ZodType {
2166
- _parse(input) {
2167
- const { ctx, status } = this._processInputParams(input);
2168
- const def = this._def;
2169
- if (ctx.parsedType !== ZodParsedType.array) {
2170
- addIssueToContext(ctx, {
2171
- code: ZodIssueCode.invalid_type,
2172
- expected: ZodParsedType.array,
2173
- received: ctx.parsedType,
2174
- });
2175
- return INVALID;
2176
- }
2177
- if (def.exactLength !== null) {
2178
- const tooBig = ctx.data.length > def.exactLength.value;
2179
- const tooSmall = ctx.data.length < def.exactLength.value;
2180
- if (tooBig || tooSmall) {
2181
- addIssueToContext(ctx, {
2182
- code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,
2183
- minimum: (tooSmall ? def.exactLength.value : undefined),
2184
- maximum: (tooBig ? def.exactLength.value : undefined),
2185
- type: "array",
2186
- inclusive: true,
2187
- exact: true,
2188
- message: def.exactLength.message,
2189
- });
2190
- status.dirty();
2191
- }
2192
- }
2193
- if (def.minLength !== null) {
2194
- if (ctx.data.length < def.minLength.value) {
2195
- addIssueToContext(ctx, {
2196
- code: ZodIssueCode.too_small,
2197
- minimum: def.minLength.value,
2198
- type: "array",
2199
- inclusive: true,
2200
- exact: false,
2201
- message: def.minLength.message,
2202
- });
2203
- status.dirty();
2204
- }
2205
- }
2206
- if (def.maxLength !== null) {
2207
- if (ctx.data.length > def.maxLength.value) {
2208
- addIssueToContext(ctx, {
2209
- code: ZodIssueCode.too_big,
2210
- maximum: def.maxLength.value,
2211
- type: "array",
2212
- inclusive: true,
2213
- exact: false,
2214
- message: def.maxLength.message,
2215
- });
2216
- status.dirty();
2217
- }
2218
- }
2219
- if (ctx.common.async) {
2220
- return Promise.all([...ctx.data].map((item, i) => {
2221
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
2222
- })).then((result) => {
2223
- return ParseStatus.mergeArray(status, result);
2224
- });
2225
- }
2226
- const result = [...ctx.data].map((item, i) => {
2227
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
2228
- });
2229
- return ParseStatus.mergeArray(status, result);
2230
- }
2231
- get element() {
2232
- return this._def.type;
2233
- }
2234
- min(minLength, message) {
2235
- return new ZodArray({
2236
- ...this._def,
2237
- minLength: { value: minLength, message: errorUtil.toString(message) },
2238
- });
2239
- }
2240
- max(maxLength, message) {
2241
- return new ZodArray({
2242
- ...this._def,
2243
- maxLength: { value: maxLength, message: errorUtil.toString(message) },
2244
- });
2245
- }
2246
- length(len, message) {
2247
- return new ZodArray({
2248
- ...this._def,
2249
- exactLength: { value: len, message: errorUtil.toString(message) },
2250
- });
2251
- }
2252
- nonempty(message) {
2253
- return this.min(1, message);
2254
- }
2255
- }
2256
- ZodArray.create = (schema, params) => {
2257
- return new ZodArray({
2258
- type: schema,
2259
- minLength: null,
2260
- maxLength: null,
2261
- exactLength: null,
2262
- typeName: ZodFirstPartyTypeKind.ZodArray,
2263
- ...processCreateParams(params),
2264
- });
2265
- };
2266
- function deepPartialify(schema) {
2267
- if (schema instanceof ZodObject) {
2268
- const newShape = {};
2269
- for (const key in schema.shape) {
2270
- const fieldSchema = schema.shape[key];
2271
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
2272
- }
2273
- return new ZodObject({
2274
- ...schema._def,
2275
- shape: () => newShape,
2276
- });
2277
- }
2278
- else if (schema instanceof ZodArray) {
2279
- return new ZodArray({
2280
- ...schema._def,
2281
- type: deepPartialify(schema.element),
2282
- });
2283
- }
2284
- else if (schema instanceof ZodOptional) {
2285
- return ZodOptional.create(deepPartialify(schema.unwrap()));
2286
- }
2287
- else if (schema instanceof ZodNullable) {
2288
- return ZodNullable.create(deepPartialify(schema.unwrap()));
2289
- }
2290
- else if (schema instanceof ZodTuple) {
2291
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
2292
- }
2293
- else {
2294
- return schema;
2295
- }
2296
- }
2297
- class ZodObject extends ZodType {
2298
- constructor() {
2299
- super(...arguments);
2300
- this._cached = null;
2301
- /**
2302
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
2303
- * If you want to pass through unknown properties, use `.passthrough()` instead.
2304
- */
2305
- this.nonstrict = this.passthrough;
2306
- // extend<
2307
- // Augmentation extends ZodRawShape,
2308
- // NewOutput extends util.flatten<{
2309
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2310
- // ? Augmentation[k]["_output"]
2311
- // : k extends keyof Output
2312
- // ? Output[k]
2313
- // : never;
2314
- // }>,
2315
- // NewInput extends util.flatten<{
2316
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2317
- // ? Augmentation[k]["_input"]
2318
- // : k extends keyof Input
2319
- // ? Input[k]
2320
- // : never;
2321
- // }>
2322
- // >(
2323
- // augmentation: Augmentation
2324
- // ): ZodObject<
2325
- // extendShape<T, Augmentation>,
2326
- // UnknownKeys,
2327
- // Catchall,
2328
- // NewOutput,
2329
- // NewInput
2330
- // > {
2331
- // return new ZodObject({
2332
- // ...this._def,
2333
- // shape: () => ({
2334
- // ...this._def.shape(),
2335
- // ...augmentation,
2336
- // }),
2337
- // }) as any;
2338
- // }
2339
- /**
2340
- * @deprecated Use `.extend` instead
2341
- * */
2342
- this.augment = this.extend;
2343
- }
2344
- _getCached() {
2345
- if (this._cached !== null)
2346
- return this._cached;
2347
- const shape = this._def.shape();
2348
- const keys = util.objectKeys(shape);
2349
- return (this._cached = { shape, keys });
2350
- }
2351
- _parse(input) {
2352
- const parsedType = this._getType(input);
2353
- if (parsedType !== ZodParsedType.object) {
2354
- const ctx = this._getOrReturnCtx(input);
2355
- addIssueToContext(ctx, {
2356
- code: ZodIssueCode.invalid_type,
2357
- expected: ZodParsedType.object,
2358
- received: ctx.parsedType,
2359
- });
2360
- return INVALID;
2361
- }
2362
- const { status, ctx } = this._processInputParams(input);
2363
- const { shape, keys: shapeKeys } = this._getCached();
2364
- const extraKeys = [];
2365
- if (!(this._def.catchall instanceof ZodNever &&
2366
- this._def.unknownKeys === "strip")) {
2367
- for (const key in ctx.data) {
2368
- if (!shapeKeys.includes(key)) {
2369
- extraKeys.push(key);
2370
- }
2371
- }
2372
- }
2373
- const pairs = [];
2374
- for (const key of shapeKeys) {
2375
- const keyValidator = shape[key];
2376
- const value = ctx.data[key];
2377
- pairs.push({
2378
- key: { status: "valid", value: key },
2379
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
2380
- alwaysSet: key in ctx.data,
2381
- });
2382
- }
2383
- if (this._def.catchall instanceof ZodNever) {
2384
- const unknownKeys = this._def.unknownKeys;
2385
- if (unknownKeys === "passthrough") {
2386
- for (const key of extraKeys) {
2387
- pairs.push({
2388
- key: { status: "valid", value: key },
2389
- value: { status: "valid", value: ctx.data[key] },
2390
- });
2391
- }
2392
- }
2393
- else if (unknownKeys === "strict") {
2394
- if (extraKeys.length > 0) {
2395
- addIssueToContext(ctx, {
2396
- code: ZodIssueCode.unrecognized_keys,
2397
- keys: extraKeys,
2398
- });
2399
- status.dirty();
2400
- }
2401
- }
2402
- else if (unknownKeys === "strip") ;
2403
- else {
2404
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2405
- }
2406
- }
2407
- else {
2408
- // run catchall validation
2409
- const catchall = this._def.catchall;
2410
- for (const key of extraKeys) {
2411
- const value = ctx.data[key];
2412
- pairs.push({
2413
- key: { status: "valid", value: key },
2414
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2415
- ),
2416
- alwaysSet: key in ctx.data,
2417
- });
2418
- }
2419
- }
2420
- if (ctx.common.async) {
2421
- return Promise.resolve()
2422
- .then(async () => {
2423
- const syncPairs = [];
2424
- for (const pair of pairs) {
2425
- const key = await pair.key;
2426
- const value = await pair.value;
2427
- syncPairs.push({
2428
- key,
2429
- value,
2430
- alwaysSet: pair.alwaysSet,
2431
- });
2432
- }
2433
- return syncPairs;
2434
- })
2435
- .then((syncPairs) => {
2436
- return ParseStatus.mergeObjectSync(status, syncPairs);
2437
- });
2438
- }
2439
- else {
2440
- return ParseStatus.mergeObjectSync(status, pairs);
2441
- }
2442
- }
2443
- get shape() {
2444
- return this._def.shape();
2445
- }
2446
- strict(message) {
2447
- errorUtil.errToObj;
2448
- return new ZodObject({
2449
- ...this._def,
2450
- unknownKeys: "strict",
2451
- ...(message !== undefined
2452
- ? {
2453
- errorMap: (issue, ctx) => {
2454
- var _a, _b, _c, _d;
2455
- 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;
2456
- if (issue.code === "unrecognized_keys")
2457
- return {
2458
- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,
2459
- };
2460
- return {
2461
- message: defaultError,
2462
- };
2463
- },
2464
- }
2465
- : {}),
2466
- });
2467
- }
2468
- strip() {
2469
- return new ZodObject({
2470
- ...this._def,
2471
- unknownKeys: "strip",
2472
- });
2473
- }
2474
- passthrough() {
2475
- return new ZodObject({
2476
- ...this._def,
2477
- unknownKeys: "passthrough",
2478
- });
2479
- }
2480
- // const AugmentFactory =
2481
- // <Def extends ZodObjectDef>(def: Def) =>
2482
- // <Augmentation extends ZodRawShape>(
2483
- // augmentation: Augmentation
2484
- // ): ZodObject<
2485
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2486
- // Def["unknownKeys"],
2487
- // Def["catchall"]
2488
- // > => {
2489
- // return new ZodObject({
2490
- // ...def,
2491
- // shape: () => ({
2492
- // ...def.shape(),
2493
- // ...augmentation,
2494
- // }),
2495
- // }) as any;
2496
- // };
2497
- extend(augmentation) {
2498
- return new ZodObject({
2499
- ...this._def,
2500
- shape: () => ({
2501
- ...this._def.shape(),
2502
- ...augmentation,
2503
- }),
2504
- });
2505
- }
2506
- /**
2507
- * Prior to zod@1.0.12 there was a bug in the
2508
- * inferred type of merged objects. Please
2509
- * upgrade if you are experiencing issues.
2510
- */
2511
- merge(merging) {
2512
- const merged = new ZodObject({
2513
- unknownKeys: merging._def.unknownKeys,
2514
- catchall: merging._def.catchall,
2515
- shape: () => ({
2516
- ...this._def.shape(),
2517
- ...merging._def.shape(),
2518
- }),
2519
- typeName: ZodFirstPartyTypeKind.ZodObject,
2520
- });
2521
- return merged;
2522
- }
2523
- // merge<
2524
- // Incoming extends AnyZodObject,
2525
- // Augmentation extends Incoming["shape"],
2526
- // NewOutput extends {
2527
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2528
- // ? Augmentation[k]["_output"]
2529
- // : k extends keyof Output
2530
- // ? Output[k]
2531
- // : never;
2532
- // },
2533
- // NewInput extends {
2534
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2535
- // ? Augmentation[k]["_input"]
2536
- // : k extends keyof Input
2537
- // ? Input[k]
2538
- // : never;
2539
- // }
2540
- // >(
2541
- // merging: Incoming
2542
- // ): ZodObject<
2543
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2544
- // Incoming["_def"]["unknownKeys"],
2545
- // Incoming["_def"]["catchall"],
2546
- // NewOutput,
2547
- // NewInput
2548
- // > {
2549
- // const merged: any = new ZodObject({
2550
- // unknownKeys: merging._def.unknownKeys,
2551
- // catchall: merging._def.catchall,
2552
- // shape: () =>
2553
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2554
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2555
- // }) as any;
2556
- // return merged;
2557
- // }
2558
- setKey(key, schema) {
2559
- return this.augment({ [key]: schema });
2560
- }
2561
- // merge<Incoming extends AnyZodObject>(
2562
- // merging: Incoming
2563
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2564
- // ZodObject<
2565
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2566
- // Incoming["_def"]["unknownKeys"],
2567
- // Incoming["_def"]["catchall"]
2568
- // > {
2569
- // // const mergedShape = objectUtil.mergeShapes(
2570
- // // this._def.shape(),
2571
- // // merging._def.shape()
2572
- // // );
2573
- // const merged: any = new ZodObject({
2574
- // unknownKeys: merging._def.unknownKeys,
2575
- // catchall: merging._def.catchall,
2576
- // shape: () =>
2577
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2578
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2579
- // }) as any;
2580
- // return merged;
2581
- // }
2582
- catchall(index) {
2583
- return new ZodObject({
2584
- ...this._def,
2585
- catchall: index,
2586
- });
2587
- }
2588
- pick(mask) {
2589
- const shape = {};
2590
- util.objectKeys(mask).forEach((key) => {
2591
- if (mask[key] && this.shape[key]) {
2592
- shape[key] = this.shape[key];
2593
- }
2594
- });
2595
- return new ZodObject({
2596
- ...this._def,
2597
- shape: () => shape,
2598
- });
2599
- }
2600
- omit(mask) {
2601
- const shape = {};
2602
- util.objectKeys(this.shape).forEach((key) => {
2603
- if (!mask[key]) {
2604
- shape[key] = this.shape[key];
2605
- }
2606
- });
2607
- return new ZodObject({
2608
- ...this._def,
2609
- shape: () => shape,
2610
- });
2611
- }
2612
- /**
2613
- * @deprecated
2614
- */
2615
- deepPartial() {
2616
- return deepPartialify(this);
2617
- }
2618
- partial(mask) {
2619
- const newShape = {};
2620
- util.objectKeys(this.shape).forEach((key) => {
2621
- const fieldSchema = this.shape[key];
2622
- if (mask && !mask[key]) {
2623
- newShape[key] = fieldSchema;
2624
- }
2625
- else {
2626
- newShape[key] = fieldSchema.optional();
2627
- }
2628
- });
2629
- return new ZodObject({
2630
- ...this._def,
2631
- shape: () => newShape,
2632
- });
2633
- }
2634
- required(mask) {
2635
- const newShape = {};
2636
- util.objectKeys(this.shape).forEach((key) => {
2637
- if (mask && !mask[key]) {
2638
- newShape[key] = this.shape[key];
2639
- }
2640
- else {
2641
- const fieldSchema = this.shape[key];
2642
- let newField = fieldSchema;
2643
- while (newField instanceof ZodOptional) {
2644
- newField = newField._def.innerType;
2645
- }
2646
- newShape[key] = newField;
2647
- }
2648
- });
2649
- return new ZodObject({
2650
- ...this._def,
2651
- shape: () => newShape,
2652
- });
2653
- }
2654
- keyof() {
2655
- return createZodEnum(util.objectKeys(this.shape));
2656
- }
2657
- }
2658
- ZodObject.create = (shape, params) => {
2659
- return new ZodObject({
2660
- shape: () => shape,
2661
- unknownKeys: "strip",
2662
- catchall: ZodNever.create(),
2663
- typeName: ZodFirstPartyTypeKind.ZodObject,
2664
- ...processCreateParams(params),
2665
- });
2666
- };
2667
- ZodObject.strictCreate = (shape, params) => {
2668
- return new ZodObject({
2669
- shape: () => shape,
2670
- unknownKeys: "strict",
2671
- catchall: ZodNever.create(),
2672
- typeName: ZodFirstPartyTypeKind.ZodObject,
2673
- ...processCreateParams(params),
2674
- });
2675
- };
2676
- ZodObject.lazycreate = (shape, params) => {
2677
- return new ZodObject({
2678
- shape,
2679
- unknownKeys: "strip",
2680
- catchall: ZodNever.create(),
2681
- typeName: ZodFirstPartyTypeKind.ZodObject,
2682
- ...processCreateParams(params),
2683
- });
2684
- };
2685
- class ZodUnion extends ZodType {
2686
- _parse(input) {
2687
- const { ctx } = this._processInputParams(input);
2688
- const options = this._def.options;
2689
- function handleResults(results) {
2690
- // return first issue-free validation if it exists
2691
- for (const result of results) {
2692
- if (result.result.status === "valid") {
2693
- return result.result;
2694
- }
2695
- }
2696
- for (const result of results) {
2697
- if (result.result.status === "dirty") {
2698
- // add issues from dirty option
2699
- ctx.common.issues.push(...result.ctx.common.issues);
2700
- return result.result;
2701
- }
2702
- }
2703
- // return invalid
2704
- const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));
2705
- addIssueToContext(ctx, {
2706
- code: ZodIssueCode.invalid_union,
2707
- unionErrors,
2708
- });
2709
- return INVALID;
2710
- }
2711
- if (ctx.common.async) {
2712
- return Promise.all(options.map(async (option) => {
2713
- const childCtx = {
2714
- ...ctx,
2715
- common: {
2716
- ...ctx.common,
2717
- issues: [],
2718
- },
2719
- parent: null,
2720
- };
2721
- return {
2722
- result: await option._parseAsync({
2723
- data: ctx.data,
2724
- path: ctx.path,
2725
- parent: childCtx,
2726
- }),
2727
- ctx: childCtx,
2728
- };
2729
- })).then(handleResults);
2730
- }
2731
- else {
2732
- let dirty = undefined;
2733
- const issues = [];
2734
- for (const option of options) {
2735
- const childCtx = {
2736
- ...ctx,
2737
- common: {
2738
- ...ctx.common,
2739
- issues: [],
2740
- },
2741
- parent: null,
2742
- };
2743
- const result = option._parseSync({
2744
- data: ctx.data,
2745
- path: ctx.path,
2746
- parent: childCtx,
2747
- });
2748
- if (result.status === "valid") {
2749
- return result;
2750
- }
2751
- else if (result.status === "dirty" && !dirty) {
2752
- dirty = { result, ctx: childCtx };
2753
- }
2754
- if (childCtx.common.issues.length) {
2755
- issues.push(childCtx.common.issues);
2756
- }
2757
- }
2758
- if (dirty) {
2759
- ctx.common.issues.push(...dirty.ctx.common.issues);
2760
- return dirty.result;
2761
- }
2762
- const unionErrors = issues.map((issues) => new ZodError(issues));
2763
- addIssueToContext(ctx, {
2764
- code: ZodIssueCode.invalid_union,
2765
- unionErrors,
2766
- });
2767
- return INVALID;
2768
- }
2769
- }
2770
- get options() {
2771
- return this._def.options;
2772
- }
2773
- }
2774
- ZodUnion.create = (types, params) => {
2775
- return new ZodUnion({
2776
- options: types,
2777
- typeName: ZodFirstPartyTypeKind.ZodUnion,
2778
- ...processCreateParams(params),
2779
- });
2780
- };
2781
- /////////////////////////////////////////////////////
2782
- /////////////////////////////////////////////////////
2783
- ////////// //////////
2784
- ////////// ZodDiscriminatedUnion //////////
2785
- ////////// //////////
2786
- /////////////////////////////////////////////////////
2787
- /////////////////////////////////////////////////////
2788
- const getDiscriminator = (type) => {
2789
- if (type instanceof ZodLazy) {
2790
- return getDiscriminator(type.schema);
2791
- }
2792
- else if (type instanceof ZodEffects) {
2793
- return getDiscriminator(type.innerType());
2794
- }
2795
- else if (type instanceof ZodLiteral) {
2796
- return [type.value];
2797
- }
2798
- else if (type instanceof ZodEnum) {
2799
- return type.options;
2800
- }
2801
- else if (type instanceof ZodNativeEnum) {
2802
- // eslint-disable-next-line ban/ban
2803
- return util.objectValues(type.enum);
2804
- }
2805
- else if (type instanceof ZodDefault) {
2806
- return getDiscriminator(type._def.innerType);
2807
- }
2808
- else if (type instanceof ZodUndefined) {
2809
- return [undefined];
2810
- }
2811
- else if (type instanceof ZodNull) {
2812
- return [null];
2813
- }
2814
- else if (type instanceof ZodOptional) {
2815
- return [undefined, ...getDiscriminator(type.unwrap())];
2816
- }
2817
- else if (type instanceof ZodNullable) {
2818
- return [null, ...getDiscriminator(type.unwrap())];
2819
- }
2820
- else if (type instanceof ZodBranded) {
2821
- return getDiscriminator(type.unwrap());
2822
- }
2823
- else if (type instanceof ZodReadonly) {
2824
- return getDiscriminator(type.unwrap());
2825
- }
2826
- else if (type instanceof ZodCatch) {
2827
- return getDiscriminator(type._def.innerType);
2828
- }
2829
- else {
2830
- return [];
2831
- }
2832
- };
2833
- class ZodDiscriminatedUnion extends ZodType {
2834
- _parse(input) {
2835
- const { ctx } = this._processInputParams(input);
2836
- if (ctx.parsedType !== ZodParsedType.object) {
2837
- addIssueToContext(ctx, {
2838
- code: ZodIssueCode.invalid_type,
2839
- expected: ZodParsedType.object,
2840
- received: ctx.parsedType,
2841
- });
2842
- return INVALID;
2843
- }
2844
- const discriminator = this.discriminator;
2845
- const discriminatorValue = ctx.data[discriminator];
2846
- const option = this.optionsMap.get(discriminatorValue);
2847
- if (!option) {
2848
- addIssueToContext(ctx, {
2849
- code: ZodIssueCode.invalid_union_discriminator,
2850
- options: Array.from(this.optionsMap.keys()),
2851
- path: [discriminator],
2852
- });
2853
- return INVALID;
2854
- }
2855
- if (ctx.common.async) {
2856
- return option._parseAsync({
2857
- data: ctx.data,
2858
- path: ctx.path,
2859
- parent: ctx,
2860
- });
2861
- }
2862
- else {
2863
- return option._parseSync({
2864
- data: ctx.data,
2865
- path: ctx.path,
2866
- parent: ctx,
2867
- });
2868
- }
2869
- }
2870
- get discriminator() {
2871
- return this._def.discriminator;
2872
- }
2873
- get options() {
2874
- return this._def.options;
2875
- }
2876
- get optionsMap() {
2877
- return this._def.optionsMap;
2878
- }
2879
- /**
2880
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2881
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2882
- * have a different value for each object in the union.
2883
- * @param discriminator the name of the discriminator property
2884
- * @param types an array of object schemas
2885
- * @param params
2886
- */
2887
- static create(discriminator, options, params) {
2888
- // Get all the valid discriminator values
2889
- const optionsMap = new Map();
2890
- // try {
2891
- for (const type of options) {
2892
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2893
- if (!discriminatorValues.length) {
2894
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2895
- }
2896
- for (const value of discriminatorValues) {
2897
- if (optionsMap.has(value)) {
2898
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2899
- }
2900
- optionsMap.set(value, type);
2901
- }
2902
- }
2903
- return new ZodDiscriminatedUnion({
2904
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2905
- discriminator,
2906
- options,
2907
- optionsMap,
2908
- ...processCreateParams(params),
2909
- });
2910
- }
2911
- }
2912
- function mergeValues(a, b) {
2913
- const aType = getParsedType(a);
2914
- const bType = getParsedType(b);
2915
- if (a === b) {
2916
- return { valid: true, data: a };
2917
- }
2918
- else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
2919
- const bKeys = util.objectKeys(b);
2920
- const sharedKeys = util
2921
- .objectKeys(a)
2922
- .filter((key) => bKeys.indexOf(key) !== -1);
2923
- const newObj = { ...a, ...b };
2924
- for (const key of sharedKeys) {
2925
- const sharedValue = mergeValues(a[key], b[key]);
2926
- if (!sharedValue.valid) {
2927
- return { valid: false };
2928
- }
2929
- newObj[key] = sharedValue.data;
2930
- }
2931
- return { valid: true, data: newObj };
2932
- }
2933
- else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
2934
- if (a.length !== b.length) {
2935
- return { valid: false };
2936
- }
2937
- const newArray = [];
2938
- for (let index = 0; index < a.length; index++) {
2939
- const itemA = a[index];
2940
- const itemB = b[index];
2941
- const sharedValue = mergeValues(itemA, itemB);
2942
- if (!sharedValue.valid) {
2943
- return { valid: false };
2944
- }
2945
- newArray.push(sharedValue.data);
2946
- }
2947
- return { valid: true, data: newArray };
2948
- }
2949
- else if (aType === ZodParsedType.date &&
2950
- bType === ZodParsedType.date &&
2951
- +a === +b) {
2952
- return { valid: true, data: a };
2953
- }
2954
- else {
2955
- return { valid: false };
2956
- }
2957
- }
2958
- class ZodIntersection extends ZodType {
2959
- _parse(input) {
2960
- const { status, ctx } = this._processInputParams(input);
2961
- const handleParsed = (parsedLeft, parsedRight) => {
2962
- if (isAborted(parsedLeft) || isAborted(parsedRight)) {
2963
- return INVALID;
2964
- }
2965
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2966
- if (!merged.valid) {
2967
- addIssueToContext(ctx, {
2968
- code: ZodIssueCode.invalid_intersection_types,
2969
- });
2970
- return INVALID;
2971
- }
2972
- if (isDirty(parsedLeft) || isDirty(parsedRight)) {
2973
- status.dirty();
2974
- }
2975
- return { status: status.value, value: merged.data };
2976
- };
2977
- if (ctx.common.async) {
2978
- return Promise.all([
2979
- this._def.left._parseAsync({
2980
- data: ctx.data,
2981
- path: ctx.path,
2982
- parent: ctx,
2983
- }),
2984
- this._def.right._parseAsync({
2985
- data: ctx.data,
2986
- path: ctx.path,
2987
- parent: ctx,
2988
- }),
2989
- ]).then(([left, right]) => handleParsed(left, right));
2990
- }
2991
- else {
2992
- return handleParsed(this._def.left._parseSync({
2993
- data: ctx.data,
2994
- path: ctx.path,
2995
- parent: ctx,
2996
- }), this._def.right._parseSync({
2997
- data: ctx.data,
2998
- path: ctx.path,
2999
- parent: ctx,
3000
- }));
3001
- }
3002
- }
3003
- }
3004
- ZodIntersection.create = (left, right, params) => {
3005
- return new ZodIntersection({
3006
- left: left,
3007
- right: right,
3008
- typeName: ZodFirstPartyTypeKind.ZodIntersection,
3009
- ...processCreateParams(params),
3010
- });
3011
- };
3012
- class ZodTuple extends ZodType {
3013
- _parse(input) {
3014
- const { status, ctx } = this._processInputParams(input);
3015
- if (ctx.parsedType !== ZodParsedType.array) {
3016
- addIssueToContext(ctx, {
3017
- code: ZodIssueCode.invalid_type,
3018
- expected: ZodParsedType.array,
3019
- received: ctx.parsedType,
3020
- });
3021
- return INVALID;
3022
- }
3023
- if (ctx.data.length < this._def.items.length) {
3024
- addIssueToContext(ctx, {
3025
- code: ZodIssueCode.too_small,
3026
- minimum: this._def.items.length,
3027
- inclusive: true,
3028
- exact: false,
3029
- type: "array",
3030
- });
3031
- return INVALID;
3032
- }
3033
- const rest = this._def.rest;
3034
- if (!rest && ctx.data.length > this._def.items.length) {
3035
- addIssueToContext(ctx, {
3036
- code: ZodIssueCode.too_big,
3037
- maximum: this._def.items.length,
3038
- inclusive: true,
3039
- exact: false,
3040
- type: "array",
3041
- });
3042
- status.dirty();
3043
- }
3044
- const items = [...ctx.data]
3045
- .map((item, itemIndex) => {
3046
- const schema = this._def.items[itemIndex] || this._def.rest;
3047
- if (!schema)
3048
- return null;
3049
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
3050
- })
3051
- .filter((x) => !!x); // filter nulls
3052
- if (ctx.common.async) {
3053
- return Promise.all(items).then((results) => {
3054
- return ParseStatus.mergeArray(status, results);
3055
- });
3056
- }
3057
- else {
3058
- return ParseStatus.mergeArray(status, items);
3059
- }
3060
- }
3061
- get items() {
3062
- return this._def.items;
3063
- }
3064
- rest(rest) {
3065
- return new ZodTuple({
3066
- ...this._def,
3067
- rest,
3068
- });
3069
- }
3070
- }
3071
- ZodTuple.create = (schemas, params) => {
3072
- if (!Array.isArray(schemas)) {
3073
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
3074
- }
3075
- return new ZodTuple({
3076
- items: schemas,
3077
- typeName: ZodFirstPartyTypeKind.ZodTuple,
3078
- rest: null,
3079
- ...processCreateParams(params),
3080
- });
3081
- };
3082
- class ZodRecord extends ZodType {
3083
- get keySchema() {
3084
- return this._def.keyType;
3085
- }
3086
- get valueSchema() {
3087
- return this._def.valueType;
3088
- }
3089
- _parse(input) {
3090
- const { status, ctx } = this._processInputParams(input);
3091
- if (ctx.parsedType !== ZodParsedType.object) {
3092
- addIssueToContext(ctx, {
3093
- code: ZodIssueCode.invalid_type,
3094
- expected: ZodParsedType.object,
3095
- received: ctx.parsedType,
3096
- });
3097
- return INVALID;
3098
- }
3099
- const pairs = [];
3100
- const keyType = this._def.keyType;
3101
- const valueType = this._def.valueType;
3102
- for (const key in ctx.data) {
3103
- pairs.push({
3104
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
3105
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
3106
- alwaysSet: key in ctx.data,
3107
- });
3108
- }
3109
- if (ctx.common.async) {
3110
- return ParseStatus.mergeObjectAsync(status, pairs);
3111
- }
3112
- else {
3113
- return ParseStatus.mergeObjectSync(status, pairs);
3114
- }
3115
- }
3116
- get element() {
3117
- return this._def.valueType;
3118
- }
3119
- static create(first, second, third) {
3120
- if (second instanceof ZodType) {
3121
- return new ZodRecord({
3122
- keyType: first,
3123
- valueType: second,
3124
- typeName: ZodFirstPartyTypeKind.ZodRecord,
3125
- ...processCreateParams(third),
3126
- });
3127
- }
3128
- return new ZodRecord({
3129
- keyType: ZodString.create(),
3130
- valueType: first,
3131
- typeName: ZodFirstPartyTypeKind.ZodRecord,
3132
- ...processCreateParams(second),
3133
- });
3134
- }
3135
- }
3136
- class ZodMap extends ZodType {
3137
- get keySchema() {
3138
- return this._def.keyType;
3139
- }
3140
- get valueSchema() {
3141
- return this._def.valueType;
3142
- }
3143
- _parse(input) {
3144
- const { status, ctx } = this._processInputParams(input);
3145
- if (ctx.parsedType !== ZodParsedType.map) {
3146
- addIssueToContext(ctx, {
3147
- code: ZodIssueCode.invalid_type,
3148
- expected: ZodParsedType.map,
3149
- received: ctx.parsedType,
3150
- });
3151
- return INVALID;
3152
- }
3153
- const keyType = this._def.keyType;
3154
- const valueType = this._def.valueType;
3155
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
3156
- return {
3157
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
3158
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
3159
- };
3160
- });
3161
- if (ctx.common.async) {
3162
- const finalMap = new Map();
3163
- return Promise.resolve().then(async () => {
3164
- for (const pair of pairs) {
3165
- const key = await pair.key;
3166
- const value = await pair.value;
3167
- if (key.status === "aborted" || value.status === "aborted") {
3168
- return INVALID;
3169
- }
3170
- if (key.status === "dirty" || value.status === "dirty") {
3171
- status.dirty();
3172
- }
3173
- finalMap.set(key.value, value.value);
3174
- }
3175
- return { status: status.value, value: finalMap };
3176
- });
3177
- }
3178
- else {
3179
- const finalMap = new Map();
3180
- for (const pair of pairs) {
3181
- const key = pair.key;
3182
- const value = pair.value;
3183
- if (key.status === "aborted" || value.status === "aborted") {
3184
- return INVALID;
3185
- }
3186
- if (key.status === "dirty" || value.status === "dirty") {
3187
- status.dirty();
3188
- }
3189
- finalMap.set(key.value, value.value);
3190
- }
3191
- return { status: status.value, value: finalMap };
3192
- }
3193
- }
3194
- }
3195
- ZodMap.create = (keyType, valueType, params) => {
3196
- return new ZodMap({
3197
- valueType,
3198
- keyType,
3199
- typeName: ZodFirstPartyTypeKind.ZodMap,
3200
- ...processCreateParams(params),
3201
- });
3202
- };
3203
- class ZodSet extends ZodType {
3204
- _parse(input) {
3205
- const { status, ctx } = this._processInputParams(input);
3206
- if (ctx.parsedType !== ZodParsedType.set) {
3207
- addIssueToContext(ctx, {
3208
- code: ZodIssueCode.invalid_type,
3209
- expected: ZodParsedType.set,
3210
- received: ctx.parsedType,
3211
- });
3212
- return INVALID;
3213
- }
3214
- const def = this._def;
3215
- if (def.minSize !== null) {
3216
- if (ctx.data.size < def.minSize.value) {
3217
- addIssueToContext(ctx, {
3218
- code: ZodIssueCode.too_small,
3219
- minimum: def.minSize.value,
3220
- type: "set",
3221
- inclusive: true,
3222
- exact: false,
3223
- message: def.minSize.message,
3224
- });
3225
- status.dirty();
3226
- }
3227
- }
3228
- if (def.maxSize !== null) {
3229
- if (ctx.data.size > def.maxSize.value) {
3230
- addIssueToContext(ctx, {
3231
- code: ZodIssueCode.too_big,
3232
- maximum: def.maxSize.value,
3233
- type: "set",
3234
- inclusive: true,
3235
- exact: false,
3236
- message: def.maxSize.message,
3237
- });
3238
- status.dirty();
3239
- }
3240
- }
3241
- const valueType = this._def.valueType;
3242
- function finalizeSet(elements) {
3243
- const parsedSet = new Set();
3244
- for (const element of elements) {
3245
- if (element.status === "aborted")
3246
- return INVALID;
3247
- if (element.status === "dirty")
3248
- status.dirty();
3249
- parsedSet.add(element.value);
3250
- }
3251
- return { status: status.value, value: parsedSet };
3252
- }
3253
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
3254
- if (ctx.common.async) {
3255
- return Promise.all(elements).then((elements) => finalizeSet(elements));
3256
- }
3257
- else {
3258
- return finalizeSet(elements);
3259
- }
3260
- }
3261
- min(minSize, message) {
3262
- return new ZodSet({
3263
- ...this._def,
3264
- minSize: { value: minSize, message: errorUtil.toString(message) },
3265
- });
3266
- }
3267
- max(maxSize, message) {
3268
- return new ZodSet({
3269
- ...this._def,
3270
- maxSize: { value: maxSize, message: errorUtil.toString(message) },
3271
- });
3272
- }
3273
- size(size, message) {
3274
- return this.min(size, message).max(size, message);
3275
- }
3276
- nonempty(message) {
3277
- return this.min(1, message);
3278
- }
3279
- }
3280
- ZodSet.create = (valueType, params) => {
3281
- return new ZodSet({
3282
- valueType,
3283
- minSize: null,
3284
- maxSize: null,
3285
- typeName: ZodFirstPartyTypeKind.ZodSet,
3286
- ...processCreateParams(params),
3287
- });
3288
- };
3289
- class ZodFunction extends ZodType {
3290
- constructor() {
3291
- super(...arguments);
3292
- this.validate = this.implement;
3293
- }
3294
- _parse(input) {
3295
- const { ctx } = this._processInputParams(input);
3296
- if (ctx.parsedType !== ZodParsedType.function) {
3297
- addIssueToContext(ctx, {
3298
- code: ZodIssueCode.invalid_type,
3299
- expected: ZodParsedType.function,
3300
- received: ctx.parsedType,
3301
- });
3302
- return INVALID;
3303
- }
3304
- function makeArgsIssue(args, error) {
3305
- return makeIssue({
3306
- data: args,
3307
- path: ctx.path,
3308
- errorMaps: [
3309
- ctx.common.contextualErrorMap,
3310
- ctx.schemaErrorMap,
3311
- getErrorMap(),
3312
- errorMap,
3313
- ].filter((x) => !!x),
3314
- issueData: {
3315
- code: ZodIssueCode.invalid_arguments,
3316
- argumentsError: error,
3317
- },
3318
- });
3319
- }
3320
- function makeReturnsIssue(returns, error) {
3321
- return makeIssue({
3322
- data: returns,
3323
- path: ctx.path,
3324
- errorMaps: [
3325
- ctx.common.contextualErrorMap,
3326
- ctx.schemaErrorMap,
3327
- getErrorMap(),
3328
- errorMap,
3329
- ].filter((x) => !!x),
3330
- issueData: {
3331
- code: ZodIssueCode.invalid_return_type,
3332
- returnTypeError: error,
3333
- },
3334
- });
3335
- }
3336
- const params = { errorMap: ctx.common.contextualErrorMap };
3337
- const fn = ctx.data;
3338
- if (this._def.returns instanceof ZodPromise) {
3339
- // Would love a way to avoid disabling this rule, but we need
3340
- // an alias (using an arrow function was what caused 2651).
3341
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3342
- const me = this;
3343
- return OK(async function (...args) {
3344
- const error = new ZodError([]);
3345
- const parsedArgs = await me._def.args
3346
- .parseAsync(args, params)
3347
- .catch((e) => {
3348
- error.addIssue(makeArgsIssue(args, e));
3349
- throw error;
3350
- });
3351
- const result = await Reflect.apply(fn, this, parsedArgs);
3352
- const parsedReturns = await me._def.returns._def.type
3353
- .parseAsync(result, params)
3354
- .catch((e) => {
3355
- error.addIssue(makeReturnsIssue(result, e));
3356
- throw error;
3357
- });
3358
- return parsedReturns;
3359
- });
3360
- }
3361
- else {
3362
- // Would love a way to avoid disabling this rule, but we need
3363
- // an alias (using an arrow function was what caused 2651).
3364
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3365
- const me = this;
3366
- return OK(function (...args) {
3367
- const parsedArgs = me._def.args.safeParse(args, params);
3368
- if (!parsedArgs.success) {
3369
- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3370
- }
3371
- const result = Reflect.apply(fn, this, parsedArgs.data);
3372
- const parsedReturns = me._def.returns.safeParse(result, params);
3373
- if (!parsedReturns.success) {
3374
- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
3375
- }
3376
- return parsedReturns.data;
3377
- });
3378
- }
3379
- }
3380
- parameters() {
3381
- return this._def.args;
3382
- }
3383
- returnType() {
3384
- return this._def.returns;
3385
- }
3386
- args(...items) {
3387
- return new ZodFunction({
3388
- ...this._def,
3389
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
3390
- });
3391
- }
3392
- returns(returnType) {
3393
- return new ZodFunction({
3394
- ...this._def,
3395
- returns: returnType,
3396
- });
3397
- }
3398
- implement(func) {
3399
- const validatedFunc = this.parse(func);
3400
- return validatedFunc;
3401
- }
3402
- strictImplement(func) {
3403
- const validatedFunc = this.parse(func);
3404
- return validatedFunc;
3405
- }
3406
- static create(args, returns, params) {
3407
- return new ZodFunction({
3408
- args: (args
3409
- ? args
3410
- : ZodTuple.create([]).rest(ZodUnknown.create())),
3411
- returns: returns || ZodUnknown.create(),
3412
- typeName: ZodFirstPartyTypeKind.ZodFunction,
3413
- ...processCreateParams(params),
3414
- });
3415
- }
3416
- }
3417
- class ZodLazy extends ZodType {
3418
- get schema() {
3419
- return this._def.getter();
3420
- }
3421
- _parse(input) {
3422
- const { ctx } = this._processInputParams(input);
3423
- const lazySchema = this._def.getter();
3424
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
3425
- }
3426
- }
3427
- ZodLazy.create = (getter, params) => {
3428
- return new ZodLazy({
3429
- getter: getter,
3430
- typeName: ZodFirstPartyTypeKind.ZodLazy,
3431
- ...processCreateParams(params),
3432
- });
3433
- };
3434
- class ZodLiteral extends ZodType {
3435
- _parse(input) {
3436
- if (input.data !== this._def.value) {
3437
- const ctx = this._getOrReturnCtx(input);
3438
- addIssueToContext(ctx, {
3439
- received: ctx.data,
3440
- code: ZodIssueCode.invalid_literal,
3441
- expected: this._def.value,
3442
- });
3443
- return INVALID;
3444
- }
3445
- return { status: "valid", value: input.data };
3446
- }
3447
- get value() {
3448
- return this._def.value;
3449
- }
3450
- }
3451
- ZodLiteral.create = (value, params) => {
3452
- return new ZodLiteral({
3453
- value: value,
3454
- typeName: ZodFirstPartyTypeKind.ZodLiteral,
3455
- ...processCreateParams(params),
3456
- });
3457
- };
3458
- function createZodEnum(values, params) {
3459
- return new ZodEnum({
3460
- values,
3461
- typeName: ZodFirstPartyTypeKind.ZodEnum,
3462
- ...processCreateParams(params),
3463
- });
3464
- }
3465
- class ZodEnum extends ZodType {
3466
- constructor() {
3467
- super(...arguments);
3468
- _ZodEnum_cache.set(this, void 0);
3469
- }
3470
- _parse(input) {
3471
- if (typeof input.data !== "string") {
3472
- const ctx = this._getOrReturnCtx(input);
3473
- const expectedValues = this._def.values;
3474
- addIssueToContext(ctx, {
3475
- expected: util.joinValues(expectedValues),
3476
- received: ctx.parsedType,
3477
- code: ZodIssueCode.invalid_type,
3478
- });
3479
- return INVALID;
3480
- }
3481
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
3482
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
3483
- }
3484
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
3485
- const ctx = this._getOrReturnCtx(input);
3486
- const expectedValues = this._def.values;
3487
- addIssueToContext(ctx, {
3488
- received: ctx.data,
3489
- code: ZodIssueCode.invalid_enum_value,
3490
- options: expectedValues,
3491
- });
3492
- return INVALID;
3493
- }
3494
- return OK(input.data);
3495
- }
3496
- get options() {
3497
- return this._def.values;
3498
- }
3499
- get enum() {
3500
- const enumValues = {};
3501
- for (const val of this._def.values) {
3502
- enumValues[val] = val;
3503
- }
3504
- return enumValues;
3505
- }
3506
- get Values() {
3507
- const enumValues = {};
3508
- for (const val of this._def.values) {
3509
- enumValues[val] = val;
3510
- }
3511
- return enumValues;
3512
- }
3513
- get Enum() {
3514
- const enumValues = {};
3515
- for (const val of this._def.values) {
3516
- enumValues[val] = val;
3517
- }
3518
- return enumValues;
3519
- }
3520
- extract(values, newDef = this._def) {
3521
- return ZodEnum.create(values, {
3522
- ...this._def,
3523
- ...newDef,
3524
- });
3525
- }
3526
- exclude(values, newDef = this._def) {
3527
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3528
- ...this._def,
3529
- ...newDef,
3530
- });
3531
- }
3532
- }
3533
- _ZodEnum_cache = new WeakMap();
3534
- ZodEnum.create = createZodEnum;
3535
- class ZodNativeEnum extends ZodType {
3536
- constructor() {
3537
- super(...arguments);
3538
- _ZodNativeEnum_cache.set(this, void 0);
3539
- }
3540
- _parse(input) {
3541
- const nativeEnumValues = util.getValidEnumValues(this._def.values);
3542
- const ctx = this._getOrReturnCtx(input);
3543
- if (ctx.parsedType !== ZodParsedType.string &&
3544
- ctx.parsedType !== ZodParsedType.number) {
3545
- const expectedValues = util.objectValues(nativeEnumValues);
3546
- addIssueToContext(ctx, {
3547
- expected: util.joinValues(expectedValues),
3548
- received: ctx.parsedType,
3549
- code: ZodIssueCode.invalid_type,
3550
- });
3551
- return INVALID;
3552
- }
3553
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
3554
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
3555
- }
3556
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
3557
- const expectedValues = util.objectValues(nativeEnumValues);
3558
- addIssueToContext(ctx, {
3559
- received: ctx.data,
3560
- code: ZodIssueCode.invalid_enum_value,
3561
- options: expectedValues,
3562
- });
3563
- return INVALID;
3564
- }
3565
- return OK(input.data);
3566
- }
3567
- get enum() {
3568
- return this._def.values;
3569
- }
3570
- }
3571
- _ZodNativeEnum_cache = new WeakMap();
3572
- ZodNativeEnum.create = (values, params) => {
3573
- return new ZodNativeEnum({
3574
- values: values,
3575
- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3576
- ...processCreateParams(params),
3577
- });
3578
- };
3579
- class ZodPromise extends ZodType {
3580
- unwrap() {
3581
- return this._def.type;
3582
- }
3583
- _parse(input) {
3584
- const { ctx } = this._processInputParams(input);
3585
- if (ctx.parsedType !== ZodParsedType.promise &&
3586
- ctx.common.async === false) {
3587
- addIssueToContext(ctx, {
3588
- code: ZodIssueCode.invalid_type,
3589
- expected: ZodParsedType.promise,
3590
- received: ctx.parsedType,
3591
- });
3592
- return INVALID;
3593
- }
3594
- const promisified = ctx.parsedType === ZodParsedType.promise
3595
- ? ctx.data
3596
- : Promise.resolve(ctx.data);
3597
- return OK(promisified.then((data) => {
3598
- return this._def.type.parseAsync(data, {
3599
- path: ctx.path,
3600
- errorMap: ctx.common.contextualErrorMap,
3601
- });
3602
- }));
3603
- }
3604
- }
3605
- ZodPromise.create = (schema, params) => {
3606
- return new ZodPromise({
3607
- type: schema,
3608
- typeName: ZodFirstPartyTypeKind.ZodPromise,
3609
- ...processCreateParams(params),
3610
- });
3611
- };
3612
- class ZodEffects extends ZodType {
3613
- innerType() {
3614
- return this._def.schema;
3615
- }
3616
- sourceType() {
3617
- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3618
- ? this._def.schema.sourceType()
3619
- : this._def.schema;
3620
- }
3621
- _parse(input) {
3622
- const { status, ctx } = this._processInputParams(input);
3623
- const effect = this._def.effect || null;
3624
- const checkCtx = {
3625
- addIssue: (arg) => {
3626
- addIssueToContext(ctx, arg);
3627
- if (arg.fatal) {
3628
- status.abort();
3629
- }
3630
- else {
3631
- status.dirty();
3632
- }
3633
- },
3634
- get path() {
3635
- return ctx.path;
3636
- },
3637
- };
3638
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3639
- if (effect.type === "preprocess") {
3640
- const processed = effect.transform(ctx.data, checkCtx);
3641
- if (ctx.common.async) {
3642
- return Promise.resolve(processed).then(async (processed) => {
3643
- if (status.value === "aborted")
3644
- return INVALID;
3645
- const result = await this._def.schema._parseAsync({
3646
- data: processed,
3647
- path: ctx.path,
3648
- parent: ctx,
3649
- });
3650
- if (result.status === "aborted")
3651
- return INVALID;
3652
- if (result.status === "dirty")
3653
- return DIRTY(result.value);
3654
- if (status.value === "dirty")
3655
- return DIRTY(result.value);
3656
- return result;
3657
- });
3658
- }
3659
- else {
3660
- if (status.value === "aborted")
3661
- return INVALID;
3662
- const result = this._def.schema._parseSync({
3663
- data: processed,
3664
- path: ctx.path,
3665
- parent: ctx,
3666
- });
3667
- if (result.status === "aborted")
3668
- return INVALID;
3669
- if (result.status === "dirty")
3670
- return DIRTY(result.value);
3671
- if (status.value === "dirty")
3672
- return DIRTY(result.value);
3673
- return result;
3674
- }
3675
- }
3676
- if (effect.type === "refinement") {
3677
- const executeRefinement = (acc) => {
3678
- const result = effect.refinement(acc, checkCtx);
3679
- if (ctx.common.async) {
3680
- return Promise.resolve(result);
3681
- }
3682
- if (result instanceof Promise) {
3683
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3684
- }
3685
- return acc;
3686
- };
3687
- if (ctx.common.async === false) {
3688
- const inner = this._def.schema._parseSync({
3689
- data: ctx.data,
3690
- path: ctx.path,
3691
- parent: ctx,
3692
- });
3693
- if (inner.status === "aborted")
3694
- return INVALID;
3695
- if (inner.status === "dirty")
3696
- status.dirty();
3697
- // return value is ignored
3698
- executeRefinement(inner.value);
3699
- return { status: status.value, value: inner.value };
3700
- }
3701
- else {
3702
- return this._def.schema
3703
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3704
- .then((inner) => {
3705
- if (inner.status === "aborted")
3706
- return INVALID;
3707
- if (inner.status === "dirty")
3708
- status.dirty();
3709
- return executeRefinement(inner.value).then(() => {
3710
- return { status: status.value, value: inner.value };
3711
- });
3712
- });
3713
- }
3714
- }
3715
- if (effect.type === "transform") {
3716
- if (ctx.common.async === false) {
3717
- const base = this._def.schema._parseSync({
3718
- data: ctx.data,
3719
- path: ctx.path,
3720
- parent: ctx,
3721
- });
3722
- if (!isValid(base))
3723
- return base;
3724
- const result = effect.transform(base.value, checkCtx);
3725
- if (result instanceof Promise) {
3726
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3727
- }
3728
- return { status: status.value, value: result };
3729
- }
3730
- else {
3731
- return this._def.schema
3732
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3733
- .then((base) => {
3734
- if (!isValid(base))
3735
- return base;
3736
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
3737
- });
3738
- }
3739
- }
3740
- util.assertNever(effect);
3741
- }
3742
- }
3743
- ZodEffects.create = (schema, effect, params) => {
3744
- return new ZodEffects({
3745
- schema,
3746
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3747
- effect,
3748
- ...processCreateParams(params),
3749
- });
3750
- };
3751
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3752
- return new ZodEffects({
3753
- schema,
3754
- effect: { type: "preprocess", transform: preprocess },
3755
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3756
- ...processCreateParams(params),
3757
- });
3758
- };
3759
- class ZodOptional extends ZodType {
3760
- _parse(input) {
3761
- const parsedType = this._getType(input);
3762
- if (parsedType === ZodParsedType.undefined) {
3763
- return OK(undefined);
3764
- }
3765
- return this._def.innerType._parse(input);
3766
- }
3767
- unwrap() {
3768
- return this._def.innerType;
3769
- }
3770
- }
3771
- ZodOptional.create = (type, params) => {
3772
- return new ZodOptional({
3773
- innerType: type,
3774
- typeName: ZodFirstPartyTypeKind.ZodOptional,
3775
- ...processCreateParams(params),
3776
- });
3777
- };
3778
- class ZodNullable extends ZodType {
3779
- _parse(input) {
3780
- const parsedType = this._getType(input);
3781
- if (parsedType === ZodParsedType.null) {
3782
- return OK(null);
3783
- }
3784
- return this._def.innerType._parse(input);
3785
- }
3786
- unwrap() {
3787
- return this._def.innerType;
3788
- }
3789
- }
3790
- ZodNullable.create = (type, params) => {
3791
- return new ZodNullable({
3792
- innerType: type,
3793
- typeName: ZodFirstPartyTypeKind.ZodNullable,
3794
- ...processCreateParams(params),
3795
- });
3796
- };
3797
- class ZodDefault extends ZodType {
3798
- _parse(input) {
3799
- const { ctx } = this._processInputParams(input);
3800
- let data = ctx.data;
3801
- if (ctx.parsedType === ZodParsedType.undefined) {
3802
- data = this._def.defaultValue();
3803
- }
3804
- return this._def.innerType._parse({
3805
- data,
3806
- path: ctx.path,
3807
- parent: ctx,
3808
- });
3809
- }
3810
- removeDefault() {
3811
- return this._def.innerType;
3812
- }
3813
- }
3814
- ZodDefault.create = (type, params) => {
3815
- return new ZodDefault({
3816
- innerType: type,
3817
- typeName: ZodFirstPartyTypeKind.ZodDefault,
3818
- defaultValue: typeof params.default === "function"
3819
- ? params.default
3820
- : () => params.default,
3821
- ...processCreateParams(params),
3822
- });
3823
- };
3824
- class ZodCatch extends ZodType {
3825
- _parse(input) {
3826
- const { ctx } = this._processInputParams(input);
3827
- // newCtx is used to not collect issues from inner types in ctx
3828
- const newCtx = {
3829
- ...ctx,
3830
- common: {
3831
- ...ctx.common,
3832
- issues: [],
3833
- },
3834
- };
3835
- const result = this._def.innerType._parse({
3836
- data: newCtx.data,
3837
- path: newCtx.path,
3838
- parent: {
3839
- ...newCtx,
3840
- },
3841
- });
3842
- if (isAsync(result)) {
3843
- return result.then((result) => {
3844
- return {
3845
- status: "valid",
3846
- value: result.status === "valid"
3847
- ? result.value
3848
- : this._def.catchValue({
3849
- get error() {
3850
- return new ZodError(newCtx.common.issues);
3851
- },
3852
- input: newCtx.data,
3853
- }),
3854
- };
3855
- });
3856
- }
3857
- else {
3858
- return {
3859
- status: "valid",
3860
- value: result.status === "valid"
3861
- ? result.value
3862
- : this._def.catchValue({
3863
- get error() {
3864
- return new ZodError(newCtx.common.issues);
3865
- },
3866
- input: newCtx.data,
3867
- }),
3868
- };
3869
- }
3870
- }
3871
- removeCatch() {
3872
- return this._def.innerType;
3873
- }
3874
- }
3875
- ZodCatch.create = (type, params) => {
3876
- return new ZodCatch({
3877
- innerType: type,
3878
- typeName: ZodFirstPartyTypeKind.ZodCatch,
3879
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3880
- ...processCreateParams(params),
3881
- });
3882
- };
3883
- class ZodNaN extends ZodType {
3884
- _parse(input) {
3885
- const parsedType = this._getType(input);
3886
- if (parsedType !== ZodParsedType.nan) {
3887
- const ctx = this._getOrReturnCtx(input);
3888
- addIssueToContext(ctx, {
3889
- code: ZodIssueCode.invalid_type,
3890
- expected: ZodParsedType.nan,
3891
- received: ctx.parsedType,
3892
- });
3893
- return INVALID;
3894
- }
3895
- return { status: "valid", value: input.data };
3896
- }
3897
- }
3898
- ZodNaN.create = (params) => {
3899
- return new ZodNaN({
3900
- typeName: ZodFirstPartyTypeKind.ZodNaN,
3901
- ...processCreateParams(params),
3902
- });
3903
- };
3904
- const BRAND = Symbol("zod_brand");
3905
- class ZodBranded extends ZodType {
3906
- _parse(input) {
3907
- const { ctx } = this._processInputParams(input);
3908
- const data = ctx.data;
3909
- return this._def.type._parse({
3910
- data,
3911
- path: ctx.path,
3912
- parent: ctx,
3913
- });
3914
- }
3915
- unwrap() {
3916
- return this._def.type;
3917
- }
3918
- }
3919
- class ZodPipeline extends ZodType {
3920
- _parse(input) {
3921
- const { status, ctx } = this._processInputParams(input);
3922
- if (ctx.common.async) {
3923
- const handleAsync = async () => {
3924
- const inResult = await this._def.in._parseAsync({
3925
- data: ctx.data,
3926
- path: ctx.path,
3927
- parent: ctx,
3928
- });
3929
- if (inResult.status === "aborted")
3930
- return INVALID;
3931
- if (inResult.status === "dirty") {
3932
- status.dirty();
3933
- return DIRTY(inResult.value);
3934
- }
3935
- else {
3936
- return this._def.out._parseAsync({
3937
- data: inResult.value,
3938
- path: ctx.path,
3939
- parent: ctx,
3940
- });
3941
- }
3942
- };
3943
- return handleAsync();
3944
- }
3945
- else {
3946
- const inResult = this._def.in._parseSync({
3947
- data: ctx.data,
3948
- path: ctx.path,
3949
- parent: ctx,
3950
- });
3951
- if (inResult.status === "aborted")
3952
- return INVALID;
3953
- if (inResult.status === "dirty") {
3954
- status.dirty();
3955
- return {
3956
- status: "dirty",
3957
- value: inResult.value,
3958
- };
3959
- }
3960
- else {
3961
- return this._def.out._parseSync({
3962
- data: inResult.value,
3963
- path: ctx.path,
3964
- parent: ctx,
3965
- });
3966
- }
3967
- }
3968
- }
3969
- static create(a, b) {
3970
- return new ZodPipeline({
3971
- in: a,
3972
- out: b,
3973
- typeName: ZodFirstPartyTypeKind.ZodPipeline,
3974
- });
3975
- }
3976
- }
3977
- class ZodReadonly extends ZodType {
3978
- _parse(input) {
3979
- const result = this._def.innerType._parse(input);
3980
- const freeze = (data) => {
3981
- if (isValid(data)) {
3982
- data.value = Object.freeze(data.value);
3983
- }
3984
- return data;
3985
- };
3986
- return isAsync(result)
3987
- ? result.then((data) => freeze(data))
3988
- : freeze(result);
3989
- }
3990
- unwrap() {
3991
- return this._def.innerType;
3992
- }
3993
- }
3994
- ZodReadonly.create = (type, params) => {
3995
- return new ZodReadonly({
3996
- innerType: type,
3997
- typeName: ZodFirstPartyTypeKind.ZodReadonly,
3998
- ...processCreateParams(params),
3999
- });
4000
- };
4001
- function custom(check, params = {},
4002
- /**
4003
- * @deprecated
4004
- *
4005
- * Pass `fatal` into the params object instead:
4006
- *
4007
- * ```ts
4008
- * z.string().custom((val) => val.length > 5, { fatal: false })
4009
- * ```
4010
- *
4011
- */
4012
- fatal) {
4013
- if (check)
4014
- return ZodAny.create().superRefine((data, ctx) => {
4015
- var _a, _b;
4016
- if (!check(data)) {
4017
- const p = typeof params === "function"
4018
- ? params(data)
4019
- : typeof params === "string"
4020
- ? { message: params }
4021
- : params;
4022
- const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4023
- const p2 = typeof p === "string" ? { message: p } : p;
4024
- ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
4025
- }
4026
- });
4027
- return ZodAny.create();
4028
- }
4029
- const late = {
4030
- object: ZodObject.lazycreate,
4031
- };
4032
- var ZodFirstPartyTypeKind;
4033
- (function (ZodFirstPartyTypeKind) {
4034
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
4035
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
4036
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
4037
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
4038
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
4039
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
4040
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
4041
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
4042
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
4043
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
4044
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
4045
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
4046
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
4047
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
4048
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
4049
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
4050
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
4051
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
4052
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
4053
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
4054
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
4055
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
4056
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
4057
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
4058
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
4059
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
4060
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
4061
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
4062
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
4063
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
4064
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
4065
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
4066
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
4067
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
4068
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
4069
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
4070
- })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
4071
- const instanceOfType = (
4072
- // const instanceOfType = <T extends new (...args: any[]) => any>(
4073
- cls, params = {
4074
- message: `Input not instance of ${cls.name}`,
4075
- }) => custom((data) => data instanceof cls, params);
4076
- const stringType = ZodString.create;
4077
- const numberType = ZodNumber.create;
4078
- const nanType = ZodNaN.create;
4079
- const bigIntType = ZodBigInt.create;
4080
- const booleanType = ZodBoolean.create;
4081
- const dateType = ZodDate.create;
4082
- const symbolType = ZodSymbol.create;
4083
- const undefinedType = ZodUndefined.create;
4084
- const nullType = ZodNull.create;
4085
- const anyType = ZodAny.create;
4086
- const unknownType = ZodUnknown.create;
4087
- const neverType = ZodNever.create;
4088
- const voidType = ZodVoid.create;
4089
- const arrayType = ZodArray.create;
4090
- const objectType = ZodObject.create;
4091
- const strictObjectType = ZodObject.strictCreate;
4092
- const unionType = ZodUnion.create;
4093
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
4094
- const intersectionType = ZodIntersection.create;
4095
- const tupleType = ZodTuple.create;
4096
- const recordType = ZodRecord.create;
4097
- const mapType = ZodMap.create;
4098
- const setType = ZodSet.create;
4099
- const functionType = ZodFunction.create;
4100
- const lazyType = ZodLazy.create;
4101
- const literalType = ZodLiteral.create;
4102
- const enumType = ZodEnum.create;
4103
- const nativeEnumType = ZodNativeEnum.create;
4104
- const promiseType = ZodPromise.create;
4105
- const effectsType = ZodEffects.create;
4106
- const optionalType = ZodOptional.create;
4107
- const nullableType = ZodNullable.create;
4108
- const preprocessType = ZodEffects.createWithPreprocess;
4109
- const pipelineType = ZodPipeline.create;
4110
- const ostring = () => stringType().optional();
4111
- const onumber = () => numberType().optional();
4112
- const oboolean = () => booleanType().optional();
4113
- const coerce = {
4114
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
4115
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
4116
- boolean: ((arg) => ZodBoolean.create({
4117
- ...arg,
4118
- coerce: true,
4119
- })),
4120
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
4121
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
4122
- };
4123
- const NEVER = INVALID;
4124
-
4125
- var z = /*#__PURE__*/Object.freeze({
4126
- __proto__: null,
4127
- defaultErrorMap: errorMap,
4128
- setErrorMap: setErrorMap,
4129
- getErrorMap: getErrorMap,
4130
- makeIssue: makeIssue,
4131
- EMPTY_PATH: EMPTY_PATH,
4132
- addIssueToContext: addIssueToContext,
4133
- ParseStatus: ParseStatus,
4134
- INVALID: INVALID,
4135
- DIRTY: DIRTY,
4136
- OK: OK,
4137
- isAborted: isAborted,
4138
- isDirty: isDirty,
4139
- isValid: isValid,
4140
- isAsync: isAsync,
4141
- get util () { return util; },
4142
- get objectUtil () { return objectUtil; },
4143
- ZodParsedType: ZodParsedType,
4144
- getParsedType: getParsedType,
4145
- ZodType: ZodType,
4146
- datetimeRegex: datetimeRegex,
4147
- ZodString: ZodString,
4148
- ZodNumber: ZodNumber,
4149
- ZodBigInt: ZodBigInt,
4150
- ZodBoolean: ZodBoolean,
4151
- ZodDate: ZodDate,
4152
- ZodSymbol: ZodSymbol,
4153
- ZodUndefined: ZodUndefined,
4154
- ZodNull: ZodNull,
4155
- ZodAny: ZodAny,
4156
- ZodUnknown: ZodUnknown,
4157
- ZodNever: ZodNever,
4158
- ZodVoid: ZodVoid,
4159
- ZodArray: ZodArray,
4160
- ZodObject: ZodObject,
4161
- ZodUnion: ZodUnion,
4162
- ZodDiscriminatedUnion: ZodDiscriminatedUnion,
4163
- ZodIntersection: ZodIntersection,
4164
- ZodTuple: ZodTuple,
4165
- ZodRecord: ZodRecord,
4166
- ZodMap: ZodMap,
4167
- ZodSet: ZodSet,
4168
- ZodFunction: ZodFunction,
4169
- ZodLazy: ZodLazy,
4170
- ZodLiteral: ZodLiteral,
4171
- ZodEnum: ZodEnum,
4172
- ZodNativeEnum: ZodNativeEnum,
4173
- ZodPromise: ZodPromise,
4174
- ZodEffects: ZodEffects,
4175
- ZodTransformer: ZodEffects,
4176
- ZodOptional: ZodOptional,
4177
- ZodNullable: ZodNullable,
4178
- ZodDefault: ZodDefault,
4179
- ZodCatch: ZodCatch,
4180
- ZodNaN: ZodNaN,
4181
- BRAND: BRAND,
4182
- ZodBranded: ZodBranded,
4183
- ZodPipeline: ZodPipeline,
4184
- ZodReadonly: ZodReadonly,
4185
- custom: custom,
4186
- Schema: ZodType,
4187
- ZodSchema: ZodType,
4188
- late: late,
4189
- get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },
4190
- coerce: coerce,
4191
- any: anyType,
4192
- array: arrayType,
4193
- bigint: bigIntType,
4194
- boolean: booleanType,
4195
- date: dateType,
4196
- discriminatedUnion: discriminatedUnionType,
4197
- effect: effectsType,
4198
- 'enum': enumType,
4199
- 'function': functionType,
4200
- 'instanceof': instanceOfType,
4201
- intersection: intersectionType,
4202
- lazy: lazyType,
4203
- literal: literalType,
4204
- map: mapType,
4205
- nan: nanType,
4206
- nativeEnum: nativeEnumType,
4207
- never: neverType,
4208
- 'null': nullType,
4209
- nullable: nullableType,
4210
- number: numberType,
4211
- object: objectType,
4212
- oboolean: oboolean,
4213
- onumber: onumber,
4214
- optional: optionalType,
4215
- ostring: ostring,
4216
- pipeline: pipelineType,
4217
- preprocess: preprocessType,
4218
- promise: promiseType,
4219
- record: recordType,
4220
- set: setType,
4221
- strictObject: strictObjectType,
4222
- string: stringType,
4223
- symbol: symbolType,
4224
- transformer: effectsType,
4225
- tuple: tupleType,
4226
- 'undefined': undefinedType,
4227
- union: unionType,
4228
- unknown: unknownType,
4229
- 'void': voidType,
4230
- NEVER: NEVER,
4231
- ZodIssueCode: ZodIssueCode,
4232
- quotelessJson: quotelessJson,
4233
- ZodError: ZodError
4234
- });
4235
-
4236
- export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, z as default, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };