@songtonyli/dsh-cli 0.1.12 → 0.1.13

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 (1723) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/lib/index.js +3 -2
  4. package/node_modules/@deepseek-ai/cordis/src/logger.ts +3 -2
  5. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +1 -1
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +1 -1
  7. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  8. package/node_modules/@deepseek-ai/dsh/README.md +6 -4
  9. package/node_modules/@deepseek-ai/dsh/README.zh.md +6 -4
  10. package/node_modules/@deepseek-ai/dsh/lib/bin.js +118 -54
  11. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-CpQgpJa2.js → dump-config-Bb5YvFIX.js} +1 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/plugin-DJ-rVHUS.js +31 -0
  13. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-CuwbWsnH.js → profile-boot-BNu17Y9U.js} +82 -135
  14. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/package.json +117 -102
  16. package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
  17. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +2 -2
  18. package/node_modules/@deepseek-ai/dsh-acp-app/README.md +1 -1
  19. package/node_modules/@deepseek-ai/dsh-acp-app/README.zh.md +1 -1
  20. package/node_modules/@deepseek-ai/dsh-acp-app/cordis.patch.yml +3 -0
  21. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  22. package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
  23. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  24. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +21 -21
  25. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  26. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
  27. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +2 -3
  29. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +25 -25
  30. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +27 -27
  31. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +23 -13
  32. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +73 -385
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +9 -72
  35. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +4 -0
  36. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +4 -0
  37. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  38. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  39. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +10 -10
  40. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  41. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -5
  42. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -5
  43. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +41 -51
  44. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +4 -17
  45. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +33 -38
  46. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +2 -1
  47. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +9 -9
  48. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  49. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +1 -1
  50. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +1 -1
  51. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +754 -76
  52. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  53. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -4
  54. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  55. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +37 -35
  56. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  57. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +15 -3
  58. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +15 -3
  59. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +428 -471
  60. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +16 -47
  61. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +11 -32
  62. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +0 -21
  63. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +8 -1
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/index.js +16 -5
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/scope.js +15 -22
  66. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +1 -3
  67. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +75 -174
  68. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +6 -14
  69. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +259 -244
  70. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +29 -33
  71. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +10 -4
  72. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +1 -41
  73. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +66 -66
  75. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
  77. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +14 -5
  78. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +14 -5
  79. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +249 -19
  80. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +258 -50
  81. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +67 -11
  82. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +54 -9
  83. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/bindings.js +71 -0
  84. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +83 -8
  85. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +20 -7
  86. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/retention.js +77 -0
  87. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/index.js +49 -43
  88. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/retention.js +153 -0
  89. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/terminal.js +35 -0
  90. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +16 -16
  91. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +16 -16
  92. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
  93. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +2 -0
  94. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +2 -0
  95. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +6 -11
  96. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +4 -4
  97. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +4 -4
  98. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +6 -7
  99. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +11 -10
  100. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  101. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +18 -8
  102. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +17 -7
  103. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +360 -202
  104. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -17
  105. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
  106. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +2 -0
  107. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +2 -0
  108. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +8 -3
  109. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  110. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  111. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  112. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  113. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +12 -5
  114. package/node_modules/@deepseek-ai/dsh-base/package.json +89 -88
  115. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +10 -10
  116. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  117. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  118. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
  120. package/node_modules/@deepseek-ai/dsh-client-connection/README.md +4 -0
  121. package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +4 -0
  122. package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +7 -7
  124. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  125. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  126. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +11 -11
  127. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +11 -11
  128. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +10 -59
  129. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +15 -7
  130. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -5
  131. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +8 -6
  132. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  133. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +14 -4
  134. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +14 -4
  135. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +407 -26
  136. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +62 -10
  137. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +4 -4
  138. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +4 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +140 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +15 -12
  141. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +12 -10
  142. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
  143. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +2 -0
  144. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +2 -0
  145. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +24 -12
  146. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -7
  147. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -3
  148. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
  150. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
  151. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +49 -34
  152. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +33 -29
  153. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  154. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  155. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +107 -34
  157. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -11
  158. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  159. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +13 -2
  160. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +13 -2
  161. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +520 -384
  162. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -26
  163. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
  164. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +9 -13
  165. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +9 -13
  166. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -35
  167. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
  168. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  169. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +25 -15
  170. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +25 -15
  171. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1364 -160
  172. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +164 -41
  173. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -22
  174. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -5
  175. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +2 -2
  176. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.md +8 -5
  177. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.zh.md +7 -4
  178. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/lib/client.js +3 -1
  179. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +4 -4
  180. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -12
  181. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +2 -2
  182. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +1 -1
  183. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +1 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +112 -11
  185. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -8
  186. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -6
  187. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
  188. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +2 -0
  189. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +2 -0
  190. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +27 -8
  191. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -6
  192. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -13
  193. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  194. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +5 -1
  195. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +5 -1
  196. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +152 -33
  197. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +14 -11
  198. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +10 -8
  199. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -12
  200. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  201. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +9 -1
  202. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +9 -1
  203. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +564 -4
  204. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +26 -10
  205. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +6 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +129 -0
  207. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +129 -0
  208. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +2550 -0
  209. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +6 -0
  210. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +65 -0
  211. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +21 -0
  212. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +6 -0
  213. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +172 -0
  214. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +172 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +79 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +28 -0
  217. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +123 -0
  218. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +109 -0
  219. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +84 -0
  220. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +50 -0
  221. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +54 -0
  222. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +38 -0
  223. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +345 -0
  224. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +261 -0
  225. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +103 -0
  226. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +29 -0
  227. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +27 -0
  228. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +111 -0
  229. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +73 -0
  230. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +112 -0
  231. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +73 -0
  232. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +50 -0
  233. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +57 -0
  234. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +205 -0
  235. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +72 -0
  236. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +42 -0
  237. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +141 -0
  238. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +8666 -0
  239. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +130 -0
  240. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +32 -0
  241. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +462 -0
  242. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +15 -0
  243. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +18 -0
  244. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +20 -0
  245. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +12 -0
  246. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +26 -0
  247. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +52 -0
  248. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +29 -0
  249. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +43 -0
  250. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +16 -0
  251. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +20 -0
  252. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +24 -0
  253. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +11 -0
  254. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +59 -0
  255. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +49 -0
  256. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +90 -0
  257. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +36 -0
  258. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +11 -0
  259. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +13 -0
  260. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +47 -0
  261. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +16 -0
  262. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +20 -0
  263. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +72 -0
  264. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +25 -0
  265. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +18 -0
  266. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +20 -0
  267. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +32 -0
  268. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +66 -0
  269. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +32 -0
  270. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +34 -0
  271. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +61 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +17 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +9 -0
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +54 -0
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +30 -0
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +9 -0
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +8 -0
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +23 -0
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +200 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +9 -0
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +70 -0
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +30 -0
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +8 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +36 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +49 -0
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +9 -0
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +13 -0
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +142 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +80 -0
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +27 -0
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +11 -0
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +25 -0
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +22 -0
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +138 -0
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +11 -0
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +22 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +22 -0
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +23 -0
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +14 -0
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +11 -0
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +34 -0
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +11 -0
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +37 -0
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +43 -0
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +60 -0
  306. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +1 -1
  308. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +1 -1
  309. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +19 -5
  310. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -11
  311. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +2 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +4 -3
  313. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +4 -3
  314. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +463 -57
  315. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -2
  316. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +10 -8
  317. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  318. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +1 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +1 -1
  320. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +232 -72
  321. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -4
  322. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +5 -4
  323. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  324. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +2 -0
  325. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +2 -0
  326. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +293 -27
  327. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +11 -9
  328. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  329. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
  330. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
  331. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +244 -227
  332. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -6
  333. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  334. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +6 -2
  335. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +6 -2
  336. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +52 -10
  337. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -8
  338. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
  339. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +24 -19
  340. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +23 -18
  341. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +649 -509
  342. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -7
  343. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +11 -9
  345. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  346. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +8 -0
  347. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +8 -0
  348. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +105 -25
  349. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -7
  350. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +6 -0
  351. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +117 -0
  352. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +117 -0
  353. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +821 -0
  354. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/index.js +6 -0
  355. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +60 -0
  356. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  357. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +39 -6
  358. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +39 -6
  359. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +1821 -25130
  360. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +32609 -0
  361. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +26 -4
  362. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +25 -15
  363. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -9
  364. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  365. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +9 -3
  366. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +9 -3
  367. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +4538 -13
  368. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +13 -10
  369. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +8 -5
  371. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +8 -5
  372. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +42 -13423
  373. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +13494 -0
  374. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -11
  375. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -11
  376. package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +21 -0
  377. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +6 -0
  378. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +111 -0
  379. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +111 -0
  380. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +577 -0
  381. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +951 -0
  382. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +263 -0
  383. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +3 -0
  384. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +37 -0
  385. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
  386. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  387. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  388. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +212 -16
  389. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +22 -12
  390. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  391. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +1 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +10 -8
  393. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +21 -19
  395. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  396. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +5 -1
  397. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +5 -1
  398. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +132 -66
  399. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +15 -13
  400. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  401. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +6 -4
  402. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +6 -4
  403. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +71 -74
  404. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -15
  405. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +12 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +15 -11
  407. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  408. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +10 -2
  409. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +10 -2
  410. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +403 -217
  411. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +18 -15
  412. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  413. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  414. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  415. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  416. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  417. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  418. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
  419. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  420. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
  421. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +2 -2
  422. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +7 -7
  423. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +7 -7
  424. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +736 -219
  425. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  426. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +2 -2
  427. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +7 -7
  428. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +7 -7
  429. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +5 -5
  430. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -8
  431. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/lifecycle.js +2 -2
  432. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +16 -16
  433. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  434. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  435. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  436. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  437. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +6 -0
  438. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +220 -0
  439. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +220 -0
  440. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +1894 -0
  441. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +361 -0
  442. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +879 -0
  443. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +218 -0
  444. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +85 -0
  445. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +3 -0
  446. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +23 -0
  447. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +313 -0
  448. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +26 -0
  449. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/journal.js +63 -0
  450. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +85 -0
  451. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/mailbox.js +293 -0
  452. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +20 -0
  453. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +260 -0
  454. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +448 -0
  455. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +23 -0
  456. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +275 -0
  457. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-graph.js +62 -0
  458. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/types.js +26 -0
  459. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/validation.js +33 -0
  460. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +87 -0
  461. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +6 -0
  462. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +107 -0
  463. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +107 -0
  464. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +30 -0
  465. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/lib/index.js +1 -0
  466. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +48 -0
  467. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.i18n.yaml +6 -0
  468. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +98 -0
  469. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +98 -0
  470. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +6 -0
  471. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/lib/index.js +1 -0
  472. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +47 -0
  473. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +6 -0
  474. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +98 -0
  475. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +98 -0
  476. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +4979 -0
  477. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/index.js +6 -0
  478. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +81 -0
  479. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +6 -0
  480. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +159 -0
  481. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +159 -0
  482. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +550 -0
  483. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +59 -0
  484. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  485. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
  486. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  487. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
  488. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  489. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  490. package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
  491. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  492. package/node_modules/@deepseek-ai/dsh-headless/cordis.patch.yml +3 -0
  493. package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
  494. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +6 -0
  495. package/node_modules/@deepseek-ai/dsh-hmr/README.md +95 -0
  496. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +95 -0
  497. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +672 -0
  498. package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/package.json +18 -21
  499. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  500. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  501. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
  502. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
  503. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  504. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
  505. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  506. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
  507. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  508. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  509. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +40 -24
  510. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -1
  511. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -1
  512. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +36 -24
  513. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +7 -7
  514. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  515. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
  516. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  517. package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
  518. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  519. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  520. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  521. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  522. package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
  523. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
  524. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +2 -1
  525. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +3 -2
  526. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +2 -1
  527. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +1 -0
  528. package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
  529. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  530. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -4
  531. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -4
  532. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +33 -37
  533. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  534. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  535. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -2
  536. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -2
  537. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +47 -3
  538. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
  539. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +20 -20
  540. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  541. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  542. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  543. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  544. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +6 -0
  545. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +105 -0
  546. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +105 -0
  547. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +659 -0
  548. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +193 -0
  549. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +94 -0
  550. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/errors.js +15 -0
  551. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/identity.js +23 -0
  552. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +287 -0
  553. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/output.js +47 -0
  554. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/queue.js +246 -0
  555. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/types.js +2 -0
  556. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +64 -0
  557. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  558. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  559. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +21 -21
  560. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  561. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +2 -2
  562. package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +2 -0
  563. package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +2 -0
  564. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +2 -1
  565. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
  566. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  567. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +6 -0
  568. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +133 -0
  569. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +133 -0
  570. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +1174 -0
  571. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +604 -0
  572. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +393 -0
  573. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/build-approval.js +56 -0
  574. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +8 -0
  575. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +623 -0
  576. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +33 -0
  577. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +73 -0
  578. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +177 -0
  579. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/patch.js +50 -0
  580. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +74 -0
  581. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/types.js +2 -0
  582. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +102 -0
  583. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  584. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  585. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +2 -2
  586. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +1 -1
  587. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +1 -1
  588. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +1 -1
  589. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  590. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +10 -10
  591. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  592. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +2 -1
  593. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  594. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +2 -2
  595. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +2 -2
  596. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +2 -2
  597. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +6 -9
  598. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  599. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  600. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
  601. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +8 -8
  602. package/node_modules/@deepseek-ai/dsh-schedule/package.json +20 -20
  603. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
  605. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +1 -1
  606. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +1 -1
  607. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  608. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +3 -3
  609. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
  611. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  612. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
  613. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  614. package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
  615. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  616. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  617. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +8 -8
  618. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  619. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  620. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  621. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +14 -14
  622. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +19 -17
  623. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +7 -4
  625. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
  626. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  627. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  628. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  629. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  630. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +2 -2
  631. package/node_modules/@deepseek-ai/dsh-session-reference/README.md +1 -1
  632. package/node_modules/@deepseek-ai/dsh-session-reference/README.zh.md +1 -1
  633. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +20 -16
  634. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +4 -3
  635. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +2 -1
  636. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +30 -23
  637. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -32
  638. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  639. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  640. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +19 -19
  641. package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
  642. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +12 -12
  643. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  644. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  645. package/node_modules/@deepseek-ai/dsh-settings/package.json +8 -8
  646. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +8 -8
  647. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  648. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +9 -9
  649. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  650. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  651. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  652. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  653. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  654. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +18 -18
  655. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  656. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
  657. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  658. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  659. package/node_modules/@deepseek-ai/dsh-subagent/README.md +12 -0
  660. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +12 -0
  661. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +116 -50
  662. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +11 -4
  663. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +3 -3
  664. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-activation.js +41 -4
  665. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation.js +2 -2
  666. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -0
  667. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -3
  668. package/node_modules/@deepseek-ai/dsh-subagent/package.json +54 -48
  669. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  670. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
  671. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
  672. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +16 -16
  673. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +2 -2
  674. package/node_modules/@deepseek-ai/dsh-subprocess/README.md +2 -0
  675. package/node_modules/@deepseek-ai/dsh-subprocess/README.zh.md +2 -0
  676. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  677. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +2 -2
  678. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +7 -0
  679. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +7 -0
  680. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +267 -20
  681. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +1525 -0
  682. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  683. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
  684. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
  685. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  686. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
  687. package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
  688. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  689. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +2 -1
  690. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  691. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  692. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
  693. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  694. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
  695. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
  696. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
  697. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +17 -17
  698. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  699. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  700. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +11 -131
  701. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +15 -135
  702. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +688 -743
  703. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -16
  704. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +10 -6
  705. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +27 -27
  706. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
  707. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  708. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  709. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +1 -1
  710. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +18 -18
  711. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
  712. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +18 -18
  713. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  714. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
  715. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +17 -17
  716. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
  717. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +2 -2
  718. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +2 -2
  719. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +3 -3
  720. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +28 -28
  721. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  722. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
  723. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +18 -18
  724. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +18 -18
  725. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  726. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  727. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -4
  728. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -4
  729. package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +9 -0
  730. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +298 -13
  731. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +68 -62
  732. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
  733. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  734. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +3 -1
  735. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +3 -1
  736. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +32 -1
  737. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +1 -0
  738. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/owned-value.js +32 -0
  739. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  740. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  741. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
  742. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
  743. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +2 -0
  744. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +2 -0
  745. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +2 -1
  746. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/plan-review.js +5 -1
  747. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +7 -7
  748. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  749. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  750. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  751. package/node_modules/@deepseek-ai/dsh-util-values/README.md +6 -3
  752. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +6 -3
  753. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +62 -1
  754. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  755. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  756. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  757. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  758. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  759. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  760. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +35 -12
  761. package/node_modules/@deepseek-ai/dsh-web-app/package.json +98 -86
  762. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  763. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +127 -0
  764. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +1 -0
  765. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  766. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +9 -6
  767. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
  768. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  769. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  770. package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
  771. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
  772. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +2 -2
  773. package/node_modules/@deepseek-ai/dsh-win32-process/README.md +2 -0
  774. package/node_modules/@deepseek-ai/dsh-win32-process/README.zh.md +2 -0
  775. package/node_modules/@deepseek-ai/dsh-win32-process/lib/index.js +7 -4
  776. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
  777. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  778. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +33 -33
  779. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  780. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +6 -0
  781. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +108 -0
  782. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +108 -0
  783. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +1106 -0
  784. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/capture.js +107 -0
  785. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/compare.js +56 -0
  786. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/git.js +224 -0
  787. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +139 -0
  788. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/numstat.js +45 -0
  789. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/paths.js +106 -0
  790. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/recorder.js +333 -0
  791. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/types.js +2 -0
  792. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +56 -0
  793. package/node_modules/@deepseek-ai/libreoffice-kit/LICENSE +373 -0
  794. package/node_modules/@deepseek-ai/libreoffice-kit/NOTICE +26 -0
  795. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +73 -0
  796. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +73 -0
  797. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +924 -0
  798. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +800 -0
  799. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/CHANGELOG.md +115 -0
  800. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/LICENSE +21 -0
  801. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/README.md +558 -0
  802. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/browser.js +2665 -0
  803. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/index.mjs +2679 -0
  804. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/browser.cjs +2688 -0
  805. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/index.cjs +2668 -0
  806. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node-worker.cjs +32 -0
  807. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node.cjs +2700 -0
  808. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/worker.cjs +20 -0
  809. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/package.json +127 -0
  810. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +1 -0
  811. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +39 -0
  812. package/node_modules/@sec-ant/readable-stream/LICENSE +21 -0
  813. package/node_modules/@sec-ant/readable-stream/README.md +230 -0
  814. package/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js +5 -0
  815. package/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js +5 -0
  816. package/node_modules/@sec-ant/readable-stream/dist/index/index.js +8 -0
  817. package/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js +3 -0
  818. package/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js +2 -0
  819. package/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js +4 -0
  820. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +89 -0
  821. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +34 -0
  822. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +6 -0
  823. package/node_modules/@sec-ant/readable-stream/package.json +73 -0
  824. package/node_modules/@sindresorhus/merge-streams/index.js +265 -0
  825. package/node_modules/@sindresorhus/merge-streams/license +9 -0
  826. package/node_modules/@sindresorhus/merge-streams/package.json +46 -0
  827. package/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
  828. package/node_modules/@swc/helpers/LICENSE +201 -0
  829. package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
  830. package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
  831. package/node_modules/@swc/helpers/_/_apply_decs_2311/package.json +4 -0
  832. package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
  833. package/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
  834. package/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
  835. package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
  836. package/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
  837. package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
  838. package/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
  839. package/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
  840. package/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
  841. package/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
  842. package/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
  843. package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
  844. package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
  845. package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
  846. package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
  847. package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
  848. package/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
  849. package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
  850. package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
  851. package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
  852. package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
  853. package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
  854. package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
  855. package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
  856. package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
  857. package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
  858. package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
  859. package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
  860. package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
  861. package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
  862. package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
  863. package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
  864. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
  865. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
  866. package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
  867. package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
  868. package/node_modules/@swc/helpers/_/_construct/package.json +4 -0
  869. package/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
  870. package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
  871. package/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
  872. package/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
  873. package/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
  874. package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
  875. package/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
  876. package/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
  877. package/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
  878. package/node_modules/@swc/helpers/_/_extends/package.json +4 -0
  879. package/node_modules/@swc/helpers/_/_get/package.json +4 -0
  880. package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
  881. package/node_modules/@swc/helpers/_/_identity/package.json +4 -0
  882. package/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
  883. package/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
  884. package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
  885. package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
  886. package/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
  887. package/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
  888. package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
  889. package/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
  890. package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
  891. package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
  892. package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
  893. package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
  894. package/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
  895. package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
  896. package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
  897. package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
  898. package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
  899. package/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
  900. package/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
  901. package/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
  902. package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
  903. package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
  904. package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
  905. package/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
  906. package/node_modules/@swc/helpers/_/_set/package.json +4 -0
  907. package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
  908. package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
  909. package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
  910. package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
  911. package/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
  912. package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
  913. package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
  914. package/node_modules/@swc/helpers/_/_throw/package.json +4 -0
  915. package/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
  916. package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
  917. package/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
  918. package/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
  919. package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
  920. package/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
  921. package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
  922. package/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
  923. package/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
  924. package/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
  925. package/node_modules/@swc/helpers/_/_ts_rewrite_relative_import_extension/package.json +4 -0
  926. package/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
  927. package/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
  928. package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
  929. package/node_modules/@swc/helpers/_/_update/package.json +4 -0
  930. package/node_modules/@swc/helpers/_/_using/package.json +4 -0
  931. package/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
  932. package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
  933. package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
  934. package/node_modules/@swc/helpers/_/_wrap_reg_exp/package.json +4 -0
  935. package/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
  936. package/node_modules/@swc/helpers/_/index/package.json +4 -0
  937. package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
  938. package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +574 -0
  939. package/node_modules/@swc/helpers/cjs/_apply_decs_2311.cjs +346 -0
  940. package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
  941. package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
  942. package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
  943. package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
  944. package/node_modules/@swc/helpers/cjs/_async_generator.cjs +76 -0
  945. package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +53 -0
  946. package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
  947. package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
  948. package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
  949. package/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
  950. package/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
  951. package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
  952. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
  953. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
  954. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
  955. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
  956. package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
  957. package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
  958. package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
  959. package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
  960. package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
  961. package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
  962. package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
  963. package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
  964. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
  965. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
  966. package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
  967. package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
  968. package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
  969. package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
  970. package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
  971. package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
  972. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
  973. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
  974. package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
  975. package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
  976. package/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
  977. package/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
  978. package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
  979. package/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
  980. package/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
  981. package/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
  982. package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
  983. package/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
  984. package/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
  985. package/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
  986. package/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
  987. package/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
  988. package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
  989. package/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
  990. package/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
  991. package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
  992. package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
  993. package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
  994. package/node_modules/@swc/helpers/cjs/_instanceof.cjs +10 -0
  995. package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  996. package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  997. package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
  998. package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
  999. package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
  1000. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
  1001. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
  1002. package/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
  1003. package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
  1004. package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
  1005. package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
  1006. package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
  1007. package/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
  1008. package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
  1009. package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +35 -0
  1010. package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +16 -0
  1011. package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
  1012. package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
  1013. package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
  1014. package/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
  1015. package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
  1016. package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
  1017. package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
  1018. package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
  1019. package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
  1020. package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
  1021. package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
  1022. package/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
  1023. package/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
  1024. package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
  1025. package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
  1026. package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
  1027. package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
  1028. package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
  1029. package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
  1030. package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +31 -0
  1031. package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
  1032. package/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
  1033. package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +3 -0
  1034. package/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
  1035. package/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
  1036. package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
  1037. package/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
  1038. package/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
  1039. package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
  1040. package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
  1041. package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
  1042. package/node_modules/@swc/helpers/cjs/_wrap_reg_exp.cjs +84 -0
  1043. package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
  1044. package/node_modules/@swc/helpers/cjs/index.cjs +439 -0
  1045. package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
  1046. package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +572 -0
  1047. package/node_modules/@swc/helpers/esm/_apply_decs_2311.js +344 -0
  1048. package/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
  1049. package/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
  1050. package/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
  1051. package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
  1052. package/node_modules/@swc/helpers/esm/_async_generator.js +74 -0
  1053. package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +51 -0
  1054. package/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
  1055. package/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
  1056. package/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
  1057. package/node_modules/@swc/helpers/esm/_await_value.js +4 -0
  1058. package/node_modules/@swc/helpers/esm/_call_super.js +17 -0
  1059. package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
  1060. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
  1061. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
  1062. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
  1063. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
  1064. package/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
  1065. package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
  1066. package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
  1067. package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
  1068. package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
  1069. package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
  1070. package/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
  1071. package/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  1072. package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
  1073. package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
  1074. package/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
  1075. package/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
  1076. package/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
  1077. package/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
  1078. package/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
  1079. package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
  1080. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
  1081. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
  1082. package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
  1083. package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
  1084. package/node_modules/@swc/helpers/esm/_construct.js +20 -0
  1085. package/node_modules/@swc/helpers/esm/_create_class.js +18 -0
  1086. package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
  1087. package/node_modules/@swc/helpers/esm/_create_super.js +21 -0
  1088. package/node_modules/@swc/helpers/esm/_decorate.js +268 -0
  1089. package/node_modules/@swc/helpers/esm/_defaults.js +13 -0
  1090. package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
  1091. package/node_modules/@swc/helpers/esm/_define_property.js +8 -0
  1092. package/node_modules/@swc/helpers/esm/_dispose.js +41 -0
  1093. package/node_modules/@swc/helpers/esm/_export_star.js +15 -0
  1094. package/node_modules/@swc/helpers/esm/_extends.js +13 -0
  1095. package/node_modules/@swc/helpers/esm/_get.js +21 -0
  1096. package/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
  1097. package/node_modules/@swc/helpers/esm/_identity.js +5 -0
  1098. package/node_modules/@swc/helpers/esm/_inherits.js +12 -0
  1099. package/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
  1100. package/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
  1101. package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
  1102. package/node_modules/@swc/helpers/esm/_instanceof.js +8 -0
  1103. package/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
  1104. package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
  1105. package/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
  1106. package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
  1107. package/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
  1108. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
  1109. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
  1110. package/node_modules/@swc/helpers/esm/_jsx.js +26 -0
  1111. package/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
  1112. package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
  1113. package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
  1114. package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
  1115. package/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
  1116. package/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
  1117. package/node_modules/@swc/helpers/esm/_object_without_properties.js +33 -0
  1118. package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +14 -0
  1119. package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
  1120. package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
  1121. package/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
  1122. package/node_modules/@swc/helpers/esm/_set.js +42 -0
  1123. package/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
  1124. package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
  1125. package/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
  1126. package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
  1127. package/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
  1128. package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
  1129. package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
  1130. package/node_modules/@swc/helpers/esm/_throw.js +4 -0
  1131. package/node_modules/@swc/helpers/esm/_to_array.js +9 -0
  1132. package/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
  1133. package/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
  1134. package/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
  1135. package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
  1136. package/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
  1137. package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
  1138. package/node_modules/@swc/helpers/esm/_ts_generator.js +29 -0
  1139. package/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
  1140. package/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
  1141. package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +1 -0
  1142. package/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
  1143. package/node_modules/@swc/helpers/esm/_type_of.js +6 -0
  1144. package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
  1145. package/node_modules/@swc/helpers/esm/_update.js +14 -0
  1146. package/node_modules/@swc/helpers/esm/_using.js +22 -0
  1147. package/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
  1148. package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
  1149. package/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
  1150. package/node_modules/@swc/helpers/esm/_wrap_reg_exp.js +82 -0
  1151. package/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
  1152. package/node_modules/@swc/helpers/esm/index.js +110 -0
  1153. package/node_modules/@swc/helpers/package.json +702 -0
  1154. package/node_modules/@swc/helpers/scripts/ast_grep.js +218 -0
  1155. package/node_modules/@swc/helpers/scripts/build.js +133 -0
  1156. package/node_modules/@swc/helpers/scripts/errors.js +1 -0
  1157. package/node_modules/@swc/helpers/scripts/utils.js +3 -0
  1158. package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
  1159. package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
  1160. package/node_modules/@swc/helpers/src/_apply_decs_2311.mjs +1 -0
  1161. package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
  1162. package/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
  1163. package/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
  1164. package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
  1165. package/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
  1166. package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
  1167. package/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
  1168. package/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
  1169. package/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
  1170. package/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
  1171. package/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
  1172. package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
  1173. package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
  1174. package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
  1175. package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
  1176. package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
  1177. package/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
  1178. package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
  1179. package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
  1180. package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
  1181. package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
  1182. package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
  1183. package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
  1184. package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
  1185. package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
  1186. package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
  1187. package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
  1188. package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
  1189. package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
  1190. package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
  1191. package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
  1192. package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
  1193. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
  1194. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
  1195. package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
  1196. package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
  1197. package/node_modules/@swc/helpers/src/_construct.mjs +1 -0
  1198. package/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
  1199. package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
  1200. package/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
  1201. package/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
  1202. package/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
  1203. package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
  1204. package/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
  1205. package/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
  1206. package/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
  1207. package/node_modules/@swc/helpers/src/_extends.mjs +1 -0
  1208. package/node_modules/@swc/helpers/src/_get.mjs +1 -0
  1209. package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
  1210. package/node_modules/@swc/helpers/src/_identity.mjs +1 -0
  1211. package/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
  1212. package/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
  1213. package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
  1214. package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
  1215. package/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
  1216. package/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
  1217. package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
  1218. package/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
  1219. package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
  1220. package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
  1221. package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
  1222. package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
  1223. package/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
  1224. package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
  1225. package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
  1226. package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
  1227. package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
  1228. package/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
  1229. package/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
  1230. package/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
  1231. package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
  1232. package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
  1233. package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
  1234. package/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
  1235. package/node_modules/@swc/helpers/src/_set.mjs +1 -0
  1236. package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
  1237. package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
  1238. package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
  1239. package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
  1240. package/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
  1241. package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
  1242. package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
  1243. package/node_modules/@swc/helpers/src/_throw.mjs +1 -0
  1244. package/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
  1245. package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
  1246. package/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
  1247. package/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
  1248. package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
  1249. package/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
  1250. package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
  1251. package/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
  1252. package/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
  1253. package/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
  1254. package/node_modules/@swc/helpers/src/_ts_rewrite_relative_import_extension.mjs +1 -0
  1255. package/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
  1256. package/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
  1257. package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
  1258. package/node_modules/@swc/helpers/src/_update.mjs +1 -0
  1259. package/node_modules/@swc/helpers/src/_using.mjs +1 -0
  1260. package/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
  1261. package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
  1262. package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
  1263. package/node_modules/@swc/helpers/src/_wrap_reg_exp.mjs +1 -0
  1264. package/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
  1265. package/node_modules/@swc/helpers/src/index.mjs +1 -0
  1266. package/node_modules/brotli/build/encode.js +57 -0
  1267. package/node_modules/brotli/build/mem.js +1 -0
  1268. package/node_modules/brotli/compress.js +43 -0
  1269. package/node_modules/brotli/dec/bit_reader.js +124 -0
  1270. package/node_modules/brotli/dec/context.js +250 -0
  1271. package/node_modules/brotli/dec/decode.js +938 -0
  1272. package/node_modules/brotli/dec/dictionary-browser.js +14 -0
  1273. package/node_modules/brotli/dec/dictionary-data.js +9469 -0
  1274. package/node_modules/brotli/dec/dictionary.bin.js +1 -0
  1275. package/node_modules/brotli/dec/dictionary.js +36 -0
  1276. package/node_modules/brotli/dec/huffman.js +123 -0
  1277. package/node_modules/brotli/dec/prefix.js +60 -0
  1278. package/node_modules/brotli/dec/streams.js +34 -0
  1279. package/node_modules/brotli/dec/transform.js +247 -0
  1280. package/node_modules/brotli/decompress.js +1 -0
  1281. package/node_modules/brotli/enc/pre.js +7 -0
  1282. package/node_modules/brotli/index.js +2 -0
  1283. package/node_modules/brotli/package.json +31 -0
  1284. package/node_modules/brotli/readme.md +61 -0
  1285. package/node_modules/clone/.npmignore +4 -0
  1286. package/node_modules/clone/LICENSE +18 -0
  1287. package/node_modules/clone/README.md +194 -0
  1288. package/node_modules/clone/clone.iml +10 -0
  1289. package/node_modules/clone/clone.js +257 -0
  1290. package/node_modules/clone/package.json +53 -0
  1291. package/node_modules/dfa/README.md +83 -0
  1292. package/node_modules/dfa/compile.js +1834 -0
  1293. package/node_modules/dfa/index.js +91 -0
  1294. package/node_modules/dfa/package.json +38 -0
  1295. package/node_modules/execa/index.js +25 -0
  1296. package/node_modules/execa/lib/arguments/command-file.js +201 -0
  1297. package/node_modules/execa/lib/arguments/command.js +20 -0
  1298. package/node_modules/execa/lib/arguments/cwd.js +39 -0
  1299. package/node_modules/execa/lib/arguments/encoding-option.js +50 -0
  1300. package/node_modules/execa/lib/arguments/escape.js +88 -0
  1301. package/node_modules/execa/lib/arguments/fd-options.js +109 -0
  1302. package/node_modules/execa/lib/arguments/file-url.js +25 -0
  1303. package/node_modules/execa/lib/arguments/options.js +105 -0
  1304. package/node_modules/execa/lib/arguments/shell.js +11 -0
  1305. package/node_modules/execa/lib/arguments/specific.js +112 -0
  1306. package/node_modules/execa/lib/convert/add.js +19 -0
  1307. package/node_modules/execa/lib/convert/concurrent.js +33 -0
  1308. package/node_modules/execa/lib/convert/duplex.js +69 -0
  1309. package/node_modules/execa/lib/convert/iterable.js +34 -0
  1310. package/node_modules/execa/lib/convert/readable.js +129 -0
  1311. package/node_modules/execa/lib/convert/shared.js +46 -0
  1312. package/node_modules/execa/lib/convert/web.js +7 -0
  1313. package/node_modules/execa/lib/convert/writable.js +111 -0
  1314. package/node_modules/execa/lib/io/contents.js +116 -0
  1315. package/node_modules/execa/lib/io/input-sync.js +44 -0
  1316. package/node_modules/execa/lib/io/iterate.js +110 -0
  1317. package/node_modules/execa/lib/io/max-buffer.js +89 -0
  1318. package/node_modules/execa/lib/io/output-async.js +82 -0
  1319. package/node_modules/execa/lib/io/output-sync.js +136 -0
  1320. package/node_modules/execa/lib/io/pipeline.js +48 -0
  1321. package/node_modules/execa/lib/io/strip-newline.js +12 -0
  1322. package/node_modules/execa/lib/ipc/array.js +4 -0
  1323. package/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
  1324. package/node_modules/execa/lib/ipc/forward.js +56 -0
  1325. package/node_modules/execa/lib/ipc/get-each.js +113 -0
  1326. package/node_modules/execa/lib/ipc/get-one.js +92 -0
  1327. package/node_modules/execa/lib/ipc/graceful.js +72 -0
  1328. package/node_modules/execa/lib/ipc/incoming.js +79 -0
  1329. package/node_modules/execa/lib/ipc/ipc-input.js +50 -0
  1330. package/node_modules/execa/lib/ipc/methods.js +50 -0
  1331. package/node_modules/execa/lib/ipc/outgoing.js +53 -0
  1332. package/node_modules/execa/lib/ipc/reference.js +48 -0
  1333. package/node_modules/execa/lib/ipc/send.js +91 -0
  1334. package/node_modules/execa/lib/ipc/strict.js +113 -0
  1335. package/node_modules/execa/lib/ipc/validation.js +111 -0
  1336. package/node_modules/execa/lib/methods/bind.js +23 -0
  1337. package/node_modules/execa/lib/methods/command.js +27 -0
  1338. package/node_modules/execa/lib/methods/create.js +63 -0
  1339. package/node_modules/execa/lib/methods/main-async.js +235 -0
  1340. package/node_modules/execa/lib/methods/main-sync.js +167 -0
  1341. package/node_modules/execa/lib/methods/node.js +63 -0
  1342. package/node_modules/execa/lib/methods/parameters.js +32 -0
  1343. package/node_modules/execa/lib/methods/promise.js +2 -0
  1344. package/node_modules/execa/lib/methods/script.js +22 -0
  1345. package/node_modules/execa/lib/methods/template.js +153 -0
  1346. package/node_modules/execa/lib/pipe/abort.js +20 -0
  1347. package/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
  1348. package/node_modules/execa/lib/pipe/sequence.js +24 -0
  1349. package/node_modules/execa/lib/pipe/setup.js +230 -0
  1350. package/node_modules/execa/lib/pipe/streaming.js +51 -0
  1351. package/node_modules/execa/lib/pipe/throw.js +58 -0
  1352. package/node_modules/execa/lib/resolve/all-async.js +46 -0
  1353. package/node_modules/execa/lib/resolve/all-sync.js +33 -0
  1354. package/node_modules/execa/lib/resolve/exit-async.js +54 -0
  1355. package/node_modules/execa/lib/resolve/exit-sync.js +25 -0
  1356. package/node_modules/execa/lib/resolve/stdio.js +47 -0
  1357. package/node_modules/execa/lib/resolve/wait-stream.js +97 -0
  1358. package/node_modules/execa/lib/resolve/wait-subprocess.js +150 -0
  1359. package/node_modules/execa/lib/return/duration.js +8 -0
  1360. package/node_modules/execa/lib/return/early-error.js +77 -0
  1361. package/node_modules/execa/lib/return/final-error.js +44 -0
  1362. package/node_modules/execa/lib/return/message.js +157 -0
  1363. package/node_modules/execa/lib/return/reject.js +13 -0
  1364. package/node_modules/execa/lib/return/result.js +186 -0
  1365. package/node_modules/execa/lib/stdio/direction.js +89 -0
  1366. package/node_modules/execa/lib/stdio/duplicate.js +119 -0
  1367. package/node_modules/execa/lib/stdio/handle-async.js +52 -0
  1368. package/node_modules/execa/lib/stdio/handle-sync.js +68 -0
  1369. package/node_modules/execa/lib/stdio/handle.js +243 -0
  1370. package/node_modules/execa/lib/stdio/input-option.js +54 -0
  1371. package/node_modules/execa/lib/stdio/native.js +106 -0
  1372. package/node_modules/execa/lib/stdio/stdio-option.js +95 -0
  1373. package/node_modules/execa/lib/stdio/type.js +181 -0
  1374. package/node_modules/execa/lib/terminate/cancel.js +20 -0
  1375. package/node_modules/execa/lib/terminate/cleanup.js +16 -0
  1376. package/node_modules/execa/lib/terminate/graceful.js +73 -0
  1377. package/node_modules/execa/lib/terminate/kill-descendants.js +79 -0
  1378. package/node_modules/execa/lib/terminate/kill.js +93 -0
  1379. package/node_modules/execa/lib/terminate/signal.js +70 -0
  1380. package/node_modules/execa/lib/terminate/timeout.js +21 -0
  1381. package/node_modules/execa/lib/transform/encoding-transform.js +51 -0
  1382. package/node_modules/execa/lib/transform/generator.js +107 -0
  1383. package/node_modules/execa/lib/transform/normalize.js +106 -0
  1384. package/node_modules/execa/lib/transform/object-mode.js +41 -0
  1385. package/node_modules/execa/lib/transform/run-async.js +60 -0
  1386. package/node_modules/execa/lib/transform/run-sync.js +50 -0
  1387. package/node_modules/execa/lib/transform/split.js +112 -0
  1388. package/node_modules/execa/lib/transform/validate.js +43 -0
  1389. package/node_modules/execa/lib/utils/abort-signal.js +8 -0
  1390. package/node_modules/execa/lib/utils/deferred.js +7 -0
  1391. package/node_modules/execa/lib/utils/max-listeners.js +14 -0
  1392. package/node_modules/execa/lib/utils/standard-stream.js +6 -0
  1393. package/node_modules/execa/lib/utils/uint-array.js +69 -0
  1394. package/node_modules/execa/lib/verbose/complete.js +24 -0
  1395. package/node_modules/execa/lib/verbose/custom.js +26 -0
  1396. package/node_modules/execa/lib/verbose/default.js +54 -0
  1397. package/node_modules/execa/lib/verbose/error.js +13 -0
  1398. package/node_modules/execa/lib/verbose/info.js +39 -0
  1399. package/node_modules/execa/lib/verbose/ipc.js +15 -0
  1400. package/node_modules/execa/lib/verbose/log.js +54 -0
  1401. package/node_modules/execa/lib/verbose/output.js +60 -0
  1402. package/node_modules/execa/lib/verbose/start.js +15 -0
  1403. package/node_modules/execa/lib/verbose/values.js +33 -0
  1404. package/node_modules/execa/license +9 -0
  1405. package/node_modules/execa/package.json +124 -0
  1406. package/node_modules/execa/readme.md +461 -0
  1407. package/node_modules/fast-deep-equal/LICENSE +21 -0
  1408. package/node_modules/fast-deep-equal/README.md +96 -0
  1409. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  1410. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  1411. package/node_modules/fast-deep-equal/index.js +46 -0
  1412. package/node_modules/fast-deep-equal/package.json +51 -0
  1413. package/node_modules/fast-deep-equal/react.js +53 -0
  1414. package/node_modules/figures/index.js +292 -0
  1415. package/node_modules/figures/license +9 -0
  1416. package/node_modules/figures/package.json +46 -0
  1417. package/node_modules/figures/readme.md +337 -0
  1418. package/node_modules/fontkit/README.md +266 -0
  1419. package/node_modules/fontkit/dist/browser-module.mjs +13316 -0
  1420. package/node_modules/fontkit/dist/browser.cjs +13333 -0
  1421. package/node_modules/fontkit/dist/main.cjs +13355 -0
  1422. package/node_modules/fontkit/dist/module.mjs +13337 -0
  1423. package/node_modules/fontkit/package.json +87 -0
  1424. package/node_modules/fontkit/src/CmapProcessor.js +286 -0
  1425. package/node_modules/fontkit/src/DFont.js +117 -0
  1426. package/node_modules/fontkit/src/TTFFont.js +554 -0
  1427. package/node_modules/fontkit/src/TrueTypeCollection.js +67 -0
  1428. package/node_modules/fontkit/src/WOFF2Font.js +216 -0
  1429. package/node_modules/fontkit/src/WOFFFont.js +36 -0
  1430. package/node_modules/fontkit/src/aat/AATFeatureMap.js +543 -0
  1431. package/node_modules/fontkit/src/aat/AATLayoutEngine.js +49 -0
  1432. package/node_modules/fontkit/src/aat/AATLookupTable.js +125 -0
  1433. package/node_modules/fontkit/src/aat/AATMorxProcessor.js +430 -0
  1434. package/node_modules/fontkit/src/aat/AATStateMachine.js +96 -0
  1435. package/node_modules/fontkit/src/base.js +29 -0
  1436. package/node_modules/fontkit/src/cff/CFFCharsets.js +99 -0
  1437. package/node_modules/fontkit/src/cff/CFFDict.js +167 -0
  1438. package/node_modules/fontkit/src/cff/CFFEncodings.js +48 -0
  1439. package/node_modules/fontkit/src/cff/CFFFont.js +159 -0
  1440. package/node_modules/fontkit/src/cff/CFFIndex.js +150 -0
  1441. package/node_modules/fontkit/src/cff/CFFOperand.js +134 -0
  1442. package/node_modules/fontkit/src/cff/CFFPointer.js +50 -0
  1443. package/node_modules/fontkit/src/cff/CFFPrivateDict.js +39 -0
  1444. package/node_modules/fontkit/src/cff/CFFStandardStrings.js +71 -0
  1445. package/node_modules/fontkit/src/cff/CFFTop.js +237 -0
  1446. package/node_modules/fontkit/src/decorators.js +36 -0
  1447. package/node_modules/fontkit/src/encodings.js +219 -0
  1448. package/node_modules/fontkit/src/fs.js +17 -0
  1449. package/node_modules/fontkit/src/glyph/BBox.js +72 -0
  1450. package/node_modules/fontkit/src/glyph/CFFGlyph.js +604 -0
  1451. package/node_modules/fontkit/src/glyph/COLRGlyph.js +90 -0
  1452. package/node_modules/fontkit/src/glyph/Glyph.js +212 -0
  1453. package/node_modules/fontkit/src/glyph/GlyphVariationProcessor.js +486 -0
  1454. package/node_modules/fontkit/src/glyph/Path.js +244 -0
  1455. package/node_modules/fontkit/src/glyph/SBIXGlyph.js +54 -0
  1456. package/node_modules/fontkit/src/glyph/StandardNames.js +27 -0
  1457. package/node_modules/fontkit/src/glyph/TTFGlyph.js +393 -0
  1458. package/node_modules/fontkit/src/glyph/TTFGlyphEncoder.js +158 -0
  1459. package/node_modules/fontkit/src/glyph/WOFF2Glyph.js +17 -0
  1460. package/node_modules/fontkit/src/index.js +15 -0
  1461. package/node_modules/fontkit/src/layout/GlyphPosition.js +30 -0
  1462. package/node_modules/fontkit/src/layout/GlyphRun.js +108 -0
  1463. package/node_modules/fontkit/src/layout/KernProcessor.js +94 -0
  1464. package/node_modules/fontkit/src/layout/LayoutEngine.js +189 -0
  1465. package/node_modules/fontkit/src/layout/Script.js +231 -0
  1466. package/node_modules/fontkit/src/layout/UnicodeLayoutEngine.js +250 -0
  1467. package/node_modules/fontkit/src/node.js +17 -0
  1468. package/node_modules/fontkit/src/opentype/GPOSProcessor.js +353 -0
  1469. package/node_modules/fontkit/src/opentype/GSUBProcessor.js +192 -0
  1470. package/node_modules/fontkit/src/opentype/GlyphInfo.js +57 -0
  1471. package/node_modules/fontkit/src/opentype/GlyphIterator.js +70 -0
  1472. package/node_modules/fontkit/src/opentype/OTLayoutEngine.js +113 -0
  1473. package/node_modules/fontkit/src/opentype/OTProcessor.js +438 -0
  1474. package/node_modules/fontkit/src/opentype/ShapingPlan.js +118 -0
  1475. package/node_modules/fontkit/src/opentype/shapers/ArabicShaper.js +123 -0
  1476. package/node_modules/fontkit/src/opentype/shapers/DefaultShaper.js +72 -0
  1477. package/node_modules/fontkit/src/opentype/shapers/HangulShaper.js +285 -0
  1478. package/node_modules/fontkit/src/opentype/shapers/IndicShaper.js +911 -0
  1479. package/node_modules/fontkit/src/opentype/shapers/UniversalShaper.js +185 -0
  1480. package/node_modules/fontkit/src/opentype/shapers/data.trie +0 -0
  1481. package/node_modules/fontkit/src/opentype/shapers/gen-indic.js +208 -0
  1482. package/node_modules/fontkit/src/opentype/shapers/gen-use.js +287 -0
  1483. package/node_modules/fontkit/src/opentype/shapers/generate-data.js +33 -0
  1484. package/node_modules/fontkit/src/opentype/shapers/index.js +102 -0
  1485. package/node_modules/fontkit/src/opentype/shapers/indic-data.js +175 -0
  1486. package/node_modules/fontkit/src/opentype/shapers/indic.json +1 -0
  1487. package/node_modules/fontkit/src/opentype/shapers/indic.machine +31 -0
  1488. package/node_modules/fontkit/src/opentype/shapers/indic.trie +0 -0
  1489. package/node_modules/fontkit/src/opentype/shapers/use.json +1 -0
  1490. package/node_modules/fontkit/src/opentype/shapers/use.machine +44 -0
  1491. package/node_modules/fontkit/src/opentype/shapers/use.trie +0 -0
  1492. package/node_modules/fontkit/src/subset/CFFSubset.js +171 -0
  1493. package/node_modules/fontkit/src/subset/Subset.js +27 -0
  1494. package/node_modules/fontkit/src/subset/TTFSubset.js +131 -0
  1495. package/node_modules/fontkit/src/tables/BASE.js +78 -0
  1496. package/node_modules/fontkit/src/tables/COLR.js +25 -0
  1497. package/node_modules/fontkit/src/tables/CPAL.js +24 -0
  1498. package/node_modules/fontkit/src/tables/DSIG.js +21 -0
  1499. package/node_modules/fontkit/src/tables/EBDT.js +91 -0
  1500. package/node_modules/fontkit/src/tables/EBLC.js +80 -0
  1501. package/node_modules/fontkit/src/tables/GDEF.js +57 -0
  1502. package/node_modules/fontkit/src/tables/GPOS.js +209 -0
  1503. package/node_modules/fontkit/src/tables/GSUB.js +84 -0
  1504. package/node_modules/fontkit/src/tables/HVAR.js +44 -0
  1505. package/node_modules/fontkit/src/tables/JSTF.js +43 -0
  1506. package/node_modules/fontkit/src/tables/LTSH.js +10 -0
  1507. package/node_modules/fontkit/src/tables/OS2.js +84 -0
  1508. package/node_modules/fontkit/src/tables/PCLT.js +21 -0
  1509. package/node_modules/fontkit/src/tables/VDMX.js +33 -0
  1510. package/node_modules/fontkit/src/tables/VORG.js +14 -0
  1511. package/node_modules/fontkit/src/tables/WOFF2Directory.js +74 -0
  1512. package/node_modules/fontkit/src/tables/WOFFDirectory.js +38 -0
  1513. package/node_modules/fontkit/src/tables/aat.js +157 -0
  1514. package/node_modules/fontkit/src/tables/avar.js +19 -0
  1515. package/node_modules/fontkit/src/tables/bsln.js +31 -0
  1516. package/node_modules/fontkit/src/tables/cmap.js +127 -0
  1517. package/node_modules/fontkit/src/tables/cvt.js +6 -0
  1518. package/node_modules/fontkit/src/tables/directory.js +58 -0
  1519. package/node_modules/fontkit/src/tables/feat.js +28 -0
  1520. package/node_modules/fontkit/src/tables/fpgm.js +8 -0
  1521. package/node_modules/fontkit/src/tables/fvar.js +31 -0
  1522. package/node_modules/fontkit/src/tables/gasp.js +15 -0
  1523. package/node_modules/fontkit/src/tables/glyf.js +4 -0
  1524. package/node_modules/fontkit/src/tables/gvar.js +27 -0
  1525. package/node_modules/fontkit/src/tables/hdmx.js +15 -0
  1526. package/node_modules/fontkit/src/tables/head.js +25 -0
  1527. package/node_modules/fontkit/src/tables/hhea.js +19 -0
  1528. package/node_modules/fontkit/src/tables/hmtx.js +11 -0
  1529. package/node_modules/fontkit/src/tables/index.js +117 -0
  1530. package/node_modules/fontkit/src/tables/just.js +81 -0
  1531. package/node_modules/fontkit/src/tables/kern.js +91 -0
  1532. package/node_modules/fontkit/src/tables/loca.js +30 -0
  1533. package/node_modules/fontkit/src/tables/maxp.js +20 -0
  1534. package/node_modules/fontkit/src/tables/morx.js +79 -0
  1535. package/node_modules/fontkit/src/tables/name.js +130 -0
  1536. package/node_modules/fontkit/src/tables/opbd.js +15 -0
  1537. package/node_modules/fontkit/src/tables/opentype.js +217 -0
  1538. package/node_modules/fontkit/src/tables/post.js +34 -0
  1539. package/node_modules/fontkit/src/tables/prep.js +6 -0
  1540. package/node_modules/fontkit/src/tables/sbix.js +17 -0
  1541. package/node_modules/fontkit/src/tables/variations.js +81 -0
  1542. package/node_modules/fontkit/src/tables/vhea.js +19 -0
  1543. package/node_modules/fontkit/src/tables/vmtx.js +12 -0
  1544. package/node_modules/fontkit/src/utils.js +62 -0
  1545. package/node_modules/get-stream/license +9 -0
  1546. package/node_modules/get-stream/package.json +56 -0
  1547. package/node_modules/get-stream/readme.md +303 -0
  1548. package/node_modules/get-stream/source/array-buffer.js +84 -0
  1549. package/node_modules/get-stream/source/array.js +32 -0
  1550. package/node_modules/get-stream/source/buffer.js +19 -0
  1551. package/node_modules/get-stream/source/contents.js +121 -0
  1552. package/node_modules/get-stream/source/exports.js +5 -0
  1553. package/node_modules/get-stream/source/index.js +13 -0
  1554. package/node_modules/get-stream/source/stream.js +65 -0
  1555. package/node_modules/get-stream/source/string.js +41 -0
  1556. package/node_modules/get-stream/source/utils.js +11 -0
  1557. package/node_modules/human-signals/LICENSE +201 -0
  1558. package/node_modules/human-signals/README.md +171 -0
  1559. package/node_modules/human-signals/build/src/core.js +273 -0
  1560. package/node_modules/human-signals/build/src/main.js +70 -0
  1561. package/node_modules/human-signals/build/src/realtime.js +16 -0
  1562. package/node_modules/human-signals/build/src/signals.js +34 -0
  1563. package/node_modules/human-signals/package.json +63 -0
  1564. package/node_modules/is-plain-obj/index.js +8 -0
  1565. package/node_modules/is-plain-obj/license +9 -0
  1566. package/node_modules/is-plain-obj/package.json +38 -0
  1567. package/node_modules/is-plain-obj/readme.md +58 -0
  1568. package/node_modules/is-stream/index.js +37 -0
  1569. package/node_modules/is-stream/license +9 -0
  1570. package/node_modules/is-stream/package.json +45 -0
  1571. package/node_modules/is-stream/readme.md +57 -0
  1572. package/node_modules/is-unicode-supported/index.js +21 -0
  1573. package/node_modules/is-unicode-supported/license +9 -0
  1574. package/node_modules/is-unicode-supported/package.json +44 -0
  1575. package/node_modules/is-unicode-supported/readme.md +35 -0
  1576. package/node_modules/npm-run-path/index.js +55 -0
  1577. package/node_modules/npm-run-path/license +9 -0
  1578. package/node_modules/npm-run-path/node_modules/path-key/index.js +12 -0
  1579. package/node_modules/npm-run-path/node_modules/path-key/license +9 -0
  1580. package/node_modules/npm-run-path/node_modules/path-key/package.json +41 -0
  1581. package/node_modules/npm-run-path/node_modules/path-key/readme.md +57 -0
  1582. package/node_modules/npm-run-path/package.json +49 -0
  1583. package/node_modules/npm-run-path/readme.md +104 -0
  1584. package/node_modules/pako/LICENSE +21 -0
  1585. package/node_modules/pako/README.md +176 -0
  1586. package/node_modules/pako/dist/pako.js +6606 -0
  1587. package/node_modules/pako/dist/pako.min.js +3 -0
  1588. package/node_modules/pako/dist/pako_deflate.js +3879 -0
  1589. package/node_modules/pako/dist/pako_deflate.min.js +2 -0
  1590. package/node_modules/pako/dist/pako_inflate.js +3127 -0
  1591. package/node_modules/pako/dist/pako_inflate.min.js +2 -0
  1592. package/node_modules/pako/index.js +14 -0
  1593. package/node_modules/pako/lib/deflate.js +400 -0
  1594. package/node_modules/pako/lib/inflate.js +418 -0
  1595. package/node_modules/pako/lib/utils/common.js +102 -0
  1596. package/node_modules/pako/lib/utils/strings.js +185 -0
  1597. package/node_modules/pako/lib/zlib/adler32.js +32 -0
  1598. package/node_modules/pako/lib/zlib/constants.js +50 -0
  1599. package/node_modules/pako/lib/zlib/crc32.js +41 -0
  1600. package/node_modules/pako/lib/zlib/deflate.js +1855 -0
  1601. package/node_modules/pako/lib/zlib/gzheader.js +40 -0
  1602. package/node_modules/pako/lib/zlib/inffast.js +326 -0
  1603. package/node_modules/pako/lib/zlib/inflate.js +1538 -0
  1604. package/node_modules/pako/lib/zlib/inftrees.js +327 -0
  1605. package/node_modules/pako/lib/zlib/messages.js +13 -0
  1606. package/node_modules/pako/lib/zlib/trees.js +1202 -0
  1607. package/node_modules/pako/lib/zlib/zstream.js +29 -0
  1608. package/node_modules/pako/package.json +40 -0
  1609. package/node_modules/parse-ms/index.js +45 -0
  1610. package/node_modules/parse-ms/license +9 -0
  1611. package/node_modules/parse-ms/package.json +44 -0
  1612. package/node_modules/parse-ms/readme.md +46 -0
  1613. package/node_modules/pretty-ms/index.js +150 -0
  1614. package/node_modules/pretty-ms/license +9 -0
  1615. package/node_modules/pretty-ms/package.json +52 -0
  1616. package/node_modules/pretty-ms/readme.md +198 -0
  1617. package/node_modules/restructure/LICENSE +21 -0
  1618. package/node_modules/restructure/README.md +300 -0
  1619. package/node_modules/restructure/dist/main.cjs +1019 -0
  1620. package/node_modules/restructure/index.js +17 -0
  1621. package/node_modules/restructure/package.json +36 -0
  1622. package/node_modules/restructure/src/Array.js +106 -0
  1623. package/node_modules/restructure/src/Base.js +17 -0
  1624. package/node_modules/restructure/src/Bitfield.js +39 -0
  1625. package/node_modules/restructure/src/Boolean.js +22 -0
  1626. package/node_modules/restructure/src/Buffer.js +38 -0
  1627. package/node_modules/restructure/src/DecodeStream.js +85 -0
  1628. package/node_modules/restructure/src/EncodeStream.js +129 -0
  1629. package/node_modules/restructure/src/Enum.js +27 -0
  1630. package/node_modules/restructure/src/LazyArray.js +74 -0
  1631. package/node_modules/restructure/src/Number.js +77 -0
  1632. package/node_modules/restructure/src/Optional.js +44 -0
  1633. package/node_modules/restructure/src/Pointer.js +167 -0
  1634. package/node_modules/restructure/src/Reserved.js +23 -0
  1635. package/node_modules/restructure/src/String.js +155 -0
  1636. package/node_modules/restructure/src/Struct.js +113 -0
  1637. package/node_modules/restructure/src/VersionedStruct.js +139 -0
  1638. package/node_modules/restructure/src/utils.js +35 -0
  1639. package/node_modules/restructure/test/Array.js +103 -0
  1640. package/node_modules/restructure/test/Bitfield.js +29 -0
  1641. package/node_modules/restructure/test/Boolean.js +39 -0
  1642. package/node_modules/restructure/test/Buffer.js +45 -0
  1643. package/node_modules/restructure/test/DecodeStream.js +101 -0
  1644. package/node_modules/restructure/test/EncodeStream.js +104 -0
  1645. package/node_modules/restructure/test/Enum.js +24 -0
  1646. package/node_modules/restructure/test/LazyArray.js +59 -0
  1647. package/node_modules/restructure/test/Number.js +356 -0
  1648. package/node_modules/restructure/test/Optional.js +100 -0
  1649. package/node_modules/restructure/test/Pointer.js +289 -0
  1650. package/node_modules/restructure/test/Reserved.js +26 -0
  1651. package/node_modules/restructure/test/String.js +151 -0
  1652. package/node_modules/restructure/test/Struct.js +146 -0
  1653. package/node_modules/restructure/test/VersionedStruct.js +495 -0
  1654. package/node_modules/saxes/README.md +323 -0
  1655. package/node_modules/saxes/package.json +55 -0
  1656. package/node_modules/saxes/saxes.js +2053 -0
  1657. package/node_modules/signal-exit/LICENSE.txt +16 -0
  1658. package/node_modules/signal-exit/README.md +74 -0
  1659. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  1660. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  1661. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  1662. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  1663. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  1664. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  1665. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  1666. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  1667. package/node_modules/signal-exit/package.json +93 -0
  1668. package/node_modules/strip-final-newline/index.js +26 -0
  1669. package/node_modules/strip-final-newline/license +9 -0
  1670. package/node_modules/strip-final-newline/package.json +46 -0
  1671. package/node_modules/strip-final-newline/readme.md +34 -0
  1672. package/node_modules/tiny-inflate/LICENSE +21 -0
  1673. package/node_modules/tiny-inflate/index.js +375 -0
  1674. package/node_modules/tiny-inflate/package.json +25 -0
  1675. package/node_modules/tiny-inflate/readme.md +31 -0
  1676. package/node_modules/tiny-inflate/test/index.js +75 -0
  1677. package/node_modules/tiny-inflate/test/lorem.txt +199 -0
  1678. package/node_modules/unicode-properties/LICENSE +8 -0
  1679. package/node_modules/unicode-properties/dist/main.cjs +150 -0
  1680. package/node_modules/unicode-properties/dist/module.mjs +127 -0
  1681. package/node_modules/unicode-properties/package.json +44 -0
  1682. package/node_modules/unicode-properties/readme.md +78 -0
  1683. package/node_modules/unicode-trie/LICENSE +8 -0
  1684. package/node_modules/unicode-trie/README.md +77 -0
  1685. package/node_modules/unicode-trie/builder.js +966 -0
  1686. package/node_modules/unicode-trie/index.js +136 -0
  1687. package/node_modules/unicode-trie/package.json +23 -0
  1688. package/node_modules/unicode-trie/swap.js +25 -0
  1689. package/node_modules/unicode-trie/test/mocha.opts +1 -0
  1690. package/node_modules/unicode-trie/test/test.js +243 -0
  1691. package/node_modules/unicorn-magic/default.js +14 -0
  1692. package/node_modules/unicorn-magic/license +9 -0
  1693. package/node_modules/unicorn-magic/node.js +49 -0
  1694. package/node_modules/unicorn-magic/package.json +59 -0
  1695. package/node_modules/unicorn-magic/readme.md +25 -0
  1696. package/node_modules/which-command/cli.js +74 -0
  1697. package/node_modules/which-command/index.js +170 -0
  1698. package/node_modules/which-command/license +9 -0
  1699. package/node_modules/which-command/package.json +46 -0
  1700. package/node_modules/which-command/readme.md +121 -0
  1701. package/node_modules/xmlchars/LICENSE +18 -0
  1702. package/node_modules/xmlchars/README.md +33 -0
  1703. package/node_modules/xmlchars/package.json +34 -0
  1704. package/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  1705. package/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  1706. package/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  1707. package/node_modules/xmlchars/xmlchars.js +191 -0
  1708. package/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  1709. package/node_modules/yoctocolors/base.js +118 -0
  1710. package/node_modules/yoctocolors/index.js +2 -0
  1711. package/node_modules/yoctocolors/license +9 -0
  1712. package/node_modules/yoctocolors/package.json +66 -0
  1713. package/node_modules/yoctocolors/readme.md +163 -0
  1714. package/package.json +337 -246
  1715. package/node_modules/@deepseek-ai/cordis-plugin-hmr/README.md +0 -51
  1716. package/node_modules/@deepseek-ai/cordis-plugin-hmr/lib/index.js +0 -401
  1717. package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/error.ts +0 -36
  1718. package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/index.ts +0 -427
  1719. package/node_modules/@deepseek-ai/dsh/lib/plugin-Bk_PbPwP.js +0 -130
  1720. package/node_modules/@deepseek-ai/dsh/lib/profile-boot-DB8eVKBx.js +0 -2
  1721. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BRtJ62WN.css +0 -1
  1722. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Ly7KS3xS.js +0 -127
  1723. /package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/LICENSE +0 -0
@@ -293,6 +293,4413 @@ window.__ModuleLoader__.load({
293
293
  };
294
294
  }
295
295
  //#endregion
296
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
297
+ var _a$1;
298
+ function $constructor(name, initializer, params) {
299
+ function init(inst, def) {
300
+ if (!inst._zod) Object.defineProperty(inst, "_zod", {
301
+ value: {
302
+ def,
303
+ constr: _,
304
+ traits: /* @__PURE__ */ new Set()
305
+ },
306
+ enumerable: false
307
+ });
308
+ if (inst._zod.traits.has(name)) return;
309
+ inst._zod.traits.add(name);
310
+ initializer(inst, def);
311
+ const proto = _.prototype;
312
+ const keys = Object.keys(proto);
313
+ for (let i = 0; i < keys.length; i++) {
314
+ const k = keys[i];
315
+ if (!(k in inst)) inst[k] = proto[k].bind(inst);
316
+ }
317
+ }
318
+ const Parent = params?.Parent ?? Object;
319
+ class Definition extends Parent {}
320
+ Object.defineProperty(Definition, "name", { value: name });
321
+ function _(def) {
322
+ var _a;
323
+ const inst = params?.Parent ? new Definition() : this;
324
+ init(inst, def);
325
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
326
+ for (const fn of inst._zod.deferred) fn();
327
+ return inst;
328
+ }
329
+ Object.defineProperty(_, "init", { value: init });
330
+ Object.defineProperty(_, Symbol.hasInstance, { value: (inst) => {
331
+ if (params?.Parent && inst instanceof params.Parent) return true;
332
+ return inst?._zod?.traits?.has(name);
333
+ } });
334
+ Object.defineProperty(_, "name", { value: name });
335
+ return _;
336
+ }
337
+ var $ZodAsyncError = class extends Error {
338
+ constructor() {
339
+ super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
340
+ }
341
+ };
342
+ var $ZodEncodeError = class extends Error {
343
+ constructor(name) {
344
+ super(`Encountered unidirectional transform during encode: ${name}`);
345
+ this.name = "ZodEncodeError";
346
+ }
347
+ };
348
+ (_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
349
+ const globalConfig = globalThis.__zod_globalConfig;
350
+ function config(newConfig) {
351
+ if (newConfig) Object.assign(globalConfig, newConfig);
352
+ return globalConfig;
353
+ }
354
+ //#endregion
355
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
356
+ function getEnumValues(entries) {
357
+ const numericValues = Object.values(entries).filter((v) => typeof v === "number");
358
+ return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
359
+ }
360
+ function jsonStringifyReplacer(_, value) {
361
+ if (typeof value === "bigint") return value.toString();
362
+ return value;
363
+ }
364
+ function cached(getter) {
365
+ return { get value() {
366
+ {
367
+ const value = getter();
368
+ Object.defineProperty(this, "value", { value });
369
+ return value;
370
+ }
371
+ throw new Error("cached value already set");
372
+ } };
373
+ }
374
+ function nullish(input) {
375
+ return input === null || input === void 0;
376
+ }
377
+ function cleanRegex(source) {
378
+ const start = source.startsWith("^") ? 1 : 0;
379
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
380
+ return source.slice(start, end);
381
+ }
382
+ function floatSafeRemainder(val, step) {
383
+ const ratio = val / step;
384
+ const roundedRatio = Math.round(ratio);
385
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
386
+ if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
387
+ return ratio - roundedRatio;
388
+ }
389
+ const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
390
+ function defineLazy(object, key, getter) {
391
+ let value = void 0;
392
+ Object.defineProperty(object, key, {
393
+ get() {
394
+ if (value === EVALUATING) return;
395
+ if (value === void 0) {
396
+ value = EVALUATING;
397
+ value = getter();
398
+ }
399
+ return value;
400
+ },
401
+ set(v) {
402
+ Object.defineProperty(object, key, { value: v });
403
+ },
404
+ configurable: true
405
+ });
406
+ }
407
+ function assignProp(target, prop, value) {
408
+ Object.defineProperty(target, prop, {
409
+ value,
410
+ writable: true,
411
+ enumerable: true,
412
+ configurable: true
413
+ });
414
+ }
415
+ function mergeDefs(...defs) {
416
+ const mergedDescriptors = {};
417
+ for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
418
+ return Object.defineProperties({}, mergedDescriptors);
419
+ }
420
+ function esc(str) {
421
+ return JSON.stringify(str);
422
+ }
423
+ function slugify(input) {
424
+ return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
425
+ }
426
+ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
427
+ function isObject(data) {
428
+ return typeof data === "object" && data !== null && !Array.isArray(data);
429
+ }
430
+ const allowsEval = /* @__PURE__*/ cached(() => {
431
+ if (globalConfig.jitless) return false;
432
+ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
433
+ try {
434
+ new Function("");
435
+ return true;
436
+ } catch (_) {
437
+ return false;
438
+ }
439
+ });
440
+ function isPlainObject(o) {
441
+ if (isObject(o) === false) return false;
442
+ const ctor = o.constructor;
443
+ if (ctor === void 0) return true;
444
+ if (typeof ctor !== "function") return true;
445
+ const prot = ctor.prototype;
446
+ if (isObject(prot) === false) return false;
447
+ if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
448
+ return true;
449
+ }
450
+ function shallowClone(o) {
451
+ if (isPlainObject(o)) return { ...o };
452
+ if (Array.isArray(o)) return [...o];
453
+ if (o instanceof Map) return new Map(o);
454
+ if (o instanceof Set) return new Set(o);
455
+ return o;
456
+ }
457
+ const propertyKeyTypes = /* @__PURE__*/ new Set([
458
+ "string",
459
+ "number",
460
+ "symbol"
461
+ ]);
462
+ function escapeRegex(str) {
463
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
464
+ }
465
+ function clone(inst, def, params) {
466
+ const cl = new inst._zod.constr(def ?? inst._zod.def);
467
+ if (!def || params?.parent) cl._zod.parent = inst;
468
+ return cl;
469
+ }
470
+ function normalizeParams(_params) {
471
+ const params = _params;
472
+ if (!params) return {};
473
+ if (typeof params === "string") return { error: () => params };
474
+ if (params?.message !== void 0) {
475
+ if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params");
476
+ params.error = params.message;
477
+ }
478
+ delete params.message;
479
+ if (typeof params.error === "string") return {
480
+ ...params,
481
+ error: () => params.error
482
+ };
483
+ return params;
484
+ }
485
+ function optionalKeys(shape) {
486
+ return Object.keys(shape).filter((k) => {
487
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
488
+ });
489
+ }
490
+ const NUMBER_FORMAT_RANGES = {
491
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
492
+ int32: [-2147483648, 2147483647],
493
+ uint32: [0, 4294967295],
494
+ float32: [-34028234663852886e22, 34028234663852886e22],
495
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
496
+ };
497
+ function pick(schema, mask) {
498
+ const currDef = schema._zod.def;
499
+ const checks = currDef.checks;
500
+ if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
501
+ return clone(schema, mergeDefs(schema._zod.def, {
502
+ get shape() {
503
+ const newShape = {};
504
+ for (const key in mask) {
505
+ if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
506
+ if (!mask[key]) continue;
507
+ newShape[key] = currDef.shape[key];
508
+ }
509
+ assignProp(this, "shape", newShape);
510
+ return newShape;
511
+ },
512
+ checks: []
513
+ }));
514
+ }
515
+ function omit(schema, mask) {
516
+ const currDef = schema._zod.def;
517
+ const checks = currDef.checks;
518
+ if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
519
+ return clone(schema, mergeDefs(schema._zod.def, {
520
+ get shape() {
521
+ const newShape = { ...schema._zod.def.shape };
522
+ for (const key in mask) {
523
+ if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
524
+ if (!mask[key]) continue;
525
+ delete newShape[key];
526
+ }
527
+ assignProp(this, "shape", newShape);
528
+ return newShape;
529
+ },
530
+ checks: []
531
+ }));
532
+ }
533
+ function extend(schema, shape) {
534
+ if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
535
+ const checks = schema._zod.def.checks;
536
+ if (checks && checks.length > 0) {
537
+ const existingShape = schema._zod.def.shape;
538
+ for (const key in shape) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
539
+ }
540
+ return clone(schema, mergeDefs(schema._zod.def, { get shape() {
541
+ const _shape = {
542
+ ...schema._zod.def.shape,
543
+ ...shape
544
+ };
545
+ assignProp(this, "shape", _shape);
546
+ return _shape;
547
+ } }));
548
+ }
549
+ function safeExtend(schema, shape) {
550
+ if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
551
+ return clone(schema, mergeDefs(schema._zod.def, { get shape() {
552
+ const _shape = {
553
+ ...schema._zod.def.shape,
554
+ ...shape
555
+ };
556
+ assignProp(this, "shape", _shape);
557
+ return _shape;
558
+ } }));
559
+ }
560
+ function merge(a, b) {
561
+ if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
562
+ return clone(a, mergeDefs(a._zod.def, {
563
+ get shape() {
564
+ const _shape = {
565
+ ...a._zod.def.shape,
566
+ ...b._zod.def.shape
567
+ };
568
+ assignProp(this, "shape", _shape);
569
+ return _shape;
570
+ },
571
+ get catchall() {
572
+ return b._zod.def.catchall;
573
+ },
574
+ checks: b._zod.def.checks ?? []
575
+ }));
576
+ }
577
+ function partial(Class, schema, mask) {
578
+ const checks = schema._zod.def.checks;
579
+ if (checks && checks.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements");
580
+ return clone(schema, mergeDefs(schema._zod.def, {
581
+ get shape() {
582
+ const oldShape = schema._zod.def.shape;
583
+ const shape = { ...oldShape };
584
+ if (mask) for (const key in mask) {
585
+ if (!(key in oldShape)) throw new Error(`Unrecognized key: "${key}"`);
586
+ if (!mask[key]) continue;
587
+ shape[key] = Class ? new Class({
588
+ type: "optional",
589
+ innerType: oldShape[key]
590
+ }) : oldShape[key];
591
+ }
592
+ else for (const key in oldShape) shape[key] = Class ? new Class({
593
+ type: "optional",
594
+ innerType: oldShape[key]
595
+ }) : oldShape[key];
596
+ assignProp(this, "shape", shape);
597
+ return shape;
598
+ },
599
+ checks: []
600
+ }));
601
+ }
602
+ function required(Class, schema, mask) {
603
+ return clone(schema, mergeDefs(schema._zod.def, { get shape() {
604
+ const oldShape = schema._zod.def.shape;
605
+ const shape = { ...oldShape };
606
+ if (mask) for (const key in mask) {
607
+ if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
608
+ if (!mask[key]) continue;
609
+ shape[key] = new Class({
610
+ type: "nonoptional",
611
+ innerType: oldShape[key]
612
+ });
613
+ }
614
+ else for (const key in oldShape) shape[key] = new Class({
615
+ type: "nonoptional",
616
+ innerType: oldShape[key]
617
+ });
618
+ assignProp(this, "shape", shape);
619
+ return shape;
620
+ } }));
621
+ }
622
+ function aborted(x, startIndex = 0) {
623
+ if (x.aborted === true) return true;
624
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
625
+ return false;
626
+ }
627
+ function explicitlyAborted(x, startIndex = 0) {
628
+ if (x.aborted === true) return true;
629
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
630
+ return false;
631
+ }
632
+ function prefixIssues(path, issues) {
633
+ return issues.map((iss) => {
634
+ var _a;
635
+ (_a = iss).path ?? (_a.path = []);
636
+ iss.path.unshift(path);
637
+ return iss;
638
+ });
639
+ }
640
+ function unwrapMessage(message) {
641
+ return typeof message === "string" ? message : message?.message;
642
+ }
643
+ function finalizeIssue(iss, ctx, config) {
644
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
645
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
646
+ rest.path ?? (rest.path = []);
647
+ rest.message = message;
648
+ if (ctx?.reportInput) rest.input = _input;
649
+ return rest;
650
+ }
651
+ function getLengthableOrigin(input) {
652
+ if (Array.isArray(input)) return "array";
653
+ if (typeof input === "string") return "string";
654
+ return "unknown";
655
+ }
656
+ function issue(...args) {
657
+ const [iss, input, inst] = args;
658
+ if (typeof iss === "string") return {
659
+ message: iss,
660
+ code: "custom",
661
+ input,
662
+ inst
663
+ };
664
+ return { ...iss };
665
+ }
666
+ //#endregion
667
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
668
+ const initializer$1 = (inst, def) => {
669
+ inst.name = "$ZodError";
670
+ Object.defineProperty(inst, "_zod", {
671
+ value: inst._zod,
672
+ enumerable: false
673
+ });
674
+ Object.defineProperty(inst, "issues", {
675
+ value: def,
676
+ enumerable: false
677
+ });
678
+ inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
679
+ Object.defineProperty(inst, "toString", {
680
+ value: () => inst.message,
681
+ enumerable: false
682
+ });
683
+ };
684
+ const $ZodError = $constructor("$ZodError", initializer$1);
685
+ const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
686
+ function flattenError(error, mapper = (issue) => issue.message) {
687
+ const fieldErrors = {};
688
+ const formErrors = [];
689
+ for (const sub of error.issues) if (sub.path.length > 0) {
690
+ fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
691
+ fieldErrors[sub.path[0]].push(mapper(sub));
692
+ } else formErrors.push(mapper(sub));
693
+ return {
694
+ formErrors,
695
+ fieldErrors
696
+ };
697
+ }
698
+ function formatError(error, mapper = (issue) => issue.message) {
699
+ const fieldErrors = { _errors: [] };
700
+ const processError = (error, path = []) => {
701
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
702
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
703
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
704
+ else {
705
+ const fullpath = [...path, ...issue.path];
706
+ if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
707
+ else {
708
+ let curr = fieldErrors;
709
+ let i = 0;
710
+ while (i < fullpath.length) {
711
+ const el = fullpath[i];
712
+ if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
713
+ else {
714
+ curr[el] = curr[el] || { _errors: [] };
715
+ curr[el]._errors.push(mapper(issue));
716
+ }
717
+ curr = curr[el];
718
+ i++;
719
+ }
720
+ }
721
+ }
722
+ };
723
+ processError(error);
724
+ return fieldErrors;
725
+ }
726
+ //#endregion
727
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
728
+ const _parse = (_Err) => (schema, value, _ctx, _params) => {
729
+ const ctx = _ctx ? {
730
+ ..._ctx,
731
+ async: false
732
+ } : { async: false };
733
+ const result = schema._zod.run({
734
+ value,
735
+ issues: []
736
+ }, ctx);
737
+ if (result instanceof Promise) throw new $ZodAsyncError();
738
+ if (result.issues.length) {
739
+ const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
740
+ captureStackTrace(e, _params?.callee);
741
+ throw e;
742
+ }
743
+ return result.value;
744
+ };
745
+ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
746
+ const ctx = _ctx ? {
747
+ ..._ctx,
748
+ async: true
749
+ } : { async: true };
750
+ let result = schema._zod.run({
751
+ value,
752
+ issues: []
753
+ }, ctx);
754
+ if (result instanceof Promise) result = await result;
755
+ if (result.issues.length) {
756
+ const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
757
+ captureStackTrace(e, params?.callee);
758
+ throw e;
759
+ }
760
+ return result.value;
761
+ };
762
+ const _safeParse = (_Err) => (schema, value, _ctx) => {
763
+ const ctx = _ctx ? {
764
+ ..._ctx,
765
+ async: false
766
+ } : { async: false };
767
+ const result = schema._zod.run({
768
+ value,
769
+ issues: []
770
+ }, ctx);
771
+ if (result instanceof Promise) throw new $ZodAsyncError();
772
+ return result.issues.length ? {
773
+ success: false,
774
+ error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
775
+ } : {
776
+ success: true,
777
+ data: result.value
778
+ };
779
+ };
780
+ const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
781
+ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
782
+ const ctx = _ctx ? {
783
+ ..._ctx,
784
+ async: true
785
+ } : { async: true };
786
+ let result = schema._zod.run({
787
+ value,
788
+ issues: []
789
+ }, ctx);
790
+ if (result instanceof Promise) result = await result;
791
+ return result.issues.length ? {
792
+ success: false,
793
+ error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
794
+ } : {
795
+ success: true,
796
+ data: result.value
797
+ };
798
+ };
799
+ const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
800
+ const _encode = (_Err) => (schema, value, _ctx) => {
801
+ const ctx = _ctx ? {
802
+ ..._ctx,
803
+ direction: "backward"
804
+ } : { direction: "backward" };
805
+ return _parse(_Err)(schema, value, ctx);
806
+ };
807
+ const _decode = (_Err) => (schema, value, _ctx) => {
808
+ return _parse(_Err)(schema, value, _ctx);
809
+ };
810
+ const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
811
+ const ctx = _ctx ? {
812
+ ..._ctx,
813
+ direction: "backward"
814
+ } : { direction: "backward" };
815
+ return _parseAsync(_Err)(schema, value, ctx);
816
+ };
817
+ const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
818
+ return _parseAsync(_Err)(schema, value, _ctx);
819
+ };
820
+ const _safeEncode = (_Err) => (schema, value, _ctx) => {
821
+ const ctx = _ctx ? {
822
+ ..._ctx,
823
+ direction: "backward"
824
+ } : { direction: "backward" };
825
+ return _safeParse(_Err)(schema, value, ctx);
826
+ };
827
+ const _safeDecode = (_Err) => (schema, value, _ctx) => {
828
+ return _safeParse(_Err)(schema, value, _ctx);
829
+ };
830
+ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
831
+ const ctx = _ctx ? {
832
+ ..._ctx,
833
+ direction: "backward"
834
+ } : { direction: "backward" };
835
+ return _safeParseAsync(_Err)(schema, value, ctx);
836
+ };
837
+ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
838
+ return _safeParseAsync(_Err)(schema, value, _ctx);
839
+ };
840
+ //#endregion
841
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
842
+ /**
843
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
844
+ * (timestamps embedded in the id). Use {@link cuid2} instead.
845
+ * See https://github.com/paralleldrive/cuid.
846
+ */
847
+ const cuid = /^[cC][0-9a-z]{6,}$/;
848
+ const cuid2 = /^[0-9a-z]+$/;
849
+ const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
850
+ const xid = /^[0-9a-vA-V]{20}$/;
851
+ const ksuid = /^[A-Za-z0-9]{27}$/;
852
+ const nanoid = /^[a-zA-Z0-9_-]{21}$/;
853
+ /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
854
+ const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
855
+ /** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
856
+ const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
857
+ /** Returns a regex for validating an RFC 9562/4122 UUID.
858
+ *
859
+ * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
860
+ const uuid = (version) => {
861
+ if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
862
+ return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
863
+ };
864
+ /** Practical email validation */
865
+ const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
866
+ const _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
867
+ function emoji() {
868
+ return new RegExp(_emoji$1, "u");
869
+ }
870
+ const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
871
+ const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
872
+ const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
873
+ const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
874
+ const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
875
+ const base64url = /^[A-Za-z0-9_-]*$/;
876
+ const httpProtocol = /^https?$/;
877
+ const e164 = /^\+[1-9]\d{6,14}$/;
878
+ const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
879
+ const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
880
+ function timeSource(args) {
881
+ const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
882
+ return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
883
+ }
884
+ function time$1(args) {
885
+ return new RegExp(`^${timeSource(args)}$`);
886
+ }
887
+ function datetime$1(args) {
888
+ const time = timeSource({ precision: args.precision });
889
+ const opts = ["Z"];
890
+ if (args.local) opts.push("");
891
+ if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
892
+ const timeRegex = `${time}(?:${opts.join("|")})`;
893
+ return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
894
+ }
895
+ const string$1 = (params) => {
896
+ const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
897
+ return new RegExp(`^${regex}$`);
898
+ };
899
+ const integer = /^-?\d+$/;
900
+ const number$1 = /^-?\d+(?:\.\d+)?$/;
901
+ const boolean$1 = /^(?:true|false)$/i;
902
+ const lowercase = /^[^A-Z]*$/;
903
+ const uppercase = /^[^a-z]*$/;
904
+ //#endregion
905
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
906
+ const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
907
+ var _a;
908
+ inst._zod ?? (inst._zod = {});
909
+ inst._zod.def = def;
910
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
911
+ });
912
+ const numericOriginMap = {
913
+ number: "number",
914
+ bigint: "bigint",
915
+ object: "date"
916
+ };
917
+ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
918
+ $ZodCheck.init(inst, def);
919
+ const origin = numericOriginMap[typeof def.value];
920
+ inst._zod.onattach.push((inst) => {
921
+ const bag = inst._zod.bag;
922
+ const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
923
+ if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
924
+ else bag.exclusiveMaximum = def.value;
925
+ });
926
+ inst._zod.check = (payload) => {
927
+ if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
928
+ payload.issues.push({
929
+ origin,
930
+ code: "too_big",
931
+ maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
932
+ input: payload.value,
933
+ inclusive: def.inclusive,
934
+ inst,
935
+ continue: !def.abort
936
+ });
937
+ };
938
+ });
939
+ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
940
+ $ZodCheck.init(inst, def);
941
+ const origin = numericOriginMap[typeof def.value];
942
+ inst._zod.onattach.push((inst) => {
943
+ const bag = inst._zod.bag;
944
+ const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
945
+ if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
946
+ else bag.exclusiveMinimum = def.value;
947
+ });
948
+ inst._zod.check = (payload) => {
949
+ if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
950
+ payload.issues.push({
951
+ origin,
952
+ code: "too_small",
953
+ minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
954
+ input: payload.value,
955
+ inclusive: def.inclusive,
956
+ inst,
957
+ continue: !def.abort
958
+ });
959
+ };
960
+ });
961
+ const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
962
+ $ZodCheck.init(inst, def);
963
+ inst._zod.onattach.push((inst) => {
964
+ var _a;
965
+ (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
966
+ });
967
+ inst._zod.check = (payload) => {
968
+ if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
969
+ if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
970
+ payload.issues.push({
971
+ origin: typeof payload.value,
972
+ code: "not_multiple_of",
973
+ divisor: def.value,
974
+ input: payload.value,
975
+ inst,
976
+ continue: !def.abort
977
+ });
978
+ };
979
+ });
980
+ const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
981
+ $ZodCheck.init(inst, def);
982
+ def.format = def.format || "float64";
983
+ const isInt = def.format?.includes("int");
984
+ const origin = isInt ? "int" : "number";
985
+ const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
986
+ inst._zod.onattach.push((inst) => {
987
+ const bag = inst._zod.bag;
988
+ bag.format = def.format;
989
+ bag.minimum = minimum;
990
+ bag.maximum = maximum;
991
+ if (isInt) bag.pattern = integer;
992
+ });
993
+ inst._zod.check = (payload) => {
994
+ const input = payload.value;
995
+ if (isInt) {
996
+ if (!Number.isInteger(input)) {
997
+ payload.issues.push({
998
+ expected: origin,
999
+ format: def.format,
1000
+ code: "invalid_type",
1001
+ continue: false,
1002
+ input,
1003
+ inst
1004
+ });
1005
+ return;
1006
+ }
1007
+ if (!Number.isSafeInteger(input)) {
1008
+ if (input > 0) payload.issues.push({
1009
+ input,
1010
+ code: "too_big",
1011
+ maximum: Number.MAX_SAFE_INTEGER,
1012
+ note: "Integers must be within the safe integer range.",
1013
+ inst,
1014
+ origin,
1015
+ inclusive: true,
1016
+ continue: !def.abort
1017
+ });
1018
+ else payload.issues.push({
1019
+ input,
1020
+ code: "too_small",
1021
+ minimum: Number.MIN_SAFE_INTEGER,
1022
+ note: "Integers must be within the safe integer range.",
1023
+ inst,
1024
+ origin,
1025
+ inclusive: true,
1026
+ continue: !def.abort
1027
+ });
1028
+ return;
1029
+ }
1030
+ }
1031
+ if (input < minimum) payload.issues.push({
1032
+ origin: "number",
1033
+ input,
1034
+ code: "too_small",
1035
+ minimum,
1036
+ inclusive: true,
1037
+ inst,
1038
+ continue: !def.abort
1039
+ });
1040
+ if (input > maximum) payload.issues.push({
1041
+ origin: "number",
1042
+ input,
1043
+ code: "too_big",
1044
+ maximum,
1045
+ inclusive: true,
1046
+ inst,
1047
+ continue: !def.abort
1048
+ });
1049
+ };
1050
+ });
1051
+ const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
1052
+ var _a;
1053
+ $ZodCheck.init(inst, def);
1054
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1055
+ const val = payload.value;
1056
+ return !nullish(val) && val.length !== void 0;
1057
+ });
1058
+ inst._zod.onattach.push((inst) => {
1059
+ const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1060
+ if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
1061
+ });
1062
+ inst._zod.check = (payload) => {
1063
+ const input = payload.value;
1064
+ if (input.length <= def.maximum) return;
1065
+ const origin = getLengthableOrigin(input);
1066
+ payload.issues.push({
1067
+ origin,
1068
+ code: "too_big",
1069
+ maximum: def.maximum,
1070
+ inclusive: true,
1071
+ input,
1072
+ inst,
1073
+ continue: !def.abort
1074
+ });
1075
+ };
1076
+ });
1077
+ const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
1078
+ var _a;
1079
+ $ZodCheck.init(inst, def);
1080
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1081
+ const val = payload.value;
1082
+ return !nullish(val) && val.length !== void 0;
1083
+ });
1084
+ inst._zod.onattach.push((inst) => {
1085
+ const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1086
+ if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
1087
+ });
1088
+ inst._zod.check = (payload) => {
1089
+ const input = payload.value;
1090
+ if (input.length >= def.minimum) return;
1091
+ const origin = getLengthableOrigin(input);
1092
+ payload.issues.push({
1093
+ origin,
1094
+ code: "too_small",
1095
+ minimum: def.minimum,
1096
+ inclusive: true,
1097
+ input,
1098
+ inst,
1099
+ continue: !def.abort
1100
+ });
1101
+ };
1102
+ });
1103
+ const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1104
+ var _a;
1105
+ $ZodCheck.init(inst, def);
1106
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1107
+ const val = payload.value;
1108
+ return !nullish(val) && val.length !== void 0;
1109
+ });
1110
+ inst._zod.onattach.push((inst) => {
1111
+ const bag = inst._zod.bag;
1112
+ bag.minimum = def.length;
1113
+ bag.maximum = def.length;
1114
+ bag.length = def.length;
1115
+ });
1116
+ inst._zod.check = (payload) => {
1117
+ const input = payload.value;
1118
+ const length = input.length;
1119
+ if (length === def.length) return;
1120
+ const origin = getLengthableOrigin(input);
1121
+ const tooBig = length > def.length;
1122
+ payload.issues.push({
1123
+ origin,
1124
+ ...tooBig ? {
1125
+ code: "too_big",
1126
+ maximum: def.length
1127
+ } : {
1128
+ code: "too_small",
1129
+ minimum: def.length
1130
+ },
1131
+ inclusive: true,
1132
+ exact: true,
1133
+ input: payload.value,
1134
+ inst,
1135
+ continue: !def.abort
1136
+ });
1137
+ };
1138
+ });
1139
+ const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
1140
+ var _a, _b;
1141
+ $ZodCheck.init(inst, def);
1142
+ inst._zod.onattach.push((inst) => {
1143
+ const bag = inst._zod.bag;
1144
+ bag.format = def.format;
1145
+ if (def.pattern) {
1146
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1147
+ bag.patterns.add(def.pattern);
1148
+ }
1149
+ });
1150
+ if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
1151
+ def.pattern.lastIndex = 0;
1152
+ if (def.pattern.test(payload.value)) return;
1153
+ payload.issues.push({
1154
+ origin: "string",
1155
+ code: "invalid_format",
1156
+ format: def.format,
1157
+ input: payload.value,
1158
+ ...def.pattern ? { pattern: def.pattern.toString() } : {},
1159
+ inst,
1160
+ continue: !def.abort
1161
+ });
1162
+ });
1163
+ else (_b = inst._zod).check ?? (_b.check = () => {});
1164
+ });
1165
+ const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
1166
+ $ZodCheckStringFormat.init(inst, def);
1167
+ inst._zod.check = (payload) => {
1168
+ def.pattern.lastIndex = 0;
1169
+ if (def.pattern.test(payload.value)) return;
1170
+ payload.issues.push({
1171
+ origin: "string",
1172
+ code: "invalid_format",
1173
+ format: "regex",
1174
+ input: payload.value,
1175
+ pattern: def.pattern.toString(),
1176
+ inst,
1177
+ continue: !def.abort
1178
+ });
1179
+ };
1180
+ });
1181
+ const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
1182
+ def.pattern ?? (def.pattern = lowercase);
1183
+ $ZodCheckStringFormat.init(inst, def);
1184
+ });
1185
+ const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
1186
+ def.pattern ?? (def.pattern = uppercase);
1187
+ $ZodCheckStringFormat.init(inst, def);
1188
+ });
1189
+ const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
1190
+ $ZodCheck.init(inst, def);
1191
+ const escapedRegex = escapeRegex(def.includes);
1192
+ const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
1193
+ def.pattern = pattern;
1194
+ inst._zod.onattach.push((inst) => {
1195
+ const bag = inst._zod.bag;
1196
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1197
+ bag.patterns.add(pattern);
1198
+ });
1199
+ inst._zod.check = (payload) => {
1200
+ if (payload.value.includes(def.includes, def.position)) return;
1201
+ payload.issues.push({
1202
+ origin: "string",
1203
+ code: "invalid_format",
1204
+ format: "includes",
1205
+ includes: def.includes,
1206
+ input: payload.value,
1207
+ inst,
1208
+ continue: !def.abort
1209
+ });
1210
+ };
1211
+ });
1212
+ const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
1213
+ $ZodCheck.init(inst, def);
1214
+ const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
1215
+ def.pattern ?? (def.pattern = pattern);
1216
+ inst._zod.onattach.push((inst) => {
1217
+ const bag = inst._zod.bag;
1218
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1219
+ bag.patterns.add(pattern);
1220
+ });
1221
+ inst._zod.check = (payload) => {
1222
+ if (payload.value.startsWith(def.prefix)) return;
1223
+ payload.issues.push({
1224
+ origin: "string",
1225
+ code: "invalid_format",
1226
+ format: "starts_with",
1227
+ prefix: def.prefix,
1228
+ input: payload.value,
1229
+ inst,
1230
+ continue: !def.abort
1231
+ });
1232
+ };
1233
+ });
1234
+ const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
1235
+ $ZodCheck.init(inst, def);
1236
+ const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
1237
+ def.pattern ?? (def.pattern = pattern);
1238
+ inst._zod.onattach.push((inst) => {
1239
+ const bag = inst._zod.bag;
1240
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1241
+ bag.patterns.add(pattern);
1242
+ });
1243
+ inst._zod.check = (payload) => {
1244
+ if (payload.value.endsWith(def.suffix)) return;
1245
+ payload.issues.push({
1246
+ origin: "string",
1247
+ code: "invalid_format",
1248
+ format: "ends_with",
1249
+ suffix: def.suffix,
1250
+ input: payload.value,
1251
+ inst,
1252
+ continue: !def.abort
1253
+ });
1254
+ };
1255
+ });
1256
+ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
1257
+ $ZodCheck.init(inst, def);
1258
+ inst._zod.check = (payload) => {
1259
+ payload.value = def.tx(payload.value);
1260
+ };
1261
+ });
1262
+ //#endregion
1263
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
1264
+ var Doc = class {
1265
+ constructor(args = []) {
1266
+ this.content = [];
1267
+ this.indent = 0;
1268
+ if (this) this.args = args;
1269
+ }
1270
+ indented(fn) {
1271
+ this.indent += 1;
1272
+ fn(this);
1273
+ this.indent -= 1;
1274
+ }
1275
+ write(arg) {
1276
+ if (typeof arg === "function") {
1277
+ arg(this, { execution: "sync" });
1278
+ arg(this, { execution: "async" });
1279
+ return;
1280
+ }
1281
+ const lines = arg.split("\n").filter((x) => x);
1282
+ const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
1283
+ const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
1284
+ for (const line of dedented) this.content.push(line);
1285
+ }
1286
+ compile() {
1287
+ const F = Function;
1288
+ const args = this?.args;
1289
+ const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)];
1290
+ return new F(...args, lines.join("\n"));
1291
+ }
1292
+ };
1293
+ //#endregion
1294
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
1295
+ const version = {
1296
+ major: 4,
1297
+ minor: 4,
1298
+ patch: 3
1299
+ };
1300
+ //#endregion
1301
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
1302
+ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1303
+ var _a;
1304
+ inst ?? (inst = {});
1305
+ inst._zod.def = def;
1306
+ inst._zod.bag = inst._zod.bag || {};
1307
+ inst._zod.version = version;
1308
+ const checks = [...inst._zod.def.checks ?? []];
1309
+ if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
1310
+ for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
1311
+ if (checks.length === 0) {
1312
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
1313
+ inst._zod.deferred?.push(() => {
1314
+ inst._zod.run = inst._zod.parse;
1315
+ });
1316
+ } else {
1317
+ const runChecks = (payload, checks, ctx) => {
1318
+ let isAborted = aborted(payload);
1319
+ let asyncResult;
1320
+ for (const ch of checks) {
1321
+ if (ch._zod.def.when) {
1322
+ if (explicitlyAborted(payload)) continue;
1323
+ if (!ch._zod.def.when(payload)) continue;
1324
+ } else if (isAborted) continue;
1325
+ const currLen = payload.issues.length;
1326
+ const _ = ch._zod.check(payload);
1327
+ if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
1328
+ if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
1329
+ await _;
1330
+ if (payload.issues.length === currLen) return;
1331
+ if (!isAborted) isAborted = aborted(payload, currLen);
1332
+ });
1333
+ else {
1334
+ if (payload.issues.length === currLen) continue;
1335
+ if (!isAborted) isAborted = aborted(payload, currLen);
1336
+ }
1337
+ }
1338
+ if (asyncResult) return asyncResult.then(() => {
1339
+ return payload;
1340
+ });
1341
+ return payload;
1342
+ };
1343
+ const handleCanaryResult = (canary, payload, ctx) => {
1344
+ if (aborted(canary)) {
1345
+ canary.aborted = true;
1346
+ return canary;
1347
+ }
1348
+ const checkResult = runChecks(payload, checks, ctx);
1349
+ if (checkResult instanceof Promise) {
1350
+ if (ctx.async === false) throw new $ZodAsyncError();
1351
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
1352
+ }
1353
+ return inst._zod.parse(checkResult, ctx);
1354
+ };
1355
+ inst._zod.run = (payload, ctx) => {
1356
+ if (ctx.skipChecks) return inst._zod.parse(payload, ctx);
1357
+ if (ctx.direction === "backward") {
1358
+ const canary = inst._zod.parse({
1359
+ value: payload.value,
1360
+ issues: []
1361
+ }, {
1362
+ ...ctx,
1363
+ skipChecks: true
1364
+ });
1365
+ if (canary instanceof Promise) return canary.then((canary) => {
1366
+ return handleCanaryResult(canary, payload, ctx);
1367
+ });
1368
+ return handleCanaryResult(canary, payload, ctx);
1369
+ }
1370
+ const result = inst._zod.parse(payload, ctx);
1371
+ if (result instanceof Promise) {
1372
+ if (ctx.async === false) throw new $ZodAsyncError();
1373
+ return result.then((result) => runChecks(result, checks, ctx));
1374
+ }
1375
+ return runChecks(result, checks, ctx);
1376
+ };
1377
+ }
1378
+ defineLazy(inst, "~standard", () => ({
1379
+ validate: (value) => {
1380
+ try {
1381
+ const r = safeParse$1(inst, value);
1382
+ return r.success ? { value: r.data } : { issues: r.error?.issues };
1383
+ } catch (_) {
1384
+ return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
1385
+ }
1386
+ },
1387
+ vendor: "zod",
1388
+ version: 1
1389
+ }));
1390
+ });
1391
+ const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
1392
+ $ZodType.init(inst, def);
1393
+ inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
1394
+ inst._zod.parse = (payload, _) => {
1395
+ if (def.coerce) try {
1396
+ payload.value = String(payload.value);
1397
+ } catch (_) {}
1398
+ if (typeof payload.value === "string") return payload;
1399
+ payload.issues.push({
1400
+ expected: "string",
1401
+ code: "invalid_type",
1402
+ input: payload.value,
1403
+ inst
1404
+ });
1405
+ return payload;
1406
+ };
1407
+ });
1408
+ const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
1409
+ $ZodCheckStringFormat.init(inst, def);
1410
+ $ZodString.init(inst, def);
1411
+ });
1412
+ const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
1413
+ def.pattern ?? (def.pattern = guid);
1414
+ $ZodStringFormat.init(inst, def);
1415
+ });
1416
+ const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
1417
+ if (def.version) {
1418
+ const v = {
1419
+ v1: 1,
1420
+ v2: 2,
1421
+ v3: 3,
1422
+ v4: 4,
1423
+ v5: 5,
1424
+ v6: 6,
1425
+ v7: 7,
1426
+ v8: 8
1427
+ }[def.version];
1428
+ if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
1429
+ def.pattern ?? (def.pattern = uuid(v));
1430
+ } else def.pattern ?? (def.pattern = uuid());
1431
+ $ZodStringFormat.init(inst, def);
1432
+ });
1433
+ const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
1434
+ def.pattern ?? (def.pattern = email);
1435
+ $ZodStringFormat.init(inst, def);
1436
+ });
1437
+ const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
1438
+ $ZodStringFormat.init(inst, def);
1439
+ inst._zod.check = (payload) => {
1440
+ try {
1441
+ const trimmed = payload.value.trim();
1442
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
1443
+ if (!/^https?:\/\//i.test(trimmed)) {
1444
+ payload.issues.push({
1445
+ code: "invalid_format",
1446
+ format: "url",
1447
+ note: "Invalid URL format",
1448
+ input: payload.value,
1449
+ inst,
1450
+ continue: !def.abort
1451
+ });
1452
+ return;
1453
+ }
1454
+ }
1455
+ const url = new URL(trimmed);
1456
+ if (def.hostname) {
1457
+ def.hostname.lastIndex = 0;
1458
+ if (!def.hostname.test(url.hostname)) payload.issues.push({
1459
+ code: "invalid_format",
1460
+ format: "url",
1461
+ note: "Invalid hostname",
1462
+ pattern: def.hostname.source,
1463
+ input: payload.value,
1464
+ inst,
1465
+ continue: !def.abort
1466
+ });
1467
+ }
1468
+ if (def.protocol) {
1469
+ def.protocol.lastIndex = 0;
1470
+ if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({
1471
+ code: "invalid_format",
1472
+ format: "url",
1473
+ note: "Invalid protocol",
1474
+ pattern: def.protocol.source,
1475
+ input: payload.value,
1476
+ inst,
1477
+ continue: !def.abort
1478
+ });
1479
+ }
1480
+ if (def.normalize) payload.value = url.href;
1481
+ else payload.value = trimmed;
1482
+ return;
1483
+ } catch (_) {
1484
+ payload.issues.push({
1485
+ code: "invalid_format",
1486
+ format: "url",
1487
+ input: payload.value,
1488
+ inst,
1489
+ continue: !def.abort
1490
+ });
1491
+ }
1492
+ };
1493
+ });
1494
+ const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
1495
+ def.pattern ?? (def.pattern = emoji());
1496
+ $ZodStringFormat.init(inst, def);
1497
+ });
1498
+ const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
1499
+ def.pattern ?? (def.pattern = nanoid);
1500
+ $ZodStringFormat.init(inst, def);
1501
+ });
1502
+ /**
1503
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1504
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1505
+ * See https://github.com/paralleldrive/cuid.
1506
+ */
1507
+ const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
1508
+ def.pattern ?? (def.pattern = cuid);
1509
+ $ZodStringFormat.init(inst, def);
1510
+ });
1511
+ const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
1512
+ def.pattern ?? (def.pattern = cuid2);
1513
+ $ZodStringFormat.init(inst, def);
1514
+ });
1515
+ const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
1516
+ def.pattern ?? (def.pattern = ulid);
1517
+ $ZodStringFormat.init(inst, def);
1518
+ });
1519
+ const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
1520
+ def.pattern ?? (def.pattern = xid);
1521
+ $ZodStringFormat.init(inst, def);
1522
+ });
1523
+ const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
1524
+ def.pattern ?? (def.pattern = ksuid);
1525
+ $ZodStringFormat.init(inst, def);
1526
+ });
1527
+ const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
1528
+ def.pattern ?? (def.pattern = datetime$1(def));
1529
+ $ZodStringFormat.init(inst, def);
1530
+ });
1531
+ const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
1532
+ def.pattern ?? (def.pattern = date$1);
1533
+ $ZodStringFormat.init(inst, def);
1534
+ });
1535
+ const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
1536
+ def.pattern ?? (def.pattern = time$1(def));
1537
+ $ZodStringFormat.init(inst, def);
1538
+ });
1539
+ const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
1540
+ def.pattern ?? (def.pattern = duration$1);
1541
+ $ZodStringFormat.init(inst, def);
1542
+ });
1543
+ const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
1544
+ def.pattern ?? (def.pattern = ipv4);
1545
+ $ZodStringFormat.init(inst, def);
1546
+ inst._zod.bag.format = `ipv4`;
1547
+ });
1548
+ const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
1549
+ def.pattern ?? (def.pattern = ipv6);
1550
+ $ZodStringFormat.init(inst, def);
1551
+ inst._zod.bag.format = `ipv6`;
1552
+ inst._zod.check = (payload) => {
1553
+ try {
1554
+ new URL(`http://[${payload.value}]`);
1555
+ } catch {
1556
+ payload.issues.push({
1557
+ code: "invalid_format",
1558
+ format: "ipv6",
1559
+ input: payload.value,
1560
+ inst,
1561
+ continue: !def.abort
1562
+ });
1563
+ }
1564
+ };
1565
+ });
1566
+ const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
1567
+ def.pattern ?? (def.pattern = cidrv4);
1568
+ $ZodStringFormat.init(inst, def);
1569
+ });
1570
+ const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
1571
+ def.pattern ?? (def.pattern = cidrv6);
1572
+ $ZodStringFormat.init(inst, def);
1573
+ inst._zod.check = (payload) => {
1574
+ const parts = payload.value.split("/");
1575
+ try {
1576
+ if (parts.length !== 2) throw new Error();
1577
+ const [address, prefix] = parts;
1578
+ if (!prefix) throw new Error();
1579
+ const prefixNum = Number(prefix);
1580
+ if (`${prefixNum}` !== prefix) throw new Error();
1581
+ if (prefixNum < 0 || prefixNum > 128) throw new Error();
1582
+ new URL(`http://[${address}]`);
1583
+ } catch {
1584
+ payload.issues.push({
1585
+ code: "invalid_format",
1586
+ format: "cidrv6",
1587
+ input: payload.value,
1588
+ inst,
1589
+ continue: !def.abort
1590
+ });
1591
+ }
1592
+ };
1593
+ });
1594
+ function isValidBase64(data) {
1595
+ if (data === "") return true;
1596
+ if (/\s/.test(data)) return false;
1597
+ if (data.length % 4 !== 0) return false;
1598
+ try {
1599
+ atob(data);
1600
+ return true;
1601
+ } catch {
1602
+ return false;
1603
+ }
1604
+ }
1605
+ const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
1606
+ def.pattern ?? (def.pattern = base64);
1607
+ $ZodStringFormat.init(inst, def);
1608
+ inst._zod.bag.contentEncoding = "base64";
1609
+ inst._zod.check = (payload) => {
1610
+ if (isValidBase64(payload.value)) return;
1611
+ payload.issues.push({
1612
+ code: "invalid_format",
1613
+ format: "base64",
1614
+ input: payload.value,
1615
+ inst,
1616
+ continue: !def.abort
1617
+ });
1618
+ };
1619
+ });
1620
+ function isValidBase64URL(data) {
1621
+ if (!base64url.test(data)) return false;
1622
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1623
+ return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
1624
+ }
1625
+ const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
1626
+ def.pattern ?? (def.pattern = base64url);
1627
+ $ZodStringFormat.init(inst, def);
1628
+ inst._zod.bag.contentEncoding = "base64url";
1629
+ inst._zod.check = (payload) => {
1630
+ if (isValidBase64URL(payload.value)) return;
1631
+ payload.issues.push({
1632
+ code: "invalid_format",
1633
+ format: "base64url",
1634
+ input: payload.value,
1635
+ inst,
1636
+ continue: !def.abort
1637
+ });
1638
+ };
1639
+ });
1640
+ const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
1641
+ def.pattern ?? (def.pattern = e164);
1642
+ $ZodStringFormat.init(inst, def);
1643
+ });
1644
+ function isValidJWT(token, algorithm = null) {
1645
+ try {
1646
+ const tokensParts = token.split(".");
1647
+ if (tokensParts.length !== 3) return false;
1648
+ const [header] = tokensParts;
1649
+ if (!header) return false;
1650
+ const parsedHeader = JSON.parse(atob(header));
1651
+ if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
1652
+ if (!parsedHeader.alg) return false;
1653
+ if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) return false;
1654
+ return true;
1655
+ } catch {
1656
+ return false;
1657
+ }
1658
+ }
1659
+ const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
1660
+ $ZodStringFormat.init(inst, def);
1661
+ inst._zod.check = (payload) => {
1662
+ if (isValidJWT(payload.value, def.alg)) return;
1663
+ payload.issues.push({
1664
+ code: "invalid_format",
1665
+ format: "jwt",
1666
+ input: payload.value,
1667
+ inst,
1668
+ continue: !def.abort
1669
+ });
1670
+ };
1671
+ });
1672
+ const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
1673
+ $ZodType.init(inst, def);
1674
+ inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
1675
+ inst._zod.parse = (payload, _ctx) => {
1676
+ if (def.coerce) try {
1677
+ payload.value = Number(payload.value);
1678
+ } catch (_) {}
1679
+ const input = payload.value;
1680
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) return payload;
1681
+ const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
1682
+ payload.issues.push({
1683
+ expected: "number",
1684
+ code: "invalid_type",
1685
+ input,
1686
+ inst,
1687
+ ...received ? { received } : {}
1688
+ });
1689
+ return payload;
1690
+ };
1691
+ });
1692
+ const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
1693
+ $ZodCheckNumberFormat.init(inst, def);
1694
+ $ZodNumber.init(inst, def);
1695
+ });
1696
+ const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
1697
+ $ZodType.init(inst, def);
1698
+ inst._zod.pattern = boolean$1;
1699
+ inst._zod.parse = (payload, _ctx) => {
1700
+ if (def.coerce) try {
1701
+ payload.value = Boolean(payload.value);
1702
+ } catch (_) {}
1703
+ const input = payload.value;
1704
+ if (typeof input === "boolean") return payload;
1705
+ payload.issues.push({
1706
+ expected: "boolean",
1707
+ code: "invalid_type",
1708
+ input,
1709
+ inst
1710
+ });
1711
+ return payload;
1712
+ };
1713
+ });
1714
+ const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
1715
+ $ZodType.init(inst, def);
1716
+ inst._zod.parse = (payload) => payload;
1717
+ });
1718
+ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
1719
+ $ZodType.init(inst, def);
1720
+ inst._zod.parse = (payload, _ctx) => {
1721
+ payload.issues.push({
1722
+ expected: "never",
1723
+ code: "invalid_type",
1724
+ input: payload.value,
1725
+ inst
1726
+ });
1727
+ return payload;
1728
+ };
1729
+ });
1730
+ function handleArrayResult(result, final, index) {
1731
+ if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1732
+ final.value[index] = result.value;
1733
+ }
1734
+ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
1735
+ $ZodType.init(inst, def);
1736
+ inst._zod.parse = (payload, ctx) => {
1737
+ const input = payload.value;
1738
+ if (!Array.isArray(input)) {
1739
+ payload.issues.push({
1740
+ expected: "array",
1741
+ code: "invalid_type",
1742
+ input,
1743
+ inst
1744
+ });
1745
+ return payload;
1746
+ }
1747
+ payload.value = Array(input.length);
1748
+ const proms = [];
1749
+ for (let i = 0; i < input.length; i++) {
1750
+ const item = input[i];
1751
+ const result = def.element._zod.run({
1752
+ value: item,
1753
+ issues: []
1754
+ }, ctx);
1755
+ if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
1756
+ else handleArrayResult(result, payload, i);
1757
+ }
1758
+ if (proms.length) return Promise.all(proms).then(() => payload);
1759
+ return payload;
1760
+ };
1761
+ });
1762
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
1763
+ const isPresent = key in input;
1764
+ if (result.issues.length) {
1765
+ if (isOptionalIn && isOptionalOut && !isPresent) return;
1766
+ final.issues.push(...prefixIssues(key, result.issues));
1767
+ }
1768
+ if (!isPresent && !isOptionalIn) {
1769
+ if (!result.issues.length) final.issues.push({
1770
+ code: "invalid_type",
1771
+ expected: "nonoptional",
1772
+ input: void 0,
1773
+ path: [key]
1774
+ });
1775
+ return;
1776
+ }
1777
+ if (result.value === void 0) {
1778
+ if (isPresent) final.value[key] = void 0;
1779
+ } else final.value[key] = result.value;
1780
+ }
1781
+ function normalizeDef(def) {
1782
+ const keys = Object.keys(def.shape);
1783
+ for (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
1784
+ const okeys = optionalKeys(def.shape);
1785
+ return {
1786
+ ...def,
1787
+ keys,
1788
+ keySet: new Set(keys),
1789
+ numKeys: keys.length,
1790
+ optionalKeys: new Set(okeys)
1791
+ };
1792
+ }
1793
+ function handleCatchall(proms, input, payload, ctx, def, inst) {
1794
+ const unrecognized = [];
1795
+ const keySet = def.keySet;
1796
+ const _catchall = def.catchall._zod;
1797
+ const t = _catchall.def.type;
1798
+ const isOptionalIn = _catchall.optin === "optional";
1799
+ const isOptionalOut = _catchall.optout === "optional";
1800
+ for (const key in input) {
1801
+ if (key === "__proto__") continue;
1802
+ if (keySet.has(key)) continue;
1803
+ if (t === "never") {
1804
+ unrecognized.push(key);
1805
+ continue;
1806
+ }
1807
+ const r = _catchall.run({
1808
+ value: input[key],
1809
+ issues: []
1810
+ }, ctx);
1811
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
1812
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1813
+ }
1814
+ if (unrecognized.length) payload.issues.push({
1815
+ code: "unrecognized_keys",
1816
+ keys: unrecognized,
1817
+ input,
1818
+ inst
1819
+ });
1820
+ if (!proms.length) return payload;
1821
+ return Promise.all(proms).then(() => {
1822
+ return payload;
1823
+ });
1824
+ }
1825
+ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
1826
+ $ZodType.init(inst, def);
1827
+ if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
1828
+ const sh = def.shape;
1829
+ Object.defineProperty(def, "shape", { get: () => {
1830
+ const newSh = { ...sh };
1831
+ Object.defineProperty(def, "shape", { value: newSh });
1832
+ return newSh;
1833
+ } });
1834
+ }
1835
+ const _normalized = cached(() => normalizeDef(def));
1836
+ defineLazy(inst._zod, "propValues", () => {
1837
+ const shape = def.shape;
1838
+ const propValues = {};
1839
+ for (const key in shape) {
1840
+ const field = shape[key]._zod;
1841
+ if (field.values) {
1842
+ propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
1843
+ for (const v of field.values) propValues[key].add(v);
1844
+ }
1845
+ }
1846
+ return propValues;
1847
+ });
1848
+ const isObject$1 = isObject;
1849
+ const catchall = def.catchall;
1850
+ let value;
1851
+ inst._zod.parse = (payload, ctx) => {
1852
+ value ?? (value = _normalized.value);
1853
+ const input = payload.value;
1854
+ if (!isObject$1(input)) {
1855
+ payload.issues.push({
1856
+ expected: "object",
1857
+ code: "invalid_type",
1858
+ input,
1859
+ inst
1860
+ });
1861
+ return payload;
1862
+ }
1863
+ payload.value = {};
1864
+ const proms = [];
1865
+ const shape = value.shape;
1866
+ for (const key of value.keys) {
1867
+ const el = shape[key];
1868
+ const isOptionalIn = el._zod.optin === "optional";
1869
+ const isOptionalOut = el._zod.optout === "optional";
1870
+ const r = el._zod.run({
1871
+ value: input[key],
1872
+ issues: []
1873
+ }, ctx);
1874
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
1875
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1876
+ }
1877
+ if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
1878
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
1879
+ };
1880
+ });
1881
+ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
1882
+ $ZodObject.init(inst, def);
1883
+ const superParse = inst._zod.parse;
1884
+ const _normalized = cached(() => normalizeDef(def));
1885
+ const generateFastpass = (shape) => {
1886
+ const doc = new Doc([
1887
+ "shape",
1888
+ "payload",
1889
+ "ctx"
1890
+ ]);
1891
+ const normalized = _normalized.value;
1892
+ const parseStr = (key) => {
1893
+ const k = esc(key);
1894
+ return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1895
+ };
1896
+ doc.write(`const input = payload.value;`);
1897
+ const ids = Object.create(null);
1898
+ let counter = 0;
1899
+ for (const key of normalized.keys) ids[key] = `key_${counter++}`;
1900
+ doc.write(`const newResult = {};`);
1901
+ for (const key of normalized.keys) {
1902
+ const id = ids[key];
1903
+ const k = esc(key);
1904
+ const schema = shape[key];
1905
+ const isOptionalIn = schema?._zod?.optin === "optional";
1906
+ const isOptionalOut = schema?._zod?.optout === "optional";
1907
+ doc.write(`const ${id} = ${parseStr(key)};`);
1908
+ if (isOptionalIn && isOptionalOut) doc.write(`
1909
+ if (${id}.issues.length) {
1910
+ if (${k} in input) {
1911
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1912
+ ...iss,
1913
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
1914
+ })));
1915
+ }
1916
+ }
1917
+
1918
+ if (${id}.value === undefined) {
1919
+ if (${k} in input) {
1920
+ newResult[${k}] = undefined;
1921
+ }
1922
+ } else {
1923
+ newResult[${k}] = ${id}.value;
1924
+ }
1925
+
1926
+ `);
1927
+ else if (!isOptionalIn) doc.write(`
1928
+ const ${id}_present = ${k} in input;
1929
+ if (${id}.issues.length) {
1930
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1931
+ ...iss,
1932
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
1933
+ })));
1934
+ }
1935
+ if (!${id}_present && !${id}.issues.length) {
1936
+ payload.issues.push({
1937
+ code: "invalid_type",
1938
+ expected: "nonoptional",
1939
+ input: undefined,
1940
+ path: [${k}]
1941
+ });
1942
+ }
1943
+
1944
+ if (${id}_present) {
1945
+ if (${id}.value === undefined) {
1946
+ newResult[${k}] = undefined;
1947
+ } else {
1948
+ newResult[${k}] = ${id}.value;
1949
+ }
1950
+ }
1951
+
1952
+ `);
1953
+ else doc.write(`
1954
+ if (${id}.issues.length) {
1955
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1956
+ ...iss,
1957
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
1958
+ })));
1959
+ }
1960
+
1961
+ if (${id}.value === undefined) {
1962
+ if (${k} in input) {
1963
+ newResult[${k}] = undefined;
1964
+ }
1965
+ } else {
1966
+ newResult[${k}] = ${id}.value;
1967
+ }
1968
+
1969
+ `);
1970
+ }
1971
+ doc.write(`payload.value = newResult;`);
1972
+ doc.write(`return payload;`);
1973
+ const fn = doc.compile();
1974
+ return (payload, ctx) => fn(shape, payload, ctx);
1975
+ };
1976
+ let fastpass;
1977
+ const isObject$2 = isObject;
1978
+ const jit = !globalConfig.jitless;
1979
+ const fastEnabled = jit && allowsEval.value;
1980
+ const catchall = def.catchall;
1981
+ let value;
1982
+ inst._zod.parse = (payload, ctx) => {
1983
+ value ?? (value = _normalized.value);
1984
+ const input = payload.value;
1985
+ if (!isObject$2(input)) {
1986
+ payload.issues.push({
1987
+ expected: "object",
1988
+ code: "invalid_type",
1989
+ input,
1990
+ inst
1991
+ });
1992
+ return payload;
1993
+ }
1994
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
1995
+ if (!fastpass) fastpass = generateFastpass(def.shape);
1996
+ payload = fastpass(payload, ctx);
1997
+ if (!catchall) return payload;
1998
+ return handleCatchall([], input, payload, ctx, value, inst);
1999
+ }
2000
+ return superParse(payload, ctx);
2001
+ };
2002
+ });
2003
+ function handleUnionResults(results, final, inst, ctx) {
2004
+ for (const result of results) if (result.issues.length === 0) {
2005
+ final.value = result.value;
2006
+ return final;
2007
+ }
2008
+ const nonaborted = results.filter((r) => !aborted(r));
2009
+ if (nonaborted.length === 1) {
2010
+ final.value = nonaborted[0].value;
2011
+ return nonaborted[0];
2012
+ }
2013
+ final.issues.push({
2014
+ code: "invalid_union",
2015
+ input: final.value,
2016
+ inst,
2017
+ errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
2018
+ });
2019
+ return final;
2020
+ }
2021
+ const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
2022
+ $ZodType.init(inst, def);
2023
+ defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
2024
+ defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
2025
+ defineLazy(inst._zod, "values", () => {
2026
+ if (def.options.every((o) => o._zod.values)) return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
2027
+ });
2028
+ defineLazy(inst._zod, "pattern", () => {
2029
+ if (def.options.every((o) => o._zod.pattern)) {
2030
+ const patterns = def.options.map((o) => o._zod.pattern);
2031
+ return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
2032
+ }
2033
+ });
2034
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
2035
+ inst._zod.parse = (payload, ctx) => {
2036
+ if (first) return first(payload, ctx);
2037
+ let async = false;
2038
+ const results = [];
2039
+ for (const option of def.options) {
2040
+ const result = option._zod.run({
2041
+ value: payload.value,
2042
+ issues: []
2043
+ }, ctx);
2044
+ if (result instanceof Promise) {
2045
+ results.push(result);
2046
+ async = true;
2047
+ } else {
2048
+ if (result.issues.length === 0) return result;
2049
+ results.push(result);
2050
+ }
2051
+ }
2052
+ if (!async) return handleUnionResults(results, payload, inst, ctx);
2053
+ return Promise.all(results).then((results) => {
2054
+ return handleUnionResults(results, payload, inst, ctx);
2055
+ });
2056
+ };
2057
+ });
2058
+ const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
2059
+ def.inclusive = false;
2060
+ $ZodUnion.init(inst, def);
2061
+ const _super = inst._zod.parse;
2062
+ defineLazy(inst._zod, "propValues", () => {
2063
+ const propValues = {};
2064
+ for (const option of def.options) {
2065
+ const pv = option._zod.propValues;
2066
+ if (!pv || Object.keys(pv).length === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
2067
+ for (const [k, v] of Object.entries(pv)) {
2068
+ if (!propValues[k]) propValues[k] = /* @__PURE__ */ new Set();
2069
+ for (const val of v) propValues[k].add(val);
2070
+ }
2071
+ }
2072
+ return propValues;
2073
+ });
2074
+ const disc = cached(() => {
2075
+ const opts = def.options;
2076
+ const map = /* @__PURE__ */ new Map();
2077
+ for (const o of opts) {
2078
+ const values = o._zod.propValues?.[def.discriminator];
2079
+ if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
2080
+ for (const v of values) {
2081
+ if (map.has(v)) throw new Error(`Duplicate discriminator value "${String(v)}"`);
2082
+ map.set(v, o);
2083
+ }
2084
+ }
2085
+ return map;
2086
+ });
2087
+ inst._zod.parse = (payload, ctx) => {
2088
+ const input = payload.value;
2089
+ if (!isObject(input)) {
2090
+ payload.issues.push({
2091
+ code: "invalid_type",
2092
+ expected: "object",
2093
+ input,
2094
+ inst
2095
+ });
2096
+ return payload;
2097
+ }
2098
+ const opt = disc.value.get(input?.[def.discriminator]);
2099
+ if (opt) return opt._zod.run(payload, ctx);
2100
+ if (def.unionFallback || ctx.direction === "backward") return _super(payload, ctx);
2101
+ payload.issues.push({
2102
+ code: "invalid_union",
2103
+ errors: [],
2104
+ note: "No matching discriminator",
2105
+ discriminator: def.discriminator,
2106
+ options: Array.from(disc.value.keys()),
2107
+ input,
2108
+ path: [def.discriminator],
2109
+ inst
2110
+ });
2111
+ return payload;
2112
+ };
2113
+ });
2114
+ const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
2115
+ $ZodType.init(inst, def);
2116
+ inst._zod.parse = (payload, ctx) => {
2117
+ const input = payload.value;
2118
+ const left = def.left._zod.run({
2119
+ value: input,
2120
+ issues: []
2121
+ }, ctx);
2122
+ const right = def.right._zod.run({
2123
+ value: input,
2124
+ issues: []
2125
+ }, ctx);
2126
+ if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
2127
+ return handleIntersectionResults(payload, left, right);
2128
+ });
2129
+ return handleIntersectionResults(payload, left, right);
2130
+ };
2131
+ });
2132
+ function mergeValues(a, b) {
2133
+ if (a === b) return {
2134
+ valid: true,
2135
+ data: a
2136
+ };
2137
+ if (a instanceof Date && b instanceof Date && +a === +b) return {
2138
+ valid: true,
2139
+ data: a
2140
+ };
2141
+ if (isPlainObject(a) && isPlainObject(b)) {
2142
+ const bKeys = Object.keys(b);
2143
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
2144
+ const newObj = {
2145
+ ...a,
2146
+ ...b
2147
+ };
2148
+ for (const key of sharedKeys) {
2149
+ const sharedValue = mergeValues(a[key], b[key]);
2150
+ if (!sharedValue.valid) return {
2151
+ valid: false,
2152
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
2153
+ };
2154
+ newObj[key] = sharedValue.data;
2155
+ }
2156
+ return {
2157
+ valid: true,
2158
+ data: newObj
2159
+ };
2160
+ }
2161
+ if (Array.isArray(a) && Array.isArray(b)) {
2162
+ if (a.length !== b.length) return {
2163
+ valid: false,
2164
+ mergeErrorPath: []
2165
+ };
2166
+ const newArray = [];
2167
+ for (let index = 0; index < a.length; index++) {
2168
+ const itemA = a[index];
2169
+ const itemB = b[index];
2170
+ const sharedValue = mergeValues(itemA, itemB);
2171
+ if (!sharedValue.valid) return {
2172
+ valid: false,
2173
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
2174
+ };
2175
+ newArray.push(sharedValue.data);
2176
+ }
2177
+ return {
2178
+ valid: true,
2179
+ data: newArray
2180
+ };
2181
+ }
2182
+ return {
2183
+ valid: false,
2184
+ mergeErrorPath: []
2185
+ };
2186
+ }
2187
+ function handleIntersectionResults(result, left, right) {
2188
+ const unrecKeys = /* @__PURE__ */ new Map();
2189
+ let unrecIssue;
2190
+ for (const iss of left.issues) if (iss.code === "unrecognized_keys") {
2191
+ unrecIssue ?? (unrecIssue = iss);
2192
+ for (const k of iss.keys) {
2193
+ if (!unrecKeys.has(k)) unrecKeys.set(k, {});
2194
+ unrecKeys.get(k).l = true;
2195
+ }
2196
+ } else result.issues.push(iss);
2197
+ for (const iss of right.issues) if (iss.code === "unrecognized_keys") for (const k of iss.keys) {
2198
+ if (!unrecKeys.has(k)) unrecKeys.set(k, {});
2199
+ unrecKeys.get(k).r = true;
2200
+ }
2201
+ else result.issues.push(iss);
2202
+ const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
2203
+ if (bothKeys.length && unrecIssue) result.issues.push({
2204
+ ...unrecIssue,
2205
+ keys: bothKeys
2206
+ });
2207
+ if (aborted(result)) return result;
2208
+ const merged = mergeValues(left.value, right.value);
2209
+ if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
2210
+ result.value = merged.data;
2211
+ return result;
2212
+ }
2213
+ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
2214
+ $ZodType.init(inst, def);
2215
+ inst._zod.parse = (payload, ctx) => {
2216
+ const input = payload.value;
2217
+ if (!isPlainObject(input)) {
2218
+ payload.issues.push({
2219
+ expected: "record",
2220
+ code: "invalid_type",
2221
+ input,
2222
+ inst
2223
+ });
2224
+ return payload;
2225
+ }
2226
+ const proms = [];
2227
+ const values = def.keyType._zod.values;
2228
+ if (values) {
2229
+ payload.value = {};
2230
+ const recordKeys = /* @__PURE__ */ new Set();
2231
+ for (const key of values) if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
2232
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
2233
+ const keyResult = def.keyType._zod.run({
2234
+ value: key,
2235
+ issues: []
2236
+ }, ctx);
2237
+ if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
2238
+ if (keyResult.issues.length) {
2239
+ payload.issues.push({
2240
+ code: "invalid_key",
2241
+ origin: "record",
2242
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
2243
+ input: key,
2244
+ path: [key],
2245
+ inst
2246
+ });
2247
+ continue;
2248
+ }
2249
+ const outKey = keyResult.value;
2250
+ const result = def.valueType._zod.run({
2251
+ value: input[key],
2252
+ issues: []
2253
+ }, ctx);
2254
+ if (result instanceof Promise) proms.push(result.then((result) => {
2255
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2256
+ payload.value[outKey] = result.value;
2257
+ }));
2258
+ else {
2259
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2260
+ payload.value[outKey] = result.value;
2261
+ }
2262
+ }
2263
+ let unrecognized;
2264
+ for (const key in input) if (!recordKeys.has(key)) {
2265
+ unrecognized = unrecognized ?? [];
2266
+ unrecognized.push(key);
2267
+ }
2268
+ if (unrecognized && unrecognized.length > 0) payload.issues.push({
2269
+ code: "unrecognized_keys",
2270
+ input,
2271
+ inst,
2272
+ keys: unrecognized
2273
+ });
2274
+ } else {
2275
+ payload.value = {};
2276
+ for (const key of Reflect.ownKeys(input)) {
2277
+ if (key === "__proto__") continue;
2278
+ if (!Object.prototype.propertyIsEnumerable.call(input, key)) continue;
2279
+ let keyResult = def.keyType._zod.run({
2280
+ value: key,
2281
+ issues: []
2282
+ }, ctx);
2283
+ if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
2284
+ if (typeof key === "string" && number$1.test(key) && keyResult.issues.length) {
2285
+ const retryResult = def.keyType._zod.run({
2286
+ value: Number(key),
2287
+ issues: []
2288
+ }, ctx);
2289
+ if (retryResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
2290
+ if (retryResult.issues.length === 0) keyResult = retryResult;
2291
+ }
2292
+ if (keyResult.issues.length) {
2293
+ if (def.mode === "loose") payload.value[key] = input[key];
2294
+ else payload.issues.push({
2295
+ code: "invalid_key",
2296
+ origin: "record",
2297
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
2298
+ input: key,
2299
+ path: [key],
2300
+ inst
2301
+ });
2302
+ continue;
2303
+ }
2304
+ const result = def.valueType._zod.run({
2305
+ value: input[key],
2306
+ issues: []
2307
+ }, ctx);
2308
+ if (result instanceof Promise) proms.push(result.then((result) => {
2309
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2310
+ payload.value[keyResult.value] = result.value;
2311
+ }));
2312
+ else {
2313
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2314
+ payload.value[keyResult.value] = result.value;
2315
+ }
2316
+ }
2317
+ }
2318
+ if (proms.length) return Promise.all(proms).then(() => payload);
2319
+ return payload;
2320
+ };
2321
+ });
2322
+ const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
2323
+ $ZodType.init(inst, def);
2324
+ const values = getEnumValues(def.entries);
2325
+ const valuesSet = new Set(values);
2326
+ inst._zod.values = valuesSet;
2327
+ inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
2328
+ inst._zod.parse = (payload, _ctx) => {
2329
+ const input = payload.value;
2330
+ if (valuesSet.has(input)) return payload;
2331
+ payload.issues.push({
2332
+ code: "invalid_value",
2333
+ values,
2334
+ input,
2335
+ inst
2336
+ });
2337
+ return payload;
2338
+ };
2339
+ });
2340
+ const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
2341
+ $ZodType.init(inst, def);
2342
+ if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
2343
+ const values = new Set(def.values);
2344
+ inst._zod.values = values;
2345
+ inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
2346
+ inst._zod.parse = (payload, _ctx) => {
2347
+ const input = payload.value;
2348
+ if (values.has(input)) return payload;
2349
+ payload.issues.push({
2350
+ code: "invalid_value",
2351
+ values: def.values,
2352
+ input,
2353
+ inst
2354
+ });
2355
+ return payload;
2356
+ };
2357
+ });
2358
+ const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
2359
+ $ZodType.init(inst, def);
2360
+ inst._zod.optin = "optional";
2361
+ inst._zod.parse = (payload, ctx) => {
2362
+ if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
2363
+ const _out = def.transform(payload.value, payload);
2364
+ if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
2365
+ payload.value = output;
2366
+ payload.fallback = true;
2367
+ return payload;
2368
+ });
2369
+ if (_out instanceof Promise) throw new $ZodAsyncError();
2370
+ payload.value = _out;
2371
+ payload.fallback = true;
2372
+ return payload;
2373
+ };
2374
+ });
2375
+ function handleOptionalResult(result, input) {
2376
+ if (input === void 0 && (result.issues.length || result.fallback)) return {
2377
+ issues: [],
2378
+ value: void 0
2379
+ };
2380
+ return result;
2381
+ }
2382
+ const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
2383
+ $ZodType.init(inst, def);
2384
+ inst._zod.optin = "optional";
2385
+ inst._zod.optout = "optional";
2386
+ defineLazy(inst._zod, "values", () => {
2387
+ return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
2388
+ });
2389
+ defineLazy(inst._zod, "pattern", () => {
2390
+ const pattern = def.innerType._zod.pattern;
2391
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
2392
+ });
2393
+ inst._zod.parse = (payload, ctx) => {
2394
+ if (def.innerType._zod.optin === "optional") {
2395
+ const input = payload.value;
2396
+ const result = def.innerType._zod.run(payload, ctx);
2397
+ if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, input));
2398
+ return handleOptionalResult(result, input);
2399
+ }
2400
+ if (payload.value === void 0) return payload;
2401
+ return def.innerType._zod.run(payload, ctx);
2402
+ };
2403
+ });
2404
+ const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
2405
+ $ZodOptional.init(inst, def);
2406
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2407
+ defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
2408
+ inst._zod.parse = (payload, ctx) => {
2409
+ return def.innerType._zod.run(payload, ctx);
2410
+ };
2411
+ });
2412
+ const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
2413
+ $ZodType.init(inst, def);
2414
+ defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
2415
+ defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
2416
+ defineLazy(inst._zod, "pattern", () => {
2417
+ const pattern = def.innerType._zod.pattern;
2418
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
2419
+ });
2420
+ defineLazy(inst._zod, "values", () => {
2421
+ return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
2422
+ });
2423
+ inst._zod.parse = (payload, ctx) => {
2424
+ if (payload.value === null) return payload;
2425
+ return def.innerType._zod.run(payload, ctx);
2426
+ };
2427
+ });
2428
+ const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
2429
+ $ZodType.init(inst, def);
2430
+ inst._zod.optin = "optional";
2431
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2432
+ inst._zod.parse = (payload, ctx) => {
2433
+ if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
2434
+ if (payload.value === void 0) {
2435
+ payload.value = def.defaultValue;
2436
+ /**
2437
+ * $ZodDefault returns the default value immediately in forward direction.
2438
+ * 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. */
2439
+ return payload;
2440
+ }
2441
+ const result = def.innerType._zod.run(payload, ctx);
2442
+ if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
2443
+ return handleDefaultResult(result, def);
2444
+ };
2445
+ });
2446
+ function handleDefaultResult(payload, def) {
2447
+ if (payload.value === void 0) payload.value = def.defaultValue;
2448
+ return payload;
2449
+ }
2450
+ const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
2451
+ $ZodType.init(inst, def);
2452
+ inst._zod.optin = "optional";
2453
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2454
+ inst._zod.parse = (payload, ctx) => {
2455
+ if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
2456
+ if (payload.value === void 0) payload.value = def.defaultValue;
2457
+ return def.innerType._zod.run(payload, ctx);
2458
+ };
2459
+ });
2460
+ const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
2461
+ $ZodType.init(inst, def);
2462
+ defineLazy(inst._zod, "values", () => {
2463
+ const v = def.innerType._zod.values;
2464
+ return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
2465
+ });
2466
+ inst._zod.parse = (payload, ctx) => {
2467
+ const result = def.innerType._zod.run(payload, ctx);
2468
+ if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
2469
+ return handleNonOptionalResult(result, inst);
2470
+ };
2471
+ });
2472
+ function handleNonOptionalResult(payload, inst) {
2473
+ if (!payload.issues.length && payload.value === void 0) payload.issues.push({
2474
+ code: "invalid_type",
2475
+ expected: "nonoptional",
2476
+ input: payload.value,
2477
+ inst
2478
+ });
2479
+ return payload;
2480
+ }
2481
+ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
2482
+ $ZodType.init(inst, def);
2483
+ inst._zod.optin = "optional";
2484
+ defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
2485
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2486
+ inst._zod.parse = (payload, ctx) => {
2487
+ if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
2488
+ const result = def.innerType._zod.run(payload, ctx);
2489
+ if (result instanceof Promise) return result.then((result) => {
2490
+ payload.value = result.value;
2491
+ if (result.issues.length) {
2492
+ payload.value = def.catchValue({
2493
+ ...payload,
2494
+ error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
2495
+ input: payload.value
2496
+ });
2497
+ payload.issues = [];
2498
+ payload.fallback = true;
2499
+ }
2500
+ return payload;
2501
+ });
2502
+ payload.value = result.value;
2503
+ if (result.issues.length) {
2504
+ payload.value = def.catchValue({
2505
+ ...payload,
2506
+ error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
2507
+ input: payload.value
2508
+ });
2509
+ payload.issues = [];
2510
+ payload.fallback = true;
2511
+ }
2512
+ return payload;
2513
+ };
2514
+ });
2515
+ const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
2516
+ $ZodType.init(inst, def);
2517
+ defineLazy(inst._zod, "values", () => def.in._zod.values);
2518
+ defineLazy(inst._zod, "optin", () => def.in._zod.optin);
2519
+ defineLazy(inst._zod, "optout", () => def.out._zod.optout);
2520
+ defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
2521
+ inst._zod.parse = (payload, ctx) => {
2522
+ if (ctx.direction === "backward") {
2523
+ const right = def.out._zod.run(payload, ctx);
2524
+ if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
2525
+ return handlePipeResult(right, def.in, ctx);
2526
+ }
2527
+ const left = def.in._zod.run(payload, ctx);
2528
+ if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
2529
+ return handlePipeResult(left, def.out, ctx);
2530
+ };
2531
+ });
2532
+ function handlePipeResult(left, next, ctx) {
2533
+ if (left.issues.length) {
2534
+ left.aborted = true;
2535
+ return left;
2536
+ }
2537
+ return next._zod.run({
2538
+ value: left.value,
2539
+ issues: left.issues,
2540
+ fallback: left.fallback
2541
+ }, ctx);
2542
+ }
2543
+ const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
2544
+ $ZodType.init(inst, def);
2545
+ defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
2546
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2547
+ defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
2548
+ defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
2549
+ inst._zod.parse = (payload, ctx) => {
2550
+ if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
2551
+ const result = def.innerType._zod.run(payload, ctx);
2552
+ if (result instanceof Promise) return result.then(handleReadonlyResult);
2553
+ return handleReadonlyResult(result);
2554
+ };
2555
+ });
2556
+ function handleReadonlyResult(payload) {
2557
+ payload.value = Object.freeze(payload.value);
2558
+ return payload;
2559
+ }
2560
+ const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
2561
+ $ZodCheck.init(inst, def);
2562
+ $ZodType.init(inst, def);
2563
+ inst._zod.parse = (payload, _) => {
2564
+ return payload;
2565
+ };
2566
+ inst._zod.check = (payload) => {
2567
+ const input = payload.value;
2568
+ const r = def.fn(input);
2569
+ if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
2570
+ handleRefineResult(r, payload, input, inst);
2571
+ };
2572
+ });
2573
+ function handleRefineResult(result, payload, input, inst) {
2574
+ if (!result) {
2575
+ const _iss = {
2576
+ code: "custom",
2577
+ input,
2578
+ inst,
2579
+ path: [...inst._zod.def.path ?? []],
2580
+ continue: !inst._zod.def.abort
2581
+ };
2582
+ if (inst._zod.def.params) _iss.params = inst._zod.def.params;
2583
+ payload.issues.push(issue(_iss));
2584
+ }
2585
+ }
2586
+ //#endregion
2587
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
2588
+ var _a;
2589
+ var $ZodRegistry = class {
2590
+ constructor() {
2591
+ this._map = /* @__PURE__ */ new WeakMap();
2592
+ this._idmap = /* @__PURE__ */ new Map();
2593
+ }
2594
+ add(schema, ..._meta) {
2595
+ const meta = _meta[0];
2596
+ this._map.set(schema, meta);
2597
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
2598
+ return this;
2599
+ }
2600
+ clear() {
2601
+ this._map = /* @__PURE__ */ new WeakMap();
2602
+ this._idmap = /* @__PURE__ */ new Map();
2603
+ return this;
2604
+ }
2605
+ remove(schema) {
2606
+ const meta = this._map.get(schema);
2607
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
2608
+ this._map.delete(schema);
2609
+ return this;
2610
+ }
2611
+ get(schema) {
2612
+ const p = schema._zod.parent;
2613
+ if (p) {
2614
+ const pm = { ...this.get(p) ?? {} };
2615
+ delete pm.id;
2616
+ const f = {
2617
+ ...pm,
2618
+ ...this._map.get(schema)
2619
+ };
2620
+ return Object.keys(f).length ? f : void 0;
2621
+ }
2622
+ return this._map.get(schema);
2623
+ }
2624
+ has(schema) {
2625
+ return this._map.has(schema);
2626
+ }
2627
+ };
2628
+ function registry() {
2629
+ return new $ZodRegistry();
2630
+ }
2631
+ (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
2632
+ const globalRegistry = globalThis.__zod_globalRegistry;
2633
+ //#endregion
2634
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
2635
+ // @__NO_SIDE_EFFECTS__
2636
+ function _string(Class, params) {
2637
+ return new Class({
2638
+ type: "string",
2639
+ ...normalizeParams(params)
2640
+ });
2641
+ }
2642
+ // @__NO_SIDE_EFFECTS__
2643
+ function _email(Class, params) {
2644
+ return new Class({
2645
+ type: "string",
2646
+ format: "email",
2647
+ check: "string_format",
2648
+ abort: false,
2649
+ ...normalizeParams(params)
2650
+ });
2651
+ }
2652
+ // @__NO_SIDE_EFFECTS__
2653
+ function _guid(Class, params) {
2654
+ return new Class({
2655
+ type: "string",
2656
+ format: "guid",
2657
+ check: "string_format",
2658
+ abort: false,
2659
+ ...normalizeParams(params)
2660
+ });
2661
+ }
2662
+ // @__NO_SIDE_EFFECTS__
2663
+ function _uuid(Class, params) {
2664
+ return new Class({
2665
+ type: "string",
2666
+ format: "uuid",
2667
+ check: "string_format",
2668
+ abort: false,
2669
+ ...normalizeParams(params)
2670
+ });
2671
+ }
2672
+ // @__NO_SIDE_EFFECTS__
2673
+ function _uuidv4(Class, params) {
2674
+ return new Class({
2675
+ type: "string",
2676
+ format: "uuid",
2677
+ check: "string_format",
2678
+ abort: false,
2679
+ version: "v4",
2680
+ ...normalizeParams(params)
2681
+ });
2682
+ }
2683
+ // @__NO_SIDE_EFFECTS__
2684
+ function _uuidv6(Class, params) {
2685
+ return new Class({
2686
+ type: "string",
2687
+ format: "uuid",
2688
+ check: "string_format",
2689
+ abort: false,
2690
+ version: "v6",
2691
+ ...normalizeParams(params)
2692
+ });
2693
+ }
2694
+ // @__NO_SIDE_EFFECTS__
2695
+ function _uuidv7(Class, params) {
2696
+ return new Class({
2697
+ type: "string",
2698
+ format: "uuid",
2699
+ check: "string_format",
2700
+ abort: false,
2701
+ version: "v7",
2702
+ ...normalizeParams(params)
2703
+ });
2704
+ }
2705
+ // @__NO_SIDE_EFFECTS__
2706
+ function _url(Class, params) {
2707
+ return new Class({
2708
+ type: "string",
2709
+ format: "url",
2710
+ check: "string_format",
2711
+ abort: false,
2712
+ ...normalizeParams(params)
2713
+ });
2714
+ }
2715
+ // @__NO_SIDE_EFFECTS__
2716
+ function _emoji(Class, params) {
2717
+ return new Class({
2718
+ type: "string",
2719
+ format: "emoji",
2720
+ check: "string_format",
2721
+ abort: false,
2722
+ ...normalizeParams(params)
2723
+ });
2724
+ }
2725
+ // @__NO_SIDE_EFFECTS__
2726
+ function _nanoid(Class, params) {
2727
+ return new Class({
2728
+ type: "string",
2729
+ format: "nanoid",
2730
+ check: "string_format",
2731
+ abort: false,
2732
+ ...normalizeParams(params)
2733
+ });
2734
+ }
2735
+ /**
2736
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2737
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
2738
+ * See https://github.com/paralleldrive/cuid.
2739
+ */
2740
+ // @__NO_SIDE_EFFECTS__
2741
+ function _cuid(Class, params) {
2742
+ return new Class({
2743
+ type: "string",
2744
+ format: "cuid",
2745
+ check: "string_format",
2746
+ abort: false,
2747
+ ...normalizeParams(params)
2748
+ });
2749
+ }
2750
+ // @__NO_SIDE_EFFECTS__
2751
+ function _cuid2(Class, params) {
2752
+ return new Class({
2753
+ type: "string",
2754
+ format: "cuid2",
2755
+ check: "string_format",
2756
+ abort: false,
2757
+ ...normalizeParams(params)
2758
+ });
2759
+ }
2760
+ // @__NO_SIDE_EFFECTS__
2761
+ function _ulid(Class, params) {
2762
+ return new Class({
2763
+ type: "string",
2764
+ format: "ulid",
2765
+ check: "string_format",
2766
+ abort: false,
2767
+ ...normalizeParams(params)
2768
+ });
2769
+ }
2770
+ // @__NO_SIDE_EFFECTS__
2771
+ function _xid(Class, params) {
2772
+ return new Class({
2773
+ type: "string",
2774
+ format: "xid",
2775
+ check: "string_format",
2776
+ abort: false,
2777
+ ...normalizeParams(params)
2778
+ });
2779
+ }
2780
+ // @__NO_SIDE_EFFECTS__
2781
+ function _ksuid(Class, params) {
2782
+ return new Class({
2783
+ type: "string",
2784
+ format: "ksuid",
2785
+ check: "string_format",
2786
+ abort: false,
2787
+ ...normalizeParams(params)
2788
+ });
2789
+ }
2790
+ // @__NO_SIDE_EFFECTS__
2791
+ function _ipv4(Class, params) {
2792
+ return new Class({
2793
+ type: "string",
2794
+ format: "ipv4",
2795
+ check: "string_format",
2796
+ abort: false,
2797
+ ...normalizeParams(params)
2798
+ });
2799
+ }
2800
+ // @__NO_SIDE_EFFECTS__
2801
+ function _ipv6(Class, params) {
2802
+ return new Class({
2803
+ type: "string",
2804
+ format: "ipv6",
2805
+ check: "string_format",
2806
+ abort: false,
2807
+ ...normalizeParams(params)
2808
+ });
2809
+ }
2810
+ // @__NO_SIDE_EFFECTS__
2811
+ function _cidrv4(Class, params) {
2812
+ return new Class({
2813
+ type: "string",
2814
+ format: "cidrv4",
2815
+ check: "string_format",
2816
+ abort: false,
2817
+ ...normalizeParams(params)
2818
+ });
2819
+ }
2820
+ // @__NO_SIDE_EFFECTS__
2821
+ function _cidrv6(Class, params) {
2822
+ return new Class({
2823
+ type: "string",
2824
+ format: "cidrv6",
2825
+ check: "string_format",
2826
+ abort: false,
2827
+ ...normalizeParams(params)
2828
+ });
2829
+ }
2830
+ // @__NO_SIDE_EFFECTS__
2831
+ function _base64(Class, params) {
2832
+ return new Class({
2833
+ type: "string",
2834
+ format: "base64",
2835
+ check: "string_format",
2836
+ abort: false,
2837
+ ...normalizeParams(params)
2838
+ });
2839
+ }
2840
+ // @__NO_SIDE_EFFECTS__
2841
+ function _base64url(Class, params) {
2842
+ return new Class({
2843
+ type: "string",
2844
+ format: "base64url",
2845
+ check: "string_format",
2846
+ abort: false,
2847
+ ...normalizeParams(params)
2848
+ });
2849
+ }
2850
+ // @__NO_SIDE_EFFECTS__
2851
+ function _e164(Class, params) {
2852
+ return new Class({
2853
+ type: "string",
2854
+ format: "e164",
2855
+ check: "string_format",
2856
+ abort: false,
2857
+ ...normalizeParams(params)
2858
+ });
2859
+ }
2860
+ // @__NO_SIDE_EFFECTS__
2861
+ function _jwt(Class, params) {
2862
+ return new Class({
2863
+ type: "string",
2864
+ format: "jwt",
2865
+ check: "string_format",
2866
+ abort: false,
2867
+ ...normalizeParams(params)
2868
+ });
2869
+ }
2870
+ // @__NO_SIDE_EFFECTS__
2871
+ function _isoDateTime(Class, params) {
2872
+ return new Class({
2873
+ type: "string",
2874
+ format: "datetime",
2875
+ check: "string_format",
2876
+ offset: false,
2877
+ local: false,
2878
+ precision: null,
2879
+ ...normalizeParams(params)
2880
+ });
2881
+ }
2882
+ // @__NO_SIDE_EFFECTS__
2883
+ function _isoDate(Class, params) {
2884
+ return new Class({
2885
+ type: "string",
2886
+ format: "date",
2887
+ check: "string_format",
2888
+ ...normalizeParams(params)
2889
+ });
2890
+ }
2891
+ // @__NO_SIDE_EFFECTS__
2892
+ function _isoTime(Class, params) {
2893
+ return new Class({
2894
+ type: "string",
2895
+ format: "time",
2896
+ check: "string_format",
2897
+ precision: null,
2898
+ ...normalizeParams(params)
2899
+ });
2900
+ }
2901
+ // @__NO_SIDE_EFFECTS__
2902
+ function _isoDuration(Class, params) {
2903
+ return new Class({
2904
+ type: "string",
2905
+ format: "duration",
2906
+ check: "string_format",
2907
+ ...normalizeParams(params)
2908
+ });
2909
+ }
2910
+ // @__NO_SIDE_EFFECTS__
2911
+ function _number(Class, params) {
2912
+ return new Class({
2913
+ type: "number",
2914
+ checks: [],
2915
+ ...normalizeParams(params)
2916
+ });
2917
+ }
2918
+ // @__NO_SIDE_EFFECTS__
2919
+ function _int(Class, params) {
2920
+ return new Class({
2921
+ type: "number",
2922
+ check: "number_format",
2923
+ abort: false,
2924
+ format: "safeint",
2925
+ ...normalizeParams(params)
2926
+ });
2927
+ }
2928
+ // @__NO_SIDE_EFFECTS__
2929
+ function _boolean(Class, params) {
2930
+ return new Class({
2931
+ type: "boolean",
2932
+ ...normalizeParams(params)
2933
+ });
2934
+ }
2935
+ // @__NO_SIDE_EFFECTS__
2936
+ function _unknown(Class) {
2937
+ return new Class({ type: "unknown" });
2938
+ }
2939
+ // @__NO_SIDE_EFFECTS__
2940
+ function _never(Class, params) {
2941
+ return new Class({
2942
+ type: "never",
2943
+ ...normalizeParams(params)
2944
+ });
2945
+ }
2946
+ // @__NO_SIDE_EFFECTS__
2947
+ function _lt(value, params) {
2948
+ return new $ZodCheckLessThan({
2949
+ check: "less_than",
2950
+ ...normalizeParams(params),
2951
+ value,
2952
+ inclusive: false
2953
+ });
2954
+ }
2955
+ // @__NO_SIDE_EFFECTS__
2956
+ function _lte(value, params) {
2957
+ return new $ZodCheckLessThan({
2958
+ check: "less_than",
2959
+ ...normalizeParams(params),
2960
+ value,
2961
+ inclusive: true
2962
+ });
2963
+ }
2964
+ // @__NO_SIDE_EFFECTS__
2965
+ function _gt(value, params) {
2966
+ return new $ZodCheckGreaterThan({
2967
+ check: "greater_than",
2968
+ ...normalizeParams(params),
2969
+ value,
2970
+ inclusive: false
2971
+ });
2972
+ }
2973
+ // @__NO_SIDE_EFFECTS__
2974
+ function _gte(value, params) {
2975
+ return new $ZodCheckGreaterThan({
2976
+ check: "greater_than",
2977
+ ...normalizeParams(params),
2978
+ value,
2979
+ inclusive: true
2980
+ });
2981
+ }
2982
+ // @__NO_SIDE_EFFECTS__
2983
+ function _multipleOf(value, params) {
2984
+ return new $ZodCheckMultipleOf({
2985
+ check: "multiple_of",
2986
+ ...normalizeParams(params),
2987
+ value
2988
+ });
2989
+ }
2990
+ // @__NO_SIDE_EFFECTS__
2991
+ function _maxLength(maximum, params) {
2992
+ return new $ZodCheckMaxLength({
2993
+ check: "max_length",
2994
+ ...normalizeParams(params),
2995
+ maximum
2996
+ });
2997
+ }
2998
+ // @__NO_SIDE_EFFECTS__
2999
+ function _minLength(minimum, params) {
3000
+ return new $ZodCheckMinLength({
3001
+ check: "min_length",
3002
+ ...normalizeParams(params),
3003
+ minimum
3004
+ });
3005
+ }
3006
+ // @__NO_SIDE_EFFECTS__
3007
+ function _length(length, params) {
3008
+ return new $ZodCheckLengthEquals({
3009
+ check: "length_equals",
3010
+ ...normalizeParams(params),
3011
+ length
3012
+ });
3013
+ }
3014
+ // @__NO_SIDE_EFFECTS__
3015
+ function _regex(pattern, params) {
3016
+ return new $ZodCheckRegex({
3017
+ check: "string_format",
3018
+ format: "regex",
3019
+ ...normalizeParams(params),
3020
+ pattern
3021
+ });
3022
+ }
3023
+ // @__NO_SIDE_EFFECTS__
3024
+ function _lowercase(params) {
3025
+ return new $ZodCheckLowerCase({
3026
+ check: "string_format",
3027
+ format: "lowercase",
3028
+ ...normalizeParams(params)
3029
+ });
3030
+ }
3031
+ // @__NO_SIDE_EFFECTS__
3032
+ function _uppercase(params) {
3033
+ return new $ZodCheckUpperCase({
3034
+ check: "string_format",
3035
+ format: "uppercase",
3036
+ ...normalizeParams(params)
3037
+ });
3038
+ }
3039
+ // @__NO_SIDE_EFFECTS__
3040
+ function _includes(includes, params) {
3041
+ return new $ZodCheckIncludes({
3042
+ check: "string_format",
3043
+ format: "includes",
3044
+ ...normalizeParams(params),
3045
+ includes
3046
+ });
3047
+ }
3048
+ // @__NO_SIDE_EFFECTS__
3049
+ function _startsWith(prefix, params) {
3050
+ return new $ZodCheckStartsWith({
3051
+ check: "string_format",
3052
+ format: "starts_with",
3053
+ ...normalizeParams(params),
3054
+ prefix
3055
+ });
3056
+ }
3057
+ // @__NO_SIDE_EFFECTS__
3058
+ function _endsWith(suffix, params) {
3059
+ return new $ZodCheckEndsWith({
3060
+ check: "string_format",
3061
+ format: "ends_with",
3062
+ ...normalizeParams(params),
3063
+ suffix
3064
+ });
3065
+ }
3066
+ // @__NO_SIDE_EFFECTS__
3067
+ function _overwrite(tx) {
3068
+ return new $ZodCheckOverwrite({
3069
+ check: "overwrite",
3070
+ tx
3071
+ });
3072
+ }
3073
+ // @__NO_SIDE_EFFECTS__
3074
+ function _normalize(form) {
3075
+ return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
3076
+ }
3077
+ // @__NO_SIDE_EFFECTS__
3078
+ function _trim() {
3079
+ return /* @__PURE__ */ _overwrite((input) => input.trim());
3080
+ }
3081
+ // @__NO_SIDE_EFFECTS__
3082
+ function _toLowerCase() {
3083
+ return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
3084
+ }
3085
+ // @__NO_SIDE_EFFECTS__
3086
+ function _toUpperCase() {
3087
+ return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
3088
+ }
3089
+ // @__NO_SIDE_EFFECTS__
3090
+ function _slugify() {
3091
+ return /* @__PURE__ */ _overwrite((input) => slugify(input));
3092
+ }
3093
+ // @__NO_SIDE_EFFECTS__
3094
+ function _array(Class, element, params) {
3095
+ return new Class({
3096
+ type: "array",
3097
+ element,
3098
+ ...normalizeParams(params)
3099
+ });
3100
+ }
3101
+ // @__NO_SIDE_EFFECTS__
3102
+ function _refine(Class, fn, _params) {
3103
+ return new Class({
3104
+ type: "custom",
3105
+ check: "custom",
3106
+ fn,
3107
+ ...normalizeParams(_params)
3108
+ });
3109
+ }
3110
+ // @__NO_SIDE_EFFECTS__
3111
+ function _superRefine(fn, params) {
3112
+ const ch = /* @__PURE__ */ _check((payload) => {
3113
+ payload.addIssue = (issue$2) => {
3114
+ if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
3115
+ else {
3116
+ const _issue = issue$2;
3117
+ if (_issue.fatal) _issue.continue = false;
3118
+ _issue.code ?? (_issue.code = "custom");
3119
+ _issue.input ?? (_issue.input = payload.value);
3120
+ _issue.inst ?? (_issue.inst = ch);
3121
+ _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
3122
+ payload.issues.push(issue(_issue));
3123
+ }
3124
+ };
3125
+ return fn(payload.value, payload);
3126
+ }, params);
3127
+ return ch;
3128
+ }
3129
+ // @__NO_SIDE_EFFECTS__
3130
+ function _check(fn, params) {
3131
+ const ch = new $ZodCheck({
3132
+ check: "custom",
3133
+ ...normalizeParams(params)
3134
+ });
3135
+ ch._zod.check = fn;
3136
+ return ch;
3137
+ }
3138
+ //#endregion
3139
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
3140
+ function initializeContext(params) {
3141
+ let target = params?.target ?? "draft-2020-12";
3142
+ if (target === "draft-4") target = "draft-04";
3143
+ if (target === "draft-7") target = "draft-07";
3144
+ return {
3145
+ processors: params.processors ?? {},
3146
+ metadataRegistry: params?.metadata ?? globalRegistry,
3147
+ target,
3148
+ unrepresentable: params?.unrepresentable ?? "throw",
3149
+ override: params?.override ?? (() => {}),
3150
+ io: params?.io ?? "output",
3151
+ counter: 0,
3152
+ seen: /* @__PURE__ */ new Map(),
3153
+ cycles: params?.cycles ?? "ref",
3154
+ reused: params?.reused ?? "inline",
3155
+ external: params?.external ?? void 0
3156
+ };
3157
+ }
3158
+ function process$1(schema, ctx, _params = {
3159
+ path: [],
3160
+ schemaPath: []
3161
+ }) {
3162
+ var _a;
3163
+ const def = schema._zod.def;
3164
+ const seen = ctx.seen.get(schema);
3165
+ if (seen) {
3166
+ seen.count++;
3167
+ if (_params.schemaPath.includes(schema)) seen.cycle = _params.path;
3168
+ return seen.schema;
3169
+ }
3170
+ const result = {
3171
+ schema: {},
3172
+ count: 1,
3173
+ cycle: void 0,
3174
+ path: _params.path
3175
+ };
3176
+ ctx.seen.set(schema, result);
3177
+ const overrideSchema = schema._zod.toJSONSchema?.();
3178
+ if (overrideSchema) result.schema = overrideSchema;
3179
+ else {
3180
+ const params = {
3181
+ ..._params,
3182
+ schemaPath: [..._params.schemaPath, schema],
3183
+ path: _params.path
3184
+ };
3185
+ if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
3186
+ else {
3187
+ const _json = result.schema;
3188
+ const processor = ctx.processors[def.type];
3189
+ if (!processor) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
3190
+ processor(schema, ctx, _json, params);
3191
+ }
3192
+ const parent = schema._zod.parent;
3193
+ if (parent) {
3194
+ if (!result.ref) result.ref = parent;
3195
+ process$1(parent, ctx, params);
3196
+ ctx.seen.get(parent).isParent = true;
3197
+ }
3198
+ }
3199
+ const meta = ctx.metadataRegistry.get(schema);
3200
+ if (meta) Object.assign(result.schema, meta);
3201
+ if (ctx.io === "input" && isTransforming(schema)) {
3202
+ delete result.schema.examples;
3203
+ delete result.schema.default;
3204
+ }
3205
+ if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
3206
+ delete result.schema._prefault;
3207
+ return ctx.seen.get(schema).schema;
3208
+ }
3209
+ function extractDefs(ctx, schema) {
3210
+ const root = ctx.seen.get(schema);
3211
+ if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
3212
+ const idToSchema = /* @__PURE__ */ new Map();
3213
+ for (const entry of ctx.seen.entries()) {
3214
+ const id = ctx.metadataRegistry.get(entry[0])?.id;
3215
+ if (id) {
3216
+ const existing = idToSchema.get(id);
3217
+ if (existing && existing !== entry[0]) throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
3218
+ idToSchema.set(id, entry[0]);
3219
+ }
3220
+ }
3221
+ const makeURI = (entry) => {
3222
+ const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
3223
+ if (ctx.external) {
3224
+ const externalId = ctx.external.registry.get(entry[0])?.id;
3225
+ const uriGenerator = ctx.external.uri ?? ((id) => id);
3226
+ if (externalId) return { ref: uriGenerator(externalId) };
3227
+ const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
3228
+ entry[1].defId = id;
3229
+ return {
3230
+ defId: id,
3231
+ ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
3232
+ };
3233
+ }
3234
+ if (entry[1] === root) return { ref: "#" };
3235
+ const defUriPrefix = `#/${defsSegment}/`;
3236
+ const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
3237
+ return {
3238
+ defId,
3239
+ ref: defUriPrefix + defId
3240
+ };
3241
+ };
3242
+ const extractToDef = (entry) => {
3243
+ if (entry[1].schema.$ref) return;
3244
+ const seen = entry[1];
3245
+ const { ref, defId } = makeURI(entry);
3246
+ seen.def = { ...seen.schema };
3247
+ if (defId) seen.defId = defId;
3248
+ const schema = seen.schema;
3249
+ for (const key in schema) delete schema[key];
3250
+ schema.$ref = ref;
3251
+ };
3252
+ if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
3253
+ const seen = entry[1];
3254
+ if (seen.cycle) throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/<root>
3255
+
3256
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
3257
+ }
3258
+ for (const entry of ctx.seen.entries()) {
3259
+ const seen = entry[1];
3260
+ if (schema === entry[0]) {
3261
+ extractToDef(entry);
3262
+ continue;
3263
+ }
3264
+ if (ctx.external) {
3265
+ const ext = ctx.external.registry.get(entry[0])?.id;
3266
+ if (schema !== entry[0] && ext) {
3267
+ extractToDef(entry);
3268
+ continue;
3269
+ }
3270
+ }
3271
+ if (ctx.metadataRegistry.get(entry[0])?.id) {
3272
+ extractToDef(entry);
3273
+ continue;
3274
+ }
3275
+ if (seen.cycle) {
3276
+ extractToDef(entry);
3277
+ continue;
3278
+ }
3279
+ if (seen.count > 1) {
3280
+ if (ctx.reused === "ref") {
3281
+ extractToDef(entry);
3282
+ continue;
3283
+ }
3284
+ }
3285
+ }
3286
+ }
3287
+ function finalize(ctx, schema) {
3288
+ const root = ctx.seen.get(schema);
3289
+ if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
3290
+ const flattenRef = (zodSchema) => {
3291
+ const seen = ctx.seen.get(zodSchema);
3292
+ if (seen.ref === null) return;
3293
+ const schema = seen.def ?? seen.schema;
3294
+ const _cached = { ...schema };
3295
+ const ref = seen.ref;
3296
+ seen.ref = null;
3297
+ if (ref) {
3298
+ flattenRef(ref);
3299
+ const refSeen = ctx.seen.get(ref);
3300
+ const refSchema = refSeen.schema;
3301
+ if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
3302
+ schema.allOf = schema.allOf ?? [];
3303
+ schema.allOf.push(refSchema);
3304
+ } else Object.assign(schema, refSchema);
3305
+ Object.assign(schema, _cached);
3306
+ if (zodSchema._zod.parent === ref) for (const key in schema) {
3307
+ if (key === "$ref" || key === "allOf") continue;
3308
+ if (!(key in _cached)) delete schema[key];
3309
+ }
3310
+ if (refSchema.$ref && refSeen.def) for (const key in schema) {
3311
+ if (key === "$ref" || key === "allOf") continue;
3312
+ if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
3313
+ }
3314
+ }
3315
+ const parent = zodSchema._zod.parent;
3316
+ if (parent && parent !== ref) {
3317
+ flattenRef(parent);
3318
+ const parentSeen = ctx.seen.get(parent);
3319
+ if (parentSeen?.schema.$ref) {
3320
+ schema.$ref = parentSeen.schema.$ref;
3321
+ if (parentSeen.def) for (const key in schema) {
3322
+ if (key === "$ref" || key === "allOf") continue;
3323
+ if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
3324
+ }
3325
+ }
3326
+ }
3327
+ ctx.override({
3328
+ zodSchema,
3329
+ jsonSchema: schema,
3330
+ path: seen.path ?? []
3331
+ });
3332
+ };
3333
+ for (const entry of [...ctx.seen.entries()].reverse()) flattenRef(entry[0]);
3334
+ const result = {};
3335
+ if (ctx.target === "draft-2020-12") result.$schema = "https://json-schema.org/draft/2020-12/schema";
3336
+ else if (ctx.target === "draft-07") result.$schema = "http://json-schema.org/draft-07/schema#";
3337
+ else if (ctx.target === "draft-04") result.$schema = "http://json-schema.org/draft-04/schema#";
3338
+ else if (ctx.target === "openapi-3.0") {}
3339
+ if (ctx.external?.uri) {
3340
+ const id = ctx.external.registry.get(schema)?.id;
3341
+ if (!id) throw new Error("Schema is missing an `id` property");
3342
+ result.$id = ctx.external.uri(id);
3343
+ }
3344
+ Object.assign(result, root.def ?? root.schema);
3345
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
3346
+ if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
3347
+ const defs = ctx.external?.defs ?? {};
3348
+ for (const entry of ctx.seen.entries()) {
3349
+ const seen = entry[1];
3350
+ if (seen.def && seen.defId) {
3351
+ if (seen.def.id === seen.defId) delete seen.def.id;
3352
+ defs[seen.defId] = seen.def;
3353
+ }
3354
+ }
3355
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
3356
+ else result.definitions = defs;
3357
+ try {
3358
+ const finalized = JSON.parse(JSON.stringify(result));
3359
+ Object.defineProperty(finalized, "~standard", {
3360
+ value: {
3361
+ ...schema["~standard"],
3362
+ jsonSchema: {
3363
+ input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
3364
+ output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
3365
+ }
3366
+ },
3367
+ enumerable: false,
3368
+ writable: false
3369
+ });
3370
+ return finalized;
3371
+ } catch (_err) {
3372
+ throw new Error("Error converting schema to JSON.");
3373
+ }
3374
+ }
3375
+ function isTransforming(_schema, _ctx) {
3376
+ const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
3377
+ if (ctx.seen.has(_schema)) return false;
3378
+ ctx.seen.add(_schema);
3379
+ const def = _schema._zod.def;
3380
+ if (def.type === "transform") return true;
3381
+ if (def.type === "array") return isTransforming(def.element, ctx);
3382
+ if (def.type === "set") return isTransforming(def.valueType, ctx);
3383
+ if (def.type === "lazy") return isTransforming(def.getter(), ctx);
3384
+ if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") return isTransforming(def.innerType, ctx);
3385
+ if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
3386
+ if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
3387
+ if (def.type === "pipe") {
3388
+ if (_schema._zod.traits.has("$ZodCodec")) return true;
3389
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
3390
+ }
3391
+ if (def.type === "object") {
3392
+ for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
3393
+ return false;
3394
+ }
3395
+ if (def.type === "union") {
3396
+ for (const option of def.options) if (isTransforming(option, ctx)) return true;
3397
+ return false;
3398
+ }
3399
+ if (def.type === "tuple") {
3400
+ for (const item of def.items) if (isTransforming(item, ctx)) return true;
3401
+ if (def.rest && isTransforming(def.rest, ctx)) return true;
3402
+ return false;
3403
+ }
3404
+ return false;
3405
+ }
3406
+ /**
3407
+ * Creates a toJSONSchema method for a schema instance.
3408
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
3409
+ */
3410
+ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
3411
+ const ctx = initializeContext({
3412
+ ...params,
3413
+ processors
3414
+ });
3415
+ process$1(schema, ctx);
3416
+ extractDefs(ctx, schema);
3417
+ return finalize(ctx, schema);
3418
+ };
3419
+ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
3420
+ const { libraryOptions, target } = params ?? {};
3421
+ const ctx = initializeContext({
3422
+ ...libraryOptions ?? {},
3423
+ target,
3424
+ io,
3425
+ processors
3426
+ });
3427
+ process$1(schema, ctx);
3428
+ extractDefs(ctx, schema);
3429
+ return finalize(ctx, schema);
3430
+ };
3431
+ //#endregion
3432
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
3433
+ const formatMap = {
3434
+ guid: "uuid",
3435
+ url: "uri",
3436
+ datetime: "date-time",
3437
+ json_string: "json-string",
3438
+ regex: ""
3439
+ };
3440
+ const stringProcessor = (schema, ctx, _json, _params) => {
3441
+ const json = _json;
3442
+ json.type = "string";
3443
+ const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
3444
+ if (typeof minimum === "number") json.minLength = minimum;
3445
+ if (typeof maximum === "number") json.maxLength = maximum;
3446
+ if (format) {
3447
+ json.format = formatMap[format] ?? format;
3448
+ if (json.format === "") delete json.format;
3449
+ if (format === "time") delete json.format;
3450
+ }
3451
+ if (contentEncoding) json.contentEncoding = contentEncoding;
3452
+ if (patterns && patterns.size > 0) {
3453
+ const regexes = [...patterns];
3454
+ if (regexes.length === 1) json.pattern = regexes[0].source;
3455
+ else if (regexes.length > 1) json.allOf = [...regexes.map((regex) => ({
3456
+ ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
3457
+ pattern: regex.source
3458
+ }))];
3459
+ }
3460
+ };
3461
+ const numberProcessor = (schema, ctx, _json, _params) => {
3462
+ const json = _json;
3463
+ const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
3464
+ if (typeof format === "string" && format.includes("int")) json.type = "integer";
3465
+ else json.type = "number";
3466
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
3467
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
3468
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
3469
+ if (exMin) if (legacy) {
3470
+ json.minimum = exclusiveMinimum;
3471
+ json.exclusiveMinimum = true;
3472
+ } else json.exclusiveMinimum = exclusiveMinimum;
3473
+ else if (typeof minimum === "number") json.minimum = minimum;
3474
+ if (exMax) if (legacy) {
3475
+ json.maximum = exclusiveMaximum;
3476
+ json.exclusiveMaximum = true;
3477
+ } else json.exclusiveMaximum = exclusiveMaximum;
3478
+ else if (typeof maximum === "number") json.maximum = maximum;
3479
+ if (typeof multipleOf === "number") json.multipleOf = multipleOf;
3480
+ };
3481
+ const booleanProcessor = (_schema, _ctx, json, _params) => {
3482
+ json.type = "boolean";
3483
+ };
3484
+ const neverProcessor = (_schema, _ctx, json, _params) => {
3485
+ json.not = {};
3486
+ };
3487
+ const enumProcessor = (schema, _ctx, json, _params) => {
3488
+ const def = schema._zod.def;
3489
+ const values = getEnumValues(def.entries);
3490
+ if (values.every((v) => typeof v === "number")) json.type = "number";
3491
+ if (values.every((v) => typeof v === "string")) json.type = "string";
3492
+ json.enum = values;
3493
+ };
3494
+ const literalProcessor = (schema, ctx, json, _params) => {
3495
+ const def = schema._zod.def;
3496
+ const vals = [];
3497
+ for (const val of def.values) if (val === void 0) {
3498
+ if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
3499
+ } else if (typeof val === "bigint") if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
3500
+ else vals.push(Number(val));
3501
+ else vals.push(val);
3502
+ if (vals.length === 0) {} else if (vals.length === 1) {
3503
+ const val = vals[0];
3504
+ json.type = val === null ? "null" : typeof val;
3505
+ if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") json.enum = [val];
3506
+ else json.const = val;
3507
+ } else {
3508
+ if (vals.every((v) => typeof v === "number")) json.type = "number";
3509
+ if (vals.every((v) => typeof v === "string")) json.type = "string";
3510
+ if (vals.every((v) => typeof v === "boolean")) json.type = "boolean";
3511
+ if (vals.every((v) => v === null)) json.type = "null";
3512
+ json.enum = vals;
3513
+ }
3514
+ };
3515
+ const customProcessor = (_schema, ctx, _json, _params) => {
3516
+ if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
3517
+ };
3518
+ const transformProcessor = (_schema, ctx, _json, _params) => {
3519
+ if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
3520
+ };
3521
+ const arrayProcessor = (schema, ctx, _json, params) => {
3522
+ const json = _json;
3523
+ const def = schema._zod.def;
3524
+ const { minimum, maximum } = schema._zod.bag;
3525
+ if (typeof minimum === "number") json.minItems = minimum;
3526
+ if (typeof maximum === "number") json.maxItems = maximum;
3527
+ json.type = "array";
3528
+ json.items = process$1(def.element, ctx, {
3529
+ ...params,
3530
+ path: [...params.path, "items"]
3531
+ });
3532
+ };
3533
+ const objectProcessor = (schema, ctx, _json, params) => {
3534
+ const json = _json;
3535
+ const def = schema._zod.def;
3536
+ json.type = "object";
3537
+ json.properties = {};
3538
+ const shape = def.shape;
3539
+ for (const key in shape) json.properties[key] = process$1(shape[key], ctx, {
3540
+ ...params,
3541
+ path: [
3542
+ ...params.path,
3543
+ "properties",
3544
+ key
3545
+ ]
3546
+ });
3547
+ const allKeys = new Set(Object.keys(shape));
3548
+ const requiredKeys = new Set([...allKeys].filter((key) => {
3549
+ const v = def.shape[key]._zod;
3550
+ if (ctx.io === "input") return v.optin === void 0;
3551
+ else return v.optout === void 0;
3552
+ }));
3553
+ if (requiredKeys.size > 0) json.required = Array.from(requiredKeys);
3554
+ if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
3555
+ else if (!def.catchall) {
3556
+ if (ctx.io === "output") json.additionalProperties = false;
3557
+ } else if (def.catchall) json.additionalProperties = process$1(def.catchall, ctx, {
3558
+ ...params,
3559
+ path: [...params.path, "additionalProperties"]
3560
+ });
3561
+ };
3562
+ const unionProcessor = (schema, ctx, json, params) => {
3563
+ const def = schema._zod.def;
3564
+ const isExclusive = def.inclusive === false;
3565
+ const options = def.options.map((x, i) => process$1(x, ctx, {
3566
+ ...params,
3567
+ path: [
3568
+ ...params.path,
3569
+ isExclusive ? "oneOf" : "anyOf",
3570
+ i
3571
+ ]
3572
+ }));
3573
+ if (isExclusive) json.oneOf = options;
3574
+ else json.anyOf = options;
3575
+ };
3576
+ const intersectionProcessor = (schema, ctx, json, params) => {
3577
+ const def = schema._zod.def;
3578
+ const a = process$1(def.left, ctx, {
3579
+ ...params,
3580
+ path: [
3581
+ ...params.path,
3582
+ "allOf",
3583
+ 0
3584
+ ]
3585
+ });
3586
+ const b = process$1(def.right, ctx, {
3587
+ ...params,
3588
+ path: [
3589
+ ...params.path,
3590
+ "allOf",
3591
+ 1
3592
+ ]
3593
+ });
3594
+ const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
3595
+ json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
3596
+ };
3597
+ const recordProcessor = (schema, ctx, _json, params) => {
3598
+ const json = _json;
3599
+ const def = schema._zod.def;
3600
+ json.type = "object";
3601
+ const keyType = def.keyType;
3602
+ const patterns = keyType._zod.bag?.patterns;
3603
+ if (def.mode === "loose" && patterns && patterns.size > 0) {
3604
+ const valueSchema = process$1(def.valueType, ctx, {
3605
+ ...params,
3606
+ path: [
3607
+ ...params.path,
3608
+ "patternProperties",
3609
+ "*"
3610
+ ]
3611
+ });
3612
+ json.patternProperties = {};
3613
+ for (const pattern of patterns) json.patternProperties[pattern.source] = valueSchema;
3614
+ } else {
3615
+ if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$1(def.keyType, ctx, {
3616
+ ...params,
3617
+ path: [...params.path, "propertyNames"]
3618
+ });
3619
+ json.additionalProperties = process$1(def.valueType, ctx, {
3620
+ ...params,
3621
+ path: [...params.path, "additionalProperties"]
3622
+ });
3623
+ }
3624
+ const keyValues = keyType._zod.values;
3625
+ if (keyValues) {
3626
+ const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number");
3627
+ if (validKeyValues.length > 0) json.required = validKeyValues;
3628
+ }
3629
+ };
3630
+ const nullableProcessor = (schema, ctx, json, params) => {
3631
+ const def = schema._zod.def;
3632
+ const inner = process$1(def.innerType, ctx, params);
3633
+ const seen = ctx.seen.get(schema);
3634
+ if (ctx.target === "openapi-3.0") {
3635
+ seen.ref = def.innerType;
3636
+ json.nullable = true;
3637
+ } else json.anyOf = [inner, { type: "null" }];
3638
+ };
3639
+ const nonoptionalProcessor = (schema, ctx, _json, params) => {
3640
+ const def = schema._zod.def;
3641
+ process$1(def.innerType, ctx, params);
3642
+ const seen = ctx.seen.get(schema);
3643
+ seen.ref = def.innerType;
3644
+ };
3645
+ const defaultProcessor = (schema, ctx, json, params) => {
3646
+ const def = schema._zod.def;
3647
+ process$1(def.innerType, ctx, params);
3648
+ const seen = ctx.seen.get(schema);
3649
+ seen.ref = def.innerType;
3650
+ json.default = JSON.parse(JSON.stringify(def.defaultValue));
3651
+ };
3652
+ const prefaultProcessor = (schema, ctx, json, params) => {
3653
+ const def = schema._zod.def;
3654
+ process$1(def.innerType, ctx, params);
3655
+ const seen = ctx.seen.get(schema);
3656
+ seen.ref = def.innerType;
3657
+ if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
3658
+ };
3659
+ const catchProcessor = (schema, ctx, json, params) => {
3660
+ const def = schema._zod.def;
3661
+ process$1(def.innerType, ctx, params);
3662
+ const seen = ctx.seen.get(schema);
3663
+ seen.ref = def.innerType;
3664
+ let catchValue;
3665
+ try {
3666
+ catchValue = def.catchValue(void 0);
3667
+ } catch {
3668
+ throw new Error("Dynamic catch values are not supported in JSON Schema");
3669
+ }
3670
+ json.default = catchValue;
3671
+ };
3672
+ const pipeProcessor = (schema, ctx, _json, params) => {
3673
+ const def = schema._zod.def;
3674
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
3675
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
3676
+ process$1(innerType, ctx, params);
3677
+ const seen = ctx.seen.get(schema);
3678
+ seen.ref = innerType;
3679
+ };
3680
+ const readonlyProcessor = (schema, ctx, json, params) => {
3681
+ const def = schema._zod.def;
3682
+ process$1(def.innerType, ctx, params);
3683
+ const seen = ctx.seen.get(schema);
3684
+ seen.ref = def.innerType;
3685
+ json.readOnly = true;
3686
+ };
3687
+ const optionalProcessor = (schema, ctx, _json, params) => {
3688
+ const def = schema._zod.def;
3689
+ process$1(def.innerType, ctx, params);
3690
+ const seen = ctx.seen.get(schema);
3691
+ seen.ref = def.innerType;
3692
+ };
3693
+ //#endregion
3694
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
3695
+ const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
3696
+ $ZodISODateTime.init(inst, def);
3697
+ ZodStringFormat.init(inst, def);
3698
+ });
3699
+ function datetime(params) {
3700
+ return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
3701
+ }
3702
+ const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
3703
+ $ZodISODate.init(inst, def);
3704
+ ZodStringFormat.init(inst, def);
3705
+ });
3706
+ function date(params) {
3707
+ return /* @__PURE__ */ _isoDate(ZodISODate, params);
3708
+ }
3709
+ const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
3710
+ $ZodISOTime.init(inst, def);
3711
+ ZodStringFormat.init(inst, def);
3712
+ });
3713
+ function time(params) {
3714
+ return /* @__PURE__ */ _isoTime(ZodISOTime, params);
3715
+ }
3716
+ const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
3717
+ $ZodISODuration.init(inst, def);
3718
+ ZodStringFormat.init(inst, def);
3719
+ });
3720
+ function duration(params) {
3721
+ return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
3722
+ }
3723
+ //#endregion
3724
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
3725
+ const initializer = (inst, issues) => {
3726
+ $ZodError.init(inst, issues);
3727
+ inst.name = "ZodError";
3728
+ Object.defineProperties(inst, {
3729
+ format: { value: (mapper) => formatError(inst, mapper) },
3730
+ flatten: { value: (mapper) => flattenError(inst, mapper) },
3731
+ addIssue: { value: (issue) => {
3732
+ inst.issues.push(issue);
3733
+ inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
3734
+ } },
3735
+ addIssues: { value: (issues) => {
3736
+ inst.issues.push(...issues);
3737
+ inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
3738
+ } },
3739
+ isEmpty: { get() {
3740
+ return inst.issues.length === 0;
3741
+ } }
3742
+ });
3743
+ };
3744
+ const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
3745
+ //#endregion
3746
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
3747
+ const parse = /* @__PURE__ */ _parse(ZodRealError);
3748
+ const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
3749
+ const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
3750
+ const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
3751
+ const encode = /* @__PURE__ */ _encode(ZodRealError);
3752
+ const decode = /* @__PURE__ */ _decode(ZodRealError);
3753
+ const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
3754
+ const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
3755
+ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
3756
+ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
3757
+ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
3758
+ const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
3759
+ //#endregion
3760
+ //#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
3761
+ const _installedGroups = /* @__PURE__ */ new WeakMap();
3762
+ function _installLazyMethods(inst, group, methods) {
3763
+ const proto = Object.getPrototypeOf(inst);
3764
+ let installed = _installedGroups.get(proto);
3765
+ if (!installed) {
3766
+ installed = /* @__PURE__ */ new Set();
3767
+ _installedGroups.set(proto, installed);
3768
+ }
3769
+ if (installed.has(group)) return;
3770
+ installed.add(group);
3771
+ for (const key in methods) {
3772
+ const fn = methods[key];
3773
+ Object.defineProperty(proto, key, {
3774
+ configurable: true,
3775
+ enumerable: false,
3776
+ get() {
3777
+ const bound = fn.bind(this);
3778
+ Object.defineProperty(this, key, {
3779
+ configurable: true,
3780
+ writable: true,
3781
+ enumerable: true,
3782
+ value: bound
3783
+ });
3784
+ return bound;
3785
+ },
3786
+ set(v) {
3787
+ Object.defineProperty(this, key, {
3788
+ configurable: true,
3789
+ writable: true,
3790
+ enumerable: true,
3791
+ value: v
3792
+ });
3793
+ }
3794
+ });
3795
+ }
3796
+ }
3797
+ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
3798
+ $ZodType.init(inst, def);
3799
+ Object.assign(inst["~standard"], { jsonSchema: {
3800
+ input: createStandardJSONSchemaMethod(inst, "input"),
3801
+ output: createStandardJSONSchemaMethod(inst, "output")
3802
+ } });
3803
+ inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
3804
+ inst.def = def;
3805
+ inst.type = def.type;
3806
+ Object.defineProperty(inst, "_def", { value: def });
3807
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
3808
+ inst.safeParse = (data, params) => safeParse(inst, data, params);
3809
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
3810
+ inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
3811
+ inst.spa = inst.safeParseAsync;
3812
+ inst.encode = (data, params) => encode(inst, data, params);
3813
+ inst.decode = (data, params) => decode(inst, data, params);
3814
+ inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
3815
+ inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
3816
+ inst.safeEncode = (data, params) => safeEncode(inst, data, params);
3817
+ inst.safeDecode = (data, params) => safeDecode(inst, data, params);
3818
+ inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
3819
+ inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
3820
+ _installLazyMethods(inst, "ZodType", {
3821
+ check(...chks) {
3822
+ const def = this.def;
3823
+ return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
3824
+ check: ch,
3825
+ def: { check: "custom" },
3826
+ onattach: []
3827
+ } } : ch)] }), { parent: true });
3828
+ },
3829
+ with(...chks) {
3830
+ return this.check(...chks);
3831
+ },
3832
+ clone(def, params) {
3833
+ return clone(this, def, params);
3834
+ },
3835
+ brand() {
3836
+ return this;
3837
+ },
3838
+ register(reg, meta) {
3839
+ reg.add(this, meta);
3840
+ return this;
3841
+ },
3842
+ refine(check, params) {
3843
+ return this.check(refine(check, params));
3844
+ },
3845
+ superRefine(refinement, params) {
3846
+ return this.check(superRefine(refinement, params));
3847
+ },
3848
+ overwrite(fn) {
3849
+ return this.check(/* @__PURE__ */ _overwrite(fn));
3850
+ },
3851
+ optional() {
3852
+ return optional(this);
3853
+ },
3854
+ exactOptional() {
3855
+ return exactOptional(this);
3856
+ },
3857
+ nullable() {
3858
+ return nullable(this);
3859
+ },
3860
+ nullish() {
3861
+ return optional(nullable(this));
3862
+ },
3863
+ nonoptional(params) {
3864
+ return nonoptional(this, params);
3865
+ },
3866
+ array() {
3867
+ return array(this);
3868
+ },
3869
+ or(arg) {
3870
+ return union([this, arg]);
3871
+ },
3872
+ and(arg) {
3873
+ return intersection(this, arg);
3874
+ },
3875
+ transform(tx) {
3876
+ return pipe(this, transform(tx));
3877
+ },
3878
+ default(d) {
3879
+ return _default(this, d);
3880
+ },
3881
+ prefault(d) {
3882
+ return prefault(this, d);
3883
+ },
3884
+ catch(params) {
3885
+ return _catch(this, params);
3886
+ },
3887
+ pipe(target) {
3888
+ return pipe(this, target);
3889
+ },
3890
+ readonly() {
3891
+ return readonly(this);
3892
+ },
3893
+ describe(description) {
3894
+ const cl = this.clone();
3895
+ globalRegistry.add(cl, { description });
3896
+ return cl;
3897
+ },
3898
+ meta(...args) {
3899
+ if (args.length === 0) return globalRegistry.get(this);
3900
+ const cl = this.clone();
3901
+ globalRegistry.add(cl, args[0]);
3902
+ return cl;
3903
+ },
3904
+ isOptional() {
3905
+ return this.safeParse(void 0).success;
3906
+ },
3907
+ isNullable() {
3908
+ return this.safeParse(null).success;
3909
+ },
3910
+ apply(fn) {
3911
+ return fn(this);
3912
+ }
3913
+ });
3914
+ Object.defineProperty(inst, "description", {
3915
+ get() {
3916
+ return globalRegistry.get(inst)?.description;
3917
+ },
3918
+ configurable: true
3919
+ });
3920
+ return inst;
3921
+ });
3922
+ /** @internal */
3923
+ const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
3924
+ $ZodString.init(inst, def);
3925
+ ZodType.init(inst, def);
3926
+ inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
3927
+ const bag = inst._zod.bag;
3928
+ inst.format = bag.format ?? null;
3929
+ inst.minLength = bag.minimum ?? null;
3930
+ inst.maxLength = bag.maximum ?? null;
3931
+ _installLazyMethods(inst, "_ZodString", {
3932
+ regex(...args) {
3933
+ return this.check(/* @__PURE__ */ _regex(...args));
3934
+ },
3935
+ includes(...args) {
3936
+ return this.check(/* @__PURE__ */ _includes(...args));
3937
+ },
3938
+ startsWith(...args) {
3939
+ return this.check(/* @__PURE__ */ _startsWith(...args));
3940
+ },
3941
+ endsWith(...args) {
3942
+ return this.check(/* @__PURE__ */ _endsWith(...args));
3943
+ },
3944
+ min(...args) {
3945
+ return this.check(/* @__PURE__ */ _minLength(...args));
3946
+ },
3947
+ max(...args) {
3948
+ return this.check(/* @__PURE__ */ _maxLength(...args));
3949
+ },
3950
+ length(...args) {
3951
+ return this.check(/* @__PURE__ */ _length(...args));
3952
+ },
3953
+ nonempty(...args) {
3954
+ return this.check(/* @__PURE__ */ _minLength(1, ...args));
3955
+ },
3956
+ lowercase(params) {
3957
+ return this.check(/* @__PURE__ */ _lowercase(params));
3958
+ },
3959
+ uppercase(params) {
3960
+ return this.check(/* @__PURE__ */ _uppercase(params));
3961
+ },
3962
+ trim() {
3963
+ return this.check(/* @__PURE__ */ _trim());
3964
+ },
3965
+ normalize(...args) {
3966
+ return this.check(/* @__PURE__ */ _normalize(...args));
3967
+ },
3968
+ toLowerCase() {
3969
+ return this.check(/* @__PURE__ */ _toLowerCase());
3970
+ },
3971
+ toUpperCase() {
3972
+ return this.check(/* @__PURE__ */ _toUpperCase());
3973
+ },
3974
+ slugify() {
3975
+ return this.check(/* @__PURE__ */ _slugify());
3976
+ }
3977
+ });
3978
+ });
3979
+ const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
3980
+ $ZodString.init(inst, def);
3981
+ _ZodString.init(inst, def);
3982
+ inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
3983
+ inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
3984
+ inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
3985
+ inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
3986
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
3987
+ inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
3988
+ inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
3989
+ inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
3990
+ inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
3991
+ inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
3992
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
3993
+ inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
3994
+ inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
3995
+ inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
3996
+ inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
3997
+ inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
3998
+ inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
3999
+ inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
4000
+ inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
4001
+ inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
4002
+ inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
4003
+ inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
4004
+ inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
4005
+ inst.datetime = (params) => inst.check(datetime(params));
4006
+ inst.date = (params) => inst.check(date(params));
4007
+ inst.time = (params) => inst.check(time(params));
4008
+ inst.duration = (params) => inst.check(duration(params));
4009
+ });
4010
+ function string(params) {
4011
+ return /* @__PURE__ */ _string(ZodString, params);
4012
+ }
4013
+ const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
4014
+ $ZodStringFormat.init(inst, def);
4015
+ _ZodString.init(inst, def);
4016
+ });
4017
+ const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
4018
+ $ZodEmail.init(inst, def);
4019
+ ZodStringFormat.init(inst, def);
4020
+ });
4021
+ const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
4022
+ $ZodGUID.init(inst, def);
4023
+ ZodStringFormat.init(inst, def);
4024
+ });
4025
+ const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
4026
+ $ZodUUID.init(inst, def);
4027
+ ZodStringFormat.init(inst, def);
4028
+ });
4029
+ const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
4030
+ $ZodURL.init(inst, def);
4031
+ ZodStringFormat.init(inst, def);
4032
+ });
4033
+ const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
4034
+ $ZodEmoji.init(inst, def);
4035
+ ZodStringFormat.init(inst, def);
4036
+ });
4037
+ const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
4038
+ $ZodNanoID.init(inst, def);
4039
+ ZodStringFormat.init(inst, def);
4040
+ });
4041
+ /**
4042
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
4043
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
4044
+ * See https://github.com/paralleldrive/cuid.
4045
+ */
4046
+ const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
4047
+ $ZodCUID.init(inst, def);
4048
+ ZodStringFormat.init(inst, def);
4049
+ });
4050
+ const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
4051
+ $ZodCUID2.init(inst, def);
4052
+ ZodStringFormat.init(inst, def);
4053
+ });
4054
+ const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
4055
+ $ZodULID.init(inst, def);
4056
+ ZodStringFormat.init(inst, def);
4057
+ });
4058
+ const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
4059
+ $ZodXID.init(inst, def);
4060
+ ZodStringFormat.init(inst, def);
4061
+ });
4062
+ const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
4063
+ $ZodKSUID.init(inst, def);
4064
+ ZodStringFormat.init(inst, def);
4065
+ });
4066
+ const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
4067
+ $ZodIPv4.init(inst, def);
4068
+ ZodStringFormat.init(inst, def);
4069
+ });
4070
+ const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
4071
+ $ZodIPv6.init(inst, def);
4072
+ ZodStringFormat.init(inst, def);
4073
+ });
4074
+ const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
4075
+ $ZodCIDRv4.init(inst, def);
4076
+ ZodStringFormat.init(inst, def);
4077
+ });
4078
+ const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
4079
+ $ZodCIDRv6.init(inst, def);
4080
+ ZodStringFormat.init(inst, def);
4081
+ });
4082
+ const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
4083
+ $ZodBase64.init(inst, def);
4084
+ ZodStringFormat.init(inst, def);
4085
+ });
4086
+ const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
4087
+ $ZodBase64URL.init(inst, def);
4088
+ ZodStringFormat.init(inst, def);
4089
+ });
4090
+ const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
4091
+ $ZodE164.init(inst, def);
4092
+ ZodStringFormat.init(inst, def);
4093
+ });
4094
+ const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
4095
+ $ZodJWT.init(inst, def);
4096
+ ZodStringFormat.init(inst, def);
4097
+ });
4098
+ const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
4099
+ $ZodNumber.init(inst, def);
4100
+ ZodType.init(inst, def);
4101
+ inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
4102
+ _installLazyMethods(inst, "ZodNumber", {
4103
+ gt(value, params) {
4104
+ return this.check(/* @__PURE__ */ _gt(value, params));
4105
+ },
4106
+ gte(value, params) {
4107
+ return this.check(/* @__PURE__ */ _gte(value, params));
4108
+ },
4109
+ min(value, params) {
4110
+ return this.check(/* @__PURE__ */ _gte(value, params));
4111
+ },
4112
+ lt(value, params) {
4113
+ return this.check(/* @__PURE__ */ _lt(value, params));
4114
+ },
4115
+ lte(value, params) {
4116
+ return this.check(/* @__PURE__ */ _lte(value, params));
4117
+ },
4118
+ max(value, params) {
4119
+ return this.check(/* @__PURE__ */ _lte(value, params));
4120
+ },
4121
+ int(params) {
4122
+ return this.check(int(params));
4123
+ },
4124
+ safe(params) {
4125
+ return this.check(int(params));
4126
+ },
4127
+ positive(params) {
4128
+ return this.check(/* @__PURE__ */ _gt(0, params));
4129
+ },
4130
+ nonnegative(params) {
4131
+ return this.check(/* @__PURE__ */ _gte(0, params));
4132
+ },
4133
+ negative(params) {
4134
+ return this.check(/* @__PURE__ */ _lt(0, params));
4135
+ },
4136
+ nonpositive(params) {
4137
+ return this.check(/* @__PURE__ */ _lte(0, params));
4138
+ },
4139
+ multipleOf(value, params) {
4140
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
4141
+ },
4142
+ step(value, params) {
4143
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
4144
+ },
4145
+ finite() {
4146
+ return this;
4147
+ }
4148
+ });
4149
+ const bag = inst._zod.bag;
4150
+ inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
4151
+ inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
4152
+ inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5);
4153
+ inst.isFinite = true;
4154
+ inst.format = bag.format ?? null;
4155
+ });
4156
+ function number(params) {
4157
+ return /* @__PURE__ */ _number(ZodNumber, params);
4158
+ }
4159
+ const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
4160
+ $ZodNumberFormat.init(inst, def);
4161
+ ZodNumber.init(inst, def);
4162
+ });
4163
+ function int(params) {
4164
+ return /* @__PURE__ */ _int(ZodNumberFormat, params);
4165
+ }
4166
+ const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
4167
+ $ZodBoolean.init(inst, def);
4168
+ ZodType.init(inst, def);
4169
+ inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
4170
+ });
4171
+ function boolean(params) {
4172
+ return /* @__PURE__ */ _boolean(ZodBoolean, params);
4173
+ }
4174
+ const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
4175
+ $ZodUnknown.init(inst, def);
4176
+ ZodType.init(inst, def);
4177
+ inst._zod.processJSONSchema = (ctx, json, params) => void 0;
4178
+ });
4179
+ function unknown() {
4180
+ return /* @__PURE__ */ _unknown(ZodUnknown);
4181
+ }
4182
+ const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
4183
+ $ZodNever.init(inst, def);
4184
+ ZodType.init(inst, def);
4185
+ inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
4186
+ });
4187
+ function never(params) {
4188
+ return /* @__PURE__ */ _never(ZodNever, params);
4189
+ }
4190
+ const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
4191
+ $ZodArray.init(inst, def);
4192
+ ZodType.init(inst, def);
4193
+ inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
4194
+ inst.element = def.element;
4195
+ _installLazyMethods(inst, "ZodArray", {
4196
+ min(n, params) {
4197
+ return this.check(/* @__PURE__ */ _minLength(n, params));
4198
+ },
4199
+ nonempty(params) {
4200
+ return this.check(/* @__PURE__ */ _minLength(1, params));
4201
+ },
4202
+ max(n, params) {
4203
+ return this.check(/* @__PURE__ */ _maxLength(n, params));
4204
+ },
4205
+ length(n, params) {
4206
+ return this.check(/* @__PURE__ */ _length(n, params));
4207
+ },
4208
+ unwrap() {
4209
+ return this.element;
4210
+ }
4211
+ });
4212
+ });
4213
+ function array(element, params) {
4214
+ return /* @__PURE__ */ _array(ZodArray, element, params);
4215
+ }
4216
+ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
4217
+ $ZodObjectJIT.init(inst, def);
4218
+ ZodType.init(inst, def);
4219
+ inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
4220
+ defineLazy(inst, "shape", () => {
4221
+ return def.shape;
4222
+ });
4223
+ _installLazyMethods(inst, "ZodObject", {
4224
+ keyof() {
4225
+ return _enum(Object.keys(this._zod.def.shape));
4226
+ },
4227
+ catchall(catchall) {
4228
+ return this.clone({
4229
+ ...this._zod.def,
4230
+ catchall
4231
+ });
4232
+ },
4233
+ passthrough() {
4234
+ return this.clone({
4235
+ ...this._zod.def,
4236
+ catchall: unknown()
4237
+ });
4238
+ },
4239
+ loose() {
4240
+ return this.clone({
4241
+ ...this._zod.def,
4242
+ catchall: unknown()
4243
+ });
4244
+ },
4245
+ strict() {
4246
+ return this.clone({
4247
+ ...this._zod.def,
4248
+ catchall: never()
4249
+ });
4250
+ },
4251
+ strip() {
4252
+ return this.clone({
4253
+ ...this._zod.def,
4254
+ catchall: void 0
4255
+ });
4256
+ },
4257
+ extend(incoming) {
4258
+ return extend(this, incoming);
4259
+ },
4260
+ safeExtend(incoming) {
4261
+ return safeExtend(this, incoming);
4262
+ },
4263
+ merge(other) {
4264
+ return merge(this, other);
4265
+ },
4266
+ pick(mask) {
4267
+ return pick(this, mask);
4268
+ },
4269
+ omit(mask) {
4270
+ return omit(this, mask);
4271
+ },
4272
+ partial(...args) {
4273
+ return partial(ZodOptional, this, args[0]);
4274
+ },
4275
+ required(...args) {
4276
+ return required(ZodNonOptional, this, args[0]);
4277
+ }
4278
+ });
4279
+ });
4280
+ function object(shape, params) {
4281
+ return new ZodObject({
4282
+ type: "object",
4283
+ shape: shape ?? {},
4284
+ ...normalizeParams(params)
4285
+ });
4286
+ }
4287
+ const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
4288
+ $ZodUnion.init(inst, def);
4289
+ ZodType.init(inst, def);
4290
+ inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
4291
+ inst.options = def.options;
4292
+ });
4293
+ function union(options, params) {
4294
+ return new ZodUnion({
4295
+ type: "union",
4296
+ options,
4297
+ ...normalizeParams(params)
4298
+ });
4299
+ }
4300
+ const ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
4301
+ ZodUnion.init(inst, def);
4302
+ $ZodDiscriminatedUnion.init(inst, def);
4303
+ });
4304
+ function discriminatedUnion(discriminator, options, params) {
4305
+ return new ZodDiscriminatedUnion({
4306
+ type: "union",
4307
+ options,
4308
+ discriminator,
4309
+ ...normalizeParams(params)
4310
+ });
4311
+ }
4312
+ const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
4313
+ $ZodIntersection.init(inst, def);
4314
+ ZodType.init(inst, def);
4315
+ inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
4316
+ });
4317
+ function intersection(left, right) {
4318
+ return new ZodIntersection({
4319
+ type: "intersection",
4320
+ left,
4321
+ right
4322
+ });
4323
+ }
4324
+ const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
4325
+ $ZodRecord.init(inst, def);
4326
+ ZodType.init(inst, def);
4327
+ inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
4328
+ inst.keyType = def.keyType;
4329
+ inst.valueType = def.valueType;
4330
+ });
4331
+ function record$1(keyType, valueType, params) {
4332
+ if (!valueType || !valueType._zod) return new ZodRecord({
4333
+ type: "record",
4334
+ keyType: string(),
4335
+ valueType: keyType,
4336
+ ...normalizeParams(valueType)
4337
+ });
4338
+ return new ZodRecord({
4339
+ type: "record",
4340
+ keyType,
4341
+ valueType,
4342
+ ...normalizeParams(params)
4343
+ });
4344
+ }
4345
+ const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
4346
+ $ZodEnum.init(inst, def);
4347
+ ZodType.init(inst, def);
4348
+ inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
4349
+ inst.enum = def.entries;
4350
+ inst.options = Object.values(def.entries);
4351
+ const keys = new Set(Object.keys(def.entries));
4352
+ inst.extract = (values, params) => {
4353
+ const newEntries = {};
4354
+ for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value];
4355
+ else throw new Error(`Key ${value} not found in enum`);
4356
+ return new ZodEnum({
4357
+ ...def,
4358
+ checks: [],
4359
+ ...normalizeParams(params),
4360
+ entries: newEntries
4361
+ });
4362
+ };
4363
+ inst.exclude = (values, params) => {
4364
+ const newEntries = { ...def.entries };
4365
+ for (const value of values) if (keys.has(value)) delete newEntries[value];
4366
+ else throw new Error(`Key ${value} not found in enum`);
4367
+ return new ZodEnum({
4368
+ ...def,
4369
+ checks: [],
4370
+ ...normalizeParams(params),
4371
+ entries: newEntries
4372
+ });
4373
+ };
4374
+ });
4375
+ function _enum(values, params) {
4376
+ return new ZodEnum({
4377
+ type: "enum",
4378
+ entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
4379
+ ...normalizeParams(params)
4380
+ });
4381
+ }
4382
+ const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
4383
+ $ZodLiteral.init(inst, def);
4384
+ ZodType.init(inst, def);
4385
+ inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
4386
+ inst.values = new Set(def.values);
4387
+ Object.defineProperty(inst, "value", { get() {
4388
+ if (def.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
4389
+ return def.values[0];
4390
+ } });
4391
+ });
4392
+ function literal(value, params) {
4393
+ return new ZodLiteral({
4394
+ type: "literal",
4395
+ values: Array.isArray(value) ? value : [value],
4396
+ ...normalizeParams(params)
4397
+ });
4398
+ }
4399
+ const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
4400
+ $ZodTransform.init(inst, def);
4401
+ ZodType.init(inst, def);
4402
+ inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
4403
+ inst._zod.parse = (payload, _ctx) => {
4404
+ if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
4405
+ payload.addIssue = (issue$1) => {
4406
+ if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def));
4407
+ else {
4408
+ const _issue = issue$1;
4409
+ if (_issue.fatal) _issue.continue = false;
4410
+ _issue.code ?? (_issue.code = "custom");
4411
+ _issue.input ?? (_issue.input = payload.value);
4412
+ _issue.inst ?? (_issue.inst = inst);
4413
+ payload.issues.push(issue(_issue));
4414
+ }
4415
+ };
4416
+ const output = def.transform(payload.value, payload);
4417
+ if (output instanceof Promise) return output.then((output) => {
4418
+ payload.value = output;
4419
+ payload.fallback = true;
4420
+ return payload;
4421
+ });
4422
+ payload.value = output;
4423
+ payload.fallback = true;
4424
+ return payload;
4425
+ };
4426
+ });
4427
+ function transform(fn) {
4428
+ return new ZodTransform({
4429
+ type: "transform",
4430
+ transform: fn
4431
+ });
4432
+ }
4433
+ const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
4434
+ $ZodOptional.init(inst, def);
4435
+ ZodType.init(inst, def);
4436
+ inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
4437
+ inst.unwrap = () => inst._zod.def.innerType;
4438
+ });
4439
+ function optional(innerType) {
4440
+ return new ZodOptional({
4441
+ type: "optional",
4442
+ innerType
4443
+ });
4444
+ }
4445
+ const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
4446
+ $ZodExactOptional.init(inst, def);
4447
+ ZodType.init(inst, def);
4448
+ inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
4449
+ inst.unwrap = () => inst._zod.def.innerType;
4450
+ });
4451
+ function exactOptional(innerType) {
4452
+ return new ZodExactOptional({
4453
+ type: "optional",
4454
+ innerType
4455
+ });
4456
+ }
4457
+ const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
4458
+ $ZodNullable.init(inst, def);
4459
+ ZodType.init(inst, def);
4460
+ inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
4461
+ inst.unwrap = () => inst._zod.def.innerType;
4462
+ });
4463
+ function nullable(innerType) {
4464
+ return new ZodNullable({
4465
+ type: "nullable",
4466
+ innerType
4467
+ });
4468
+ }
4469
+ const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
4470
+ $ZodDefault.init(inst, def);
4471
+ ZodType.init(inst, def);
4472
+ inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
4473
+ inst.unwrap = () => inst._zod.def.innerType;
4474
+ inst.removeDefault = inst.unwrap;
4475
+ });
4476
+ function _default(innerType, defaultValue) {
4477
+ return new ZodDefault({
4478
+ type: "default",
4479
+ innerType,
4480
+ get defaultValue() {
4481
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
4482
+ }
4483
+ });
4484
+ }
4485
+ const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
4486
+ $ZodPrefault.init(inst, def);
4487
+ ZodType.init(inst, def);
4488
+ inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
4489
+ inst.unwrap = () => inst._zod.def.innerType;
4490
+ });
4491
+ function prefault(innerType, defaultValue) {
4492
+ return new ZodPrefault({
4493
+ type: "prefault",
4494
+ innerType,
4495
+ get defaultValue() {
4496
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
4497
+ }
4498
+ });
4499
+ }
4500
+ const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
4501
+ $ZodNonOptional.init(inst, def);
4502
+ ZodType.init(inst, def);
4503
+ inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
4504
+ inst.unwrap = () => inst._zod.def.innerType;
4505
+ });
4506
+ function nonoptional(innerType, params) {
4507
+ return new ZodNonOptional({
4508
+ type: "nonoptional",
4509
+ innerType,
4510
+ ...normalizeParams(params)
4511
+ });
4512
+ }
4513
+ const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
4514
+ $ZodCatch.init(inst, def);
4515
+ ZodType.init(inst, def);
4516
+ inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
4517
+ inst.unwrap = () => inst._zod.def.innerType;
4518
+ inst.removeCatch = inst.unwrap;
4519
+ });
4520
+ function _catch(innerType, catchValue) {
4521
+ return new ZodCatch({
4522
+ type: "catch",
4523
+ innerType,
4524
+ catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
4525
+ });
4526
+ }
4527
+ const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
4528
+ $ZodPipe.init(inst, def);
4529
+ ZodType.init(inst, def);
4530
+ inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
4531
+ inst.in = def.in;
4532
+ inst.out = def.out;
4533
+ });
4534
+ function pipe(in_, out) {
4535
+ return new ZodPipe({
4536
+ type: "pipe",
4537
+ in: in_,
4538
+ out
4539
+ });
4540
+ }
4541
+ const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
4542
+ $ZodReadonly.init(inst, def);
4543
+ ZodType.init(inst, def);
4544
+ inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
4545
+ inst.unwrap = () => inst._zod.def.innerType;
4546
+ });
4547
+ function readonly(innerType) {
4548
+ return new ZodReadonly({
4549
+ type: "readonly",
4550
+ innerType
4551
+ });
4552
+ }
4553
+ const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
4554
+ $ZodCustom.init(inst, def);
4555
+ ZodType.init(inst, def);
4556
+ inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
4557
+ });
4558
+ function refine(fn, _params = {}) {
4559
+ return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
4560
+ }
4561
+ function superRefine(fn, params) {
4562
+ return /* @__PURE__ */ _superRefine(fn, params);
4563
+ }
4564
+ //#endregion
4565
+ //#region lib/types/client/persistence.js
4566
+ /** Validated current-layout snapshots; undo history belongs to the live window. */
4567
+ /** Persistence namespace shared by scoped stores and startup discovery. */
4568
+ const sidebarPersistence = "dsh.sidebar-right.v1";
4569
+ const paneId = string().regex(/^(?:pane|float)[1-9][0-9]*$/u);
4570
+ const splitId = string().regex(/^split[1-9][0-9]*$/u);
4571
+ const tabId = string().regex(/^tab[1-9][0-9]*$/u);
4572
+ const nodeId = union([paneId, splitId]);
4573
+ const rectangle = object({
4574
+ x: number(),
4575
+ y: number(),
4576
+ width: number().positive(),
4577
+ height: number().positive()
4578
+ });
4579
+ const surface = object({
4580
+ layout: object({
4581
+ nodes: record$1(nodeId, discriminatedUnion("kind", [object({
4582
+ kind: literal("pane"),
4583
+ id: paneId,
4584
+ host: _enum(["dock", "float"]),
4585
+ tabs: array(tabId),
4586
+ activeTabId: tabId.optional(),
4587
+ rect: rectangle.optional()
4588
+ }), object({
4589
+ kind: literal("split"),
4590
+ id: splitId,
4591
+ axis: _enum(["row", "column"]),
4592
+ children: array(nodeId).min(2),
4593
+ sizes: array(number().positive()).min(2)
4594
+ })])),
4595
+ tabs: record$1(tabId, object({
4596
+ id: tabId,
4597
+ kind: string().min(1),
4598
+ contentId: string().min(1),
4599
+ title: string()
4600
+ })),
4601
+ rootId: nodeId,
4602
+ floats: array(paneId),
4603
+ activePaneId: paneId,
4604
+ expanded: boolean(),
4605
+ mode: _enum(["push", "fullscreen"])
4606
+ }),
4607
+ minted: int().nonnegative()
4608
+ });
4609
+ const envelope = object({ bySession: record$1(string(), unknown()) });
4610
+ function validateReferences(value) {
4611
+ const { layout, minted } = value;
4612
+ const reject = () => {
4613
+ throw new Error("Invalid saved sidebar layout references");
4614
+ };
4615
+ const visited = /* @__PURE__ */ new Set();
4616
+ const usedTabs = /* @__PURE__ */ new Set();
4617
+ const pending = [{
4618
+ id: layout.rootId,
4619
+ host: "dock"
4620
+ }, ...layout.floats.map((id) => ({
4621
+ id,
4622
+ host: "float"
4623
+ }))];
4624
+ for (const [id, entry] of [...Object.entries(layout.nodes), ...Object.entries(layout.tabs)]) if (entry.id !== id || Number(id.replace(/^[a-z]+/u, "")) > minted) reject();
4625
+ for (const { id, host } of pending) {
4626
+ const entry = layout.nodes[id];
4627
+ if (visited.has(id) || entry === void 0) reject();
4628
+ visited.add(id);
4629
+ if (entry.kind === "split") {
4630
+ if (host !== "dock" || entry.children.length !== entry.sizes.length || Math.abs(entry.sizes.reduce((sum, size) => sum + size, 0) - 1) > 1e-9) reject();
4631
+ pending.push(...entry.children.map((id) => ({
4632
+ id,
4633
+ host
4634
+ })));
4635
+ } else {
4636
+ if (entry.host !== host || (host === "float" ? entry.rect === void 0 || entry.tabs.length !== 1 : entry.rect !== void 0)) reject();
4637
+ if (entry.tabs.length === 0 ? entry.activeTabId !== void 0 : !entry.tabs.includes(entry.activeTabId ?? "")) reject();
4638
+ for (const tab of entry.tabs) {
4639
+ if (usedTabs.has(tab) || layout.tabs[tab] === void 0) reject();
4640
+ usedTabs.add(tab);
4641
+ }
4642
+ }
4643
+ }
4644
+ if (visited.size !== Object.keys(layout.nodes).length || usedTabs.size !== Object.keys(layout.tabs).length || layout.nodes[layout.activePaneId]?.kind !== "pane") reject();
4645
+ }
4646
+ /**
4647
+ * Restore one validated Session layout with a fresh in-window undo history.
4648
+ * @param sessionId - storage scope.
4649
+ * @returns the saved surface, or undefined when absent, inaccessible or invalid.
4650
+ */
4651
+ function readSidebarLayout(sessionId) {
4652
+ if (typeof localStorage === "undefined") return void 0;
4653
+ let raw;
4654
+ try {
4655
+ raw = localStorage.getItem(`${sidebarPersistence}.${sessionId}`);
4656
+ } catch (_storageUnavailable) {
4657
+ return;
4658
+ }
4659
+ if (raw === null) return void 0;
4660
+ try {
4661
+ const saved = envelope.parse(JSON.parse(raw)).bySession[sessionId];
4662
+ if (saved === void 0) return void 0;
4663
+ const parsed = surface.parse(saved);
4664
+ validateReferences(parsed);
4665
+ return {
4666
+ layout: parsed.layout,
4667
+ minted: parsed.minted,
4668
+ history: _deepseek_ai_dsh_client_ui_dockkit.EMPTY_HISTORY
4669
+ };
4670
+ } catch (_invalidLayout) {
4671
+ clearSidebarLayout(sessionId);
4672
+ return;
4673
+ }
4674
+ }
4675
+ /**
4676
+ * Persist current layout and identity allocation without retaining undo entries.
4677
+ * @param sessionId - storage scope.
4678
+ * @param surface - current in-memory surface.
4679
+ */
4680
+ function writeSidebarLayout(sessionId, surface) {
4681
+ if (typeof localStorage === "undefined") return;
4682
+ const saved = { bySession: { [sessionId]: {
4683
+ layout: surface.layout,
4684
+ minted: surface.minted
4685
+ } } };
4686
+ try {
4687
+ localStorage.setItem(`${sidebarPersistence}.${sessionId}`, JSON.stringify(saved));
4688
+ } catch (error) {
4689
+ console.error("Sidebar layout persistence failed:", error);
4690
+ }
4691
+ }
4692
+ /**
4693
+ * Remove only one Session's persisted layout.
4694
+ * @param sessionId - storage scope to discard.
4695
+ */
4696
+ function clearSidebarLayout(sessionId) {
4697
+ if (typeof localStorage === "undefined") return;
4698
+ try {
4699
+ localStorage.removeItem(`${sidebarPersistence}.${sessionId}`);
4700
+ } catch (_storageUnavailable) {}
4701
+ }
4702
+ //#endregion
296
4703
  //#region lib/types/client/stores.js
297
4704
  /**
298
4705
  * The store shell over the docking kit: one surface per session, held as plain
@@ -476,7 +4883,7 @@ window.__ModuleLoader__.load({
476
4883
  };
477
4884
  }
478
4885
  /**
479
- * Create the Sidebar store handle.
4886
+ * Create the Sidebar store handle with per-Session JSON persistence in localStorage.
480
4887
  *
481
4888
  * The default page arrives as a thunk: a pane is seeded when a split or an
482
4889
  * expansion of an empty column needs one, which can be long after the store was
@@ -485,7 +4892,7 @@ window.__ModuleLoader__.load({
485
4892
  * @returns the handle (spec, type, identity, and factory in one).
486
4893
  */
487
4894
  function createSidebarRightStore(seed) {
488
- return (0, _deepseek_ai_dsh_client_store.defineStore)({
4895
+ const handle = (0, _deepseek_ai_dsh_client_store.defineStore)({
489
4896
  init: () => ({ bySession: {} }),
490
4897
  actions: {
491
4898
  open: (d, sessionId) => {
@@ -520,12 +4927,26 @@ window.__ModuleLoader__.load({
520
4927
  const index = lent === void 0 || replace === void 0 ? void 0 : lent.tabs.indexOf(replace);
521
4928
  const page = contentId === pageAddress(kind);
522
4929
  const held = page ? panePage(state, paneId ?? (0, _deepseek_ai_dsh_client_ui_dockkit.activeDockPaneId)(state), kind) : void 0;
523
- const planned = held !== void 0 ? {
4930
+ const revealed = page ? held : intent.revealIfOpened === false ? void 0 : (0, _deepseek_ai_dsh_client_ui_dockkit.findContentTab)(state, contentId, kind);
4931
+ let openedInNewPane;
4932
+ const split = intent.preferNewPane === true && replace === void 0 && revealed === void 0 ? (0, _deepseek_ai_dsh_client_ui_dockkit.planSplitPane)(state, mint, paneId, (id) => {
4933
+ openedInNewPane = id;
4934
+ return {
4935
+ id,
4936
+ kind,
4937
+ contentId,
4938
+ title
4939
+ };
4940
+ }) : [];
4941
+ const planned = revealed !== void 0 ? {
524
4942
  ops: [{
525
4943
  type: "focusTab",
526
- tabId: held
4944
+ tabId: revealed
527
4945
  }],
528
- tabId: held
4946
+ tabId: revealed
4947
+ } : openedInNewPane !== void 0 ? {
4948
+ ops: split,
4949
+ tabId: openedInNewPane
529
4950
  } : (0, _deepseek_ai_dsh_client_ui_dockkit.planOpenContent)(state, mint, {
530
4951
  kind,
531
4952
  contentId,
@@ -617,10 +5038,29 @@ window.__ModuleLoader__.load({
617
5038
  }
618
5039
  }
619
5040
  });
5041
+ return {
5042
+ ...handle,
5043
+ create(scopeKey) {
5044
+ const instance = handle.create(scopeKey);
5045
+ if (scopeKey === void 0) return instance;
5046
+ const saved = readSidebarLayout(scopeKey);
5047
+ if (saved !== void 0) instance.store.set({ bySession: { [scopeKey]: saved } });
5048
+ instance.subscribe(() => {
5049
+ const surface = instance.getSnapshot().bySession[scopeKey];
5050
+ if (surface !== void 0) writeSidebarLayout(scopeKey, surface);
5051
+ });
5052
+ return {
5053
+ ...instance,
5054
+ clearPersisted: () => {
5055
+ clearSidebarLayout(scopeKey);
5056
+ }
5057
+ };
5058
+ }
5059
+ };
620
5060
  }
621
5061
  //#endregion
622
5062
  //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-sidebar-right/src/client/shell/SidebarRight.module.css.mjs
623
- const css = ".jVjTDG_panel{z-index:10;background:var(--dsw-alias-bg-base);border-left:.5px solid var(--dsw-alias-border-l4);visibility:hidden;min-width:0;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;transform:translate(100%)}.jVjTDG_panel[data-sidebar-right-open]{visibility:visible;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out);transform:none}.jVjTDG_panel[data-sidebar-right-panel=fullscreen]{z-index:40;border:none;position:fixed;inset:0}@media (prefers-reduced-motion:reduce){.jVjTDG_panel,.jVjTDG_panel[data-sidebar-right-open]{transition:none}}.jVjTDG_iconButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:28px;flex:none;justify-content:center;align-items:center;padding:6px;line-height:1;display:inline-flex}.jVjTDG_iconButton svg{width:15px;height:15px}.jVjTDG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.jVjTDG_collapseGlyph{transform:scaleX(-1)}.jVjTDG_panelBody{flex:auto;min-height:0;display:flex}.jVjTDG_unavailable{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);margin:0;padding:12px}.jVjTDG_floatHost{z-index:60;pointer-events:none;position:fixed;inset:0}";
5063
+ const css = ".jVjTDG_panel{z-index:10;background:var(--dsw-alias-bg-base);border-left:.5px solid var(--dsw-alias-border-l4);visibility:hidden;min-width:0;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;transform:translate(100%)}.jVjTDG_panel[data-sidebar-right-open]{visibility:visible;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out);transform:none}.jVjTDG_panel[data-sidebar-right-panel=fullscreen]{z-index:40;-webkit-app-region:no-drag;border:none;position:fixed;inset:0}[data-windows-titlebar] .jVjTDG_panel[data-sidebar-right-panel=fullscreen]{left:var(--dsh-windows-sidebar-width);max-width:calc(100% - var(--dsh-windows-sidebar-width));top:var(--dsh-windows-titlebar-height);border-radius:var(--dsh-windows-content-radius) 0 0 0;corner-shape:round;overflow:hidden}[data-platform=darwin] .jVjTDG_panel[data-sidebar-right-panel=fullscreen] .jVjTDG_panelBody{--dsh-dockkit-strip-inline-start:88px}[data-platform=darwin] .jVjTDG_panel[data-sidebar-right-panel=fullscreen] .jVjTDG_panelBody [data-dockkit-cell]:not(:first-child){--dsh-dockkit-strip-inline-start:10px}[data-platform=darwin] .jVjTDG_panel[data-sidebar-right-panel=fullscreen] [data-dockkit-strip]{-webkit-app-region:drag}[data-platform=darwin] .jVjTDG_panel[data-sidebar-right-panel=fullscreen] [data-dockkit-strip]>*{-webkit-app-region:no-drag}@media (prefers-reduced-motion:reduce){.jVjTDG_panel,.jVjTDG_panel[data-sidebar-right-open]{transition:none}}.jVjTDG_iconButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:28px;flex:none;justify-content:center;align-items:center;padding:6px;line-height:1;display:inline-flex}.jVjTDG_iconButton svg{width:15px;height:15px}.jVjTDG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.jVjTDG_collapseGlyph{transform:scaleX(-1)}.jVjTDG_panelBody{flex:auto;min-height:0;display:flex}.jVjTDG_unavailable{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);margin:0;padding:12px}.jVjTDG_floatHost{z-index:60;pointer-events:none;position:fixed;inset:0}";
624
5064
  const tagId = "@deepseek-ai/dsh-client-ui-sidebar-right/SidebarRight.module.css";
625
5065
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
626
5066
  const tag = document.createElement("style");
@@ -1144,6 +5584,7 @@ window.__ModuleLoader__.load({
1144
5584
  const place = (placement) => ({
1145
5585
  ...placement.replaceTab === true ? { replaceTab: tabId } : held.paneId === void 0 ? {} : { paneId: held.paneId },
1146
5586
  ...placement.paneId === void 0 ? {} : { paneId: placement.paneId },
5587
+ ...placement.preferNewPane === void 0 ? {} : { preferNewPane: placement.preferNewPane },
1147
5588
  ...placement.revealIfOpened === void 0 ? {} : { revealIfOpened: placement.revealIfOpened }
1148
5589
  });
1149
5590
  const held = {
@@ -1177,6 +5618,61 @@ window.__ModuleLoader__.load({
1177
5618
  }
1178
5619
  };
1179
5620
  //#endregion
5621
+ //#region lib/types/client/tab-inventory.js
5622
+ /** Metadata inventory of saved and adopted layouts without mounting their content. */
5623
+ /** Derived membership only; layout stores remain the persisted authority. */
5624
+ var SidebarTabInventory = class {
5625
+ sessions = /* @__PURE__ */ new Map();
5626
+ snapshot = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)([]);
5627
+ /** Read-only metadata observable shared with content providers. */
5628
+ source = this.snapshot;
5629
+ /** Read saved layouts once before the root service is published. */
5630
+ constructor() {
5631
+ try {
5632
+ if (typeof localStorage === "undefined") return;
5633
+ const keys = Array.from({ length: localStorage.length }, (_, index) => localStorage.key(index));
5634
+ for (const key of keys) {
5635
+ if (key === null || !key.startsWith(`dsh.sidebar-right.v1.`)) continue;
5636
+ const sessionId = key.slice(21);
5637
+ const saved = readSidebarLayout(sessionId);
5638
+ if (saved !== void 0) this.sessions.set(sessionId, Object.values(saved.layout.tabs).map((tab) => ({
5639
+ sessionId,
5640
+ tabId: tab.id,
5641
+ kind: tab.kind,
5642
+ contentId: tab.contentId
5643
+ })));
5644
+ }
5645
+ this.publish();
5646
+ } catch (_storageUnavailable) {}
5647
+ }
5648
+ /**
5649
+ * Replace membership from the authoritative in-window store.
5650
+ * @param sessionId - adopted Session.
5651
+ * @param tabs - current committed records.
5652
+ */
5653
+ update(sessionId, tabs) {
5654
+ this.sessions.set(sessionId, tabs.map((tab) => ({
5655
+ sessionId,
5656
+ tabId: tab.id,
5657
+ kind: tab.kind,
5658
+ contentId: tab.contentId
5659
+ })));
5660
+ this.publish();
5661
+ }
5662
+ /**
5663
+ * Forget a permanently cleared scope.
5664
+ * @param sessionId - removed Session scope.
5665
+ */
5666
+ remove(sessionId) {
5667
+ this.sessions.delete(sessionId);
5668
+ this.publish();
5669
+ }
5670
+ publish() {
5671
+ const next = [...this.sessions.values()].flat();
5672
+ if (JSON.stringify(next) !== JSON.stringify(this.snapshot.getSnapshot())) this.snapshot.set(next);
5673
+ }
5674
+ };
5675
+ //#endregion
1180
5676
  //#region lib/types/client/service.js
1181
5677
  /**
1182
5678
  * `ctx.sidebarRight`: what other plugins may ask of this column.
@@ -1209,20 +5705,25 @@ window.__ModuleLoader__.load({
1209
5705
  */
1210
5706
  /**
1211
5707
  * Create the public controller and the plugin-private store adoption callback.
1212
- * Adoption subscribes without reconciling; the first store commit creates occurrences.
5708
+ * Adoption reconciles restored records before any seat renders, then follows commits.
1213
5709
  * @param tabs - registered tab types.
1214
5710
  * @param pin - resource retention for an occurrence's lifetime.
1215
- * @returns the controller and a callback releasing exactly its own adoption.
5711
+ * @returns the controller and plugin-owned adoption and scope-removal callbacks.
1216
5712
  */
1217
5713
  function createSidebarRightController(tabs, pin) {
1218
5714
  const adopted = /* @__PURE__ */ new Map();
1219
- const controller = new SidebarRightController(tabs, pin, adopted);
5715
+ const inventory = new SidebarTabInventory();
5716
+ const controller = new SidebarRightController(tabs, pin, adopted, inventory.source);
1220
5717
  return {
1221
5718
  controller,
5719
+ forget: (sessionId) => {
5720
+ inventory.remove(sessionId);
5721
+ },
1222
5722
  adopt(sessionId, store) {
1223
5723
  adopted.get(sessionId)?.unsubscribe();
1224
5724
  const sync = () => {
1225
5725
  const surface = store.getSnapshot().bySession[sessionId];
5726
+ inventory.update(sessionId, Object.values(surface?.layout.tabs ?? {}));
1226
5727
  if (surface !== void 0) controller.tabDomain.sync(sessionId, surface.layout);
1227
5728
  };
1228
5729
  const adoption = {
@@ -1230,6 +5731,7 @@ window.__ModuleLoader__.load({
1230
5731
  unsubscribe: store.subscribe(sync)
1231
5732
  };
1232
5733
  adopted.set(sessionId, adoption);
5734
+ sync();
1233
5735
  return () => {
1234
5736
  adoption.unsubscribe();
1235
5737
  if (adopted.get(sessionId) === adoption) adopted.delete(sessionId);
@@ -1243,6 +5745,8 @@ window.__ModuleLoader__.load({
1243
5745
  var SidebarRightController = class {
1244
5746
  tabs;
1245
5747
  adopted;
5748
+ /** Open tab metadata across saved and adopted Sessions, independent of visible seats. */
5749
+ openTabs;
1246
5750
  binding;
1247
5751
  closeHandlers = /* @__PURE__ */ new Map();
1248
5752
  /**
@@ -1267,13 +5771,23 @@ window.__ModuleLoader__.load({
1267
5771
  * @param tabs - the tab-type registry consulted to claim an address.
1268
5772
  * @param pin - `ctx.resources.pin`, which the Tab domain holds addresses with.
1269
5773
  * @param adopted - plugin-owned session stores used by occurrence actions.
5774
+ * @param openTabs - plugin-owned metadata source across saved and adopted layouts.
1270
5775
  */
1271
- constructor(tabs, pin, adopted = /* @__PURE__ */ new Map()) {
5776
+ constructor(tabs, pin, adopted = /* @__PURE__ */ new Map(), openTabs = new SidebarTabInventory().source) {
1272
5777
  this.tabs = tabs;
1273
5778
  this.adopted = adopted;
5779
+ this.openTabs = openTabs;
1274
5780
  this.tabDomain = new TabDomain(this, pin);
1275
5781
  }
1276
5782
  /**
5783
+ * Read the committed tabs of a Session so providers can restore their content.
5784
+ * @param sessionId - Session whose layout has been adopted.
5785
+ * @returns its open records, or an empty list before adoption.
5786
+ */
5787
+ tabsIn(sessionId) {
5788
+ return Object.values(this.adopted.get(sessionId)?.store.getSnapshot().bySession[sessionId]?.layout.tabs ?? {});
5789
+ }
5790
+ /**
1277
5791
  * Adopt the mounted seat's binding, replacing any previous one.
1278
5792
  *
1279
5793
  * Called from the seat while it is mounted, and released when it leaves.
@@ -1367,12 +5881,17 @@ window.__ModuleLoader__.load({
1367
5881
  }
1368
5882
  /** The steps both opens share: one store intent, and the navigation record for the tab it settles on. */
1369
5883
  place(sessionId, actions, claim, address, placement, params) {
5884
+ const surface = this.adopted.get(sessionId)?.store.getSnapshot().bySession[sessionId] ?? (this.binding?.sessionId === sessionId ? this.binding.surfaces[sessionId] : void 0);
5885
+ const targetPane = surface === void 0 ? void 0 : placement.paneId ?? (0, _deepseek_ai_dsh_client_ui_dockkit.activeDockPaneId)(surface.layout);
5886
+ const target = targetPane === void 0 ? void 0 : surface?.layout.nodes[targetPane];
5887
+ const preferNewPane = placement.preferNewPane === true && placement.replaceTab === void 0 && surface !== void 0 && target?.kind === "pane" && target.host === "dock" && target.tabs.length > 0 && (0, _deepseek_ai_dsh_client_ui_dockkit.canSplit)(surface.layout) && (0, _deepseek_ai_dsh_client_ui_dockkit.dockPaneIds)(surface.layout).length < 2 && this.binding?.sessionId === sessionId && this.binding.canSplitPane(target.id);
1370
5888
  const commit = () => {
1371
5889
  actions.openContent(sessionId, {
1372
5890
  kind: claim.kind,
1373
5891
  contentId: claim.contentId,
1374
5892
  title: claim.title,
1375
5893
  ...placement.paneId === void 0 ? {} : { paneId: placement.paneId },
5894
+ ...preferNewPane ? { preferNewPane: true } : {},
1376
5895
  ...placement.replaceTab === void 0 ? {} : { replaceTab: placement.replaceTab },
1377
5896
  ...placement.revealIfOpened === void 0 ? {} : { revealIfOpened: placement.revealIfOpened }
1378
5897
  }, (tabId) => {
@@ -1382,7 +5901,7 @@ window.__ModuleLoader__.load({
1382
5901
  });
1383
5902
  });
1384
5903
  };
1385
- const layout = this.adopted.get(sessionId)?.store.getSnapshot().bySession[sessionId]?.layout;
5904
+ const layout = surface?.layout;
1386
5905
  const replaced = placement.replaceTab === void 0 ? void 0 : layout?.tabs[placement.replaceTab];
1387
5906
  const revealed = layout === void 0 || placement.revealIfOpened === false ? void 0 : (0, _deepseek_ai_dsh_client_ui_dockkit.findContentTab)(layout, claim.contentId, claim.kind);
1388
5907
  if (replaced === void 0 || replaced.id === revealed) {
@@ -3760,7 +8279,7 @@ window.__ModuleLoader__.load({
3760
8279
  function apply(ctx) {
3761
8280
  const t = ctx.locale.bind(NS);
3762
8281
  const tabs = new SidebarRightTabRegistry(ctx);
3763
- const { controller, adopt } = createSidebarRightController(tabs, (address, signal) => {
8282
+ const { controller, adopt, forget } = createSidebarRightController(tabs, (address, signal) => {
3764
8283
  ctx.resources.pin(address, signal);
3765
8284
  });
3766
8285
  const disposeRegistry = ctx.reflect.provide("sidebarRightTabs", tabs);
@@ -3782,7 +8301,13 @@ window.__ModuleLoader__.load({
3782
8301
  create: (scopeKey) => {
3783
8302
  const instance = handle.create(scopeKey);
3784
8303
  if (scopeKey !== void 0) adoptions.push(adopt(scopeKey, instance));
3785
- return instance;
8304
+ return {
8305
+ ...instance,
8306
+ clearPersisted() {
8307
+ instance.clearPersisted();
8308
+ if (scopeKey !== void 0) forget(scopeKey);
8309
+ }
8310
+ };
3786
8311
  }
3787
8312
  };
3788
8313
  const layout = ctx.layout;