@guru-ai-product/ai-product-kit 0.2.251117192248 → 0.2.251118120602

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 (979) hide show
  1. package/mcp/skills/aipk_init_project/template/AGENTS_TEMPLATE.md +11 -11
  2. package/mcp/src/server.js +10 -10
  3. package/package.json +1 -1
  4. package/skills/aipk_aso-new-release/GURU_AI.md +4 -4
  5. package/skills/aipk_aso-new-release/SKILL.md +15 -1
  6. package/skills/aipk_development/GURU_AI.md +3 -3
  7. package/skills/aipk_development/SKILL.md +15 -1
  8. package/skills/aipk_format-requirement-pages-with-design/GURU_AI.md +3 -3
  9. package/skills/aipk_format-requirement-pages-with-design/SKILL.md +10 -1
  10. package/skills/aipk_init_project/GURU_AI.md +5 -5
  11. package/skills/aipk_init_project/SKILL.md +15 -1
  12. package/skills/aipk_initiative-planning/GURU_AI.md +7 -7
  13. package/skills/aipk_initiative-planning/SKILL.md +17 -1
  14. package/skills/aipk_requirements-changes/GURU_AI.md +6 -6
  15. package/skills/aipk_requirements-changes/SKILL.md +15 -1
  16. package/skills/aipk_requirements-documentation/GURU_AI.md +15 -15
  17. package/skills/aipk_requirements-documentation/SKILL.md +17 -1
  18. package/skills/aipk_requirements-intake/GURU_AI.md +9 -9
  19. package/skills/aipk_requirements-intake/SKILL.md +15 -1
  20. package/skills/aipk_skill_generate/GURU_AI.md +5 -5
  21. package/skills/aipk_skill_generate/SKILL.md +15 -1
  22. package/skills/aipk_tool_prompts/GURU_AI.md +8 -8
  23. package/skills/aipk_tool_prompts/SKILL.md +15 -1
  24. package/skills/aipk_update-requirements-from-design/GURU_AI.md +6 -116
  25. package/skills/aipk_update-requirements-from-design/SKILL.md +15 -1
  26. package/mcp/.doc_cache/04980c3595edbf2d_SKILL.md +0 -218
  27. package/mcp/.doc_cache/04e80f12d73851a2_/346/214/207/345/215/227/346/226/207/346/241/243/346/240/207/345/207/206/346/250/241/346/235/277.md +0 -59
  28. package/mcp/.doc_cache/07cc092c31fd7015_/345/267/245/345/205/267/344/275/277/347/224/250/346/214/207/345/215/227/346/250/241/346/235/277.md +0 -106
  29. package/mcp/.doc_cache/09ac9834a831e8b5_/346/212/200/346/234/257/346/226/271/346/241/210/350/257/204/344/274/260/344/270/216/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -72
  30. package/mcp/.doc_cache/0c0570b87cf4a98a_/351/234/200/346/261/202/350/277/255/344/273/243/346/250/241/346/235/277.md +0 -821
  31. package/mcp/.doc_cache/0c284fc4be48dbd3_/346/267/261/345/272/246/347/224/250/346/210/267/350/241/214/344/270/272/344/270/216/351/234/200/346/261/202/346/264/236/345/257/237/346/250/241/346/235/277.md +0 -59
  32. package/mcp/.doc_cache/0da74fe7b9aad548_K12/346/225/260/345/255/246/345/255/246/344/271/240/345/272/224/347/224/250/346/241/210/344/276/213.md +0 -371
  33. package/mcp/.doc_cache/1546780035ed893b_Draft_/344/272/247/345/223/201/351/234/200/346/261/202/350/215/211/347/250/277.md +0 -60
  34. package/mcp/.doc_cache/16d5f6b79f02c65e_/351/234/200/346/261/202/350/277/255/344/273/243/347/264/242/345/274/225.md +0 -30
  35. package/mcp/.doc_cache/1c631acd2940588e_index.md +0 -83
  36. package/mcp/.doc_cache/1e4a829f0abddb00_/344/272/247/345/223/201/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -322
  37. package/mcp/.doc_cache/24f00280e7b9b2c7_index.md +0 -83
  38. package/mcp/.doc_cache/2767e2d4cd6afd5c_/345/225/206/344/270/232/345/214/226/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -201
  39. package/mcp/.doc_cache/276d12074fd7af7d_SKILL.md +0 -243
  40. package/mcp/.doc_cache/2b6b35389546c3b9_SKILL.md +0 -407
  41. package/mcp/.doc_cache/2f45cddfb05ac32c_/351/234/200/346/261/202/350/277/255/344/273/243/347/264/242/345/274/225.md +0 -30
  42. package/mcp/.doc_cache/3086c6d32a0393da_Draft_/347/224/250/346/210/267/346/227/205/347/250/213/350/215/211/347/250/277.md +0 -84
  43. package/mcp/.doc_cache/33cd96cf79c86eaa_K12/346/225/260/345/255/246/345/255/246/344/271/240/345/272/224/347/224/250/346/241/210/344/276/213.md +0 -371
  44. package/mcp/.doc_cache/341909c063335dd2_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220Prompt.md +0 -349
  45. package/mcp/.doc_cache/3e0dfd0a1b9f6ce7_/344/272/247/345/223/201/351/234/200/346/261/202/345/217/221/347/216/260/344/270/216/351/252/214/350/257/201/346/250/241/346/235/277.md +0 -53
  46. package/mcp/.doc_cache/3eab19b804522d23_SKILL.md +0 -407
  47. package/mcp/.doc_cache/4b671afde6bb1fa8_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220/346/214/207/345/215/227.md +0 -292
  48. package/mcp/.doc_cache/4c780724e27f6f94_/351/234/200/346/261/202/350/277/255/344/273/243/346/250/241/346/235/277.md +0 -821
  49. package/mcp/.doc_cache/563de023ffa4a630_/345/237/213/347/202/271/350/247/204/350/214/203/346/226/207/346/241/243.md +0 -372
  50. package/mcp/.doc_cache/56975fb92532ee87_2_/345/212/237/350/203/275/351/234/200/346/261/202.md +0 -67
  51. package/mcp/.doc_cache/5a67e1c18353cfca_/345/270/202/345/234/272/346/234/272/344/274/232/350/257/204/344/274/260/344/270/216/347/253/236/344/272/211/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -53
  52. package/mcp/.doc_cache/5b8ba3d67e39371a_SKILL.md +0 -930
  53. package/mcp/.doc_cache/5b91334295d6ad31_SKILL.md +0 -588
  54. package/mcp/.doc_cache/609688b8b4332a01_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/346/226/207/346/241/243/346/250/241/346/235/277.md +0 -576
  55. package/mcp/.doc_cache/61a0859a11a562ca_3_/345/225/206/344/270/232/345/214/226/347/255/226/347/225/245.md +0 -131
  56. package/mcp/.doc_cache/6643f4d546c6a03c_/346/267/261/345/272/246/347/224/250/346/210/267/350/241/214/344/270/272/344/270/216/351/234/200/346/261/202/346/264/236/345/257/237/346/250/241/346/235/277.md +0 -59
  57. package/mcp/.doc_cache/674c69479a90ad15_4_/347/224/250/346/210/267/347/225/214/351/235/242/344/270/216/344/275/223/351/252/214.md +0 -665
  58. package/mcp/.doc_cache/674f8b285658055d_/345/270/202/345/234/272/344/270/216/345/225/206/344/270/232/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -176
  59. package/mcp/.doc_cache/6cfccfda6b0e7641_SWOT/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -381
  60. package/mcp/.doc_cache/6fbc13740044659b_1_/344/272/247/345/223/201/345/256/232/344/275/215/344/270/216/345/210/206/346/236/220.md +0 -86
  61. package/mcp/.doc_cache/7842a4e7fe7a3b91_/346/212/200/346/234/257/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -314
  62. package/mcp/.doc_cache/7db63a8354bf8037_2_/345/212/237/350/203/275/351/234/200/346/261/202.md +0 -67
  63. package/mcp/.doc_cache/81528b4e0b12a881_SKILL.md +0 -196
  64. package/mcp/.doc_cache/83d17bdb48d30903_4_/347/224/250/346/210/267/347/225/214/351/235/242/344/270/216/344/275/223/351/252/214.md +0 -665
  65. package/mcp/.doc_cache/88e1d483f18abd02_/345/237/213/347/202/271/350/247/204/350/214/203/346/226/207/346/241/243.md +0 -372
  66. package/mcp/.doc_cache/8f420425062dcb93_SWOT/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -381
  67. package/mcp/.doc_cache/8f981c56b3d4b17d_/345/225/206/344/270/232/345/214/226/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -201
  68. package/mcp/.doc_cache/a3328dcce1521943_/345/270/202/345/234/272/344/270/216/345/225/206/344/270/232/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -176
  69. package/mcp/.doc_cache/a4ef757633f13133_/346/212/200/346/234/257/346/226/271/346/241/210/350/257/204/344/274/260/344/270/216/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -72
  70. package/mcp/.doc_cache/a90401fc94ca29a3_SKILL.md +0 -260
  71. package/mcp/.doc_cache/bad4b7992748a7a0_/344/272/247/345/223/201/351/234/200/346/261/202/345/217/221/347/216/260/344/270/216/351/252/214/350/257/201/346/250/241/346/235/277.md +0 -53
  72. package/mcp/.doc_cache/baeac26fdbcd25de_/344/272/247/345/223/201/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -322
  73. package/mcp/.doc_cache/c58bcfc199ada118_SKILL.md +0 -196
  74. package/mcp/.doc_cache/c8305789db809e48_SKILL.md +0 -588
  75. package/mcp/.doc_cache/cache_mapping.json +0 -69
  76. package/mcp/.doc_cache/d09142514e6a9de0_/347/224/265/345/225/206/345/271/263/345/217/260/344/274/230/345/214/226/346/241/210/344/276/213.md +0 -426
  77. package/mcp/.doc_cache/d165d35fea568d64_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/346/226/207/346/241/243/346/250/241/346/235/277.md +0 -576
  78. package/mcp/.doc_cache/d17b04c82d2497b2_/347/224/265/345/225/206/345/271/263/345/217/260/344/274/230/345/214/226/346/241/210/344/276/213.md +0 -426
  79. package/mcp/.doc_cache/d1cfa2f8882fcdf9_/346/214/207/345/215/227/346/226/207/346/241/243/346/240/207/345/207/206/346/250/241/346/235/277.md +0 -59
  80. package/mcp/.doc_cache/d2585b5df3d21fc9_3_/345/225/206/344/270/232/345/214/226/347/255/226/347/225/245.md +0 -131
  81. package/mcp/.doc_cache/d604a1290099121c_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220/346/214/207/345/215/227.md +0 -292
  82. package/mcp/.doc_cache/d66edce025de6b82_Draft_/344/272/247/345/223/201/351/234/200/346/261/202/350/215/211/347/250/277.md +0 -60
  83. package/mcp/.doc_cache/d6c3ff791e7da726_SKILL.md +0 -33
  84. package/mcp/.doc_cache/da2c3d4d7b8957af_SKILL.md +0 -218
  85. package/mcp/.doc_cache/da8f4d40a1e8f36a_/346/212/200/346/234/257/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -314
  86. package/mcp/.doc_cache/db70562fc59f1658_SKILL.md +0 -260
  87. package/mcp/.doc_cache/dd61f22b0ec13e10_Draft_/347/224/250/346/210/267/346/227/205/347/250/213/350/215/211/347/250/277.md +0 -84
  88. package/mcp/.doc_cache/e1451d5b65894789_SKILL.md +0 -930
  89. package/mcp/.doc_cache/e4f23de1b5313796_1_/344/272/247/345/223/201/345/256/232/344/275/215/344/270/216/345/210/206/346/236/220.md +0 -86
  90. package/mcp/.doc_cache/e668cf08c5f905ca_/345/267/245/345/205/267/344/275/277/347/224/250/346/214/207/345/215/227/346/250/241/346/235/277.md +0 -106
  91. package/mcp/.doc_cache/e69eeaaf88a175df_/345/270/202/345/234/272/346/234/272/344/274/232/350/257/204/344/274/260/344/270/216/347/253/236/344/272/211/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -53
  92. package/mcp/.doc_cache/ea4c5e5a6254f616_SKILL.md +0 -243
  93. package/mcp/.doc_cache/ec9ad6ce24808f0a_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220Prompt.md +0 -349
  94. package/mcp/node_modules/.package-lock.json +0 -147
  95. package/mcp/node_modules/@modelcontextprotocol/sdk/LICENSE +0 -7
  96. package/mcp/node_modules/@modelcontextprotocol/sdk/README.md +0 -110
  97. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts +0 -2
  98. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts.map +0 -1
  99. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js +0 -129
  100. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js.map +0 -1
  101. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts +0 -773
  102. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts.map +0 -1
  103. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js +0 -206
  104. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js.map +0 -1
  105. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts +0 -2
  106. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts.map +0 -1
  107. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js +0 -357
  108. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js.map +0 -1
  109. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts +0 -22
  110. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts.map +0 -1
  111. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js +0 -91
  112. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js.map +0 -1
  113. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts +0 -56
  114. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts.map +0 -1
  115. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js +0 -135
  116. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js.map +0 -1
  117. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts +0 -2
  118. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts.map +0 -1
  119. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js +0 -51
  120. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js.map +0 -1
  121. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts +0 -17
  122. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts.map +0 -1
  123. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js +0 -61
  124. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js.map +0 -1
  125. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts +0 -20
  126. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts.map +0 -1
  127. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js +0 -47
  128. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js.map +0 -1
  129. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts +0 -2
  130. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts.map +0 -1
  131. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js +0 -74
  132. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js.map +0 -1
  133. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts +0 -112
  134. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts.map +0 -1
  135. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js +0 -182
  136. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js.map +0 -1
  137. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts +0 -2
  138. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts.map +0 -1
  139. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js +0 -360
  140. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js.map +0 -1
  141. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts +0 -46
  142. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts.map +0 -1
  143. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js +0 -116
  144. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js.map +0 -1
  145. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts +0 -28
  146. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts.map +0 -1
  147. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js +0 -69
  148. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js.map +0 -1
  149. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts +0 -2
  150. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts.map +0 -1
  151. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js +0 -87
  152. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js.map +0 -1
  153. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts +0 -149
  154. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts.map +0 -1
  155. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js +0 -274
  156. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js.map +0 -1
  157. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts +0 -13
  158. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts.map +0 -1
  159. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js +0 -31
  160. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js.map +0 -1
  161. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts +0 -2
  162. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts.map +0 -1
  163. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js +0 -27
  164. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js.map +0 -1
  165. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts +0 -39
  166. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts.map +0 -1
  167. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js +0 -2
  168. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js.map +0 -1
  169. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts +0 -26424
  170. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts.map +0 -1
  171. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js +0 -996
  172. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js.map +0 -1
  173. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts +0 -5
  174. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts.map +0 -1
  175. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.js +0 -11
  176. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.js.map +0 -1
  177. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts +0 -2
  178. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts.map +0 -1
  179. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js +0 -14
  180. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js.map +0 -1
  181. package/mcp/node_modules/@modelcontextprotocol/sdk/package.json +0 -61
  182. package/mcp/node_modules/bytes/History.md +0 -97
  183. package/mcp/node_modules/bytes/LICENSE +0 -23
  184. package/mcp/node_modules/bytes/Readme.md +0 -152
  185. package/mcp/node_modules/bytes/index.js +0 -170
  186. package/mcp/node_modules/bytes/package.json +0 -42
  187. package/mcp/node_modules/content-type/HISTORY.md +0 -29
  188. package/mcp/node_modules/content-type/LICENSE +0 -22
  189. package/mcp/node_modules/content-type/README.md +0 -94
  190. package/mcp/node_modules/content-type/index.js +0 -225
  191. package/mcp/node_modules/content-type/package.json +0 -42
  192. package/mcp/node_modules/depd/History.md +0 -103
  193. package/mcp/node_modules/depd/LICENSE +0 -22
  194. package/mcp/node_modules/depd/Readme.md +0 -280
  195. package/mcp/node_modules/depd/index.js +0 -538
  196. package/mcp/node_modules/depd/lib/browser/index.js +0 -77
  197. package/mcp/node_modules/depd/package.json +0 -45
  198. package/mcp/node_modules/http-errors/HISTORY.md +0 -180
  199. package/mcp/node_modules/http-errors/LICENSE +0 -23
  200. package/mcp/node_modules/http-errors/README.md +0 -169
  201. package/mcp/node_modules/http-errors/index.js +0 -289
  202. package/mcp/node_modules/http-errors/package.json +0 -50
  203. package/mcp/node_modules/iconv-lite/Changelog.md +0 -236
  204. package/mcp/node_modules/iconv-lite/LICENSE +0 -21
  205. package/mcp/node_modules/iconv-lite/README.md +0 -138
  206. package/mcp/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  207. package/mcp/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  208. package/mcp/node_modules/iconv-lite/encodings/index.js +0 -23
  209. package/mcp/node_modules/iconv-lite/encodings/internal.js +0 -218
  210. package/mcp/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  211. package/mcp/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  212. package/mcp/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  213. package/mcp/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  214. package/mcp/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  215. package/mcp/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  216. package/mcp/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  217. package/mcp/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  218. package/mcp/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  219. package/mcp/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  220. package/mcp/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  221. package/mcp/node_modules/iconv-lite/encodings/utf16.js +0 -187
  222. package/mcp/node_modules/iconv-lite/encodings/utf32.js +0 -307
  223. package/mcp/node_modules/iconv-lite/encodings/utf7.js +0 -283
  224. package/mcp/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  225. package/mcp/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  226. package/mcp/node_modules/iconv-lite/lib/index.d.ts +0 -41
  227. package/mcp/node_modules/iconv-lite/lib/index.js +0 -183
  228. package/mcp/node_modules/iconv-lite/lib/streams.js +0 -105
  229. package/mcp/node_modules/iconv-lite/package.json +0 -59
  230. package/mcp/node_modules/inherits/LICENSE +0 -16
  231. package/mcp/node_modules/inherits/README.md +0 -42
  232. package/mcp/node_modules/inherits/inherits.js +0 -9
  233. package/mcp/node_modules/inherits/inherits_browser.js +0 -27
  234. package/mcp/node_modules/inherits/package.json +0 -29
  235. package/mcp/node_modules/raw-body/HISTORY.md +0 -333
  236. package/mcp/node_modules/raw-body/LICENSE +0 -22
  237. package/mcp/node_modules/raw-body/README.md +0 -223
  238. package/mcp/node_modules/raw-body/SECURITY.md +0 -24
  239. package/mcp/node_modules/raw-body/index.d.ts +0 -85
  240. package/mcp/node_modules/raw-body/index.js +0 -336
  241. package/mcp/node_modules/raw-body/package.json +0 -50
  242. package/mcp/node_modules/safer-buffer/LICENSE +0 -21
  243. package/mcp/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  244. package/mcp/node_modules/safer-buffer/Readme.md +0 -156
  245. package/mcp/node_modules/safer-buffer/dangerous.js +0 -58
  246. package/mcp/node_modules/safer-buffer/package.json +0 -34
  247. package/mcp/node_modules/safer-buffer/safer.js +0 -77
  248. package/mcp/node_modules/safer-buffer/tests.js +0 -406
  249. package/mcp/node_modules/setprototypeof/LICENSE +0 -13
  250. package/mcp/node_modules/setprototypeof/README.md +0 -31
  251. package/mcp/node_modules/setprototypeof/index.d.ts +0 -2
  252. package/mcp/node_modules/setprototypeof/index.js +0 -17
  253. package/mcp/node_modules/setprototypeof/package.json +0 -38
  254. package/mcp/node_modules/setprototypeof/test/index.js +0 -24
  255. package/mcp/node_modules/statuses/HISTORY.md +0 -82
  256. package/mcp/node_modules/statuses/LICENSE +0 -23
  257. package/mcp/node_modules/statuses/README.md +0 -136
  258. package/mcp/node_modules/statuses/codes.json +0 -65
  259. package/mcp/node_modules/statuses/index.js +0 -146
  260. package/mcp/node_modules/statuses/package.json +0 -49
  261. package/mcp/node_modules/toidentifier/HISTORY.md +0 -9
  262. package/mcp/node_modules/toidentifier/LICENSE +0 -21
  263. package/mcp/node_modules/toidentifier/README.md +0 -61
  264. package/mcp/node_modules/toidentifier/index.js +0 -32
  265. package/mcp/node_modules/toidentifier/package.json +0 -38
  266. package/mcp/node_modules/unpipe/HISTORY.md +0 -4
  267. package/mcp/node_modules/unpipe/LICENSE +0 -22
  268. package/mcp/node_modules/unpipe/README.md +0 -43
  269. package/mcp/node_modules/unpipe/index.js +0 -69
  270. package/mcp/node_modules/unpipe/package.json +0 -27
  271. package/mcp/node_modules/zod/LICENSE +0 -21
  272. package/mcp/node_modules/zod/README.md +0 -208
  273. package/mcp/node_modules/zod/index.cjs +0 -33
  274. package/mcp/node_modules/zod/index.d.cts +0 -4
  275. package/mcp/node_modules/zod/index.d.ts +0 -4
  276. package/mcp/node_modules/zod/index.js +0 -4
  277. package/mcp/node_modules/zod/package.json +0 -118
  278. package/mcp/node_modules/zod/src/index.ts +0 -4
  279. package/mcp/node_modules/zod/src/v3/ZodError.ts +0 -330
  280. package/mcp/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  281. package/mcp/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  282. package/mcp/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  283. package/mcp/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  284. package/mcp/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  285. package/mcp/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  286. package/mcp/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  287. package/mcp/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  288. package/mcp/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  289. package/mcp/node_modules/zod/src/v3/errors.ts +0 -13
  290. package/mcp/node_modules/zod/src/v3/external.ts +0 -6
  291. package/mcp/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  292. package/mcp/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  293. package/mcp/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  294. package/mcp/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  295. package/mcp/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  296. package/mcp/node_modules/zod/src/v3/helpers/util.ts +0 -224
  297. package/mcp/node_modules/zod/src/v3/index.ts +0 -4
  298. package/mcp/node_modules/zod/src/v3/locales/en.ts +0 -124
  299. package/mcp/node_modules/zod/src/v3/standard-schema.ts +0 -113
  300. package/mcp/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  301. package/mcp/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  302. package/mcp/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  303. package/mcp/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  304. package/mcp/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  305. package/mcp/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  306. package/mcp/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  307. package/mcp/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  308. package/mcp/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  309. package/mcp/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  310. package/mcp/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  311. package/mcp/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  312. package/mcp/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  313. package/mcp/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  314. package/mcp/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  315. package/mcp/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  316. package/mcp/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  317. package/mcp/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  318. package/mcp/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  319. package/mcp/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  320. package/mcp/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  321. package/mcp/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  322. package/mcp/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  323. package/mcp/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  324. package/mcp/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  325. package/mcp/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  326. package/mcp/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  327. package/mcp/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  328. package/mcp/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  329. package/mcp/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  330. package/mcp/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  331. package/mcp/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  332. package/mcp/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  333. package/mcp/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  334. package/mcp/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  335. package/mcp/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  336. package/mcp/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  337. package/mcp/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  338. package/mcp/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  339. package/mcp/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  340. package/mcp/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  341. package/mcp/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  342. package/mcp/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  343. package/mcp/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  344. package/mcp/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  345. package/mcp/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  346. package/mcp/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  347. package/mcp/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  348. package/mcp/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  349. package/mcp/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  350. package/mcp/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  351. package/mcp/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  352. package/mcp/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  353. package/mcp/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  354. package/mcp/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  355. package/mcp/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  356. package/mcp/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  357. package/mcp/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  358. package/mcp/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  359. package/mcp/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  360. package/mcp/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  361. package/mcp/node_modules/zod/src/v3/types.ts +0 -5136
  362. package/mcp/node_modules/zod/src/v4/classic/checks.ts +0 -30
  363. package/mcp/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  364. package/mcp/node_modules/zod/src/v4/classic/compat.ts +0 -66
  365. package/mcp/node_modules/zod/src/v4/classic/errors.ts +0 -75
  366. package/mcp/node_modules/zod/src/v4/classic/external.ts +0 -50
  367. package/mcp/node_modules/zod/src/v4/classic/index.ts +0 -5
  368. package/mcp/node_modules/zod/src/v4/classic/iso.ts +0 -90
  369. package/mcp/node_modules/zod/src/v4/classic/parse.ts +0 -33
  370. package/mcp/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  371. package/mcp/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  372. package/mcp/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  373. package/mcp/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  374. package/mcp/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  375. package/mcp/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  376. package/mcp/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  377. package/mcp/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  378. package/mcp/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  379. package/mcp/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  380. package/mcp/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  381. package/mcp/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  382. package/mcp/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  383. package/mcp/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  384. package/mcp/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  385. package/mcp/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  386. package/mcp/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  387. package/mcp/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  388. package/mcp/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  389. package/mcp/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  390. package/mcp/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  391. package/mcp/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  392. package/mcp/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  393. package/mcp/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  394. package/mcp/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  395. package/mcp/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  396. package/mcp/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  397. package/mcp/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  398. package/mcp/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  399. package/mcp/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  400. package/mcp/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  401. package/mcp/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  402. package/mcp/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  403. package/mcp/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  404. package/mcp/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  405. package/mcp/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  406. package/mcp/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  407. package/mcp/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  408. package/mcp/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  409. package/mcp/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  410. package/mcp/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  411. package/mcp/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  412. package/mcp/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  413. package/mcp/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  414. package/mcp/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  415. package/mcp/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  416. package/mcp/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  417. package/mcp/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  418. package/mcp/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  419. package/mcp/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  420. package/mcp/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  421. package/mcp/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  422. package/mcp/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  423. package/mcp/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  424. package/mcp/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  425. package/mcp/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  426. package/mcp/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  427. package/mcp/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  428. package/mcp/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  429. package/mcp/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  430. package/mcp/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  431. package/mcp/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  432. package/mcp/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  433. package/mcp/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  434. package/mcp/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  435. package/mcp/node_modules/zod/src/v4/core/api.ts +0 -1594
  436. package/mcp/node_modules/zod/src/v4/core/checks.ts +0 -1283
  437. package/mcp/node_modules/zod/src/v4/core/config.ts +0 -15
  438. package/mcp/node_modules/zod/src/v4/core/core.ts +0 -134
  439. package/mcp/node_modules/zod/src/v4/core/doc.ts +0 -44
  440. package/mcp/node_modules/zod/src/v4/core/errors.ts +0 -424
  441. package/mcp/node_modules/zod/src/v4/core/function.ts +0 -176
  442. package/mcp/node_modules/zod/src/v4/core/index.ts +0 -15
  443. package/mcp/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  444. package/mcp/node_modules/zod/src/v4/core/parse.ts +0 -94
  445. package/mcp/node_modules/zod/src/v4/core/regexes.ts +0 -135
  446. package/mcp/node_modules/zod/src/v4/core/registries.ts +0 -96
  447. package/mcp/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  448. package/mcp/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  449. package/mcp/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  450. package/mcp/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  451. package/mcp/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  452. package/mcp/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  453. package/mcp/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  454. package/mcp/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  455. package/mcp/node_modules/zod/src/v4/core/util.ts +0 -775
  456. package/mcp/node_modules/zod/src/v4/core/versions.ts +0 -5
  457. package/mcp/node_modules/zod/src/v4/core/zsf.ts +0 -323
  458. package/mcp/node_modules/zod/src/v4/index.ts +0 -4
  459. package/mcp/node_modules/zod/src/v4/locales/ar.ts +0 -125
  460. package/mcp/node_modules/zod/src/v4/locales/az.ts +0 -121
  461. package/mcp/node_modules/zod/src/v4/locales/be.ts +0 -184
  462. package/mcp/node_modules/zod/src/v4/locales/ca.ts +0 -127
  463. package/mcp/node_modules/zod/src/v4/locales/cs.ts +0 -142
  464. package/mcp/node_modules/zod/src/v4/locales/de.ts +0 -124
  465. package/mcp/node_modules/zod/src/v4/locales/en.ts +0 -127
  466. package/mcp/node_modules/zod/src/v4/locales/eo.ts +0 -125
  467. package/mcp/node_modules/zod/src/v4/locales/es.ts +0 -125
  468. package/mcp/node_modules/zod/src/v4/locales/fa.ts +0 -134
  469. package/mcp/node_modules/zod/src/v4/locales/fi.ts +0 -131
  470. package/mcp/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  471. package/mcp/node_modules/zod/src/v4/locales/fr.ts +0 -124
  472. package/mcp/node_modules/zod/src/v4/locales/he.ts +0 -125
  473. package/mcp/node_modules/zod/src/v4/locales/hu.ts +0 -126
  474. package/mcp/node_modules/zod/src/v4/locales/id.ts +0 -125
  475. package/mcp/node_modules/zod/src/v4/locales/index.ts +0 -39
  476. package/mcp/node_modules/zod/src/v4/locales/it.ts +0 -125
  477. package/mcp/node_modules/zod/src/v4/locales/ja.ts +0 -122
  478. package/mcp/node_modules/zod/src/v4/locales/kh.ts +0 -126
  479. package/mcp/node_modules/zod/src/v4/locales/ko.ts +0 -131
  480. package/mcp/node_modules/zod/src/v4/locales/mk.ts +0 -127
  481. package/mcp/node_modules/zod/src/v4/locales/ms.ts +0 -124
  482. package/mcp/node_modules/zod/src/v4/locales/nl.ts +0 -126
  483. package/mcp/node_modules/zod/src/v4/locales/no.ts +0 -124
  484. package/mcp/node_modules/zod/src/v4/locales/ota.ts +0 -125
  485. package/mcp/node_modules/zod/src/v4/locales/pl.ts +0 -126
  486. package/mcp/node_modules/zod/src/v4/locales/ps.ts +0 -133
  487. package/mcp/node_modules/zod/src/v4/locales/pt.ts +0 -123
  488. package/mcp/node_modules/zod/src/v4/locales/ru.ts +0 -184
  489. package/mcp/node_modules/zod/src/v4/locales/sl.ts +0 -126
  490. package/mcp/node_modules/zod/src/v4/locales/sv.ts +0 -127
  491. package/mcp/node_modules/zod/src/v4/locales/ta.ts +0 -125
  492. package/mcp/node_modules/zod/src/v4/locales/th.ts +0 -126
  493. package/mcp/node_modules/zod/src/v4/locales/tr.ts +0 -121
  494. package/mcp/node_modules/zod/src/v4/locales/ua.ts +0 -126
  495. package/mcp/node_modules/zod/src/v4/locales/ur.ts +0 -126
  496. package/mcp/node_modules/zod/src/v4/locales/vi.ts +0 -125
  497. package/mcp/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  498. package/mcp/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  499. package/mcp/node_modules/zod/src/v4/mini/checks.ts +0 -32
  500. package/mcp/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  501. package/mcp/node_modules/zod/src/v4/mini/external.ts +0 -40
  502. package/mcp/node_modules/zod/src/v4/mini/index.ts +0 -3
  503. package/mcp/node_modules/zod/src/v4/mini/iso.ts +0 -62
  504. package/mcp/node_modules/zod/src/v4/mini/parse.ts +0 -1
  505. package/mcp/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  506. package/mcp/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  507. package/mcp/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  508. package/mcp/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  509. package/mcp/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  510. package/mcp/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  511. package/mcp/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  512. package/mcp/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  513. package/mcp/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  514. package/mcp/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  515. package/mcp/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  516. package/mcp/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  517. package/mcp/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  518. package/mcp/node_modules/zod/src/v4-mini/index.ts +0 -1
  519. package/mcp/node_modules/zod/v3/ZodError.cjs +0 -138
  520. package/mcp/node_modules/zod/v3/ZodError.d.cts +0 -164
  521. package/mcp/node_modules/zod/v3/ZodError.d.ts +0 -164
  522. package/mcp/node_modules/zod/v3/ZodError.js +0 -133
  523. package/mcp/node_modules/zod/v3/errors.cjs +0 -17
  524. package/mcp/node_modules/zod/v3/errors.d.cts +0 -5
  525. package/mcp/node_modules/zod/v3/errors.d.ts +0 -5
  526. package/mcp/node_modules/zod/v3/errors.js +0 -9
  527. package/mcp/node_modules/zod/v3/external.cjs +0 -22
  528. package/mcp/node_modules/zod/v3/external.d.cts +0 -6
  529. package/mcp/node_modules/zod/v3/external.d.ts +0 -6
  530. package/mcp/node_modules/zod/v3/external.js +0 -6
  531. package/mcp/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  532. package/mcp/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  533. package/mcp/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  534. package/mcp/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  535. package/mcp/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  536. package/mcp/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  537. package/mcp/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  538. package/mcp/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  539. package/mcp/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  540. package/mcp/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  541. package/mcp/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  542. package/mcp/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  543. package/mcp/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  544. package/mcp/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  545. package/mcp/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  546. package/mcp/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  547. package/mcp/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  548. package/mcp/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  549. package/mcp/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  550. package/mcp/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  551. package/mcp/node_modules/zod/v3/helpers/util.cjs +0 -137
  552. package/mcp/node_modules/zod/v3/helpers/util.d.cts +0 -85
  553. package/mcp/node_modules/zod/v3/helpers/util.d.ts +0 -85
  554. package/mcp/node_modules/zod/v3/helpers/util.js +0 -133
  555. package/mcp/node_modules/zod/v3/index.cjs +0 -33
  556. package/mcp/node_modules/zod/v3/index.d.cts +0 -4
  557. package/mcp/node_modules/zod/v3/index.d.ts +0 -4
  558. package/mcp/node_modules/zod/v3/index.js +0 -4
  559. package/mcp/node_modules/zod/v3/locales/en.cjs +0 -111
  560. package/mcp/node_modules/zod/v3/locales/en.d.cts +0 -3
  561. package/mcp/node_modules/zod/v3/locales/en.d.ts +0 -3
  562. package/mcp/node_modules/zod/v3/locales/en.js +0 -109
  563. package/mcp/node_modules/zod/v3/standard-schema.cjs +0 -2
  564. package/mcp/node_modules/zod/v3/standard-schema.d.cts +0 -102
  565. package/mcp/node_modules/zod/v3/standard-schema.d.ts +0 -102
  566. package/mcp/node_modules/zod/v3/standard-schema.js +0 -1
  567. package/mcp/node_modules/zod/v3/types.cjs +0 -3775
  568. package/mcp/node_modules/zod/v3/types.d.cts +0 -1031
  569. package/mcp/node_modules/zod/v3/types.d.ts +0 -1031
  570. package/mcp/node_modules/zod/v3/types.js +0 -3693
  571. package/mcp/node_modules/zod/v4/classic/checks.cjs +0 -32
  572. package/mcp/node_modules/zod/v4/classic/checks.d.cts +0 -1
  573. package/mcp/node_modules/zod/v4/classic/checks.d.ts +0 -1
  574. package/mcp/node_modules/zod/v4/classic/checks.js +0 -1
  575. package/mcp/node_modules/zod/v4/classic/coerce.cjs +0 -47
  576. package/mcp/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  577. package/mcp/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  578. package/mcp/node_modules/zod/v4/classic/coerce.js +0 -17
  579. package/mcp/node_modules/zod/v4/classic/compat.cjs +0 -57
  580. package/mcp/node_modules/zod/v4/classic/compat.d.cts +0 -46
  581. package/mcp/node_modules/zod/v4/classic/compat.d.ts +0 -46
  582. package/mcp/node_modules/zod/v4/classic/compat.js +0 -27
  583. package/mcp/node_modules/zod/v4/classic/errors.cjs +0 -67
  584. package/mcp/node_modules/zod/v4/classic/errors.d.cts +0 -30
  585. package/mcp/node_modules/zod/v4/classic/errors.d.ts +0 -30
  586. package/mcp/node_modules/zod/v4/classic/errors.js +0 -41
  587. package/mcp/node_modules/zod/v4/classic/external.cjs +0 -70
  588. package/mcp/node_modules/zod/v4/classic/external.d.cts +0 -13
  589. package/mcp/node_modules/zod/v4/classic/external.d.ts +0 -13
  590. package/mcp/node_modules/zod/v4/classic/external.js +0 -18
  591. package/mcp/node_modules/zod/v4/classic/index.cjs +0 -33
  592. package/mcp/node_modules/zod/v4/classic/index.d.cts +0 -4
  593. package/mcp/node_modules/zod/v4/classic/index.d.ts +0 -4
  594. package/mcp/node_modules/zod/v4/classic/index.js +0 -4
  595. package/mcp/node_modules/zod/v4/classic/iso.cjs +0 -60
  596. package/mcp/node_modules/zod/v4/classic/iso.d.cts +0 -22
  597. package/mcp/node_modules/zod/v4/classic/iso.d.ts +0 -22
  598. package/mcp/node_modules/zod/v4/classic/iso.js +0 -30
  599. package/mcp/node_modules/zod/v4/classic/parse.cjs +0 -32
  600. package/mcp/node_modules/zod/v4/classic/parse.d.cts +0 -23
  601. package/mcp/node_modules/zod/v4/classic/parse.d.ts +0 -23
  602. package/mcp/node_modules/zod/v4/classic/parse.js +0 -6
  603. package/mcp/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  604. package/mcp/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  605. package/mcp/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  606. package/mcp/node_modules/zod/v4/classic/schemas.js +0 -1006
  607. package/mcp/node_modules/zod/v4/core/api.cjs +0 -1039
  608. package/mcp/node_modules/zod/v4/core/api.d.cts +0 -284
  609. package/mcp/node_modules/zod/v4/core/api.d.ts +0 -284
  610. package/mcp/node_modules/zod/v4/core/api.js +0 -906
  611. package/mcp/node_modules/zod/v4/core/checks.cjs +0 -591
  612. package/mcp/node_modules/zod/v4/core/checks.d.cts +0 -278
  613. package/mcp/node_modules/zod/v4/core/checks.d.ts +0 -278
  614. package/mcp/node_modules/zod/v4/core/checks.js +0 -565
  615. package/mcp/node_modules/zod/v4/core/core.cjs +0 -67
  616. package/mcp/node_modules/zod/v4/core/core.d.cts +0 -49
  617. package/mcp/node_modules/zod/v4/core/core.d.ts +0 -49
  618. package/mcp/node_modules/zod/v4/core/core.js +0 -61
  619. package/mcp/node_modules/zod/v4/core/doc.cjs +0 -39
  620. package/mcp/node_modules/zod/v4/core/doc.d.cts +0 -14
  621. package/mcp/node_modules/zod/v4/core/doc.d.ts +0 -14
  622. package/mcp/node_modules/zod/v4/core/doc.js +0 -35
  623. package/mcp/node_modules/zod/v4/core/errors.cjs +0 -226
  624. package/mcp/node_modules/zod/v4/core/errors.d.cts +0 -208
  625. package/mcp/node_modules/zod/v4/core/errors.d.ts +0 -208
  626. package/mcp/node_modules/zod/v4/core/errors.js +0 -195
  627. package/mcp/node_modules/zod/v4/core/function.cjs +0 -102
  628. package/mcp/node_modules/zod/v4/core/function.d.cts +0 -52
  629. package/mcp/node_modules/zod/v4/core/function.d.ts +0 -52
  630. package/mcp/node_modules/zod/v4/core/function.js +0 -75
  631. package/mcp/node_modules/zod/v4/core/index.cjs +0 -44
  632. package/mcp/node_modules/zod/v4/core/index.d.cts +0 -15
  633. package/mcp/node_modules/zod/v4/core/index.d.ts +0 -15
  634. package/mcp/node_modules/zod/v4/core/index.js +0 -15
  635. package/mcp/node_modules/zod/v4/core/json-schema.cjs +0 -2
  636. package/mcp/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  637. package/mcp/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  638. package/mcp/node_modules/zod/v4/core/json-schema.js +0 -1
  639. package/mcp/node_modules/zod/v4/core/parse.cjs +0 -87
  640. package/mcp/node_modules/zod/v4/core/parse.d.cts +0 -25
  641. package/mcp/node_modules/zod/v4/core/parse.d.ts +0 -25
  642. package/mcp/node_modules/zod/v4/core/parse.js +0 -57
  643. package/mcp/node_modules/zod/v4/core/regexes.cjs +0 -103
  644. package/mcp/node_modules/zod/v4/core/regexes.d.cts +0 -62
  645. package/mcp/node_modules/zod/v4/core/regexes.d.ts +0 -62
  646. package/mcp/node_modules/zod/v4/core/regexes.js +0 -95
  647. package/mcp/node_modules/zod/v4/core/registries.cjs +0 -56
  648. package/mcp/node_modules/zod/v4/core/registries.d.cts +0 -35
  649. package/mcp/node_modules/zod/v4/core/registries.d.ts +0 -35
  650. package/mcp/node_modules/zod/v4/core/registries.js +0 -51
  651. package/mcp/node_modules/zod/v4/core/schemas.cjs +0 -1748
  652. package/mcp/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  653. package/mcp/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  654. package/mcp/node_modules/zod/v4/core/schemas.js +0 -1717
  655. package/mcp/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  656. package/mcp/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  657. package/mcp/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  658. package/mcp/node_modules/zod/v4/core/standard-schema.js +0 -1
  659. package/mcp/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  660. package/mcp/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  661. package/mcp/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  662. package/mcp/node_modules/zod/v4/core/to-json-schema.js +0 -849
  663. package/mcp/node_modules/zod/v4/core/util.cjs +0 -539
  664. package/mcp/node_modules/zod/v4/core/util.d.cts +0 -183
  665. package/mcp/node_modules/zod/v4/core/util.d.ts +0 -183
  666. package/mcp/node_modules/zod/v4/core/util.js +0 -493
  667. package/mcp/node_modules/zod/v4/core/versions.cjs +0 -8
  668. package/mcp/node_modules/zod/v4/core/versions.d.cts +0 -5
  669. package/mcp/node_modules/zod/v4/core/versions.d.ts +0 -5
  670. package/mcp/node_modules/zod/v4/core/versions.js +0 -5
  671. package/mcp/node_modules/zod/v4/index.cjs +0 -22
  672. package/mcp/node_modules/zod/v4/index.d.cts +0 -3
  673. package/mcp/node_modules/zod/v4/index.d.ts +0 -3
  674. package/mcp/node_modules/zod/v4/index.js +0 -3
  675. package/mcp/node_modules/zod/v4/locales/ar.cjs +0 -142
  676. package/mcp/node_modules/zod/v4/locales/ar.d.cts +0 -4
  677. package/mcp/node_modules/zod/v4/locales/ar.d.ts +0 -4
  678. package/mcp/node_modules/zod/v4/locales/ar.js +0 -116
  679. package/mcp/node_modules/zod/v4/locales/az.cjs +0 -141
  680. package/mcp/node_modules/zod/v4/locales/az.d.cts +0 -4
  681. package/mcp/node_modules/zod/v4/locales/az.d.ts +0 -4
  682. package/mcp/node_modules/zod/v4/locales/az.js +0 -115
  683. package/mcp/node_modules/zod/v4/locales/be.cjs +0 -190
  684. package/mcp/node_modules/zod/v4/locales/be.d.cts +0 -4
  685. package/mcp/node_modules/zod/v4/locales/be.d.ts +0 -4
  686. package/mcp/node_modules/zod/v4/locales/be.js +0 -164
  687. package/mcp/node_modules/zod/v4/locales/ca.cjs +0 -144
  688. package/mcp/node_modules/zod/v4/locales/ca.d.cts +0 -4
  689. package/mcp/node_modules/zod/v4/locales/ca.d.ts +0 -4
  690. package/mcp/node_modules/zod/v4/locales/ca.js +0 -118
  691. package/mcp/node_modules/zod/v4/locales/cs.cjs +0 -161
  692. package/mcp/node_modules/zod/v4/locales/cs.d.cts +0 -4
  693. package/mcp/node_modules/zod/v4/locales/cs.d.ts +0 -4
  694. package/mcp/node_modules/zod/v4/locales/cs.js +0 -135
  695. package/mcp/node_modules/zod/v4/locales/de.cjs +0 -142
  696. package/mcp/node_modules/zod/v4/locales/de.d.cts +0 -4
  697. package/mcp/node_modules/zod/v4/locales/de.d.ts +0 -4
  698. package/mcp/node_modules/zod/v4/locales/de.js +0 -116
  699. package/mcp/node_modules/zod/v4/locales/en.cjs +0 -145
  700. package/mcp/node_modules/zod/v4/locales/en.d.cts +0 -5
  701. package/mcp/node_modules/zod/v4/locales/en.d.ts +0 -5
  702. package/mcp/node_modules/zod/v4/locales/en.js +0 -117
  703. package/mcp/node_modules/zod/v4/locales/eo.cjs +0 -144
  704. package/mcp/node_modules/zod/v4/locales/eo.d.cts +0 -5
  705. package/mcp/node_modules/zod/v4/locales/eo.d.ts +0 -5
  706. package/mcp/node_modules/zod/v4/locales/eo.js +0 -116
  707. package/mcp/node_modules/zod/v4/locales/es.cjs +0 -143
  708. package/mcp/node_modules/zod/v4/locales/es.d.cts +0 -4
  709. package/mcp/node_modules/zod/v4/locales/es.d.ts +0 -4
  710. package/mcp/node_modules/zod/v4/locales/es.js +0 -117
  711. package/mcp/node_modules/zod/v4/locales/fa.cjs +0 -148
  712. package/mcp/node_modules/zod/v4/locales/fa.d.cts +0 -4
  713. package/mcp/node_modules/zod/v4/locales/fa.d.ts +0 -4
  714. package/mcp/node_modules/zod/v4/locales/fa.js +0 -122
  715. package/mcp/node_modules/zod/v4/locales/fi.cjs +0 -148
  716. package/mcp/node_modules/zod/v4/locales/fi.d.cts +0 -4
  717. package/mcp/node_modules/zod/v4/locales/fi.d.ts +0 -4
  718. package/mcp/node_modules/zod/v4/locales/fi.js +0 -122
  719. package/mcp/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  720. package/mcp/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  721. package/mcp/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  722. package/mcp/node_modules/zod/v4/locales/fr-CA.js +0 -117
  723. package/mcp/node_modules/zod/v4/locales/fr.cjs +0 -142
  724. package/mcp/node_modules/zod/v4/locales/fr.d.cts +0 -4
  725. package/mcp/node_modules/zod/v4/locales/fr.d.ts +0 -4
  726. package/mcp/node_modules/zod/v4/locales/fr.js +0 -116
  727. package/mcp/node_modules/zod/v4/locales/he.cjs +0 -143
  728. package/mcp/node_modules/zod/v4/locales/he.d.cts +0 -4
  729. package/mcp/node_modules/zod/v4/locales/he.d.ts +0 -4
  730. package/mcp/node_modules/zod/v4/locales/he.js +0 -117
  731. package/mcp/node_modules/zod/v4/locales/hu.cjs +0 -143
  732. package/mcp/node_modules/zod/v4/locales/hu.d.cts +0 -4
  733. package/mcp/node_modules/zod/v4/locales/hu.d.ts +0 -4
  734. package/mcp/node_modules/zod/v4/locales/hu.js +0 -117
  735. package/mcp/node_modules/zod/v4/locales/id.cjs +0 -142
  736. package/mcp/node_modules/zod/v4/locales/id.d.cts +0 -4
  737. package/mcp/node_modules/zod/v4/locales/id.d.ts +0 -4
  738. package/mcp/node_modules/zod/v4/locales/id.js +0 -116
  739. package/mcp/node_modules/zod/v4/locales/index.cjs +0 -84
  740. package/mcp/node_modules/zod/v4/locales/index.d.cts +0 -39
  741. package/mcp/node_modules/zod/v4/locales/index.d.ts +0 -39
  742. package/mcp/node_modules/zod/v4/locales/index.js +0 -39
  743. package/mcp/node_modules/zod/v4/locales/it.cjs +0 -143
  744. package/mcp/node_modules/zod/v4/locales/it.d.cts +0 -4
  745. package/mcp/node_modules/zod/v4/locales/it.d.ts +0 -4
  746. package/mcp/node_modules/zod/v4/locales/it.js +0 -117
  747. package/mcp/node_modules/zod/v4/locales/ja.cjs +0 -141
  748. package/mcp/node_modules/zod/v4/locales/ja.d.cts +0 -4
  749. package/mcp/node_modules/zod/v4/locales/ja.d.ts +0 -4
  750. package/mcp/node_modules/zod/v4/locales/ja.js +0 -115
  751. package/mcp/node_modules/zod/v4/locales/kh.cjs +0 -143
  752. package/mcp/node_modules/zod/v4/locales/kh.d.cts +0 -4
  753. package/mcp/node_modules/zod/v4/locales/kh.d.ts +0 -4
  754. package/mcp/node_modules/zod/v4/locales/kh.js +0 -117
  755. package/mcp/node_modules/zod/v4/locales/ko.cjs +0 -147
  756. package/mcp/node_modules/zod/v4/locales/ko.d.cts +0 -4
  757. package/mcp/node_modules/zod/v4/locales/ko.d.ts +0 -4
  758. package/mcp/node_modules/zod/v4/locales/ko.js +0 -121
  759. package/mcp/node_modules/zod/v4/locales/mk.cjs +0 -144
  760. package/mcp/node_modules/zod/v4/locales/mk.d.cts +0 -4
  761. package/mcp/node_modules/zod/v4/locales/mk.d.ts +0 -4
  762. package/mcp/node_modules/zod/v4/locales/mk.js +0 -118
  763. package/mcp/node_modules/zod/v4/locales/ms.cjs +0 -142
  764. package/mcp/node_modules/zod/v4/locales/ms.d.cts +0 -4
  765. package/mcp/node_modules/zod/v4/locales/ms.d.ts +0 -4
  766. package/mcp/node_modules/zod/v4/locales/ms.js +0 -116
  767. package/mcp/node_modules/zod/v4/locales/nl.cjs +0 -143
  768. package/mcp/node_modules/zod/v4/locales/nl.d.cts +0 -4
  769. package/mcp/node_modules/zod/v4/locales/nl.d.ts +0 -4
  770. package/mcp/node_modules/zod/v4/locales/nl.js +0 -117
  771. package/mcp/node_modules/zod/v4/locales/no.cjs +0 -142
  772. package/mcp/node_modules/zod/v4/locales/no.d.cts +0 -4
  773. package/mcp/node_modules/zod/v4/locales/no.d.ts +0 -4
  774. package/mcp/node_modules/zod/v4/locales/no.js +0 -116
  775. package/mcp/node_modules/zod/v4/locales/ota.cjs +0 -143
  776. package/mcp/node_modules/zod/v4/locales/ota.d.cts +0 -4
  777. package/mcp/node_modules/zod/v4/locales/ota.d.ts +0 -4
  778. package/mcp/node_modules/zod/v4/locales/ota.js +0 -117
  779. package/mcp/node_modules/zod/v4/locales/pl.cjs +0 -143
  780. package/mcp/node_modules/zod/v4/locales/pl.d.cts +0 -4
  781. package/mcp/node_modules/zod/v4/locales/pl.d.ts +0 -4
  782. package/mcp/node_modules/zod/v4/locales/pl.js +0 -117
  783. package/mcp/node_modules/zod/v4/locales/ps.cjs +0 -148
  784. package/mcp/node_modules/zod/v4/locales/ps.d.cts +0 -4
  785. package/mcp/node_modules/zod/v4/locales/ps.d.ts +0 -4
  786. package/mcp/node_modules/zod/v4/locales/ps.js +0 -122
  787. package/mcp/node_modules/zod/v4/locales/pt.cjs +0 -142
  788. package/mcp/node_modules/zod/v4/locales/pt.d.cts +0 -4
  789. package/mcp/node_modules/zod/v4/locales/pt.d.ts +0 -4
  790. package/mcp/node_modules/zod/v4/locales/pt.js +0 -116
  791. package/mcp/node_modules/zod/v4/locales/ru.cjs +0 -190
  792. package/mcp/node_modules/zod/v4/locales/ru.d.cts +0 -4
  793. package/mcp/node_modules/zod/v4/locales/ru.d.ts +0 -4
  794. package/mcp/node_modules/zod/v4/locales/ru.js +0 -164
  795. package/mcp/node_modules/zod/v4/locales/sl.cjs +0 -143
  796. package/mcp/node_modules/zod/v4/locales/sl.d.cts +0 -4
  797. package/mcp/node_modules/zod/v4/locales/sl.d.ts +0 -4
  798. package/mcp/node_modules/zod/v4/locales/sl.js +0 -117
  799. package/mcp/node_modules/zod/v4/locales/sv.cjs +0 -144
  800. package/mcp/node_modules/zod/v4/locales/sv.d.cts +0 -4
  801. package/mcp/node_modules/zod/v4/locales/sv.d.ts +0 -4
  802. package/mcp/node_modules/zod/v4/locales/sv.js +0 -118
  803. package/mcp/node_modules/zod/v4/locales/ta.cjs +0 -143
  804. package/mcp/node_modules/zod/v4/locales/ta.d.cts +0 -4
  805. package/mcp/node_modules/zod/v4/locales/ta.d.ts +0 -4
  806. package/mcp/node_modules/zod/v4/locales/ta.js +0 -117
  807. package/mcp/node_modules/zod/v4/locales/th.cjs +0 -143
  808. package/mcp/node_modules/zod/v4/locales/th.d.cts +0 -4
  809. package/mcp/node_modules/zod/v4/locales/th.d.ts +0 -4
  810. package/mcp/node_modules/zod/v4/locales/th.js +0 -117
  811. package/mcp/node_modules/zod/v4/locales/tr.cjs +0 -143
  812. package/mcp/node_modules/zod/v4/locales/tr.d.cts +0 -5
  813. package/mcp/node_modules/zod/v4/locales/tr.d.ts +0 -5
  814. package/mcp/node_modules/zod/v4/locales/tr.js +0 -115
  815. package/mcp/node_modules/zod/v4/locales/ua.cjs +0 -143
  816. package/mcp/node_modules/zod/v4/locales/ua.d.cts +0 -4
  817. package/mcp/node_modules/zod/v4/locales/ua.d.ts +0 -4
  818. package/mcp/node_modules/zod/v4/locales/ua.js +0 -117
  819. package/mcp/node_modules/zod/v4/locales/ur.cjs +0 -143
  820. package/mcp/node_modules/zod/v4/locales/ur.d.cts +0 -4
  821. package/mcp/node_modules/zod/v4/locales/ur.d.ts +0 -4
  822. package/mcp/node_modules/zod/v4/locales/ur.js +0 -117
  823. package/mcp/node_modules/zod/v4/locales/vi.cjs +0 -142
  824. package/mcp/node_modules/zod/v4/locales/vi.d.cts +0 -4
  825. package/mcp/node_modules/zod/v4/locales/vi.d.ts +0 -4
  826. package/mcp/node_modules/zod/v4/locales/vi.js +0 -116
  827. package/mcp/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  828. package/mcp/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  829. package/mcp/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  830. package/mcp/node_modules/zod/v4/locales/zh-CN.js +0 -116
  831. package/mcp/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  832. package/mcp/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  833. package/mcp/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  834. package/mcp/node_modules/zod/v4/locales/zh-TW.js +0 -117
  835. package/mcp/node_modules/zod/v4/mini/checks.cjs +0 -34
  836. package/mcp/node_modules/zod/v4/mini/checks.d.cts +0 -1
  837. package/mcp/node_modules/zod/v4/mini/checks.d.ts +0 -1
  838. package/mcp/node_modules/zod/v4/mini/checks.js +0 -1
  839. package/mcp/node_modules/zod/v4/mini/coerce.cjs +0 -47
  840. package/mcp/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  841. package/mcp/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  842. package/mcp/node_modules/zod/v4/mini/coerce.js +0 -17
  843. package/mcp/node_modules/zod/v4/mini/external.cjs +0 -62
  844. package/mcp/node_modules/zod/v4/mini/external.d.cts +0 -11
  845. package/mcp/node_modules/zod/v4/mini/external.d.ts +0 -11
  846. package/mcp/node_modules/zod/v4/mini/external.js +0 -13
  847. package/mcp/node_modules/zod/v4/mini/index.cjs +0 -32
  848. package/mcp/node_modules/zod/v4/mini/index.d.cts +0 -3
  849. package/mcp/node_modules/zod/v4/mini/index.d.ts +0 -3
  850. package/mcp/node_modules/zod/v4/mini/index.js +0 -3
  851. package/mcp/node_modules/zod/v4/mini/iso.cjs +0 -60
  852. package/mcp/node_modules/zod/v4/mini/iso.d.cts +0 -22
  853. package/mcp/node_modules/zod/v4/mini/iso.d.ts +0 -22
  854. package/mcp/node_modules/zod/v4/mini/iso.js +0 -30
  855. package/mcp/node_modules/zod/v4/mini/parse.cjs +0 -8
  856. package/mcp/node_modules/zod/v4/mini/parse.d.cts +0 -1
  857. package/mcp/node_modules/zod/v4/mini/parse.d.ts +0 -1
  858. package/mcp/node_modules/zod/v4/mini/parse.js +0 -1
  859. package/mcp/node_modules/zod/v4/mini/schemas.cjs +0 -839
  860. package/mcp/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  861. package/mcp/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  862. package/mcp/node_modules/zod/v4/mini/schemas.js +0 -732
  863. package/mcp/node_modules/zod/v4-mini/index.cjs +0 -17
  864. package/mcp/node_modules/zod/v4-mini/index.d.cts +0 -1
  865. package/mcp/node_modules/zod/v4-mini/index.d.ts +0 -1
  866. package/mcp/node_modules/zod/v4-mini/index.js +0 -1
  867. package/mcp/src/__pycache__/server.cpython-312.pyc +0 -0
  868. package/mcp/src/__pycache__/server_core.cpython-312.pyc +0 -0
  869. package/mcp/test/__pycache__/test_server.cpython-312-pytest-8.4.1.pyc +0 -0
  870. package/mcp/test/__pycache__/test_server.cpython-312.pyc +0 -0
  871. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/.package-lock.json +0 -113
  872. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/LICENSE.md +0 -82
  873. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/README.md +0 -15
  874. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/color.cjs +0 -1594
  875. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/index.cjs +0 -1
  876. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/package.json +0 -45
  877. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/LICENSE +0 -191
  878. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/README.md +0 -18
  879. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  880. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
  881. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/README.md +0 -46
  882. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +0 -220
  883. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
  884. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  885. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
  886. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
  887. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/LICENSE +0 -201
  888. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/README.md +0 -163
  889. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/index.d.ts +0 -14
  890. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/detect-libc.js +0 -313
  891. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/elf.js +0 -39
  892. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/filesystem.js +0 -51
  893. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/process.js +0 -24
  894. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/package.json +0 -44
  895. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/LICENSE +0 -15
  896. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/README.md +0 -664
  897. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/bin/semver.js +0 -191
  898. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/comparator.js +0 -143
  899. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/index.js +0 -7
  900. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/range.js +0 -557
  901. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/semver.js +0 -333
  902. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/clean.js +0 -8
  903. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/cmp.js +0 -54
  904. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/coerce.js +0 -62
  905. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare-build.js +0 -9
  906. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare-loose.js +0 -5
  907. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare.js +0 -7
  908. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/diff.js +0 -60
  909. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/eq.js +0 -5
  910. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/gt.js +0 -5
  911. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/gte.js +0 -5
  912. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/inc.js +0 -21
  913. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/lt.js +0 -5
  914. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/lte.js +0 -5
  915. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/major.js +0 -5
  916. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/minor.js +0 -5
  917. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/neq.js +0 -5
  918. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/parse.js +0 -18
  919. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/patch.js +0 -5
  920. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/prerelease.js +0 -8
  921. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/rcompare.js +0 -5
  922. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/rsort.js +0 -5
  923. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/satisfies.js +0 -12
  924. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/sort.js +0 -5
  925. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/valid.js +0 -8
  926. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/index.js +0 -91
  927. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/constants.js +0 -37
  928. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/debug.js +0 -11
  929. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/identifiers.js +0 -29
  930. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/lrucache.js +0 -42
  931. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/parse-options.js +0 -17
  932. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/re.js +0 -223
  933. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/package.json +0 -78
  934. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/preload.js +0 -4
  935. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/range.bnf +0 -16
  936. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/gtr.js +0 -6
  937. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/intersects.js +0 -9
  938. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/ltr.js +0 -6
  939. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/max-satisfying.js +0 -27
  940. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/min-satisfying.js +0 -26
  941. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/min-version.js +0 -63
  942. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/outside.js +0 -82
  943. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/simplify.js +0 -49
  944. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/subset.js +0 -249
  945. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/to-comparators.js +0 -10
  946. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/valid.js +0 -13
  947. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/LICENSE +0 -191
  948. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/README.md +0 -118
  949. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/install/build.js +0 -38
  950. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/install/check.js +0 -14
  951. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/channel.js +0 -177
  952. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/colour.js +0 -195
  953. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/composite.js +0 -212
  954. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/constructor.js +0 -499
  955. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/index.d.ts +0 -1971
  956. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/index.js +0 -16
  957. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/input.js +0 -809
  958. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/is.js +0 -143
  959. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/libvips.js +0 -207
  960. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/operation.js +0 -1016
  961. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/output.js +0 -1666
  962. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/resize.js +0 -595
  963. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/sharp.js +0 -121
  964. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/utility.js +0 -291
  965. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/package.json +0 -202
  966. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/binding.gyp +0 -298
  967. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/common.cc +0 -1130
  968. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/common.h +0 -402
  969. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/metadata.cc +0 -346
  970. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/metadata.h +0 -90
  971. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/operations.cc +0 -499
  972. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/operations.h +0 -137
  973. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/pipeline.cc +0 -1814
  974. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/pipeline.h +0 -408
  975. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/sharp.cc +0 -43
  976. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/stats.cc +0 -186
  977. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/stats.h +0 -62
  978. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/utilities.cc +0 -288
  979. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/utilities.h +0 -22
@@ -1,1717 +0,0 @@
1
- import * as checks from "./checks.js";
2
- import * as core from "./core.js";
3
- import { Doc } from "./doc.js";
4
- import { safeParse, safeParseAsync } from "./parse.js";
5
- import * as regexes from "./regexes.js";
6
- import * as util from "./util.js";
7
- import { version } from "./versions.js";
8
- export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def) => {
9
- var _a;
10
- inst ?? (inst = {});
11
- inst._zod.def = def; // set _def property
12
- inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
13
- inst._zod.version = version;
14
- const checks = [...(inst._zod.def.checks ?? [])];
15
- // if inst is itself a checks.$ZodCheck, run it as a check
16
- if (inst._zod.traits.has("$ZodCheck")) {
17
- checks.unshift(inst);
18
- }
19
- //
20
- for (const ch of checks) {
21
- for (const fn of ch._zod.onattach) {
22
- fn(inst);
23
- }
24
- }
25
- if (checks.length === 0) {
26
- // deferred initializer
27
- // inst._zod.parse is not yet defined
28
- (_a = inst._zod).deferred ?? (_a.deferred = []);
29
- inst._zod.deferred?.push(() => {
30
- inst._zod.run = inst._zod.parse;
31
- });
32
- }
33
- else {
34
- const runChecks = (payload, checks, ctx) => {
35
- let isAborted = util.aborted(payload);
36
- let asyncResult;
37
- for (const ch of checks) {
38
- if (ch._zod.def.when) {
39
- const shouldRun = ch._zod.def.when(payload);
40
- if (!shouldRun)
41
- continue;
42
- }
43
- else if (isAborted) {
44
- continue;
45
- }
46
- const currLen = payload.issues.length;
47
- const _ = ch._zod.check(payload);
48
- if (_ instanceof Promise && ctx?.async === false) {
49
- throw new core.$ZodAsyncError();
50
- }
51
- if (asyncResult || _ instanceof Promise) {
52
- asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
53
- await _;
54
- const nextLen = payload.issues.length;
55
- if (nextLen === currLen)
56
- return;
57
- if (!isAborted)
58
- isAborted = util.aborted(payload, currLen);
59
- });
60
- }
61
- else {
62
- const nextLen = payload.issues.length;
63
- if (nextLen === currLen)
64
- continue;
65
- if (!isAborted)
66
- isAborted = util.aborted(payload, currLen);
67
- }
68
- }
69
- if (asyncResult) {
70
- return asyncResult.then(() => {
71
- return payload;
72
- });
73
- }
74
- return payload;
75
- };
76
- inst._zod.run = (payload, ctx) => {
77
- const result = inst._zod.parse(payload, ctx);
78
- if (result instanceof Promise) {
79
- if (ctx.async === false)
80
- throw new core.$ZodAsyncError();
81
- return result.then((result) => runChecks(result, checks, ctx));
82
- }
83
- return runChecks(result, checks, ctx);
84
- };
85
- }
86
- inst["~standard"] = {
87
- validate: (value) => {
88
- try {
89
- const r = safeParse(inst, value);
90
- return r.success ? { value: r.data } : { issues: r.error?.issues };
91
- }
92
- catch (_) {
93
- return safeParseAsync(inst, value).then((r) => (r.success ? { value: r.data } : { issues: r.error?.issues }));
94
- }
95
- },
96
- vendor: "zod",
97
- version: 1,
98
- };
99
- });
100
- export { clone } from "./util.js";
101
- export const $ZodString = /*@__PURE__*/ core.$constructor("$ZodString", (inst, def) => {
102
- $ZodType.init(inst, def);
103
- inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ?? regexes.string(inst._zod.bag);
104
- inst._zod.parse = (payload, _) => {
105
- if (def.coerce)
106
- try {
107
- payload.value = String(payload.value);
108
- }
109
- catch (_) { }
110
- if (typeof payload.value === "string")
111
- return payload;
112
- payload.issues.push({
113
- expected: "string",
114
- code: "invalid_type",
115
- input: payload.value,
116
- inst,
117
- });
118
- return payload;
119
- };
120
- });
121
- export const $ZodStringFormat = /*@__PURE__*/ core.$constructor("$ZodStringFormat", (inst, def) => {
122
- // check initialization must come first
123
- checks.$ZodCheckStringFormat.init(inst, def);
124
- $ZodString.init(inst, def);
125
- });
126
- export const $ZodGUID = /*@__PURE__*/ core.$constructor("$ZodGUID", (inst, def) => {
127
- def.pattern ?? (def.pattern = regexes.guid);
128
- $ZodStringFormat.init(inst, def);
129
- });
130
- export const $ZodUUID = /*@__PURE__*/ core.$constructor("$ZodUUID", (inst, def) => {
131
- if (def.version) {
132
- const versionMap = {
133
- v1: 1,
134
- v2: 2,
135
- v3: 3,
136
- v4: 4,
137
- v5: 5,
138
- v6: 6,
139
- v7: 7,
140
- v8: 8,
141
- };
142
- const v = versionMap[def.version];
143
- if (v === undefined)
144
- throw new Error(`Invalid UUID version: "${def.version}"`);
145
- def.pattern ?? (def.pattern = regexes.uuid(v));
146
- }
147
- else
148
- def.pattern ?? (def.pattern = regexes.uuid());
149
- $ZodStringFormat.init(inst, def);
150
- });
151
- export const $ZodEmail = /*@__PURE__*/ core.$constructor("$ZodEmail", (inst, def) => {
152
- def.pattern ?? (def.pattern = regexes.email);
153
- $ZodStringFormat.init(inst, def);
154
- });
155
- export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) => {
156
- $ZodStringFormat.init(inst, def);
157
- inst._zod.check = (payload) => {
158
- try {
159
- const orig = payload.value;
160
- const url = new URL(orig);
161
- const href = url.href;
162
- if (def.hostname) {
163
- def.hostname.lastIndex = 0;
164
- if (!def.hostname.test(url.hostname)) {
165
- payload.issues.push({
166
- code: "invalid_format",
167
- format: "url",
168
- note: "Invalid hostname",
169
- pattern: regexes.hostname.source,
170
- input: payload.value,
171
- inst,
172
- continue: !def.abort,
173
- });
174
- }
175
- }
176
- if (def.protocol) {
177
- def.protocol.lastIndex = 0;
178
- if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {
179
- payload.issues.push({
180
- code: "invalid_format",
181
- format: "url",
182
- note: "Invalid protocol",
183
- pattern: def.protocol.source,
184
- input: payload.value,
185
- inst,
186
- continue: !def.abort,
187
- });
188
- }
189
- }
190
- // payload.value = url.href;
191
- if (!orig.endsWith("/") && href.endsWith("/")) {
192
- payload.value = href.slice(0, -1);
193
- }
194
- else {
195
- payload.value = href;
196
- }
197
- return;
198
- }
199
- catch (_) {
200
- payload.issues.push({
201
- code: "invalid_format",
202
- format: "url",
203
- input: payload.value,
204
- inst,
205
- continue: !def.abort,
206
- });
207
- }
208
- };
209
- });
210
- export const $ZodEmoji = /*@__PURE__*/ core.$constructor("$ZodEmoji", (inst, def) => {
211
- def.pattern ?? (def.pattern = regexes.emoji());
212
- $ZodStringFormat.init(inst, def);
213
- });
214
- export const $ZodNanoID = /*@__PURE__*/ core.$constructor("$ZodNanoID", (inst, def) => {
215
- def.pattern ?? (def.pattern = regexes.nanoid);
216
- $ZodStringFormat.init(inst, def);
217
- });
218
- export const $ZodCUID = /*@__PURE__*/ core.$constructor("$ZodCUID", (inst, def) => {
219
- def.pattern ?? (def.pattern = regexes.cuid);
220
- $ZodStringFormat.init(inst, def);
221
- });
222
- export const $ZodCUID2 = /*@__PURE__*/ core.$constructor("$ZodCUID2", (inst, def) => {
223
- def.pattern ?? (def.pattern = regexes.cuid2);
224
- $ZodStringFormat.init(inst, def);
225
- });
226
- export const $ZodULID = /*@__PURE__*/ core.$constructor("$ZodULID", (inst, def) => {
227
- def.pattern ?? (def.pattern = regexes.ulid);
228
- $ZodStringFormat.init(inst, def);
229
- });
230
- export const $ZodXID = /*@__PURE__*/ core.$constructor("$ZodXID", (inst, def) => {
231
- def.pattern ?? (def.pattern = regexes.xid);
232
- $ZodStringFormat.init(inst, def);
233
- });
234
- export const $ZodKSUID = /*@__PURE__*/ core.$constructor("$ZodKSUID", (inst, def) => {
235
- def.pattern ?? (def.pattern = regexes.ksuid);
236
- $ZodStringFormat.init(inst, def);
237
- });
238
- export const $ZodISODateTime = /*@__PURE__*/ core.$constructor("$ZodISODateTime", (inst, def) => {
239
- def.pattern ?? (def.pattern = regexes.datetime(def));
240
- $ZodStringFormat.init(inst, def);
241
- });
242
- export const $ZodISODate = /*@__PURE__*/ core.$constructor("$ZodISODate", (inst, def) => {
243
- def.pattern ?? (def.pattern = regexes.date);
244
- $ZodStringFormat.init(inst, def);
245
- });
246
- export const $ZodISOTime = /*@__PURE__*/ core.$constructor("$ZodISOTime", (inst, def) => {
247
- def.pattern ?? (def.pattern = regexes.time(def));
248
- $ZodStringFormat.init(inst, def);
249
- });
250
- export const $ZodISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration", (inst, def) => {
251
- def.pattern ?? (def.pattern = regexes.duration);
252
- $ZodStringFormat.init(inst, def);
253
- });
254
- export const $ZodIPv4 = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def) => {
255
- def.pattern ?? (def.pattern = regexes.ipv4);
256
- $ZodStringFormat.init(inst, def);
257
- inst._zod.onattach.push((inst) => {
258
- const bag = inst._zod.bag;
259
- bag.format = `ipv4`;
260
- });
261
- });
262
- export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def) => {
263
- def.pattern ?? (def.pattern = regexes.ipv6);
264
- $ZodStringFormat.init(inst, def);
265
- inst._zod.onattach.push((inst) => {
266
- const bag = inst._zod.bag;
267
- bag.format = `ipv6`;
268
- });
269
- inst._zod.check = (payload) => {
270
- try {
271
- new URL(`http://[${payload.value}]`);
272
- // return;
273
- }
274
- catch {
275
- payload.issues.push({
276
- code: "invalid_format",
277
- format: "ipv6",
278
- input: payload.value,
279
- inst,
280
- continue: !def.abort,
281
- });
282
- }
283
- };
284
- });
285
- export const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor("$ZodCIDRv4", (inst, def) => {
286
- def.pattern ?? (def.pattern = regexes.cidrv4);
287
- $ZodStringFormat.init(inst, def);
288
- });
289
- export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, def) => {
290
- def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
291
- $ZodStringFormat.init(inst, def);
292
- inst._zod.check = (payload) => {
293
- const [address, prefix] = payload.value.split("/");
294
- try {
295
- if (!prefix)
296
- throw new Error();
297
- const prefixNum = Number(prefix);
298
- if (`${prefixNum}` !== prefix)
299
- throw new Error();
300
- if (prefixNum < 0 || prefixNum > 128)
301
- throw new Error();
302
- new URL(`http://[${address}]`);
303
- }
304
- catch {
305
- payload.issues.push({
306
- code: "invalid_format",
307
- format: "cidrv6",
308
- input: payload.value,
309
- inst,
310
- continue: !def.abort,
311
- });
312
- }
313
- };
314
- });
315
- ////////////////////////////// ZodBase64 //////////////////////////////
316
- export function isValidBase64(data) {
317
- if (data === "")
318
- return true;
319
- if (data.length % 4 !== 0)
320
- return false;
321
- try {
322
- atob(data);
323
- return true;
324
- }
325
- catch {
326
- return false;
327
- }
328
- }
329
- export const $ZodBase64 = /*@__PURE__*/ core.$constructor("$ZodBase64", (inst, def) => {
330
- def.pattern ?? (def.pattern = regexes.base64);
331
- $ZodStringFormat.init(inst, def);
332
- inst._zod.onattach.push((inst) => {
333
- inst._zod.bag.contentEncoding = "base64";
334
- });
335
- inst._zod.check = (payload) => {
336
- if (isValidBase64(payload.value))
337
- return;
338
- payload.issues.push({
339
- code: "invalid_format",
340
- format: "base64",
341
- input: payload.value,
342
- inst,
343
- continue: !def.abort,
344
- });
345
- };
346
- });
347
- ////////////////////////////// ZodBase64 //////////////////////////////
348
- export function isValidBase64URL(data) {
349
- if (!regexes.base64url.test(data))
350
- return false;
351
- const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
352
- const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
353
- return isValidBase64(padded);
354
- }
355
- export const $ZodBase64URL = /*@__PURE__*/ core.$constructor("$ZodBase64URL", (inst, def) => {
356
- def.pattern ?? (def.pattern = regexes.base64url);
357
- $ZodStringFormat.init(inst, def);
358
- inst._zod.onattach.push((inst) => {
359
- inst._zod.bag.contentEncoding = "base64url";
360
- });
361
- inst._zod.check = (payload) => {
362
- if (isValidBase64URL(payload.value))
363
- return;
364
- payload.issues.push({
365
- code: "invalid_format",
366
- format: "base64url",
367
- input: payload.value,
368
- inst,
369
- continue: !def.abort,
370
- });
371
- };
372
- });
373
- export const $ZodE164 = /*@__PURE__*/ core.$constructor("$ZodE164", (inst, def) => {
374
- def.pattern ?? (def.pattern = regexes.e164);
375
- $ZodStringFormat.init(inst, def);
376
- });
377
- ////////////////////////////// ZodJWT //////////////////////////////
378
- export function isValidJWT(token, algorithm = null) {
379
- try {
380
- const tokensParts = token.split(".");
381
- if (tokensParts.length !== 3)
382
- return false;
383
- const [header] = tokensParts;
384
- if (!header)
385
- return false;
386
- const parsedHeader = JSON.parse(atob(header));
387
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
388
- return false;
389
- if (!parsedHeader.alg)
390
- return false;
391
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
392
- return false;
393
- return true;
394
- }
395
- catch {
396
- return false;
397
- }
398
- }
399
- export const $ZodJWT = /*@__PURE__*/ core.$constructor("$ZodJWT", (inst, def) => {
400
- $ZodStringFormat.init(inst, def);
401
- inst._zod.check = (payload) => {
402
- if (isValidJWT(payload.value, def.alg))
403
- return;
404
- payload.issues.push({
405
- code: "invalid_format",
406
- format: "jwt",
407
- input: payload.value,
408
- inst,
409
- continue: !def.abort,
410
- });
411
- };
412
- });
413
- export const $ZodCustomStringFormat = /*@__PURE__*/ core.$constructor("$ZodCustomStringFormat", (inst, def) => {
414
- $ZodStringFormat.init(inst, def);
415
- inst._zod.check = (payload) => {
416
- if (def.fn(payload.value))
417
- return;
418
- payload.issues.push({
419
- code: "invalid_format",
420
- format: def.format,
421
- input: payload.value,
422
- inst,
423
- continue: !def.abort,
424
- });
425
- };
426
- });
427
- export const $ZodNumber = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
428
- $ZodType.init(inst, def);
429
- inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;
430
- inst._zod.parse = (payload, _ctx) => {
431
- if (def.coerce)
432
- try {
433
- payload.value = Number(payload.value);
434
- }
435
- catch (_) { }
436
- const input = payload.value;
437
- if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
438
- return payload;
439
- }
440
- const received = typeof input === "number"
441
- ? Number.isNaN(input)
442
- ? "NaN"
443
- : !Number.isFinite(input)
444
- ? "Infinity"
445
- : undefined
446
- : undefined;
447
- payload.issues.push({
448
- expected: "number",
449
- code: "invalid_type",
450
- input,
451
- inst,
452
- ...(received ? { received } : {}),
453
- });
454
- return payload;
455
- };
456
- });
457
- export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
458
- checks.$ZodCheckNumberFormat.init(inst, def);
459
- $ZodNumber.init(inst, def); // no format checksp
460
- });
461
- export const $ZodBoolean = /*@__PURE__*/ core.$constructor("$ZodBoolean", (inst, def) => {
462
- $ZodType.init(inst, def);
463
- inst._zod.pattern = regexes.boolean;
464
- inst._zod.parse = (payload, _ctx) => {
465
- if (def.coerce)
466
- try {
467
- payload.value = Boolean(payload.value);
468
- }
469
- catch (_) { }
470
- const input = payload.value;
471
- if (typeof input === "boolean")
472
- return payload;
473
- payload.issues.push({
474
- expected: "boolean",
475
- code: "invalid_type",
476
- input,
477
- inst,
478
- });
479
- return payload;
480
- };
481
- });
482
- export const $ZodBigInt = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, def) => {
483
- $ZodType.init(inst, def);
484
- inst._zod.pattern = regexes.bigint;
485
- inst._zod.parse = (payload, _ctx) => {
486
- if (def.coerce)
487
- try {
488
- payload.value = BigInt(payload.value);
489
- }
490
- catch (_) { }
491
- if (typeof payload.value === "bigint")
492
- return payload;
493
- payload.issues.push({
494
- expected: "bigint",
495
- code: "invalid_type",
496
- input: payload.value,
497
- inst,
498
- });
499
- return payload;
500
- };
501
- });
502
- export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, def) => {
503
- checks.$ZodCheckBigIntFormat.init(inst, def);
504
- $ZodBigInt.init(inst, def); // no format checks
505
- });
506
- export const $ZodSymbol = /*@__PURE__*/ core.$constructor("$ZodSymbol", (inst, def) => {
507
- $ZodType.init(inst, def);
508
- inst._zod.parse = (payload, _ctx) => {
509
- const input = payload.value;
510
- if (typeof input === "symbol")
511
- return payload;
512
- payload.issues.push({
513
- expected: "symbol",
514
- code: "invalid_type",
515
- input,
516
- inst,
517
- });
518
- return payload;
519
- };
520
- });
521
- export const $ZodUndefined = /*@__PURE__*/ core.$constructor("$ZodUndefined", (inst, def) => {
522
- $ZodType.init(inst, def);
523
- inst._zod.pattern = regexes.undefined;
524
- inst._zod.values = new Set([undefined]);
525
- inst._zod.optin = "optional";
526
- inst._zod.optout = "optional";
527
- inst._zod.parse = (payload, _ctx) => {
528
- const input = payload.value;
529
- if (typeof input === "undefined")
530
- return payload;
531
- payload.issues.push({
532
- expected: "undefined",
533
- code: "invalid_type",
534
- input,
535
- inst,
536
- });
537
- return payload;
538
- };
539
- });
540
- export const $ZodNull = /*@__PURE__*/ core.$constructor("$ZodNull", (inst, def) => {
541
- $ZodType.init(inst, def);
542
- inst._zod.pattern = regexes.null;
543
- inst._zod.values = new Set([null]);
544
- inst._zod.parse = (payload, _ctx) => {
545
- const input = payload.value;
546
- if (input === null)
547
- return payload;
548
- payload.issues.push({
549
- expected: "null",
550
- code: "invalid_type",
551
- input,
552
- inst,
553
- });
554
- return payload;
555
- };
556
- });
557
- export const $ZodAny = /*@__PURE__*/ core.$constructor("$ZodAny", (inst, def) => {
558
- $ZodType.init(inst, def);
559
- inst._zod.parse = (payload) => payload;
560
- });
561
- export const $ZodUnknown = /*@__PURE__*/ core.$constructor("$ZodUnknown", (inst, def) => {
562
- $ZodType.init(inst, def);
563
- inst._zod.parse = (payload) => payload;
564
- });
565
- export const $ZodNever = /*@__PURE__*/ core.$constructor("$ZodNever", (inst, def) => {
566
- $ZodType.init(inst, def);
567
- inst._zod.parse = (payload, _ctx) => {
568
- payload.issues.push({
569
- expected: "never",
570
- code: "invalid_type",
571
- input: payload.value,
572
- inst,
573
- });
574
- return payload;
575
- };
576
- });
577
- export const $ZodVoid = /*@__PURE__*/ core.$constructor("$ZodVoid", (inst, def) => {
578
- $ZodType.init(inst, def);
579
- inst._zod.parse = (payload, _ctx) => {
580
- const input = payload.value;
581
- if (typeof input === "undefined")
582
- return payload;
583
- payload.issues.push({
584
- expected: "void",
585
- code: "invalid_type",
586
- input,
587
- inst,
588
- });
589
- return payload;
590
- };
591
- });
592
- export const $ZodDate = /*@__PURE__*/ core.$constructor("$ZodDate", (inst, def) => {
593
- $ZodType.init(inst, def);
594
- inst._zod.parse = (payload, _ctx) => {
595
- if (def.coerce) {
596
- try {
597
- payload.value = new Date(payload.value);
598
- }
599
- catch (_err) { }
600
- }
601
- const input = payload.value;
602
- const isDate = input instanceof Date;
603
- const isValidDate = isDate && !Number.isNaN(input.getTime());
604
- if (isValidDate)
605
- return payload;
606
- payload.issues.push({
607
- expected: "date",
608
- code: "invalid_type",
609
- input,
610
- ...(isDate ? { received: "Invalid Date" } : {}),
611
- inst,
612
- });
613
- return payload;
614
- };
615
- });
616
- function handleArrayResult(result, final, index) {
617
- if (result.issues.length) {
618
- final.issues.push(...util.prefixIssues(index, result.issues));
619
- }
620
- final.value[index] = result.value;
621
- }
622
- export const $ZodArray = /*@__PURE__*/ core.$constructor("$ZodArray", (inst, def) => {
623
- $ZodType.init(inst, def);
624
- inst._zod.parse = (payload, ctx) => {
625
- const input = payload.value;
626
- if (!Array.isArray(input)) {
627
- payload.issues.push({
628
- expected: "array",
629
- code: "invalid_type",
630
- input,
631
- inst,
632
- });
633
- return payload;
634
- }
635
- payload.value = Array(input.length);
636
- const proms = [];
637
- for (let i = 0; i < input.length; i++) {
638
- const item = input[i];
639
- const result = def.element._zod.run({
640
- value: item,
641
- issues: [],
642
- }, ctx);
643
- if (result instanceof Promise) {
644
- proms.push(result.then((result) => handleArrayResult(result, payload, i)));
645
- }
646
- else {
647
- handleArrayResult(result, payload, i);
648
- }
649
- }
650
- if (proms.length) {
651
- return Promise.all(proms).then(() => payload);
652
- }
653
- return payload; //handleArrayResultsAsync(parseResults, final);
654
- };
655
- });
656
- function handleObjectResult(result, final, key) {
657
- // if(isOptional)
658
- if (result.issues.length) {
659
- final.issues.push(...util.prefixIssues(key, result.issues));
660
- }
661
- final.value[key] = result.value;
662
- }
663
- function handleOptionalObjectResult(result, final, key, input) {
664
- if (result.issues.length) {
665
- // validation failed against value schema
666
- if (input[key] === undefined) {
667
- // if input was undefined, ignore the error
668
- if (key in input) {
669
- final.value[key] = undefined;
670
- }
671
- else {
672
- final.value[key] = result.value;
673
- }
674
- }
675
- else {
676
- final.issues.push(...util.prefixIssues(key, result.issues));
677
- }
678
- }
679
- else if (result.value === undefined) {
680
- // validation returned `undefined`
681
- if (key in input)
682
- final.value[key] = undefined;
683
- }
684
- else {
685
- // non-undefined value
686
- final.value[key] = result.value;
687
- }
688
- }
689
- export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, def) => {
690
- // requires cast because technically $ZodObject doesn't extend
691
- $ZodType.init(inst, def);
692
- const _normalized = util.cached(() => {
693
- const keys = Object.keys(def.shape);
694
- for (const k of keys) {
695
- if (!(def.shape[k] instanceof $ZodType)) {
696
- throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
697
- }
698
- }
699
- const okeys = util.optionalKeys(def.shape);
700
- return {
701
- shape: def.shape,
702
- keys,
703
- keySet: new Set(keys),
704
- numKeys: keys.length,
705
- optionalKeys: new Set(okeys),
706
- };
707
- });
708
- util.defineLazy(inst._zod, "propValues", () => {
709
- const shape = def.shape;
710
- const propValues = {};
711
- for (const key in shape) {
712
- const field = shape[key]._zod;
713
- if (field.values) {
714
- propValues[key] ?? (propValues[key] = new Set());
715
- for (const v of field.values)
716
- propValues[key].add(v);
717
- }
718
- }
719
- return propValues;
720
- });
721
- const generateFastpass = (shape) => {
722
- const doc = new Doc(["shape", "payload", "ctx"]);
723
- const normalized = _normalized.value;
724
- const parseStr = (key) => {
725
- const k = util.esc(key);
726
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
727
- };
728
- doc.write(`const input = payload.value;`);
729
- const ids = Object.create(null);
730
- let counter = 0;
731
- for (const key of normalized.keys) {
732
- ids[key] = `key_${counter++}`;
733
- }
734
- // A: preserve key order {
735
- doc.write(`const newResult = {}`);
736
- for (const key of normalized.keys) {
737
- if (normalized.optionalKeys.has(key)) {
738
- const id = ids[key];
739
- doc.write(`const ${id} = ${parseStr(key)};`);
740
- const k = util.esc(key);
741
- doc.write(`
742
- if (${id}.issues.length) {
743
- if (input[${k}] === undefined) {
744
- if (${k} in input) {
745
- newResult[${k}] = undefined;
746
- }
747
- } else {
748
- payload.issues = payload.issues.concat(
749
- ${id}.issues.map((iss) => ({
750
- ...iss,
751
- path: iss.path ? [${k}, ...iss.path] : [${k}],
752
- }))
753
- );
754
- }
755
- } else if (${id}.value === undefined) {
756
- if (${k} in input) newResult[${k}] = undefined;
757
- } else {
758
- newResult[${k}] = ${id}.value;
759
- }
760
- `);
761
- }
762
- else {
763
- const id = ids[key];
764
- // const id = ids[key];
765
- doc.write(`const ${id} = ${parseStr(key)};`);
766
- doc.write(`
767
- if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
768
- ...iss,
769
- path: iss.path ? [${util.esc(key)}, ...iss.path] : [${util.esc(key)}]
770
- })));`);
771
- doc.write(`newResult[${util.esc(key)}] = ${id}.value`);
772
- }
773
- }
774
- doc.write(`payload.value = newResult;`);
775
- doc.write(`return payload;`);
776
- const fn = doc.compile();
777
- return (payload, ctx) => fn(shape, payload, ctx);
778
- };
779
- let fastpass;
780
- const isObject = util.isObject;
781
- const jit = !core.globalConfig.jitless;
782
- const allowsEval = util.allowsEval;
783
- const fastEnabled = jit && allowsEval.value; // && !def.catchall;
784
- const catchall = def.catchall;
785
- let value;
786
- inst._zod.parse = (payload, ctx) => {
787
- value ?? (value = _normalized.value);
788
- const input = payload.value;
789
- if (!isObject(input)) {
790
- payload.issues.push({
791
- expected: "object",
792
- code: "invalid_type",
793
- input,
794
- inst,
795
- });
796
- return payload;
797
- }
798
- const proms = [];
799
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
800
- // always synchronous
801
- if (!fastpass)
802
- fastpass = generateFastpass(def.shape);
803
- payload = fastpass(payload, ctx);
804
- }
805
- else {
806
- payload.value = {};
807
- const shape = value.shape;
808
- for (const key of value.keys) {
809
- const el = shape[key];
810
- // do not add omitted optional keys
811
- // if (!(key in input)) {
812
- // if (optionalKeys.has(key)) continue;
813
- // payload.issues.push({
814
- // code: "invalid_type",
815
- // path: [key],
816
- // expected: "nonoptional",
817
- // note: `Missing required key: "${key}"`,
818
- // input,
819
- // inst,
820
- // });
821
- // }
822
- const r = el._zod.run({ value: input[key], issues: [] }, ctx);
823
- const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
824
- if (r instanceof Promise) {
825
- proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
826
- }
827
- else if (isOptional) {
828
- handleOptionalObjectResult(r, payload, key, input);
829
- }
830
- else {
831
- handleObjectResult(r, payload, key);
832
- }
833
- }
834
- }
835
- if (!catchall) {
836
- // return payload;
837
- return proms.length ? Promise.all(proms).then(() => payload) : payload;
838
- }
839
- const unrecognized = [];
840
- // iterate over input keys
841
- const keySet = value.keySet;
842
- const _catchall = catchall._zod;
843
- const t = _catchall.def.type;
844
- for (const key of Object.keys(input)) {
845
- if (keySet.has(key))
846
- continue;
847
- if (t === "never") {
848
- unrecognized.push(key);
849
- continue;
850
- }
851
- const r = _catchall.run({ value: input[key], issues: [] }, ctx);
852
- if (r instanceof Promise) {
853
- proms.push(r.then((r) => handleObjectResult(r, payload, key)));
854
- }
855
- else {
856
- handleObjectResult(r, payload, key);
857
- }
858
- }
859
- if (unrecognized.length) {
860
- payload.issues.push({
861
- code: "unrecognized_keys",
862
- keys: unrecognized,
863
- input,
864
- inst,
865
- });
866
- }
867
- if (!proms.length)
868
- return payload;
869
- return Promise.all(proms).then(() => {
870
- return payload;
871
- });
872
- };
873
- });
874
- function handleUnionResults(results, final, inst, ctx) {
875
- for (const result of results) {
876
- if (result.issues.length === 0) {
877
- final.value = result.value;
878
- return final;
879
- }
880
- }
881
- final.issues.push({
882
- code: "invalid_union",
883
- input: final.value,
884
- inst,
885
- errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
886
- });
887
- return final;
888
- }
889
- export const $ZodUnion = /*@__PURE__*/ core.$constructor("$ZodUnion", (inst, def) => {
890
- $ZodType.init(inst, def);
891
- util.defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
892
- util.defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
893
- util.defineLazy(inst._zod, "values", () => {
894
- if (def.options.every((o) => o._zod.values)) {
895
- return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
896
- }
897
- return undefined;
898
- });
899
- util.defineLazy(inst._zod, "pattern", () => {
900
- if (def.options.every((o) => o._zod.pattern)) {
901
- const patterns = def.options.map((o) => o._zod.pattern);
902
- return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join("|")})$`);
903
- }
904
- return undefined;
905
- });
906
- inst._zod.parse = (payload, ctx) => {
907
- let async = false;
908
- const results = [];
909
- for (const option of def.options) {
910
- const result = option._zod.run({
911
- value: payload.value,
912
- issues: [],
913
- }, ctx);
914
- if (result instanceof Promise) {
915
- results.push(result);
916
- async = true;
917
- }
918
- else {
919
- if (result.issues.length === 0)
920
- return result;
921
- results.push(result);
922
- }
923
- }
924
- if (!async)
925
- return handleUnionResults(results, payload, inst, ctx);
926
- return Promise.all(results).then((results) => {
927
- return handleUnionResults(results, payload, inst, ctx);
928
- });
929
- };
930
- });
931
- export const $ZodDiscriminatedUnion =
932
- /*@__PURE__*/
933
- core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
934
- $ZodUnion.init(inst, def);
935
- const _super = inst._zod.parse;
936
- util.defineLazy(inst._zod, "propValues", () => {
937
- const propValues = {};
938
- for (const option of def.options) {
939
- const pv = option._zod.propValues;
940
- if (!pv || Object.keys(pv).length === 0)
941
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
942
- for (const [k, v] of Object.entries(pv)) {
943
- if (!propValues[k])
944
- propValues[k] = new Set();
945
- for (const val of v) {
946
- propValues[k].add(val);
947
- }
948
- }
949
- }
950
- return propValues;
951
- });
952
- const disc = util.cached(() => {
953
- const opts = def.options;
954
- const map = new Map();
955
- for (const o of opts) {
956
- const values = o._zod.propValues[def.discriminator];
957
- if (!values || values.size === 0)
958
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
959
- for (const v of values) {
960
- if (map.has(v)) {
961
- throw new Error(`Duplicate discriminator value "${String(v)}"`);
962
- }
963
- map.set(v, o);
964
- }
965
- }
966
- return map;
967
- });
968
- inst._zod.parse = (payload, ctx) => {
969
- const input = payload.value;
970
- if (!util.isObject(input)) {
971
- payload.issues.push({
972
- code: "invalid_type",
973
- expected: "object",
974
- input,
975
- inst,
976
- });
977
- return payload;
978
- }
979
- const opt = disc.value.get(input?.[def.discriminator]);
980
- if (opt) {
981
- return opt._zod.run(payload, ctx);
982
- }
983
- if (def.unionFallback) {
984
- return _super(payload, ctx);
985
- }
986
- // no matching discriminator
987
- payload.issues.push({
988
- code: "invalid_union",
989
- errors: [],
990
- note: "No matching discriminator",
991
- input,
992
- path: [def.discriminator],
993
- inst,
994
- });
995
- return payload;
996
- };
997
- });
998
- export const $ZodIntersection = /*@__PURE__*/ core.$constructor("$ZodIntersection", (inst, def) => {
999
- $ZodType.init(inst, def);
1000
- inst._zod.parse = (payload, ctx) => {
1001
- const input = payload.value;
1002
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
1003
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
1004
- const async = left instanceof Promise || right instanceof Promise;
1005
- if (async) {
1006
- return Promise.all([left, right]).then(([left, right]) => {
1007
- return handleIntersectionResults(payload, left, right);
1008
- });
1009
- }
1010
- return handleIntersectionResults(payload, left, right);
1011
- };
1012
- });
1013
- function mergeValues(a, b) {
1014
- // const aType = parse.t(a);
1015
- // const bType = parse.t(b);
1016
- if (a === b) {
1017
- return { valid: true, data: a };
1018
- }
1019
- if (a instanceof Date && b instanceof Date && +a === +b) {
1020
- return { valid: true, data: a };
1021
- }
1022
- if (util.isPlainObject(a) && util.isPlainObject(b)) {
1023
- const bKeys = Object.keys(b);
1024
- const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1025
- const newObj = { ...a, ...b };
1026
- for (const key of sharedKeys) {
1027
- const sharedValue = mergeValues(a[key], b[key]);
1028
- if (!sharedValue.valid) {
1029
- return {
1030
- valid: false,
1031
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath],
1032
- };
1033
- }
1034
- newObj[key] = sharedValue.data;
1035
- }
1036
- return { valid: true, data: newObj };
1037
- }
1038
- if (Array.isArray(a) && Array.isArray(b)) {
1039
- if (a.length !== b.length) {
1040
- return { valid: false, mergeErrorPath: [] };
1041
- }
1042
- const newArray = [];
1043
- for (let index = 0; index < a.length; index++) {
1044
- const itemA = a[index];
1045
- const itemB = b[index];
1046
- const sharedValue = mergeValues(itemA, itemB);
1047
- if (!sharedValue.valid) {
1048
- return {
1049
- valid: false,
1050
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath],
1051
- };
1052
- }
1053
- newArray.push(sharedValue.data);
1054
- }
1055
- return { valid: true, data: newArray };
1056
- }
1057
- return { valid: false, mergeErrorPath: [] };
1058
- }
1059
- function handleIntersectionResults(result, left, right) {
1060
- if (left.issues.length) {
1061
- result.issues.push(...left.issues);
1062
- }
1063
- if (right.issues.length) {
1064
- result.issues.push(...right.issues);
1065
- }
1066
- if (util.aborted(result))
1067
- return result;
1068
- const merged = mergeValues(left.value, right.value);
1069
- if (!merged.valid) {
1070
- throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);
1071
- }
1072
- result.value = merged.data;
1073
- return result;
1074
- }
1075
- export const $ZodTuple = /*@__PURE__*/ core.$constructor("$ZodTuple", (inst, def) => {
1076
- $ZodType.init(inst, def);
1077
- const items = def.items;
1078
- const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
1079
- inst._zod.parse = (payload, ctx) => {
1080
- const input = payload.value;
1081
- if (!Array.isArray(input)) {
1082
- payload.issues.push({
1083
- input,
1084
- inst,
1085
- expected: "tuple",
1086
- code: "invalid_type",
1087
- });
1088
- return payload;
1089
- }
1090
- payload.value = [];
1091
- const proms = [];
1092
- if (!def.rest) {
1093
- const tooBig = input.length > items.length;
1094
- const tooSmall = input.length < optStart - 1;
1095
- if (tooBig || tooSmall) {
1096
- payload.issues.push({
1097
- input,
1098
- inst,
1099
- origin: "array",
1100
- ...(tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }),
1101
- });
1102
- return payload;
1103
- }
1104
- }
1105
- let i = -1;
1106
- for (const item of items) {
1107
- i++;
1108
- if (i >= input.length)
1109
- if (i >= optStart)
1110
- continue;
1111
- const result = item._zod.run({
1112
- value: input[i],
1113
- issues: [],
1114
- }, ctx);
1115
- if (result instanceof Promise) {
1116
- proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1117
- }
1118
- else {
1119
- handleTupleResult(result, payload, i);
1120
- }
1121
- }
1122
- if (def.rest) {
1123
- const rest = input.slice(items.length);
1124
- for (const el of rest) {
1125
- i++;
1126
- const result = def.rest._zod.run({
1127
- value: el,
1128
- issues: [],
1129
- }, ctx);
1130
- if (result instanceof Promise) {
1131
- proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1132
- }
1133
- else {
1134
- handleTupleResult(result, payload, i);
1135
- }
1136
- }
1137
- }
1138
- if (proms.length)
1139
- return Promise.all(proms).then(() => payload);
1140
- return payload;
1141
- };
1142
- });
1143
- function handleTupleResult(result, final, index) {
1144
- if (result.issues.length) {
1145
- final.issues.push(...util.prefixIssues(index, result.issues));
1146
- }
1147
- final.value[index] = result.value;
1148
- }
1149
- export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, def) => {
1150
- $ZodType.init(inst, def);
1151
- inst._zod.parse = (payload, ctx) => {
1152
- const input = payload.value;
1153
- if (!util.isPlainObject(input)) {
1154
- payload.issues.push({
1155
- expected: "record",
1156
- code: "invalid_type",
1157
- input,
1158
- inst,
1159
- });
1160
- return payload;
1161
- }
1162
- const proms = [];
1163
- if (def.keyType._zod.values) {
1164
- const values = def.keyType._zod.values;
1165
- payload.value = {};
1166
- for (const key of values) {
1167
- if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1168
- const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1169
- if (result instanceof Promise) {
1170
- proms.push(result.then((result) => {
1171
- if (result.issues.length) {
1172
- payload.issues.push(...util.prefixIssues(key, result.issues));
1173
- }
1174
- payload.value[key] = result.value;
1175
- }));
1176
- }
1177
- else {
1178
- if (result.issues.length) {
1179
- payload.issues.push(...util.prefixIssues(key, result.issues));
1180
- }
1181
- payload.value[key] = result.value;
1182
- }
1183
- }
1184
- }
1185
- let unrecognized;
1186
- for (const key in input) {
1187
- if (!values.has(key)) {
1188
- unrecognized = unrecognized ?? [];
1189
- unrecognized.push(key);
1190
- }
1191
- }
1192
- if (unrecognized && unrecognized.length > 0) {
1193
- payload.issues.push({
1194
- code: "unrecognized_keys",
1195
- input,
1196
- inst,
1197
- keys: unrecognized,
1198
- });
1199
- }
1200
- }
1201
- else {
1202
- payload.value = {};
1203
- for (const key of Reflect.ownKeys(input)) {
1204
- if (key === "__proto__")
1205
- continue;
1206
- const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1207
- if (keyResult instanceof Promise) {
1208
- throw new Error("Async schemas not supported in object keys currently");
1209
- }
1210
- if (keyResult.issues.length) {
1211
- payload.issues.push({
1212
- origin: "record",
1213
- code: "invalid_key",
1214
- issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1215
- input: key,
1216
- path: [key],
1217
- inst,
1218
- });
1219
- payload.value[keyResult.value] = keyResult.value;
1220
- continue;
1221
- }
1222
- const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1223
- if (result instanceof Promise) {
1224
- proms.push(result.then((result) => {
1225
- if (result.issues.length) {
1226
- payload.issues.push(...util.prefixIssues(key, result.issues));
1227
- }
1228
- payload.value[keyResult.value] = result.value;
1229
- }));
1230
- }
1231
- else {
1232
- if (result.issues.length) {
1233
- payload.issues.push(...util.prefixIssues(key, result.issues));
1234
- }
1235
- payload.value[keyResult.value] = result.value;
1236
- }
1237
- }
1238
- }
1239
- if (proms.length) {
1240
- return Promise.all(proms).then(() => payload);
1241
- }
1242
- return payload;
1243
- };
1244
- });
1245
- export const $ZodMap = /*@__PURE__*/ core.$constructor("$ZodMap", (inst, def) => {
1246
- $ZodType.init(inst, def);
1247
- inst._zod.parse = (payload, ctx) => {
1248
- const input = payload.value;
1249
- if (!(input instanceof Map)) {
1250
- payload.issues.push({
1251
- expected: "map",
1252
- code: "invalid_type",
1253
- input,
1254
- inst,
1255
- });
1256
- return payload;
1257
- }
1258
- const proms = [];
1259
- payload.value = new Map();
1260
- for (const [key, value] of input) {
1261
- const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1262
- const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);
1263
- if (keyResult instanceof Promise || valueResult instanceof Promise) {
1264
- proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {
1265
- handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1266
- }));
1267
- }
1268
- else {
1269
- handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1270
- }
1271
- }
1272
- if (proms.length)
1273
- return Promise.all(proms).then(() => payload);
1274
- return payload;
1275
- };
1276
- });
1277
- function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1278
- if (keyResult.issues.length) {
1279
- if (util.propertyKeyTypes.has(typeof key)) {
1280
- final.issues.push(...util.prefixIssues(key, keyResult.issues));
1281
- }
1282
- else {
1283
- final.issues.push({
1284
- origin: "map",
1285
- code: "invalid_key",
1286
- input,
1287
- inst,
1288
- issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1289
- });
1290
- }
1291
- }
1292
- if (valueResult.issues.length) {
1293
- if (util.propertyKeyTypes.has(typeof key)) {
1294
- final.issues.push(...util.prefixIssues(key, valueResult.issues));
1295
- }
1296
- else {
1297
- final.issues.push({
1298
- origin: "map",
1299
- code: "invalid_element",
1300
- input,
1301
- inst,
1302
- key: key,
1303
- issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1304
- });
1305
- }
1306
- }
1307
- final.value.set(keyResult.value, valueResult.value);
1308
- }
1309
- export const $ZodSet = /*@__PURE__*/ core.$constructor("$ZodSet", (inst, def) => {
1310
- $ZodType.init(inst, def);
1311
- inst._zod.parse = (payload, ctx) => {
1312
- const input = payload.value;
1313
- if (!(input instanceof Set)) {
1314
- payload.issues.push({
1315
- input,
1316
- inst,
1317
- expected: "set",
1318
- code: "invalid_type",
1319
- });
1320
- return payload;
1321
- }
1322
- const proms = [];
1323
- payload.value = new Set();
1324
- for (const item of input) {
1325
- const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
1326
- if (result instanceof Promise) {
1327
- proms.push(result.then((result) => handleSetResult(result, payload)));
1328
- }
1329
- else
1330
- handleSetResult(result, payload);
1331
- }
1332
- if (proms.length)
1333
- return Promise.all(proms).then(() => payload);
1334
- return payload;
1335
- };
1336
- });
1337
- function handleSetResult(result, final) {
1338
- if (result.issues.length) {
1339
- final.issues.push(...result.issues);
1340
- }
1341
- final.value.add(result.value);
1342
- }
1343
- export const $ZodEnum = /*@__PURE__*/ core.$constructor("$ZodEnum", (inst, def) => {
1344
- $ZodType.init(inst, def);
1345
- const values = util.getEnumValues(def.entries);
1346
- inst._zod.values = new Set(values);
1347
- inst._zod.pattern = new RegExp(`^(${values
1348
- .filter((k) => util.propertyKeyTypes.has(typeof k))
1349
- .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o.toString()))
1350
- .join("|")})$`);
1351
- inst._zod.parse = (payload, _ctx) => {
1352
- const input = payload.value;
1353
- if (inst._zod.values.has(input)) {
1354
- return payload;
1355
- }
1356
- payload.issues.push({
1357
- code: "invalid_value",
1358
- values,
1359
- input,
1360
- inst,
1361
- });
1362
- return payload;
1363
- };
1364
- });
1365
- export const $ZodLiteral = /*@__PURE__*/ core.$constructor("$ZodLiteral", (inst, def) => {
1366
- $ZodType.init(inst, def);
1367
- inst._zod.values = new Set(def.values);
1368
- inst._zod.pattern = new RegExp(`^(${def.values
1369
- .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? o.toString() : String(o)))
1370
- .join("|")})$`);
1371
- inst._zod.parse = (payload, _ctx) => {
1372
- const input = payload.value;
1373
- if (inst._zod.values.has(input)) {
1374
- return payload;
1375
- }
1376
- payload.issues.push({
1377
- code: "invalid_value",
1378
- values: def.values,
1379
- input,
1380
- inst,
1381
- });
1382
- return payload;
1383
- };
1384
- });
1385
- export const $ZodFile = /*@__PURE__*/ core.$constructor("$ZodFile", (inst, def) => {
1386
- $ZodType.init(inst, def);
1387
- inst._zod.parse = (payload, _ctx) => {
1388
- const input = payload.value;
1389
- if (input instanceof File)
1390
- return payload;
1391
- payload.issues.push({
1392
- expected: "file",
1393
- code: "invalid_type",
1394
- input,
1395
- inst,
1396
- });
1397
- return payload;
1398
- };
1399
- });
1400
- export const $ZodTransform = /*@__PURE__*/ core.$constructor("$ZodTransform", (inst, def) => {
1401
- $ZodType.init(inst, def);
1402
- inst._zod.parse = (payload, _ctx) => {
1403
- const _out = def.transform(payload.value, payload);
1404
- if (_ctx.async) {
1405
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
1406
- return output.then((output) => {
1407
- payload.value = output;
1408
- return payload;
1409
- });
1410
- }
1411
- if (_out instanceof Promise) {
1412
- throw new core.$ZodAsyncError();
1413
- }
1414
- payload.value = _out;
1415
- return payload;
1416
- };
1417
- });
1418
- export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (inst, def) => {
1419
- $ZodType.init(inst, def);
1420
- inst._zod.optin = "optional";
1421
- inst._zod.optout = "optional";
1422
- util.defineLazy(inst._zod, "values", () => {
1423
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined;
1424
- });
1425
- util.defineLazy(inst._zod, "pattern", () => {
1426
- const pattern = def.innerType._zod.pattern;
1427
- return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;
1428
- });
1429
- inst._zod.parse = (payload, ctx) => {
1430
- if (def.innerType._zod.optin === "optional") {
1431
- return def.innerType._zod.run(payload, ctx);
1432
- }
1433
- if (payload.value === undefined) {
1434
- return payload;
1435
- }
1436
- return def.innerType._zod.run(payload, ctx);
1437
- };
1438
- });
1439
- export const $ZodNullable = /*@__PURE__*/ core.$constructor("$ZodNullable", (inst, def) => {
1440
- $ZodType.init(inst, def);
1441
- util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1442
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1443
- util.defineLazy(inst._zod, "pattern", () => {
1444
- const pattern = def.innerType._zod.pattern;
1445
- return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;
1446
- });
1447
- util.defineLazy(inst._zod, "values", () => {
1448
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;
1449
- });
1450
- inst._zod.parse = (payload, ctx) => {
1451
- if (payload.value === null)
1452
- return payload;
1453
- return def.innerType._zod.run(payload, ctx);
1454
- };
1455
- });
1456
- export const $ZodDefault = /*@__PURE__*/ core.$constructor("$ZodDefault", (inst, def) => {
1457
- $ZodType.init(inst, def);
1458
- // inst._zod.qin = "true";
1459
- inst._zod.optin = "optional";
1460
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1461
- inst._zod.parse = (payload, ctx) => {
1462
- if (payload.value === undefined) {
1463
- payload.value = def.defaultValue;
1464
- /**
1465
- * $ZodDefault always returns the default value immediately.
1466
- * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
1467
- return payload;
1468
- }
1469
- const result = def.innerType._zod.run(payload, ctx);
1470
- if (result instanceof Promise) {
1471
- return result.then((result) => handleDefaultResult(result, def));
1472
- }
1473
- return handleDefaultResult(result, def);
1474
- };
1475
- });
1476
- function handleDefaultResult(payload, def) {
1477
- if (payload.value === undefined) {
1478
- payload.value = def.defaultValue;
1479
- }
1480
- return payload;
1481
- }
1482
- export const $ZodPrefault = /*@__PURE__*/ core.$constructor("$ZodPrefault", (inst, def) => {
1483
- $ZodType.init(inst, def);
1484
- inst._zod.optin = "optional";
1485
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1486
- inst._zod.parse = (payload, ctx) => {
1487
- if (payload.value === undefined) {
1488
- payload.value = def.defaultValue;
1489
- }
1490
- return def.innerType._zod.run(payload, ctx);
1491
- };
1492
- });
1493
- export const $ZodNonOptional = /*@__PURE__*/ core.$constructor("$ZodNonOptional", (inst, def) => {
1494
- $ZodType.init(inst, def);
1495
- util.defineLazy(inst._zod, "values", () => {
1496
- const v = def.innerType._zod.values;
1497
- return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;
1498
- });
1499
- inst._zod.parse = (payload, ctx) => {
1500
- const result = def.innerType._zod.run(payload, ctx);
1501
- if (result instanceof Promise) {
1502
- return result.then((result) => handleNonOptionalResult(result, inst));
1503
- }
1504
- return handleNonOptionalResult(result, inst);
1505
- };
1506
- });
1507
- function handleNonOptionalResult(payload, inst) {
1508
- if (!payload.issues.length && payload.value === undefined) {
1509
- payload.issues.push({
1510
- code: "invalid_type",
1511
- expected: "nonoptional",
1512
- input: payload.value,
1513
- inst,
1514
- });
1515
- }
1516
- return payload;
1517
- }
1518
- export const $ZodSuccess = /*@__PURE__*/ core.$constructor("$ZodSuccess", (inst, def) => {
1519
- $ZodType.init(inst, def);
1520
- inst._zod.parse = (payload, ctx) => {
1521
- const result = def.innerType._zod.run(payload, ctx);
1522
- if (result instanceof Promise) {
1523
- return result.then((result) => {
1524
- payload.value = result.issues.length === 0;
1525
- return payload;
1526
- });
1527
- }
1528
- payload.value = result.issues.length === 0;
1529
- return payload;
1530
- };
1531
- });
1532
- export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def) => {
1533
- $ZodType.init(inst, def);
1534
- inst._zod.optin = "optional";
1535
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1536
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1537
- inst._zod.parse = (payload, ctx) => {
1538
- const result = def.innerType._zod.run(payload, ctx);
1539
- if (result instanceof Promise) {
1540
- return result.then((result) => {
1541
- payload.value = result.value;
1542
- if (result.issues.length) {
1543
- payload.value = def.catchValue({
1544
- ...payload,
1545
- error: {
1546
- issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1547
- },
1548
- input: payload.value,
1549
- });
1550
- payload.issues = [];
1551
- }
1552
- return payload;
1553
- });
1554
- }
1555
- payload.value = result.value;
1556
- if (result.issues.length) {
1557
- payload.value = def.catchValue({
1558
- ...payload,
1559
- error: {
1560
- issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1561
- },
1562
- input: payload.value,
1563
- });
1564
- payload.issues = [];
1565
- }
1566
- return payload;
1567
- };
1568
- });
1569
- export const $ZodNaN = /*@__PURE__*/ core.$constructor("$ZodNaN", (inst, def) => {
1570
- $ZodType.init(inst, def);
1571
- inst._zod.parse = (payload, _ctx) => {
1572
- if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
1573
- payload.issues.push({
1574
- input: payload.value,
1575
- inst,
1576
- expected: "nan",
1577
- code: "invalid_type",
1578
- });
1579
- return payload;
1580
- }
1581
- return payload;
1582
- };
1583
- });
1584
- export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def) => {
1585
- $ZodType.init(inst, def);
1586
- util.defineLazy(inst._zod, "values", () => def.in._zod.values);
1587
- util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
1588
- util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
1589
- inst._zod.parse = (payload, ctx) => {
1590
- const left = def.in._zod.run(payload, ctx);
1591
- if (left instanceof Promise) {
1592
- return left.then((left) => handlePipeResult(left, def, ctx));
1593
- }
1594
- return handlePipeResult(left, def, ctx);
1595
- };
1596
- });
1597
- function handlePipeResult(left, def, ctx) {
1598
- if (util.aborted(left)) {
1599
- return left;
1600
- }
1601
- return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
1602
- }
1603
- export const $ZodReadonly = /*@__PURE__*/ core.$constructor("$ZodReadonly", (inst, def) => {
1604
- $ZodType.init(inst, def);
1605
- util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
1606
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1607
- util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1608
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1609
- inst._zod.parse = (payload, ctx) => {
1610
- const result = def.innerType._zod.run(payload, ctx);
1611
- if (result instanceof Promise) {
1612
- return result.then(handleReadonlyResult);
1613
- }
1614
- return handleReadonlyResult(result);
1615
- };
1616
- });
1617
- function handleReadonlyResult(payload) {
1618
- payload.value = Object.freeze(payload.value);
1619
- return payload;
1620
- }
1621
- export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplateLiteral", (inst, def) => {
1622
- $ZodType.init(inst, def);
1623
- const regexParts = [];
1624
- for (const part of def.parts) {
1625
- if (part instanceof $ZodType) {
1626
- if (!part._zod.pattern) {
1627
- // if (!source)
1628
- throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
1629
- }
1630
- const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
1631
- if (!source)
1632
- throw new Error(`Invalid template literal part: ${part._zod.traits}`);
1633
- const start = source.startsWith("^") ? 1 : 0;
1634
- const end = source.endsWith("$") ? source.length - 1 : source.length;
1635
- regexParts.push(source.slice(start, end));
1636
- }
1637
- else if (part === null || util.primitiveTypes.has(typeof part)) {
1638
- regexParts.push(util.escapeRegex(`${part}`));
1639
- }
1640
- else {
1641
- throw new Error(`Invalid template literal part: ${part}`);
1642
- }
1643
- }
1644
- inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
1645
- inst._zod.parse = (payload, _ctx) => {
1646
- if (typeof payload.value !== "string") {
1647
- payload.issues.push({
1648
- input: payload.value,
1649
- inst,
1650
- expected: "template_literal",
1651
- code: "invalid_type",
1652
- });
1653
- return payload;
1654
- }
1655
- inst._zod.pattern.lastIndex = 0;
1656
- if (!inst._zod.pattern.test(payload.value)) {
1657
- payload.issues.push({
1658
- input: payload.value,
1659
- inst,
1660
- code: "invalid_format",
1661
- format: "template_literal",
1662
- pattern: inst._zod.pattern.source,
1663
- });
1664
- return payload;
1665
- }
1666
- return payload;
1667
- };
1668
- });
1669
- export const $ZodPromise = /*@__PURE__*/ core.$constructor("$ZodPromise", (inst, def) => {
1670
- $ZodType.init(inst, def);
1671
- inst._zod.parse = (payload, ctx) => {
1672
- return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
1673
- };
1674
- });
1675
- export const $ZodLazy = /*@__PURE__*/ core.$constructor("$ZodLazy", (inst, def) => {
1676
- $ZodType.init(inst, def);
1677
- util.defineLazy(inst._zod, "innerType", () => def.getter());
1678
- util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
1679
- util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
1680
- util.defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
1681
- util.defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
1682
- inst._zod.parse = (payload, ctx) => {
1683
- const inner = inst._zod.innerType;
1684
- return inner._zod.run(payload, ctx);
1685
- };
1686
- });
1687
- export const $ZodCustom = /*@__PURE__*/ core.$constructor("$ZodCustom", (inst, def) => {
1688
- checks.$ZodCheck.init(inst, def);
1689
- $ZodType.init(inst, def);
1690
- inst._zod.parse = (payload, _) => {
1691
- return payload;
1692
- };
1693
- inst._zod.check = (payload) => {
1694
- const input = payload.value;
1695
- const r = def.fn(input);
1696
- if (r instanceof Promise) {
1697
- return r.then((r) => handleRefineResult(r, payload, input, inst));
1698
- }
1699
- handleRefineResult(r, payload, input, inst);
1700
- return;
1701
- };
1702
- });
1703
- function handleRefineResult(result, payload, input, inst) {
1704
- if (!result) {
1705
- const _iss = {
1706
- code: "custom",
1707
- input,
1708
- inst, // incorporates params.error into issue reporting
1709
- path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting
1710
- continue: !inst._zod.def.abort,
1711
- // params: inst._zod.def.params,
1712
- };
1713
- if (inst._zod.def.params)
1714
- _iss.params = inst._zod.def.params;
1715
- payload.issues.push(util.issue(_iss));
1716
- }
1717
- }