allyhub 0.10.0 → 0.11.0

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 (357) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/commands/dev.js +2 -2
  3. package/dist/commands/frames/report.js +2 -0
  4. package/dist/commands/frames.js +11 -9
  5. package/dist/commands/render.js +2 -2
  6. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
  7. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  8. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  9. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
  10. package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
  11. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
  12. package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
  13. package/dist/node_modules/@allyhub/browser/package.json +9 -1
  14. package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
  15. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  16. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
  17. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
  18. package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
  19. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
  20. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
  21. package/dist/node_modules/@allyhub/build/package.json +1 -1
  22. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  23. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  24. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  25. package/dist/node_modules/@allyhub/check/package.json +1 -1
  26. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  27. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  28. package/dist/node_modules/@allyhub/components/package.json +1 -1
  29. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  30. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  31. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
  32. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  33. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
  34. package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
  35. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  36. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  37. package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
  38. package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
  39. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
  40. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  41. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  42. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  43. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  44. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
  45. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  46. package/dist/node_modules/@allyhub/doc/dist/html.js +15 -59
  47. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  48. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  49. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  50. package/dist/node_modules/@allyhub/doc-extension/package.json +12 -14
  51. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
  52. package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
  53. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  54. package/dist/node_modules/@allyhub/export/package.json +1 -1
  55. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  56. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
  58. package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  62. package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
  63. package/dist/node_modules/@allyhub/image-extension/package.json +1 -6
  64. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  65. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  66. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  67. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  68. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  69. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  70. package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
  71. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
  72. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
  73. package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
  74. package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
  75. package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
  76. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
  77. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
  78. package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
  79. package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
  80. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
  81. package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
  82. package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
  83. package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
  84. package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
  85. package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
  86. package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
  87. package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
  88. package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
  89. package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
  90. package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
  91. package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
  92. package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
  93. package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
  94. package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
  95. package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
  96. package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
  97. package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
  98. package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
  99. package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
  100. package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
  101. package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
  102. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
  103. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  104. package/dist/node_modules/@allyhub/media/package.json +1 -1
  105. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  106. package/dist/node_modules/@allyhub/model/package.json +1 -1
  107. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  108. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
  109. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
  110. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  111. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
  112. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  113. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +12 -0
  114. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  115. package/dist/node_modules/@allyhub/project/package.json +1 -1
  116. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +8 -0
  117. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +4 -0
  118. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +6 -0
  120. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  121. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +61 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +41 -3
  126. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
  128. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  129. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
  130. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  131. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +12 -0
  132. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  133. package/dist/node_modules/@allyhub/protocol/package.json +1 -5
  134. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  135. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  136. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  137. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  138. package/dist/node_modules/@allyhub/render/package.json +1 -1
  139. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  140. package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
  141. package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
  142. package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
  143. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
  144. package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
  145. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  146. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  147. package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
  148. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
  149. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
  150. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  151. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  152. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  153. package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
  154. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
  155. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
  156. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
  157. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
  158. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  159. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  160. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  161. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  162. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  163. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  164. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  165. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
  167. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  168. package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
  169. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  170. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  171. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
  172. package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -7
  173. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  174. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  175. package/dist/node_modules/@allyhub/slides-extension/package.json +3 -16
  176. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  177. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +1 -1
  178. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  179. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  180. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  181. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
  182. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  183. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +14 -14
  184. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  185. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  186. package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
  187. package/dist/node_modules/@allyhub/video-extension/package.json +2 -4
  188. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  189. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  190. package/dist/node_modules/@allyhub/website/package.json +1 -1
  191. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
  192. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -2
  193. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  194. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
  195. package/dist/node_modules/@allyhub/x-extension/package.json +10 -12
  196. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  197. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  198. package/dist/package.json +12 -10
  199. package/dist/works.js +1 -1
  200. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CjAmWsNR.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
  201. package/editor-web/assets/{architecture-WOLXFQ4H-DeeKhyhZ.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
  202. package/editor-web/assets/{architectureDiagram-ZHVYKT53-b32qTaJg.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
  203. package/editor-web/assets/{arrow-up-L4YV_65f.js → arrow-up-B5rJbBv0.js} +1 -1
  204. package/editor-web/assets/article-BUmD3xtR.js +8 -0
  205. package/editor-web/assets/article-DNioBb3p.js +7 -0
  206. package/editor-web/assets/{audio-lines-BFcM7G2L.js → audio-lines-CzuzsGjI.js} +1 -1
  207. package/editor-web/assets/{blockDiagram-RJAE7QA3-BNbnMNmw.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
  208. package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
  209. package/editor-web/assets/button-eGxLxbv9.js +41 -0
  210. package/editor-web/assets/{c4Diagram-XDPPPE54-BEuemvMw.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
  211. package/editor-web/assets/channel-TNPgFDrw.js +1 -0
  212. package/editor-web/assets/chart-C37xvZT2.js +1 -0
  213. package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
  214. package/editor-web/assets/{chunk-2E7WHVMD-Zb5nPx_e.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
  215. package/editor-web/assets/{chunk-4EMNKR2T-DSEM2reX.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
  216. package/editor-web/assets/{chunk-55XCU76K-BOZa_65H.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
  217. package/editor-web/assets/{chunk-7S6XSTFO-DeiGeVpB.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
  218. package/editor-web/assets/{chunk-AQDTSKZB-fPuQFBJc.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
  219. package/editor-web/assets/{chunk-DSNLSHJZ-5vdnoak2.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
  220. package/editor-web/assets/{chunk-HAGFOTED-DFF2mZJ1.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
  221. package/editor-web/assets/{chunk-HNE4Q36P-g6-ZLbTg.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
  222. package/editor-web/assets/{chunk-NQOKRVIF-o3hNcHMJ.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
  223. package/editor-web/assets/{chunk-UHW7PFBP-BQiDI9dK.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
  224. package/editor-web/assets/{chunk-VQ5W62QI-CJlMXWWz.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
  225. package/editor-web/assets/{chunk-WQQL4CDK-pNBU8dXv.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
  226. package/editor-web/assets/{chunk-YZO67HFG-2x-BiWd-.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
  227. package/editor-web/assets/{chunk-ZAUX2LTX-etFStEM8.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
  228. package/editor-web/assets/{chunk-ZCHMQSOR-B3AYRhIY.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
  229. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-6y2yX0oq.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
  230. package/editor-web/assets/{collaborator-LRd0hELn.js → collaborator-B1u2td9m.js} +1 -1
  231. package/editor-web/assets/{createLucideIcon-CPS-TrJJ.js → createLucideIcon-GFZ_fxLc.js} +1 -1
  232. package/editor-web/assets/{cynefin-EF2NZ3EQ-CX4BTQQe.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
  233. package/editor-web/assets/{cynefinDiagram-WF24UDRP-LbDkOTy3.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
  234. package/editor-web/assets/{dagre-NK4GIZVX-wCKQk7hi.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
  235. package/editor-web/assets/{diagram-CBK3MWTC-a9fofQwk.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
  236. package/editor-web/assets/{diagram-I5XIIV2D-UCLZWch5.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
  237. package/editor-web/assets/{diagram-ODIL2UCW-CAEe88Lp.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
  238. package/editor-web/assets/{diagram-PFBEJUXE-Cp1o45bs.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
  239. package/editor-web/assets/{diagram-RJA3I4VV-c6OVxDyq.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
  240. package/editor-web/assets/{diagram-TYUNFSNR-BVRWslDM.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
  241. package/editor-web/assets/dist-BGRwhCQO.js +1 -0
  242. package/editor-web/assets/{dist-DwGhfliS.js → dist-BW4X7BrF.js} +1 -1
  243. package/editor-web/assets/dist-BgDRE85b.js +2 -0
  244. package/editor-web/assets/dist-Blq5nJnU.js +24 -0
  245. package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
  246. package/editor-web/assets/dist-C1emZ9wX.js +37 -0
  247. package/editor-web/assets/dist-CC7OeU1e.js +6 -0
  248. package/editor-web/assets/{dist-j6ZLVcgf.js → dist-CX-fiPSn.js} +16 -16
  249. package/editor-web/assets/dist-C_VvG-_9.js +5 -0
  250. package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
  251. package/editor-web/assets/dist-D2k6w-_a.js +1 -0
  252. package/editor-web/assets/dist-DDv_SbKw.js +84 -0
  253. package/editor-web/assets/dist-DEoEO4zs.js +1 -0
  254. package/editor-web/assets/dist-DlDxxPIP.js +16 -0
  255. package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
  256. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-KdOTJgFu.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
  257. package/editor-web/assets/{elk-QONTBCTQ-Cmlrp7qB.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
  258. package/editor-web/assets/{erDiagram-KYQIGQAA-CBM7-aQm.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
  259. package/editor-web/assets/{eventmodeling-K75KTNOO-CEoJkbuW.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
  260. package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
  261. package/editor-web/assets/{ganttDiagram-R7GPNTJY-D4S6ZSYD.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
  262. package/editor-web/assets/{gitGraph-VSP46ZUC-BvkL6RSh.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
  263. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-lTGguloH.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
  264. package/editor-web/assets/{hint-BimUgJms.js → hint-B8JpEypy.js} +1 -1
  265. package/editor-web/assets/index-CgB5osVc.js +28 -0
  266. package/editor-web/assets/index-Daytem9N.css +2 -0
  267. package/editor-web/assets/{info-OHQRW6UA-DvKzqNvp.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
  268. package/editor-web/assets/{infoDiagram-MVDRKAX5-D7hCpehs.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
  269. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bg93sZQe.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
  270. package/editor-web/assets/{italic-BQBwRTe8.js → italic-D10w8n6C.js} +1 -1
  271. package/editor-web/assets/{journeyDiagram-BOSHW7O7-CKm_KONJ.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
  272. package/editor-web/assets/{kanban-definition-FNSA4HC5-BKknnpTR.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
  273. package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
  274. package/editor-web/assets/link-BC5xK1-1.js +1 -0
  275. package/editor-web/assets/{mermaid-parser.core-BzqkDnqL.js → mermaid-parser.core-req5LE0X.js} +3 -3
  276. package/editor-web/assets/{mermaid.core-CEpvTOAe.js → mermaid.core-zFwZug4C.js} +4 -4
  277. package/editor-web/assets/{mindmap-definition-6OY57UG3-BJ0qG8Wi.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
  278. package/editor-web/assets/minus-DaWs5i8B.js +1 -0
  279. package/editor-web/assets/{packet-JDAUHWVQ-ew3kvyFm.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
  280. package/editor-web/assets/palette-BIOudGkm.js +1 -0
  281. package/editor-web/assets/{pegDiagram-ECIUJNBX-DqUS2xit.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
  282. package/editor-web/assets/{pie-XZMESJXO-DTIAMPGm.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
  283. package/editor-web/assets/{pieDiagram-GNMPY74T-DoKOE02-.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
  284. package/editor-web/assets/play-CrMmPghG.js +1 -0
  285. package/editor-web/assets/{progress-CPEbDOoN.js → progress-DE4C5_3x.js} +1 -1
  286. package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
  287. package/editor-web/assets/{quadrantDiagram-D57K4MC3-DauOpYun.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
  288. package/editor-web/assets/{radar-ABXABTNO-BvMJXUU-.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
  289. package/editor-web/assets/{railroad-I3PHUGI6-D3jdJmhM.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
  290. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Dm8ZpmPj.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
  291. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
  292. package/editor-web/assets/{railroad-peg-JR7BVNR7-CMrQL_7U.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
  293. package/editor-web/assets/{railroadDiagram-Y72NRBL7-y99z0C7i.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
  294. package/editor-web/assets/{react-DztDSW4P.js → react-WA6wlt8S.js} +1 -1
  295. package/editor-web/assets/{repeat-2-DJi4LW5C.js → repeat-2-VQP1EVOZ.js} +1 -1
  296. package/editor-web/assets/{requirementDiagram-EQYSW5RA-jMr_uoF6.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
  297. package/editor-web/assets/{row-ClBisiBs.js → row-BRlEWRrK.js} +1 -1
  298. package/editor-web/assets/{sankeyDiagram-SY24JHO5-DcUyx03Q.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
  299. package/editor-web/assets/{schemas-68mjUjP5.js → schemas-VikZYZIK.js} +1 -1
  300. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-R4X8wRCd.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
  301. package/editor-web/assets/{session-2u9U7koW.js → session-Do9AqS38.js} +1 -1
  302. package/editor-web/assets/{slides-BByblSSR.js → slides-diTEQ3C5.js} +1 -1
  303. package/editor-web/assets/{snapshots-C9KV-Y2_.js → snapshots-BUGlKQIB.js} +1 -1
  304. package/editor-web/assets/{sound-DExlNJbb.js → sound-Bj3o9_Fa.js} +1 -1
  305. package/editor-web/assets/split-CNU1RHcX.js +3 -0
  306. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BqvXKbCA.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
  307. package/editor-web/assets/{strikethrough-CyUBnGTl.js → strikethrough-CfXx6IYH.js} +1 -1
  308. package/editor-web/assets/{svg-lBRT-uhy.js → svg-Cx50MpxK.js} +1 -1
  309. package/editor-web/assets/{swatch-1c1uVn1z.js → swatch-WeJD41aW.js} +1 -1
  310. package/editor-web/assets/{swimlanes-B3ENRKFQ-hjTXIc6M.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
  311. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
  312. package/editor-web/assets/{switch-D0K-K8-C.js → switch-N0G_sbqt.js} +1 -1
  313. package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
  314. package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
  315. package/editor-web/assets/table-B6hVZAMi.js +1 -0
  316. package/editor-web/assets/{tabs-CxxOnGLR.js → tabs-DIFDqj-l.js} +1 -1
  317. package/editor-web/assets/{textarea-Fu93tFO3.js → textarea-tEWvBY9p.js} +1 -1
  318. package/editor-web/assets/{timeline-definition-JXYKGLGB-BcSoN4Dq.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
  319. package/editor-web/assets/{trash-2-BAKAeziW.js → trash-2-BP6nqpg2.js} +1 -1
  320. package/editor-web/assets/{treeView-D4JQ5SDB-CsFN2jrc.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
  321. package/editor-web/assets/{treemap-SAJKECNS-DP1eqXJ2.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
  322. package/editor-web/assets/{undo-2-DQ5CBmki.js → undo-2-CHR0nvWL.js} +1 -1
  323. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BGxa0osF.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
  324. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-D2XhTF49.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
  325. package/editor-web/assets/{video-CDbPX4Cr.js → video-BlvmR8BK.js} +1 -1
  326. package/editor-web/assets/{wardley-7MLQ67FV-DM3jMAbZ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
  327. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bf-DaZEg.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
  328. package/editor-web/assets/words-D_4T9Adq.js +3 -0
  329. package/editor-web/assets/words-WgdEQdYP.js +2 -0
  330. package/editor-web/assets/{xychartDiagram-4URNHDU4-dp-mdcWd.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
  331. package/editor-web/index.html +6 -6
  332. package/package.json +8 -2
  333. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +0 -337
  334. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +0 -2
  335. package/editor-web/assets/alt-DnBZJzEh.js +0 -4
  336. package/editor-web/assets/article-DLMjAdbP.js +0 -73
  337. package/editor-web/assets/button-Chk675Xu.js +0 -41
  338. package/editor-web/assets/channel-EzYq4r0d.js +0 -1
  339. package/editor-web/assets/chart-Be9Hj5GL.js +0 -1
  340. package/editor-web/assets/choice-BgmBh4yu.js +0 -1
  341. package/editor-web/assets/dist--KKyT5zP.js +0 -340
  342. package/editor-web/assets/dist-1k0MHB3i.js +0 -1
  343. package/editor-web/assets/dist-B9KHJqL5.js +0 -4
  344. package/editor-web/assets/dist-BbJyrhIY.js +0 -1
  345. package/editor-web/assets/dist-CJXCQxQM.js +0 -37
  346. package/editor-web/assets/dist-D9xQGwe9.js +0 -5
  347. package/editor-web/assets/dist-DFiLzbx8.js +0 -219
  348. package/editor-web/assets/dist-DIPV6xfF.js +0 -2
  349. package/editor-web/assets/dist-Dp-fQMtx.js +0 -6
  350. package/editor-web/assets/dist-Duw28VxJ.js +0 -16
  351. package/editor-web/assets/dist-OBE2IIYP.js +0 -24
  352. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +0 -1
  353. package/editor-web/assets/index-C-i_iuxN.js +0 -28
  354. package/editor-web/assets/index-Cxh_Shkm.css +0 -2
  355. package/editor-web/assets/minus-oPj1GxwA.js +0 -1
  356. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +0 -8
  357. package/editor-web/assets/syntax-Bih_jv7W.js +0 -1
@@ -53,4 +53,4 @@ import{n as e}from"./rolldown-runtime-COiEfhsA.js";function t(e){let t=Object.va
53
53
 
54
54
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},s,c=oe,l=!S.jitless,u=l&&se.value,d=t.catchall,f;e._zod.parse=(i,a)=>{f??=r.value;let p=i.value;return c(p)?l&&u&&a?.async===!1&&a.jitless!==!0?(s||=o(t.shape),i=s(i,a),d?Ki([],p,i,a,f,e,a?.abortEarly===!0):i):n(i,a):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Yi(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!_(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>y(e,r,C())))}),t)}var Xi=x(`$ZodUnion`,(e,t)=>{T.init(e,t),b(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),b(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),b(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),b(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>s(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Yi(t,r,e,i)):Yi(o,r,e,i)}});function Zi(e,t,n,r){let i=[];for(let t=0;t<e.length;t++)e[t].issues.length===0&&i.push(t);return i.length===1?(t.value=e[i[0]].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>y(e,r,C())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1,matches:i}),t)}var Qi=x(`$ZodXor`,(e,t)=>{Xi.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Zi(t,r,e,i)):Zi(o,r,e,i)}});function $i(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var ea=x(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Xi.init(e,t);let n=e._zod.parse;b(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||d(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=f(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=a(()=>$i(t));e._zod.parse=(i,a)=>{let o=i.value;if(!oe(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),ta=x(`$ZodIntersection`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>ra(e,t,n)):ra(e,i,a)}});function na(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ce(e)&&ce(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=na(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=na(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ra(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=na(t.value,n.value);if(!c.valid){if(_(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ia=x(`$ZodTuple`,(e,t)=>{T.init(e,t);let n=t.items,r=S.memoizer;r?.attach(e),e._zod.parse=(i,a)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:`tuple`,code:`invalid_type`}),i;i.value=r?r.alloc(e,i,[],a):[];let s=[],c=aa(n,`optin`),l=aa(n,`optout`);if(!t.rest){if(o.length<c)return i.issues.push({code:`too_small`,minimum:c,inclusive:!0,input:o,inst:e,origin:`array`}),i;o.length>n.length&&i.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:o,inst:e,origin:`array`})}let u=Array(n.length),d=t.rest?a?.abortEarly:void 0,f=!1;for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:o[e],issues:[]},a);t instanceof Promise?s.push(t.then(t=>{u[e]=t})):(u[e]=t,d&&!f&&t.issues.length&&(f=_(t)))}if(t.rest&&!f){let e=n.length-1,r=o.slice(n.length),c=i.issues.length;for(let n of r){if(d&&i.issues.length!==c){if(_(i,c))break;c=i.issues.length}e++;let r=t.rest._zod.run({value:n,issues:[]},a);r instanceof Promise?s.push(r.then(t=>oa(t,i,e))):oa(r,i,e)}}return s.length?Promise.all(s).then(()=>sa(u,i,n,o,l)):sa(u,i,n,o,l)}});function aa(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function oa(e,t,n){e.issues.length&&t.issues.push(...v(n,e.issues)),t.value[n]=e.value}function sa(e,t,n,r,i){for(let a=0;a<n.length;a++){let o=e[a],s=a<r.length;if(!s&&a>=i&&n[a]._zod.optin===`optional`){t.value.length=a;break}if(o.issues.length){if(!s&&a>=i){t.value.length=a;break}t.issues.push(...v(a,o.issues))}t.value[a]=o.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var ca=x(`$ZodRecord`,(e,t)=>{T.init(e,t);let n=S.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!ce(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>y(e,i,C())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...v(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...v(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&kn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>y(e,i,C())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...v(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...v(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),la=x(`$ZodMap`,(e,t)=>{T.init(e,t);let n=S.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:`map`,code:`invalid_type`,input:a,inst:e}),r;let o=[];r.value=n?n.alloc(e,r,new Map,i):new Map;let s=i?.abortEarly,c=r.issues.length;for(let[n,l]of a){if(s&&r.issues.length!==c){if(_(r,c))break;c=r.issues.length}let u=t.keyType._zod.run({value:n,issues:[]},i),d=t.valueType._zod.run({value:l,issues:[]},i);u instanceof Promise||d instanceof Promise?o.push(Promise.all([u,d]).then(([t,o])=>{ua(t,o,r,n,a,e,i)})):ua(u,d,r,n,a,e,i)}return o.length?Promise.all(o).then(()=>r):r},Li(e,zi)});function ua(e,t,n,r,i,a,o){e.issues.length&&(ue.has(typeof r)?n.issues.push(...v(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>y(e,o,C()))})),t.issues.length&&(ue.has(typeof r)?n.issues.push(...v(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>y(e,o,C()))})),n.value.set(e.value,t.value)}var da=x(`$ZodSet`,(e,t)=>{T.init(e,t);let n=S.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:`set`,code:`invalid_type`}),r;let o=[];r.value=n?n.alloc(e,r,new Set,i):new Set;let s=i?.abortEarly,c=r.issues.length;for(let e of a){if(s&&r.issues.length!==c){if(_(r,c))break;c=r.issues.length}let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?o.push(n.then(e=>fa(e,r))):fa(n,r)}return o.length?Promise.all(o).then(()=>r):r},Li(e,Bi)});function fa(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var pa=x(`$ZodEnum`,(e,n)=>{T.init(e,n);let r=t(n.entries),i=new Set(r);e._zod.values=i,b(e,`pattern`,e=>{let n=t(e.def.entries).filter(e=>ue.has(typeof e));return RegExp(n.length?`^(${n.map(e=>fe(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,n)=>{let a=t.value;return i.has(a)||t.issues.push({code:`invalid_value`,values:r,input:a,inst:e}),t}}),ma=x(`$ZodLiteral`,(e,t)=>{T.init(e,t);let n=new Set(t.values);e._zod.values=n,b(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?fe(e):e?fe(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),ha=x(`$ZodFile`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),ga=x(`$ZodTransform`,(e,t)=>{T.init(e,t),e._zod.optin=`optional`,S.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new et(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new $e;return n.value=i,n}});function _a(e,t){return e.value=t.issues.length?void 0:t.value,e}var va=x(`$ZodOptional`,(e,t)=>{T.init(e,t),b(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,b(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),b(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${s(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>_a(e,t)):_a(e,r)}return t.innerType._zod.run(e,n)}}),ya=x(`$ZodExactOptional`,(e,t)=>{va.init(e,t),b(e,`values`,e=>e.def.innerType._zod.values),b(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ba=x(`$ZodNullable`,(e,t)=>{T.init(e,t),b(e,`optin`,e=>e.def.innerType._zod.optin),b(e,`optout`,e=>e.def.innerType._zod.optout),b(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${s(t.source)}|null)$`):void 0}),b(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),xa=x(`$ZodDefault`,(e,t)=>{T.init(e,t),e._zod.optin=`defaulted`,b(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Sa(e,t)):Sa(r,t)}});function Sa(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ca=x(`$ZodPrefault`,(e,t)=>{T.init(e,t),e._zod.optin=`defaulted`,b(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),wa=x(`$ZodNonOptional`,(e,t)=>{T.init(e,t),b(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ta(t,e)):Ta(i,e)}});function Ta(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Ea=x(`$ZodSuccess`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new et(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}});function Da(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>y(e,r,C()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Oa=x(`$ZodCatch`,(e,t)=>{T.init(e,t),b(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),b(e,`optout`,e=>e.def.innerType._zod.optout),b(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Da(e,r,t,n)):Da(e,r,t,n)}}),ka=x(`$ZodNaN`,(e,t)=>{T.init(e,t),e._zod.parse=(t,n)=>(typeof t.value==`number`&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),Aa=x(`$ZodPipe`,(e,t)=>{T.init(e,t),b(e,`values`,e=>e.def.in._zod.values),b(e,`optin`,e=>e.def.in._zod.optin),b(e,`optout`,e=>e.def.out._zod.optout),b(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ja(e,t.in,n)):ja(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ja(e,t.out,n)):ja(r,t.out,n)}});function ja(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ma=x(`$ZodCodec`,(e,t)=>{T.init(e,t),b(e,`values`,e=>e.def.in._zod.values),b(e,`optin`,e=>e.def.in._zod.optin),b(e,`optout`,e=>e.def.out._zod.optout),b(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Na(e,t,n)):Na(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Na(e,t,n)):Na(r,t,n)}}});function Na(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Pa(e,r,t.out,n)):Pa(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Pa(e,r,t.in,n)):Pa(e,r,t.in,n)}}function Pa(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Fa=x(`$ZodPreprocess`,(e,t)=>{Aa.init(e,t)}),Ia=x(`$ZodReadonly`,(e,t)=>{T.init(e,t),b(e,`propValues`,e=>e.def.innerType._zod.propValues),b(e,`values`,e=>e.def.innerType._zod.values),b(e,`optin`,e=>e.def.innerType?._zod?.optin),b(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(La):La(r)}});function La(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Ra(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes(`int`),i,a;for(let e of t.checks??[]){let t=e._zod.def;t.pattern&&(n=t.pattern),r||=!!t.format?.includes(`int`);let o=t.minimum??t.length,s=t.maximum??t.length;o!==void 0&&(i===void 0||o>i)&&(i=o),s!==void 0&&(a===void 0||s<a)&&(a=s)}if(n)return n.source;if(i!==void 0&&a!==void 0&&i>a)return`(?!)`;if(i!==void 0||a!==void 0)return En({minimum:i,maximum:a}).source;let o=e._zod.pattern;return(r&&o===kn?On:o)?.source}function za(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let e=r._zod.pattern?.source,t=za(r);return n&&e&&t&&t!==e?n.replace(s(e),()=>s(t)):n}if(t.options){let e=t.options.map(za);if(e.every(Boolean))return`^(${e.map(e=>s(e)).join(`|`)})$`}return Ra(e)}var Ba=x(`$ZodTemplateLiteral`,(e,t)=>{T.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){let t=za(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);n.push(s(t))}else if(e===null||de.has(typeof e))n.push(fe(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Va=x(`$ZodFunction`,(e,t)=>(T.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return Object.defineProperty(function(...n){let r=e._def.input?gt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?gt(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return Object.defineProperty(async function(...n){let r=e._def.input?await vt(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await vt(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new ia({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Ha=x(`$ZodPromise`,(e,t)=>{T.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Ua=x(`$ZodLazy`,(e,t)=>{T.init(e,t),u(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),b(e,`pattern`,e=>e.innerType?._zod?.pattern),b(e,`propValues`,e=>e.innerType?._zod?.propValues),b(e,`optin`,e=>e.innerType?._zod?.optin??void 0),b(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Wa=x(`$ZodCustom`,(e,t)=>{w.init(e,t),T.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ga(t,n,r,e));Ga(i,n,r,e)}});function Ga(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ie(e))}}var Ka=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},qa=`~memo`,Ja=[];function Ya(e){return typeof e==`object`&&!!e}function Xa(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Za=new WeakMap,Qa=0,$a=1,eo=2;function to(e,t,n){let r=Za.get(e);if(r!==void 0)return r?eo:Qa;if(t.has(e))return eo;t.add(e);let i=Qa,a=e=>{if(i!==eo&&e?._zod){let r=to(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=Qa;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?$a:o.value?._zod?to(o.value,t,n):Qa;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=f(c);s(e?o(e,!0):$a),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?to(r,t,!1):$a);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),no(e,i)}function no(e,t){return t!==$a&&Za.set(e,t===eo),t}function ro(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var io,ao=[],oo={alloc(e,t,n){let r=io;if(!r)return n;io=void 0;let i={value:n,issues:null};return r.set(t.value,i),ao.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&co(n,e.value))throw new Ka;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=to(e,new Set,!1);if(i===Qa)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===eo||r?n=!0:r=!0}let l=s.value;if(!Ya(l))return t(s,c);let u=c[qa];u||(u={buckets:new WeakMap,backEdges:void 0},c[qa]=u);let d;i===c?d=a:(d=ro(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...Xa(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;io=d;let p=ao.length,m=t(s,c);io=void 0;let ee=ao.length>p?ao.pop():void 0;return m instanceof Promise?m.then(e=>(ee&&(ee.issues=e.issues.length?Xa(e.issues):Ja),e)):(ee&&(ee.issues=m.issues.length?Xa(m.issues):Ja),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function so(){return oo}function co(e,t){let n=e[qa]?.backEdges;return n!==void 0&&Ya(t)&&n.has(t)}var lo=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let r={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},i={nan:`NaN`};function a(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):i[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${a(e.expected)}, received ${a(Fe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${me(e.values[0])}`:`Invalid option: expected one of ${n(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${n(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function uo(){return{localeError:lo()}}var fo,po=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function mo(){return new po}(fo=globalThis).__zod_globalRegistry??(fo.__zod_globalRegistry=mo());var D=globalThis.__zod_globalRegistry;function ho(e){return e.checks&&=[...e.checks],e}function go(e,t){return new e(ho({type:`string`,...g(t)}))}function _o(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...g(t)})}function vo(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...g(t)})}function yo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...g(t)})}function bo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...g(t)})}function xo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...g(t)})}function So(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...g(t)})}function Co(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...g(t)})}function wo(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...g(t)})}function To(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...g(t)})}function Eo(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...g(t)})}function Do(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...g(t)})}function Oo(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...g(t)})}function ko(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...g(t)})}function Ao(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...g(t)})}function jo(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...g(t)})}function Mo(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...g(t)})}function No(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...g(t)})}function Po(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...g(t)})}function Fo(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...g(t)})}function Io(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...g(t)})}function Lo(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...g(t)})}function Ro(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...g(t)})}function zo(e,t){return new e({type:`string`,format:`credit_card`,check:`string_format`,abort:!1,...g(t)})}function Bo(e,t){return new e({type:`string`,format:`iban`,check:`string_format`,abort:!1,...g(t)})}function Vo(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...g(t)})}function Ho(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...g(t)})}function Uo(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...g(t)})}function Wo(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...g(t)})}function Go(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...g(t)})}function Ko(e,t){return new e(ho({type:`number`,checks:[],...g(t)}))}function qo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...g(t)})}function Jo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...g(t)})}function Yo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...g(t)})}function Xo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...g(t)})}function Zo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...g(t)})}function Qo(e,t){return new e({type:`boolean`,...g(t)})}function $o(e,t){return new e({type:`bigint`,...g(t)})}function es(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...g(t)})}function ts(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...g(t)})}function ns(e,t){return new e({type:`symbol`,...g(t)})}function rs(e,t){return new e({type:`undefined`,...g(t)})}function is(e,t){return new e({type:`null`,...g(t)})}function as(e){return new e({type:`any`})}function os(e){return new e({type:`unknown`})}function ss(e,t){return new e({type:`never`,...g(t)})}function cs(e,t){return new e({type:`void`,...g(t)})}function ls(e,t){return new e({type:`date`,...g(t)})}function us(e,t){return new e({type:`nan`,...g(t)})}function ds(e,t){return new nr({check:`less_than`,...g(t),value:e,inclusive:!1})}function O(e,t){return new nr({check:`less_than`,...g(t),value:e,inclusive:!0})}function fs(e,t){return new rr({check:`greater_than`,...g(t),value:e,inclusive:!1})}function k(e,t){return new rr({check:`greater_than`,...g(t),value:e,inclusive:!0})}function ps(e){return fs(0,e)}function ms(e){return ds(0,e)}function hs(e){return O(0,e)}function gs(e){return k(0,e)}function _s(e,t){return new ir({check:`multiple_of`,...g(t),value:e})}function vs(e,t){return new sr({check:`max_size`,...g(t),maximum:e})}function ys(e,t){return new cr({check:`min_size`,...g(t),minimum:e})}function bs(e,t){return new lr({check:`size_equals`,...g(t),size:e})}function xs(e,t){return new ur({check:`max_length`,...g(t),maximum:e})}function Ss(e,t){return new dr({check:`min_length`,...g(t),minimum:e})}function Cs(e,t){return new fr({check:`length_equals`,...g(t),length:e})}function ws(e,t){return new mr({check:`string_format`,format:`regex`,...g(t),pattern:e})}function Ts(e){return new hr({check:`string_format`,format:`lowercase`,...g(e)})}function Es(e){return new gr({check:`string_format`,format:`uppercase`,...g(e)})}function Ds(e,t){return new _r({check:`string_format`,format:`includes`,...g(t),includes:e})}function Os(e,t){return new vr({check:`string_format`,format:`starts_with`,...g(t),prefix:e})}function ks(e,t){return new yr({check:`string_format`,format:`ends_with`,...g(t),suffix:e})}function As(e,t,n){return new xr({check:`property`,property:e,schema:t,...g(n)})}function js(e,t){return new Sr({check:`properties`,shape:e,...g(t)})}function Ms(e,t){return new Cr({check:`mime_type`,mime:e,...g(t)})}function Ns(e){return new wr({check:`overwrite`,tx:e})}function Ps(e){return Ns(t=>t.normalize(e))}function Fs(){return Ns(e=>e.trim())}function Is(){return Ns(e=>e.toLowerCase())}function Ls(){return Ns(e=>e.toUpperCase())}function Rs(){return Ns(e=>ie(e))}function zs(e,t,n){return new e({type:`array`,element:t,...g(n)})}function Bs(e,t){return new e({type:`file`,...g(t)})}function Vs(e,t,n){let r=g(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Hs(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...g(n)})}function Us(e,t){let n=Ws(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ie(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ie(r))}},e(t.value,t)),t);return n}function Ws(e,t){let n=new w({check:`custom`,...g(t)});return n._zod.check=e,n}function Gs(e){let t=new w({check:`describe`});return t._zod.onattach=[t=>{let n=D.get(t)??{};D.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function Ks(e){let t=new w({check:`meta`});return t._zod.onattach=[t=>{let n=D.get(t)??{};D.add(t,{...n,...e})}],t._zod.check=()=>{},t}function qs(e,t){let n=g(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Ma,c=e.Boolean??Ei,l=new s({type:`pipe`,in:new(e.String??Ar)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l._zod.bag.truthy=r,l._zod.bag.falsy=i,l._zod.bag.case=n.case??`insensitive`,l}function Js(e,t,n,r={}){let i=g(r),a={check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function Ys(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&d(e,t,n[t]);return e}function Xs(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??D,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function A(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function j(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,j(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ys(o.schema,c),t.io===`input`&&M(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Zs(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Qs(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Zs(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Zs(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
55
55
 
56
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function $s(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;$s(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var ec=new Set([`type`,`properties`,`required`,`additionalProperties`]),tc=[`oneOf`,`anyOf`];function nc(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function rc(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!ec.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??nc(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}d(n,r,e.length===1?e[0]:rc(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=nc(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function ic(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of ec)if(t in e)return;let n=t.filter(e=>tc.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=rc(t);else{let e=n[0],i=tc.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>rc([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Ys(e,r))}function ac(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Ys(i,s),Ys(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())$s(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])ic(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Ys(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,d(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:sc(t,`input`,e.processors),output:sc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function M(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return M(r.element,n);if(r.type===`set`)return M(r.valueType,n);if(r.type===`lazy`)return M(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return M(r.innerType,n);if(r.type===`intersection`)return M(r.left,n)||M(r.right,n);if(r.type===`record`||r.type===`map`)return M(r.keyType,n)||M(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:M(r.in,n)||M(r.out,n);if(r.type===`object`){for(let e in r.shape)if(M(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(M(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(M(e,n))return!0;return!!(r.rest&&M(r.rest,n))}return!1}var oc=(e,t={})=>n=>{let r=Xs({...n,processors:t});return j(e,r),Qs(r,e),ac(r,e)},sc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Xs({...i??{},target:a,io:t,processors:n});return j(e,o),Qs(o,e),ac(o,e)},cc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},lc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},uc=(e,t)=>{cc(e,`minimum`,t),lc(e,`maximum`,t)},dc=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},fc=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},pc=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},mc=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},hc=(e,t)=>cc(e,`minimum`,t.minimum),gc=(e,t)=>lc(e,`maximum`,t.maximum),_c=e=>(t,n)=>{mc(t,n.format);let[r,i]=e[n.format];cc(t,`minimum`,r),lc(t,`maximum`,i)},vc={greater_than:(e,t)=>cc(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>lc(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>dc(e,t.value),number_format:_c(ge),bigint_format:_c(_e),min_length:hc,max_length:gc,length_equals:(e,t)=>uc(e,t.length),min_size:hc,max_size:gc,size_equals:(e,t)=>uc(e,t.size),string_format:(e,t)=>{mc(e,t.format),t.pattern&&fc(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>pc(e,t.mime)};function N(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)vc[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&cc(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&cc(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&lc(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&lc(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&dc(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&pc(t,i.mime);for(let e of i.patterns??[])fc(t,e);return t}var yc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bc=new Map([[ci,un],[ui,dn]]),xc=e=>bc.get(e)??e,Sc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=N(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yc[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(xc);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Cc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=N(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):A(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},wc=(e,t,n,r)=>{n.type=`boolean`},Tc=(e,t,n,r)=>{A(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},Ec=(e,t,n,r)=>{A(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},Dc=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Oc=(e,t,n,r)=>{A(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},kc=(e,t,n,r)=>{A(e,t,n,r,`Void cannot be represented in JSON Schema`)},Ac=(e,t,n,r)=>{n.not={}},jc=(e,t,n,r)=>{A(e,t,n,r,`Date cannot be represented in JSON Schema`)},Mc=(e,n,r,i)=>{let a=e._zod.def,o=t(a.entries);o.length===0?r.not={}:(o.every(e=>typeof e==`number`)&&(r.type=`number`),o.every(e=>typeof e==`string`)&&(r.type=`string`),r.enum=o)},Nc=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(A(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(A(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Pc=(e,t,n,r)=>{A(e,t,n,r,`NaN cannot be represented in JSON Schema`)},Fc=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Ic=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=N(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},Lc=(e,t,n,r)=>{n.type=`boolean`},Rc=(e,t,n,r)=>{A(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},zc=(e,t,n,r)=>{A(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Bc=(e,t,n,r)=>{A(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Vc=(e,t,n,r)=>{A(e,t,n,r,`Map cannot be represented in JSON Schema`)},Hc=(e,t,n,r)=>{A(e,t,n,r,`Set cannot be represented in JSON Schema`)},Uc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=N(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=j(a.element,t,{...r,path:[...r.path,`items`]})};function Wc(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Wc(t.out):t.type===`catch`?Wc(t.innerType):e._zod.optin}var Gc=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&A(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)d(i.properties,e,j(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Wc(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=j(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>j(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qc=(e,t,n,r)=>{let i=e._zod.def,a=j(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=j(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Jc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>j(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?j(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Wc(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=N(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function Yc(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Yc(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Yc(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?kn:On).source)),p}var Xc=new WeakMap;function Zc(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of Xc.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Yc(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Qc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=N(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=j(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)d(i.patternProperties,xc(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=j(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Xc.get(t);n||(n=[],Xc.set(t,n),t.deferred.push(()=>Zc(t))),n.push(e)}i.additionalProperties=j(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Wc(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},$c=(e,t,n,r)=>{let i=e._zod.def,a=j(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},el=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},tl=Symbol();function nl(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(A(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),tl):JSON.parse(o)}var rl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n.default=o)},il=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n._prefault=o)},al=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{A(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},ol=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;j(o,t,r);let s=t.seen.get(e);s.ref=o},sl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},cl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ll=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ul=(e,t,n,r)=>{let i=e._zod.innerType;j(i,t,r);let a=t.seen.get(e);a.ref=i},dl=new WeakSet([Object.prototype,Error.prototype]);function fl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var P=x(`ZodError`,(e,t)=>{st.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);dl.has(n)||(dl.add(n),fl(n,`format`,e=>t=>dt(e,t)),fl(n,`flatten`,e=>t=>ut(e,t)),fl(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,r,2)}),fl(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,r,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),pl=ht(P),ml=_t(P),hl=yt(P),gl=xt(P),_l=Dt(P),vl=Ot(P),yl=kt(P),bl=At(P),xl=jt(P),Sl=Mt(P),Cl=Nt(P),wl=Pt(P),Tl=e({ZodAny:()=>Zu,ZodArray:()=>od,ZodBase64:()=>hu,ZodBase64URL:()=>_u,ZodBigInt:()=>Bu,ZodBigIntFormat:()=>Hu,ZodBoolean:()=>zu,ZodCIDRv4:()=>du,ZodCIDRv6:()=>pu,ZodCUID:()=>Yl,ZodCUID2:()=>Zl,ZodCatch:()=>Jd,ZodCodec:()=>ef,ZodCreditCard:()=>xu,ZodCustom:()=>hf,ZodCustomStringFormat:()=>Du,ZodDate:()=>id,ZodDefault:()=>Bd,ZodDiscriminatedUnion:()=>pd,ZodE164:()=>yu,ZodEmail:()=>Pl,ZodEmoji:()=>Gl,ZodEnum:()=>Ed,ZodExactOptional:()=>Fd,ZodFile:()=>kd,ZodFunction:()=>pf,ZodGUID:()=>Il,ZodIBAN:()=>Cu,ZodIPv4:()=>au,ZodIPv6:()=>lu,ZodISODate:()=>jl,ZodISODateTime:()=>Al,ZodISODuration:()=>Nl,ZodISOTime:()=>Ml,ZodInstanceOf:()=>Sf,ZodIntersection:()=>hd,ZodJWT:()=>Tu,ZodKSUID:()=>ru,ZodLazy:()=>lf,ZodLiteral:()=>Od,ZodMAC:()=>su,ZodMap:()=>Sd,ZodNaN:()=>Xd,ZodNanoID:()=>ql,ZodNever:()=>ed,ZodNonOptional:()=>Wd,ZodNull:()=>Yu,ZodNullable:()=>Ld,ZodNumber:()=>Nu,ZodNumberFormat:()=>Pu,ZodObject:()=>cd,ZodOptional:()=>Nd,ZodPipe:()=>Qd,ZodPrefault:()=>Hd,ZodPreprocess:()=>rf,ZodPromise:()=>df,ZodReadonly:()=>af,ZodRecord:()=>yd,ZodSet:()=>wd,ZodString:()=>kl,ZodStringFormat:()=>L,ZodSuccess:()=>Kd,ZodSymbol:()=>Gu,ZodTemplateLiteral:()=>sf,ZodTransform:()=>jd,ZodTuple:()=>_d,ZodType:()=>F,ZodULID:()=>$l,ZodURL:()=>Hl,ZodUUID:()=>R,ZodUndefined:()=>qu,ZodUnion:()=>ud,ZodUnknown:()=>$u,ZodVoid:()=>nd,ZodXID:()=>tu,ZodXor:()=>dd,_ZodString:()=>Ol,_default:()=>Vd,_function:()=>mf,any:()=>Qu,array:()=>U,base64:()=>gu,base64url:()=>vu,bigint:()=>Vu,boolean:()=>V,catch:()=>Yd,check:()=>gf,cidrv4:()=>fu,cidrv6:()=>mu,codec:()=>tf,creditCard:()=>Su,cuid:()=>Xl,cuid2:()=>Ql,currencyCode:()=>ju,custom:()=>_f,date:()=>ad,describe:()=>bf,discriminatedUnion:()=>md,e164:()=>bu,email:()=>Fl,emoji:()=>Kl,enum:()=>J,exactOptional:()=>Id,file:()=>Ad,float32:()=>Fu,float64:()=>Iu,function:()=>mf,guid:()=>Ll,hash:()=>Mu,hex:()=>Au,hostname:()=>ku,httpUrl:()=>Wl,iban:()=>wu,instanceof:()=>Cf,int:()=>B,int32:()=>Lu,int64:()=>Uu,intersection:()=>gd,invertCodec:()=>nf,ipv4:()=>ou,ipv6:()=>uu,json:()=>Tf,jwt:()=>Eu,keyof:()=>sd,ksuid:()=>iu,lazy:()=>uf,literal:()=>Y,looseObject:()=>ld,looseRecord:()=>xd,mac:()=>cu,map:()=>Cd,meta:()=>xf,nan:()=>Zd,nanoid:()=>Jl,nativeEnum:()=>Dd,never:()=>td,nonoptional:()=>Gd,null:()=>Xu,nullable:()=>Rd,nullish:()=>zd,number:()=>z,object:()=>W,optional:()=>Pd,partialRecord:()=>bd,pipe:()=>$d,prefault:()=>Ud,preprocess:()=>Ef,promise:()=>ff,readonly:()=>of,record:()=>q,refine:()=>vf,set:()=>Td,strictObject:()=>G,string:()=>I,stringFormat:()=>Ou,stringbool:()=>wf,success:()=>qd,superRefine:()=>yf,symbol:()=>Ku,templateLiteral:()=>cf,transform:()=>Md,tuple:()=>vd,uint32:()=>Ru,uint64:()=>Wu,ulid:()=>eu,undefined:()=>Ju,union:()=>K,unknown:()=>H,url:()=>Ul,uuid:()=>Rl,uuidv4:()=>zl,uuidv6:()=>Bl,uuidv7:()=>Vl,void:()=>rd,xid:()=>nu,xor:()=>fd});function El(){S.localeError||C(uo())}function Dl(){S.memoizer||C({memoizer:so()})}var F=x(`ZodType`,(e,t)=>(El(),T.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(h(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(vf(e,t))},superRefine(e,t){return this.check(yf(e,t))},overwrite(e){return this.check(Ns(e))},optional(){return Pd(this)},exactOptional(){return Id(this)},nullable(){return Rd(this)},nullish(){return Pd(Rd(this))},nonoptional(e){return Gd(this,e)},array(){return U(this)},or(e){return K([this,e])},and(e){return gd(this,e)},transform(e){return $d(this,Md(e))},default(e){return Vd(this,e)},prefault(e){return Ud(this,e)},catch(e){return Yd(this,e)},pipe(e){return $d(this,e)},readonly(){return of(this)},describe(e){let t=this.clone();return D.add(t,{description:e}),t},meta(...e){if(e.length===0)return D.get(this);let t=this.clone();return D.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ze(this,`~standard`,{...kr(this),jsonSchema:{input:sc(this,`input`),output:sc(this,`output`)}})},set"~standard"(e){Re(this,`~standard`,e)},parse:function e(t,n){return pl(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await ml(this,t,n,{callee:e})},safeParse(e,t){return hl(this,e,t)},async safeParseAsync(e,t){return gl(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Re(this,`spa`,e)},validate(e,t){return wt(this,e,t)},validateAsync(e,t){return Et(this,e,t)},encode:function e(t,n){return _l(this,t,n,{callee:e})},decode:function e(t,n){return vl(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await yl(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await bl(this,t,n,{callee:e})},safeEncode(e,t){return xl(this,e,t)},safeDecode(e,t){return Sl(this,e,t)},async safeEncodeAsync(e,t){return Cl(this,e,t)},async safeDecodeAsync(e,t){return wl(this,e,t)},toJSONSchema(e){return oc(this,{})(e)},get description(){return D.get(this)?.description},get _def(){return this._zod.def}}),Ol=x(`_ZodString`,(e,t)=>{Ar.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sc(e,t,n,r)},Be({format:e=>N(e).format??null,minLength:e=>N(e).minimum??null,maxLength:e=>N(e).maximum??null},{regex(...e){return this.check(ws(...e))},includes(...e){return this.check(Ds(...e))},startsWith(...e){return this.check(Os(...e))},endsWith(...e){return this.check(ks(...e))},min(...e){return this.check(Ss(...e))},max(...e){return this.check(xs(...e))},length(...e){return this.check(Cs(...e))},nonempty(...e){return this.check(Ss(1,...e))},lowercase(e){return this.check(Ts(e))},uppercase(e){return this.check(Es(e))},trim(){return this.check(Fs())},normalize(...e){return this.check(Ps(...e))},toLowerCase(){return this.check(Is())},toUpperCase(){return this.check(Ls())},slugify(){return this.check(Rs())}})),kl=x(`ZodString`,(e,t)=>{Ar.init(e,t),Ol.init(e,t)},{email(e){return this.check(_o(Pl,e))},url(e){return this.check(Co(Hl,e))},jwt(e){return this.check(Vo(Tu,e))},emoji(e){return this.check(wo(Gl,e))},guid(e){return this.check(vo(Il,e))},uuid(e){return this.check(yo(R,e))},uuidv4(e){return this.check(bo(R,e))},uuidv6(e){return this.check(xo(R,e))},uuidv7(e){return this.check(So(R,e))},nanoid(e){return this.check(To(ql,e))},cuid(e){return this.check(Eo(Yl,e))},cuid2(e){return this.check(Do(Zl,e))},ulid(e){return this.check(Oo($l,e))},base64(e){return this.check(Io(hu,e))},base64url(e){return this.check(Lo(_u,e))},xid(e){return this.check(ko(tu,e))},ksuid(e){return this.check(Ao(ru,e))},ipv4(e){return this.check(jo(au,e))},ipv6(e){return this.check(Mo(lu,e))},cidrv4(e){return this.check(Po(du,e))},cidrv6(e){return this.check(Fo(pu,e))},e164(e){return this.check(Ro(yu,e))},datetime(e){return this.check(Ho(Al,e))},date(e){return this.check(Uo(jl,e))},time(e){return this.check(Wo(Ml,e))},duration(e){return this.check(Go(Nl,e))}});function I(e){return go(kl,e)}var L=x(`ZodStringFormat`,(e,t)=>{E.init(e,t),Ol.init(e,t)}),Al=x(`ZodISODateTime`,(e,t)=>{Yr.init(e,t),L.init(e,t)}),jl=x(`ZodISODate`,(e,t)=>{Xr.init(e,t),L.init(e,t)}),Ml=x(`ZodISOTime`,(e,t)=>{Zr.init(e,t),L.init(e,t)}),Nl=x(`ZodISODuration`,(e,t)=>{Qr.init(e,t),L.init(e,t)}),Pl=x(`ZodEmail`,(e,t)=>{Nr.init(e,t),L.init(e,t)});function Fl(e){return _o(Pl,e)}var Il=x(`ZodGUID`,(e,t)=>{jr.init(e,t),L.init(e,t)});function Ll(e){return vo(Il,e)}var R=x(`ZodUUID`,(e,t)=>{Mr.init(e,t),L.init(e,t)});function Rl(e){return yo(R,e)}function zl(e){return bo(R,e)}function Bl(e){return xo(R,e)}function Vl(e){return So(R,e)}var Hl=x(`ZodURL`,(e,t)=>{Vr.init(e,t),L.init(e,t)});function Ul(e){return Co(Hl,e)}function Wl(e){return Co(Hl,{protocol:mn,hostname:pn,...g(e)})}var Gl=x(`ZodEmoji`,(e,t)=>{Hr.init(e,t),L.init(e,t)});function Kl(e){return wo(Gl,e)}var ql=x(`ZodNanoID`,(e,t)=>{Ur.init(e,t),L.init(e,t)});function Jl(e){return To(ql,e)}var Yl=x(`ZodCUID`,(e,t)=>{Wr.init(e,t),L.init(e,t)});function Xl(e){return Eo(Yl,e)}var Zl=x(`ZodCUID2`,(e,t)=>{Gr.init(e,t),L.init(e,t)});function Ql(e){return Do(Zl,e)}var $l=x(`ZodULID`,(e,t)=>{Kr.init(e,t),L.init(e,t)});function eu(e){return Oo($l,e)}var tu=x(`ZodXID`,(e,t)=>{qr.init(e,t),L.init(e,t)});function nu(e){return ko(tu,e)}var ru=x(`ZodKSUID`,(e,t)=>{Jr.init(e,t),L.init(e,t)});function iu(e){return Ao(ru,e)}var au=x(`ZodIPv4`,(e,t)=>{$r.init(e,t),L.init(e,t)});function ou(e){return jo(au,e)}var su=x(`ZodMAC`,(e,t)=>{ri.init(e,t),L.init(e,t)});function cu(e){return No(su,e)}var lu=x(`ZodIPv6`,(e,t)=>{ni.init(e,t),L.init(e,t)});function uu(e){return Mo(lu,e)}var du=x(`ZodCIDRv4`,(e,t)=>{ii.init(e,t),L.init(e,t)});function fu(e){return Po(du,e)}var pu=x(`ZodCIDRv6`,(e,t)=>{oi.init(e,t),L.init(e,t)});function mu(e){return Fo(pu,e)}var hu=x(`ZodBase64`,(e,t)=>{li.init(e,t),L.init(e,t)});function gu(e){return Io(hu,e)}var _u=x(`ZodBase64URL`,(e,t)=>{fi.init(e,t),L.init(e,t)});function vu(e){return Lo(_u,e)}var yu=x(`ZodE164`,(e,t)=>{pi.init(e,t),L.init(e,t)});function bu(e){return Ro(yu,e)}var xu=x(`ZodCreditCard`,(e,t)=>{_i.init(e,t),L.init(e,t)});function Su(e){return zo(xu,e)}var Cu=x(`ZodIBAN`,(e,t)=>{bi.init(e,t),L.init(e,t)});function wu(e){return Bo(Cu,e)}var Tu=x(`ZodJWT`,(e,t)=>{Si.init(e,t),L.init(e,t)});function Eu(e){return Vo(Tu,e)}var Du=x(`ZodCustomStringFormat`,(e,t)=>{Ci.init(e,t),L.init(e,t)});function Ou(e,t,n={}){return Js(Du,e,t,n)}function ku(e){return Js(Du,`hostname`,fn,e)}function Au(e){return Js(Du,`hex`,Fn,e)}function ju(e){return Js(Du,`currency_code`,_n,e)}function Mu(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Ft[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Js(Du,n,r,t)}var Nu=x(`ZodNumber`,(e,t)=>{wi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cc(e,t,n,r),e.isFinite=!0},Be({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=N(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=N(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=N(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>N(e).format??null},{gt(e,t){return this.check(fs(e,t))},gte(e,t){return this.check(k(e,t))},min(e,t){return this.check(k(e,t))},lt(e,t){return this.check(ds(e,t))},lte(e,t){return this.check(O(e,t))},max(e,t){return this.check(O(e,t))},int(e){return this.check(B(e))},safe(e){return this.check(B(e))},positive(e){return this.check(fs(0,e))},nonnegative(e){return this.check(k(0,e))},negative(e){return this.check(ds(0,e))},nonpositive(e){return this.check(O(0,e))},multipleOf(e,t){return this.check(_s(e,t))},step(e,t){return this.check(_s(e,t))},finite(){return this}}));function z(e){return Ko(Nu,e)}var Pu=x(`ZodNumberFormat`,(e,t)=>{Ti.init(e,t),Nu.init(e,t)});function B(e){return qo(Pu,e)}function Fu(e){return Jo(Pu,e)}function Iu(e){return Yo(Pu,e)}function Lu(e){return Xo(Pu,e)}function Ru(e){return Zo(Pu,e)}var zu=x(`ZodBoolean`,(e,t)=>{Ei.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wc(e,t,n,r)});function V(e){return Qo(zu,e)}var Bu=x(`ZodBigInt`,(e,t)=>{Di.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tc(e,t,n,r)},Be({minValue:e=>N(e).minimum??null,maxValue:e=>N(e).maximum??null,format:e=>N(e).format??null},{gte(e,t){return this.check(k(e,t))},min(e,t){return this.check(k(e,t))},gt(e,t){return this.check(fs(e,t))},lt(e,t){return this.check(ds(e,t))},lte(e,t){return this.check(O(e,t))},max(e,t){return this.check(O(e,t))},positive(e){return this.check(fs(BigInt(0),e))},negative(e){return this.check(ds(BigInt(0),e))},nonpositive(e){return this.check(O(BigInt(0),e))},nonnegative(e){return this.check(k(BigInt(0),e))},multipleOf(e,t){return this.check(_s(e,t))}}));function Vu(e){return $o(Bu,e)}var Hu=x(`ZodBigIntFormat`,(e,t)=>{Oi.init(e,t),Bu.init(e,t)});function Uu(e){return es(Hu,e)}function Wu(e){return ts(Hu,e)}var Gu=x(`ZodSymbol`,(e,t)=>{ki.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ec(e,t,n,r)});function Ku(e){return ns(Gu,e)}var qu=x(`ZodUndefined`,(e,t)=>{Ai.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oc(e,t,n,r)});function Ju(e){return rs(qu,e)}var Yu=x(`ZodNull`,(e,t)=>{ji.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dc(e,t,n,r)});function Xu(e){return is(Yu,e)}var Zu=x(`ZodAny`,(e,t)=>{Mi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Qu(){return as(Zu)}var $u=x(`ZodUnknown`,(e,t)=>{Ni.init(e,t),F.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function H(){return os($u)}var ed=x(`ZodNever`,(e,t)=>{Pi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ac(e,t,n,r)});function td(e){return ss(ed,e)}var nd=x(`ZodVoid`,(e,t)=>{Fi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kc(e,t,n,r)});function rd(e){return cs(nd,e)}var id=x(`ZodDate`,(e,t)=>{Ii.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jc(e,t,n,r),e.min=(t,n)=>e.check(k(t,n)),e.max=(t,n)=>e.check(O(t,n))},Be({minDate:e=>{let{minimum:t}=N(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=N(e);return t?new Date(t):null}},{}));function ad(e){return ls(id,e)}var od=x(`ZodArray`,(e,t)=>{Dl(),Hi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Ss(e,t))},nonempty(e){return this.check(Ss(1,e))},max(e,t){return this.check(xs(e,t))},length(e,t){return this.check(Cs(e,t))},unwrap(){return this.element}});function U(e,t){return zs(od,e,t)}function sd(e){let t=e._zod.def.shape;return J(Object.keys(t))}var cd=x(`ZodObject`,(e,t)=>{Dl(),Ji.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r),Ke(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return J(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(h(this._zod.def,{catchall:e}))},passthrough(){return this.clone(h(this._zod.def,{catchall:H()}))},loose(){return this.clone(h(this._zod.def,{catchall:H()}))},strict(){return this.clone(h(this._zod.def,{catchall:td()}))},strip(){return this.clone(h(this._zod.def,{catchall:void 0}))},extend(e){return xe(this,e)},safeExtend(e){return Ce(this,e)},merge(e){return we(this,e)},pick(e){return ve(this,e)},omit(e){return be(this,e)},partial(...e){return Te(Nd,this,e[0])},exactPartial(...e){return Te(Fd,this,e[0],`exactPartial`)},required(...e){return Ee(Wd,this,e[0])}});function W(e,t){return new cd({type:`object`,shape:e??{},...g(t)})}function G(e,t){return new cd({type:`object`,shape:e,catchall:td(),...g(t)})}function ld(e,t){return new cd({type:`object`,shape:e,catchall:H(),...g(t)})}var ud=x(`ZodUnion`,(e,t)=>{Xi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function K(e,t){return new ud({type:`union`,options:e,...g(t)})}var dd=x(`ZodXor`,(e,t)=>{ud.init(e,t),Qi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function fd(e,t){return new dd({type:`union`,options:e,inclusive:!1,...g(t)})}var pd=x(`ZodDiscriminatedUnion`,(e,t)=>{ud.init(e,t),ea.init(e,t)});function md(e,t,n){return new pd({type:`union`,options:t,discriminator:e,...g(n)})}var hd=x(`ZodIntersection`,(e,t)=>{ta.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r)});function gd(e,t){return new hd({type:`intersection`,left:e,right:t})}var _d=x(`ZodTuple`,(e,t)=>{Dl(),ia.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new Nd({type:`optional`,innerType:e}))})}});function vd(e,t,n){let r=t instanceof T;return new _d({type:`tuple`,items:e,rest:r?t:null,...g(r?n:t)})}var yd=x(`ZodRecord`,(e,t)=>{Dl(),ca.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function q(e,t,n){return!t||!t._zod?new yd({type:`record`,keyType:I(),valueType:e,...g(t)}):new yd({type:`record`,keyType:e,valueType:t,...g(n)})}function bd(e,t,n){return new yd({type:`record`,keyType:e,valueType:t,...g(n),partial:!0})}function xd(e,t,n){return new yd({type:`record`,keyType:e,valueType:t,mode:`loose`,...g(n)})}var Sd=x(`ZodMap`,(e,t)=>{Dl(),la.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(ys(...t)),e.nonempty=t=>e.check(ys(1,t)),e.max=(...t)=>e.check(vs(...t)),e.size=(...t)=>e.check(bs(...t))});function Cd(e,t,n){return new Sd({type:`map`,keyType:e,valueType:t,...g(n)})}var wd=x(`ZodSet`,(e,t)=>{Dl(),da.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.min=(...t)=>e.check(ys(...t)),e.nonempty=t=>e.check(ys(1,t)),e.max=(...t)=>e.check(vs(...t)),e.size=(...t)=>e.check(bs(...t))});function Td(e,t){return new wd({type:`set`,valueType:e,...g(t)})}var Ed=x(`ZodEnum`,(e,t)=>{pa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mc(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ed({...t,checks:[],...g(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ed({...t,checks:[],...g(r),entries:i})}});function J(e,t){return new Ed({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...g(t)})}function Dd(e,t){return new Ed({type:`enum`,entries:e,...g(t)})}var Od=x(`ZodLiteral`,(e,t)=>{ma.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nc(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Y(e,t){return new Od({type:`literal`,values:Array.isArray(e)?e:[e],...g(t)})}var kd=x(`ZodFile`,(e,t)=>{ha.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ic(e,t,n,r),e.min=(t,n)=>e.check(ys(t,n)),e.max=(t,n)=>e.check(vs(t,n)),e.mime=(t,n)=>e.check(Ms(Array.isArray(t)?t:[t],n))});function Ad(e){return Bs(kd,e)}var jd=x(`ZodTransform`,(e,t)=>{Dl(),ga.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new et(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ie(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Ie(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Md(e){return new jd({type:`transform`,transform:e})}var Nd=x(`ZodOptional`,(e,t)=>{va.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Pd(e){return new Nd({type:`optional`,innerType:e})}var Fd=x(`ZodExactOptional`,(e,t)=>{ya.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Id(e){return new Fd({type:`optional`,innerType:e})}var Ld=x(`ZodNullable`,(e,t)=>{ba.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Rd(e){return new Ld({type:`nullable`,innerType:e})}function zd(e){return Pd(Rd(e))}var Bd=x(`ZodDefault`,(e,t)=>{xa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Vd(e,t){return new Bd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():le(t)}})}var Hd=x(`ZodPrefault`,(e,t)=>{Ca.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ud(e,t){return new Hd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():le(t)}})}var Wd=x(`ZodNonOptional`,(e,t)=>{wa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gd(e,t){return new Wd({type:`nonoptional`,innerType:e,...g(t)})}var Kd=x(`ZodSuccess`,(e,t)=>{Ea.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Kd({type:`success`,innerType:e})}var Jd=x(`ZodCatch`,(e,t)=>{Oa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Yd(e,t){return new Jd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Je(t)})}var Xd=x(`ZodNaN`,(e,t)=>{ka.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pc(e,t,n,r)});function Zd(e){return us(Xd,e)}var Qd=x(`ZodPipe`,(e,t)=>{Aa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),e.in=t.in,e.out=t.out});function $d(e,t){return new Qd({type:`pipe`,in:e,out:t})}var ef=x(`ZodCodec`,(e,t)=>{Qd.init(e,t),Ma.init(e,t)});function tf(e,t,n){return new ef({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function nf(e){let t=e._zod.def;return new ef({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var rf=x(`ZodPreprocess`,(e,t)=>{Qd.init(e,t),Fa.init(e,t)}),af=x(`ZodReadonly`,(e,t)=>{Ia.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function of(e){return new af({type:`readonly`,innerType:e})}var sf=x(`ZodTemplateLiteral`,(e,t)=>{Ba.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fc(e,t,n,r)});function cf(e,t){return new sf({type:`template_literal`,parts:e,...g(t)})}var lf=x(`ZodLazy`,(e,t)=>{Ua.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function uf(e){return new lf({type:`lazy`,getter:e})}var df=x(`ZodPromise`,(e,t)=>{Ha.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ff(e){return new df({type:`promise`,innerType:e})}var pf=x(`ZodFunction`,(e,t)=>{Va.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(e,t,n,r)});function mf(e){return new pf({type:`function`,input:Array.isArray(e?.input)?vd(e?.input):e?.input??U(H()),output:e?.output??H()})}var hf=x(`ZodCustom`,(e,t)=>{Wa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r)});function gf(e){let t=new w({check:`custom`});return t._zod.check=e,t}function _f(e,t){return Vs(hf,e??(()=>!0),t)}function vf(e,t={}){return Hs(hf,e,t)}function yf(e,t){return Us(e,t)}var bf=Gs,xf=Ks,Sf=x(`ZodInstanceOf`,(e,t)=>{hf.init(e,t)},{properties(e,t){return this.check(js(e,t))}});function Cf(e,t={}){let n=new Sf({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...g(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var wf=(...e)=>qs({Codec:ef,Boolean:zu,String:kl},...e);function Tf(e){let t=uf(()=>K([I(e),z(),V(),Xu(),U(t),q(I(),t)]));return t}function Ef(e,t){return new rf({type:`pipe`,in:Md(e),out:t})}var Df=e({ZodISODate:()=>jl,ZodISODateTime:()=>Al,ZodISODuration:()=>Nl,ZodISOTime:()=>Ml,date:()=>Of,datetime:()=>X,duration:()=>Af,time:()=>kf});function X(e){return Ho(Al,e)}function Of(e){return Uo(jl,e)}function kf(e){return Wo(Ml,e)}function Af(e){return Go(Nl,e)}G({jsonrpc:Y(`2.0`),id:K([I(),B()]),method:I().min(1),params:H().optional()}),G({jsonrpc:Y(`2.0`),method:I().min(1),params:H().optional()});var jf=G({code:B(),message:I(),data:H().optional()});K([G({jsonrpc:Y(`2.0`),id:K([I(),B()]),result:H()}),G({jsonrpc:Y(`2.0`),id:K([I(),B(),Xu()]),error:jf})]);var Mf={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},Z=(e,t,n)=>({params:e,result:t,about:n}),Nf=(e,t)=>({params:e,about:t}),Pf=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function Ff(e,t,n){let{id:r}=n,i=Object.hasOwn(e,n.method)?e[n.method]:void 0;if(!i)return{jsonrpc:`2.0`,id:r,error:{code:Mf.methodNotFound,message:`There is no method "${n.method}".`}};let a=i.params.safeParse(n.params??{});if(!a.success)return{jsonrpc:`2.0`,id:r,error:{code:Mf.invalidParams,message:pt(a.error)}};try{let e=t[n.method],o=await e(a.data);return{jsonrpc:`2.0`,id:r,result:i.result.parse(o)}}catch(e){return e instanceof Pf?{jsonrpc:`2.0`,id:r,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}:{jsonrpc:`2.0`,id:r,error:{code:Mf.internal,message:e instanceof Error?e.message:String(e)}}}}var Q=I().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),If=K([Y(``),Q]),Lf=I().regex(/^[0-9a-f]{64}$/u).nullable(),Rf=G({kind:J([`person`,`agent`,`tool`]),name:I().min(1)}),zf=G({path:Q,size:B().nonnegative(),modified:z()}),Bf={"files/read":Z(G({path:Q}),G({text:I(),version:Lf}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":Z(G({path:Q,text:I(),over:Lf}),G({version:Lf}),`Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it.`),"files/upload":Z(G({dir:Q,name:I().min(1),data:gu()}),G({path:Q}),`Keeps a file the person added, under a free name in the folder.`),"files/url":Z(G({path:Q}),G({url:I()}),`An address a page can load the file from (a picture, a video).`),"files/list":Z(G({dir:I()}),G({files:U(zf),dirs:U(Q)}),`A folder's files and folders, as on disk.`),"files/move":Z(G({from:Q,to:Q}),G({rewritten:U(Q)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":Z(G({path:Q}),G({trash:I()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":Z(G({}),G({entries:U(G({id:I(),path:Q,removed:z()}))}),`What the recycle bin holds.`),"files/restore":Z(G({id:I()}),G({path:Q}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":Z(G({paths:U(Q).min(1)}),G({watch:I()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":Z(G({watch:I()}),G({}),`Stops a watch.`)},Vf={"files/changed":Nf(G({watch:I(),changes:U(G({path:Q,version:Lf,by:Rf.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},Hf=W({name:I().min(1),only:U(I().min(1)),values:U(I().min(1)).optional()}),Uf=W({types:U(I().min(1)),extras:U(I().min(1)),options:U(Hf),names:q(I(),q(I(),I())).optional()}),Wf={noun:I().min(1),icon:I().min(1).optional(),color:I().min(1).optional(),editor:I().min(1).optional(),exports:Uf.optional(),share:V().optional()},Gf=W({name:I().min(1),...Wf}),Kf=W({name:q(I(),I().min(1)),plural:q(I(),I().min(1)).optional(),starter:W({files:q(I().min(1),I()),entry:I().min(1)}).optional(),...Wf}),qf=(e,t)=>e.name[t]??e.name.en??e.noun,Jf=/\.(ya?ml|json)$/u;function Yf(e,t,n,r){let i=e=>e.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r);return{files:Object.entries(e.files).map(([e,a])=>{let o=i(e),s=Jf.test(o)?JSON.stringify(t):t;return{path:o,text:a.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r).replaceAll(`{{title}}`,()=>s)}}),entry:i(e.entry)}}function Xf(e,t,n){return t===void 0?{name:e??`file`,noun:e??`file`}:{name:qf(t,n),noun:t.noun,...t.icon===void 0?{}:{icon:t.icon},...t.color===void 0?{}:{color:t.color},...t.editor===void 0?{}:{editor:t.editor},...t.exports===void 0?{}:{exports:t.exports},...t.share===void 0?{}:{share:t.share}}}var Zf=[`script`,`style`,`font`,`img`,`media`,`connect`],Qf=[`agent`,`project`,`piece`,`plugin`,`skill`,`website`,`studio`],$f=[`download`,`wake`,`export`,`update`,`install`,`start`,`publish`],ep=[`queued`,`running`,`paused`,`done`,`failed`,`cancelled`],tp=[`bytes`,`files`,`share`],np=[`offline`,`no-space`,`no-credits`,`unavailable`,`other`],rp=[`first-setup`],ip=G({kind:J(Qf),id:I()}),ap=G({id:I(),about:ip,what:J($f),name:I().optional(),state:J(ep),completed:z().min(0),total:z().min(0).optional(),unit:J(tp),left:z().min(0).optional(),stalled:V().optional(),step:J(rp).optional(),cancellable:V(),pausable:V().optional(),quiet:V().optional(),retryable:V(),failure:G({reason:J(np),details:I()}).optional(),made:I().optional(),started:z(),ended:z().optional()}),op=G({mime:I().regex(/^image\//u),data:gu()}),sp=md(`type`,[G({type:Y(`picture`),image:op,width:B().positive(),height:B().positive(),duration:z().nonnegative().optional()}),G({type:Y(`text`),lines:U(I())}),G({type:Y(`table`),columns:U(I()),rows:U(U(I())),count:B().nonnegative()})]);G({id:Q,kind:I().min(1),dir:If,entry:Q,title:I().optional()});var cp={item:Q,version:I().optional()},lp=ld({code:I(),level:J([`error`,`warn`]),message:I(),piece:I().optional(),part:I().optional(),t:z().optional()}),up=ld({kind:I(),data:H()}),dp=G({status:J([`off`,`waiting`,`running`,`done`,`failed`]),revision:B().nonnegative(),problems:U(lp),facts:U(up),versions:G({total:B(),loaded:B(),reused:B()}).optional(),error:I().optional()}),fp=[`queued`,`running`,`done`,`failed`,`cancelled`],pp=q(I(),K([I(),V()])),mp=G({id:I(),item:Q,versions:U(I()),types:U(I()),options:pp.optional(),state:J(fp),progress:z().min(0).max(1),files:U(Q),error:I().optional()}),hp=G({file:Q,status:J([`running`,`done`,`failed`]),message:I(),share:z().min(0).max(1).optional()}),gp=G({url:I(),probe:I()}),_p={"project/items":Z(G({}),G({items:U(G({id:Q,kind:I().min(1).optional(),dir:If,entry:Q,title:I().optional(),groups:U(I()),files:U(W({path:I().min(1),role:I().min(1).optional()})).optional(),kindInfo:Kf.optional()})),kinds:U(Kf.extend({id:I().min(1)})).optional(),name:I(),scope:I(),revision:B().nonnegative()}),`The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name.`),"items/preview":Z(G({item:Q}),G({preview:sp.optional()}),`What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none.`),"work/add":Z(G({kind:I().min(1),file:Q,title:I().min(1).optional()}),G({}),`Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already.`),"components/list":Z(G({item:Q}),G({components:U(G({of:I(),name:I(),label:K([I(),q(I(),I())]).optional()}))}),`The components an item may place: every one the project's files define, by the reference it would write.`),"components/stage":Z(G(cp),gp,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":Z(G({...cp,components:U(G({name:I(),props:q(I(),H()),width:z().positive(),height:z().positive(),t:z().nonnegative()})).min(1).max(64)}),G({stills:U(G({key:I(),url:Ul()}).nullable())}),`An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses.`),"check/results":Z(G({}),dp,`The check run after edits, as it stands.`),"check/run":Z(G({}),G({}),`Runs the check again now.`),"export/start":Z(G({item:Q,versions:U(I()).optional(),types:U(I().min(1)).max(10).optional(),options:pp.optional()}),G({job:mp}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":Z(G({job:I()}),G({}),`Stops an export.`),"export/list":Z(G({}),G({jobs:U(mp),reveal:V()}),`The exports asked for since the server started.`),"export/reveal":Z(G({path:Q}),G({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},vp={"project/items":`project`,"items/preview":`asleep`,"work/add":`machine`,"components/list":`asleep`,"components/stage":`asleep`,"components/stills":`project`,"check/results":`project`,"check/run":`machine`,"export/start":`machine`,"export/cancel":`machine`,"export/list":`asleep`,"export/reveal":`machine`};function yp(e){return async(t,n,r)=>{let{result:i}=await t[`tools/call`]({name:n,arguments:r}),a=e[n]?.result.safeParse(i);if(!a?.success)throw new Pf(Mf.internal,`The answer to the tool ${n} is not what the protocol says.`);return a.data}}var bp={"project/changed":Nf(G({revision:B().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"check/changed":Nf(dp,`The check started, ended or failed.`),"export/changed":Nf(G({job:mp}),`An export moved on.`),"index/changed":Nf(G({jobs:U(hp)}),`Making what the media index lacks moved on.`),"jobs/changed":Nf(G({job:ap,item:Q}),`A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.`)},$=e=>K([J(e),I().min(1).brand()]),xp=e=>U(H()).transform(t=>t.flatMap(t=>{let n=e.safeParse(t);return n.success?[n.data]:[]})),Sp=[`no_card`,`saving_card`,`not_a_card`,`declined`,`needs_authentication`,`not_charged`,`under_line`,`refunded`,`disputed`,`monthly_limit`],Cp=[`month`,`year`];W({credits:z(),held:z(),owed:z(),frozen:I().nullable().default(null),plan:W({id:I(),name:I(),interval:$(Cp),status:I(),renewsAt:X().nullable(),endsAt:X().nullable(),monthlyCredits:z().default(0),price:W({amountCents:z(),currency:I()}).nullable().default(null)}).nullable(),allowance:W({total:z(),used:z(),renewsAt:X()}).nullable().default(null),bought:z().default(0),customer:V().default(!1),autoTopUp:W({below:z(),amountCents:z(),monthlyLimitCents:z().nullable().default(null),chargedThisMonthCents:z().default(0),stopped:$(Sp).nullable()}).nullable()}),W({plans:U(W({id:I(),name:I(),family:I().nullable().default(null),recommended:V().default(!1),monthlyCredits:z(),prices:U(W({interval:$(Cp),amountCents:z(),currency:I()}))})),topUp:W({currency:I(),creditsPerDollar:z(),minCents:z(),maxCents:z(),presetsCents:U(z()).default([])}),welcomeCredits:z().optional()}),W({days:U(W({day:Of(),credits:z(),byKind:q(I(),z()).default({})}))}),W({spends:U(W({at:I(),kind:$([`models`,`tools`,`studio`,`other`]),what:I().nullable(),seconds:z().nullable(),member:I().nullable(),credits:z()})),more:V()}),K([G({plan:I(),interval:J(Cp)}),G({topUpCents:z().int()})]),K([G({flow:J([`home`,`payment_method`,`cancel`])}),G({flow:Y(`change_plan`),plan:I(),interval:J(Cp)})]).default({flow:`home`}),W({card:W({brand:I(),last4:I(),expMonth:z(),expYear:z()}).nullable(),email:I().nullable()}),W({invoices:U(W({id:I(),number:I().nullable(),createdAt:I(),kind:$([`plan`,`credits`]),totalCents:z(),currency:I(),status:I(),pdf:I().nullable(),url:I().nullable()}))}),G({topUpCents:z().int()}),G({below:z().nonnegative(),amountCents:z().int().positive(),monthlyLimitCents:z().int().positive().nullable().optional(),newCard:V().optional()});var wp={tier:$([`premium`,`standard`,`efficient`]).optional(),maker:I().min(1).optional()};W({models:U(ld({id:I().min(1),name:I().min(1),...wp,reasoning:V().optional(),input:U(I()).optional(),contextWindow:z().int().positive().optional(),maxOutput:z().int().positive().optional()})).min(1),defaultModel:I().min(1),needPlan:U(ld({id:I().min(1),name:I().min(1),...wp})).default([])});var Tp=q(I(),H()),Ep=[`call`,`result`,`page`,`second`,`minute`,`thousand_characters`,`image`,`frame`,`megapixel`,`question`,`phrase`],Dp=[`video`,`image`,`voice`,`music`],Op=W({id:I().min(1),title:I().min(1),description:I().min(1),kind:$([`data`,`ai`]).default(`data`),line:I().optional()}),kp=W({name:I().min(1),work:I().min(1),title:I().min(1),description:I().min(1),input:Tp,output:Tp,long:V(),example:q(I(),H()).optional(),price:W({credits:z().nonnegative(),per:$(Ep),varies:V()}).optional(),shown:W({name:I(),line:I(),section:$(Dp)}).optional()});W({version:I().min(1),works:U(Op),tools:U(kp)}),W({off:W({works:U(I()),tools:U(I())})}),K([G({work:I().min(1),on:V()}),G({tool:I().min(1),on:V()})]),W({editors:U(W({id:I().min(1),name:q(I(),I()),plural:q(I(),I()).optional(),line:q(I(),I()),icon:I().optional(),color:I().optional()}))}),G({input:q(I(),H())}),W({id:I().min(1),tool:I().min(1),status:$([`working`,`completed`,`failed`]),output:H().optional(),error:W({kind:I().min(1),message:I().min(1)}).optional(),credits:z().nonnegative().optional(),pollAfterMs:z().int().nonnegative().optional(),createdAt:I(),endedAt:I().optional()});var Ap=1073741824;G({name:I().min(1).max(255),size:B().positive().max(Ap),sha256:I().regex(/^[0-9a-f]{64}$/u),contentType:I().min(1).max(255)}),W({id:I().min(1),upload:W({url:Ul(),headers:q(I(),I())}).nullable()}),W({id:I().min(1),name:I()}),W({url:Ul()});var jp=I().regex(/^[0-9a-f]{64}$/u),Mp=I().min(1).max(1024).refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`),`a relative path of forward slashes, without . or ..`),Np=W({sha256:jp,size:B().nonnegative().max(Ap)}),Pp=Np.extend({type:I().min(1).max(255)});G({blobs:U(Np.extend({contentType:I().min(1).max(255)})).min(1).max(1e3)}),W({uploads:U(W({sha256:jp,url:Ul(),headers:q(I(),I())}))});var Fp=W({sessionId:I().min(1),agent:I().min(1),title:I().optional(),createdAt:X(),updatedAt:X(),transcript:jp});W({sessionId:I().min(1),messages:U(W({method:I().min(1),params:H()}))});var Ip=[`project`,`home`];I().regex(/^[a-z][a-z0-9-]*\/$/u,`one lower-case word and /`).refine(e=>!Object.values(Hp).includes(e)&&!Object.values(tm).includes(e),`a folder of the core's`),$(Zf);var Lp=q(I(),U(I())),Rp=I().refine(e=>e.endsWith(`/`)&&Mp.safeParse(e.slice(0,-1)).success,`a folder of the tree, ending in /`),zp=W({tree:U(Mp),files:U(Mp),own:q(Mp,Pp)}),Bp=W({shared:U(Rp),items:q(I(),zp)}),Vp=W({format:Y(1),kind:J(Ip),project:W({name:I().min(1).max(255)}),host:W({version:I().min(1)}),madeAt:X(),files:q(Mp,Np),tree:q(Mp,Pp),conversations:U(Fp),reach:Bp.optional(),routes:Lp.optional()}),Hp={editor:`editor/`,runtime:`runtime/`,build:`build/`,media:`media/`,matte:`matte/`,stills:`stills/`,answers:`answers/`,previews:`previews/`};function Up(e){return Array.isArray(e)?e.map(Up):typeof e==`object`&&e?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Up(e[t])])):e}var Wp=(e,t)=>`${Hp.answers}${e}/${encodeURIComponent(JSON.stringify(Up(t??{})))}.json`,Gp=W({result:H().optional(),error:W({code:z(),message:I(),data:H().optional()}).optional()}),Kp=e=>`${Hp.stills}${e}.webp`,qp=(e,t)=>`${Hp.stills}index/${encodeURIComponent(e)}/${encodeURIComponent(t)}.json`,Jp=W({stills:q(I(),I().regex(/^[0-9a-f]{64}$/u))}),Yp=e=>JSON.stringify(Up(e)),Xp=W({name:I(),props:q(I(),H()),width:z().positive(),height:z().positive(),t:z().nonnegative()});W({stills:U(W({version:I(),components:U(Xp)})).optional(),shows:W({media:U(I()),data:U(I())}).optional(),routes:q(I(),U(I().min(1))).optional()}),`${Hp.runtime}`,`${Hp.runtime}`,`${Hp.runtime}`;var Zp=e=>e.split(`/`).map(encodeURIComponent).join(`/`),Qp=[`cloud`,`computer`];I().regex(/^[A-Za-z0-9_-]{16,64}$/u);var $p=W({kind:$(Qp),here:V()});G({project:G({id:I().min(1).optional(),kind:J(Ip),name:I().min(1).max(255)}),manifest:jp}),W({id:I().min(1),projectId:I().min(1)}),W({missing:U(jp)});var em=W({id:I().min(1),madeAt:X(),hostVersion:I()});W({projects:xp(W({id:I().min(1),kind:J(Ip),name:I(),latest:em.nullable(),executor:$p}))}),G({kind:J(Qp)}),W({origin:Ul(),expiresAt:X()});var tm={manifest:`manifest.json`,files:`files/`,conversations:`conversations/`},nm=-32010,rm=e=>typeof e==`object`&&!!e&&e.code===-32010;W({changed:U(I())});export{Tl as $,Q as A,Rs as At,U as B,Gf as C,Ps as Ct,Bf as D,As as Dt,Yf as E,js as Et,Nf as F,Es as Ft,Tf as G,_f as H,X as I,D as It,ld as J,uf as K,Df as L,d as Lt,Pf as M,Is as Mt,Ff as N,Ls as Nt,Vf as O,ws as Ot,Z as P,Fs as Pt,q as Q,J as R,ce as Rt,op as S,hs as St,qf as T,ps as Tt,md as U,V,B as W,W as X,z as Y,bd as Z,_p as _,Ss as _t,Jp as a,Ul as at,cp as b,ms as bt,Kp as c,k as ct,Zp as d,Ts as dt,G as et,jp as f,ds as ft,gp as g,Ms as gt,$ as h,vs as ht,Vp as i,H as it,Mf as j,Os as jt,If as k,bs as kt,Yp as l,Ds as lt,Mp as m,xs as mt,Gp as n,vd as nt,rm as o,ks as ot,Pp as p,O as pt,Y as q,tm as r,K as rt,Wp as s,fs as st,nm as t,I as tt,qp as u,Cs as ut,vp as v,ys as vt,Xf as w,Ns as wt,yp as x,gs as xt,bp as y,_s as yt,Xu as z};
56
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function $s(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;$s(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var ec=new Set([`type`,`properties`,`required`,`additionalProperties`]),tc=[`oneOf`,`anyOf`];function nc(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function rc(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!ec.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??nc(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}d(n,r,e.length===1?e[0]:rc(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=nc(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function ic(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of ec)if(t in e)return;let n=t.filter(e=>tc.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=rc(t);else{let e=n[0],i=tc.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>rc([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Ys(e,r))}function ac(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Ys(i,s),Ys(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())$s(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])ic(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Ys(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,d(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:sc(t,`input`,e.processors),output:sc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function M(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return M(r.element,n);if(r.type===`set`)return M(r.valueType,n);if(r.type===`lazy`)return M(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return M(r.innerType,n);if(r.type===`intersection`)return M(r.left,n)||M(r.right,n);if(r.type===`record`||r.type===`map`)return M(r.keyType,n)||M(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:M(r.in,n)||M(r.out,n);if(r.type===`object`){for(let e in r.shape)if(M(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(M(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(M(e,n))return!0;return!!(r.rest&&M(r.rest,n))}return!1}var oc=(e,t={})=>n=>{let r=Xs({...n,processors:t});return j(e,r),Qs(r,e),ac(r,e)},sc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Xs({...i??{},target:a,io:t,processors:n});return j(e,o),Qs(o,e),ac(o,e)},cc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},lc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},uc=(e,t)=>{cc(e,`minimum`,t),lc(e,`maximum`,t)},dc=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},fc=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},pc=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},mc=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},hc=(e,t)=>cc(e,`minimum`,t.minimum),gc=(e,t)=>lc(e,`maximum`,t.maximum),_c=e=>(t,n)=>{mc(t,n.format);let[r,i]=e[n.format];cc(t,`minimum`,r),lc(t,`maximum`,i)},vc={greater_than:(e,t)=>cc(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>lc(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>dc(e,t.value),number_format:_c(ge),bigint_format:_c(_e),min_length:hc,max_length:gc,length_equals:(e,t)=>uc(e,t.length),min_size:hc,max_size:gc,size_equals:(e,t)=>uc(e,t.size),string_format:(e,t)=>{mc(e,t.format),t.pattern&&fc(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>pc(e,t.mime)};function N(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)vc[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&cc(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&cc(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&lc(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&lc(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&dc(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&pc(t,i.mime);for(let e of i.patterns??[])fc(t,e);return t}var yc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bc=new Map([[ci,un],[ui,dn]]),xc=e=>bc.get(e)??e,Sc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=N(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yc[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(xc);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Cc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=N(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):A(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},wc=(e,t,n,r)=>{n.type=`boolean`},Tc=(e,t,n,r)=>{A(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},Ec=(e,t,n,r)=>{A(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},Dc=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Oc=(e,t,n,r)=>{A(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},kc=(e,t,n,r)=>{A(e,t,n,r,`Void cannot be represented in JSON Schema`)},Ac=(e,t,n,r)=>{n.not={}},jc=(e,t,n,r)=>{A(e,t,n,r,`Date cannot be represented in JSON Schema`)},Mc=(e,n,r,i)=>{let a=e._zod.def,o=t(a.entries);o.length===0?r.not={}:(o.every(e=>typeof e==`number`)&&(r.type=`number`),o.every(e=>typeof e==`string`)&&(r.type=`string`),r.enum=o)},Nc=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(A(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(A(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Pc=(e,t,n,r)=>{A(e,t,n,r,`NaN cannot be represented in JSON Schema`)},Fc=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Ic=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=N(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},Lc=(e,t,n,r)=>{n.type=`boolean`},Rc=(e,t,n,r)=>{A(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},zc=(e,t,n,r)=>{A(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Bc=(e,t,n,r)=>{A(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Vc=(e,t,n,r)=>{A(e,t,n,r,`Map cannot be represented in JSON Schema`)},Hc=(e,t,n,r)=>{A(e,t,n,r,`Set cannot be represented in JSON Schema`)},Uc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=N(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=j(a.element,t,{...r,path:[...r.path,`items`]})};function Wc(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Wc(t.out):t.type===`catch`?Wc(t.innerType):e._zod.optin}var Gc=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&A(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)d(i.properties,e,j(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Wc(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=j(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>j(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qc=(e,t,n,r)=>{let i=e._zod.def,a=j(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=j(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Jc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>j(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?j(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Wc(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=N(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function Yc(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Yc(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Yc(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?kn:On).source)),p}var Xc=new WeakMap;function Zc(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of Xc.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Yc(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Qc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=N(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=j(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)d(i.patternProperties,xc(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=j(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Xc.get(t);n||(n=[],Xc.set(t,n),t.deferred.push(()=>Zc(t))),n.push(e)}i.additionalProperties=j(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Wc(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},$c=(e,t,n,r)=>{let i=e._zod.def,a=j(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},el=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},tl=Symbol();function nl(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(A(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),tl):JSON.parse(o)}var rl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n.default=o)},il=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n._prefault=o)},al=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{A(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},ol=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;j(o,t,r);let s=t.seen.get(e);s.ref=o},sl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},cl=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ll=(e,t,n,r)=>{let i=e._zod.def;j(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ul=(e,t,n,r)=>{let i=e._zod.innerType;j(i,t,r);let a=t.seen.get(e);a.ref=i},dl=new WeakSet([Object.prototype,Error.prototype]);function fl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var P=x(`ZodError`,(e,t)=>{st.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);dl.has(n)||(dl.add(n),fl(n,`format`,e=>t=>dt(e,t)),fl(n,`flatten`,e=>t=>ut(e,t)),fl(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,r,2)}),fl(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,r,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),pl=ht(P),ml=_t(P),hl=yt(P),gl=xt(P),_l=Dt(P),vl=Ot(P),yl=kt(P),bl=At(P),xl=jt(P),Sl=Mt(P),Cl=Nt(P),wl=Pt(P),Tl=e({ZodAny:()=>Zu,ZodArray:()=>od,ZodBase64:()=>hu,ZodBase64URL:()=>_u,ZodBigInt:()=>Bu,ZodBigIntFormat:()=>Hu,ZodBoolean:()=>zu,ZodCIDRv4:()=>du,ZodCIDRv6:()=>pu,ZodCUID:()=>Yl,ZodCUID2:()=>Zl,ZodCatch:()=>Jd,ZodCodec:()=>ef,ZodCreditCard:()=>xu,ZodCustom:()=>hf,ZodCustomStringFormat:()=>Du,ZodDate:()=>id,ZodDefault:()=>Bd,ZodDiscriminatedUnion:()=>pd,ZodE164:()=>yu,ZodEmail:()=>Pl,ZodEmoji:()=>Gl,ZodEnum:()=>Ed,ZodExactOptional:()=>Fd,ZodFile:()=>kd,ZodFunction:()=>pf,ZodGUID:()=>Il,ZodIBAN:()=>Cu,ZodIPv4:()=>au,ZodIPv6:()=>lu,ZodISODate:()=>jl,ZodISODateTime:()=>Al,ZodISODuration:()=>Nl,ZodISOTime:()=>Ml,ZodInstanceOf:()=>Sf,ZodIntersection:()=>hd,ZodJWT:()=>Tu,ZodKSUID:()=>ru,ZodLazy:()=>lf,ZodLiteral:()=>Od,ZodMAC:()=>su,ZodMap:()=>Sd,ZodNaN:()=>Xd,ZodNanoID:()=>ql,ZodNever:()=>ed,ZodNonOptional:()=>Wd,ZodNull:()=>Yu,ZodNullable:()=>Ld,ZodNumber:()=>Nu,ZodNumberFormat:()=>Pu,ZodObject:()=>cd,ZodOptional:()=>Nd,ZodPipe:()=>Qd,ZodPrefault:()=>Hd,ZodPreprocess:()=>rf,ZodPromise:()=>df,ZodReadonly:()=>af,ZodRecord:()=>yd,ZodSet:()=>wd,ZodString:()=>kl,ZodStringFormat:()=>L,ZodSuccess:()=>Kd,ZodSymbol:()=>Gu,ZodTemplateLiteral:()=>sf,ZodTransform:()=>jd,ZodTuple:()=>_d,ZodType:()=>F,ZodULID:()=>$l,ZodURL:()=>Hl,ZodUUID:()=>R,ZodUndefined:()=>qu,ZodUnion:()=>ud,ZodUnknown:()=>$u,ZodVoid:()=>nd,ZodXID:()=>tu,ZodXor:()=>dd,_ZodString:()=>Ol,_default:()=>Vd,_function:()=>mf,any:()=>Qu,array:()=>U,base64:()=>gu,base64url:()=>vu,bigint:()=>Vu,boolean:()=>V,catch:()=>Yd,check:()=>gf,cidrv4:()=>fu,cidrv6:()=>mu,codec:()=>tf,creditCard:()=>Su,cuid:()=>Xl,cuid2:()=>Ql,currencyCode:()=>ju,custom:()=>_f,date:()=>ad,describe:()=>bf,discriminatedUnion:()=>md,e164:()=>bu,email:()=>Fl,emoji:()=>Kl,enum:()=>J,exactOptional:()=>Id,file:()=>Ad,float32:()=>Fu,float64:()=>Iu,function:()=>mf,guid:()=>Ll,hash:()=>Mu,hex:()=>Au,hostname:()=>ku,httpUrl:()=>Wl,iban:()=>wu,instanceof:()=>Cf,int:()=>B,int32:()=>Lu,int64:()=>Uu,intersection:()=>gd,invertCodec:()=>nf,ipv4:()=>ou,ipv6:()=>uu,json:()=>Tf,jwt:()=>Eu,keyof:()=>sd,ksuid:()=>iu,lazy:()=>uf,literal:()=>Y,looseObject:()=>ld,looseRecord:()=>xd,mac:()=>cu,map:()=>Cd,meta:()=>xf,nan:()=>Zd,nanoid:()=>Jl,nativeEnum:()=>Dd,never:()=>td,nonoptional:()=>Gd,null:()=>Xu,nullable:()=>Rd,nullish:()=>zd,number:()=>z,object:()=>W,optional:()=>Pd,partialRecord:()=>bd,pipe:()=>$d,prefault:()=>Ud,preprocess:()=>Ef,promise:()=>ff,readonly:()=>of,record:()=>q,refine:()=>vf,set:()=>Td,strictObject:()=>G,string:()=>I,stringFormat:()=>Ou,stringbool:()=>wf,success:()=>qd,superRefine:()=>yf,symbol:()=>Ku,templateLiteral:()=>cf,transform:()=>Md,tuple:()=>vd,uint32:()=>Ru,uint64:()=>Wu,ulid:()=>eu,undefined:()=>Ju,union:()=>K,unknown:()=>H,url:()=>Ul,uuid:()=>Rl,uuidv4:()=>zl,uuidv6:()=>Bl,uuidv7:()=>Vl,void:()=>rd,xid:()=>nu,xor:()=>fd});function El(){S.localeError||C(uo())}function Dl(){S.memoizer||C({memoizer:so()})}var F=x(`ZodType`,(e,t)=>(El(),T.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(h(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(vf(e,t))},superRefine(e,t){return this.check(yf(e,t))},overwrite(e){return this.check(Ns(e))},optional(){return Pd(this)},exactOptional(){return Id(this)},nullable(){return Rd(this)},nullish(){return Pd(Rd(this))},nonoptional(e){return Gd(this,e)},array(){return U(this)},or(e){return K([this,e])},and(e){return gd(this,e)},transform(e){return $d(this,Md(e))},default(e){return Vd(this,e)},prefault(e){return Ud(this,e)},catch(e){return Yd(this,e)},pipe(e){return $d(this,e)},readonly(){return of(this)},describe(e){let t=this.clone();return D.add(t,{description:e}),t},meta(...e){if(e.length===0)return D.get(this);let t=this.clone();return D.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ze(this,`~standard`,{...kr(this),jsonSchema:{input:sc(this,`input`),output:sc(this,`output`)}})},set"~standard"(e){Re(this,`~standard`,e)},parse:function e(t,n){return pl(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await ml(this,t,n,{callee:e})},safeParse(e,t){return hl(this,e,t)},async safeParseAsync(e,t){return gl(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Re(this,`spa`,e)},validate(e,t){return wt(this,e,t)},validateAsync(e,t){return Et(this,e,t)},encode:function e(t,n){return _l(this,t,n,{callee:e})},decode:function e(t,n){return vl(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await yl(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await bl(this,t,n,{callee:e})},safeEncode(e,t){return xl(this,e,t)},safeDecode(e,t){return Sl(this,e,t)},async safeEncodeAsync(e,t){return Cl(this,e,t)},async safeDecodeAsync(e,t){return wl(this,e,t)},toJSONSchema(e){return oc(this,{})(e)},get description(){return D.get(this)?.description},get _def(){return this._zod.def}}),Ol=x(`_ZodString`,(e,t)=>{Ar.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sc(e,t,n,r)},Be({format:e=>N(e).format??null,minLength:e=>N(e).minimum??null,maxLength:e=>N(e).maximum??null},{regex(...e){return this.check(ws(...e))},includes(...e){return this.check(Ds(...e))},startsWith(...e){return this.check(Os(...e))},endsWith(...e){return this.check(ks(...e))},min(...e){return this.check(Ss(...e))},max(...e){return this.check(xs(...e))},length(...e){return this.check(Cs(...e))},nonempty(...e){return this.check(Ss(1,...e))},lowercase(e){return this.check(Ts(e))},uppercase(e){return this.check(Es(e))},trim(){return this.check(Fs())},normalize(...e){return this.check(Ps(...e))},toLowerCase(){return this.check(Is())},toUpperCase(){return this.check(Ls())},slugify(){return this.check(Rs())}})),kl=x(`ZodString`,(e,t)=>{Ar.init(e,t),Ol.init(e,t)},{email(e){return this.check(_o(Pl,e))},url(e){return this.check(Co(Hl,e))},jwt(e){return this.check(Vo(Tu,e))},emoji(e){return this.check(wo(Gl,e))},guid(e){return this.check(vo(Il,e))},uuid(e){return this.check(yo(R,e))},uuidv4(e){return this.check(bo(R,e))},uuidv6(e){return this.check(xo(R,e))},uuidv7(e){return this.check(So(R,e))},nanoid(e){return this.check(To(ql,e))},cuid(e){return this.check(Eo(Yl,e))},cuid2(e){return this.check(Do(Zl,e))},ulid(e){return this.check(Oo($l,e))},base64(e){return this.check(Io(hu,e))},base64url(e){return this.check(Lo(_u,e))},xid(e){return this.check(ko(tu,e))},ksuid(e){return this.check(Ao(ru,e))},ipv4(e){return this.check(jo(au,e))},ipv6(e){return this.check(Mo(lu,e))},cidrv4(e){return this.check(Po(du,e))},cidrv6(e){return this.check(Fo(pu,e))},e164(e){return this.check(Ro(yu,e))},datetime(e){return this.check(Ho(Al,e))},date(e){return this.check(Uo(jl,e))},time(e){return this.check(Wo(Ml,e))},duration(e){return this.check(Go(Nl,e))}});function I(e){return go(kl,e)}var L=x(`ZodStringFormat`,(e,t)=>{E.init(e,t),Ol.init(e,t)}),Al=x(`ZodISODateTime`,(e,t)=>{Yr.init(e,t),L.init(e,t)}),jl=x(`ZodISODate`,(e,t)=>{Xr.init(e,t),L.init(e,t)}),Ml=x(`ZodISOTime`,(e,t)=>{Zr.init(e,t),L.init(e,t)}),Nl=x(`ZodISODuration`,(e,t)=>{Qr.init(e,t),L.init(e,t)}),Pl=x(`ZodEmail`,(e,t)=>{Nr.init(e,t),L.init(e,t)});function Fl(e){return _o(Pl,e)}var Il=x(`ZodGUID`,(e,t)=>{jr.init(e,t),L.init(e,t)});function Ll(e){return vo(Il,e)}var R=x(`ZodUUID`,(e,t)=>{Mr.init(e,t),L.init(e,t)});function Rl(e){return yo(R,e)}function zl(e){return bo(R,e)}function Bl(e){return xo(R,e)}function Vl(e){return So(R,e)}var Hl=x(`ZodURL`,(e,t)=>{Vr.init(e,t),L.init(e,t)});function Ul(e){return Co(Hl,e)}function Wl(e){return Co(Hl,{protocol:mn,hostname:pn,...g(e)})}var Gl=x(`ZodEmoji`,(e,t)=>{Hr.init(e,t),L.init(e,t)});function Kl(e){return wo(Gl,e)}var ql=x(`ZodNanoID`,(e,t)=>{Ur.init(e,t),L.init(e,t)});function Jl(e){return To(ql,e)}var Yl=x(`ZodCUID`,(e,t)=>{Wr.init(e,t),L.init(e,t)});function Xl(e){return Eo(Yl,e)}var Zl=x(`ZodCUID2`,(e,t)=>{Gr.init(e,t),L.init(e,t)});function Ql(e){return Do(Zl,e)}var $l=x(`ZodULID`,(e,t)=>{Kr.init(e,t),L.init(e,t)});function eu(e){return Oo($l,e)}var tu=x(`ZodXID`,(e,t)=>{qr.init(e,t),L.init(e,t)});function nu(e){return ko(tu,e)}var ru=x(`ZodKSUID`,(e,t)=>{Jr.init(e,t),L.init(e,t)});function iu(e){return Ao(ru,e)}var au=x(`ZodIPv4`,(e,t)=>{$r.init(e,t),L.init(e,t)});function ou(e){return jo(au,e)}var su=x(`ZodMAC`,(e,t)=>{ri.init(e,t),L.init(e,t)});function cu(e){return No(su,e)}var lu=x(`ZodIPv6`,(e,t)=>{ni.init(e,t),L.init(e,t)});function uu(e){return Mo(lu,e)}var du=x(`ZodCIDRv4`,(e,t)=>{ii.init(e,t),L.init(e,t)});function fu(e){return Po(du,e)}var pu=x(`ZodCIDRv6`,(e,t)=>{oi.init(e,t),L.init(e,t)});function mu(e){return Fo(pu,e)}var hu=x(`ZodBase64`,(e,t)=>{li.init(e,t),L.init(e,t)});function gu(e){return Io(hu,e)}var _u=x(`ZodBase64URL`,(e,t)=>{fi.init(e,t),L.init(e,t)});function vu(e){return Lo(_u,e)}var yu=x(`ZodE164`,(e,t)=>{pi.init(e,t),L.init(e,t)});function bu(e){return Ro(yu,e)}var xu=x(`ZodCreditCard`,(e,t)=>{_i.init(e,t),L.init(e,t)});function Su(e){return zo(xu,e)}var Cu=x(`ZodIBAN`,(e,t)=>{bi.init(e,t),L.init(e,t)});function wu(e){return Bo(Cu,e)}var Tu=x(`ZodJWT`,(e,t)=>{Si.init(e,t),L.init(e,t)});function Eu(e){return Vo(Tu,e)}var Du=x(`ZodCustomStringFormat`,(e,t)=>{Ci.init(e,t),L.init(e,t)});function Ou(e,t,n={}){return Js(Du,e,t,n)}function ku(e){return Js(Du,`hostname`,fn,e)}function Au(e){return Js(Du,`hex`,Fn,e)}function ju(e){return Js(Du,`currency_code`,_n,e)}function Mu(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Ft[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Js(Du,n,r,t)}var Nu=x(`ZodNumber`,(e,t)=>{wi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cc(e,t,n,r),e.isFinite=!0},Be({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=N(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=N(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=N(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>N(e).format??null},{gt(e,t){return this.check(fs(e,t))},gte(e,t){return this.check(k(e,t))},min(e,t){return this.check(k(e,t))},lt(e,t){return this.check(ds(e,t))},lte(e,t){return this.check(O(e,t))},max(e,t){return this.check(O(e,t))},int(e){return this.check(B(e))},safe(e){return this.check(B(e))},positive(e){return this.check(fs(0,e))},nonnegative(e){return this.check(k(0,e))},negative(e){return this.check(ds(0,e))},nonpositive(e){return this.check(O(0,e))},multipleOf(e,t){return this.check(_s(e,t))},step(e,t){return this.check(_s(e,t))},finite(){return this}}));function z(e){return Ko(Nu,e)}var Pu=x(`ZodNumberFormat`,(e,t)=>{Ti.init(e,t),Nu.init(e,t)});function B(e){return qo(Pu,e)}function Fu(e){return Jo(Pu,e)}function Iu(e){return Yo(Pu,e)}function Lu(e){return Xo(Pu,e)}function Ru(e){return Zo(Pu,e)}var zu=x(`ZodBoolean`,(e,t)=>{Ei.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wc(e,t,n,r)});function V(e){return Qo(zu,e)}var Bu=x(`ZodBigInt`,(e,t)=>{Di.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tc(e,t,n,r)},Be({minValue:e=>N(e).minimum??null,maxValue:e=>N(e).maximum??null,format:e=>N(e).format??null},{gte(e,t){return this.check(k(e,t))},min(e,t){return this.check(k(e,t))},gt(e,t){return this.check(fs(e,t))},lt(e,t){return this.check(ds(e,t))},lte(e,t){return this.check(O(e,t))},max(e,t){return this.check(O(e,t))},positive(e){return this.check(fs(BigInt(0),e))},negative(e){return this.check(ds(BigInt(0),e))},nonpositive(e){return this.check(O(BigInt(0),e))},nonnegative(e){return this.check(k(BigInt(0),e))},multipleOf(e,t){return this.check(_s(e,t))}}));function Vu(e){return $o(Bu,e)}var Hu=x(`ZodBigIntFormat`,(e,t)=>{Oi.init(e,t),Bu.init(e,t)});function Uu(e){return es(Hu,e)}function Wu(e){return ts(Hu,e)}var Gu=x(`ZodSymbol`,(e,t)=>{ki.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ec(e,t,n,r)});function Ku(e){return ns(Gu,e)}var qu=x(`ZodUndefined`,(e,t)=>{Ai.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oc(e,t,n,r)});function Ju(e){return rs(qu,e)}var Yu=x(`ZodNull`,(e,t)=>{ji.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dc(e,t,n,r)});function Xu(e){return is(Yu,e)}var Zu=x(`ZodAny`,(e,t)=>{Mi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Qu(){return as(Zu)}var $u=x(`ZodUnknown`,(e,t)=>{Ni.init(e,t),F.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function H(){return os($u)}var ed=x(`ZodNever`,(e,t)=>{Pi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ac(e,t,n,r)});function td(e){return ss(ed,e)}var nd=x(`ZodVoid`,(e,t)=>{Fi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kc(e,t,n,r)});function rd(e){return cs(nd,e)}var id=x(`ZodDate`,(e,t)=>{Ii.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jc(e,t,n,r),e.min=(t,n)=>e.check(k(t,n)),e.max=(t,n)=>e.check(O(t,n))},Be({minDate:e=>{let{minimum:t}=N(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=N(e);return t?new Date(t):null}},{}));function ad(e){return ls(id,e)}var od=x(`ZodArray`,(e,t)=>{Dl(),Hi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Ss(e,t))},nonempty(e){return this.check(Ss(1,e))},max(e,t){return this.check(xs(e,t))},length(e,t){return this.check(Cs(e,t))},unwrap(){return this.element}});function U(e,t){return zs(od,e,t)}function sd(e){let t=e._zod.def.shape;return J(Object.keys(t))}var cd=x(`ZodObject`,(e,t)=>{Dl(),Ji.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r),Ke(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return J(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(h(this._zod.def,{catchall:e}))},passthrough(){return this.clone(h(this._zod.def,{catchall:H()}))},loose(){return this.clone(h(this._zod.def,{catchall:H()}))},strict(){return this.clone(h(this._zod.def,{catchall:td()}))},strip(){return this.clone(h(this._zod.def,{catchall:void 0}))},extend(e){return xe(this,e)},safeExtend(e){return Ce(this,e)},merge(e){return we(this,e)},pick(e){return ve(this,e)},omit(e){return be(this,e)},partial(...e){return Te(Nd,this,e[0])},exactPartial(...e){return Te(Fd,this,e[0],`exactPartial`)},required(...e){return Ee(Wd,this,e[0])}});function W(e,t){return new cd({type:`object`,shape:e??{},...g(t)})}function G(e,t){return new cd({type:`object`,shape:e,catchall:td(),...g(t)})}function ld(e,t){return new cd({type:`object`,shape:e,catchall:H(),...g(t)})}var ud=x(`ZodUnion`,(e,t)=>{Xi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function K(e,t){return new ud({type:`union`,options:e,...g(t)})}var dd=x(`ZodXor`,(e,t)=>{ud.init(e,t),Qi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function fd(e,t){return new dd({type:`union`,options:e,inclusive:!1,...g(t)})}var pd=x(`ZodDiscriminatedUnion`,(e,t)=>{ud.init(e,t),ea.init(e,t)});function md(e,t,n){return new pd({type:`union`,options:t,discriminator:e,...g(n)})}var hd=x(`ZodIntersection`,(e,t)=>{ta.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r)});function gd(e,t){return new hd({type:`intersection`,left:e,right:t})}var _d=x(`ZodTuple`,(e,t)=>{Dl(),ia.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new Nd({type:`optional`,innerType:e}))})}});function vd(e,t,n){let r=t instanceof T;return new _d({type:`tuple`,items:e,rest:r?t:null,...g(r?n:t)})}var yd=x(`ZodRecord`,(e,t)=>{Dl(),ca.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function q(e,t,n){return!t||!t._zod?new yd({type:`record`,keyType:I(),valueType:e,...g(t)}):new yd({type:`record`,keyType:e,valueType:t,...g(n)})}function bd(e,t,n){return new yd({type:`record`,keyType:e,valueType:t,...g(n),partial:!0})}function xd(e,t,n){return new yd({type:`record`,keyType:e,valueType:t,mode:`loose`,...g(n)})}var Sd=x(`ZodMap`,(e,t)=>{Dl(),la.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(ys(...t)),e.nonempty=t=>e.check(ys(1,t)),e.max=(...t)=>e.check(vs(...t)),e.size=(...t)=>e.check(bs(...t))});function Cd(e,t,n){return new Sd({type:`map`,keyType:e,valueType:t,...g(n)})}var wd=x(`ZodSet`,(e,t)=>{Dl(),da.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.min=(...t)=>e.check(ys(...t)),e.nonempty=t=>e.check(ys(1,t)),e.max=(...t)=>e.check(vs(...t)),e.size=(...t)=>e.check(bs(...t))});function Td(e,t){return new wd({type:`set`,valueType:e,...g(t)})}var Ed=x(`ZodEnum`,(e,t)=>{pa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mc(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ed({...t,checks:[],...g(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ed({...t,checks:[],...g(r),entries:i})}});function J(e,t){return new Ed({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...g(t)})}function Dd(e,t){return new Ed({type:`enum`,entries:e,...g(t)})}var Od=x(`ZodLiteral`,(e,t)=>{ma.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nc(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Y(e,t){return new Od({type:`literal`,values:Array.isArray(e)?e:[e],...g(t)})}var kd=x(`ZodFile`,(e,t)=>{ha.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ic(e,t,n,r),e.min=(t,n)=>e.check(ys(t,n)),e.max=(t,n)=>e.check(vs(t,n)),e.mime=(t,n)=>e.check(Ms(Array.isArray(t)?t:[t],n))});function Ad(e){return Bs(kd,e)}var jd=x(`ZodTransform`,(e,t)=>{Dl(),ga.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new et(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ie(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Ie(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Md(e){return new jd({type:`transform`,transform:e})}var Nd=x(`ZodOptional`,(e,t)=>{va.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Pd(e){return new Nd({type:`optional`,innerType:e})}var Fd=x(`ZodExactOptional`,(e,t)=>{ya.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Id(e){return new Fd({type:`optional`,innerType:e})}var Ld=x(`ZodNullable`,(e,t)=>{ba.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Rd(e){return new Ld({type:`nullable`,innerType:e})}function zd(e){return Pd(Rd(e))}var Bd=x(`ZodDefault`,(e,t)=>{xa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Vd(e,t){return new Bd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():le(t)}})}var Hd=x(`ZodPrefault`,(e,t)=>{Ca.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ud(e,t){return new Hd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():le(t)}})}var Wd=x(`ZodNonOptional`,(e,t)=>{wa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gd(e,t){return new Wd({type:`nonoptional`,innerType:e,...g(t)})}var Kd=x(`ZodSuccess`,(e,t)=>{Ea.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Kd({type:`success`,innerType:e})}var Jd=x(`ZodCatch`,(e,t)=>{Oa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Yd(e,t){return new Jd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Je(t)})}var Xd=x(`ZodNaN`,(e,t)=>{ka.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pc(e,t,n,r)});function Zd(e){return us(Xd,e)}var Qd=x(`ZodPipe`,(e,t)=>{Aa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),e.in=t.in,e.out=t.out});function $d(e,t){return new Qd({type:`pipe`,in:e,out:t})}var ef=x(`ZodCodec`,(e,t)=>{Qd.init(e,t),Ma.init(e,t)});function tf(e,t,n){return new ef({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function nf(e){let t=e._zod.def;return new ef({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var rf=x(`ZodPreprocess`,(e,t)=>{Qd.init(e,t),Fa.init(e,t)}),af=x(`ZodReadonly`,(e,t)=>{Ia.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function of(e){return new af({type:`readonly`,innerType:e})}var sf=x(`ZodTemplateLiteral`,(e,t)=>{Ba.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fc(e,t,n,r)});function cf(e,t){return new sf({type:`template_literal`,parts:e,...g(t)})}var lf=x(`ZodLazy`,(e,t)=>{Ua.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function uf(e){return new lf({type:`lazy`,getter:e})}var df=x(`ZodPromise`,(e,t)=>{Ha.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ff(e){return new df({type:`promise`,innerType:e})}var pf=x(`ZodFunction`,(e,t)=>{Va.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(e,t,n,r)});function mf(e){return new pf({type:`function`,input:Array.isArray(e?.input)?vd(e?.input):e?.input??U(H()),output:e?.output??H()})}var hf=x(`ZodCustom`,(e,t)=>{Wa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r)});function gf(e){let t=new w({check:`custom`});return t._zod.check=e,t}function _f(e,t){return Vs(hf,e??(()=>!0),t)}function vf(e,t={}){return Hs(hf,e,t)}function yf(e,t){return Us(e,t)}var bf=Gs,xf=Ks,Sf=x(`ZodInstanceOf`,(e,t)=>{hf.init(e,t)},{properties(e,t){return this.check(js(e,t))}});function Cf(e,t={}){let n=new Sf({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...g(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var wf=(...e)=>qs({Codec:ef,Boolean:zu,String:kl},...e);function Tf(e){let t=uf(()=>K([I(e),z(),V(),Xu(),U(t),q(I(),t)]));return t}function Ef(e,t){return new rf({type:`pipe`,in:Md(e),out:t})}var Df=e({ZodISODate:()=>jl,ZodISODateTime:()=>Al,ZodISODuration:()=>Nl,ZodISOTime:()=>Ml,date:()=>Of,datetime:()=>X,duration:()=>Af,time:()=>kf});function X(e){return Ho(Al,e)}function Of(e){return Uo(jl,e)}function kf(e){return Wo(Ml,e)}function Af(e){return Go(Nl,e)}G({jsonrpc:Y(`2.0`),id:K([I(),B()]),method:I().min(1),params:H().optional()}),G({jsonrpc:Y(`2.0`),method:I().min(1),params:H().optional()});var jf=G({code:B(),message:I(),data:H().optional()});K([G({jsonrpc:Y(`2.0`),id:K([I(),B()]),result:H()}),G({jsonrpc:Y(`2.0`),id:K([I(),B(),Xu()]),error:jf})]);var Mf={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},Z=(e,t,n)=>({params:e,result:t,about:n}),Nf=(e,t)=>({params:e,about:t}),Pf=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function Ff(e,t,n){let{id:r}=n,i=Object.hasOwn(e,n.method)?e[n.method]:void 0;if(!i)return{jsonrpc:`2.0`,id:r,error:{code:Mf.methodNotFound,message:`There is no method "${n.method}".`}};let a=i.params.safeParse(n.params??{});if(!a.success)return{jsonrpc:`2.0`,id:r,error:{code:Mf.invalidParams,message:pt(a.error)}};try{let e=t[n.method],o=await e(a.data);return{jsonrpc:`2.0`,id:r,result:i.result.parse(o)}}catch(e){return e instanceof Pf?{jsonrpc:`2.0`,id:r,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}:{jsonrpc:`2.0`,id:r,error:{code:Mf.internal,message:e instanceof Error?e.message:String(e)}}}}var Q=I().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),If=K([Y(``),Q]),Lf=I().regex(/^[0-9a-f]{64}$/u).nullable(),Rf=G({kind:J([`person`,`agent`,`tool`]),name:I().min(1)}),zf=G({path:Q,size:B().nonnegative(),modified:z()}),Bf={"files/read":Z(G({path:Q}),G({text:I(),version:Lf}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":Z(G({path:Q,text:I(),over:Lf}),G({version:Lf}),`Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it.`),"files/upload":Z(G({dir:Q,name:I().min(1),data:gu()}),G({path:Q}),`Keeps a file the person added, under a free name in the folder.`),"files/url":Z(G({path:Q}),G({url:I()}),`An address a page can load the file from (a picture, a video).`),"files/list":Z(G({dir:I()}),G({files:U(zf),dirs:U(Q)}),`A folder's files and folders, as on disk.`),"files/move":Z(G({from:Q,to:Q}),G({rewritten:U(Q)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":Z(G({path:Q}),G({trash:I()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":Z(G({}),G({entries:U(G({id:I(),path:Q,removed:z()}))}),`What the recycle bin holds.`),"files/restore":Z(G({id:I()}),G({path:Q}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":Z(G({paths:U(Q).min(1)}),G({watch:I()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":Z(G({watch:I()}),G({}),`Stops a watch.`)},Vf={"files/changed":Nf(G({watch:I(),changes:U(G({path:Q,version:Lf,by:Rf.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},Hf=W({name:I().min(1),only:U(I().min(1)),values:U(I().min(1)).optional()}),Uf=W({types:U(I().min(1)),extras:U(I().min(1)),options:U(Hf),names:q(I(),q(I(),I())).optional()}),Wf={noun:I().min(1),icon:I().min(1).optional(),color:I().min(1).optional(),editor:I().min(1).optional(),exports:Uf.optional(),share:V().optional()},Gf=W({name:I().min(1),...Wf}),Kf=W({name:q(I(),I().min(1)),plural:q(I(),I().min(1)).optional(),starter:W({files:q(I().min(1),I()),entry:I().min(1)}).optional(),...Wf}),qf=(e,t)=>e.name[t]??e.name.en??e.noun,Jf=/\.(ya?ml|json)$/u;function Yf(e,t,n,r){let i=e=>e.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r);return{files:Object.entries(e.files).map(([e,a])=>{let o=i(e),s=Jf.test(o)?JSON.stringify(t):t;return{path:o,text:a.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r).replaceAll(`{{title}}`,()=>s)}}),entry:i(e.entry)}}function Xf(e,t,n){return t===void 0?{name:e??`file`,noun:e??`file`}:{name:qf(t,n),noun:t.noun,...t.icon===void 0?{}:{icon:t.icon},...t.color===void 0?{}:{color:t.color},...t.editor===void 0?{}:{editor:t.editor},...t.exports===void 0?{}:{exports:t.exports},...t.share===void 0?{}:{share:t.share}}}var Zf=[`script`,`style`,`font`,`img`,`media`,`connect`],Qf=[`agent`,`project`,`piece`,`plugin`,`skill`,`website`,`studio`],$f=[`download`,`wake`,`export`,`update`,`install`,`start`,`publish`],ep=[`queued`,`running`,`paused`,`done`,`failed`,`cancelled`],tp=[`bytes`,`files`,`share`],np=[`offline`,`no-space`,`no-credits`,`unavailable`,`other`],rp=[`first-setup`],ip=G({kind:J(Qf),id:I()}),ap=G({id:I(),about:ip,what:J($f),name:I().optional(),state:J(ep),completed:z().min(0),total:z().min(0).optional(),unit:J(tp),left:z().min(0).optional(),stalled:V().optional(),step:J(rp).optional(),cancellable:V(),pausable:V().optional(),quiet:V().optional(),retryable:V(),failure:G({reason:J(np),details:I()}).optional(),made:I().optional(),started:z(),ended:z().optional()}),op=G({mime:I().regex(/^image\//u),data:gu()}),sp=md(`type`,[G({type:Y(`picture`),image:op,width:B().positive(),height:B().positive(),duration:z().nonnegative().optional()}),G({type:Y(`text`),lines:U(I())}),G({type:Y(`table`),columns:U(I()),rows:U(U(I())),count:B().nonnegative()})]);G({id:Q,kind:I().min(1),dir:If,entry:Q,title:I().optional()});var cp={item:Q,version:I().optional()},lp=ld({code:I(),level:J([`error`,`warn`]),message:I(),piece:I().optional(),part:I().optional(),t:z().optional()}),up=ld({kind:I(),data:H()}),dp=G({status:J([`off`,`waiting`,`running`,`done`,`failed`]),revision:B().nonnegative(),problems:U(lp),facts:U(up),versions:G({total:B(),loaded:B(),reused:B()}).optional(),error:I().optional()}),fp=[`queued`,`running`,`done`,`failed`,`cancelled`],pp=q(I(),K([I(),V()])),mp=G({id:I(),item:Q,versions:U(I()),types:U(I()),options:pp.optional(),state:J(fp),progress:z().min(0).max(1),files:U(Q),error:I().optional()}),hp=G({file:Q,status:J([`running`,`done`,`failed`]),message:I(),share:z().min(0).max(1).optional()}),gp=G({url:I(),probe:I()}),_p={"project/items":Z(G({}),G({items:U(G({id:Q,kind:I().min(1).optional(),dir:If,entry:Q,title:I().optional(),groups:U(I()),files:U(W({path:I().min(1),role:I().min(1).optional()})).optional(),kindInfo:Kf.optional()})),kinds:U(Kf.extend({id:I().min(1)})).optional(),name:I(),scope:I(),revision:B().nonnegative()}),`The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name.`),"items/preview":Z(G({item:Q}),G({preview:sp.optional()}),`What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none.`),"items/page":Z(G({item:Q,folder:If.optional(),file:Q.optional()}),G({url:I()}),"The address of an item's page, for a frame (a report's page, a website built as files): `folder` served as the root of an origin of its own, the project's files alone (no other address loads), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":Z(G({kind:I().min(1),file:Q,title:I().min(1).optional()}),G({}),`Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already.`),"components/list":Z(G({item:Q}),G({components:U(G({of:I(),name:I(),label:K([I(),q(I(),I())]).optional()}))}),`The components an item may place: every one the project's files define, by the reference it would write.`),"components/stage":Z(G(cp),gp,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":Z(G({...cp,components:U(G({name:I(),props:q(I(),H()),width:z().positive(),height:z().positive(),t:z().nonnegative()})).min(1).max(64)}),G({stills:U(G({key:I(),url:Ul()}).nullable())}),`An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses.`),"check/results":Z(G({}),dp,`The check run after edits, as it stands.`),"check/run":Z(G({}),G({}),`Runs the check again now.`),"export/start":Z(G({item:Q,versions:U(I()).optional(),types:U(I().min(1)).max(10).optional(),options:pp.optional()}),G({job:mp}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":Z(G({job:I()}),G({}),`Stops an export.`),"export/list":Z(G({}),G({jobs:U(mp),reveal:V()}),`The exports asked for since the server started.`),"export/reveal":Z(G({path:Q}),G({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},vp={"project/items":`project`,"items/preview":`asleep`,"items/page":`asleep`,"work/add":`machine`,"components/list":`asleep`,"components/stage":`asleep`,"components/stills":`project`,"check/results":`project`,"check/run":`machine`,"export/start":`machine`,"export/cancel":`machine`,"export/list":`asleep`,"export/reveal":`machine`};function yp(e){return async(t,n,r)=>{let{result:i}=await t[`tools/call`]({name:n,arguments:r}),a=e[n]?.result.safeParse(i);if(!a?.success)throw new Pf(Mf.internal,`The answer to the tool ${n} is not what the protocol says.`);return a.data}}var bp={"project/changed":Nf(G({revision:B().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"items/changed":Nf(G({item:Q,paths:U(I())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"check/changed":Nf(dp,`The check started, ended or failed.`),"export/changed":Nf(G({job:mp}),`An export moved on.`),"index/changed":Nf(G({jobs:U(hp)}),`Making what the media index lacks moved on.`),"jobs/changed":Nf(G({job:ap,item:Q}),`A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.`)},$=e=>K([J(e),I().min(1).brand()]),xp=e=>U(H()).transform(t=>t.flatMap(t=>{let n=e.safeParse(t);return n.success?[n.data]:[]})),Sp=[`no_card`,`saving_card`,`not_a_card`,`declined`,`needs_authentication`,`not_charged`,`under_line`,`refunded`,`disputed`,`monthly_limit`],Cp=[`month`,`year`];W({credits:z(),held:z(),owed:z(),frozen:I().nullable().default(null),plan:W({id:I(),name:I(),interval:$(Cp),status:I(),renewsAt:X().nullable(),endsAt:X().nullable(),monthlyCredits:z().default(0),price:W({amountCents:z(),currency:I()}).nullable().default(null)}).nullable(),allowance:W({total:z(),used:z(),renewsAt:X()}).nullable().default(null),bought:z().default(0),expiring:U(W({credits:z(),expiresAt:X()})).default([]),customer:V().default(!1),autoTopUp:W({below:z(),amountCents:z(),monthlyLimitCents:z().nullable().default(null),chargedThisMonthCents:z().default(0),stopped:$(Sp).nullable()}).nullable()}),W({plans:U(W({id:I(),name:I(),family:I().nullable().default(null),recommended:V().default(!1),monthlyCredits:z(),prices:U(W({interval:$(Cp),amountCents:z(),currency:I()}))})),topUp:W({currency:I(),creditsPerDollar:z(),minCents:z(),maxCents:z(),presetsCents:U(z()).default([])}),welcomeCredits:z().optional()}),W({days:U(W({day:Of(),credits:z(),byKind:q(I(),z()).default({})}))}),W({spends:U(W({at:I(),kind:$([`models`,`tools`,`studio`,`other`]),what:I().nullable(),seconds:z().nullable(),member:I().nullable(),credits:z()})),more:V()}),K([G({plan:I(),interval:J(Cp)}),G({topUpCents:z().int()})]),K([G({flow:J([`home`,`payment_method`,`cancel`])}),G({flow:Y(`change_plan`),plan:I(),interval:J(Cp)})]).default({flow:`home`}),W({card:W({brand:I(),last4:I(),expMonth:z(),expYear:z()}).nullable(),email:I().nullable()}),W({invoices:U(W({id:I(),number:I().nullable(),createdAt:I(),kind:$([`plan`,`credits`]),totalCents:z(),currency:I(),status:I(),pdf:I().nullable(),url:I().nullable()}))}),G({topUpCents:z().int()}),G({below:z().nonnegative(),amountCents:z().int().positive(),monthlyLimitCents:z().int().positive().nullable().optional(),newCard:V().optional()});var wp={tier:$([`premium`,`standard`,`efficient`]).optional(),maker:I().min(1).optional()};W({models:U(ld({id:I().min(1),name:I().min(1),...wp,reasoning:V().optional(),input:U(I()).optional(),contextWindow:z().int().positive().optional(),maxOutput:z().int().positive().optional()})).min(1),defaultModel:I().min(1),needPlan:U(ld({id:I().min(1),name:I().min(1),...wp})).default([])});var Tp=q(I(),H()),Ep=[`call`,`result`,`page`,`second`,`minute`,`thousand_characters`,`image`,`frame`,`megapixel`,`question`,`phrase`],Dp=[`video`,`image`,`voice`,`music`],Op=W({id:I().min(1),title:I().min(1),description:I().min(1),kind:$([`data`,`ai`]).default(`data`),line:I().optional()}),kp=W({name:I().min(1),work:I().min(1),title:I().min(1),description:I().min(1),input:Tp,output:Tp,long:V(),example:q(I(),H()).optional(),price:W({credits:z().nonnegative(),per:$(Ep),varies:V()}).optional(),shown:W({name:I(),line:I(),section:$(Dp)}).optional()});W({version:I().min(1),works:U(Op),tools:U(kp)}),W({off:W({works:U(I()),tools:U(I())})}),K([G({work:I().min(1),on:V()}),G({tool:I().min(1),on:V()})]),W({editors:U(W({id:I().min(1),name:q(I(),I()),plural:q(I(),I()).optional(),line:q(I(),I()),icon:I().optional(),color:I().optional()}))}),G({input:q(I(),H())}),W({id:I().min(1),tool:I().min(1),status:$([`working`,`completed`,`failed`]),output:H().optional(),error:W({kind:I().min(1),message:I().min(1)}).optional(),credits:z().nonnegative().optional(),pollAfterMs:z().int().nonnegative().optional(),createdAt:I(),endedAt:I().optional()});var Ap=1073741824;G({name:I().min(1).max(255),size:B().positive().max(Ap),sha256:I().regex(/^[0-9a-f]{64}$/u),contentType:I().min(1).max(255)}),W({id:I().min(1),upload:W({url:Ul(),headers:q(I(),I())}).nullable()}),W({id:I().min(1),name:I()}),W({url:Ul()});var jp=I().regex(/^[0-9a-f]{64}$/u),Mp=I().min(1).max(1024).refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`),`a relative path of forward slashes, without . or ..`),Np=W({sha256:jp,size:B().nonnegative().max(Ap)}),Pp=Np.extend({type:I().min(1).max(255)});G({blobs:U(Np.extend({contentType:I().min(1).max(255)})).min(1).max(1e3)}),W({uploads:U(W({sha256:jp,url:Ul(),headers:q(I(),I())}))});var Fp=W({sessionId:I().min(1),agent:I().min(1),title:I().optional(),createdAt:X(),updatedAt:X(),transcript:jp});W({sessionId:I().min(1),messages:U(W({method:I().min(1),params:H()}))});var Ip=[`project`,`home`];I().regex(/^[a-z][a-z0-9-]*\/$/u,`one lower-case word and /`).refine(e=>!Object.values(Hp).includes(e)&&!Object.values(tm).includes(e),`a folder of the core's`),$(Zf);var Lp=q(I(),U(I())),Rp=I().refine(e=>e.endsWith(`/`)&&Mp.safeParse(e.slice(0,-1)).success,`a folder of the tree, ending in /`),zp=W({tree:U(Mp),files:U(Mp),own:q(Mp,Pp)}),Bp=W({shared:U(Rp),items:q(I(),zp)}),Vp=W({format:Y(1),kind:J(Ip),project:W({name:I().min(1).max(255)}),host:W({version:I().min(1)}),madeAt:X(),files:q(Mp,Np),tree:q(Mp,Pp),conversations:U(Fp),reach:Bp.optional(),routes:Lp.optional()}),Hp={editor:`editor/`,runtime:`runtime/`,build:`build/`,media:`media/`,matte:`matte/`,stills:`stills/`,answers:`answers/`,previews:`previews/`};function Up(e){return Array.isArray(e)?e.map(Up):typeof e==`object`&&e?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Up(e[t])])):e}var Wp=(e,t)=>`${Hp.answers}${e}/${encodeURIComponent(JSON.stringify(Up(t??{})))}.json`,Gp=W({result:H().optional(),error:W({code:z(),message:I(),data:H().optional()}).optional()}),Kp=e=>`${Hp.stills}${e}.webp`,qp=(e,t)=>`${Hp.stills}index/${encodeURIComponent(e)}/${encodeURIComponent(t)}.json`,Jp=W({stills:q(I(),I().regex(/^[0-9a-f]{64}$/u))}),Yp=e=>JSON.stringify(Up(e)),Xp=W({name:I(),props:q(I(),H()),width:z().positive(),height:z().positive(),t:z().nonnegative()});W({stills:U(W({version:I(),components:U(Xp)})).optional(),shows:W({media:U(I()),data:U(I())}).optional(),routes:q(I(),U(I().min(1))).optional(),page:W({folder:I().optional(),file:I().optional()}).optional()}),`${Hp.runtime}`,`${Hp.runtime}`,`${Hp.runtime}`;var Zp=e=>e.split(`/`).map(encodeURIComponent).join(`/`),Qp=[`cloud`,`computer`];I().regex(/^[A-Za-z0-9_-]{16,64}$/u);var $p=W({kind:$(Qp),here:V()});G({project:G({id:I().min(1).optional(),kind:J(Ip),name:I().min(1).max(255)}),manifest:jp}),W({id:I().min(1),projectId:I().min(1)}),W({missing:U(jp)});var em=W({id:I().min(1),madeAt:X(),hostVersion:I()});W({projects:xp(W({id:I().min(1),kind:J(Ip),name:I(),latest:em.nullable(),executor:$p}))}),G({kind:J(Qp)}),W({origin:Ul(),expiresAt:X()});var tm={manifest:`manifest.json`,files:`files/`,pages:`pages/`,conversations:`conversations/`},nm=-32010,rm=e=>typeof e==`object`&&!!e&&e.code===-32010;W({changed:U(I())});export{Tl as $,Q as A,Rs as At,U as B,Gf as C,Ps as Ct,Bf as D,As as Dt,Yf as E,js as Et,Nf as F,Es as Ft,Tf as G,_f as H,X as I,D as It,ld as J,uf as K,Df as L,d as Lt,Pf as M,Is as Mt,Ff as N,Ls as Nt,Vf as O,ws as Ot,Z as P,Fs as Pt,q as Q,J as R,ce as Rt,op as S,hs as St,qf as T,ps as Tt,md as U,V,B as W,W as X,z as Y,bd as Z,_p as _,Ss as _t,Jp as a,Ul as at,cp as b,ms as bt,Kp as c,k as ct,Zp as d,Ts as dt,G as et,jp as f,ds as ft,gp as g,Ms as gt,$ as h,vs as ht,Vp as i,H as it,Mf as j,Os as jt,If as k,bs as kt,Yp as l,Ds as lt,Mp as m,xs as mt,Gp as n,vd as nt,rm as o,ks as ot,Pp as p,O as pt,Y as q,tm as r,K as rt,Wp as s,fs as st,nm as t,I as tt,qp as u,Cs as ut,vp as v,ys as vt,Xf as w,Ns as wt,yp as x,gs as xt,bp as y,_s as yt,Xu as z};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{l as t,v as n}from"./react-DztDSW4P.js";import{t as r}from"./jsx-runtime-DePvh3-m.js";import{t as i}from"./audio-lines-BFcM7G2L.js";var a=r(),o=e(n(),1);function s(e){let n=(0,o.useRef)(null),r=(0,o.useRef)(!1);return t({element:()=>n.current,hold:()=>{let e=n.current;return r.current=e!==null&&!e.paused,e?.pause(),Promise.resolve()},release:()=>{r.current&&n.current?.play().catch(()=>void 0),r.current=!1}}),(0,a.jsxs)(`div`,{className:`flex size-full flex-col items-center justify-center gap-3 p-3`,"data-testid":`media-sound`,children:[(0,a.jsx)(i,{className:`text-lead size-8`,"aria-hidden":!0}),(0,a.jsx)(`audio`,{ref:n,src:e.url,controls:!0,preload:`metadata`,className:`w-full max-w-72`,onPointerDown:e=>{e.stopPropagation()}})]})}export{s as default};
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{u as t,y as n}from"./react-WA6wlt8S.js";import{t as r}from"./jsx-runtime-DePvh3-m.js";import{t as i}from"./audio-lines-CzuzsGjI.js";var a=r(),o=e(n(),1);function s(e){let n=(0,o.useRef)(null),r=(0,o.useRef)(!1);return t({element:()=>n.current,hold:()=>{let e=n.current;return r.current=e!==null&&!e.paused,e?.pause(),Promise.resolve()},release:()=>{r.current&&n.current?.play().catch(()=>void 0),r.current=!1}}),(0,a.jsxs)(`div`,{className:`flex size-full flex-col items-center justify-center gap-3 p-3`,"data-testid":`media-sound`,children:[(0,a.jsx)(i,{className:`text-lead size-8`,"aria-hidden":!0}),(0,a.jsx)(`audio`,{ref:n,src:e.url,controls:!0,preload:`metadata`,className:`w-full max-w-72`,onPointerDown:e=>{e.stopPropagation()}})]})}export{s as default};
@@ -0,0 +1,3 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{o as t,s as n,u as r,v as i,y as a}from"./react-WA6wlt8S.js";import{yt as o}from"./button-eGxLxbv9.js";import{t as s}from"./jsx-runtime-DePvh3-m.js";import{t as c}from"./createLucideIcon-GFZ_fxLc.js";import{C as l,w as u,x as d}from"./dist-CC7OeU1e.js";import{gt as f,p}from"./index-CgB5osVc.js";import{t as m}from"./row-BRlEWRrK.js";import{t as h}from"./textarea-tEWvBY9p.js";var g=c(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),_=e(a(),1),v=s(),y=o({en:{find:`Find`,items:`Items`,files:`Files`,nothing:`Nothing found`,altText:`Alt text`,altHint:`What the picture shows, for someone who cannot see it`,panes:`Resize the panes`},"zh-cn":{find:`查找`,items:`作品`,files:`文件`,nothing:`未找到`,altText:`替代文本`,altHint:`图片里有什么,写给看不见它的人`,panes:`调整两栏宽度`},"zh-tw":{find:`尋找`,items:`作品`,files:`檔案`,nothing:`找不到任何結果`,altText:`替代文字`,altHint:`圖片中有什麼,寫給看不見它的人`,panes:`調整兩欄寬度`},ja:{find:`検索`,items:`作品`,files:`ファイル`,nothing:`見つかりませんでした`,altText:`代替テキスト`,altHint:`画像に写っているもの。見ることができない人のために`,panes:`ペインの幅を変える`},ko:{find:`찾기`,items:`작업물`,files:`파일`,nothing:`찾은 항목 없음`,altText:`대체 텍스트`,altHint:`사진이 보여 주는 내용, 볼 수 없는 사람을 위해`,panes:`창 크기 조절`},es:{find:`Buscar`,items:`Elementos`,files:`Archivos`,nothing:`No se encontró nada`,altText:`Texto alternativo`,altHint:`Lo que muestra la imagen, para quien no puede verla`,panes:`Ajustar los paneles`},fr:{find:`Chercher`,items:`Éléments`,files:`Fichiers`,nothing:`Aucun résultat`,altText:`Texte alternatif`,altHint:`Ce que montre l’image, pour qui ne peut pas la voir`,panes:`Redimensionner les panneaux`},de:{find:`Suchen`,items:`Werke`,files:`Dateien`,nothing:`Nichts gefunden`,altText:`Alt-Text`,altHint:`Was das Bild zeigt, für jemanden, der es nicht sehen kann`,panes:`Bereiche anpassen`},pt:{find:`Procurar`,items:`Itens`,files:`Arquivos`,nothing:`Nada encontrado`,altText:`Texto alternativo`,altHint:`O que a imagem mostra, para quem não pode vê-la`,panes:`Redimensionar os painéis`}});function b(){return y.of(n()?.locale)}function x({alt:e,onAlt:t,trigger:n,most:r}){let i=b(),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(e);return(0,v.jsxs)(d,{open:a,onOpenChange:n=>{o(n),n?c(e):s!==e&&t(s)},children:[(0,v.jsx)(u,{asChild:!0,children:n}),(0,v.jsx)(l,{className:`w-80`,align:`start`,children:(0,v.jsxs)(`label`,{className:`flex flex-col gap-1.5 text-sm`,children:[(0,v.jsx)(`span`,{className:`font-medium`,children:i.altText}),(0,v.jsx)(h,{autoFocus:!0,value:s,placeholder:i.altHint,maxLength:r,onFocus:e=>{let t=e.currentTarget.value.length;e.currentTarget.setSelectionRange(t,t)},onChange:e=>{c(e.target.value)},onBlur:()=>{s!==e&&t(s)}})]})})]})}function S({file:e,...t}){let n=(0,_.useRef)(null),a=(0,_.useRef)(!1);return r({element:()=>n.current,hold:()=>{let e=n.current;return a.current=e!==null&&!e.paused,e?.pause(),Promise.resolve()},release:()=>{a.current&&n.current?.play().catch(()=>void 0),a.current=!1},pictures:()=>{let e=n.current,t=e?i(e):void 0;return Promise.resolve(t?[t]:[])},locate:()=>{let t=e===void 0?`the video`:`the video ${e}`;return Promise.resolve({elements:[{name:t}],where:`on ${t} at ${(n.current?.currentTime??0).toFixed(2)} s`})}}),(0,v.jsx)(`video`,{ref:n,...t})}var C=(e,t)=>(0,v.jsx)(S,{...e,file:t});function w(e,t){let n=e===``?[]:e.split(`/`);for(let e of t.split(`#`)[0]?.split(`/`)??[])if(e!==``&&e!==`.`){if(e===`..`){if(n.length===0)return;n.pop()}else n.push(e)}return n.join(`/`)}function T(e,t){let n=e===``?[]:e.split(`/`),r=t.split(`/`),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;let a=[...n.slice(i).map(()=>`..`),...r.slice(i)].join(`/`);return a.startsWith(`../`)?a:`./${a}`}var E=e=>e.includes(`#`)||/\.(?:[cm]?[jt]s|tsx|jsx)$/iu.test(e);async function D(e,t,n){let r=w(t,n);if(r===void 0)return;if(!E(n))return(await e[`files/url`]({path:r}).catch(()=>void 0))?.url;let i=(await f(e,`items/preview`,{item:r}).catch(()=>void 0))?.preview;return i?.type===`picture`?`data:${i.image.mime};base64,${i.image.data}`:void 0}function O(e,n){let r=t(),[i,a]=(0,_.useState)(new Map),o=[...new Set(n)].sort().join(`
2
+ `);return(0,_.useEffect)(()=>{let t=!0,n=o===``?[]:o.split(`
3
+ `);return Promise.all(n.map(async t=>[t,await D(r,e,t)])).then(e=>{t&&a(new Map(e.flatMap(([e,t])=>t===void 0?[]:[[e,t]])))}),()=>{t=!1}},[r,e,o]),i}async function k(e,t,n,r=3){let i=await e(t).catch(()=>({files:[],dirs:[]})),a=i.files.map(e=>e.path).filter(n);if(r===0)return a;let o=await Promise.all(i.dirs.filter(e=>!e.split(`/`).some(e=>e.startsWith(`.`)||e===`node_modules`)).map(t=>k(e,t,n,r-1)));return[...a,...o.flat()]}var A=e=>e.split(`.`).pop()?.toLowerCase()??``;function j(e){let n=b(),r=t(),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)([]),[c,l]=(0,_.useState)([]),u=e.types.join(`,`);(0,_.useEffect)(()=>{let e=!0,t=u.split(`,`);return k(e=>r[`files/list`]({dir:e}),``,e=>t.includes(A(e))).then(t=>{e&&s([...new Set(t)].sort())}),f(r,`project/items`,{}).then(t=>{e&&l(t.items)},()=>void 0),()=>{e=!1}},[r,u]);let d=i.trim().toLowerCase(),h=(0,_.useMemo)(()=>c.filter(t=>t.kind!==void 0&&t.entry!==e.self&&(t.kindInfo?.exports?.types??[]).some(t=>e.types.includes(t))&&(d===``||t.id.toLowerCase().includes(d)||(t.title??``).toLowerCase().includes(d))),[c,e.self,e.types,d]),g=o.filter(t=>e.types.includes(A(t))&&(d===``||t.toLowerCase().includes(d))),y=(t,n,r,i)=>(0,v.jsx)(m,{title:r,meta:(0,v.jsx)(`span`,{className:`text-lead max-w-32 truncate text-xs`,children:r}),onClick:()=>{e.onPick(i)},children:(0,v.jsx)(`span`,{className:`truncate`,children:n})},t);return(0,v.jsxs)(`div`,{className:`flex w-80 flex-col gap-2`,"data-testid":e.testId,children:[(0,v.jsx)(p,{autoFocus:!0,value:i,placeholder:n.find,"aria-label":n.find,onChange:e=>{a(e.target.value)}}),(0,v.jsxs)(`div`,{className:`flex h-72 flex-col overflow-y-auto`,children:[h.length>0&&(0,v.jsx)(`p`,{className:`text-lead px-2 pt-1 text-xs font-semibold`,children:n.items}),h.map(e=>y(`i:${e.id}`,e.title??e.id,e.entry,e.entry)),g.length>0&&(0,v.jsx)(`p`,{className:`text-lead px-2 pt-2 text-xs font-semibold`,children:n.files}),g.map(e=>y(`f:${e}`,e.split(`/`).pop()??e,e,e)),h.length===0&&g.length===0?(0,v.jsx)(`p`,{className:`text-lead px-2 py-6 text-center text-sm`,children:n.nothing}):null]})]})}var M=.3,N=.7;function P({edit:e,preview:t,width:n,background:r,testId:i}){let a=b(),[o,s]=(0,_.useState)(.5),[c,l]=(0,_.useState)(1),u=(0,_.useRef)(null),d=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=d.current;if(e===null)return;let t=()=>{l(Math.min(1,Math.max(.3,(e.clientWidth-32)/n)))};t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}},[n]);let f=e=>Math.min(N,Math.max(M,e));return(0,v.jsxs)(`div`,{ref:u,className:`flex min-h-0 flex-1`,children:[(0,v.jsx)(`div`,{className:`min-w-0 overflow-y-auto`,style:{flexBasis:`${String(o*100)}%`},children:e}),(0,v.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":a.panes,"aria-valuenow":Math.round(o*100),"aria-valuemin":M*100,"aria-valuemax":N*100,tabIndex:0,className:`ak-post-split-rule`,onPointerDown:e=>{let t=u.current?.getBoundingClientRect();if(t===void 0)return;e.currentTarget.setPointerCapture(e.pointerId);let n=e=>{s(f((e.clientX-t.left)/t.width))},r=()=>{window.removeEventListener(`pointermove`,n),window.removeEventListener(`pointerup`,r)};window.addEventListener(`pointermove`,n),window.addEventListener(`pointerup`,r)},onKeyDown:e=>{if(e.key===`ArrowLeft`)s(e=>f(e-.05));else if(e.key===`ArrowRight`)s(e=>f(e+.05));else return;e.preventDefault()}}),(0,v.jsx)(`div`,{ref:d,className:`min-w-0 flex-1 overflow-y-auto`,style:{background:r},"data-testid":i,children:(0,v.jsx)(`div`,{className:`mx-auto w-fit py-4`,style:{zoom:c},children:t})})]})}export{T as a,x as c,O as i,g as l,j as n,S as o,E as r,C as s,P as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,et as l,q as u,s as d,v as f}from"./chunk-DSNLSHJZ-5vdnoak2.js";import"./chunk-YZO67HFG-2x-BiWd-.js";import{_ as p,s as m}from"./chunk-7S6XSTFO-DeiGeVpB.js";import"./chunk-AQDTSKZB-fPuQFBJc.js";import"./chunk-UHW7PFBP-BQiDI9dK.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-DFF2mZJ1.js";import"./chunk-ZAUX2LTX-etFStEM8.js";import"./chunk-WQQL4CDK-pNBU8dXv.js";import{t as y}from"./chunk-55XCU76K-BOZa_65H.js";import{t as b}from"./chunk-XXDRQBXY-i7MKP1NY.js";import{t as x}from"./chunk-VQ5W62QI-CJlMXWWz.js";import"./chunk-HNE4Q36P-g6-ZLbTg.js";import{i as S,r as C}from"./mermaid.core-CEpvTOAe.js";var w=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,et as l,q as u,s as d,v as f}from"./chunk-DSNLSHJZ-CUDx1Rv5.js";import"./chunk-YZO67HFG-Bbpu36XF.js";import{_ as p,s as m}from"./chunk-7S6XSTFO-Dc0Dvkq7.js";import"./chunk-AQDTSKZB-VAILIsfx.js";import"./chunk-UHW7PFBP-BgLV8BIJ.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-DAoEe-dJ.js";import"./chunk-ZAUX2LTX-C48Ri0Gs.js";import"./chunk-WQQL4CDK-CMST9dyE.js";import{t as y}from"./chunk-55XCU76K-7pnsxeaP.js";import{t as b}from"./chunk-XXDRQBXY-i7MKP1NY.js";import{t as x}from"./chunk-VQ5W62QI-Bw19OOSD.js";import"./chunk-HNE4Q36P-g0akya12.js";import{i as S,r as C}from"./mermaid.core-zFwZug4C.js";var w=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-CPS-TrJJ.js";var t=e(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-GFZ_fxLc.js";var t=e(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]);export{t};
@@ -1 +1 @@
1
- import{n as e,t}from"./chart-Be9Hj5GL.js";var n={dk1:`#000000`,lt1:`#FFFFFF`,dk2:`#44546A`,lt2:`#E7E6E6`,accent1:`#4472C4`,accent2:`#ED7D31`,accent3:`#A5A5A5`,accent4:`#FFC000`,accent5:`#5B9BD5`,accent6:`#70AD47`,hlink:`#0563C1`,folHlink:`#954F72`},r={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`},i=e=>e.replace(/[&<>"]/gu,e=>r[e]??e),a=e=>String(Number(e.toFixed(3)));function o(e,t){let n=e=>{let n=e.fill===void 0?`none`:t(e.fill),r=e.width>0?t(e.color):`none`;return`<path d="${i(e.d)}" fill="${n}" stroke="${r}" stroke-width="${a(e.width)}" stroke-linejoin="round"/>`},r=[];for(let t of[...e.grid,...e.shapes])r.push(n(t));for(let n of[...e.boxes,...e.keys])r.push(`<rect x="${a(n.x)}" y="${a(n.y)}" width="${a(n.width)}" height="${a(n.height)}" fill="${t(n.color)}"/>`);for(let t of[...e.axes,...e.lines])r.push(n(t));for(let n of e.dots)r.push(`<circle cx="${a(n.x)}" cy="${a(n.y)}" r="${a(n.r)}" fill="${t(n.color)}"/>`);for(let n of e.words){let e=n.rotate===void 0?``:` transform="rotate(${a(n.rotate)} ${a(n.x)} ${a(n.y)})"`;r.push(`<text x="${a(n.x)}" y="${a(n.y)}" font-size="${a(n.size)}" text-anchor="${n.anchor}" dominant-baseline="central" fill="${t(n.color)}"${e}>${i(n.text)}</text>`)}return r.join(``)}function s(r,s,c,l={}){let u=l.pointsPerPixel??.75,d=s*u,f=c*u,p=l.colors??n,m=t=>e(t,p),h=l.font??`Carlito, Calibri, Arial, sans-serif`,g=l.paper??`#FFFFFF`,_=l.edge??`#D9D9D9`,v=l.label===void 0?``:` role="img" aria-label="${i(l.label)}"`,y=g===`none`&&_===`none`?``:`<rect x="0.375" y="0.375" width="${a(d-.75)}" height="${a(f-.75)}" fill="${i(g)}" stroke="${i(_)}" stroke-width="${_===`none`?`0`:`0.75`}"/>`;return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${a(d)} ${a(f)}" width="${a(s)}" height="${a(c)}" font-family="${i(h)}"${v}>${y}${o(t(r,d,f),m)}</svg>`}export{s as t};
1
+ import{n as e,t}from"./chart-C37xvZT2.js";var n={dk1:`#000000`,lt1:`#FFFFFF`,dk2:`#44546A`,lt2:`#E7E6E6`,accent1:`#4472C4`,accent2:`#ED7D31`,accent3:`#A5A5A5`,accent4:`#FFC000`,accent5:`#5B9BD5`,accent6:`#70AD47`,hlink:`#0563C1`,folHlink:`#954F72`},r={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`},i=e=>e.replace(/[&<>"]/gu,e=>r[e]??e),a=e=>String(Number(e.toFixed(3)));function o(e,t){let n=e=>{let n=e.fill===void 0?`none`:t(e.fill),r=e.width>0?t(e.color):`none`;return`<path d="${i(e.d)}" fill="${n}" stroke="${r}" stroke-width="${a(e.width)}" stroke-linejoin="round"/>`},r=[];for(let t of[...e.grid,...e.shapes])r.push(n(t));for(let n of[...e.boxes,...e.keys])r.push(`<rect x="${a(n.x)}" y="${a(n.y)}" width="${a(n.width)}" height="${a(n.height)}" fill="${t(n.color)}"/>`);for(let t of[...e.axes,...e.lines])r.push(n(t));for(let n of e.dots)r.push(`<circle cx="${a(n.x)}" cy="${a(n.y)}" r="${a(n.r)}" fill="${t(n.color)}"/>`);for(let n of e.words){let e=n.rotate===void 0?``:` transform="rotate(${a(n.rotate)} ${a(n.x)} ${a(n.y)})"`;r.push(`<text x="${a(n.x)}" y="${a(n.y)}" font-size="${a(n.size)}" text-anchor="${n.anchor}" dominant-baseline="central" fill="${t(n.color)}"${e}>${i(n.text)}</text>`)}return r.join(``)}function s(r,s,c,l={}){let u=l.pointsPerPixel??.75,d=s*u,f=c*u,p=l.colors??n,m=t=>e(t,p),h=l.font??`Carlito, Calibri, Arial, sans-serif`,g=l.paper??`#FFFFFF`,_=l.edge??`#D9D9D9`,v=l.label===void 0?``:` role="img" aria-label="${i(l.label)}"`,y=g===`none`&&_===`none`?``:`<rect x="0.375" y="0.375" width="${a(d-.75)}" height="${a(f-.75)}" fill="${i(g)}" stroke="${i(_)}" stroke-width="${_===`none`?`0`:`0.75`}"/>`;return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${a(d)} ${a(f)}" width="${a(s)}" height="${a(c)}" font-family="${i(h)}"${v}>${y}${o(t(r,d,f),m)}</svg>`}export{s as t};
@@ -1 +1 @@
1
- import"./rolldown-runtime-COiEfhsA.js";import{v as e}from"./react-DztDSW4P.js";import{gt as t}from"./button-Chk675Xu.js";import{t as n}from"./jsx-runtime-DePvh3-m.js";var r=n();e();function i({color:e,label:n,checked:i=!1,className:a,style:o,...s}){return(0,r.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":i,"aria-label":n,title:n,"data-slot":`swatch`,...s,className:t(`size-5 flex-none rounded-xs border border-rule outline-none ring-offset-1 ring-offset-sheet hover:ring-1 hover:ring-lead focus-visible:ring-1 focus-visible:ring-pencil`,i&&`ring-1 ring-ink`,a),style:{...o,background:e}})}export{i as t};
1
+ import"./rolldown-runtime-COiEfhsA.js";import{y as e}from"./react-WA6wlt8S.js";import{gt as t}from"./button-eGxLxbv9.js";import{t as n}from"./jsx-runtime-DePvh3-m.js";var r=n();e();function i({color:e,label:n,checked:i=!1,className:a,style:o,...s}){return(0,r.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":i,"aria-label":n,title:n,"data-slot":`swatch`,...s,className:t(`size-5 flex-none rounded-xs border border-rule outline-none ring-offset-1 ring-offset-sheet hover:ring-1 hover:ring-lead focus-visible:ring-1 focus-visible:ring-pencil`,i&&`ring-1 ring-ink`,a),style:{...o,background:e}})}export{i as t};