@burdenoff/microfe-product 2026.1013.2 → 2026.1109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/dist/generated/global-operations.d.ts +2418 -0
  2. package/dist/generated/global-operations.d.ts.map +1 -0
  3. package/dist/generated/global-operations.js +109 -110
  4. package/dist/generated/global-operations.js.map +1 -1
  5. package/dist/generated/global-types.d.ts +22700 -0
  6. package/dist/generated/global-types.d.ts.map +1 -0
  7. package/dist/generated/global-types.js +1 -2
  8. package/dist/generated/global-types.js.map +1 -1
  9. package/dist/generated/wspace-operations.d.ts +5 -0
  10. package/dist/generated/wspace-operations.d.ts.map +1 -0
  11. package/dist/generated/wspace-types.d.ts +49087 -0
  12. package/dist/generated/wspace-types.d.ts.map +1 -0
  13. package/dist/index.d.ts +15 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  16. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  17. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  18. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  19. package/dist/node_modules/zod/v4/classic/errors.js +41 -20
  20. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
  21. package/dist/node_modules/zod/v4/classic/parse.js +4 -5
  22. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -1
  23. package/dist/node_modules/zod/v4/classic/schemas.js +519 -393
  24. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
  25. package/dist/node_modules/zod/v4/core/api.js +199 -197
  26. package/dist/node_modules/zod/v4/core/api.js.map +1 -1
  27. package/dist/node_modules/zod/v4/core/checks.js +83 -123
  28. package/dist/node_modules/zod/v4/core/checks.js.map +1 -1
  29. package/dist/node_modules/zod/v4/core/core.js +70 -35
  30. package/dist/node_modules/zod/v4/core/core.js.map +1 -1
  31. package/dist/node_modules/zod/v4/core/doc.js +11 -7
  32. package/dist/node_modules/zod/v4/core/doc.js.map +1 -1
  33. package/dist/node_modules/zod/v4/core/errors.js +64 -20
  34. package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
  35. package/dist/node_modules/zod/v4/core/json-schema-processors.js +258 -139
  36. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
  37. package/dist/node_modules/zod/v4/core/memoizer.js +188 -0
  38. package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
  39. package/dist/node_modules/zod/v4/core/parse.js +136 -68
  40. package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
  41. package/dist/node_modules/zod/v4/core/regexes.js +26 -19
  42. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
  43. package/dist/node_modules/zod/v4/core/registries.js +2 -3
  44. package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
  45. package/dist/node_modules/zod/v4/core/schemas.js +594 -457
  46. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
  47. package/dist/node_modules/zod/v4/core/to-json-schema.js +204 -100
  48. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
  49. package/dist/node_modules/zod/v4/core/util.js +296 -142
  50. package/dist/node_modules/zod/v4/core/util.js.map +1 -1
  51. package/dist/node_modules/zod/v4/core/versions.js +3 -4
  52. package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
  53. package/dist/node_modules/zod/v4/locales/en.js +96 -0
  54. package/dist/node_modules/zod/v4/locales/en.js.map +1 -0
  55. package/dist/product/ProductUserRoot.d.ts +4 -0
  56. package/dist/product/ProductUserRoot.d.ts.map +1 -0
  57. package/dist/product/ProductUserRoot.js +10 -7
  58. package/dist/product/ProductUserRoot.js.map +1 -1
  59. package/dist/product/ProductUserRoutes.d.ts +6 -0
  60. package/dist/product/ProductUserRoutes.d.ts.map +1 -0
  61. package/dist/product/ProductUserRoutes.js +1 -2
  62. package/dist/product/ProductUserRoutes.js.map +1 -1
  63. package/dist/product/hooks/usePublicContentPage.d.ts +9 -0
  64. package/dist/product/hooks/usePublicContentPage.d.ts.map +1 -0
  65. package/dist/product/hooks/usePublicContentPage.js +1 -2
  66. package/dist/product/hooks/usePublicContentPage.js.map +1 -1
  67. package/dist/product/hooks/usePublicProduct.d.ts +9 -0
  68. package/dist/product/hooks/usePublicProduct.d.ts.map +1 -0
  69. package/dist/product/hooks/usePublicProduct.js +1 -2
  70. package/dist/product/hooks/usePublicProduct.js.map +1 -1
  71. package/dist/product/hooks/usePublicProducts.d.ts +21 -0
  72. package/dist/product/hooks/usePublicProducts.d.ts.map +1 -0
  73. package/dist/product/hooks/usePublicProducts.js +1 -2
  74. package/dist/product/hooks/usePublicProducts.js.map +1 -1
  75. package/dist/product/pages/ContentPageViewPage.d.ts +2 -0
  76. package/dist/product/pages/ContentPageViewPage.d.ts.map +1 -0
  77. package/dist/product/pages/ContentPageViewPage.js +5 -6
  78. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  79. package/dist/product/pages/ProductCatalogPage.d.ts +2 -0
  80. package/dist/product/pages/ProductCatalogPage.d.ts.map +1 -0
  81. package/dist/product/pages/ProductCatalogPage.js +3 -4
  82. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  83. package/dist/product/pages/ProductViewPage.d.ts +2 -0
  84. package/dist/product/pages/ProductViewPage.d.ts.map +1 -0
  85. package/dist/product/pages/ProductViewPage.js +10 -11
  86. package/dist/product/pages/ProductViewPage.js.map +1 -1
  87. package/dist/product/pages/UserProductsLandingPage.d.ts +9 -0
  88. package/dist/product/pages/UserProductsLandingPage.d.ts.map +1 -0
  89. package/dist/product/pages/UserProductsLandingPage.js +1 -2
  90. package/dist/product/pages/UserProductsLandingPage.js.map +1 -1
  91. package/dist/product/providers/ProductUserProvider.d.ts +10 -0
  92. package/dist/product/providers/ProductUserProvider.d.ts.map +1 -0
  93. package/dist/product/providers/ProductUserProvider.js +1 -2
  94. package/dist/product/providers/ProductUserProvider.js.map +1 -1
  95. package/dist/product/types/index.d.ts +34 -0
  96. package/dist/product/types/index.d.ts.map +1 -0
  97. package/dist/product-management/ProductManagementRoot.d.ts +4 -0
  98. package/dist/product-management/ProductManagementRoot.d.ts.map +1 -0
  99. package/dist/product-management/ProductManagementRoot.js +9 -6
  100. package/dist/product-management/ProductManagementRoot.js.map +1 -1
  101. package/dist/product-management/ProductManagementRoutes.d.ts +6 -0
  102. package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -0
  103. package/dist/product-management/ProductManagementRoutes.js +1 -2
  104. package/dist/product-management/ProductManagementRoutes.js.map +1 -1
  105. package/dist/product-management/index.d.ts +5 -0
  106. package/dist/product-management/index.d.ts.map +1 -0
  107. package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts +10 -0
  108. package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -0
  109. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +59 -60
  110. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  111. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts +11 -0
  112. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts.map +1 -0
  113. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js +1 -2
  114. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js.map +1 -1
  115. package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts +76 -0
  116. package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts.map +1 -0
  117. package/dist/product-management/modules/content-pages/hooks/useContentPages.js +1 -2
  118. package/dist/product-management/modules/content-pages/hooks/useContentPages.js.map +1 -1
  119. package/dist/product-management/modules/content-pages/index.d.ts +15 -0
  120. package/dist/product-management/modules/content-pages/index.d.ts.map +1 -0
  121. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts +2 -0
  122. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts.map +1 -0
  123. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +3 -3
  124. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  125. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts +6 -0
  126. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts.map +1 -0
  127. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +19 -20
  128. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  129. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts +2 -0
  130. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts.map +1 -0
  131. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +11 -11
  132. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  133. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts +2 -0
  134. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -0
  135. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +37 -35
  136. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  137. package/dist/product-management/modules/content-pages/schemas/index.d.ts +57 -0
  138. package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -0
  139. package/dist/product-management/modules/content-pages/schemas/index.js +8 -9
  140. package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -1
  141. package/dist/product-management/modules/content-pages/types/index.d.ts +91 -0
  142. package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -0
  143. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts +17 -0
  144. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts.map +1 -0
  145. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +10 -11
  146. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  147. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts +8 -0
  148. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts.map +1 -0
  149. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js +1 -2
  150. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js.map +1 -1
  151. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts +8 -0
  152. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts.map +1 -0
  153. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js +1 -2
  154. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js.map +1 -1
  155. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +59 -0
  156. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts.map +1 -0
  157. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js +1 -2
  158. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -1
  159. package/dist/product-management/modules/feature-flags/index.d.ts +13 -0
  160. package/dist/product-management/modules/feature-flags/index.d.ts.map +1 -0
  161. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts +3 -0
  162. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +1 -0
  163. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +8 -8
  164. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  165. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts +3 -0
  166. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts.map +1 -0
  167. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +18 -19
  168. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  169. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts +3 -0
  170. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +1 -0
  171. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +8 -8
  172. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  173. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts +3 -0
  174. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +1 -0
  175. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +27 -30
  176. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  177. package/dist/product-management/modules/feature-flags/schemas/index.d.ts +35 -0
  178. package/dist/product-management/modules/feature-flags/schemas/index.d.ts.map +1 -0
  179. package/dist/product-management/modules/feature-flags/schemas/index.js +5 -6
  180. package/dist/product-management/modules/feature-flags/schemas/index.js.map +1 -1
  181. package/dist/product-management/modules/feature-flags/types/index.d.ts +101 -0
  182. package/dist/product-management/modules/feature-flags/types/index.d.ts.map +1 -0
  183. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts +10 -0
  184. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts.map +1 -0
  185. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +23 -24
  186. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  187. package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts +73 -0
  188. package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts.map +1 -0
  189. package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js +1 -2
  190. package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js.map +1 -1
  191. package/dist/product-management/modules/press-kit/index.d.ts +14 -0
  192. package/dist/product-management/modules/press-kit/index.d.ts.map +1 -0
  193. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts +2 -0
  194. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts.map +1 -0
  195. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +3 -3
  196. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  197. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts +2 -0
  198. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts.map +1 -0
  199. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +15 -16
  200. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  201. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts +2 -0
  202. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts.map +1 -0
  203. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +11 -11
  204. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  205. package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts +2 -0
  206. package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts.map +1 -0
  207. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +34 -32
  208. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  209. package/dist/product-management/modules/press-kit/schemas/index.d.ts +60 -0
  210. package/dist/product-management/modules/press-kit/schemas/index.d.ts.map +1 -0
  211. package/dist/product-management/modules/press-kit/schemas/index.js +7 -8
  212. package/dist/product-management/modules/press-kit/schemas/index.js.map +1 -1
  213. package/dist/product-management/modules/press-kit/types/index.d.ts +73 -0
  214. package/dist/product-management/modules/press-kit/types/index.d.ts.map +1 -0
  215. package/dist/product-management/modules/press-kit/types/index.js +1 -2
  216. package/dist/product-management/modules/press-kit/types/index.js.map +1 -1
  217. package/dist/product-management/modules/products/components/ProductCard.d.ts +15 -0
  218. package/dist/product-management/modules/products/components/ProductCard.d.ts.map +1 -0
  219. package/dist/product-management/modules/products/components/ProductForm.d.ts +10 -0
  220. package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -0
  221. package/dist/product-management/modules/products/components/ProductForm.js +23 -24
  222. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  223. package/dist/product-management/modules/products/components/ProductPlans.d.ts +8 -0
  224. package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +1 -0
  225. package/dist/product-management/modules/products/components/ProductPlans.js +26 -24
  226. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  227. package/dist/product-management/modules/products/components/ProductStats.d.ts +23 -0
  228. package/dist/product-management/modules/products/components/ProductStats.d.ts.map +1 -0
  229. package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts +12 -0
  230. package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts.map +1 -0
  231. package/dist/product-management/modules/products/components/ProductStatusBadge.js +1 -2
  232. package/dist/product-management/modules/products/components/ProductStatusBadge.js.map +1 -1
  233. package/dist/product-management/modules/products/hooks/useProducts.d.ts +103 -0
  234. package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +1 -0
  235. package/dist/product-management/modules/products/hooks/useProducts.js +1 -2
  236. package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -1
  237. package/dist/product-management/modules/products/index.d.ts +16 -0
  238. package/dist/product-management/modules/products/index.d.ts.map +1 -0
  239. package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts +2 -0
  240. package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts.map +1 -0
  241. package/dist/product-management/modules/products/pages/ProductCreatePage.js +3 -3
  242. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  243. package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts +6 -0
  244. package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -0
  245. package/dist/product-management/modules/products/pages/ProductDetailPage.js +21 -22
  246. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  247. package/dist/product-management/modules/products/pages/ProductEditPage.d.ts +2 -0
  248. package/dist/product-management/modules/products/pages/ProductEditPage.d.ts.map +1 -0
  249. package/dist/product-management/modules/products/pages/ProductEditPage.js +11 -12
  250. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  251. package/dist/product-management/modules/products/pages/ProductsListPage.d.ts +2 -0
  252. package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -0
  253. package/dist/product-management/modules/products/pages/ProductsListPage.js +19 -20
  254. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  255. package/dist/product-management/modules/products/schemas/index.d.ts +61 -0
  256. package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -0
  257. package/dist/product-management/modules/products/schemas/index.js +16 -17
  258. package/dist/product-management/modules/products/schemas/index.js.map +1 -1
  259. package/dist/product-management/modules/products/types/index.d.ts +115 -0
  260. package/dist/product-management/modules/products/types/index.d.ts.map +1 -0
  261. package/dist/product-management/modules/products/types/index.js +1 -2
  262. package/dist/product-management/modules/products/types/index.js.map +1 -1
  263. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts +6 -0
  264. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts.map +1 -0
  265. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js +1 -2
  266. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js.map +1 -1
  267. package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts +10 -0
  268. package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts.map +1 -0
  269. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +19 -20
  270. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  271. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts +11 -0
  272. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts.map +1 -0
  273. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +1 -2
  274. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -1
  275. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts +85 -0
  276. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts.map +1 -0
  277. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js +1 -2
  278. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js.map +1 -1
  279. package/dist/product-management/modules/shortcuts/index.d.ts +17 -0
  280. package/dist/product-management/modules/shortcuts/index.d.ts.map +1 -0
  281. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts +2 -0
  282. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts.map +1 -0
  283. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +3 -3
  284. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  285. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts +2 -0
  286. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts.map +1 -0
  287. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +25 -26
  288. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  289. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts +2 -0
  290. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts.map +1 -0
  291. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +10 -11
  292. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  293. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts +2 -0
  294. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts.map +1 -0
  295. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +36 -37
  296. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  297. package/dist/product-management/modules/shortcuts/schemas/index.d.ts +35 -0
  298. package/dist/product-management/modules/shortcuts/schemas/index.d.ts.map +1 -0
  299. package/dist/product-management/modules/shortcuts/schemas/index.js +1 -2
  300. package/dist/product-management/modules/shortcuts/schemas/index.js.map +1 -1
  301. package/dist/product-management/modules/shortcuts/types/index.d.ts +28 -0
  302. package/dist/product-management/modules/shortcuts/types/index.d.ts.map +1 -0
  303. package/dist/product-management/modules/shortcuts/types/index.js +1 -2
  304. package/dist/product-management/modules/shortcuts/types/index.js.map +1 -1
  305. package/dist/product-management/providers/ProductConsoleProvider.d.ts +18 -0
  306. package/dist/product-management/providers/ProductConsoleProvider.d.ts.map +1 -0
  307. package/dist/product-management/providers/ProductConsoleProvider.js +1 -2
  308. package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -1
  309. package/dist/product-management/shared/components/AuditHistoryTab.d.ts +7 -0
  310. package/dist/product-management/shared/components/AuditHistoryTab.d.ts.map +1 -0
  311. package/dist/product-management/shared/components/AuditHistoryTab.js +4 -5
  312. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  313. package/dist/product-management/shared/components/TagList.d.ts +7 -0
  314. package/dist/product-management/shared/components/TagList.d.ts.map +1 -0
  315. package/dist/product-management/shared/components/TagList.js +1 -2
  316. package/dist/product-management/shared/components/TagList.js.map +1 -1
  317. package/dist/product-management/shared/components/feedback/EmptyState.d.ts +20 -0
  318. package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
  319. package/dist/product-management/shared/components/feedback/ErrorState.d.ts +33 -0
  320. package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
  321. package/dist/product-management/shared/components/feedback/ErrorState.js +4 -5
  322. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  323. package/dist/product-management/shared/components/feedback/LoadingState.d.ts +13 -0
  324. package/dist/product-management/shared/components/feedback/LoadingState.d.ts.map +1 -0
  325. package/dist/product-management/shared/components/feedback/LoadingState.js +1 -2
  326. package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
  327. package/dist/product-management/shared/components/input/ProductCombobox.d.ts +29 -0
  328. package/dist/product-management/shared/components/input/ProductCombobox.d.ts.map +1 -0
  329. package/dist/product-management/shared/components/input/ProductCombobox.js +12 -13
  330. package/dist/product-management/shared/components/input/ProductCombobox.js.map +1 -1
  331. package/dist/product-management/shared/components/input/SearchInput.d.ts +17 -0
  332. package/dist/product-management/shared/components/input/SearchInput.d.ts.map +1 -0
  333. package/dist/product-management/shared/components/input/SearchInput.js +1 -2
  334. package/dist/product-management/shared/components/input/SearchInput.js.map +1 -1
  335. package/dist/product-management/shared/components/input/TagInput.d.ts +10 -0
  336. package/dist/product-management/shared/components/input/TagInput.d.ts.map +1 -0
  337. package/dist/product-management/shared/components/input/TagInput.js +2 -3
  338. package/dist/product-management/shared/components/input/TagInput.js.map +1 -1
  339. package/dist/product-management/shared/hooks/useConfirmDialog.d.ts +22 -0
  340. package/dist/product-management/shared/hooks/useConfirmDialog.d.ts.map +1 -0
  341. package/dist/product-management/shared/hooks/useConfirmDialog.js +1 -2
  342. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -1
  343. package/dist/product-management/shared/hooks/useDebounced.d.ts +6 -0
  344. package/dist/product-management/shared/hooks/useDebounced.d.ts.map +1 -0
  345. package/dist/product-management/shared/hooks/useDebounced.js +1 -2
  346. package/dist/product-management/shared/hooks/useDebounced.js.map +1 -1
  347. package/dist/product-management/shared/hooks/useTr.d.ts +17 -0
  348. package/dist/product-management/shared/hooks/useTr.d.ts.map +1 -0
  349. package/dist/product-management/shared/hooks/useTr.js +1 -2
  350. package/dist/product-management/shared/hooks/useTr.js.map +1 -1
  351. package/dist/product-management/shared/index.d.ts +13 -0
  352. package/dist/product-management/shared/index.d.ts.map +1 -0
  353. package/dist/product-management/shared/types/graphql.d.ts +119 -0
  354. package/dist/product-management/shared/types/graphql.d.ts.map +1 -0
  355. package/dist/product-management/shared/utils/cn.d.ts +7 -0
  356. package/dist/product-management/shared/utils/cn.d.ts.map +1 -0
  357. package/dist/product-management/shared/utils/cn.js +2 -3
  358. package/dist/product-management/shared/utils/cn.js.map +1 -1
  359. package/dist/product-management/shared/utils/exportUtils.d.ts +4 -0
  360. package/dist/product-management/shared/utils/exportUtils.d.ts.map +1 -0
  361. package/dist/product-management/shared/utils/exportUtils.js +1 -2
  362. package/dist/product-management/shared/utils/exportUtils.js.map +1 -1
  363. package/dist/product-management/shared/utils/permission-error.d.ts +13 -0
  364. package/dist/product-management/shared/utils/permission-error.d.ts.map +1 -0
  365. package/dist/product-management/shared/utils/permission-error.js +3 -4
  366. package/dist/product-management/shared/utils/permission-error.js.map +1 -1
  367. package/dist/product-management/types/index.d.ts +40 -0
  368. package/dist/product-management/types/index.d.ts.map +1 -0
  369. package/dist/shared/components/MarkdownEditor.d.ts +16 -0
  370. package/dist/shared/components/MarkdownEditor.d.ts.map +1 -0
  371. package/dist/shared/components/MarkdownEditor.js +3 -4
  372. package/dist/shared/components/MarkdownEditor.js.map +1 -1
  373. package/dist/shared/components/index.d.ts +11 -0
  374. package/dist/shared/components/index.d.ts.map +1 -0
  375. package/dist/shared/components/index.js +5 -4
  376. package/dist/shared/hooks/useTr.d.ts +2 -0
  377. package/dist/shared/hooks/useTr.d.ts.map +1 -0
  378. package/dist/shared/hooks/useTr.js +1 -1
  379. package/dist/shared/index.d.ts +3 -0
  380. package/dist/shared/index.d.ts.map +1 -0
  381. package/dist/shared/utils/formatDate.d.ts +5 -0
  382. package/dist/shared/utils/formatDate.d.ts.map +1 -0
  383. package/dist/shared/utils/formatDate.js +1 -2
  384. package/dist/shared/utils/formatDate.js.map +1 -1
  385. package/dist/shared/utils/index.d.ts +4 -0
  386. package/dist/shared/utils/index.d.ts.map +1 -0
  387. package/dist/shared/utils/isSafeUrl.d.ts +6 -0
  388. package/dist/shared/utils/isSafeUrl.d.ts.map +1 -0
  389. package/dist/shared/utils/isSafeUrl.js +1 -2
  390. package/dist/shared/utils/isSafeUrl.js.map +1 -1
  391. package/dist/shared/utils/renderMarkdown.d.ts +10 -0
  392. package/dist/shared/utils/renderMarkdown.d.ts.map +1 -0
  393. package/dist/translations/en.d.ts +651 -0
  394. package/dist/translations/en.d.ts.map +1 -0
  395. package/dist/translations/en.js +1 -2
  396. package/dist/translations/en.js.map +1 -1
  397. package/dist/translations/index.d.ts +2 -0
  398. package/dist/translations/index.d.ts.map +1 -0
  399. package/dist/utils/nativeBridge.d.ts +3 -0
  400. package/dist/utils/nativeBridge.d.ts.map +1 -0
  401. package/dist/utils/nativeBridge.js +1 -2
  402. package/package.json +35 -23
  403. package/dist/node_modules/zod/v4/classic/iso.js +0 -33
  404. package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
@@ -1,81 +1,100 @@
1
- import { $ZodAsyncError as e, $ZodEncodeError as t, $constructor as n, config as r, globalConfig as i } from "./core.js";
2
- import { aborted as a, allowsEval as o, cached as s, cleanRegex as c, defineLazy as l, esc as u, escapeRegex as d, explicitlyAborted as f, finalizeIssue as p, getEnumValues as m, isObject as h, isPlainObject as g, issue as _, optionalKeys as ee, prefixIssues as v, propertyKeyTypes as y } from "./util.js";
3
- import { safeParse as b, safeParseAsync as te } from "./parse.js";
4
- import { _undefined as ne, base64 as re, base64url as x, boolean as ie, cidrv4 as ae, cidrv6 as oe, cuid as se, cuid2 as ce, date as le, datetime as ue, duration as de, e164 as fe, email as pe, emoji as me, guid as he, httpProtocol as ge, ipv4 as _e, ipv6 as ve, ksuid as ye, nanoid as S, number as C, string as w, time as T, ulid as E, uuid as D, xid as O } from "./regexes.js";
5
- import { $ZodCheck as k, $ZodCheckNumberFormat as A, $ZodCheckStringFormat as j } from "./checks.js";
6
- import { Doc as M } from "./doc.js";
7
- import { version as N } from "./versions.js";
8
- //#region node_modules/zod/v4/core/schemas.js
9
- var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
10
- var r;
11
- t ??= {}, t._zod.def = n, t._zod.bag = t._zod.bag || {}, t._zod.version = N;
12
- let i = [...t._zod.def.checks ?? []];
13
- t._zod.traits.has("$ZodCheck") && i.unshift(t);
14
- for (let e of i) for (let n of e._zod.onattach) n(t);
15
- if (i.length === 0) (r = t._zod).deferred ?? (r.deferred = []), t._zod.deferred?.push(() => {
16
- t._zod.run = t._zod.parse;
1
+ import { $ZodCheck as e, $ZodCheckNumberFormat as t, $ZodCheckStringFormat as n } from "./checks.js";
2
+ import { $ZodAsyncError as r, $ZodEncodeError as i, $constructor as a, config as o, globalConfig as s } from "./core.js";
3
+ import { Doc as c } from "./doc.js";
4
+ import { anyString as l, boolean as u, cidrv4 as d, cidrv6 as f, cuid as p, cuid2 as ee, date as te, datetime as ne, duration as re, e164 as ie, email as ae, emoji as oe, guid as se, httpProtocol as ce, ipv4 as le, ipv6 as ue, ksuid as de, nanoid as fe, nanoidOfLength as pe, number as m, time as me, ulid as he, undefined as ge, uuid as _e, xid as ve } from "./regexes.js";
5
+ import { aborted as h, allowsEval as ye, assignProp as be, attachSchema as g, cached as _, cleanRegex as v, defineLazyInternal as y, esc as xe, escapeRegex as b, explicitlyAborted as Se, finalizeIssue as x, getEnumValues as S, hide as Ce, isObject as C, isPlainObject as w, issue as we, optionalKeys as Te, own as Ee, prefixIssues as T, propertyKeyTypes as De, sizeCaps as E } from "./util.js";
6
+ import { version as Oe } from "./versions.js";
7
+ // node_modules/zod/v4/core/schemas.js
8
+ var D = /*@__PURE__*/ a("$ZodType", (e, t) => {
9
+ var n;
10
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Oe;
11
+ let i = e._zod.def.checks, a = e._zod.traits.has("$ZodCheck") ? [e, ...i ?? []] : i?.length ? [...i] : [];
12
+ for (let t of a) for (let n of t._zod.onattach) n(e);
13
+ if (a.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
14
+ e._zod.run = e._zod.parse;
17
15
  });
18
16
  else {
19
- let n = (t, n, r) => {
20
- let i = a(t), o;
17
+ let t = (t, n, i) => {
18
+ if (t.memo) return t;
19
+ let a = h(t), o;
21
20
  for (let s of n) {
22
21
  if (s._zod.def.when) {
23
- if (f(t) || !s._zod.def.when(t)) continue;
24
- } else if (i) continue;
22
+ if (Se(t) || !s._zod.def.when(t)) continue;
23
+ } else if (a) continue;
25
24
  let n = t.issues.length, c = s._zod.check(t);
26
- if (c instanceof Promise && r?.async === !1) throw new e();
25
+ if (c instanceof Promise && i?.async === !1) throw new r();
27
26
  if (o || c instanceof Promise) o = (o ?? Promise.resolve()).then(async () => {
28
- await c, t.issues.length !== n && (i ||= a(t, n));
27
+ await c, t.issues.length !== n && (g(t.issues, n, e), a ||= h(t, n));
29
28
  });
30
29
  else {
31
30
  if (t.issues.length === n) continue;
32
- i ||= a(t, n);
31
+ g(t.issues, n, e), a ||= h(t, n);
33
32
  }
34
33
  }
35
34
  return o ? o.then(() => t) : t;
36
- }, r = (r, o, s) => {
37
- if (a(r)) return r.aborted = !0, r;
38
- let c = n(o, i, s);
39
- if (c instanceof Promise) {
40
- if (s.async === !1) throw new e();
41
- return c.then((e) => t._zod.parse(e, s));
35
+ }, n = (n, i, o) => {
36
+ if (h(n)) return n.aborted = !0, n;
37
+ let s = t(i, a, o);
38
+ if (s instanceof Promise) {
39
+ if (o.async === !1) throw new r();
40
+ return s.then((t) => e._zod.parse(t, o));
42
41
  }
43
- return t._zod.parse(c, s);
42
+ return e._zod.parse(s, o);
44
43
  };
45
- t._zod.run = (a, o) => {
46
- if (o.skipChecks) return t._zod.parse(a, o);
44
+ e._zod.run = (i, o) => {
45
+ if (o.skipChecks) return e._zod.parse(i, o);
47
46
  if (o.direction === "backward") {
48
- let e = t._zod.parse({
49
- value: a.value,
47
+ let t = e._zod.parse({
48
+ value: i.value,
50
49
  issues: []
51
50
  }, {
52
51
  ...o,
53
52
  skipChecks: !0
54
53
  });
55
- return e instanceof Promise ? e.then((e) => r(e, a, o)) : r(e, a, o);
54
+ return t instanceof Promise ? t.then((e) => n(e, i, o)) : n(t, i, o);
56
55
  }
57
- let s = t._zod.parse(a, o);
56
+ let s = e._zod.parse(i, o);
58
57
  if (s instanceof Promise) {
59
- if (o.async === !1) throw new e();
60
- return s.then((e) => n(e, i, o));
58
+ if (o.async === !1) throw new r();
59
+ return s.then((e) => t(e, a, o));
61
60
  }
62
- return n(s, i, o);
61
+ return t(s, a, o);
63
62
  };
64
63
  }
65
- l(t, "~standard", () => ({
66
- validate: (e) => {
64
+ }, {
65
+ get "~standard"() {
66
+ return Ce(this, "~standard", k(this));
67
+ },
68
+ set "~standard"(e) {
69
+ Ee(this, "~standard", e);
70
+ }
71
+ }), O = (e, t) => e.issues.length ? { issues: e.issues.map((e) => x(e, t, o())) } : { value: e.value };
72
+ async function ke(e, t) {
73
+ let n = { async: !0 };
74
+ return O(await e._zod.run({
75
+ value: t,
76
+ issues: []
77
+ }, n), n);
78
+ }
79
+ function k(e) {
80
+ return {
81
+ validate: (t) => {
82
+ let n = { async: !1 };
67
83
  try {
68
- let n = b(t, e);
69
- return n.success ? { value: n.data } : { issues: n.error?.issues };
70
- } catch {
71
- return te(t, e).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
72
- }
84
+ let r = e._zod.run({
85
+ value: t,
86
+ issues: []
87
+ }, n);
88
+ if (!(r instanceof Promise)) return O(r, n);
89
+ } catch {}
90
+ return ke(e, t);
73
91
  },
74
92
  vendor: "zod",
75
93
  version: 1
76
- }));
77
- }), F = /* @__PURE__ */ n("$ZodString", (e, t) => {
78
- P.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? w(e._zod.bag), e._zod.parse = (n, r) => {
94
+ };
95
+ }
96
+ var A = /*@__PURE__*/ a("$ZodString", (e, t) => {
97
+ D.init(e, t), e._zod.pattern = t.pattern ?? l, e._zod.parse = (n, r) => {
79
98
  if (t.coerce) try {
80
99
  n.value = String(n.value);
81
100
  } catch {}
@@ -86,11 +105,11 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
86
105
  inst: e
87
106
  }), n;
88
107
  };
89
- }), I = /* @__PURE__ */ n("$ZodStringFormat", (e, t) => {
90
- j.init(e, t), F.init(e, t);
91
- }), be = /* @__PURE__ */ n("$ZodGUID", (e, t) => {
92
- t.pattern ??= he, I.init(e, t);
93
- }), xe = /* @__PURE__ */ n("$ZodUUID", (e, t) => {
108
+ }), j = /*@__PURE__*/ a("$ZodStringFormat", (e, t) => {
109
+ n.init(e, t), A.init(e, t);
110
+ }), Ae = /*@__PURE__*/ a("$ZodGUID", (e, t) => {
111
+ t.pattern ??= se, j.init(e, t);
112
+ }), je = /*@__PURE__*/ a("$ZodUUID", (e, t) => {
94
113
  if (t.version) {
95
114
  let e = {
96
115
  v1: 1,
@@ -103,16 +122,49 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
103
122
  v8: 8
104
123
  }[t.version];
105
124
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
106
- t.pattern ??= D(e);
107
- } else t.pattern ??= D();
108
- I.init(e, t);
109
- }), Se = /* @__PURE__ */ n("$ZodEmail", (e, t) => {
110
- t.pattern ??= pe, I.init(e, t);
111
- }), Ce = /* @__PURE__ */ n("$ZodURL", (e, t) => {
112
- I.init(e, t), e._zod.check = (n) => {
125
+ t.pattern ??= _e(e);
126
+ } else t.pattern ??= _e();
127
+ j.init(e, t);
128
+ }), Me = /*@__PURE__*/ a("$ZodEmail", (e, t) => {
129
+ t.pattern ??= ae, j.init(e, t);
130
+ });
131
+ function M(e) {
132
+ try {
133
+ return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
134
+ } catch {
135
+ return !1;
136
+ }
137
+ }
138
+ function N(e, t) {
139
+ return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? M(e) || 2 : P(e, t);
140
+ }
141
+ function P(e, t) {
142
+ if (!t.normalize && t.protocol?.source === ce.source && !/^https?:\/\//i.test(e)) return 1;
143
+ try {
144
+ if (typeof URL < "u") {
145
+ let t = URL;
146
+ if (typeof t.parse == "function") return t.parse(e) ?? 2;
147
+ }
148
+ return new URL(e);
149
+ } catch {
150
+ return 2;
151
+ }
152
+ }
153
+ var Ne = /[\t\n\r]/g;
154
+ function F(e) {
155
+ return e.replace(Ne, "");
156
+ }
157
+ function I(e, t) {
158
+ return t.lastIndex = 0, t.test(e.hostname);
159
+ }
160
+ function L(e, t) {
161
+ return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
162
+ }
163
+ var Pe = /*@__PURE__*/ a("$ZodURL", (e, t) => {
164
+ j.init(e, t), e._zod.check = (n) => {
113
165
  try {
114
- let r = n.value.trim();
115
- if (!t.normalize && t.protocol?.source === ge.source && !/^https?:\/\//i.test(r)) {
166
+ let r = n.value.trim(), i = N(r, t);
167
+ if (i === 1) {
116
168
  n.issues.push({
117
169
  code: "invalid_format",
118
170
  format: "url",
@@ -123,8 +175,21 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
123
175
  });
124
176
  return;
125
177
  }
126
- let i = new URL(r);
127
- t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
178
+ if (i === 2) {
179
+ n.issues.push({
180
+ code: "invalid_format",
181
+ format: "url",
182
+ input: n.value,
183
+ inst: e,
184
+ continue: !t.abort
185
+ });
186
+ return;
187
+ }
188
+ if (i === !0) {
189
+ n.value = F(r);
190
+ return;
191
+ }
192
+ t.hostname && !I(i, t.hostname) && n.issues.push({
128
193
  code: "invalid_format",
129
194
  format: "url",
130
195
  note: "Invalid hostname",
@@ -132,7 +197,7 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
132
197
  input: n.value,
133
198
  inst: e,
134
199
  continue: !t.abort
135
- })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || n.issues.push({
200
+ }), t.protocol && !L(i, t.protocol) && n.issues.push({
136
201
  code: "invalid_format",
137
202
  format: "url",
138
203
  note: "Invalid protocol",
@@ -140,7 +205,7 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
140
205
  input: n.value,
141
206
  inst: e,
142
207
  continue: !t.abort
143
- })), t.normalize ? n.value = i.href : n.value = r;
208
+ }), n.value = t.normalize ? i.href : F(r);
144
209
  return;
145
210
  } catch {
146
211
  n.issues.push({
@@ -152,68 +217,68 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
152
217
  });
153
218
  }
154
219
  };
155
- }), we = /* @__PURE__ */ n("$ZodEmoji", (e, t) => {
156
- t.pattern ??= me(), I.init(e, t);
157
- }), Te = /* @__PURE__ */ n("$ZodNanoID", (e, t) => {
158
- t.pattern ??= S, I.init(e, t);
159
- }), Ee = /* @__PURE__ */ n("$ZodCUID", (e, t) => {
160
- t.pattern ??= se, I.init(e, t);
161
- }), De = /* @__PURE__ */ n("$ZodCUID2", (e, t) => {
162
- t.pattern ??= ce, I.init(e, t);
163
- }), Oe = /* @__PURE__ */ n("$ZodULID", (e, t) => {
164
- t.pattern ??= E, I.init(e, t);
165
- }), ke = /* @__PURE__ */ n("$ZodXID", (e, t) => {
166
- t.pattern ??= O, I.init(e, t);
167
- }), Ae = /* @__PURE__ */ n("$ZodKSUID", (e, t) => {
168
- t.pattern ??= ye, I.init(e, t);
169
- }), je = /* @__PURE__ */ n("$ZodISODateTime", (e, t) => {
170
- t.pattern ??= ue(t), I.init(e, t);
171
- }), Me = /* @__PURE__ */ n("$ZodISODate", (e, t) => {
172
- t.pattern ??= le, I.init(e, t);
173
- }), Ne = /* @__PURE__ */ n("$ZodISOTime", (e, t) => {
174
- t.pattern ??= T(t), I.init(e, t);
175
- }), Pe = /* @__PURE__ */ n("$ZodISODuration", (e, t) => {
176
- t.pattern ??= de, I.init(e, t);
177
- }), Fe = /* @__PURE__ */ n("$ZodIPv4", (e, t) => {
178
- t.pattern ??= _e, I.init(e, t), e._zod.bag.format = "ipv4";
179
- }), Ie = /* @__PURE__ */ n("$ZodIPv6", (e, t) => {
180
- t.pattern ??= ve, I.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
181
- try {
182
- new URL(`http://[${n.value}]`);
183
- } catch {
184
- n.issues.push({
185
- code: "invalid_format",
186
- format: "ipv6",
187
- input: n.value,
188
- inst: e,
189
- continue: !t.abort
190
- });
191
- }
220
+ }), Fe = /*@__PURE__*/ a("$ZodEmoji", (e, t) => {
221
+ t.pattern ??= oe(), j.init(e, t);
222
+ }), Ie = /*@__PURE__*/ a("$ZodNanoID", (e, t) => {
223
+ if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
224
+ t.pattern ??= t.length === void 0 ? fe : pe(t.length), j.init(e, t);
225
+ }), Le = /*@__PURE__*/ a("$ZodCUID", (e, t) => {
226
+ t.pattern ??= p, j.init(e, t);
227
+ }), Re = /*@__PURE__*/ a("$ZodCUID2", (e, t) => {
228
+ t.pattern ??= ee, j.init(e, t);
229
+ }), ze = /*@__PURE__*/ a("$ZodULID", (e, t) => {
230
+ t.pattern ??= he, j.init(e, t);
231
+ }), Be = /*@__PURE__*/ a("$ZodXID", (e, t) => {
232
+ t.pattern ??= ve, j.init(e, t);
233
+ }), Ve = /*@__PURE__*/ a("$ZodKSUID", (e, t) => {
234
+ t.pattern ??= de, j.init(e, t);
235
+ }), He = /*@__PURE__*/ a("$ZodISODateTime", (e, t) => {
236
+ t.pattern ??= ne(t), j.init(e, t);
237
+ }), Ue = /*@__PURE__*/ a("$ZodISODate", (e, t) => {
238
+ t.pattern ??= te, j.init(e, t);
239
+ }), We = /*@__PURE__*/ a("$ZodISOTime", (e, t) => {
240
+ t.pattern ??= me(t), j.init(e, t);
241
+ }), Ge = /*@__PURE__*/ a("$ZodISODuration", (e, t) => {
242
+ t.pattern ??= re, j.init(e, t);
243
+ }), Ke = /*@__PURE__*/ a("$ZodIPv4", (e, t) => {
244
+ t.pattern ??= le, j.init(e, t);
245
+ }), qe = /^[0-9a-fA-F:.]+$/;
246
+ function R(e) {
247
+ return qe.test(e) ? M(`http://[${e}]`) : !1;
248
+ }
249
+ var Je = /*@__PURE__*/ a("$ZodIPv6", (e, t) => {
250
+ t.pattern ??= ue, j.init(e, t), e._zod.check = (n) => {
251
+ R(n.value) || n.issues.push({
252
+ code: "invalid_format",
253
+ format: "ipv6",
254
+ input: n.value,
255
+ inst: e,
256
+ continue: !t.abort
257
+ });
192
258
  };
193
- }), Le = /* @__PURE__ */ n("$ZodCIDRv4", (e, t) => {
194
- t.pattern ??= ae, I.init(e, t);
195
- }), Re = /* @__PURE__ */ n("$ZodCIDRv6", (e, t) => {
196
- t.pattern ??= oe, I.init(e, t), e._zod.check = (n) => {
197
- let r = n.value.split("/");
198
- try {
199
- if (r.length !== 2) throw Error();
200
- let [e, t] = r;
201
- if (!t) throw Error();
202
- let n = Number(t);
203
- if (`${n}` !== t || n < 0 || n > 128) throw Error();
204
- new URL(`http://[${e}]`);
205
- } catch {
206
- n.issues.push({
207
- code: "invalid_format",
208
- format: "cidrv6",
209
- input: n.value,
210
- inst: e,
211
- continue: !t.abort
212
- });
213
- }
259
+ }), Ye = /*@__PURE__*/ a("$ZodCIDRv4", (e, t) => {
260
+ t.pattern ??= d, j.init(e, t);
261
+ });
262
+ function z(e) {
263
+ let t = e.split("/");
264
+ if (t.length !== 2) return !1;
265
+ let [n, r] = t;
266
+ if (!r) return !1;
267
+ let i = Number(r);
268
+ return `${i}` !== r || i < 0 || i > 128 ? !1 : R(n);
269
+ }
270
+ var Xe = /*@__PURE__*/ a("$ZodCIDRv6", (e, t) => {
271
+ t.pattern ??= f, j.init(e, t), e._zod.check = (n) => {
272
+ z(n.value) || n.issues.push({
273
+ code: "invalid_format",
274
+ format: "cidrv6",
275
+ input: n.value,
276
+ inst: e,
277
+ continue: !t.abort
278
+ });
214
279
  };
215
280
  });
216
- function L(e) {
281
+ function B(e) {
217
282
  if (e === "") return !0;
218
283
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
219
284
  try {
@@ -222,9 +287,9 @@ function L(e) {
222
287
  return !1;
223
288
  }
224
289
  }
225
- var ze = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
226
- t.pattern ??= re, I.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
227
- L(n.value) || n.issues.push({
290
+ var V = /^[0-9a-zA-Z+/]*={0,2}$/, Ze = /*@__PURE__*/ a("$ZodBase64", (e, t) => {
291
+ t.pattern ??= V, j.init(e, t), e._zod.check = (n) => {
292
+ B(n.value) || n.issues.push({
228
293
  code: "invalid_format",
229
294
  format: "base64",
230
295
  input: n.value,
@@ -232,15 +297,15 @@ var ze = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
232
297
  continue: !t.abort
233
298
  });
234
299
  };
235
- });
236
- function Be(e) {
237
- if (!x.test(e)) return !1;
300
+ }), H = /^[A-Za-z0-9_-]*$/;
301
+ function U(e) {
302
+ if (!H.test(e)) return !1;
238
303
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
239
- return L(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
304
+ return B(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
240
305
  }
241
- var Ve = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
242
- t.pattern ??= x, I.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
243
- Be(n.value) || n.issues.push({
306
+ var Qe = /*@__PURE__*/ a("$ZodBase64URL", (e, t) => {
307
+ t.pattern ??= H, j.init(e, t), e._zod.check = (n) => {
308
+ U(n.value) || n.issues.push({
244
309
  code: "invalid_format",
245
310
  format: "base64url",
246
311
  input: n.value,
@@ -248,10 +313,10 @@ var Ve = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
248
313
  continue: !t.abort
249
314
  });
250
315
  };
251
- }), He = /* @__PURE__ */ n("$ZodE164", (e, t) => {
252
- t.pattern ??= fe, I.init(e, t);
316
+ }), $e = /*@__PURE__*/ a("$ZodE164", (e, t) => {
317
+ t.pattern ??= ie, j.init(e, t);
253
318
  });
254
- function Ue(e, t = null) {
319
+ function W(e, t = null) {
255
320
  try {
256
321
  let n = e.split(".");
257
322
  if (n.length !== 3) return !1;
@@ -263,9 +328,9 @@ function Ue(e, t = null) {
263
328
  return !1;
264
329
  }
265
330
  }
266
- var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
267
- I.init(e, t), e._zod.check = (n) => {
268
- Ue(n.value, t.alg) || n.issues.push({
331
+ var et = /*@__PURE__*/ a("$ZodJWT", (e, t) => {
332
+ j.init(e, t), e._zod.check = (n) => {
333
+ W(n.value, t.alg) || n.issues.push({
269
334
  code: "invalid_format",
270
335
  format: "jwt",
271
336
  input: n.value,
@@ -273,14 +338,14 @@ var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
273
338
  continue: !t.abort
274
339
  });
275
340
  };
276
- }), R = /* @__PURE__ */ n("$ZodNumber", (e, t) => {
277
- P.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? C, e._zod.parse = (n, r) => {
341
+ }), G = /*@__PURE__*/ a("$ZodNumber", (e, t) => {
342
+ D.init(e, t), e._zod.pattern = m, e._zod.parse = (n, r) => {
278
343
  if (t.coerce) try {
279
344
  n.value = Number(n.value);
280
345
  } catch {}
281
346
  let i = n.value;
282
347
  if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i)) return n;
283
- let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
348
+ let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : String(i) : void 0;
284
349
  return n.issues.push({
285
350
  expected: "number",
286
351
  code: "invalid_type",
@@ -289,10 +354,10 @@ var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
289
354
  ...a ? { received: a } : {}
290
355
  }), n;
291
356
  };
292
- }), Ge = /* @__PURE__ */ n("$ZodNumberFormat", (e, t) => {
293
- A.init(e, t), R.init(e, t);
294
- }), Ke = /* @__PURE__ */ n("$ZodBoolean", (e, t) => {
295
- P.init(e, t), e._zod.pattern = ie, e._zod.parse = (n, r) => {
357
+ }), tt = /*@__PURE__*/ a("$ZodNumberFormat", (e, n) => {
358
+ t.init(e, n), G.init(e, n);
359
+ }), nt = /*@__PURE__*/ a("$ZodBoolean", (e, t) => {
360
+ D.init(e, t), e._zod.pattern = u, e._zod.parse = (n, r) => {
296
361
  if (t.coerce) try {
297
362
  n.value = !!n.value;
298
363
  } catch {}
@@ -304,8 +369,8 @@ var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
304
369
  inst: e
305
370
  }), n;
306
371
  };
307
- }), qe = /* @__PURE__ */ n("$ZodUndefined", (e, t) => {
308
- P.init(e, t), e._zod.pattern = ne, e._zod.values = new Set([void 0]), e._zod.parse = (t, n) => {
372
+ }), rt = /*@__PURE__*/ a("$ZodUndefined", (e, t) => {
373
+ D.init(e, t), e._zod.pattern = ge, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.parse = (t, n) => {
309
374
  let r = t.value;
310
375
  return r === void 0 || t.issues.push({
311
376
  expected: "undefined",
@@ -314,241 +379,268 @@ var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
314
379
  inst: e
315
380
  }), t;
316
381
  };
317
- }), Je = /* @__PURE__ */ n("$ZodUnknown", (e, t) => {
318
- P.init(e, t), e._zod.parse = (e) => e;
319
- }), Ye = /* @__PURE__ */ n("$ZodNever", (e, t) => {
320
- P.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
382
+ }), it = /*@__PURE__*/ a("$ZodUnknown", (e, t) => {
383
+ D.init(e, t), e._zod.parse = (e) => e;
384
+ }), at = /*@__PURE__*/ a("$ZodNever", (e, t) => {
385
+ D.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
321
386
  expected: "never",
322
387
  code: "invalid_type",
323
388
  input: t.value,
324
389
  inst: e
325
390
  }), t);
326
391
  });
327
- function z(e, t, n) {
328
- e.issues.length && t.issues.push(...v(n, e.issues)), t.value[n] = e.value;
392
+ function ot(e, t) {
393
+ let n = E(e._zod.def.checks);
394
+ if (!n.length) return;
395
+ let r = Math.min(...n.map((e) => e[0])), i = e._zod.parse;
396
+ e._zod.parse = (n, a) => {
397
+ let o = t(n.value);
398
+ if (o > r && !a?.skipChecks && a?.direction !== "backward") {
399
+ for (let [t, r] of E(e._zod.def.checks)) if (o > t && r._zod.def.when(n)) {
400
+ let t = n.issues.length;
401
+ return r._zod.check(n), n.issues[t].continue = !1, g(n.issues, t, e), n;
402
+ }
403
+ }
404
+ return i(n, a);
405
+ };
329
406
  }
330
- var Xe = /* @__PURE__ */ n("$ZodArray", (e, t) => {
331
- P.init(e, t), e._zod.parse = (n, r) => {
332
- let i = n.value;
333
- if (!Array.isArray(i)) return n.issues.push({
407
+ var st = (e) => Array.isArray(e) ? e.length : -1;
408
+ function K(e, t, n) {
409
+ e.issues.length && t.issues.push(...T(n, e.issues)), t.value[n] = e.value;
410
+ }
411
+ var ct = /*@__PURE__*/ a("$ZodArray", (e, t) => {
412
+ D.init(e, t);
413
+ let n = s.memoizer;
414
+ n?.attach(e), e._zod.parse = (r, i) => {
415
+ let a = r.value;
416
+ if (!Array.isArray(a)) return r.issues.push({
334
417
  expected: "array",
335
418
  code: "invalid_type",
336
- input: i,
419
+ input: a,
337
420
  inst: e
338
- }), n;
339
- n.value = Array(i.length);
340
- let a = [];
341
- for (let e = 0; e < i.length; e++) {
342
- let o = i[e], s = t.element._zod.run({
343
- value: o,
421
+ }), r;
422
+ r.value = n ? n.alloc(e, r, Array(a.length), i) : Array(a.length);
423
+ let o = [], s = i?.abortEarly;
424
+ for (let e = 0; e < a.length; e++) {
425
+ let n = a[e], c = t.element._zod.run({
426
+ value: n,
344
427
  issues: []
345
- }, r);
346
- s instanceof Promise ? a.push(s.then((t) => z(t, n, e))) : z(s, n, e);
428
+ }, i);
429
+ if (c instanceof Promise) o.push(c.then((t) => K(t, r, e)));
430
+ else if (K(c, r, e), s && c.issues.length !== 0 && h(c)) break;
347
431
  }
348
- return a.length ? Promise.all(a).then(() => n) : n;
349
- };
432
+ return o.length ? Promise.all(o).then(() => r) : r;
433
+ }, ot(e, st);
350
434
  });
351
- function B(e, t, n, r, i, a) {
352
- let o = n in r;
353
- if (e.issues.length) {
354
- if (i && a && !o) return;
355
- t.issues.push(...v(n, e.issues));
356
- }
357
- if (!o && !i) {
358
- e.issues.length || t.issues.push({
435
+ function q(e, t, n, r, i, a) {
436
+ let o = n in r, s = a === "optional";
437
+ if (o || !s || i !== "optional") {
438
+ if (e.issues.length) {
439
+ if (i !== void 0 && s && !o) return;
440
+ t.issues.push(...T(n, e.issues));
441
+ }
442
+ !o && i === void 0 ? e.issues.length || t.issues.push({
359
443
  code: "invalid_type",
360
444
  expected: "nonoptional",
361
445
  input: void 0,
362
446
  path: [n]
363
- });
364
- return;
447
+ }) : e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
365
448
  }
366
- e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
367
449
  }
368
- function V(e) {
369
- let t = Object.keys(e.shape);
370
- for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
371
- let n = ee(e.shape);
450
+ var lt = [];
451
+ function J(e) {
452
+ let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : lt, i = r.length ? [...t, ...r] : t;
453
+ for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
454
+ let a = Te(e.shape);
372
455
  return {
373
456
  ...e,
374
- keys: t,
457
+ allKeys: i,
458
+ symbolKeys: r,
375
459
  keySet: new Set(t),
376
460
  numKeys: t.length,
377
- optionalKeys: new Set(n)
461
+ optionalKeys: new Set(a)
378
462
  };
379
463
  }
380
- function H(e, t, n, r, i, a) {
381
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
464
+ function Y(e, t, n, r, i, a, o) {
465
+ let s = [], c = i.keySet, l = i.catchall._zod, u = l.def.type, d = l.optin, f = l.optout, p = 0;
382
466
  for (let i in t) {
383
- if (i === "__proto__" || s.has(i)) continue;
384
- if (l === "never") {
385
- o.push(i);
467
+ if (o && n.issues.length !== p) {
468
+ if (h(n, p)) break;
469
+ p = n.issues.length;
470
+ }
471
+ if (c.has(i)) continue;
472
+ if (i === "__proto__") {
473
+ u === "never" && s.push(i);
474
+ continue;
475
+ }
476
+ if (u === "never") {
477
+ s.push(i);
386
478
  continue;
387
479
  }
388
- let a = c.run({
480
+ let a = l.run({
389
481
  value: t[i],
390
482
  issues: []
391
483
  }, r);
392
- a instanceof Promise ? e.push(a.then((e) => B(e, n, i, t, u, d))) : B(a, n, i, t, u, d);
484
+ a instanceof Promise ? e.push(a.then((e) => q(e, n, i, t, d, f))) : q(a, n, i, t, d, f);
393
485
  }
394
- return o.length && n.issues.push({
486
+ return s.length && n.issues.push({
395
487
  code: "unrecognized_keys",
396
- keys: o,
488
+ keys: s,
397
489
  input: t,
398
- inst: a
490
+ inst: a,
491
+ continue: !0
399
492
  }), e.length ? Promise.all(e).then(() => n) : n;
400
493
  }
401
- var Ze = /* @__PURE__ */ n("$ZodObject", (e, t) => {
402
- if (P.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
403
- let e = t.shape;
404
- Object.defineProperty(t, "shape", { get: () => {
405
- let n = { ...e };
406
- return Object.defineProperty(t, "shape", { value: n }), n;
407
- } });
494
+ var ut = /*@__PURE__*/ a("$ZodObject", (e, t) => {
495
+ D.init(e, t);
496
+ let n = Object.getOwnPropertyDescriptor(t, "shape"), r = n?.get ? n.get.raw : t.shape ?? {};
497
+ if (r) {
498
+ let e = () => {
499
+ let n = { ...r };
500
+ return Object.defineProperty(t, "shape", { value: n }), e.raw = n, n;
501
+ };
502
+ e.raw = r, Object.defineProperty(t, "shape", { get: e });
408
503
  }
409
- let n = s(() => V(t));
410
- l(e._zod, "propValues", () => {
411
- let e = t.shape, n = {};
412
- for (let t in e) {
413
- let r = e[t]._zod;
504
+ let i = _(() => J(t));
505
+ y(e, "propValues", (e) => {
506
+ let t = e.def.shape, n = {};
507
+ for (let e in t) {
508
+ let r = t[e]._zod;
414
509
  if (r.values) {
415
- n[t] ?? (n[t] = /* @__PURE__ */ new Set());
416
- for (let e of r.values) n[t].add(e);
510
+ Object.prototype.hasOwnProperty.call(n, e) || be(n, e, /* @__PURE__ */ new Set());
511
+ for (let t of r.values) n[e].add(t);
512
+ r.optin !== void 0 && n[e].add(void 0);
417
513
  }
418
514
  }
419
515
  return n;
420
516
  });
421
- let r = h, i = t.catchall, a;
422
- e._zod.parse = (t, o) => {
423
- a ??= n.value;
424
- let s = t.value;
425
- if (!r(s)) return t.issues.push({
517
+ let a = C, o = t.catchall, c, l = s.memoizer;
518
+ l?.attach(e), e._zod.parse = (t, n) => {
519
+ c ??= i.value;
520
+ let r = t.value;
521
+ if (!a(r)) return t.issues.push({
426
522
  expected: "object",
427
523
  code: "invalid_type",
428
- input: s,
524
+ input: r,
429
525
  inst: e
430
526
  }), t;
431
- t.value = {};
432
- let c = [], l = a.shape;
433
- for (let e of a.keys) {
434
- let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
435
- value: s[e],
527
+ t.value = l ? l.alloc(e, t, {}, n) : {};
528
+ let s = [], u = c.shape, d = n?.abortEarly, f = t.issues.length;
529
+ for (let e of c.allKeys) {
530
+ if (d && t.issues.length !== f) {
531
+ if (h(t, f)) break;
532
+ f = t.issues.length;
533
+ }
534
+ if (e === "__proto__") continue;
535
+ let i = u[e], a = i._zod.optin, o = i._zod.optout, c = i._zod.run({
536
+ value: r[e],
436
537
  issues: []
437
- }, o);
438
- a instanceof Promise ? c.push(a.then((n) => B(n, t, e, s, r, i))) : B(a, t, e, s, r, i);
538
+ }, n);
539
+ c instanceof Promise ? s.push(c.then((n) => q(n, t, e, r, a, o))) : q(c, t, e, r, a, o);
439
540
  }
440
- return i ? H(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
541
+ return o ? Y(s, r, t, n, i.value, e, d === !0) : s.length ? Promise.all(s).then(() => t) : t;
441
542
  };
442
- }), Qe = /* @__PURE__ */ n("$ZodObjectJIT", (e, t) => {
443
- Ze.init(e, t);
444
- let n = e._zod.parse, r = s(() => V(t)), a = (e) => {
445
- let t = new M([
446
- "shape",
447
- "payload",
448
- "ctx"
449
- ]), n = r.value, i = (e) => {
450
- let t = u(e);
451
- return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
452
- };
453
- t.write("const input = payload.value;");
454
- let a = Object.create(null), o = 0;
455
- for (let e of n.keys) a[e] = `key_${o++}`;
456
- t.write("const newResult = {};");
457
- for (let r of n.keys) {
458
- let n = a[r], o = u(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
459
- t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
460
- if (${n}.issues.length) {
461
- if (${o} in input) {
462
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
463
- ...iss,
464
- path: iss.path ? [${o}, ...iss.path] : [${o}]
465
- })));
543
+ }), dt = /*@__PURE__*/ a("$ZodObjectJIT", (e, t) => {
544
+ ut.init(e, t);
545
+ let n = e._zod.parse, r = _(() => J(t)), i = s.memoizer, a = (t) => {
546
+ let n = r.value, a = n.symbolKeys, o = new c(["payload", "ctx"], {
547
+ shape: t,
548
+ inst: e,
549
+ memo: i,
550
+ syms: a
551
+ }), s = (e) => `shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`, l = (e, t) => `
552
+ let ${e}_ab = false;
553
+ for (let i = 0; i < ${e}.issues.length; i++) {
554
+ const iss = ${e}.issues[i];
555
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
556
+ payload.issues.push(iss);
557
+ if (iss.continue !== true) ${e}_ab = true;
466
558
  }
467
- }
468
-
469
- if (${n}.value === undefined) {
470
- if (${o} in input) {
471
- newResult[${o}] = undefined;
559
+ if (${e}_ab && ctx && ctx.abortEarly) {
560
+ payload.value = newResult;
561
+ return payload;
562
+ }`;
563
+ o.write("const input = payload.value;");
564
+ let u = Object.create(null), d = 0;
565
+ for (let e of n.allKeys) u[e] = `key_${d++}`;
566
+ o.write(i ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
567
+ for (let e of n.allKeys) {
568
+ if (e === "__proto__") continue;
569
+ let n = u[e], r = typeof e == "symbol" ? `syms[${a.indexOf(e)}]` : xe(e), i = `${r} in input`, c = t[e], d = c?._zod?.optin, f = d !== void 0, p = c?._zod?.optout === "optional";
570
+ if (o.write(`const ${n} = ${s(r)};`), f && p) {
571
+ let e = d === "optional" ? `${n}_present` : `${n}.value !== undefined || ${n}_present`;
572
+ o.write(`
573
+ const ${n}_present = ${i};
574
+ if (!${n}.issues.length || ${n}_present) {
575
+ if (${n}.issues.length) {${l(n, r)}
576
+ }
577
+
578
+ if (${e}) {
579
+ newResult[${r}] = ${n}.value;
472
580
  }
473
- } else {
474
- newResult[${o}] = ${n}.value;
475
581
  }
476
-
477
- `) : c ? t.write(`
478
- if (${n}.issues.length) {
479
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
480
- ...iss,
481
- path: iss.path ? [${o}, ...iss.path] : [${o}]
482
- })));
582
+
583
+ `);
584
+ } else f ? (o.write(`
585
+ if (${n}.issues.length) {${l(n, r)}
483
586
  }
484
-
485
- if (${n}.value === undefined) {
486
- if (${o} in input) {
487
- newResult[${o}] = undefined;
488
- }
489
- } else {
490
- newResult[${o}] = ${n}.value;
587
+ `), d === "defaulted" ? o.write(`newResult[${r}] = ${n}.value;`) : o.write(`
588
+ if (${n}.value !== undefined || ${i}) {
589
+ newResult[${r}] = ${n}.value;
491
590
  }
492
-
493
- `) : t.write(`
494
- const ${n}_present = ${o} in input;
495
- if (${n}.issues.length) {
496
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
497
- ...iss,
498
- path: iss.path ? [${o}, ...iss.path] : [${o}]
499
- })));
591
+ `)) : o.write(`
592
+ const ${n}_present = ${i};
593
+ if (${n}.issues.length) {${l(n, r)}
500
594
  }
501
595
  if (!${n}_present && !${n}.issues.length) {
502
596
  payload.issues.push({
503
597
  code: "invalid_type",
504
598
  expected: "nonoptional",
505
599
  input: undefined,
506
- path: [${o}]
600
+ path: [${r}]
507
601
  });
602
+ if (ctx && ctx.abortEarly) {
603
+ payload.value = newResult;
604
+ return payload;
605
+ }
508
606
  }
509
607
 
510
608
  if (${n}_present) {
511
- if (${n}.value === undefined) {
512
- newResult[${o}] = undefined;
513
- } else {
514
- newResult[${o}] = ${n}.value;
515
- }
609
+ newResult[${r}] = ${n}.value;
516
610
  }
517
611
 
518
612
  `);
519
613
  }
520
- t.write("payload.value = newResult;"), t.write("return payload;");
521
- let s = t.compile();
522
- return (t, n) => s(e, t, n);
523
- }, c, l = h, d = !i.jitless, f = d && o.value, p = t.catchall, m;
524
- e._zod.parse = (i, o) => {
525
- m ??= r.value;
526
- let s = i.value;
527
- return l(s) ? d && f && o?.async === !1 && o.jitless !== !0 ? (c ||= a(t.shape), i = c(i, o), p ? H([], s, i, o, m, e) : i) : n(i, o) : (i.issues.push({
614
+ return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
615
+ }, o, l = C, u = !s.jitless, d = u && ye.value, f = t.catchall, p;
616
+ e._zod.parse = (i, s) => {
617
+ p ??= r.value;
618
+ let c = i.value;
619
+ return l(c) ? u && d && s?.async === !1 && s.jitless !== !0 ? (o ||= a(t.shape), i = o(i, s), f ? Y([], c, i, s, p, e, s?.abortEarly === !0) : i) : n(i, s) : (i.issues.push({
528
620
  expected: "object",
529
621
  code: "invalid_type",
530
- input: s,
622
+ input: c,
531
623
  inst: e
532
624
  }), i);
533
625
  };
534
626
  });
535
- function U(e, t, n, i) {
627
+ function ft(e, t, n, r) {
536
628
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
537
- let o = e.filter((e) => !a(e));
538
- return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
629
+ let i = e.filter((e) => !h(e));
630
+ return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
539
631
  code: "invalid_union",
540
632
  input: t.value,
541
633
  inst: n,
542
- errors: e.map((e) => e.issues.map((e) => p(e, i, r())))
634
+ errors: e.map((e) => e.issues.map((e) => x(e, r, o())))
543
635
  }), t);
544
636
  }
545
- var $e = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
546
- P.init(e, t), l(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), l(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), l(e._zod, "values", () => {
547
- if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
548
- }), l(e._zod, "pattern", () => {
549
- if (t.options.every((e) => e._zod.pattern)) {
550
- let e = t.options.map((e) => e._zod.pattern);
551
- return RegExp(`^(${e.map((e) => c(e.source)).join("|")})$`);
637
+ var pt = /*@__PURE__*/ a("$ZodUnion", (e, t) => {
638
+ D.init(e, t), y(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), y(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), y(e, "values", (e) => {
639
+ if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
640
+ }), y(e, "pattern", (e) => {
641
+ if (e.def.options.every((e) => e._zod.pattern)) {
642
+ let t = e.def.options.map((e) => e._zod.pattern);
643
+ return RegExp(`^(${t.map((e) => v(e.source)).join("|")})$`);
552
644
  }
553
645
  });
554
646
  let n = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -566,10 +658,10 @@ var $e = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
566
658
  o.push(t);
567
659
  }
568
660
  }
569
- return a ? Promise.all(o).then((t) => U(t, r, e, i)) : U(o, r, e, i);
661
+ return a ? Promise.all(o).then((t) => ft(t, r, e, i)) : ft(o, r, e, i);
570
662
  };
571
- }), et = /* @__PURE__ */ n("$ZodIntersection", (e, t) => {
572
- P.init(e, t), e._zod.parse = (e, n) => {
663
+ }), mt = /*@__PURE__*/ a("$ZodIntersection", (e, t) => {
664
+ D.init(e, t), e._zod.parse = (e, n) => {
573
665
  let r = e.value, i = t.left._zod.run({
574
666
  value: r,
575
667
  issues: []
@@ -577,21 +669,23 @@ var $e = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
577
669
  value: r,
578
670
  issues: []
579
671
  }, n);
580
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => G(e, t, n)) : G(e, i, a);
672
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => ht(e, t, n)) : ht(e, i, a);
581
673
  };
582
674
  });
583
- function W(e, t) {
675
+ function X(e, t) {
584
676
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
585
677
  valid: !0,
586
678
  data: e
587
679
  };
588
- if (g(e) && g(t)) {
680
+ if (w(e) && w(t)) {
589
681
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
590
682
  ...e,
591
683
  ...t
592
684
  };
685
+ Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
593
686
  for (let n of r) {
594
- let r = W(e[n], t[n]);
687
+ if (n === "__proto__") continue;
688
+ let r = X(e[n], t[n]);
595
689
  if (!r.valid) return {
596
690
  valid: !1,
597
691
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -610,7 +704,7 @@ function W(e, t) {
610
704
  };
611
705
  let n = [];
612
706
  for (let r = 0; r < e.length; r++) {
613
- let i = e[r], a = t[r], o = W(i, a);
707
+ let i = e[r], a = t[r], o = X(i, a);
614
708
  if (!o.valid) return {
615
709
  valid: !1,
616
710
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -627,113 +721,148 @@ function W(e, t) {
627
721
  mergeErrorPath: []
628
722
  };
629
723
  }
630
- function G(e, t, n) {
631
- let r = /* @__PURE__ */ new Map(), i;
632
- for (let n of t.issues) if (n.code === "unrecognized_keys") {
633
- i ??= n;
634
- for (let e of n.keys) r.has(e) || r.set(e, {}), r.get(e).l = !0;
635
- } else e.issues.push(n);
636
- for (let t of n.issues) if (t.code === "unrecognized_keys") for (let e of t.keys) r.has(e) || r.set(e, {}), r.get(e).r = !0;
637
- else e.issues.push(t);
638
- let o = [...r].filter(([, e]) => e.l && e.r).map(([e]) => e);
639
- if (o.length && i && e.issues.push({
640
- ...i,
641
- keys: o
642
- }), a(e)) return e;
643
- let s = W(t.value, n.value);
644
- if (!s.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);
645
- return e.value = s.data, e;
724
+ function ht(e, t, n) {
725
+ let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
726
+ let n;
727
+ if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
728
+ else if (e.code === "invalid_key" && e.origin === "record" && e.path?.length === 1) {
729
+ let t = String(e.path[0]);
730
+ a.has(t) || a.set(t, e), n = [t];
731
+ } else return !1;
732
+ for (let e of n) r.has(e) || r.set(e, {}), r.get(e)[t] = !0;
733
+ return !0;
734
+ };
735
+ for (let n of t.issues) o(n, "l") || e.issues.push(n);
736
+ for (let t of n.issues) o(t, "r") || e.issues.push(t);
737
+ let s = [...r].filter(([, e]) => e.l && e.r).map(([e]) => e);
738
+ if (s.length) {
739
+ let t = i ? s.filter((e) => i.keys.includes(e)) : [];
740
+ t.length && e.issues.push({
741
+ ...i,
742
+ keys: t
743
+ });
744
+ for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
745
+ }
746
+ let c = X(t.value, n.value);
747
+ if (!c.valid) {
748
+ if (h(e)) return e;
749
+ throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
750
+ }
751
+ return e.value = c.data, e;
646
752
  }
647
- var tt = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
648
- P.init(e, t), e._zod.parse = (n, i) => {
649
- let a = n.value;
650
- if (!g(a)) return n.issues.push({
753
+ var gt = /*@__PURE__*/ a("$ZodRecord", (e, t) => {
754
+ D.init(e, t);
755
+ let n = s.memoizer;
756
+ n?.attach(e), e._zod.parse = (r, i) => {
757
+ let a = r.value;
758
+ if (!w(a)) return r.issues.push({
651
759
  expected: "record",
652
760
  code: "invalid_type",
653
761
  input: a,
654
762
  inst: e
655
- }), n;
656
- let o = [], s = t.keyType._zod.values;
657
- if (s) {
658
- n.value = {};
659
- let c = /* @__PURE__ */ new Set();
660
- for (let l of s) if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") {
661
- c.add(typeof l == "number" ? l.toString() : l);
662
- let s = t.keyType._zod.run({
663
- value: l,
763
+ }), r;
764
+ let s = [], c = t.keyType._zod.values;
765
+ if (c && !t.partial) {
766
+ r.value = n ? n.alloc(e, r, {}, i) : {};
767
+ let l = /* @__PURE__ */ new Set();
768
+ for (let n of c) if (typeof n == "string" || typeof n == "number" || typeof n == "symbol") {
769
+ if (l.add(typeof n == "number" ? n.toString() : n), n === "__proto__") continue;
770
+ let c = t.keyType._zod.run({
771
+ value: n,
664
772
  issues: []
665
773
  }, i);
666
- if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
667
- if (s.issues.length) {
668
- n.issues.push({
774
+ if (c instanceof Promise) throw Error("Async schemas not supported in object keys currently");
775
+ if (c.issues.length) {
776
+ r.issues.push({
669
777
  code: "invalid_key",
670
778
  origin: "record",
671
- issues: s.issues.map((e) => p(e, i, r())),
672
- input: l,
673
- path: [l],
779
+ issues: c.issues.map((e) => x(e, i, o())),
780
+ input: n,
781
+ path: [n],
674
782
  inst: e
675
783
  });
676
784
  continue;
677
785
  }
678
- let u = s.value, d = t.valueType._zod.run({
679
- value: a[l],
786
+ let u = c.value;
787
+ if (u === "__proto__") continue;
788
+ let d = t.valueType._zod.run({
789
+ value: a[n],
680
790
  issues: []
681
791
  }, i);
682
- d instanceof Promise ? o.push(d.then((e) => {
683
- e.issues.length && n.issues.push(...v(l, e.issues)), n.value[u] = e.value;
684
- })) : (d.issues.length && n.issues.push(...v(l, d.issues)), n.value[u] = d.value);
792
+ d instanceof Promise ? s.push(d.then((e) => {
793
+ e.issues.length && r.issues.push(...T(n, e.issues)), r.value[u] = e.value;
794
+ })) : (d.issues.length && r.issues.push(...T(n, d.issues)), r.value[u] = d.value);
685
795
  }
686
- let l;
687
- for (let e in a) c.has(e) || (l ??= [], l.push(e));
688
- l && l.length > 0 && n.issues.push({
796
+ let u;
797
+ for (let e in a) if (!l.has(e)) {
798
+ if (t.mode === "loose") {
799
+ if (e === "__proto__") continue;
800
+ r.value[e] = a[e];
801
+ } else u ??= [], u.push(e);
802
+ }
803
+ u && u.length > 0 && r.issues.push({
689
804
  code: "unrecognized_keys",
690
805
  input: a,
691
806
  inst: e,
692
- keys: l
807
+ keys: u,
808
+ continue: !0
693
809
  });
694
810
  } else {
695
- n.value = {};
696
- for (let s of Reflect.ownKeys(a)) {
697
- if (s === "__proto__" || !Object.prototype.propertyIsEnumerable.call(a, s)) continue;
698
- let c = t.keyType._zod.run({
699
- value: s,
811
+ r.value = n ? n.alloc(e, r, {}, i) : {};
812
+ let l;
813
+ for (let n of Reflect.ownKeys(a)) {
814
+ if (n === "__proto__" || !Object.prototype.propertyIsEnumerable.call(a, n)) continue;
815
+ let u = t.keyType._zod.run({
816
+ value: n,
700
817
  issues: []
701
818
  }, i);
702
- if (c instanceof Promise) throw Error("Async schemas not supported in object keys currently");
703
- if (typeof s == "string" && C.test(s) && c.issues.length) {
819
+ if (u instanceof Promise) throw Error("Async schemas not supported in object keys currently");
820
+ if (typeof n == "string" && m.test(n) && u.issues.length) {
704
821
  let e = t.keyType._zod.run({
705
- value: Number(s),
822
+ value: Number(n),
706
823
  issues: []
707
824
  }, i);
708
825
  if (e instanceof Promise) throw Error("Async schemas not supported in object keys currently");
709
- e.issues.length === 0 && (c = e);
826
+ e.issues.length === 0 && (u = e);
710
827
  }
711
- if (c.issues.length) {
712
- t.mode === "loose" ? n.value[s] = a[s] : n.issues.push({
828
+ if (u.issues.length) {
829
+ t.mode === "loose" ? r.value[n] = a[n] : c ? (l ??= [], l.push(n)) : r.issues.push({
713
830
  code: "invalid_key",
714
831
  origin: "record",
715
- issues: c.issues.map((e) => p(e, i, r())),
716
- input: s,
717
- path: [s],
832
+ issues: u.issues.map((e) => x(e, i, o())),
833
+ input: n,
834
+ path: [n],
718
835
  inst: e
719
836
  });
720
837
  continue;
721
838
  }
722
- let l = t.valueType._zod.run({
723
- value: a[s],
839
+ let d = u.value;
840
+ if (d === "__proto__") continue;
841
+ let f = t.valueType._zod.run({
842
+ value: a[n],
724
843
  issues: []
725
844
  }, i);
726
- l instanceof Promise ? o.push(l.then((e) => {
727
- e.issues.length && n.issues.push(...v(s, e.issues)), n.value[c.value] = e.value;
728
- })) : (l.issues.length && n.issues.push(...v(s, l.issues)), n.value[c.value] = l.value);
845
+ f instanceof Promise ? s.push(f.then((e) => {
846
+ e.issues.length && r.issues.push(...T(n, e.issues)), r.value[d] = e.value;
847
+ })) : (f.issues.length && r.issues.push(...T(n, f.issues)), r.value[d] = f.value);
729
848
  }
849
+ l && l.length > 0 && r.issues.push({
850
+ code: "unrecognized_keys",
851
+ input: a,
852
+ inst: e,
853
+ keys: l,
854
+ continue: !0
855
+ });
730
856
  }
731
- return o.length ? Promise.all(o).then(() => n) : n;
857
+ return s.length ? Promise.all(s).then(() => r) : r;
732
858
  };
733
- }), nt = /* @__PURE__ */ n("$ZodEnum", (e, t) => {
734
- P.init(e, t);
735
- let n = m(t.entries), r = new Set(n);
736
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => y.has(typeof e)).map((e) => typeof e == "string" ? d(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
859
+ }), _t = /*@__PURE__*/ a("$ZodEnum", (e, t) => {
860
+ D.init(e, t);
861
+ let n = S(t.entries), r = new Set(n);
862
+ e._zod.values = r, y(e, "pattern", (e) => {
863
+ let t = S(e.def.entries).filter((e) => De.has(typeof e));
864
+ return RegExp(t.length ? `^(${t.map((e) => b(e.toString())).join("|")})$` : "^[^\\s\\S]$");
865
+ }), e._zod.parse = (t, i) => {
737
866
  let a = t.value;
738
867
  return r.has(a) || t.issues.push({
739
868
  code: "invalid_value",
@@ -742,10 +871,13 @@ var tt = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
742
871
  inst: e
743
872
  }), t;
744
873
  };
745
- }), rt = /* @__PURE__ */ n("$ZodLiteral", (e, t) => {
746
- if (P.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
874
+ }), vt = /*@__PURE__*/ a("$ZodLiteral", (e, t) => {
875
+ D.init(e, t);
747
876
  let n = new Set(t.values);
748
- e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? d(e) : e ? d(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
877
+ e._zod.values = n, y(e, "pattern", (e) => {
878
+ let t = e.def.values;
879
+ return RegExp(t.length ? `^(${t.map((e) => typeof e == "string" ? b(e) : e ? b(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$");
880
+ }), e._zod.parse = (r, i) => {
749
881
  let a = r.value;
750
882
  return n.has(a) || r.issues.push({
751
883
  code: "invalid_value",
@@ -754,62 +886,66 @@ var tt = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
754
886
  inst: e
755
887
  }), r;
756
888
  };
757
- }), it = /* @__PURE__ */ n("$ZodTransform", (n, r) => {
758
- P.init(n, r), n._zod.optin = "optional", n._zod.parse = (i, a) => {
759
- if (a.direction === "backward") throw new t(n.constructor.name);
760
- let o = r.transform(i.value, i);
761
- if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i.fallback = !0, i));
762
- if (o instanceof Promise) throw new e();
763
- return i.value = o, i.fallback = !0, i;
889
+ }), yt = /*@__PURE__*/ a("$ZodTransform", (e, t) => {
890
+ D.init(e, t), e._zod.optin = "optional", s.memoizer?.guard(e), e._zod.parse = (n, a) => {
891
+ if (a.direction === "backward") throw new i(e.constructor.name);
892
+ let o = t.transform(n.value, n);
893
+ if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (n.value = e, n));
894
+ if (o instanceof Promise) throw new r();
895
+ return n.value = o, n;
764
896
  };
765
897
  });
766
- function K(e, t) {
767
- return t === void 0 && (e.issues.length || e.fallback) ? {
768
- issues: [],
769
- value: void 0
770
- } : e;
898
+ function bt(e, t) {
899
+ return e.value = t.issues.length ? void 0 : t.value, e;
771
900
  }
772
- var q = /* @__PURE__ */ n("$ZodOptional", (e, t) => {
773
- P.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", l(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), l(e._zod, "pattern", () => {
774
- let e = t.innerType._zod.pattern;
775
- return e ? RegExp(`^(${c(e.source)})?$`) : void 0;
901
+ var xt = /*@__PURE__*/ a("$ZodOptional", (e, t) => {
902
+ D.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", y(e, "values", (e) => {
903
+ let t = e.def.innerType._zod.values;
904
+ return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
905
+ }), y(e, "pattern", (e) => {
906
+ let t = e.def.innerType._zod.pattern;
907
+ return t ? RegExp(`^(${v(t.source)})?$`) : void 0;
776
908
  }), e._zod.parse = (e, n) => {
777
- if (t.innerType._zod.optin === "optional") {
778
- let r = e.value, i = t.innerType._zod.run(e, n);
779
- return i instanceof Promise ? i.then((e) => K(e, r)) : K(i, r);
909
+ if (e.value === void 0) {
910
+ if (t.innerType._zod.optin !== "defaulted") return e;
911
+ let r = t.innerType._zod.run({
912
+ value: e.value,
913
+ issues: []
914
+ }, n);
915
+ return r instanceof Promise ? r.then((t) => bt(e, t)) : bt(e, r);
780
916
  }
781
- return e.value === void 0 ? e : t.innerType._zod.run(e, n);
917
+ return t.innerType._zod.run(e, n);
782
918
  };
783
- }), at = /* @__PURE__ */ n("$ZodExactOptional", (e, t) => {
784
- q.init(e, t), l(e._zod, "values", () => t.innerType._zod.values), l(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
785
- }), ot = /* @__PURE__ */ n("$ZodNullable", (e, t) => {
786
- P.init(e, t), l(e._zod, "optin", () => t.innerType._zod.optin), l(e._zod, "optout", () => t.innerType._zod.optout), l(e._zod, "pattern", () => {
787
- let e = t.innerType._zod.pattern;
788
- return e ? RegExp(`^(${c(e.source)}|null)$`) : void 0;
789
- }), l(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
790
- }), st = /* @__PURE__ */ n("$ZodDefault", (e, t) => {
791
- P.init(e, t), e._zod.optin = "optional", l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
919
+ }), St = /*@__PURE__*/ a("$ZodExactOptional", (e, t) => {
920
+ xt.init(e, t), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
921
+ }), Ct = /*@__PURE__*/ a("$ZodNullable", (e, t) => {
922
+ D.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "pattern", (e) => {
923
+ let t = e.def.innerType._zod.pattern;
924
+ return t ? RegExp(`^(${v(t.source)}|null)$`) : void 0;
925
+ }), y(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
926
+ }), wt = /*@__PURE__*/ a("$ZodDefault", (e, t) => {
927
+ D.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
792
928
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
793
929
  if (e.value === void 0) return e.value = t.defaultValue, e;
794
930
  let r = t.innerType._zod.run(e, n);
795
- return r instanceof Promise ? r.then((e) => J(e, t)) : J(r, t);
931
+ return r instanceof Promise ? r.then((e) => Tt(e, t)) : Tt(r, t);
796
932
  };
797
933
  });
798
- function J(e, t) {
934
+ function Tt(e, t) {
799
935
  return e.value === void 0 && (e.value = t.defaultValue), e;
800
936
  }
801
- var ct = /* @__PURE__ */ n("$ZodPrefault", (e, t) => {
802
- P.init(e, t), e._zod.optin = "optional", l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
803
- }), Y = /* @__PURE__ */ n("$ZodNonOptional", (e, t) => {
804
- P.init(e, t), l(e._zod, "values", () => {
805
- let e = t.innerType._zod.values;
806
- return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
937
+ var Et = /*@__PURE__*/ a("$ZodPrefault", (e, t) => {
938
+ D.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
939
+ }), Dt = /*@__PURE__*/ a("$ZodNonOptional", (e, t) => {
940
+ D.init(e, t), y(e, "values", (e) => {
941
+ let t = e.def.innerType._zod.values;
942
+ return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
807
943
  }), e._zod.parse = (n, r) => {
808
944
  let i = t.innerType._zod.run(n, r);
809
- return i instanceof Promise ? i.then((t) => X(t, e)) : X(i, e);
945
+ return i instanceof Promise ? i.then((t) => Z(t, e)) : Z(i, e);
810
946
  };
811
947
  });
812
- function X(e, t) {
948
+ function Z(e, t) {
813
949
  return !e.issues.length && e.value === void 0 && e.issues.push({
814
950
  code: "invalid_type",
815
951
  expected: "nonoptional",
@@ -817,52 +953,54 @@ function X(e, t) {
817
953
  inst: t
818
954
  }), e;
819
955
  }
820
- var lt = /* @__PURE__ */ n("$ZodCatch", (e, t) => {
821
- P.init(e, t), e._zod.optin = "optional", l(e._zod, "optout", () => t.innerType._zod.optout), l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
956
+ function Ot(e, t, n, r) {
957
+ return t.issues.length ? (e.value = n.catchValue({
958
+ ...t,
959
+ value: e.value,
960
+ error: { issues: t.issues.map((e) => x(e, r, o())) },
961
+ input: e.value
962
+ }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
963
+ }
964
+ var kt = /*@__PURE__*/ a("$ZodCatch", (e, t) => {
965
+ D.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
822
966
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
823
- let i = t.innerType._zod.run(e, n);
824
- return i instanceof Promise ? i.then((i) => (e.value = i.value, i.issues.length && (e.value = t.catchValue({
825
- ...e,
826
- error: { issues: i.issues.map((e) => p(e, n, r())) },
827
- input: e.value
828
- }), e.issues = [], e.fallback = !0), e)) : (e.value = i.value, i.issues.length && (e.value = t.catchValue({
829
- ...e,
830
- error: { issues: i.issues.map((e) => p(e, n, r())) },
831
- input: e.value
832
- }), e.issues = [], e.fallback = !0), e);
967
+ let r = t.innerType._zod.run({
968
+ value: e.value,
969
+ issues: []
970
+ }, n);
971
+ return r instanceof Promise ? r.then((r) => Ot(e, r, t, n)) : Ot(e, r, t, n);
833
972
  };
834
- }), ut = /* @__PURE__ */ n("$ZodPipe", (e, t) => {
835
- P.init(e, t), l(e._zod, "values", () => t.in._zod.values), l(e._zod, "optin", () => t.in._zod.optin), l(e._zod, "optout", () => t.out._zod.optout), l(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
973
+ }), At = /*@__PURE__*/ a("$ZodPipe", (e, t) => {
974
+ D.init(e, t), y(e, "values", (e) => e.def.in._zod.values), y(e, "optin", (e) => e.def.in._zod.optin), y(e, "optout", (e) => e.def.out._zod.optout), y(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
836
975
  if (n.direction === "backward") {
837
976
  let r = t.out._zod.run(e, n);
838
- return r instanceof Promise ? r.then((e) => Z(e, t.in, n)) : Z(r, t.in, n);
977
+ return r instanceof Promise ? r.then((e) => Q(e, t.in, n)) : Q(r, t.in, n);
839
978
  }
840
979
  let r = t.in._zod.run(e, n);
841
- return r instanceof Promise ? r.then((e) => Z(e, t.out, n)) : Z(r, t.out, n);
980
+ return r instanceof Promise ? r.then((e) => Q(e, t.out, n)) : Q(r, t.out, n);
842
981
  };
843
982
  });
844
- function Z(e, t, n) {
845
- return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
983
+ function Q(e, t, n) {
984
+ return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
846
985
  value: e.value,
847
- issues: e.issues,
848
- fallback: e.fallback
986
+ issues: e.issues
849
987
  }, n);
850
988
  }
851
- var dt = /* @__PURE__ */ n("$ZodReadonly", (e, t) => {
852
- P.init(e, t), l(e._zod, "propValues", () => t.innerType._zod.propValues), l(e._zod, "values", () => t.innerType._zod.values), l(e._zod, "optin", () => t.innerType?._zod?.optin), l(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
989
+ var jt = /*@__PURE__*/ a("$ZodReadonly", (e, t) => {
990
+ D.init(e, t), y(e, "propValues", (e) => e.def.innerType._zod.propValues), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "optin", (e) => e.def.innerType?._zod?.optin), y(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
853
991
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
854
992
  let r = t.innerType._zod.run(e, n);
855
- return r instanceof Promise ? r.then(Q) : Q(r);
993
+ return r instanceof Promise ? r.then(Mt) : Mt(r);
856
994
  };
857
995
  });
858
- function Q(e) {
859
- return e.value = Object.freeze(e.value), e;
996
+ function Mt(e) {
997
+ return e.memo || (e.value = Object.freeze(e.value)), e;
860
998
  }
861
- var ft = /* @__PURE__ */ n("$ZodCustom", (e, t) => {
862
- k.init(e, t), P.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
863
- let r = n.value, i = t.fn(r);
864
- if (i instanceof Promise) return i.then((t) => $(t, n, r, e));
865
- $(i, n, r, e);
999
+ var Nt = /*@__PURE__*/ a("$ZodCustom", (t, n) => {
1000
+ e.init(t, n), D.init(t, n), t._zod.parse = (e, t) => e, t._zod.check = (e) => {
1001
+ let r = e.value, i = n.fn(r);
1002
+ if (i instanceof Promise) return i.then((n) => $(n, e, r, t));
1003
+ $(i, e, r, t);
866
1004
  };
867
1005
  });
868
1006
  function $(e, t, n, r) {
@@ -874,10 +1012,9 @@ function $(e, t, n, r) {
874
1012
  path: [...r._zod.def.path ?? []],
875
1013
  continue: !r._zod.def.abort
876
1014
  };
877
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(_(e));
1015
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(we(e));
878
1016
  }
879
1017
  }
880
- //#endregion
881
- export { Xe as $ZodArray, ze as $ZodBase64, Ve as $ZodBase64URL, Ke as $ZodBoolean, Le as $ZodCIDRv4, Re as $ZodCIDRv6, Ee as $ZodCUID, De as $ZodCUID2, lt as $ZodCatch, ft as $ZodCustom, st as $ZodDefault, He as $ZodE164, Se as $ZodEmail, we as $ZodEmoji, nt as $ZodEnum, at as $ZodExactOptional, be as $ZodGUID, Fe as $ZodIPv4, Ie as $ZodIPv6, Me as $ZodISODate, je as $ZodISODateTime, Pe as $ZodISODuration, Ne as $ZodISOTime, et as $ZodIntersection, We as $ZodJWT, Ae as $ZodKSUID, rt as $ZodLiteral, Te as $ZodNanoID, Ye as $ZodNever, Y as $ZodNonOptional, ot as $ZodNullable, R as $ZodNumber, Ge as $ZodNumberFormat, Qe as $ZodObjectJIT, q as $ZodOptional, ut as $ZodPipe, ct as $ZodPrefault, dt as $ZodReadonly, tt as $ZodRecord, F as $ZodString, I as $ZodStringFormat, it as $ZodTransform, P as $ZodType, Oe as $ZodULID, Ce as $ZodURL, xe as $ZodUUID, qe as $ZodUndefined, $e as $ZodUnion, Je as $ZodUnknown, ke as $ZodXID };
1018
+ export { ct as $ZodArray, Ze as $ZodBase64, Qe as $ZodBase64URL, nt as $ZodBoolean, Ye as $ZodCIDRv4, Xe as $ZodCIDRv6, Le as $ZodCUID, Re as $ZodCUID2, kt as $ZodCatch, Nt as $ZodCustom, wt as $ZodDefault, $e as $ZodE164, Me as $ZodEmail, Fe as $ZodEmoji, _t as $ZodEnum, St as $ZodExactOptional, Ae as $ZodGUID, Ke as $ZodIPv4, Je as $ZodIPv6, Ue as $ZodISODate, He as $ZodISODateTime, Ge as $ZodISODuration, We as $ZodISOTime, mt as $ZodIntersection, et as $ZodJWT, Ve as $ZodKSUID, vt as $ZodLiteral, Ie as $ZodNanoID, at as $ZodNever, Dt as $ZodNonOptional, Ct as $ZodNullable, G as $ZodNumber, tt as $ZodNumberFormat, ut as $ZodObject, dt as $ZodObjectJIT, xt as $ZodOptional, At as $ZodPipe, Et as $ZodPrefault, jt as $ZodReadonly, gt as $ZodRecord, A as $ZodString, j as $ZodStringFormat, yt as $ZodTransform, D as $ZodType, ze as $ZodULID, Pe as $ZodURL, je as $ZodUUID, rt as $ZodUndefined, pt as $ZodUnion, it as $ZodUnknown, Be as $ZodXID, V as base64Charset, H as base64urlCharset, M as canParseURL, B as isValidBase64, U as isValidBase64URL, z as isValidCIDRv6, R as isValidIPv6, W as isValidJWT, X as mergeValues, P as parseURLObject, k as standardProps, F as stripTabAndNewline, I as urlHostnameOk, L as urlProtocolOk, N as validateURL };
882
1019
 
883
1020
  //# sourceMappingURL=schemas.js.map