bb-app 0.0.10 → 0.0.12

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 (359) hide show
  1. package/app/dist/assets/AppSettingsView-BnxUHmxx.js +1 -0
  2. package/app/dist/assets/InternalReplayListView-csLG2lko.js +1 -0
  3. package/app/dist/assets/ProjectArchivedThreadsView-CH0nwbDU.js +1 -0
  4. package/app/dist/assets/ProjectSettingsView-nWbGXc1H.js +1 -0
  5. package/app/dist/assets/ThreadDetailRoute-CO285nQR.js +2642 -0
  6. package/app/dist/assets/ThreadUnarchiveButton-CQaA-gHV.js +1 -0
  7. package/app/dist/assets/{angular-html-BYHpibq1.js → angular-html-BOmrr01g.js} +1 -1
  8. package/app/dist/assets/{angular-ts-CvblCwhB.js → angular-ts-DCM7qcSK.js} +1 -1
  9. package/app/dist/assets/{apl-Ut09domA.js → apl-DuVJ59sz.js} +1 -1
  10. package/app/dist/assets/{astro-DxF6gUBf.js → astro-AQMIDGwi.js} +1 -1
  11. package/app/dist/assets/{blade-bddbERIS.js → blade-CsPbsxBX.js} +1 -1
  12. package/app/dist/assets/{bsl-CG-fq4sc.js → bsl-9Rfj8X2G.js} +1 -1
  13. package/app/dist/assets/{c-DvGcUFpg.js → c-D9gG2MMW.js} +1 -1
  14. package/app/dist/assets/{cairo-Ds0kTeYT.js → cairo-B8t0-PSB.js} +1 -1
  15. package/app/dist/assets/{chunk-JZWAC4HX-Bl8ic0GS.js → chunk-JZWAC4HX-vAKkV_Y-.js} +1 -1
  16. package/app/dist/assets/{cobol-NY_aN0B9.js → cobol-DD9s4tIq.js} +1 -1
  17. package/app/dist/assets/{coffee-BaV26CEE.js → coffee-6iFiN2xF.js} +1 -1
  18. package/app/dist/assets/{cpp-Xi-gZwXu.js → cpp-DyiPD7p1.js} +1 -1
  19. package/app/dist/assets/{crystal-DCBHYaw5.js → crystal-XjoV3Lue.js} +1 -1
  20. package/app/dist/assets/{css-C0Oup6fN.js → css-DJovgfNT.js} +1 -1
  21. package/app/dist/assets/dialog-BvotBFA0.js +22 -0
  22. package/app/dist/assets/{edge-IkZjdQbn.js → edge-DYu9rQsg.js} +1 -1
  23. package/app/dist/assets/effective-hosts-CgZiG_wS.js +68 -0
  24. package/app/dist/assets/{elixir-BiI7ssvs.js → elixir-CGc4gb59.js} +1 -1
  25. package/app/dist/assets/{elm--EsAmim6.js → elm-DfNAAF5X.js} +1 -1
  26. package/app/dist/assets/{erb-C4BhXkcz.js → erb-CF74Kl7K.js} +1 -1
  27. package/app/dist/assets/{erlang-C-m_88FN.js → erlang-CdOz9ruD.js} +1 -1
  28. package/app/dist/assets/{fortran-fixed-form-Cx1lv7HN.js → fortran-fixed-form-BmD2L0UY.js} +1 -1
  29. package/app/dist/assets/{fsharp-DC5k9sy2.js → fsharp-DgKUr7h2.js} +1 -1
  30. package/app/dist/assets/{gdresource-D0EsKdgH.js → gdresource-BqgTfeIa.js} +1 -1
  31. package/app/dist/assets/{git-commit-BcFsuO5E.js → git-commit-CPnaL3nl.js} +1 -1
  32. package/app/dist/assets/{git-rebase-BwYFXKg2.js → git-rebase-2bSFR8VV.js} +1 -1
  33. package/app/dist/assets/{glimmer-js-Cw6GlNl1.js → glimmer-js-D1yNTSaa.js} +1 -1
  34. package/app/dist/assets/{glimmer-ts-Dtrhen-N.js → glimmer-ts-DVblM7L5.js} +1 -1
  35. package/app/dist/assets/{glsl-CneArfWq.js → glsl-gxzJizaK.js} +1 -1
  36. package/app/dist/assets/{graphql-XWsR5yIs.js → graphql-BpTTKDqK.js} +1 -1
  37. package/app/dist/assets/{hack-B_iHa-zR.js → hack-DDSUlOik.js} +1 -1
  38. package/app/dist/assets/{haml--apJL5g3.js → haml-BZNAh4-P.js} +1 -1
  39. package/app/dist/assets/{handlebars-DjtEJWNG.js → handlebars-DlYJLEcO.js} +1 -1
  40. package/app/dist/assets/{html-ByzR__NF.js → html-MZ0Poiph.js} +1 -1
  41. package/app/dist/assets/{html-derivative-1RBgMeAA.js → html-derivative-ChK_TvO6.js} +1 -1
  42. package/app/dist/assets/{http-iGjydcO_.js → http-CEE8xOHO.js} +1 -1
  43. package/app/dist/assets/{hurl-BgevzdCh.js → hurl-B5aHyN9a.js} +1 -1
  44. package/app/dist/assets/{hxml-iQTOTWpM.js → hxml-DlOl0PEf.js} +1 -1
  45. package/app/dist/assets/index-SSlA_QcC.css +2 -0
  46. package/app/dist/assets/index-u9J_LInz.js +1366 -0
  47. package/app/dist/assets/{java-DlVWVy_H.js → java-C-CCkGSB.js} +1 -1
  48. package/app/dist/assets/{javascript-CWg9eGcp.js → javascript-CoPUJA8j.js} +1 -1
  49. package/app/dist/assets/{jinja-cQnCNhMP.js → jinja-Ce_R6KUf.js} +1 -1
  50. package/app/dist/assets/{jison-BqLsni6f.js → jison-DxdoAlKK.js} +1 -1
  51. package/app/dist/assets/{json-f_cDSIBu.js → json-PteH9L8Y.js} +1 -1
  52. package/app/dist/assets/{jsx-Dddo5A0y.js → jsx-N08PKjBU.js} +1 -1
  53. package/app/dist/assets/{julia-BAHRDZhd.js → julia-D_eVESw1.js} +1 -1
  54. package/app/dist/assets/{just-C7Svdo3e.js → just-BVZ_2gix.js} +1 -1
  55. package/app/dist/assets/{latex-DiP8QMOq.js → latex-CvglVjdX.js} +1 -1
  56. package/app/dist/assets/{liquid-Dlxvb4YZ.js → liquid-C2RPsEhH.js} +1 -1
  57. package/app/dist/assets/localhost-badge-CHDdiNhq.js +1 -0
  58. package/app/dist/assets/{lua-CYFMiD7T.js → lua-D9-kqDch.js} +1 -1
  59. package/app/dist/assets/{marko-BmLsqAhT.js → marko-jVSfYuio.js} +1 -1
  60. package/app/dist/assets/{mdc-BbryJmmE.js → mdc-DVHnOYT4.js} +1 -1
  61. package/app/dist/assets/mutation-cache-effects-plW3Wjx9.js +1 -0
  62. package/app/dist/assets/mutation-errors-INqXreOn.js +2 -0
  63. package/app/dist/assets/{nextflow-D-Ec_bsY.js → nextflow-CK5HLJvq.js} +1 -1
  64. package/app/dist/assets/{nginx-CkaxUV85.js → nginx-DfHWE4gw.js} +1 -1
  65. package/app/dist/assets/{nim-CMthB9Um.js → nim-fW6F-8R_.js} +1 -1
  66. package/app/dist/assets/page-shell-omz5VWqw.js +39 -0
  67. package/app/dist/assets/{perl-1j__vNSI.js → perl-C916SOdN.js} +1 -1
  68. package/app/dist/assets/{php-BgGf6vLq.js → php-BDWQ0WnL.js} +1 -1
  69. package/app/dist/assets/{pill-CxDd2TL9.js → pill-8eXFxAuz.js} +1 -1
  70. package/app/dist/assets/{pug-CrMx1oZj.js → pug-BTGBL6ey.js} +1 -1
  71. package/app/dist/assets/{qml-DQlcMuCA.js → qml-BB7gtLw5.js} +1 -1
  72. package/app/dist/assets/{r-BHAxDsuN.js → r-4Ktj_4BV.js} +1 -1
  73. package/app/dist/assets/{razor-DH_SJCeW.js → razor-C_Ejzpyk.js} +1 -1
  74. package/app/dist/assets/{regexp-Ux97qEA5.js → regexp-DdimReFO.js} +1 -1
  75. package/app/dist/assets/{rst-C8K66ASd.js → rst-Ba-8orMO.js} +1 -1
  76. package/app/dist/assets/{ruby-Bgv5vCSb.js → ruby-DNE0wFLx.js} +1 -1
  77. package/app/dist/assets/{sas-BJuZWbIi.js → sas-D6QyIc5Y.js} +1 -1
  78. package/app/dist/assets/{scss-CPH2TlnJ.js → scss-BpYltub1.js} +1 -1
  79. package/app/dist/assets/{settings-section-BlOBCLDd.js → settings-section-BkJbbK-p.js} +1 -1
  80. package/app/dist/assets/{shaderlab-DGohHMiF.js → shaderlab-jhHUXThs.js} +1 -1
  81. package/app/dist/assets/{shellscript-DTAdkLLb.js → shellscript-B1QZDlVi.js} +1 -1
  82. package/app/dist/assets/{shellsession-CjAj2gkp.js → shellsession-C2YSc67H.js} +1 -1
  83. package/app/dist/assets/{soy-wiaUs069.js → soy-Ba6Otyql.js} +1 -1
  84. package/app/dist/assets/{sparql-BgU2QITA.js → sparql-D050l-1j.js} +1 -1
  85. package/app/dist/assets/split-button-_uHFVDB-.js +1 -0
  86. package/app/dist/assets/{sql-QcEXm8Az.js → sql-Bnzimrzw.js} +1 -1
  87. package/app/dist/assets/{stata-C48TsyCk.js → stata-BmWbZaNS.js} +1 -1
  88. package/app/dist/assets/{surrealql-gygGBtDy.js → surrealql-BDEpTym4.js} +1 -1
  89. package/app/dist/assets/{svelte-DzJ1bjdK.js → svelte-D3__atge.js} +1 -1
  90. package/app/dist/assets/{templ-DiTphmEM.js → templ-B2QvG8e0.js} +1 -1
  91. package/app/dist/assets/{tex-C6QfjVdh.js → tex-oleGAEAp.js} +1 -1
  92. package/app/dist/assets/thread-queries-DpnZLohh.js +1 -0
  93. package/app/dist/assets/{ts-tags-Dg7FL61U.js → ts-tags-C4rrn99M.js} +1 -1
  94. package/app/dist/assets/{tsx-BG30q5NW.js → tsx-5jd1D3TG.js} +1 -1
  95. package/app/dist/assets/{twig-CWCr-AmW.js → twig-BxJeHYNu.js} +1 -1
  96. package/app/dist/assets/{typescript-BR3EjqlG.js → typescript-81bZW67U.js} +1 -1
  97. package/app/dist/assets/{vue-CkJ_ptKH.js → vue-DSNd-6Ch.js} +1 -1
  98. package/app/dist/assets/{vue-html-CFKVnnyc.js → vue-html-CQT5rCwO.js} +1 -1
  99. package/app/dist/assets/{vue-vine-clps1P0S.js → vue-vine-BafaCKEQ.js} +1 -1
  100. package/app/dist/assets/workspace-open-target-preference-yN4DFIsy.js +1 -0
  101. package/app/dist/assets/{xml-BHYwmP79.js → xml-AdWB6zlJ.js} +1 -1
  102. package/app/dist/assets/{xsl-CbEJKtIJ.js → xsl-Dy6hQs2F.js} +1 -1
  103. package/app/dist/assets/{yaml-C-71NFj-.js → yaml-BdzELsfc.js} +1 -1
  104. package/app/dist/index.html +10 -9
  105. package/dist/bb-app.js +1 -1
  106. package/dist/bb-host-daemon.js +1 -1
  107. package/host-daemon/dist/bb +325 -563
  108. package/host-daemon/dist/bb-claude-code-bridge.mjs +37 -37
  109. package/host-daemon/dist/bb-pi-bridge.mjs +1 -1
  110. package/host-daemon/dist/daemon-bundle.mjs +359 -361
  111. package/package.json +1 -1
  112. package/server/dist/default-template/apps/status/manifest.json +9 -0
  113. package/server/dist/drizzle/0006_rapid_santa_claus.sql +11 -0
  114. package/server/dist/drizzle/0007_curvy_ezekiel_stane.sql +2 -0
  115. package/server/dist/drizzle/0008_thread_pinning.sql +3 -0
  116. package/server/dist/drizzle/meta/0006_snapshot.json +3243 -0
  117. package/server/dist/drizzle/meta/0007_snapshot.json +3260 -0
  118. package/server/dist/drizzle/meta/0008_snapshot.json +3285 -0
  119. package/server/dist/drizzle/meta/_journal.json +22 -1
  120. package/server/dist/index.js +4577 -4986
  121. package/app/dist/assets/AppSettingsView-H-BJwj9_.js +0 -1
  122. package/app/dist/assets/InternalReplayListView-BTghdJ73.js +0 -1
  123. package/app/dist/assets/ProjectArchivedThreadsView-Cepv99cw.js +0 -1
  124. package/app/dist/assets/ProjectSettingsView-BHiTMC3F.js +0 -1
  125. package/app/dist/assets/ThreadDetailRoute-BoiY0PTG.js +0 -2867
  126. package/app/dist/assets/ThreadUnarchiveButton-BjYW-ned.js +0 -1
  127. package/app/dist/assets/dialog-aN1xTDyE.js +0 -1
  128. package/app/dist/assets/effective-hosts-DyMNblil.js +0 -68
  129. package/app/dist/assets/index-BikEVw-C.css +0 -2
  130. package/app/dist/assets/index-DERhWKi1.js +0 -1364
  131. package/app/dist/assets/localhost-badge-EX9hMqNt.js +0 -22
  132. package/app/dist/assets/mutation-cache-effects-Dhc8bhPi.js +0 -1
  133. package/app/dist/assets/page-shell-Cm6ORlc1.js +0 -39
  134. package/app/dist/assets/split-button-DKl9pCWu.js +0 -1
  135. package/app/dist/assets/thread-queries-BZIo9kT6.js +0 -1
  136. package/server/dist/default-template/STATUS.html +0 -380
  137. /package/app/dist/assets/{abap-B1dkBSPn.js → abap-B7RnWQOG.js} +0 -0
  138. /package/app/dist/assets/{actionscript-3-BT4ibYlP.js → actionscript-3-CRl2BRXz.js} +0 -0
  139. /package/app/dist/assets/{ada-CD92zeps.js → ada-CySgk42_.js} +0 -0
  140. /package/app/dist/assets/{addon-fit-Cm0rqjtv.js → addon-fit-C0pCnz-E.js} +0 -0
  141. /package/app/dist/assets/{addon-web-links-B8_D6zvC.js → addon-web-links-C74o10p8.js} +0 -0
  142. /package/app/dist/assets/{andromeeda-DqSmgxi0.js → andromeeda-Bnm9WW1a.js} +0 -0
  143. /package/app/dist/assets/{apache-D5suuoa_.js → apache-CQgWNR0K.js} +0 -0
  144. /package/app/dist/assets/{apex-BL-m4VHy.js → apex-CFa_x2c9.js} +0 -0
  145. /package/app/dist/assets/{applescript-CLiBqvKT.js → applescript-CCGt--QU.js} +0 -0
  146. /package/app/dist/assets/{ara-LdDF8cmv.js → ara-CJYv1XlV.js} +0 -0
  147. /package/app/dist/assets/{asciidoc-2DZ9hC2N.js → asciidoc-DxgPoKvx.js} +0 -0
  148. /package/app/dist/assets/{asm-0ZPGRSUy.js → asm-2LyQSByb.js} +0 -0
  149. /package/app/dist/assets/{aurora-x-Da7Zfvbg.js → aurora-x-DfOR6O80.js} +0 -0
  150. /package/app/dist/assets/{awk-Bn0gn_B_.js → awk-adfNbTQc.js} +0 -0
  151. /package/app/dist/assets/{ayu-dark-bqYKoqpM.js → ayu-dark-ADZF52JZ.js} +0 -0
  152. /package/app/dist/assets/{ayu-light-C45jTIzZ.js → ayu-light-CMMeLqXc.js} +0 -0
  153. /package/app/dist/assets/{ayu-mirage-BV_FCTQi.js → ayu-mirage-BZvrYN67.js} +0 -0
  154. /package/app/dist/assets/{ballerina-D2nw_w8Q.js → ballerina-G1jH5Moz.js} +0 -0
  155. /package/app/dist/assets/{bat-ByUBN5gS.js → bat-CHXtPpft.js} +0 -0
  156. /package/app/dist/assets/{beancount-BTb2W6Mp.js → beancount-EfboDiXG.js} +0 -0
  157. /package/app/dist/assets/{berry-5SO2uITG.js → berry-DAhQzFBm.js} +0 -0
  158. /package/app/dist/assets/{bibtex-CDBTNfUI.js → bibtex-CanpD3m2.js} +0 -0
  159. /package/app/dist/assets/{bicep-fgxG_4rP.js → bicep-Cc0u08ve.js} +0 -0
  160. /package/app/dist/assets/{bird2-BCwzDhwX.js → bird2-BmGSmafQ.js} +0 -0
  161. /package/app/dist/assets/{c3-Dlaci63_.js → c3-Bld9q8eN.js} +0 -0
  162. /package/app/dist/assets/{cadence-DHbRuEmm.js → cadence-_3OaglmQ.js} +0 -0
  163. /package/app/dist/assets/{catppuccin-frappe-DrL1fUuH.js → catppuccin-frappe-Dn0XJ8jj.js} +0 -0
  164. /package/app/dist/assets/{catppuccin-latte-C0REgVjl.js → catppuccin-latte-D25Kwd8S.js} +0 -0
  165. /package/app/dist/assets/{catppuccin-macchiato-ChQpylWO.js → catppuccin-macchiato-Bc6w_RYC.js} +0 -0
  166. /package/app/dist/assets/{catppuccin-mocha-Dd0JU1T0.js → catppuccin-mocha-Di4PH8Ri.js} +0 -0
  167. /package/app/dist/assets/{clarity-DMoTOm4G.js → clarity-CVKtZWJu.js} +0 -0
  168. /package/app/dist/assets/{clojure-DBhE3PpS.js → clojure-C4w8xKrn.js} +0 -0
  169. /package/app/dist/assets/{cmake-DwMc40Or.js → cmake-DuxpWyxB.js} +0 -0
  170. /package/app/dist/assets/{codeowners-1lVr8wqV.js → codeowners-BYgLRiPG.js} +0 -0
  171. /package/app/dist/assets/{codeql-DWflolvo.js → codeql-DmJo4bmm.js} +0 -0
  172. /package/app/dist/assets/{common-lisp-CrVQ5xT-.js → common-lisp-xmwdM7sj.js} +0 -0
  173. /package/app/dist/assets/{coq-CjfoyYSh.js → coq-D004aLp-.js} +0 -0
  174. /package/app/dist/assets/{csharp-C7bIWP5y.js → csharp-BJRWJrkS.js} +0 -0
  175. /package/app/dist/assets/{csv-DsAkDVtA.js → csv-Cx2EO4hN.js} +0 -0
  176. /package/app/dist/assets/{cue-BWmQgbOB.js → cue-BFvpulfw.js} +0 -0
  177. /package/app/dist/assets/{cypher-D-jVC50Q.js → cypher-CloxltJj.js} +0 -0
  178. /package/app/dist/assets/{d-CaviyOrm.js → d-ByN-nCZx.js} +0 -0
  179. /package/app/dist/assets/{dark-plus-DIrnwZt9.js → dark-plus-BRQ4k4kr.js} +0 -0
  180. /package/app/dist/assets/{dart-CZEi7JgC.js → dart-jaYeqpH7.js} +0 -0
  181. /package/app/dist/assets/{dax-BK-8zffy.js → dax-CQDoOssZ.js} +0 -0
  182. /package/app/dist/assets/{desktop-D3cjbL4D.js → desktop-DssJfs2S.js} +0 -0
  183. /package/app/dist/assets/{diff-sHAzLvlp.js → diff-DGLbp6Xl.js} +0 -0
  184. /package/app/dist/assets/{docker--xs2Ng3w.js → docker-B7aZDRTU.js} +0 -0
  185. /package/app/dist/assets/{dotenv-Cm4nwcJ7.js → dotenv-D3KyAIK0.js} +0 -0
  186. /package/app/dist/assets/{dracula-CAUSusef.js → dracula-6-t2eOMW.js} +0 -0
  187. /package/app/dist/assets/{dracula-soft-cjNkMFza.js → dracula-soft-B4TZzIlp.js} +0 -0
  188. /package/app/dist/assets/{dream-maker-fjmWTFCO.js → dream-maker-CjPuR0vx.js} +0 -0
  189. /package/app/dist/assets/{emacs-lisp-CJzqStIa.js → emacs-lisp-BHg7FqFZ.js} +0 -0
  190. /package/app/dist/assets/{everforest-dark-DBpaSMx1.js → everforest-dark-B4IVVaS6.js} +0 -0
  191. /package/app/dist/assets/{everforest-light-CiGrXwia.js → everforest-light-CNoEiPUu.js} +0 -0
  192. /package/app/dist/assets/{fennel-DRaXF7k8.js → fennel-DG6hK7z2.js} +0 -0
  193. /package/app/dist/assets/{fish-Bn-Yh3Jj.js → fish-_zY__9L4.js} +0 -0
  194. /package/app/dist/assets/{fluent-DF5F8Ks_.js → fluent-BBz3hVA9.js} +0 -0
  195. /package/app/dist/assets/{fortran-free-form-hCQHRqew.js → fortran-free-form-Db24aQuN.js} +0 -0
  196. /package/app/dist/assets/{gdscript-_C9_Hi_w.js → gdscript-CxxY7zMa.js} +0 -0
  197. /package/app/dist/assets/{gdshader-BW7b1X1Y.js → gdshader-W85lNgcx.js} +0 -0
  198. /package/app/dist/assets/{genie-Ch_6TCHd.js → genie-2WOhOayX.js} +0 -0
  199. /package/app/dist/assets/{gherkin-CaNUsmTq.js → gherkin-BsQJenZD.js} +0 -0
  200. /package/app/dist/assets/{github-dark-B9ygjgg6.js → github-dark-DH2_Q6FX.js} +0 -0
  201. /package/app/dist/assets/{github-dark-default-Br2bgYSx.js → github-dark-default-DTF8deNx.js} +0 -0
  202. /package/app/dist/assets/{github-dark-dimmed-CmtqpPJ-.js → github-dark-dimmed-BvtnYOMy.js} +0 -0
  203. /package/app/dist/assets/{github-dark-high-contrast-fSfmrZcC.js → github-dark-high-contrast-CQhqa0EF.js} +0 -0
  204. /package/app/dist/assets/{github-light-default-lIytXXhR.js → github-light-default-9rPElOua.js} +0 -0
  205. /package/app/dist/assets/{github-light-high-contrast-BRrjFb7n.js → github-light-high-contrast-Drx2T_ea.js} +0 -0
  206. /package/app/dist/assets/{github-light-BZjUqfZl.js → github-light-t2gQwbnC.js} +0 -0
  207. /package/app/dist/assets/{gleam-DALMDpNs.js → gleam-BjFNd70h.js} +0 -0
  208. /package/app/dist/assets/{gn-DGjqrYN9.js → gn-MXj_EEiV.js} +0 -0
  209. /package/app/dist/assets/{gnuplot-BYckvgQI.js → gnuplot-C40vWoS_.js} +0 -0
  210. /package/app/dist/assets/{go-JycvP538.js → go-B2Qj-jpc.js} +0 -0
  211. /package/app/dist/assets/{groovy-D5qMRONT.js → groovy-42TXi0JD.js} +0 -0
  212. /package/app/dist/assets/{gruvbox-dark-hard-M1dj1e6V.js → gruvbox-dark-hard-DaxQoAo9.js} +0 -0
  213. /package/app/dist/assets/{gruvbox-dark-medium-cqq_ncQu.js → gruvbox-dark-medium-CR6ynfxn.js} +0 -0
  214. /package/app/dist/assets/{gruvbox-dark-soft-B4QwL2a9.js → gruvbox-dark-soft-QoKQNR_B.js} +0 -0
  215. /package/app/dist/assets/{gruvbox-light-hard-DLayMKOQ.js → gruvbox-light-hard-C3-JuKAe.js} +0 -0
  216. /package/app/dist/assets/{gruvbox-light-medium-D52XgPKf.js → gruvbox-light-medium-676URJw_.js} +0 -0
  217. /package/app/dist/assets/{gruvbox-light-soft-Dola3KdD.js → gruvbox-light-soft-BGpHIYJO.js} +0 -0
  218. /package/app/dist/assets/{haskell-ys7wPPEd.js → haskell-C5VEzHiR.js} +0 -0
  219. /package/app/dist/assets/{haxe-94kiChn7.js → haxe-DxCG7g2C.js} +0 -0
  220. /package/app/dist/assets/{hcl-DmHt_-wq.js → hcl-B-KEcm-b.js} +0 -0
  221. /package/app/dist/assets/{hjson-xMmoJ0Gx.js → hjson-KcqWy6wG.js} +0 -0
  222. /package/app/dist/assets/{hlsl-b-Pskdze.js → hlsl-CU9ay1Rj.js} +0 -0
  223. /package/app/dist/assets/{horizon-BKMqttiR.js → horizon-BDDUNMOh.js} +0 -0
  224. /package/app/dist/assets/{horizon-bright-HNkBlnm5.js → horizon-bright-Km86OX7k.js} +0 -0
  225. /package/app/dist/assets/{houston-BkBSBSOQ.js → houston-CnK3oLKP.js} +0 -0
  226. /package/app/dist/assets/{hy-DKl1XhBq.js → hy-9kqolRdI.js} +0 -0
  227. /package/app/dist/assets/{imba-DPxkOTAg.js → imba-AWBATAYY.js} +0 -0
  228. /package/app/dist/assets/{ini-lkLGq_1x.js → ini-P5JLg6LV.js} +0 -0
  229. /package/app/dist/assets/{json5-Cy6ypJuJ.js → json5-Cj9weIvR.js} +0 -0
  230. /package/app/dist/assets/{jsonc-Cw2ugYAK.js → jsonc-CwVZHrLL.js} +0 -0
  231. /package/app/dist/assets/{jsonl-Dp5_qBVH.js → jsonl-CfYcxfNz.js} +0 -0
  232. /package/app/dist/assets/{jsonnet-BTbmg_-u.js → jsonnet-B351KcBZ.js} +0 -0
  233. /package/app/dist/assets/{jssm-CnT7nPea.js → jssm-CVNVxyp8.js} +0 -0
  234. /package/app/dist/assets/{kanagawa-dragon-CxsBnuhV.js → kanagawa-dragon-Bg-BKRuP.js} +0 -0
  235. /package/app/dist/assets/{kanagawa-lotus-vHdxDDOS.js → kanagawa-lotus-CVGoMXw8.js} +0 -0
  236. /package/app/dist/assets/{kanagawa-wave-CIkfTKWk.js → kanagawa-wave-CuNbEAGB.js} +0 -0
  237. /package/app/dist/assets/{kdl-BwK60g80.js → kdl-B2a5Hdo5.js} +0 -0
  238. /package/app/dist/assets/{kotlin-Dbd9Vi-v.js → kotlin-CwntYu9G.js} +0 -0
  239. /package/app/dist/assets/{kusto-BuTk9usc.js → kusto-DzqQhEgS.js} +0 -0
  240. /package/app/dist/assets/{laserwave-C0wf_d3o.js → laserwave-Bf5KiZGG.js} +0 -0
  241. /package/app/dist/assets/{lean-CYAW8bRN.js → lean-CLemLjY9.js} +0 -0
  242. /package/app/dist/assets/{less-D4uen21c.js → less-Dycz37IB.js} +0 -0
  243. /package/app/dist/assets/{light-plus-oqYyWKEE.js → light-plus-BISup5vO.js} +0 -0
  244. /package/app/dist/assets/{llvm-Z1xJzteV.js → llvm-B3vA1z1w.js} +0 -0
  245. /package/app/dist/assets/{log-BGUxlsk3.js → log-CM4eTPwH.js} +0 -0
  246. /package/app/dist/assets/{logo-wVUhvQ1b.js → logo-DCYIDlXZ.js} +0 -0
  247. /package/app/dist/assets/{luau-rPFZzCmq.js → luau-B3LrvOEt.js} +0 -0
  248. /package/app/dist/assets/{make-BmPf6m0P.js → make-Bep3F-fA.js} +0 -0
  249. /package/app/dist/assets/{markdown-AseU6zcW.js → markdown-BObkjWCp.js} +0 -0
  250. /package/app/dist/assets/{material-theme-darker-VPEo3Sem.js → material-theme-darker-DM1OIivA.js} +0 -0
  251. /package/app/dist/assets/{material-theme-6_W6rQhR.js → material-theme-jZt3rhQh.js} +0 -0
  252. /package/app/dist/assets/{material-theme-lighter-CUhzCcZ9.js → material-theme-lighter-HtgpH1FU.js} +0 -0
  253. /package/app/dist/assets/{material-theme-ocean-B2JdsaGb.js → material-theme-ocean-CeFuXoRG.js} +0 -0
  254. /package/app/dist/assets/{material-theme-palenight-DhY-sklA.js → material-theme-palenight-BMg4YxS6.js} +0 -0
  255. /package/app/dist/assets/{matlab-BOj_BDQv.js → matlab-BjvFQgI4.js} +0 -0
  256. /package/app/dist/assets/{mdx-Cm6cDkDI.js → mdx-DnKU9cqA.js} +0 -0
  257. /package/app/dist/assets/{mermaid-DLO-R4hv.js → mermaid-CH8Qvaqo.js} +0 -0
  258. /package/app/dist/assets/{min-dark-D34a_pX7.js → min-dark-B95jFnY0.js} +0 -0
  259. /package/app/dist/assets/{min-light-Cdd4KORE.js → min-light-CqwYUont.js} +0 -0
  260. /package/app/dist/assets/{mipsasm-DYpHF-GA.js → mipsasm-OAAwCDEg.js} +0 -0
  261. /package/app/dist/assets/{mojo-DqYVFv_G.js → mojo-COx3BOEA.js} +0 -0
  262. /package/app/dist/assets/{monokai-CDR4sQ2n.js → monokai-C988KBom.js} +0 -0
  263. /package/app/dist/assets/{moonbit-DRKee9wk.js → moonbit-ChOfdbnC.js} +0 -0
  264. /package/app/dist/assets/{move-DbRk6Vn9.js → move-jwG4QUY4.js} +0 -0
  265. /package/app/dist/assets/{narrat-IOfmaXfb.js → narrat-Bv3slmdi.js} +0 -0
  266. /package/app/dist/assets/{nextflow-groovy-EYl0c2BQ.js → nextflow-groovy-CYeLXiaP.js} +0 -0
  267. /package/app/dist/assets/{night-owl-yQJ3-I0I.js → night-owl-SjOLjRtB.js} +0 -0
  268. /package/app/dist/assets/{night-owl-light-Bedht9b4.js → night-owl-light-DHrEzBAj.js} +0 -0
  269. /package/app/dist/assets/{nix-C2IovEl2.js → nix-CcOD1khX.js} +0 -0
  270. /package/app/dist/assets/{nord-BjZ63GNL.js → nord-BGjNHkRW.js} +0 -0
  271. /package/app/dist/assets/{nushell-BflTrRB5.js → nushell-GFe6C8D1.js} +0 -0
  272. /package/app/dist/assets/{objective-c-GRClK1S7.js → objective-c-Da4gtNmU.js} +0 -0
  273. /package/app/dist/assets/{objective-cpp-l3qYw-v5.js → objective-cpp-Du3a_PKx.js} +0 -0
  274. /package/app/dist/assets/{ocaml-BBDyhyMH.js → ocaml-4v1g0DKj.js} +0 -0
  275. /package/app/dist/assets/{odin-jCJ7Js99.js → odin-C2CG6fMn.js} +0 -0
  276. /package/app/dist/assets/{one-dark-pro-PIx2Diul.js → one-dark-pro-BwcbXd-T.js} +0 -0
  277. /package/app/dist/assets/{one-light-BFMEz49S.js → one-light-BOQW5zin.js} +0 -0
  278. /package/app/dist/assets/{openscad-Drf0LgCX.js → openscad-Bs2SxlcB.js} +0 -0
  279. /package/app/dist/assets/{pascal-BT2XAUTl.js → pascal-B6AuHgs_.js} +0 -0
  280. /package/app/dist/assets/{pierre-dark-BMm5HxPQ.js → pierre-dark-CRPkZhl3.js} +0 -0
  281. /package/app/dist/assets/{pierre-light-DyzEot4Q.js → pierre-light-BT7AHM04.js} +0 -0
  282. /package/app/dist/assets/{pkl-ML-dWShO.js → pkl-BuPFXprX.js} +0 -0
  283. /package/app/dist/assets/{plastic-BFI-Z5Z2.js → plastic-BiAROaFC.js} +0 -0
  284. /package/app/dist/assets/{plsql-0vd5cLro.js → plsql-DQ_z5ed2.js} +0 -0
  285. /package/app/dist/assets/{po-CbZ_uqQA.js → po-BvHij3iO.js} +0 -0
  286. /package/app/dist/assets/{poimandres-Cayhd01L.js → poimandres-BbdNMHGS.js} +0 -0
  287. /package/app/dist/assets/{polar-C4hfV8Nc.js → polar-p_EVOYp2.js} +0 -0
  288. /package/app/dist/assets/{postcss-osFUbTLw.js → postcss-BVVH-mhK.js} +0 -0
  289. /package/app/dist/assets/{powerquery-CTlGUQPj.js → powerquery-D2htabf9.js} +0 -0
  290. /package/app/dist/assets/{powershell-DyZsOmuq.js → powershell-NfY3J8Uu.js} +0 -0
  291. /package/app/dist/assets/{prisma-SS92PO_I.js → prisma-CMeP8UTm.js} +0 -0
  292. /package/app/dist/assets/{prolog-B1O1NNVC.js → prolog-Cc9yvHML.js} +0 -0
  293. /package/app/dist/assets/{proto-BWu3eZTs.js → proto-CNBX21YV.js} +0 -0
  294. /package/app/dist/assets/{puppet-tvtRVdr6.js → puppet-ZnM2F-kY.js} +0 -0
  295. /package/app/dist/assets/{purescript-Dtbpb7D-.js → purescript-nyLIIaTP.js} +0 -0
  296. /package/app/dist/assets/{python-Dlk0Acio.js → python-Dt6SBvxD.js} +0 -0
  297. /package/app/dist/assets/{qmldir-B-iEOngH.js → qmldir-BDEiw2QJ.js} +0 -0
  298. /package/app/dist/assets/{qss-Ba0p-aHw.js → qss-B8ZOZZRM.js} +0 -0
  299. /package/app/dist/assets/{racket-BXDsxf2U.js → racket-emNFhxM0.js} +0 -0
  300. /package/app/dist/assets/{raku-Dw1WWFXK.js → raku-M_VGm79k.js} +0 -0
  301. /package/app/dist/assets/{red-BC3Ds49b.js → red-BcYVa2Jk.js} +0 -0
  302. /package/app/dist/assets/{reg-DXFHGaM4.js → reg-rRGLqGjW.js} +0 -0
  303. /package/app/dist/assets/{rel-Dc5_Ytx2.js → rel-DqcQFa7Q.js} +0 -0
  304. /package/app/dist/assets/{riscv-ZgswiWij.js → riscv-CanSyeO8.js} +0 -0
  305. /package/app/dist/assets/{ron-YghabWAH.js → ron-BQ46iNCb.js} +0 -0
  306. /package/app/dist/assets/{rose-pine-ByWLnVr3.js → rose-pine-BuTm62Vj.js} +0 -0
  307. /package/app/dist/assets/{rose-pine-dawn-DBmeySrz.js → rose-pine-dawn-B670NuiP.js} +0 -0
  308. /package/app/dist/assets/{rose-pine-moon-B9J-N3nK.js → rose-pine-moon-6KoQonQX.js} +0 -0
  309. /package/app/dist/assets/{rosmsg-DTKmAsVH.js → rosmsg-Bw0HfGe_.js} +0 -0
  310. /package/app/dist/assets/{rust-nfXwuE6F.js → rust-D83UuV7F.js} +0 -0
  311. /package/app/dist/assets/{sass-CbRjkld3.js → sass-CE2YZJdE.js} +0 -0
  312. /package/app/dist/assets/{scala-BzD3eypx.js → scala-CyYhociv.js} +0 -0
  313. /package/app/dist/assets/{scheme-D4d1PV1y.js → scheme-BrRWQ1yX.js} +0 -0
  314. /package/app/dist/assets/{sdbl-Cf-Ydnvx.js → sdbl-CtZR2I6R.js} +0 -0
  315. /package/app/dist/assets/{slack-dark-MszIyPZ2.js → slack-dark-nxsbRL6U.js} +0 -0
  316. /package/app/dist/assets/{slack-ochin-tQ3Q0gE9.js → slack-ochin-Cx2HX71B.js} +0 -0
  317. /package/app/dist/assets/{smalltalk-_uWoArwn.js → smalltalk-DGeW9hbd.js} +0 -0
  318. /package/app/dist/assets/{snazzy-light-9sniMEk5.js → snazzy-light-508iEJO_.js} +0 -0
  319. /package/app/dist/assets/{solarized-dark-CdD0Hxzv.js → solarized-dark-TCkigWjM.js} +0 -0
  320. /package/app/dist/assets/{solarized-light-C-nsEdqF.js → solarized-light-R2Rcjqww.js} +0 -0
  321. /package/app/dist/assets/{solidity-D6uC-xwP.js → solidity-46G7JVSr.js} +0 -0
  322. /package/app/dist/assets/{splunk-LQYHRu14.js → splunk-DKgoBk9o.js} +0 -0
  323. /package/app/dist/assets/{ssh-config-B7BUl8Rd.js → ssh-config-JoXpWa3y.js} +0 -0
  324. /package/app/dist/assets/{stylus-Byjxdx_q.js → stylus-BPw8WnNN.js} +0 -0
  325. /package/app/dist/assets/{swift-BexLlMrU.js → swift-Ce2Nlw8Q.js} +0 -0
  326. /package/app/dist/assets/{synthwave-84-BxMBwQMS.js → synthwave-84-Br2i7yYN.js} +0 -0
  327. /package/app/dist/assets/{system-verilog-DVGwm0mw.js → system-verilog-Dkc37EdI.js} +0 -0
  328. /package/app/dist/assets/{systemd-H2IT3-p5.js → systemd-CcJTFvpw.js} +0 -0
  329. /package/app/dist/assets/{talonscript-mKZIGM8n.js → talonscript-CHxC2PG4.js} +0 -0
  330. /package/app/dist/assets/{tasl-B7he_Ugr.js → tasl-woKXKJkx.js} +0 -0
  331. /package/app/dist/assets/{tcl-5mT3RxHH.js → tcl-6FTtarFH.js} +0 -0
  332. /package/app/dist/assets/{terraform-BZP0GLsT.js → terraform-DHx5Kdyi.js} +0 -0
  333. /package/app/dist/assets/{tokyo-night-CTPVdZt9.js → tokyo-night-BQsIhA-A.js} +0 -0
  334. /package/app/dist/assets/{toml-CTFA98he.js → toml-BCbG8Uu3.js} +0 -0
  335. /package/app/dist/assets/{tsv-BayJtYdY.js → tsv-Bfk0YRxN.js} +0 -0
  336. /package/app/dist/assets/{turtle-TVCBh_kY.js → turtle-DsCF_r1D.js} +0 -0
  337. /package/app/dist/assets/{typespec-BUvaJDLF.js → typespec-tsneGPKg.js} +0 -0
  338. /package/app/dist/assets/{typst-8NBaY7Ec.js → typst-BcQNhVIE.js} +0 -0
  339. /package/app/dist/assets/{v-VihyTigi.js → v-CPbK5D5K.js} +0 -0
  340. /package/app/dist/assets/{vala-DyFAPyX6.js → vala-CTmcnleK.js} +0 -0
  341. /package/app/dist/assets/{vb-Dg1Iqi4J.js → vb-iQRhK9Tp.js} +0 -0
  342. /package/app/dist/assets/{verilog-D2Xc-vhD.js → verilog-BxRFSB3_.js} +0 -0
  343. /package/app/dist/assets/{vesper-DJbtqYNr.js → vesper-D_U9vezF.js} +0 -0
  344. /package/app/dist/assets/{vhdl-CU3BVeE7.js → vhdl-D4h06VsC.js} +0 -0
  345. /package/app/dist/assets/{viml-hG2shuOW.js → viml-DMcwh6Y2.js} +0 -0
  346. /package/app/dist/assets/{vitesse-black-DbG2gsc0.js → vitesse-black-Dk8H62LF.js} +0 -0
  347. /package/app/dist/assets/{vitesse-dark-B6WV4xXH.js → vitesse-dark-BuiSS132.js} +0 -0
  348. /package/app/dist/assets/{vitesse-light-DC1pdD02.js → vitesse-light-DfdaVJLv.js} +0 -0
  349. /package/app/dist/assets/{vyper-C1wojIuk.js → vyper-DfAPtbtc.js} +0 -0
  350. /package/app/dist/assets/{wasm-C6Y0s02M.js → wasm-ByDQ9GrP.js} +0 -0
  351. /package/app/dist/assets/{wasm-y20ImDym.js → wasm-CfmxG3B2.js} +0 -0
  352. /package/app/dist/assets/{wenyan-BG5vPQF0.js → wenyan-DNkN8oQc.js} +0 -0
  353. /package/app/dist/assets/{wgsl-DrVb-Cub.js → wgsl-Bggw1Yhv.js} +0 -0
  354. /package/app/dist/assets/{wikitext-PRC4s8sH.js → wikitext-zXy-4mpr.js} +0 -0
  355. /package/app/dist/assets/{wit-ChW5qvg_.js → wit--vc2X9vR.js} +0 -0
  356. /package/app/dist/assets/{wolfram-B8mKuZSQ.js → wolfram-Dr60-Zy4.js} +0 -0
  357. /package/app/dist/assets/{xterm-DGJHbKBQ.js → xterm-Ba9eaFdZ.js} +0 -0
  358. /package/app/dist/assets/{zenscript-C-jEPC9j.js → zenscript-Cf2Qp-oj.js} +0 -0
  359. /package/app/dist/assets/{zig-EbnRGjcz.js → zig-DgUQodsP.js} +0 -0
@@ -1,44 +1,50 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
3
- var Sk=Object.create;var Du=Object.defineProperty;var bk=Object.getOwnPropertyDescriptor;var Tk=Object.getOwnPropertyNames;var xk=Object.getPrototypeOf,Ek=Object.prototype.hasOwnProperty;var Ie=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),it=(e,t)=>{for(var r in t)Du(e,r,{get:t[r],enumerable:!0})},Dk=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Tk(t))!Ek.call(e,n)&&n!==r&&Du(e,n,{get:()=>t[n],enumerable:!(o=bk(t,n))||o.enumerable});return e};var Iu=(e,t,r)=>(r=e!=null?Sk(xk(e)):{},Dk(t||!e||!e.__esModule?Du(r,"default",{value:e,enumerable:!0}):r,e));var Tr=_(wu=>{var Uo=class extends Error{constructor(t,r,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},_u=class extends Uo{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};wu.CommanderError=Uo;wu.InvalidArgumentError=_u});var Vo=_(Cu=>{var{InvalidArgumentError:Ik}=Tr(),Pu=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Ik(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,o):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function _k(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Cu.Argument=Pu;Cu.humanReadableArgName=_k});var Au=_(Ru=>{var{humanReadableArgName:wk}=Vo(),ku=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),o=t._getHelpCommand();return o&&!o._hidden&&r.push(o),this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(t,r){let o=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return o(t).localeCompare(o(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),o=t._getHelpOption();if(o&&!o.hidden){let n=o.short&&t._findOption(o.short),i=o.long&&t._findOption(o.long);!n&&!i?r.push(o):o.long&&!i?r.push(t.createOption(o.long,o.description)):o.short&&!n&&r.push(t.createOption(o.short,o.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let o=t.parent;o;o=o.parent){let n=o.options.filter(i=>!i.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(o=>wk(o)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let o="";for(let n=t.parent;n;n=n.parent)o=n.name()+" "+o;return o+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];return t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0?`${t.description} (${r.join(", ")})`:t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}formatHelp(t,r){let o=r.padWidth(t,r),n=r.helpWidth??80;function i(d,m){return r.formatItem(d,o,m,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],u=r.commandDescription(t);u.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(u),n),""]));let l=r.visibleArguments(t).map(d=>i(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));l.length>0&&(s=s.concat([r.styleTitle("Arguments:"),...l,""]));let c=r.visibleOptions(t).map(d=>i(r.styleOptionTerm(r.optionTerm(d)),r.styleOptionDescription(r.optionDescription(d))));if(c.length>0&&(s=s.concat([r.styleTitle("Options:"),...c,""])),r.showGlobalOptions){let d=r.visibleGlobalOptions(t).map(m=>i(r.styleOptionTerm(r.optionTerm(m)),r.styleOptionDescription(r.optionDescription(m))));d.length>0&&(s=s.concat([r.styleTitle("Global Options:"),...d,""]))}let p=r.visibleCommands(t).map(d=>i(r.styleSubcommandTerm(r.subcommandTerm(d)),r.styleSubcommandDescription(r.subcommandDescription(d))));return p.length>0&&(s=s.concat([r.styleTitle("Commands:"),...p,""])),s.join(`
4
- `)}displayWidth(t){return dv(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,o,n){let s=" ".repeat(2);if(!o)return s+t;let u=t.padEnd(r+t.length-n.displayWidth(t)),l=2,p=(this.helpWidth??80)-r-l-2,d;return p<this.minWidthToWrap||n.preformatted(o)?d=o:d=n.boxWrap(o,p).replace(/\n/g,`
5
- `+" ".repeat(r+l)),s+u+" ".repeat(l)+d.replace(/\n/g,`
6
- ${s}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let o=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return o.forEach(s=>{let u=s.match(n);if(u===null){i.push("");return}let l=[u.shift()],c=this.displayWidth(l[0]);u.forEach(p=>{let d=this.displayWidth(p);if(c+d<=r){l.push(p),c+=d;return}i.push(l.join(""));let m=p.trimStart();l=[m],c=this.displayWidth(m)}),i.push(l.join(""))}),i.join(`
7
- `)}};function dv(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Ru.Help=ku;Ru.stripColor=dv});var Mu=_(Ou=>{var{InvalidArgumentError:Pk}=Tr(),ju=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let o=Ck(t);this.short=o.shortFlag,this.long=o.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Pk(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,o):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?pv(this.name().replace(/^no-/,"")):pv(this.name())}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},$u=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(t,r){let o=r.attributeName();if(!this.dualOptions.has(o))return!0;let n=this.negativeOptions.get(o).presetArg,i=n!==void 0?n:!1;return r.negate===(i===t)}};function pv(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Ck(e){let t,r,o=/^-[^-]$/,n=/^--[^-]/,i=e.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(t=i.shift()),n.test(i[0])&&(r=i.shift()),!t&&o.test(i[0])&&(t=i.shift()),!t&&n.test(i[0])&&(t=r,r=i.shift()),i[0].startsWith("-")){let s=i[0],u=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${u}
3
+ var Bk=Object.create;var kc=Object.defineProperty;var Fk=Object.getOwnPropertyDescriptor;var Lk=Object.getOwnPropertyNames;var Nk=Object.getPrototypeOf,qk=Object.prototype.hasOwnProperty;var _e=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ct=(e,t)=>{for(var r in t)kc(e,r,{get:t[r],enumerable:!0})},Uk=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Lk(t))!qk.call(e,n)&&n!==r&&kc(e,n,{get:()=>t[n],enumerable:!(o=Fk(t,n))||o.enumerable});return e};var Rc=(e,t,r)=>(r=e!=null?Bk(Nk(e)):{},Uk(t||!e||!e.__esModule?kc(r,"default",{value:e,enumerable:!0}):r,e));var Er=P(jc=>{var Ho=class extends Error{constructor(t,r,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},Ac=class extends Ho{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};jc.CommanderError=Ho;jc.InvalidArgumentError=Ac});var Ko=P(Mc=>{var{InvalidArgumentError:Wk}=Er(),$c=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Wk(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,o):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Vk(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Mc.Argument=$c;Mc.humanReadableArgName=Vk});var Bc=P(zc=>{var{humanReadableArgName:Hk}=Ko(),Oc=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),o=t._getHelpCommand();return o&&!o._hidden&&r.push(o),this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(t,r){let o=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return o(t).localeCompare(o(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),o=t._getHelpOption();if(o&&!o.hidden){let n=o.short&&t._findOption(o.short),i=o.long&&t._findOption(o.long);!n&&!i?r.push(o):o.long&&!i?r.push(t.createOption(o.long,o.description)):o.short&&!n&&r.push(t.createOption(o.short,o.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let o=t.parent;o;o=o.parent){let n=o.options.filter(i=>!i.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(o=>Hk(o)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let o="";for(let n=t.parent;n;n=n.parent)o=n.name()+" "+o;return o+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];return t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0?`${t.description} (${r.join(", ")})`:t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}formatHelp(t,r){let o=r.padWidth(t,r),n=r.helpWidth??80;function i(d,m){return r.formatItem(d,o,m,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],c=r.commandDescription(t);c.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(c),n),""]));let l=r.visibleArguments(t).map(d=>i(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));l.length>0&&(s=s.concat([r.styleTitle("Arguments:"),...l,""]));let u=r.visibleOptions(t).map(d=>i(r.styleOptionTerm(r.optionTerm(d)),r.styleOptionDescription(r.optionDescription(d))));if(u.length>0&&(s=s.concat([r.styleTitle("Options:"),...u,""])),r.showGlobalOptions){let d=r.visibleGlobalOptions(t).map(m=>i(r.styleOptionTerm(r.optionTerm(m)),r.styleOptionDescription(r.optionDescription(m))));d.length>0&&(s=s.concat([r.styleTitle("Global Options:"),...d,""]))}let p=r.visibleCommands(t).map(d=>i(r.styleSubcommandTerm(r.subcommandTerm(d)),r.styleSubcommandDescription(r.subcommandDescription(d))));return p.length>0&&(s=s.concat([r.styleTitle("Commands:"),...p,""])),s.join(`
4
+ `)}displayWidth(t){return Tv(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,o,n){let s=" ".repeat(2);if(!o)return s+t;let c=t.padEnd(r+t.length-n.displayWidth(t)),l=2,p=(this.helpWidth??80)-r-l-2,d;return p<this.minWidthToWrap||n.preformatted(o)?d=o:d=n.boxWrap(o,p).replace(/\n/g,`
5
+ `+" ".repeat(r+l)),s+c+" ".repeat(l)+d.replace(/\n/g,`
6
+ ${s}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let o=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return o.forEach(s=>{let c=s.match(n);if(c===null){i.push("");return}let l=[c.shift()],u=this.displayWidth(l[0]);c.forEach(p=>{let d=this.displayWidth(p);if(u+d<=r){l.push(p),u+=d;return}i.push(l.join(""));let m=p.trimStart();l=[m],u=this.displayWidth(m)}),i.push(l.join(""))}),i.join(`
7
+ `)}};function Tv(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}zc.Help=Oc;zc.stripColor=Tv});var qc=P(Nc=>{var{InvalidArgumentError:Kk}=Er(),Fc=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let o=Zk(t);this.short=o.shortFlag,this.long=o.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Kk(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,o):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?xv(this.name().replace(/^no-/,"")):xv(this.name())}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Lc=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(t,r){let o=r.attributeName();if(!this.dualOptions.has(o))return!0;let n=this.negativeOptions.get(o).presetArg,i=n!==void 0?n:!1;return r.negate===(i===t)}};function xv(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Zk(e){let t,r,o=/^-[^-]$/,n=/^--[^-]/,i=e.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(t=i.shift()),n.test(i[0])&&(r=i.shift()),!t&&o.test(i[0])&&(t=i.shift()),!t&&n.test(i[0])&&(t=r,r=i.shift()),i[0].startsWith("-")){let s=i[0],c=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${c}
8
8
  - a short flag is a single dash and a single character
9
9
  - either use a single dash and a single character (for a short flag)
10
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(s)?new Error(`${u}
11
- - too many short flags`):n.test(s)?new Error(`${u}
12
- - too many long flags`):new Error(`${u}
13
- - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}Ou.Option=ju;Ou.DualOptions=$u});var hv=_(mv=>{function kk(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let o=0;o<=e.length;o++)r[o]=[o];for(let o=0;o<=t.length;o++)r[0][o]=o;for(let o=1;o<=t.length;o++)for(let n=1;n<=e.length;n++){let i=1;e[n-1]===t[o-1]?i=0:i=1,r[n][o]=Math.min(r[n-1][o]+1,r[n][o-1]+1,r[n-1][o-1]+i),n>1&&o>1&&e[n-1]===t[o-2]&&e[n-2]===t[o-1]&&(r[n][o]=Math.min(r[n][o],r[n-2][o-2]+1))}return r[e.length][t.length]}function Rk(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let o=[],n=3,i=.4;return t.forEach(s=>{if(s.length<=1)return;let u=kk(e,s),l=Math.max(e.length,s.length);(l-u)/l>i&&(u<n?(n=u,o=[s]):u===n&&o.push(s))}),o.sort((s,u)=>s.localeCompare(u)),r&&(o=o.map(s=>`--${s}`)),o.length>1?`
10
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(s)?new Error(`${c}
11
+ - too many short flags`):n.test(s)?new Error(`${c}
12
+ - too many long flags`):new Error(`${c}
13
+ - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}Nc.Option=Fc;Nc.DualOptions=Lc});var Dv=P(Ev=>{function Gk(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let o=0;o<=e.length;o++)r[o]=[o];for(let o=0;o<=t.length;o++)r[0][o]=o;for(let o=1;o<=t.length;o++)for(let n=1;n<=e.length;n++){let i=1;e[n-1]===t[o-1]?i=0:i=1,r[n][o]=Math.min(r[n-1][o]+1,r[n][o-1]+1,r[n-1][o-1]+i),n>1&&o>1&&e[n-1]===t[o-2]&&e[n-2]===t[o-1]&&(r[n][o]=Math.min(r[n][o],r[n-2][o-2]+1))}return r[e.length][t.length]}function Qk(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let o=[],n=3,i=.4;return t.forEach(s=>{if(s.length<=1)return;let c=Gk(e,s),l=Math.max(e.length,s.length);(l-c)/l>i&&(c<n?(n=c,o=[s]):c===n&&o.push(s))}),o.sort((s,c)=>s.localeCompare(c)),r&&(o=o.map(s=>`--${s}`)),o.length>1?`
14
14
  (Did you mean one of ${o.join(", ")}?)`:o.length===1?`
15
- (Did you mean ${o[0]}?)`:""}mv.suggestSimilar=Rk});var yv=_(Nu=>{var Ak=Ie("node:events").EventEmitter,zu=Ie("node:child_process"),at=Ie("node:path"),Wo=Ie("node:fs"),q=Ie("node:process"),{Argument:jk,humanReadableArgName:$k}=Vo(),{CommanderError:Fu}=Tr(),{Help:Ok,stripColor:Mk}=Au(),{Option:fv,DualOptions:zk}=Mu(),{suggestSimilar:gv}=hv(),Bu=class e extends Ak{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>q.stdout.write(r),writeErr:r=>q.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>q.stdout.isTTY?q.stdout.columns:void 0,getErrHelpWidth:()=>q.stderr.isTTY?q.stderr.columns:void 0,getOutHasColors:()=>Lu()??(q.stdout.isTTY&&q.stdout.hasColors?.()),getErrHasColors:()=>Lu()??(q.stderr.isTTY&&q.stderr.hasColors?.()),stripColor:r=>Mk(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,o){let n=r,i=o;typeof n=="object"&&n!==null&&(i=n,n=null),i=i||{};let[,s,u]=t.match(/([^ ]+) *(.*)/),l=this.createCommand(s);return n&&(l.description(n),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._executableFile=i.executableFile||null,u&&l.arguments(u),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),n?this:l}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Ok,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,t),this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
16
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new jk(t,r)}argument(t,r,o,n){let i=this.createArgument(t,r);return typeof o=="function"?i.default(n).argParser(o):i.default(o),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,this;t=t??"help [command]";let[,o,n]=t.match(/([^ ]+) *(.*)/),i=r??"display help for command",s=this.createCommand(o);return s.helpOption(!1),n&&s.arguments(n),i&&s.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=s,this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let o=["preSubcommand","preAction","postAction"];if(!o.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
17
- Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,o){this._exitCallback&&this._exitCallback(new Fu(t,r,o)),q.exit(t)}action(t){let r=o=>{let n=this.registeredArguments.length,i=o.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new fv(t,r)}_callParseArg(t,r,o,n){try{return t.parseArg(r,o)}catch(i){if(i.code==="commander.invalidArgument"){let s=`${n} ${i.message}`;this.error(s,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let o=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
18
- - already used by option '${r.flags}'`)}this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),o=r(t).find(n=>this._findCommand(n));if(o){let n=r(this._findCommand(o)).join("|"),i=r(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),o=t.attributeName();if(t.negate){let i=t.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(o,t.defaultValue,"default");let n=(i,s,u)=>{i==null&&t.presetArg!==void 0&&(i=t.presetArg);let l=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,l,s):i!==null&&t.variadic&&(i=t._concatValue(i,l)),i==null&&(t.negate?i=!1:t.isBoolean()||t.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,u)};return this.on("option:"+r,i=>{let s=`error: option '${t.flags}' argument '${i}' is invalid.`;n(i,s,"cli")}),t.envVar&&this.on("optionEnv:"+r,i=>{let s=`error: option '${t.flags}' value '${i}' from env '${t.envVar}' is invalid.`;n(i,s,"env")}),this}_optionEx(t,r,o,n,i){if(typeof r=="object"&&r instanceof fv)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,o);if(s.makeOptionMandatory(!!t.mandatory),typeof n=="function")s.default(i).argParser(n);else if(n instanceof RegExp){let u=n;n=(l,c)=>{let p=u.exec(l);return p?p[0]:c},s.default(i).argParser(n)}else s.default(n);return this.addOption(s)}option(t,r,o,n){return this._optionEx({},t,r,o,n)}requiredOption(t,r,o,n){return this._optionEx({mandatory:!0},t,r,o,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,o){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=o,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(t)!==void 0&&(r=o.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){q.versions?.electron&&(r.from="electron");let n=q.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=q.argv),this.rawArgs=t.slice();let o;switch(r.from){case void 0:case"node":this._scriptPath=t[1],o=t.slice(2);break;case"electron":q.defaultApp?(this._scriptPath=t[1],o=t.slice(2)):o=t.slice(1);break;case"user":o=t.slice(0);break;case"eval":o=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return this._parseCommand([],o),this}async parseAsync(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return await this._parseCommand([],o),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,o){if(Wo.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${t}' does not exist
15
+ (Did you mean ${o[0]}?)`:""}Ev.suggestSimilar=Qk});var wv=P(Kc=>{var Jk=_e("node:events").EventEmitter,Uc=_e("node:child_process"),ut=_e("node:path"),Zo=_e("node:fs"),q=_e("node:process"),{Argument:Xk,humanReadableArgName:Yk}=Ko(),{CommanderError:Wc}=Er(),{Help:eR,stripColor:tR}=Bc(),{Option:Iv,DualOptions:nR}=qc(),{suggestSimilar:_v}=Dv(),Vc=class e extends Jk{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>q.stdout.write(r),writeErr:r=>q.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>q.stdout.isTTY?q.stdout.columns:void 0,getErrHelpWidth:()=>q.stderr.isTTY?q.stderr.columns:void 0,getOutHasColors:()=>Hc()??(q.stdout.isTTY&&q.stdout.hasColors?.()),getErrHasColors:()=>Hc()??(q.stderr.isTTY&&q.stderr.hasColors?.()),stripColor:r=>tR(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,o){let n=r,i=o;typeof n=="object"&&n!==null&&(i=n,n=null),i=i||{};let[,s,c]=t.match(/([^ ]+) *(.*)/),l=this.createCommand(s);return n&&(l.description(n),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._executableFile=i.executableFile||null,c&&l.arguments(c),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),n?this:l}createCommand(t){return new e(t)}createHelp(){return Object.assign(new eR,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,t),this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
16
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Xk(t,r)}argument(t,r,o,n){let i=this.createArgument(t,r);return typeof o=="function"?i.default(n).argParser(o):i.default(o),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,this;t=t??"help [command]";let[,o,n]=t.match(/([^ ]+) *(.*)/),i=r??"display help for command",s=this.createCommand(o);return s.helpOption(!1),n&&s.arguments(n),i&&s.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=s,this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let o=["preSubcommand","preAction","postAction"];if(!o.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
17
+ Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,o){this._exitCallback&&this._exitCallback(new Wc(t,r,o)),q.exit(t)}action(t){let r=o=>{let n=this.registeredArguments.length,i=o.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new Iv(t,r)}_callParseArg(t,r,o,n){try{return t.parseArg(r,o)}catch(i){if(i.code==="commander.invalidArgument"){let s=`${n} ${i.message}`;this.error(s,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let o=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
18
+ - already used by option '${r.flags}'`)}this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),o=r(t).find(n=>this._findCommand(n));if(o){let n=r(this._findCommand(o)).join("|"),i=r(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),o=t.attributeName();if(t.negate){let i=t.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(o,t.defaultValue,"default");let n=(i,s,c)=>{i==null&&t.presetArg!==void 0&&(i=t.presetArg);let l=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,l,s):i!==null&&t.variadic&&(i=t._concatValue(i,l)),i==null&&(t.negate?i=!1:t.isBoolean()||t.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,c)};return this.on("option:"+r,i=>{let s=`error: option '${t.flags}' argument '${i}' is invalid.`;n(i,s,"cli")}),t.envVar&&this.on("optionEnv:"+r,i=>{let s=`error: option '${t.flags}' value '${i}' from env '${t.envVar}' is invalid.`;n(i,s,"env")}),this}_optionEx(t,r,o,n,i){if(typeof r=="object"&&r instanceof Iv)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,o);if(s.makeOptionMandatory(!!t.mandatory),typeof n=="function")s.default(i).argParser(n);else if(n instanceof RegExp){let c=n;n=(l,u)=>{let p=c.exec(l);return p?p[0]:u},s.default(i).argParser(n)}else s.default(n);return this.addOption(s)}option(t,r,o,n){return this._optionEx({},t,r,o,n)}requiredOption(t,r,o,n){return this._optionEx({mandatory:!0},t,r,o,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,o){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=o,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(t)!==void 0&&(r=o.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){q.versions?.electron&&(r.from="electron");let n=q.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=q.argv),this.rawArgs=t.slice();let o;switch(r.from){case void 0:case"node":this._scriptPath=t[1],o=t.slice(2);break;case"electron":q.defaultApp?(this._scriptPath=t[1],o=t.slice(2)):o=t.slice(1);break;case"user":o=t.slice(0);break;case"eval":o=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return this._parseCommand([],o),this}async parseAsync(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return await this._parseCommand([],o),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,o){if(Zo.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${t}' does not exist
20
20
  - if '${o}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
21
21
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
22
- - ${n}`;throw new Error(i)}_executeSubCommand(t,r){r=r.slice();let o=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function i(p,d){let m=at.resolve(p,d);if(Wo.existsSync(m))return m;if(n.includes(at.extname(d)))return;let h=n.find(g=>Wo.existsSync(`${m}${g}`));if(h)return`${m}${h}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=t._executableFile||`${this._name}-${t._name}`,u=this._executableDir||"";if(this._scriptPath){let p;try{p=Wo.realpathSync(this._scriptPath)}catch{p=this._scriptPath}u=at.resolve(at.dirname(p),u)}if(u){let p=i(u,s);if(!p&&!t._executableFile&&this._scriptPath){let d=at.basename(this._scriptPath,at.extname(this._scriptPath));d!==this._name&&(p=i(u,`${d}-${t._name}`))}s=p||s}o=n.includes(at.extname(s));let l;q.platform!=="win32"?o?(r.unshift(s),r=vv(q.execArgv).concat(r),l=zu.spawn(q.argv[0],r,{stdio:"inherit"})):l=zu.spawn(s,r,{stdio:"inherit"}):(this._checkForMissingExecutable(s,u,t._name),r.unshift(s),r=vv(q.execArgv).concat(r),l=zu.spawn(q.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{q.on(d,()=>{l.killed===!1&&l.exitCode===null&&l.kill(d)})});let c=this._exitCallback;l.on("close",p=>{p=p??1,c?c(new Fu(p,"commander.executeSubCommandAsync","(close)")):q.exit(p)}),l.on("error",p=>{if(p.code==="ENOENT")this._checkForMissingExecutable(s,u,t._name);else if(p.code==="EACCES")throw new Error(`'${s}' not executable`);if(!c)q.exit(1);else{let d=new Fu(1,"commander.executeSubCommandAsync","(error)");d.nestedError=p,c(d)}}),this.runningCommand=l}_dispatchSubcommand(t,r,o){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(o));else return n._parseCommand(r,o)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(o,n,i)=>{let s=n;if(n!==null&&o.parseArg){let u=`error: command-argument value '${n}' is invalid for argument '${o.name()}'.`;s=this._callParseArg(o,n,i,u)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((o,n)=>{let i=o.defaultValue;o.variadic?n<this.args.length?(i=this.args.slice(n),o.parseArg&&(i=i.reduce((s,u)=>t(o,u,s),o.defaultValue))):i===void 0&&(i=[]):n<this.args.length&&(i=this.args[n],o.parseArg&&(i=t(o,i,o.defaultValue))),r[n]=i}),this.processedArgs=r}_chainOrCall(t,r){return t&&t.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let o=t,n=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[r]!==void 0).forEach(i=>{i._lifeCycleHooks[r].forEach(s=>{n.push({hookedCommand:i,callback:s})})}),r==="postAction"&&n.reverse(),n.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(t,r,o){let n=t;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{n=this._chainOrCall(n,()=>i(this,r))}),n}_parseCommand(t,r){let o=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(o.operands),r=o.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(i,t,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(o=>{let n=o.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(o=>o.conflictsWith.length>0).forEach(o=>{let n=t.find(i=>o.conflictsWith.includes(i.attributeName()));n&&this._conflictingOption(o,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],o=[],n=r,i=t.slice();function s(l){return l.length>1&&l[0]==="-"}let u=null;for(;i.length;){let l=i.shift();if(l==="--"){n===o&&n.push(l),n.push(...i);break}if(u&&!s(l)){this.emit(`option:${u.name()}`,l);continue}if(u=null,s(l)){let c=this._findOption(l);if(c){if(c.required){let p=i.shift();p===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,p)}else if(c.optional){let p=null;i.length>0&&!s(i[0])&&(p=i.shift()),this.emit(`option:${c.name()}`,p)}else this.emit(`option:${c.name()}`);u=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),i.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),p=this._findOption(l.slice(0,c));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(c+1));continue}}if(s(l)&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(l)){r.push(l),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l),i.length>0&&r.push(...i);break}else if(this._defaultCommandName){o.push(l),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){n.push(l),i.length>0&&n.push(...i);break}n.push(l)}return{operands:r,unknown:o}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let o=0;o<r;o++){let n=this.options[o].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
22
+ - ${n}`;throw new Error(i)}_executeSubCommand(t,r){r=r.slice();let o=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function i(p,d){let m=ut.resolve(p,d);if(Zo.existsSync(m))return m;if(n.includes(ut.extname(d)))return;let h=n.find(g=>Zo.existsSync(`${m}${g}`));if(h)return`${m}${h}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=t._executableFile||`${this._name}-${t._name}`,c=this._executableDir||"";if(this._scriptPath){let p;try{p=Zo.realpathSync(this._scriptPath)}catch{p=this._scriptPath}c=ut.resolve(ut.dirname(p),c)}if(c){let p=i(c,s);if(!p&&!t._executableFile&&this._scriptPath){let d=ut.basename(this._scriptPath,ut.extname(this._scriptPath));d!==this._name&&(p=i(c,`${d}-${t._name}`))}s=p||s}o=n.includes(ut.extname(s));let l;q.platform!=="win32"?o?(r.unshift(s),r=Pv(q.execArgv).concat(r),l=Uc.spawn(q.argv[0],r,{stdio:"inherit"})):l=Uc.spawn(s,r,{stdio:"inherit"}):(this._checkForMissingExecutable(s,c,t._name),r.unshift(s),r=Pv(q.execArgv).concat(r),l=Uc.spawn(q.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{q.on(d,()=>{l.killed===!1&&l.exitCode===null&&l.kill(d)})});let u=this._exitCallback;l.on("close",p=>{p=p??1,u?u(new Wc(p,"commander.executeSubCommandAsync","(close)")):q.exit(p)}),l.on("error",p=>{if(p.code==="ENOENT")this._checkForMissingExecutable(s,c,t._name);else if(p.code==="EACCES")throw new Error(`'${s}' not executable`);if(!u)q.exit(1);else{let d=new Wc(1,"commander.executeSubCommandAsync","(error)");d.nestedError=p,u(d)}}),this.runningCommand=l}_dispatchSubcommand(t,r,o){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(o));else return n._parseCommand(r,o)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(o,n,i)=>{let s=n;if(n!==null&&o.parseArg){let c=`error: command-argument value '${n}' is invalid for argument '${o.name()}'.`;s=this._callParseArg(o,n,i,c)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((o,n)=>{let i=o.defaultValue;o.variadic?n<this.args.length?(i=this.args.slice(n),o.parseArg&&(i=i.reduce((s,c)=>t(o,c,s),o.defaultValue))):i===void 0&&(i=[]):n<this.args.length&&(i=this.args[n],o.parseArg&&(i=t(o,i,o.defaultValue))),r[n]=i}),this.processedArgs=r}_chainOrCall(t,r){return t&&t.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let o=t,n=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[r]!==void 0).forEach(i=>{i._lifeCycleHooks[r].forEach(s=>{n.push({hookedCommand:i,callback:s})})}),r==="postAction"&&n.reverse(),n.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(t,r,o){let n=t;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{n=this._chainOrCall(n,()=>i(this,r))}),n}_parseCommand(t,r){let o=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(o.operands),r=o.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(i,t,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(o=>{let n=o.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(o=>o.conflictsWith.length>0).forEach(o=>{let n=t.find(i=>o.conflictsWith.includes(i.attributeName()));n&&this._conflictingOption(o,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],o=[],n=r,i=t.slice();function s(l){return l.length>1&&l[0]==="-"}let c=null;for(;i.length;){let l=i.shift();if(l==="--"){n===o&&n.push(l),n.push(...i);break}if(c&&!s(l)){this.emit(`option:${c.name()}`,l);continue}if(c=null,s(l)){let u=this._findOption(l);if(u){if(u.required){let p=i.shift();p===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,p)}else if(u.optional){let p=null;i.length>0&&!s(i[0])&&(p=i.shift()),this.emit(`option:${u.name()}`,p)}else this.emit(`option:${u.name()}`);c=u.variadic?u:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let u=this._findOption(`-${l[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,l.slice(2)):(this.emit(`option:${u.name()}`),i.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let u=l.indexOf("="),p=this._findOption(l.slice(0,u));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(u+1));continue}}if(s(l)&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(l)){r.push(l),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l),i.length>0&&r.push(...i);break}else if(this._defaultCommandName){o.push(l),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){n.push(l),i.length>0&&n.push(...i);break}n.push(l)}return{operands:r,unknown:o}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let o=0;o<r;o++){let n=this.options[o].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
23
23
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
24
24
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
25
- `),this.outputHelp({error:!0}));let o=r||{},n=o.exitCode||1,i=o.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in q.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,q.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new zk(this.options),r=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&r(o.attributeName())&&t.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,o.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let o=s=>{let u=s.attributeName(),l=this.getOptionValue(u),c=this.options.find(d=>d.negate&&u===d.attributeName()),p=this.options.find(d=>!d.negate&&u===d.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:p||s},n=s=>{let u=o(s),l=u.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${u.envVar}'`:`option '${u.flags}'`},i=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{let s=i.createHelp().visibleOptions(i).filter(u=>u.long).map(u=>u.long);n=n.concat(s),i=i.parent}while(i&&!i._enablePositionalOptions);r=gv(t,n)}let o=`error: unknown option '${t}'${r}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,o=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${o} but got ${t.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(i=>{n.push(i.name()),i.alias()&&n.push(i.alias())}),r=gv(t,n)}let o=`error: unknown command '${t}'${r}`;this.error(o,{code:"commander.unknownCommand"})}version(t,r,o){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",o=o||"output the version number";let n=this.createOption(r,o);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
26
- `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(t);if(o){let n=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(o=>$k(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}nameFromFilename(t){return this._name=at.basename(t,at.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),o=this._getOutputContext(t);r.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let n=r.formatHelp(this,r);return o.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,o,n,i;return r?(o=u=>this._outputConfiguration.writeErr(u),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=u=>this._outputConfiguration.writeOut(u),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:r,write:u=>(n||(u=this._outputConfiguration.stripColor(u)),o(u)),hasColors:n,helpWidth:i}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let o=this._getOutputContext(t),n={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation({error:o.error});if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");o.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(t=t??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(t,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this}help(t){this.outputHelp(t);let r=Number(q.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let o=["beforeAll","before","after","afterAll"];if(!o.includes(t))throw new Error(`Unexpected value for position to addHelpText.
25
+ `),this.outputHelp({error:!0}));let o=r||{},n=o.exitCode||1,i=o.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in q.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,q.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new nR(this.options),r=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&r(o.attributeName())&&t.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,o.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let o=s=>{let c=s.attributeName(),l=this.getOptionValue(c),u=this.options.find(d=>d.negate&&c===d.attributeName()),p=this.options.find(d=>!d.negate&&c===d.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:p||s},n=s=>{let c=o(s),l=c.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${c.envVar}'`:`option '${c.flags}'`},i=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{let s=i.createHelp().visibleOptions(i).filter(c=>c.long).map(c=>c.long);n=n.concat(s),i=i.parent}while(i&&!i._enablePositionalOptions);r=_v(t,n)}let o=`error: unknown option '${t}'${r}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,o=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${o} but got ${t.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(i=>{n.push(i.name()),i.alias()&&n.push(i.alias())}),r=_v(t,n)}let o=`error: unknown command '${t}'${r}`;this.error(o,{code:"commander.unknownCommand"})}version(t,r,o){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",o=o||"output the version number";let n=this.createOption(r,o);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
26
+ `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(t);if(o){let n=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(o=>Yk(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}nameFromFilename(t){return this._name=ut.basename(t,ut.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),o=this._getOutputContext(t);r.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let n=r.formatHelp(this,r);return o.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,o,n,i;return r?(o=c=>this._outputConfiguration.writeErr(c),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=c=>this._outputConfiguration.writeOut(c),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:r,write:c=>(n||(c=this._outputConfiguration.stripColor(c)),o(c)),hasColors:n,helpWidth:i}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let o=this._getOutputContext(t),n={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation({error:o.error});if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");o.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(t=t??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(t,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this}help(t){this.outputHelp(t);let r=Number(q.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let o=["beforeAll","before","after","afterAll"];if(!o.includes(t))throw new Error(`Unexpected value for position to addHelpText.
27
27
  Expecting one of '${o.join("', '")}'`);let n=`${t}Help`;return this.on(n,i=>{let s;typeof r=="function"?s=r({error:i.error,command:i.command}):s=r,s&&i.write(`${s}
28
- `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function vv(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,o="127.0.0.1",n="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?n=i[3]:o=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],o=i[3],n=i[4]),r&&n!=="0"?`${r}=${o}:${parseInt(n)+1}`:t})}function Lu(){if(q.env.NO_COLOR||q.env.FORCE_COLOR==="0"||q.env.FORCE_COLOR==="false")return!1;if(q.env.FORCE_COLOR||q.env.CLICOLOR_FORCE!==void 0)return!0}Nu.Command=Bu;Nu.useColor=Lu});var xv=_(Re=>{var{Argument:Sv}=Vo(),{Command:qu}=yv(),{CommanderError:Fk,InvalidArgumentError:bv}=Tr(),{Help:Bk}=Au(),{Option:Tv}=Mu();Re.program=new qu;Re.createCommand=e=>new qu(e);Re.createOption=(e,t)=>new Tv(e,t);Re.createArgument=(e,t)=>new Sv(e,t);Re.Command=qu;Re.Option=Tv;Re.Argument=Sv;Re.Help=Bk;Re.CommanderError=Fk;Re.InvalidArgumentError=bv;Re.InvalidOptionArgumentError=bv});var ge=_(Pe=>{"use strict";Pe.__esModule=!0;Pe.extend=o_;Pe.indexOf=fM;Pe.escapeExpression=gM;Pe.isEmpty=vM;Pe.createFrame=yM;Pe.blockParams=SM;Pe.appendContextPath=bM;var dM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},pM=/[&<>"'`=]/g,mM=/[&<>"'`=]/;function hM(e){return dM[e]}function o_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var jf=Object.prototype.toString;Pe.toString=jf;var Af=function(t){return typeof t=="function"};Af(/x/)&&(Pe.isFunction=Af=function(e){return typeof e=="function"&&jf.call(e)==="[object Function]"});Pe.isFunction=Af;var i_=Array.isArray||function(e){return e&&typeof e=="object"?jf.call(e)==="[object Array]":!1};Pe.isArray=i_;function fM(e,t){for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function gM(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return mM.test(e)?e.replace(pM,hM):e}function vM(e){return!e&&e!==0?!0:!!(i_(e)&&e.length===0)}function yM(e){var t=o_({},e);return t._parent=e,t}function SM(e,t){return e.path=t,e}function bM(e,t){return(e?e+".":"")+t}});var Oe=_((Es,a_)=>{"use strict";Es.__esModule=!0;var $f=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Of(e,t){var r=t&&t.loc,o=void 0,n=void 0,i=void 0,s=void 0;r&&(o=r.start.line,n=r.end.line,i=r.start.column,s=r.end.column,e+=" - "+o+":"+i);for(var u=Error.prototype.constructor.call(this,e),l=0;l<$f.length;l++)this[$f[l]]=u[$f[l]];Error.captureStackTrace&&Error.captureStackTrace(this,Of);try{r&&(this.lineNumber=o,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=i,this.endColumn=s))}catch{}}Of.prototype=new Error;Es.default=Of;a_.exports=Es.default});var u_=_((Ds,s_)=>{"use strict";Ds.__esModule=!0;var Mf=ge();Ds.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var o=r.inverse,n=r.fn;if(t===!0)return n(this);if(t===!1||t==null)return o(this);if(Mf.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):o(this);if(r.data&&r.ids){var i=Mf.createFrame(r.data);i.contextPath=Mf.appendContextPath(r.data.contextPath,r.name),r={data:i}}return n(t,r)})};s_.exports=Ds.default});var l_=_((Is,c_)=>{"use strict";Is.__esModule=!0;function TM(e){return e&&e.__esModule?e:{default:e}}var bo=ge(),xM=Oe(),EM=TM(xM);Is.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new EM.default("Must pass iterator to #each");var o=r.fn,n=r.inverse,i=0,s="",u=void 0,l=void 0;r.data&&r.ids&&(l=bo.appendContextPath(r.data.contextPath,r.ids[0])+"."),bo.isFunction(t)&&(t=t.call(this)),r.data&&(u=bo.createFrame(r.data));function c(g,y,P){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!P,l&&(u.contextPath=l+g)),s=s+o(t[g],{data:u,blockParams:bo.blockParams([t[g],g],[l+g,null])})}if(t&&typeof t=="object")if(bo.isArray(t))for(var p=t.length;i<p;i++)i in t&&c(i,i,i===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var d=[],m=t[Symbol.iterator](),h=m.next();!h.done;h=m.next())d.push(h.value);t=d;for(var p=t.length;i<p;i++)c(i,i,i===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&c(g,i-1),g=y,i++}),g!==void 0&&c(g,i-1,!0)})();return i===0&&(s=n(this)),s})};c_.exports=Is.default});var p_=_((_s,d_)=>{"use strict";_s.__esModule=!0;function DM(e){return e&&e.__esModule?e:{default:e}}var IM=Oe(),_M=DM(IM);_s.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new _M.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};d_.exports=_s.default});var g_=_((ws,f_)=>{"use strict";ws.__esModule=!0;function wM(e){return e&&e.__esModule?e:{default:e}}var m_=ge(),PM=Oe(),h_=wM(PM);ws.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new h_.default("#if requires exactly one argument");return m_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||m_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new h_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};f_.exports=ws.default});var y_=_((Ps,v_)=>{"use strict";Ps.__esModule=!0;Ps.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)t.push(arguments[o]);var n=1;r.hash.level!=null?n=r.hash.level:r.data&&r.data.level!=null&&(n=r.data.level),t[0]=n,e.log.apply(e,t)})};v_.exports=Ps.default});var b_=_((Cs,S_)=>{"use strict";Cs.__esModule=!0;Cs.default=function(e){e.registerHelper("lookup",function(t,r,o){return t&&o.lookupProperty(t,r)})};S_.exports=Cs.default});var x_=_((ks,T_)=>{"use strict";ks.__esModule=!0;function CM(e){return e&&e.__esModule?e:{default:e}}var To=ge(),kM=Oe(),RM=CM(kM);ks.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new RM.default("#with requires exactly one argument");To.isFunction(t)&&(t=t.call(this));var o=r.fn;if(To.isEmpty(t))return r.inverse(this);var n=r.data;return r.data&&r.ids&&(n=To.createFrame(r.data),n.contextPath=To.appendContextPath(r.data.contextPath,r.ids[0])),o(t,{data:n,blockParams:To.blockParams([t],[n&&n.contextPath])})})};T_.exports=ks.default});var zf=_(Rs=>{"use strict";Rs.__esModule=!0;Rs.registerDefaultHelpers=HM;Rs.moveHelperToHooks=KM;function ln(e){return e&&e.__esModule?e:{default:e}}var AM=u_(),jM=ln(AM),$M=l_(),OM=ln($M),MM=p_(),zM=ln(MM),FM=g_(),BM=ln(FM),LM=y_(),NM=ln(LM),qM=b_(),UM=ln(qM),VM=x_(),WM=ln(VM);function HM(e){jM.default(e),OM.default(e),zM.default(e),BM.default(e),NM.default(e),UM.default(e),WM.default(e)}function KM(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var D_=_((As,E_)=>{"use strict";As.__esModule=!0;var ZM=ge();As.default=function(e){e.registerDecorator("inline",function(t,r,o,n){var i=t;return r.partials||(r.partials={},i=function(s,u){var l=o.partials;o.partials=ZM.extend({},l,r.partials);var c=t(s,u);return o.partials=l,c}),r.partials[n.args[0]]=n.fn,i})};E_.exports=As.default});var I_=_(Ff=>{"use strict";Ff.__esModule=!0;Ff.registerDefaultDecorators=XM;function GM(e){return e&&e.__esModule?e:{default:e}}var QM=D_(),JM=GM(QM);function XM(e){JM.default(e)}});var Bf=_((js,__)=>{"use strict";js.__esModule=!0;var YM=ge(),ir={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=YM.indexOf(ir.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=ir.lookupLevel(t),typeof console<"u"&&ir.lookupLevel(ir.level)<=t){var r=ir.methodMap[t];console[r]||(r="log");for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];console[r].apply(console,n)}}};js.default=ir;__.exports=js.default});var w_=_(Lf=>{"use strict";Lf.__esModule=!0;Lf.createNewLookupObject=tz;var ez=ge();function tz(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ez.extend.apply(void 0,[Object.create(null)].concat(t))}});var Nf=_(xo=>{"use strict";xo.__esModule=!0;xo.createProtoAccessControl=iz;xo.resultIsAllowed=az;xo.resetLoggedProperties=uz;function nz(e){return e&&e.__esModule?e:{default:e}}var P_=w_(),rz=Bf(),oz=nz(rz),$s=Object.create(null);function iz(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:P_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:P_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function az(e,t,r){return C_(typeof e=="function"?t.methods:t.properties,r)}function C_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(sz(t),!1)}function sz(e){$s[e]!==!0&&($s[e]=!0,oz.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
28
+ `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Pv(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,o="127.0.0.1",n="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?n=i[3]:o=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],o=i[3],n=i[4]),r&&n!=="0"?`${r}=${o}:${parseInt(n)+1}`:t})}function Hc(){if(q.env.NO_COLOR||q.env.FORCE_COLOR==="0"||q.env.FORCE_COLOR==="false")return!1;if(q.env.FORCE_COLOR||q.env.CLICOLOR_FORCE!==void 0)return!0}Kc.Command=Vc;Kc.useColor=Hc});var Av=P($e=>{var{Argument:Cv}=Ko(),{Command:Zc}=wv(),{CommanderError:rR,InvalidArgumentError:kv}=Er(),{Help:oR}=Bc(),{Option:Rv}=qc();$e.program=new Zc;$e.createCommand=e=>new Zc(e);$e.createOption=(e,t)=>new Rv(e,t);$e.createArgument=(e,t)=>new Cv(e,t);$e.Command=Zc;$e.Option=Rv;$e.Argument=Cv;$e.Help=oR;$e.CommanderError=rR;$e.InvalidArgumentError=kv;$e.InvalidOptionArgumentError=kv});var ws=P((w7,S_)=>{var qf=[],y_=0,de=(e,t)=>{y_>=t&&qf.push(e)};de.WARN=1;de.INFO=2;de.DEBUG=3;de.reset=()=>{qf=[]};de.setDebugLevel=e=>{y_=e};de.warn=e=>de(e,de.WARN);de.info=e=>de(e,de.INFO);de.debug=e=>de(e,de.DEBUG);de.debugMessages=()=>qf;S_.exports=de});var T_=P((C7,b_)=>{"use strict";b_.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var E_=P((k7,x_)=>{"use strict";var q2=T_();x_.exports=e=>typeof e=="string"?e.replace(q2(),""):e});var I_=P((R7,Uf)=>{"use strict";var D_=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);Uf.exports=D_;Uf.exports.default=D_});var P_=P((A7,__)=>{"use strict";__.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var C_=P((j7,Wf)=>{"use strict";var U2=E_(),W2=I_(),V2=P_(),w_=e=>{if(typeof e!="string"||e.length===0||(e=U2(e),e.length===0))return 0;e=e.replace(V2()," ");let t=0;for(let r=0;r<e.length;r++){let o=e.codePointAt(r);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&r++,t+=W2(o)?2:1)}return t};Wf.exports=w_;Wf.exports.default=w_});var Vf=P(($7,j_)=>{var k_=C_();function Cs(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function rt(e){let t=Cs();return(""+e).replace(t,"").split(`
29
+ `).reduce(function(n,i){return k_(i)>n?k_(i):n},0)}function Eo(e,t){return Array(t+1).join(e)}function H2(e,t,r,o){let n=rt(e);if(t+1>=n){let i=t-n;switch(o){case"right":{e=Eo(r,i)+e;break}case"center":{let s=Math.ceil(i/2),c=i-s;e=Eo(r,c)+e+Eo(r,s);break}default:{e=e+Eo(r,i);break}}}return e}var sr={};function Do(e,t,r){t="\x1B["+t+"m",r="\x1B["+r+"m",sr[t]={set:e,to:!0},sr[r]={set:e,to:!1},sr[e]={on:t,off:r}}Do("bold",1,22);Do("italics",3,23);Do("underline",4,24);Do("inverse",7,27);Do("strikethrough",9,29);function R_(e,t){let r=t[1]?parseInt(t[1].split(";")[0]):0;if(r>=30&&r<=39||r>=90&&r<=97){e.lastForegroundAdded=t[0];return}if(r>=40&&r<=49||r>=100&&r<=107){e.lastBackgroundAdded=t[0];return}if(r===0){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];return}let o=sr[t[0]];o&&(e[o.set]=o.to)}function K2(e){let t=Cs(!0),r=t.exec(e),o={};for(;r!==null;)R_(o,r),r=t.exec(e);return o}function A_(e,t){let r=e.lastBackgroundAdded,o=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t+=sr[n].off)}),r&&r!="\x1B[49m"&&(t+="\x1B[49m"),o&&o!="\x1B[39m"&&(t+="\x1B[39m"),t}function Z2(e,t){let r=e.lastBackgroundAdded,o=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t=sr[n].on+t)}),r&&r!="\x1B[49m"&&(t=r+t),o&&o!="\x1B[39m"&&(t=o+t),t}function G2(e,t){if(e.length===rt(e))return e.substr(0,t);for(;rt(e)>t;)e=e.slice(0,-1);return e}function Q2(e,t){let r=Cs(!0),o=e.split(Cs()),n=0,i=0,s="",c,l={};for(;i<t;){c=r.exec(e);let u=o[n];if(n++,i+rt(u)>t&&(u=G2(u,t-i)),s+=u,i+=rt(u),i<t){if(!c)break;s+=c[0],R_(l,c)}}return A_(l,s)}function J2(e,t,r){if(r=r||"\u2026",rt(e)<=t)return e;t-=rt(r);let n=Q2(e,t);n+=r;let i="\x1B]8;;\x07";return e.includes(i)&&!n.includes(i)&&(n+=i),n}function X2(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function Y2(e,t){e=e||{},t=t||X2();let r=Object.assign({},t,e);return r.chars=Object.assign({},t.chars,e.chars),r.style=Object.assign({},t.style,e.style),r}function ez(e,t){let r=[],o=t.split(/(\s+)/g),n=[],i=0,s;for(let c=0;c<o.length;c+=2){let l=o[c],u=i+rt(l);i>0&&s&&(u+=s.length),u>e?(i!==0&&r.push(n.join("")),n=[l],i=rt(l)):(n.push(s||"",l),i=u),s=o[c+1]}return i&&r.push(n.join("")),r}function tz(e,t){let r=[],o="";function n(s,c){for(o.length&&c&&(o+=c),o+=s;o.length>e;)r.push(o.slice(0,e)),o=o.slice(e)}let i=t.split(/(\s+)/g);for(let s=0;s<i.length;s+=2)n(i[s],s&&i[s-1]);return o.length&&r.push(o),r}function nz(e,t,r=!0){let o=[];t=t.split(`
30
+ `);let n=r?ez:tz;for(let i=0;i<t.length;i++)o.push.apply(o,n(e,t[i]));return o}function rz(e){let t={},r=[];for(let o=0;o<e.length;o++){let n=Z2(t,e[o]);t=K2(n);let i=Object.assign({},t);r.push(A_(i,n))}return r}function oz(e,t){return["\x1B]","8",";",";",e||t,"\x07",t,"\x1B]","8",";",";","\x07"].join("")}j_.exports={strlen:rt,repeat:Eo,pad:H2,truncate:J2,mergeOptions:Y2,wordWrap:nz,colorizeLines:rz,hyperlink:oz}});var z_=P((M7,O_)=>{var M_={};O_.exports=M_;var $_={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys($_).forEach(function(e){var t=$_[e],r=M_[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m"})});var F_=P((O7,B_)=>{"use strict";B_.exports=function(e,t){t=t||process.argv;var r=t.indexOf("--"),o=/^-{1,2}/.test(e)?"":"--",n=t.indexOf(o+e);return n!==-1&&(r===-1?!0:n<r)}});var N_=P((z7,L_)=>{"use strict";var iz=_e("os"),Ve=F_(),ye=process.env,cr=void 0;Ve("no-color")||Ve("no-colors")||Ve("color=false")?cr=!1:(Ve("color")||Ve("colors")||Ve("color=true")||Ve("color=always"))&&(cr=!0);"FORCE_COLOR"in ye&&(cr=ye.FORCE_COLOR.length===0||parseInt(ye.FORCE_COLOR,10)!==0);function az(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function sz(e){if(cr===!1)return 0;if(Ve("color=16m")||Ve("color=full")||Ve("color=truecolor"))return 3;if(Ve("color=256"))return 2;if(e&&!e.isTTY&&cr!==!0)return 0;var t=cr?1:0;if(process.platform==="win32"){var r=iz.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ye)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in ye})||ye.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ye)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ye.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in ye){var o=parseInt((ye.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ye.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ye.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ye.TERM)||"COLORTERM"in ye?1:(ye.TERM==="dumb",t)}function Hf(e){var t=sz(e);return az(t)}L_.exports={supportsColor:Hf,stdout:Hf(process.stdout),stderr:Hf(process.stderr)}});var U_=P((B7,q_)=>{q_.exports=function(t,r){var o="";t=t||"Run the trap, drop the bass",t=t.split("");var n={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(i){i=i.toLowerCase();var s=n[i]||[" "],c=Math.floor(Math.random()*s.length);typeof n[i]<"u"?o+=n[i][c]:o+=i}),o}});var V_=P((F7,W_)=>{W_.exports=function(t,r){t=t||" he is here ";var o={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(o.up,o.down,o.mid);function i(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return n.filter(function(p){u=p===l}),u}function c(l,u){var p="",d,m;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(m in l)if(!s(m)){switch(p=p+l[m],d={up:0,down:0,mid:0},u.size){case"mini":d.up=i(8),d.mid=i(2),d.down=i(8);break;case"maxi":d.up=i(16)+3,d.mid=i(4)+1,d.down=i(64)+3;break;default:d.up=i(8)+1,d.mid=i(6)/2,d.down=i(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var y=h[g],C=0;C<=d[y];C++)u[y]&&(p=p+o[y][i(o[y].length)])}return p}return c(t,r)}});var K_=P((L7,H_)=>{H_.exports=function(e){return function(t,r,o){if(t===" ")return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}});var G_=P((N7,Z_)=>{Z_.exports=function(e){return function(t,r,o){return r%2===0?t:e.inverse(t)}}});var J_=P((q7,Q_)=>{Q_.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,o,n){return r===" "?r:e[t[o++%t.length]](r)}}});var Y_=P((U7,X_)=>{X_.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,o,n){return r===" "?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}});var iP=P((V7,oP)=>{var L={};oP.exports=L;L.themes={};var cz=_e("util"),hn=L.styles=z_(),tP=Object.defineProperties,uz=new RegExp(/[\r\n]+/g);L.supportsColor=N_().supportsColor;typeof L.enabled>"u"&&(L.enabled=L.supportsColor()!==!1);L.enable=function(){L.enabled=!0};L.disable=function(){L.enabled=!1};L.stripColors=L.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};var W7=L.stylize=function(t,r){if(!L.enabled)return t+"";var o=hn[r];return!o&&r in L?L[r](t):o.open+t+o.close},lz=/[|\\{}()[\]^$+*?.]/g,dz=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(lz,"\\$&")};function nP(e){var t=function r(){return mz.apply(r,arguments)};return t._styles=e,t.__proto__=pz,t}var rP=(function(){var e={};return hn.grey=hn.gray,Object.keys(hn).forEach(function(t){hn[t].closeRe=new RegExp(dz(hn[t].close),"g"),e[t]={get:function(){return nP(this._styles.concat(t))}}}),e})(),pz=tP(function(){},rP);function mz(){var e=Array.prototype.slice.call(arguments),t=e.map(function(s){return s!=null&&s.constructor===String?s:cz.inspect(s)}).join(" ");if(!L.enabled||!t)return t;for(var r=t.indexOf(`
31
+ `)!=-1,o=this._styles,n=o.length;n--;){var i=hn[o[n]];t=i.open+t.replace(i.closeRe,i.open)+i.close,r&&(t=t.replace(uz,function(s){return i.close+s+i.open}))}return t}L.setTheme=function(e){if(typeof e=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)(function(r){L[r]=function(o){if(typeof e[r]=="object"){var n=o;for(var i in e[r])n=L[e[r][i]](n);return n}return L[e[r]](o)}})(t)};function hz(){var e={};return Object.keys(rP).forEach(function(t){e[t]={get:function(){return nP([t])}}}),e}var fz=function(t,r){var o=r.split("");return o=o.map(t),o.join("")};L.trap=U_();L.zalgo=V_();L.maps={};L.maps.america=K_()(L);L.maps.zebra=G_()(L);L.maps.rainbow=J_()(L);L.maps.random=Y_()(L);for(eP in L.maps)(function(e){L[e]=function(t){return fz(L.maps[e],t)}})(eP);var eP;tP(L,hz())});var sP=P((H7,aP)=>{var gz=iP();aP.exports=gz});var dP=P((K7,ks)=>{var{info:vz,debug:lP}=ws(),ke=Vf(),Zf=class e{constructor(t){this.setOptions(t),this.x=null,this.y=null}setOptions(t){["boolean","number","bigint","string"].indexOf(typeof t)!==-1&&(t={content:""+t}),t=t||{},this.options=t;let r=t.content;if(["boolean","number","bigint","string"].indexOf(typeof r)!==-1)this.content=String(r);else if(!r)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof r);this.colSpan=t.colSpan||1,this.rowSpan=t.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(t,r){this.cells=r;let o=this.options.chars||{},n=t.chars,i=this.chars={};Sz.forEach(function(l){Kf(o,n,l,i)}),this.truncate=this.options.truncate||t.truncate;let s=this.options.style=this.options.style||{},c=t.style;Kf(s,c,"padding-left",this),Kf(s,c,"padding-right",this),this.head=s.head||c.head,this.border=s.border||c.border,this.fixedWidth=t.colWidths[this.x],this.lines=this.computeLines(t),this.desiredWidth=ke.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(t){let r=t.wordWrap||t.textWrap,{wordWrap:o=r}=this.options;if(this.fixedWidth&&o){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let s=1;for(;s<this.colSpan;)this.fixedWidth+=t.colWidths[this.x+s],s++}let{wrapOnWordBoundary:n=!0}=t,{wrapOnWordBoundary:i=n}=this.options;return this.wrapLines(ke.wordWrap(this.fixedWidth,this.content,i))}return this.wrapLines(this.content.split(`
32
+ `))}wrapLines(t){let r=ke.colorizeLines(t);return this.href?r.map(o=>ke.hyperlink(this.href,o)):r}init(t){let r=this.x,o=this.y;this.widths=t.colWidths.slice(r,r+this.colSpan),this.heights=t.rowHeights.slice(o,o+this.rowSpan),this.width=this.widths.reduce(uP,-1),this.height=this.heights.reduce(uP,-1),this.hAlign=this.options.hAlign||t.colAligns[r],this.vAlign=this.options.vAlign||t.rowAligns[o],this.drawRight=r+this.colSpan==t.colWidths.length}draw(t,r){if(t=="top")return this.drawTop(this.drawRight);if(t=="bottom")return this.drawBottom(this.drawRight);let o=ke.truncate(this.content,10,this.truncate);t||vz(`${this.y}-${this.x}: ${this.rowSpan-t}x${this.colSpan} Cell ${o}`);let n=Math.max(this.height-this.lines.length,0),i;switch(this.vAlign){case"center":i=Math.ceil(n/2);break;case"bottom":i=n;break;default:i=0}if(t<i||t>=i+this.lines.length)return this.drawEmpty(this.drawRight,r);let s=this.lines.length>this.height&&t+1>=this.height;return this.drawLine(t-i,this.drawRight,s,r)}drawTop(t){let r=[];return this.cells?this.widths.forEach(function(o,n){r.push(this._topLeftChar(n)),r.push(ke.repeat(this.chars[this.y==0?"top":"mid"],o))},this):(r.push(this._topLeftChar(0)),r.push(ke.repeat(this.chars[this.y==0?"top":"mid"],this.width))),t&&r.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",r.join(""))}_topLeftChar(t){let r=this.x+t,o;if(this.y==0)o=r==0?"topLeft":t==0?"topMid":"top";else if(r==0)o="leftMid";else if(o=t==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][r]instanceof e.ColSpanCell&&(o=t==0?"topMid":"mid"),t==0)){let i=1;for(;this.cells[this.y][r-i]instanceof e.ColSpanCell;)i++;this.cells[this.y][r-i]instanceof e.RowSpanCell&&(o="leftMid")}return this.chars[o]}wrapWithStyleColors(t,r){if(this[t]&&this[t].length)try{let o=sP();for(let n=this[t].length-1;n>=0;n--)o=o[this[t][n]];return o(r)}catch{return r}else return r}drawLine(t,r,o,n){let i=this.chars[this.x==0?"left":"middle"];if(this.x&&n&&this.cells){let m=this.cells[this.y+n][this.x-1];for(;m instanceof Io;)m=this.cells[m.y][m.x-1];m instanceof _o||(i=this.chars.rightMid)}let s=ke.repeat(" ",this.paddingLeft),c=r?this.chars.right:"",l=ke.repeat(" ",this.paddingRight),u=this.lines[t],p=this.width-(this.paddingLeft+this.paddingRight);o&&(u+=this.truncate||"\u2026");let d=ke.truncate(u,p,this.truncate);return d=ke.pad(d,p," ",this.hAlign),d=s+d+l,this.stylizeLine(i,d,c)}stylizeLine(t,r,o){return t=this.wrapWithStyleColors("border",t),o=this.wrapWithStyleColors("border",o),this.y===0&&(r=this.wrapWithStyleColors("head",r)),t+r+o}drawBottom(t){let r=this.chars[this.x==0?"bottomLeft":"bottomMid"],o=ke.repeat(this.chars.bottom,this.width),n=t?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",r+o+n)}drawEmpty(t,r){let o=this.chars[this.x==0?"left":"middle"];if(this.x&&r&&this.cells){let s=this.cells[this.y+r][this.x-1];for(;s instanceof Io;)s=this.cells[s.y][s.x-1];s instanceof _o||(o=this.chars.rightMid)}let n=t?this.chars.right:"",i=ke.repeat(" ",this.width);return this.stylizeLine(o,i,n)}},Io=class{constructor(){}draw(t){return typeof t=="number"&&lP(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},_o=class{constructor(t){this.originalCell=t}init(t){let r=this.y,o=this.originalCell.y;this.cellOffset=r-o,this.offset=yz(t.rowHeights,o,this.cellOffset)}draw(t){return t=="top"?this.originalCell.draw(this.offset,this.cellOffset):t=="bottom"?this.originalCell.draw("bottom"):(lP(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+t))}mergeTableOptions(){}};function cP(...e){return e.filter(t=>t!=null).shift()}function Kf(e,t,r,o){let n=r.split("-");n.length>1?(n[1]=n[1].charAt(0).toUpperCase()+n[1].substr(1),n=n.join(""),o[n]=cP(e[n],e[r],t[n],t[r])):o[r]=cP(e[r],t[r])}function yz(e,t,r){let o=e[t];for(let n=1;n<r;n++)o+=1+e[t+n];return o}function uP(e,t){return e+t+1}var Sz=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];ks.exports=Zf;ks.exports.ColSpanCell=Io;ks.exports.RowSpanCell=_o});var hP=P((Z7,mP)=>{var{warn:bz,debug:Tz}=ws(),Gf=dP(),{ColSpanCell:xz,RowSpanCell:Ez}=Gf;(function(){function e(h,g){return h[g]>0?e(h,g+1):g}function t(h){let g={};h.forEach(function(y,C){let D=0;y.forEach(function(j){j.y=C,j.x=C?e(g,D):D;let N=j.rowSpan||1,M=j.colSpan||1;if(N>1)for(let Q=0;Q<M;Q++)g[j.x+Q]=N;D=j.x+M}),Object.keys(g).forEach(j=>{g[j]--,g[j]<1&&delete g[j]})})}function r(h){let g=0;return h.forEach(function(y){y.forEach(function(C){g=Math.max(g,C.x+(C.colSpan||1))})}),g}function o(h){return h.length}function n(h,g){let y=h.y,C=h.y-1+(h.rowSpan||1),D=g.y,j=g.y-1+(g.rowSpan||1),N=!(y>j||D>C),M=h.x,Q=h.x-1+(h.colSpan||1),Ke=g.x,ce=g.x-1+(g.colSpan||1),Sv=!(M>ce||Ke>Q);return N&&Sv}function i(h,g,y){let C=Math.min(h.length-1,y),D={x:g,y};for(let j=0;j<=C;j++){let N=h[j];for(let M=0;M<N.length;M++)if(n(D,N[M]))return!0}return!1}function s(h,g,y,C){for(let D=y;D<C;D++)if(i(h,D,g))return!1;return!0}function c(h){h.forEach(function(g,y){g.forEach(function(C){for(let D=1;D<C.rowSpan;D++){let j=new Ez(C);j.x=C.x,j.y=C.y+D,j.colSpan=C.colSpan,u(j,h[y+D])}})})}function l(h){for(let g=h.length-1;g>=0;g--){let y=h[g];for(let C=0;C<y.length;C++){let D=y[C];for(let j=1;j<D.colSpan;j++){let N=new xz;N.x=D.x+j,N.y=D.y,y.splice(C+1,0,N)}}}}function u(h,g){let y=0;for(;y<g.length&&g[y].x<h.x;)y++;g.splice(y,0,h)}function p(h){let g=o(h),y=r(h);Tz(`Max rows: ${g}; Max cols: ${y}`);for(let C=0;C<g;C++)for(let D=0;D<y;D++)if(!i(h,D,C)){let j={x:D,y:C,colSpan:1,rowSpan:1};for(D++;D<y&&!i(h,D,C);)j.colSpan++,D++;let N=C+1;for(;N<g&&s(h,N,j.x,j.x+j.colSpan);)j.rowSpan++,N++;let M=new Gf(j);M.x=j.x,M.y=j.y,bz(`Missing cell at ${M.y}-${M.x}.`),u(M,h[C])}}function d(h){return h.map(function(g){if(!Array.isArray(g)){let y=Object.keys(g)[0];g=g[y],Array.isArray(g)?(g=g.slice(),g.unshift(y)):g=[y,g]}return g.map(function(y){return new Gf(y)})})}function m(h){let g=d(h);return t(g),p(g),c(g),l(g),g}mP.exports={makeTableLayout:m,layoutTable:t,addRowSpanCells:c,maxWidth:r,fillInTable:p,computeWidths:pP("colSpan","desiredWidth","x",1),computeHeights:pP("rowSpan","desiredHeight","y",1)}})();function pP(e,t,r,o){return function(n,i){let s=[],c=[],l={};i.forEach(function(u){u.forEach(function(p){(p[e]||1)>1?c.push(p):s[p[r]]=Math.max(s[p[r]]||0,p[t]||0,o)})}),n.forEach(function(u,p){typeof u=="number"&&(s[p]=u)});for(let u=c.length-1;u>=0;u--){let p=c[u],d=p[e],m=p[r],h=s[m],g=typeof n[m]=="number"?0:1;if(typeof h=="number")for(let y=1;y<d;y++)h+=1+s[m+y],typeof n[m+y]!="number"&&g++;else h=t==="desiredWidth"?p.desiredWidth-1:1,(!l[m]||l[m]<h)&&(l[m]=h);if(p[t]>h){let y=0;for(;g>0&&p[t]>h;){if(typeof n[m+y]!="number"){let C=Math.round((p[t]-h)/g);h+=C,s[m+y]+=C,g--}y++}}}Object.assign(n,s,l);for(let u=0;u<n.length;u++)n[u]=Math.max(o,n[u]||0)}}});var gP=P((G7,fP)=>{var xt=ws(),Dz=Vf(),Qf=hP(),Rs=class extends Array{constructor(t){super();let r=Dz.mergeOptions(t);if(Object.defineProperty(this,"options",{value:r,enumerable:r.debug}),r.debug){switch(typeof r.debug){case"boolean":xt.setDebugLevel(xt.WARN);break;case"number":xt.setDebugLevel(r.debug);break;case"string":xt.setDebugLevel(parseInt(r.debug,10));break;default:xt.setDebugLevel(xt.WARN),xt.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof r.debug}`)}Object.defineProperty(this,"messages",{get(){return xt.debugMessages()}})}}toString(){let t=this,r=this.options.head&&this.options.head.length;r?(t=[this.options.head],this.length&&t.push.apply(t,this)):this.options.style.head=[];let o=Qf.makeTableLayout(t);o.forEach(function(i){i.forEach(function(s){s.mergeTableOptions(this.options,o)},this)},this),Qf.computeWidths(this.options.colWidths,o),Qf.computeHeights(this.options.rowHeights,o),o.forEach(function(i){i.forEach(function(s){s.init(this.options)},this)},this);let n=[];for(let i=0;i<o.length;i++){let s=o[i],c=this.options.rowHeights[i];(i===0||!this.options.style.compact||i==1&&r)&&Jf(s,"top",n);for(let l=0;l<c;l++)Jf(s,l,n);i+1==o.length&&Jf(s,"bottom",n)}return n.join(`
33
+ `)}get width(){return this.toString().split(`
34
+ `)[0].length}};Rs.reset=()=>xt.reset();function Jf(e,t,r){let o=[];e.forEach(function(i){o.push(i.draw(t))});let n=o.join("");n.length&&r.push(n)}fP.exports=Rs});var yP=P((Q7,vP)=>{vP.exports=gP()});var Se=P(Re=>{"use strict";Re.__esModule=!0;Re.extend=EP;Re.indexOf=Oz;Re.escapeExpression=zz;Re.isEmpty=Bz;Re.createFrame=Fz;Re.blockParams=Lz;Re.appendContextPath=Nz;var Az={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},jz=/[&<>"'`=]/g,$z=/[&<>"'`=]/;function Mz(e){return Az[e]}function EP(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var Yf=Object.prototype.toString;Re.toString=Yf;var Xf=function(t){return typeof t=="function"};Xf(/x/)&&(Re.isFunction=Xf=function(e){return typeof e=="function"&&Yf.call(e)==="[object Function]"});Re.isFunction=Xf;var DP=Array.isArray||function(e){return e&&typeof e=="object"?Yf.call(e)==="[object Array]":!1};Re.isArray=DP;function Oz(e,t){for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function zz(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return $z.test(e)?e.replace(jz,Mz):e}function Bz(e){return!e&&e!==0?!0:!!(DP(e)&&e.length===0)}function Fz(e){var t=EP({},e);return t._parent=e,t}function Lz(e,t){return e.path=t,e}function Nz(e,t){return(e?e+".":"")+t}});var Le=P((js,IP)=>{"use strict";js.__esModule=!0;var eg=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function tg(e,t){var r=t&&t.loc,o=void 0,n=void 0,i=void 0,s=void 0;r&&(o=r.start.line,n=r.end.line,i=r.start.column,s=r.end.column,e+=" - "+o+":"+i);for(var c=Error.prototype.constructor.call(this,e),l=0;l<eg.length;l++)this[eg[l]]=c[eg[l]];Error.captureStackTrace&&Error.captureStackTrace(this,tg);try{r&&(this.lineNumber=o,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=i,this.endColumn=s))}catch{}}tg.prototype=new Error;js.default=tg;IP.exports=js.default});var PP=P(($s,_P)=>{"use strict";$s.__esModule=!0;var ng=Se();$s.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var o=r.inverse,n=r.fn;if(t===!0)return n(this);if(t===!1||t==null)return o(this);if(ng.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):o(this);if(r.data&&r.ids){var i=ng.createFrame(r.data);i.contextPath=ng.appendContextPath(r.data.contextPath,r.name),r={data:i}}return n(t,r)})};_P.exports=$s.default});var CP=P((Ms,wP)=>{"use strict";Ms.__esModule=!0;function qz(e){return e&&e.__esModule?e:{default:e}}var Po=Se(),Uz=Le(),Wz=qz(Uz);Ms.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new Wz.default("Must pass iterator to #each");var o=r.fn,n=r.inverse,i=0,s="",c=void 0,l=void 0;r.data&&r.ids&&(l=Po.appendContextPath(r.data.contextPath,r.ids[0])+"."),Po.isFunction(t)&&(t=t.call(this)),r.data&&(c=Po.createFrame(r.data));function u(g,y,C){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!C,l&&(c.contextPath=l+g)),s=s+o(t[g],{data:c,blockParams:Po.blockParams([t[g],g],[l+g,null])})}if(t&&typeof t=="object")if(Po.isArray(t))for(var p=t.length;i<p;i++)i in t&&u(i,i,i===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var d=[],m=t[Symbol.iterator](),h=m.next();!h.done;h=m.next())d.push(h.value);t=d;for(var p=t.length;i<p;i++)u(i,i,i===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&u(g,i-1),g=y,i++}),g!==void 0&&u(g,i-1,!0)})();return i===0&&(s=n(this)),s})};wP.exports=Ms.default});var RP=P((Os,kP)=>{"use strict";Os.__esModule=!0;function Vz(e){return e&&e.__esModule?e:{default:e}}var Hz=Le(),Kz=Vz(Hz);Os.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Kz.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};kP.exports=Os.default});var MP=P((zs,$P)=>{"use strict";zs.__esModule=!0;function Zz(e){return e&&e.__esModule?e:{default:e}}var AP=Se(),Gz=Le(),jP=Zz(Gz);zs.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new jP.default("#if requires exactly one argument");return AP.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||AP.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new jP.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};$P.exports=zs.default});var zP=P((Bs,OP)=>{"use strict";Bs.__esModule=!0;Bs.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)t.push(arguments[o]);var n=1;r.hash.level!=null?n=r.hash.level:r.data&&r.data.level!=null&&(n=r.data.level),t[0]=n,e.log.apply(e,t)})};OP.exports=Bs.default});var FP=P((Fs,BP)=>{"use strict";Fs.__esModule=!0;Fs.default=function(e){e.registerHelper("lookup",function(t,r,o){return t&&o.lookupProperty(t,r)})};BP.exports=Fs.default});var NP=P((Ls,LP)=>{"use strict";Ls.__esModule=!0;function Qz(e){return e&&e.__esModule?e:{default:e}}var wo=Se(),Jz=Le(),Xz=Qz(Jz);Ls.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Xz.default("#with requires exactly one argument");wo.isFunction(t)&&(t=t.call(this));var o=r.fn;if(wo.isEmpty(t))return r.inverse(this);var n=r.data;return r.data&&r.ids&&(n=wo.createFrame(r.data),n.contextPath=wo.appendContextPath(r.data.contextPath,r.ids[0])),o(t,{data:n,blockParams:wo.blockParams([t],[n&&n.contextPath])})})};LP.exports=Ls.default});var rg=P(Ns=>{"use strict";Ns.__esModule=!0;Ns.registerDefaultHelpers=mB;Ns.moveHelperToHooks=hB;function fn(e){return e&&e.__esModule?e:{default:e}}var Yz=PP(),eB=fn(Yz),tB=CP(),nB=fn(tB),rB=RP(),oB=fn(rB),iB=MP(),aB=fn(iB),sB=zP(),cB=fn(sB),uB=FP(),lB=fn(uB),dB=NP(),pB=fn(dB);function mB(e){eB.default(e),nB.default(e),oB.default(e),aB.default(e),cB.default(e),lB.default(e),pB.default(e)}function hB(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var UP=P((qs,qP)=>{"use strict";qs.__esModule=!0;var fB=Se();qs.default=function(e){e.registerDecorator("inline",function(t,r,o,n){var i=t;return r.partials||(r.partials={},i=function(s,c){var l=o.partials;o.partials=fB.extend({},l,r.partials);var u=t(s,c);return o.partials=l,u}),r.partials[n.args[0]]=n.fn,i})};qP.exports=qs.default});var WP=P(og=>{"use strict";og.__esModule=!0;og.registerDefaultDecorators=SB;function gB(e){return e&&e.__esModule?e:{default:e}}var vB=UP(),yB=gB(vB);function SB(e){yB.default(e)}});var ig=P((Us,VP)=>{"use strict";Us.__esModule=!0;var bB=Se(),ur={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=bB.indexOf(ur.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=ur.lookupLevel(t),typeof console<"u"&&ur.lookupLevel(ur.level)<=t){var r=ur.methodMap[t];console[r]||(r="log");for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];console[r].apply(console,n)}}};Us.default=ur;VP.exports=Us.default});var HP=P(ag=>{"use strict";ag.__esModule=!0;ag.createNewLookupObject=xB;var TB=Se();function xB(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return TB.extend.apply(void 0,[Object.create(null)].concat(t))}});var sg=P(Co=>{"use strict";Co.__esModule=!0;Co.createProtoAccessControl=_B;Co.resultIsAllowed=PB;Co.resetLoggedProperties=CB;function EB(e){return e&&e.__esModule?e:{default:e}}var KP=HP(),DB=ig(),IB=EB(DB),Ws=Object.create(null);function _B(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:KP.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:KP.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function PB(e,t,r){return ZP(typeof e=="function"?t.methods:t.properties,r)}function ZP(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(wB(t),!1)}function wB(e){Ws[e]!==!0&&(Ws[e]=!0,IB.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
29
35
  You can add a runtime option to disable the check or this warning:
30
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function uz(){Object.keys($s).forEach(function(e){delete $s[e]})}});var Ms=_(et=>{"use strict";et.__esModule=!0;et.HandlebarsEnvironment=Vf;function k_(e){return e&&e.__esModule?e:{default:e}}var dn=ge(),cz=Oe(),qf=k_(cz),lz=zf(),dz=I_(),pz=Bf(),Os=k_(pz),mz=Nf(),hz="4.7.8";et.VERSION=hz;var fz=8;et.COMPILER_REVISION=fz;var gz=7;et.LAST_COMPATIBLE_COMPILER_REVISION=gz;var vz={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};et.REVISION_CHANGES=vz;var Uf="[object Object]";function Vf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},lz.registerDefaultHelpers(this),dz.registerDefaultDecorators(this)}Vf.prototype={constructor:Vf,logger:Os.default,log:Os.default.log,registerHelper:function(t,r){if(dn.toString.call(t)===Uf){if(r)throw new qf.default("Arg not supported with multiple helpers");dn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(dn.toString.call(t)===Uf)dn.extend(this.partials,t);else{if(typeof r>"u")throw new qf.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,r){if(dn.toString.call(t)===Uf){if(r)throw new qf.default("Arg not supported with multiple decorators");dn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){mz.resetLoggedProperties()}};var yz=Os.default.log;et.log=yz;et.createFrame=dn.createFrame;et.logger=Os.default});var A_=_((zs,R_)=>{"use strict";zs.__esModule=!0;function Wf(e){this.string=e}Wf.prototype.toString=Wf.prototype.toHTML=function(){return""+this.string};zs.default=Wf;R_.exports=zs.default});var j_=_(Hf=>{"use strict";Hf.__esModule=!0;Hf.wrapHelper=Sz;function Sz(e,t){if(typeof e!="function")return e;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)};return r}});var F_=_(Bt=>{"use strict";Bt.__esModule=!0;Bt.checkRevision=Iz;Bt.template=_z;Bt.wrapProgram=Fs;Bt.resolvePartial=wz;Bt.invokePartial=Pz;Bt.noop=M_;function bz(e){return e&&e.__esModule?e:{default:e}}function Tz(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var xz=ge(),yt=Tz(xz),Ez=Oe(),St=bz(Ez),bt=Ms(),$_=zf(),Dz=j_(),O_=Nf();function Iz(e){var t=e&&e[0]||1,r=bt.COMPILER_REVISION;if(!(t>=bt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=bt.COMPILER_REVISION))if(t<bt.LAST_COMPATIBLE_COMPILER_REVISION){var o=bt.REVISION_CHANGES[r],n=bt.REVISION_CHANGES[t];throw new St.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+n+").")}else throw new St.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function _z(e,t){if(!t)throw new St.default("No environment passed to template");if(!e||!e.main)throw new St.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function o(s,u,l){l.hash&&(u=yt.extend({},u,l.hash),l.ids&&(l.ids[0]=!0)),s=t.VM.resolvePartial.call(this,s,u,l);var c=yt.extend({},l,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,s,u,c);if(p==null&&t.compile&&(l.partials[l.name]=t.compile(s,e.compilerOptions,t),p=l.partials[l.name](u,c)),p!=null){if(l.indent){for(var d=p.split(`
36
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function CB(){Object.keys(Ws).forEach(function(e){delete Ws[e]})}});var Hs=P(ot=>{"use strict";ot.__esModule=!0;ot.HandlebarsEnvironment=lg;function GP(e){return e&&e.__esModule?e:{default:e}}var gn=Se(),kB=Le(),cg=GP(kB),RB=rg(),AB=WP(),jB=ig(),Vs=GP(jB),$B=sg(),MB="4.7.8";ot.VERSION=MB;var OB=8;ot.COMPILER_REVISION=OB;var zB=7;ot.LAST_COMPATIBLE_COMPILER_REVISION=zB;var BB={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};ot.REVISION_CHANGES=BB;var ug="[object Object]";function lg(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},RB.registerDefaultHelpers(this),AB.registerDefaultDecorators(this)}lg.prototype={constructor:lg,logger:Vs.default,log:Vs.default.log,registerHelper:function(t,r){if(gn.toString.call(t)===ug){if(r)throw new cg.default("Arg not supported with multiple helpers");gn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(gn.toString.call(t)===ug)gn.extend(this.partials,t);else{if(typeof r>"u")throw new cg.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,r){if(gn.toString.call(t)===ug){if(r)throw new cg.default("Arg not supported with multiple decorators");gn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){$B.resetLoggedProperties()}};var FB=Vs.default.log;ot.log=FB;ot.createFrame=gn.createFrame;ot.logger=Vs.default});var JP=P((Ks,QP)=>{"use strict";Ks.__esModule=!0;function dg(e){this.string=e}dg.prototype.toString=dg.prototype.toHTML=function(){return""+this.string};Ks.default=dg;QP.exports=Ks.default});var XP=P(pg=>{"use strict";pg.__esModule=!0;pg.wrapHelper=LB;function LB(e,t){if(typeof e!="function")return e;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)};return r}});var rw=P(Vt=>{"use strict";Vt.__esModule=!0;Vt.checkRevision=HB;Vt.template=KB;Vt.wrapProgram=Zs;Vt.resolvePartial=ZB;Vt.invokePartial=GB;Vt.noop=tw;function NB(e){return e&&e.__esModule?e:{default:e}}function qB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var UB=Se(),Et=qB(UB),WB=Le(),Dt=NB(WB),It=Hs(),YP=rg(),VB=XP(),ew=sg();function HB(e){var t=e&&e[0]||1,r=It.COMPILER_REVISION;if(!(t>=It.LAST_COMPATIBLE_COMPILER_REVISION&&t<=It.COMPILER_REVISION))if(t<It.LAST_COMPATIBLE_COMPILER_REVISION){var o=It.REVISION_CHANGES[r],n=It.REVISION_CHANGES[t];throw new Dt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+n+").")}else throw new Dt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function KB(e,t){if(!t)throw new Dt.default("No environment passed to template");if(!e||!e.main)throw new Dt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function o(s,c,l){l.hash&&(c=Et.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),s=t.VM.resolvePartial.call(this,s,c,l);var u=Et.extend({},l,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,s,c,u);if(p==null&&t.compile&&(l.partials[l.name]=t.compile(s,e.compilerOptions,t),p=l.partials[l.name](c,u)),p!=null){if(l.indent){for(var d=p.split(`
31
37
  `),m=0,h=d.length;m<h&&!(!d[m]&&m+1===h);m++)d[m]=l.indent+d[m];p=d.join(`
32
- `)}return p}else throw new St.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(u,l,c){if(!u||!(l in u))throw new St.default('"'+l+'" not defined in '+u,{loc:c});return n.lookupProperty(u,l)},lookupProperty:function(u,l){var c=u[l];if(c==null||Object.prototype.hasOwnProperty.call(u,l)||O_.resultIsAllowed(c,n.protoAccessControl,l))return c},lookup:function(u,l){for(var c=u.length,p=0;p<c;p++){var d=u[p]&&n.lookupProperty(u[p],l);if(d!=null)return u[p][l]}},lambda:function(u,l){return typeof u=="function"?u.call(l):u},escapeExpression:yt.escapeExpression,invokePartial:o,fn:function(u){var l=e[u];return l.decorator=e[u+"_d"],l},programs:[],program:function(u,l,c,p,d){var m=this.programs[u],h=this.fn(u);return l||d||p||c?m=Fs(this,u,h,l,c,p,d):m||(m=this.programs[u]=Fs(this,u,h)),m},data:function(u,l){for(;u&&l--;)u=u._parent;return u},mergeIfNeeded:function(u,l){var c=u||l;return u&&l&&u!==l&&(c=yt.extend({},l,u)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=u.data;i._setup(u),!u.partial&&e.useData&&(l=Cz(s,l));var c=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?c=s!=u.depths[0]?[s].concat(u.depths):u.depths:c=[s]);function d(m){return""+e.main(n,m,n.helpers,n.partials,l,p,c)}return d=z_(e.main,d,n,u.depths||[],l,p),d(s,u)}return i.isTop=!0,i._setup=function(s){if(s.partial)n.protoAccessControl=s.protoAccessControl,n.helpers=s.helpers,n.partials=s.partials,n.decorators=s.decorators,n.hooks=s.hooks;else{var u=yt.extend({},t.helpers,s.helpers);kz(u,n),n.helpers=u,e.usePartial&&(n.partials=n.mergeIfNeeded(s.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=yt.extend({},t.decorators,s.decorators)),n.hooks={},n.protoAccessControl=O_.createProtoAccessControl(s);var l=s.allowCallsToHelperMissing||r;$_.moveHelperToHooks(n,"helperMissing",l),$_.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(s,u,l,c){if(e.useBlockParams&&!l)throw new St.default("must pass block params");if(e.useDepths&&!c)throw new St.default("must pass parent depths");return Fs(n,s,e[s],u,0,l,c)},i}function Fs(e,t,r,o,n,i,s){function u(l){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=s;return s&&l!=s[0]&&!(l===e.nullContext&&s[0]===null)&&(p=[l].concat(s)),r(e,l,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),p)}return u=z_(r,u,e,s,o,i),u.program=t,u.depth=s?s.length:0,u.blockParams=n||0,u}function wz(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}function Pz(e,t,r){var o=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==M_&&(function(){r.data=bt.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=bt.createFrame(l.data),l.data["partial-block"]=o,i(u,l)},i.partials&&(r.partials=yt.extend({},r.partials,i.partials))})(),e===void 0&&n&&(e=n),e===void 0)throw new St.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}function M_(){return""}function Cz(e,t){return(!t||!("root"in t))&&(t=t?bt.createFrame(t):{},t.root=e),t}function z_(e,t,r,o,n,i){if(e.decorator){var s={};t=e.decorator(t,s,r,o&&o[0],n,i,o),yt.extend(t,s)}return t}function kz(e,t){Object.keys(e).forEach(function(r){var o=e[r];e[r]=Rz(o,t)})}function Rz(e,t){var r=t.lookupProperty;return Dz.wrapHelper(e,function(o){return yt.extend({lookupProperty:r},o)})}});var Kf=_((Bs,B_)=>{"use strict";Bs.__esModule=!0;Bs.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};B_.exports=Bs.default});var V_=_((Ls,U_)=>{"use strict";Ls.__esModule=!0;function Gf(e){return e&&e.__esModule?e:{default:e}}function Qf(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var Az=Ms(),L_=Qf(Az),jz=A_(),$z=Gf(jz),Oz=Oe(),Mz=Gf(Oz),zz=ge(),Zf=Qf(zz),Fz=F_(),N_=Qf(Fz),Bz=Kf(),Lz=Gf(Bz);function q_(){var e=new L_.HandlebarsEnvironment;return Zf.extend(e,L_),e.SafeString=$z.default,e.Exception=Mz.default,e.Utils=Zf,e.escapeExpression=Zf.escapeExpression,e.VM=N_,e.template=function(t){return N_.template(t,e)},e}var Eo=q_();Eo.create=q_;Lz.default(Eo);Eo.default=Eo;Ls.default=Eo;U_.exports=Ls.default});var Jf=_((Ns,H_)=>{"use strict";Ns.__esModule=!0;var W_={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!W_.helpers.scopedId(t)&&!t.depth}}};Ns.default=W_;H_.exports=Ns.default});var Z_=_((qs,K_)=>{"use strict";qs.__esModule=!0;var Nz=(function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(n,i,s,u,l,c,p){var d=c.length-1;switch(l){case 1:return c[d-1];case 2:this.$=u.prepareProgram(c[d]);break;case 3:this.$=c[d];break;case 4:this.$=c[d];break;case 5:this.$=c[d];break;case 6:this.$=c[d];break;case 7:this.$=c[d];break;case 8:this.$=c[d];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(c[d]),strip:u.stripFlags(c[d],c[d]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:c[d],value:c[d],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(c[d-2],c[d-1],c[d],this._$);break;case 12:this.$={path:c[d-3],params:c[d-2],hash:c[d-1]};break;case 13:this.$=u.prepareBlock(c[d-3],c[d-2],c[d-1],c[d],!1,this._$);break;case 14:this.$=u.prepareBlock(c[d-3],c[d-2],c[d-1],c[d],!0,this._$);break;case 15:this.$={open:c[d-5],path:c[d-4],params:c[d-3],hash:c[d-2],blockParams:c[d-1],strip:u.stripFlags(c[d-5],c[d])};break;case 16:this.$={path:c[d-4],params:c[d-3],hash:c[d-2],blockParams:c[d-1],strip:u.stripFlags(c[d-5],c[d])};break;case 17:this.$={path:c[d-4],params:c[d-3],hash:c[d-2],blockParams:c[d-1],strip:u.stripFlags(c[d-5],c[d])};break;case 18:this.$={strip:u.stripFlags(c[d-1],c[d-1]),program:c[d]};break;case 19:var m=u.prepareBlock(c[d-2],c[d-1],c[d],c[d],!1,this._$),h=u.prepareProgram([m],c[d-1].loc);h.chained=!0,this.$={strip:c[d-2].strip,program:h,chain:!0};break;case 20:this.$=c[d];break;case 21:this.$={path:c[d-1],strip:u.stripFlags(c[d-2],c[d])};break;case 22:this.$=u.prepareMustache(c[d-3],c[d-2],c[d-1],c[d-4],u.stripFlags(c[d-4],c[d]),this._$);break;case 23:this.$=u.prepareMustache(c[d-3],c[d-2],c[d-1],c[d-4],u.stripFlags(c[d-4],c[d]),this._$);break;case 24:this.$={type:"PartialStatement",name:c[d-3],params:c[d-2],hash:c[d-1],indent:"",strip:u.stripFlags(c[d-4],c[d]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(c[d-2],c[d-1],c[d],this._$);break;case 26:this.$={path:c[d-3],params:c[d-2],hash:c[d-1],strip:u.stripFlags(c[d-4],c[d])};break;case 27:this.$=c[d];break;case 28:this.$=c[d];break;case 29:this.$={type:"SubExpression",path:c[d-3],params:c[d-2],hash:c[d-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:c[d],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(c[d-2]),value:c[d],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(c[d-1]);break;case 33:this.$=c[d];break;case 34:this.$=c[d];break;case 35:this.$={type:"StringLiteral",value:c[d],original:c[d],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(c[d]),original:Number(c[d]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:c[d]==="true",original:c[d]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=c[d];break;case 41:this.$=c[d];break;case 42:this.$=u.preparePath(!0,c[d],this._$);break;case 43:this.$=u.preparePath(!1,c[d],this._$);break;case 44:c[d-2].push({part:u.id(c[d]),original:c[d],separator:c[d-1]}),this.$=c[d-2];break;case 45:this.$=[{part:u.id(c[d]),original:c[d]}];break;case 46:this.$=[];break;case 47:c[d-1].push(c[d]);break;case 48:this.$=[];break;case 49:c[d-1].push(c[d]);break;case 50:this.$=[];break;case 51:c[d-1].push(c[d]);break;case 58:this.$=[];break;case 59:c[d-1].push(c[d]);break;case 64:this.$=[];break;case 65:c[d-1].push(c[d]);break;case 70:this.$=[];break;case 71:c[d-1].push(c[d]);break;case 78:this.$=[];break;case 79:c[d-1].push(c[d]);break;case 82:this.$=[];break;case 83:c[d-1].push(c[d]);break;case 86:this.$=[];break;case 87:c[d-1].push(c[d]);break;case 90:this.$=[];break;case 91:c[d-1].push(c[d]);break;case 94:this.$=[];break;case 95:c[d-1].push(c[d]);break;case 98:this.$=[c[d]];break;case 99:c[d-1].push(c[d]);break;case 100:this.$=[c[d]];break;case 101:c[d-1].push(c[d]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(n,i){throw new Error(n)},parse:function(n){var i=this,s=[0],u=[null],l=[],c=this.table,p="",d=0,m=0,h=0,g=2,y=1;this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var P=this.lexer.yylloc;l.push(P);var D=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(We){s.length=s.length-2*We,u.length=u.length-We,l.length=l.length-We}function N(){var We;return We=i.lexer.lex()||1,typeof We!="number"&&(We=i.symbols_[We]||We),We}for(var O,Q,Ve,ae,cv,xu,vn={},No,ot,lv,qo;;){if(Ve=s[s.length-1],this.defaultActions[Ve]?ae=this.defaultActions[Ve]:((O===null||typeof O>"u")&&(O=N()),ae=c[Ve]&&c[Ve][O]),typeof ae>"u"||!ae.length||!ae[0]){var Eu="";if(!h){qo=[];for(No in c[Ve])this.terminals_[No]&&No>2&&qo.push("'"+this.terminals_[No]+"'");this.lexer.showPosition?Eu="Parse error on line "+(d+1)+`:
38
+ `)}return p}else throw new Dt.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(c,l,u){if(!c||!(l in c))throw new Dt.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},lookupProperty:function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||ew.resultIsAllowed(u,n.protoAccessControl,l))return u},lookup:function(c,l){for(var u=c.length,p=0;p<u;p++){var d=c[p]&&n.lookupProperty(c[p],l);if(d!=null)return c[p][l]}},lambda:function(c,l){return typeof c=="function"?c.call(l):c},escapeExpression:Et.escapeExpression,invokePartial:o,fn:function(c){var l=e[c];return l.decorator=e[c+"_d"],l},programs:[],program:function(c,l,u,p,d){var m=this.programs[c],h=this.fn(c);return l||d||p||u?m=Zs(this,c,h,l,u,p,d):m||(m=this.programs[c]=Zs(this,c,h)),m},data:function(c,l){for(;c&&l--;)c=c._parent;return c},mergeIfNeeded:function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Et.extend({},l,c)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&e.useData&&(l=QB(s,l));var u=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?u=s!=c.depths[0]?[s].concat(c.depths):c.depths:u=[s]);function d(m){return""+e.main(n,m,n.helpers,n.partials,l,p,u)}return d=nw(e.main,d,n,c.depths||[],l,p),d(s,c)}return i.isTop=!0,i._setup=function(s){if(s.partial)n.protoAccessControl=s.protoAccessControl,n.helpers=s.helpers,n.partials=s.partials,n.decorators=s.decorators,n.hooks=s.hooks;else{var c=Et.extend({},t.helpers,s.helpers);JB(c,n),n.helpers=c,e.usePartial&&(n.partials=n.mergeIfNeeded(s.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=Et.extend({},t.decorators,s.decorators)),n.hooks={},n.protoAccessControl=ew.createProtoAccessControl(s);var l=s.allowCallsToHelperMissing||r;YP.moveHelperToHooks(n,"helperMissing",l),YP.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(s,c,l,u){if(e.useBlockParams&&!l)throw new Dt.default("must pass block params");if(e.useDepths&&!u)throw new Dt.default("must pass parent depths");return Zs(n,s,e[s],c,0,l,u)},i}function Zs(e,t,r,o,n,i,s){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=s;return s&&l!=s[0]&&!(l===e.nullContext&&s[0]===null)&&(p=[l].concat(s)),r(e,l,e.helpers,e.partials,u.data||o,i&&[u.blockParams].concat(i),p)}return c=nw(r,c,e,s,o,i),c.program=t,c.depth=s?s.length:0,c.blockParams=n||0,c}function ZB(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}function GB(e,t,r){var o=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==tw&&(function(){r.data=It.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=It.createFrame(l.data),l.data["partial-block"]=o,i(c,l)},i.partials&&(r.partials=Et.extend({},r.partials,i.partials))})(),e===void 0&&n&&(e=n),e===void 0)throw new Dt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}function tw(){return""}function QB(e,t){return(!t||!("root"in t))&&(t=t?It.createFrame(t):{},t.root=e),t}function nw(e,t,r,o,n,i){if(e.decorator){var s={};t=e.decorator(t,s,r,o&&o[0],n,i,o),Et.extend(t,s)}return t}function JB(e,t){Object.keys(e).forEach(function(r){var o=e[r];e[r]=XB(o,t)})}function XB(e,t){var r=t.lookupProperty;return VB.wrapHelper(e,function(o){return Et.extend({lookupProperty:r},o)})}});var mg=P((Gs,ow)=>{"use strict";Gs.__esModule=!0;Gs.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};ow.exports=Gs.default});var uw=P((Qs,cw)=>{"use strict";Qs.__esModule=!0;function fg(e){return e&&e.__esModule?e:{default:e}}function gg(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var YB=Hs(),iw=gg(YB),eF=JP(),tF=fg(eF),nF=Le(),rF=fg(nF),oF=Se(),hg=gg(oF),iF=rw(),aw=gg(iF),aF=mg(),sF=fg(aF);function sw(){var e=new iw.HandlebarsEnvironment;return hg.extend(e,iw),e.SafeString=tF.default,e.Exception=rF.default,e.Utils=hg,e.escapeExpression=hg.escapeExpression,e.VM=aw,e.template=function(t){return aw.template(t,e)},e}var ko=sw();ko.create=sw;sF.default(ko);ko.default=ko;Qs.default=ko;cw.exports=Qs.default});var vg=P((Js,dw)=>{"use strict";Js.__esModule=!0;var lw={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!lw.helpers.scopedId(t)&&!t.depth}}};Js.default=lw;dw.exports=Js.default});var mw=P((Xs,pw)=>{"use strict";Xs.__esModule=!0;var cF=(function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(n,i,s,c,l,u,p){var d=u.length-1;switch(l){case 1:return u[d-1];case 2:this.$=c.prepareProgram(u[d]);break;case 3:this.$=u[d];break;case 4:this.$=u[d];break;case 5:this.$=u[d];break;case 6:this.$=u[d];break;case 7:this.$=u[d];break;case 8:this.$=u[d];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[d]),strip:c.stripFlags(u[d],u[d]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[d],value:u[d],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[d-2],u[d-1],u[d],this._$);break;case 12:this.$={path:u[d-3],params:u[d-2],hash:u[d-1]};break;case 13:this.$=c.prepareBlock(u[d-3],u[d-2],u[d-1],u[d],!1,this._$);break;case 14:this.$=c.prepareBlock(u[d-3],u[d-2],u[d-1],u[d],!0,this._$);break;case 15:this.$={open:u[d-5],path:u[d-4],params:u[d-3],hash:u[d-2],blockParams:u[d-1],strip:c.stripFlags(u[d-5],u[d])};break;case 16:this.$={path:u[d-4],params:u[d-3],hash:u[d-2],blockParams:u[d-1],strip:c.stripFlags(u[d-5],u[d])};break;case 17:this.$={path:u[d-4],params:u[d-3],hash:u[d-2],blockParams:u[d-1],strip:c.stripFlags(u[d-5],u[d])};break;case 18:this.$={strip:c.stripFlags(u[d-1],u[d-1]),program:u[d]};break;case 19:var m=c.prepareBlock(u[d-2],u[d-1],u[d],u[d],!1,this._$),h=c.prepareProgram([m],u[d-1].loc);h.chained=!0,this.$={strip:u[d-2].strip,program:h,chain:!0};break;case 20:this.$=u[d];break;case 21:this.$={path:u[d-1],strip:c.stripFlags(u[d-2],u[d])};break;case 22:this.$=c.prepareMustache(u[d-3],u[d-2],u[d-1],u[d-4],c.stripFlags(u[d-4],u[d]),this._$);break;case 23:this.$=c.prepareMustache(u[d-3],u[d-2],u[d-1],u[d-4],c.stripFlags(u[d-4],u[d]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[d-3],params:u[d-2],hash:u[d-1],indent:"",strip:c.stripFlags(u[d-4],u[d]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[d-2],u[d-1],u[d],this._$);break;case 26:this.$={path:u[d-3],params:u[d-2],hash:u[d-1],strip:c.stripFlags(u[d-4],u[d])};break;case 27:this.$=u[d];break;case 28:this.$=u[d];break;case 29:this.$={type:"SubExpression",path:u[d-3],params:u[d-2],hash:u[d-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[d],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[d-2]),value:u[d],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[d-1]);break;case 33:this.$=u[d];break;case 34:this.$=u[d];break;case 35:this.$={type:"StringLiteral",value:u[d],original:u[d],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[d]),original:Number(u[d]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[d]==="true",original:u[d]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[d];break;case 41:this.$=u[d];break;case 42:this.$=c.preparePath(!0,u[d],this._$);break;case 43:this.$=c.preparePath(!1,u[d],this._$);break;case 44:u[d-2].push({part:c.id(u[d]),original:u[d],separator:u[d-1]}),this.$=u[d-2];break;case 45:this.$=[{part:c.id(u[d]),original:u[d]}];break;case 46:this.$=[];break;case 47:u[d-1].push(u[d]);break;case 48:this.$=[];break;case 49:u[d-1].push(u[d]);break;case 50:this.$=[];break;case 51:u[d-1].push(u[d]);break;case 58:this.$=[];break;case 59:u[d-1].push(u[d]);break;case 64:this.$=[];break;case 65:u[d-1].push(u[d]);break;case 70:this.$=[];break;case 71:u[d-1].push(u[d]);break;case 78:this.$=[];break;case 79:u[d-1].push(u[d]);break;case 82:this.$=[];break;case 83:u[d-1].push(u[d]);break;case 86:this.$=[];break;case 87:u[d-1].push(u[d]);break;case 90:this.$=[];break;case 91:u[d-1].push(u[d]);break;case 94:this.$=[];break;case 95:u[d-1].push(u[d]);break;case 98:this.$=[u[d]];break;case 99:u[d-1].push(u[d]);break;case 100:this.$=[u[d]];break;case 101:u[d-1].push(u[d]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(n,i){throw new Error(n)},parse:function(n){var i=this,s=[0],c=[null],l=[],u=this.table,p="",d=0,m=0,h=0,g=2,y=1;this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var C=this.lexer.yylloc;l.push(C);var D=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function j(Ze){s.length=s.length-2*Ze,c.length=c.length-Ze,l.length=l.length-Ze}function N(){var Ze;return Ze=i.lexer.lex()||1,typeof Ze!="number"&&(Ze=i.symbols_[Ze]||Ze),Ze}for(var M,Q,Ke,ce,Sv,wc,Tn={},Wo,st,bv,Vo;;){if(Ke=s[s.length-1],this.defaultActions[Ke]?ce=this.defaultActions[Ke]:((M===null||typeof M>"u")&&(M=N()),ce=u[Ke]&&u[Ke][M]),typeof ce>"u"||!ce.length||!ce[0]){var Cc="";if(!h){Vo=[];for(Wo in u[Ke])this.terminals_[Wo]&&Wo>2&&Vo.push("'"+this.terminals_[Wo]+"'");this.lexer.showPosition?Cc="Parse error on line "+(d+1)+`:
33
39
  `+this.lexer.showPosition()+`
34
- Expecting `+qo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Eu="Parse error on line "+(d+1)+": Unexpected "+(O==1?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Eu,{text:this.lexer.match,token:this.terminals_[O]||O,line:this.lexer.yylineno,loc:P,expected:qo})}}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+O);switch(ae[0]){case 1:s.push(O),u.push(this.lexer.yytext),l.push(this.lexer.yylloc),s.push(ae[1]),O=null,Q?(O=Q,Q=null):(m=this.lexer.yyleng,p=this.lexer.yytext,d=this.lexer.yylineno,P=this.lexer.yylloc,h>0&&h--);break;case 2:if(ot=this.productions_[ae[1]][1],vn.$=u[u.length-ot],vn._$={first_line:l[l.length-(ot||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ot||1)].first_column,last_column:l[l.length-1].last_column},D&&(vn._$.range=[l[l.length-(ot||1)].range[0],l[l.length-1].range[1]]),xu=this.performAction.call(vn,p,m,d,this.yy,ae[1],u,l),typeof xu<"u")return xu;ot&&(s=s.slice(0,-1*ot*2),u=u.slice(0,-1*ot),l=l.slice(0,-1*ot)),s.push(this.productions_[ae[1]][0]),u.push(vn.$),l.push(vn._$),lv=c[s[s.length-2]][s[s.length-1]],s.push(lv);break;case 3:return!0}}return!0}},t=(function(){var o={EOF:1,parseError:function(i,s){if(this.yy.parser)this.yy.parser.parseError(i,s);else throw new Error(i)},setInput:function(i){return this._input=i,this._more=this._less=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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var s=i.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var s=i.length,u=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s-1),this.offset-=s;var l=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),u.length-1&&(this.yylineno-=u.length-1);var c=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:u?(u.length===l.length?this.yylloc.first_column:0)+l[l.length-u.length].length-u[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-s]),this},more:function(){return this._more=!0,this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),s=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
35
- `+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,s,u,l,c,p;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),m=0;m<d.length&&(u=this._input.match(this.rules[d[m]]),!(u&&(!s||u[0].length>s[0].length)&&(s=u,l=m,!this.options.flex)));m++);return s?(p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
36
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};return o.options={},o.performAction=function(i,s,u,l){function c(d,m){return s.yytext=s.yytext.substring(d,s.yyleng-m+d)}var p=l;switch(u){case 0:if(s.yytext.slice(-2)==="\\\\"?(c(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(c(0,1),this.begin("emu")):this.begin("mu"),s.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(c(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(s.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return s.yytext=c(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=c(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return s.yytext=s.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},o.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],o.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},o})();e.lexer=t;function r(){this.yy={}}return r.prototype=e,e.Parser=r,new r})();qs.default=Nz;K_.exports=qs.default});var Hs=_((Ws,J_)=>{"use strict";Ws.__esModule=!0;function qz(e){return e&&e.__esModule?e:{default:e}}var Uz=Oe(),Xf=qz(Uz);function Us(){this.parents=[]}Us.prototype={constructor:Us,mutating:!1,acceptKey:function(t,r){var o=this.accept(t[r]);if(this.mutating){if(o&&!Us.prototype[o.type])throw new Xf.default('Unexpected node type "'+o.type+'" found when accepting '+r+" on "+t.type);t[r]=o}},acceptRequired:function(t,r){if(this.acceptKey(t,r),!t[r])throw new Xf.default(t.type+" requires "+r)},acceptArray:function(t){for(var r=0,o=t.length;r<o;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,o--)},accept:function(t){if(t){if(!this[t.type])throw new Xf.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:Vs,Decorator:Vs,BlockStatement:G_,DecoratorBlock:G_,PartialStatement:Q_,PartialBlockStatement:function(t){Q_.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Vs,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}};function Vs(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function G_(e){Vs.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function Q_(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}Ws.default=Us;J_.exports=Ws.default});var Y_=_((Ks,X_)=>{"use strict";Ks.__esModule=!0;function Vz(e){return e&&e.__esModule?e:{default:e}}var Wz=Hs(),Hz=Vz(Wz);function tt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}tt.prototype=new Hz.default;tt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var o=e.body,n=0,i=o.length;n<i;n++){var s=o[n],u=this.accept(s);if(u){var l=Yf(o,n,r),c=eg(o,n,r),p=u.openStandalone&&l,d=u.closeStandalone&&c,m=u.inlineStandalone&&l&&c;u.close&&pn(o,n,!0),u.open&&Lt(o,n,!0),t&&m&&(pn(o,n),Lt(o,n)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(o[n-1].original)[1])),t&&p&&(pn((s.program||s.inverse).body),Lt(o,n)),t&&d&&(pn(o,n),Lt((s.inverse||s.program).body))}}return e};tt.prototype.BlockStatement=tt.prototype.DecoratorBlock=tt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,o=r,n=r;if(r&&r.chained)for(o=r.body[0].program;n.chained;)n=n.body[n.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:eg(t.body),closeStandalone:Yf((o||t).body)};if(e.openStrip.close&&pn(t.body,null,!0),r){var s=e.inverseStrip;s.open&&Lt(t.body,null,!0),s.close&&pn(o.body,null,!0),e.closeStrip.open&&Lt(n.body,null,!0),!this.options.ignoreStandalone&&Yf(t.body)&&eg(o.body)&&(Lt(t.body),pn(o.body))}else e.closeStrip.open&&Lt(t.body,null,!0);return i};tt.prototype.Decorator=tt.prototype.MustacheStatement=function(e){return e.strip};tt.prototype.PartialStatement=tt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Yf(e,t,r){t===void 0&&(t=e.length);var o=e[t-1],n=e[t-2];if(!o)return r;if(o.type==="ContentStatement")return(n||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(o.original)}function eg(e,t,r){t===void 0&&(t=-1);var o=e[t+1],n=e[t+2];if(!o)return r;if(o.type==="ContentStatement")return(n||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(o.original)}function pn(e,t,r){var o=e[t==null?0:t+1];if(!(!o||o.type!=="ContentStatement"||!r&&o.rightStripped)){var n=o.value;o.value=o.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),o.rightStripped=o.value!==n}}function Lt(e,t,r){var o=e[t==null?e.length-1:t-1];if(!(!o||o.type!=="ContentStatement"||!r&&o.leftStripped)){var n=o.value;return o.value=o.value.replace(r?/\s+$/:/[ \t]+$/,""),o.leftStripped=o.value!==n,o.leftStripped}}Ks.default=tt;X_.exports=Ks.default});var ew=_(Me=>{"use strict";Me.__esModule=!0;Me.SourceLocation=Gz;Me.id=Qz;Me.stripFlags=Jz;Me.stripComment=Xz;Me.preparePath=Yz;Me.prepareMustache=e4;Me.prepareRawBlock=t4;Me.prepareBlock=n4;Me.prepareProgram=r4;Me.preparePartialBlock=o4;function Kz(e){return e&&e.__esModule?e:{default:e}}var Zz=Oe(),tg=Kz(Zz);function ng(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new tg.default(e.path.original+" doesn't match "+t,r)}}function Gz(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function Qz(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Jz(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Xz(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Yz(e,t,r){r=this.locInfo(r);for(var o=e?"@":"",n=[],i=0,s=0,u=t.length;s<u;s++){var l=t[s].part,c=t[s].original!==l;if(o+=(t[s].separator||"")+l,!c&&(l===".."||l==="."||l==="this")){if(n.length>0)throw new tg.default("Invalid path: "+o,{loc:r});l===".."&&i++}else n.push(l)}return{type:"PathExpression",data:e,depth:i,parts:n,original:o,loc:r}}function e4(e,t,r,o,n,i){var s=o.charAt(3)||o.charAt(2),u=s!=="{"&&s!=="&",l=/\*/.test(o);return{type:l?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:n,loc:this.locInfo(i)}}function t4(e,t,r,o){ng(e,r),o=this.locInfo(o);var n={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function n4(e,t,r,o,n,i){o&&o.path&&ng(e,o);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,l=void 0;if(r){if(s)throw new tg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=o.strip),l=r.strip,u=r.program}return n&&(n=u,u=t,t=n),{type:s?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:l,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function r4(e,t){if(!t&&e.length){var r=e[0].loc,o=e[e.length-1].loc;r&&o&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function o4(e,t,r,o){return ng(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(o)}}});var rw=_(Do=>{"use strict";Do.__esModule=!0;Do.parseWithoutProcessing=nw;Do.parse=p4;function i4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function tw(e){return e&&e.__esModule?e:{default:e}}var a4=Z_(),rg=tw(a4),s4=Y_(),u4=tw(s4),c4=ew(),l4=i4(c4),d4=ge();Do.parser=rg.default;var Zs={};d4.extend(Zs,l4);function nw(e,t){if(e.type==="Program")return e;rg.default.yy=Zs,Zs.locInfo=function(o){return new Zs.SourceLocation(t&&t.srcName,o)};var r=rg.default.parse(e);return r}function p4(e,t){var r=nw(e,t),o=new u4.default(t);return o.accept(r)}});var sw=_(Po=>{"use strict";Po.__esModule=!0;Po.Compiler=og;Po.precompile=g4;Po.compile=v4;function iw(e){return e&&e.__esModule?e:{default:e}}var m4=Oe(),_o=iw(m4),wo=ge(),h4=Jf(),Io=iw(h4),f4=[].slice;function og(){}og.prototype={compiler:og,equals:function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var o=0;o<r;o++){var n=this.opcodes[o],i=t.opcodes[o];if(n.opcode!==i.opcode||!aw(n.args,i.args))return!1}r=this.children.length;for(var o=0;o<r;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=wo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},compileProgram:function(t){var r=new this.compiler,o=r.compile(t,this.options),n=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[n]=o,this.useDepths=this.useDepths||o.useDepths,n},accept:function(t){if(!this[t.type])throw new _o.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,o=r.length,n=0;n<o;n++)this.accept(r[n]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){ow(t);var r=t.program,o=t.inverse;r=r&&this.compileProgram(r),o=o&&this.compileProgram(o);var n=this.classifySexpr(t);n==="helper"?this.helperSexpr(t,r,o):n==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,o),this.opcode("pushProgram",r),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var r=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,r,void 0),n=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,n.original)},PartialStatement:function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new _o.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var n=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var s=t.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",i,n,s),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){ow(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,r,o){var n=t.path,i=n.parts[0],s=r!=null||o!=null;this.opcode("getContext",n.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",o),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,r,o){var n=this.setupFullMustacheParams(t,r,o),i=t.path,s=i.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",n.length,s);else{if(this.options.knownHelpersOnly)throw new _o.default("You specified knownHelpersOnly, but used the unknown helper "+s,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",n.length,i.original,Io.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],o=Io.default.helpers.scopedId(t),n=!t.depth&&!o&&this.blockParamIndex(r);n?this.opcode("lookupBlockParam",n,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var r=t.pairs,o=0,n=r.length;for(this.opcode("pushHash");o<n;o++)this.pushParam(r[o].value);for(;o--;)this.opcode("assignToHash",r[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:f4.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var r=Io.default.helpers.simpleId(t.path),o=r&&!!this.blockParamIndex(t.path.parts[0]),n=!o&&Io.default.helpers.helperExpression(t),i=!o&&(n||r);if(i&&!n){var s=t.path.parts[0],u=this.options;u.knownHelpers[s]?n=!0:u.knownHelpersOnly&&(i=!1)}return n?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var r=0,o=t.length;r<o;r++)this.pushParam(t[r])},pushParam:function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!Io.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var n=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,n)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},setupFullMustacheParams:function(t,r,o,n){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",r),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",n),i},blockParamIndex:function(t){for(var r=0,o=this.options.blockParams.length;r<o;r++){var n=this.options.blockParams[r],i=n&&wo.indexOf(n,t);if(n&&i>=0)return[r,i]}}};function g4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new _o.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=r.parse(e,t),n=new r.Compiler().compile(o,t);return new r.JavaScriptCompiler().compile(n,t)}function v4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new _o.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=wo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function n(){var s=r.parse(e,t),u=new r.Compiler().compile(s,t),l=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(l)}function i(s,u){return o||(o=n()),o.call(this,s,u)}return i._setup=function(s){return o||(o=n()),o._setup(s)},i._child=function(s,u,l,c){return o||(o=n()),o._child(s,u,l,c)},i}function aw(e,t){if(e===t)return!0;if(wo.isArray(e)&&wo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!aw(e[r],t[r]))return!1;return!0}}function ow(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}});var cw=_(ig=>{var uw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ig.encode=function(e){if(0<=e&&e<uw.length)return uw[e];throw new TypeError("Must be between 0 and 63: "+e)};ig.decode=function(e){var t=65,r=90,o=97,n=122,i=48,s=57,u=43,l=47,c=26,p=52;return t<=e&&e<=r?e-t:o<=e&&e<=n?e-o+c:i<=e&&e<=s?e-i+p:e==u?62:e==l?63:-1}});var ug=_(sg=>{var lw=cw(),ag=5,dw=1<<ag,pw=dw-1,mw=dw;function y4(e){return e<0?(-e<<1)+1:(e<<1)+0}function S4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}sg.encode=function(t){var r="",o,n=y4(t);do o=n&pw,n>>>=ag,n>0&&(o|=mw),r+=lw.encode(o);while(n>0);return r};sg.decode=function(t,r,o){var n=t.length,i=0,s=0,u,l;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=lw.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(l&mw),l&=pw,i=i+(l<<s),s+=ag}while(u);o.value=S4(i),o.rest=r}});var ur=_(ce=>{function b4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}ce.getArg=b4;var hw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,T4=/^data:.+\,.+$/;function Co(e){var t=e.match(hw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ce.urlParse=Co;function ar(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}ce.urlGenerate=ar;function cg(e){var t=e,r=Co(e);if(r){if(!r.path)return e;t=r.path}for(var o=ce.isAbsolute(t),n=t.split(/\/+/),i,s=0,u=n.length-1;u>=0;u--)i=n[u],i==="."?n.splice(u,1):i===".."?s++:s>0&&(i===""?(n.splice(u+1,s),s=0):(n.splice(u,2),s--));return t=n.join("/"),t===""&&(t=o?"/":"."),r?(r.path=t,ar(r)):t}ce.normalize=cg;function fw(e,t){e===""&&(e="."),t===""&&(t=".");var r=Co(t),o=Co(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),ar(r);if(r||t.match(T4))return t;if(o&&!o.host&&!o.path)return o.host=t,ar(o);var n=t.charAt(0)==="/"?t:cg(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=n,ar(o)):n}ce.join=fw;ce.isAbsolute=function(e){return e.charAt(0)==="/"||hw.test(e)};function x4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var o=e.lastIndexOf("/");if(o<0||(e=e.slice(0,o),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}ce.relative=x4;var gw=(function(){var e=Object.create(null);return!("__proto__"in e)})();function vw(e){return e}function E4(e){return yw(e)?"$"+e:e}ce.toSetString=gw?vw:E4;function D4(e){return yw(e)?e.slice(1):e}ce.fromSetString=gw?vw:D4;function yw(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function I4(e,t,r){var o=sr(e.source,t.source);return o!==0||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0||r)||(o=e.generatedColumn-t.generatedColumn,o!==0)||(o=e.generatedLine-t.generatedLine,o!==0)?o:sr(e.name,t.name)}ce.compareByOriginalPositions=I4;function _4(e,t,r){var o=e.generatedLine-t.generatedLine;return o!==0||(o=e.generatedColumn-t.generatedColumn,o!==0||r)||(o=sr(e.source,t.source),o!==0)||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0)?o:sr(e.name,t.name)}ce.compareByGeneratedPositionsDeflated=_4;function sr(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function w4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=sr(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:sr(e.name,t.name)}ce.compareByGeneratedPositionsInflated=w4;function P4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ce.parseSourceMapInput=P4;function C4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var o=Co(r);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var n=o.path.lastIndexOf("/");n>=0&&(o.path=o.path.substring(0,n+1))}t=fw(ar(o),t)}return cg(t)}ce.computeSourceURL=C4});var pg=_(Sw=>{var lg=ur(),dg=Object.prototype.hasOwnProperty,mn=typeof Map<"u";function Tt(){this._array=[],this._set=mn?new Map:Object.create(null)}Tt.fromArray=function(t,r){for(var o=new Tt,n=0,i=t.length;n<i;n++)o.add(t[n],r);return o};Tt.prototype.size=function(){return mn?this._set.size:Object.getOwnPropertyNames(this._set).length};Tt.prototype.add=function(t,r){var o=mn?t:lg.toSetString(t),n=mn?this.has(t):dg.call(this._set,o),i=this._array.length;(!n||r)&&this._array.push(t),n||(mn?this._set.set(t,i):this._set[o]=i)};Tt.prototype.has=function(t){if(mn)return this._set.has(t);var r=lg.toSetString(t);return dg.call(this._set,r)};Tt.prototype.indexOf=function(t){if(mn){var r=this._set.get(t);if(r>=0)return r}else{var o=lg.toSetString(t);if(dg.call(this._set,o))return this._set[o]}throw new Error('"'+t+'" is not in the set.')};Tt.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Tt.prototype.toArray=function(){return this._array.slice()};Sw.ArraySet=Tt});var xw=_(Tw=>{var bw=ur();function k4(e,t){var r=e.generatedLine,o=t.generatedLine,n=e.generatedColumn,i=t.generatedColumn;return o>r||o==r&&i>=n||bw.compareByGeneratedPositionsInflated(e,t)<=0}function Gs(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Gs.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Gs.prototype.add=function(t){k4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Gs.prototype.toArray=function(){return this._sorted||(this._array.sort(bw.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Tw.MappingList=Gs});var mg=_(Ew=>{var ko=ug(),J=ur(),Qs=pg().ArraySet,R4=xw().MappingList;function ze(e){e||(e={}),this._file=J.getArg(e,"file",null),this._sourceRoot=J.getArg(e,"sourceRoot",null),this._skipValidation=J.getArg(e,"skipValidation",!1),this._sources=new Qs,this._names=new Qs,this._mappings=new R4,this._sourcesContents=null}ze.prototype._version=3;ze.fromSourceMap=function(t){var r=t.sourceRoot,o=new ze({file:t.file,sourceRoot:r});return t.eachMapping(function(n){var i={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(i.source=n.source,r!=null&&(i.source=J.relative(r,i.source)),i.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(i.name=n.name)),o.addMapping(i)}),t.sources.forEach(function(n){var i=n;r!==null&&(i=J.relative(r,n)),o._sources.has(i)||o._sources.add(i);var s=t.sourceContentFor(n);s!=null&&o.setSourceContent(n,s)}),o};ze.prototype.addMapping=function(t){var r=J.getArg(t,"generated"),o=J.getArg(t,"original",null),n=J.getArg(t,"source",null),i=J.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,o,n,i),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:n,name:i})};ze.prototype.setSourceContent=function(t,r){var o=t;this._sourceRoot!=null&&(o=J.relative(this._sourceRoot,o)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[J.toSetString(o)]=r):this._sourcesContents&&(delete this._sourcesContents[J.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ze.prototype.applySourceMap=function(t,r,o){var n=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=t.file}var i=this._sourceRoot;i!=null&&(n=J.relative(i,n));var s=new Qs,u=new Qs;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var c=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,o!=null&&(l.source=J.join(o,l.source)),i!=null&&(l.source=J.relative(i,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var p=l.source;p!=null&&!s.has(p)&&s.add(p);var d=l.name;d!=null&&!u.has(d)&&u.add(d)},this),this._sources=s,this._names=u,t.sources.forEach(function(l){var c=t.sourceContentFor(l);c!=null&&(o!=null&&(l=J.join(o,l)),i!=null&&(l=J.relative(i,l)),this.setSourceContent(l,c))},this)};ze.prototype._validateMapping=function(t,r,o,n){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!o&&!n)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:o,original:r,name:n}))}};ze.prototype._serializeMappings=function(){for(var t=0,r=1,o=0,n=0,i=0,s=0,u="",l,c,p,d,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(c=m[h],l="",c.generatedLine!==r)for(t=0;c.generatedLine!==r;)l+=";",r++;else if(h>0){if(!J.compareByGeneratedPositionsInflated(c,m[h-1]))continue;l+=","}l+=ko.encode(c.generatedColumn-t),t=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),l+=ko.encode(d-s),s=d,l+=ko.encode(c.originalLine-1-n),n=c.originalLine-1,l+=ko.encode(c.originalColumn-o),o=c.originalColumn,c.name!=null&&(p=this._names.indexOf(c.name),l+=ko.encode(p-i),i=p)),u+=l}return u};ze.prototype._generateSourcesContent=function(t,r){return t.map(function(o){if(!this._sourcesContents)return null;r!=null&&(o=J.relative(r,o));var n=J.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};ze.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};ze.prototype.toString=function(){return JSON.stringify(this.toJSON())};Ew.SourceMapGenerator=ze});var Dw=_(hn=>{hn.GREATEST_LOWER_BOUND=1;hn.LEAST_UPPER_BOUND=2;function hg(e,t,r,o,n,i){var s=Math.floor((t-e)/2)+e,u=n(r,o[s],!0);return u===0?s:u>0?t-s>1?hg(s,t,r,o,n,i):i==hn.LEAST_UPPER_BOUND?t<o.length?t:-1:s:s-e>1?hg(e,s,r,o,n,i):i==hn.LEAST_UPPER_BOUND?s:e<0?-1:e}hn.search=function(t,r,o,n){if(r.length===0)return-1;var i=hg(-1,r.length,t,r,o,n||hn.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(r[i],r[i-1],!0)===0;)--i;return i}});var _w=_(Iw=>{function fg(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function A4(e,t){return Math.round(e+Math.random()*(t-e))}function gg(e,t,r,o){if(r<o){var n=A4(r,o),i=r-1;fg(e,n,o);for(var s=e[o],u=r;u<o;u++)t(e[u],s)<=0&&(i+=1,fg(e,i,u));fg(e,i+1,u);var l=i+1;gg(e,t,r,l-1),gg(e,t,l+1,o)}}Iw.quickSort=function(e,t){gg(e,t,0,e.length-1)}});var Pw=_(Js=>{var C=ur(),vg=Dw(),cr=pg().ArraySet,j4=ug(),Ro=_w().quickSort;function K(e,t){var r=e;return typeof e=="string"&&(r=C.parseSourceMapInput(e)),r.sections!=null?new qe(r,t):new oe(r,t)}K.fromSourceMap=function(e,t){return oe.fromSourceMap(e,t)};K.prototype._version=3;K.prototype.__generatedMappings=null;Object.defineProperty(K.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});K.prototype.__originalMappings=null;Object.defineProperty(K.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});K.prototype._charIsMappingSeparator=function(t,r){var o=t.charAt(r);return o===";"||o===","};K.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};K.GENERATED_ORDER=1;K.ORIGINAL_ORDER=2;K.GREATEST_LOWER_BOUND=1;K.LEAST_UPPER_BOUND=2;K.prototype.eachMapping=function(t,r,o){var n=r||null,i=o||K.GENERATED_ORDER,s;switch(i){case K.GENERATED_ORDER:s=this._generatedMappings;break;case K.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;s.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=C.computeSourceURL(u,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,n)};K.prototype.allGeneratedPositionsFor=function(t){var r=C.getArg(t,"line"),o={source:C.getArg(t,"source"),originalLine:r,originalColumn:C.getArg(t,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var n=[],i=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,vg.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(t.column===void 0)for(var u=s.originalLine;s&&s.originalLine===u;)n.push({line:C.getArg(s,"generatedLine",null),column:C.getArg(s,"generatedColumn",null),lastColumn:C.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)n.push({line:C.getArg(s,"generatedLine",null),column:C.getArg(s,"generatedColumn",null),lastColumn:C.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return n};Js.SourceMapConsumer=K;function oe(e,t){var r=e;typeof e=="string"&&(r=C.parseSourceMapInput(e));var o=C.getArg(r,"version"),n=C.getArg(r,"sources"),i=C.getArg(r,"names",[]),s=C.getArg(r,"sourceRoot",null),u=C.getArg(r,"sourcesContent",null),l=C.getArg(r,"mappings"),c=C.getArg(r,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);s&&(s=C.normalize(s)),n=n.map(String).map(C.normalize).map(function(p){return s&&C.isAbsolute(s)&&C.isAbsolute(p)?C.relative(s,p):p}),this._names=cr.fromArray(i.map(String),!0),this._sources=cr.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(p){return C.computeSourceURL(s,p,t)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=c}oe.prototype=Object.create(K.prototype);oe.prototype.consumer=K;oe.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=C.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};oe.fromSourceMap=function(t,r){var o=Object.create(oe.prototype),n=o._names=cr.fromArray(t._names.toArray(),!0),i=o._sources=cr.fromArray(t._sources.toArray(),!0);o.sourceRoot=t._sourceRoot,o.sourcesContent=t._generateSourcesContent(o._sources.toArray(),o.sourceRoot),o.file=t._file,o._sourceMapURL=r,o._absoluteSources=o._sources.toArray().map(function(h){return C.computeSourceURL(o.sourceRoot,h,r)});for(var s=t._mappings.toArray().slice(),u=o.__generatedMappings=[],l=o.__originalMappings=[],c=0,p=s.length;c<p;c++){var d=s[c],m=new ww;m.generatedLine=d.generatedLine,m.generatedColumn=d.generatedColumn,d.source&&(m.source=i.indexOf(d.source),m.originalLine=d.originalLine,m.originalColumn=d.originalColumn,d.name&&(m.name=n.indexOf(d.name)),l.push(m)),u.push(m)}return Ro(o.__originalMappings,C.compareByOriginalPositions),o};oe.prototype._version=3;Object.defineProperty(oe.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function ww(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}oe.prototype._parseMappings=function(t,r){for(var o=1,n=0,i=0,s=0,u=0,l=0,c=t.length,p=0,d={},m={},h=[],g=[],y,P,D,A,N;p<c;)if(t.charAt(p)===";")o++,p++,n=0;else if(t.charAt(p)===",")p++;else{for(y=new ww,y.generatedLine=o,A=p;A<c&&!this._charIsMappingSeparator(t,A);A++);if(P=t.slice(p,A),D=d[P],D)p+=P.length;else{for(D=[];p<A;)j4.decode(t,p,m),N=m.value,p=m.rest,D.push(N);if(D.length===2)throw new Error("Found a source, but no line and column");if(D.length===3)throw new Error("Found a source and line, but no column");d[P]=D}y.generatedColumn=n+D[0],n=y.generatedColumn,D.length>1&&(y.source=u+D[1],u+=D[1],y.originalLine=i+D[2],i=y.originalLine,y.originalLine+=1,y.originalColumn=s+D[3],s=y.originalColumn,D.length>4&&(y.name=l+D[4],l+=D[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}Ro(g,C.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Ro(h,C.compareByOriginalPositions),this.__originalMappings=h};oe.prototype._findMapping=function(t,r,o,n,i,s){if(t[o]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[o]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return vg.search(t,r,i,s)};oe.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var o=this._generatedMappings[t+1];if(r.generatedLine===o.generatedLine){r.lastGeneratedColumn=o.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};oe.prototype.originalPositionFor=function(t){var r={generatedLine:C.getArg(t,"line"),generatedColumn:C.getArg(t,"column")},o=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",C.compareByGeneratedPositionsDeflated,C.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(o>=0){var n=this._generatedMappings[o];if(n.generatedLine===r.generatedLine){var i=C.getArg(n,"source",null);i!==null&&(i=this._sources.at(i),i=C.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=C.getArg(n,"name",null);return s!==null&&(s=this._names.at(s)),{source:i,line:C.getArg(n,"originalLine",null),column:C.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};oe.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};oe.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var o=this._findSourceIndex(t);if(o>=0)return this.sourcesContent[o];var n=t;this.sourceRoot!=null&&(n=C.relative(this.sourceRoot,n));var i;if(this.sourceRoot!=null&&(i=C.urlParse(this.sourceRoot))){var s=n.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||i.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(r)return null;throw new Error('"'+n+'" is not in the SourceMap.')};oe.prototype.generatedPositionFor=function(t){var r=C.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var o={source:r,originalLine:C.getArg(t,"line"),originalColumn:C.getArg(t,"column")},n=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,C.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===o.source)return{line:C.getArg(i,"generatedLine",null),column:C.getArg(i,"generatedColumn",null),lastColumn:C.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Js.BasicSourceMapConsumer=oe;function qe(e,t){var r=e;typeof e=="string"&&(r=C.parseSourceMapInput(e));var o=C.getArg(r,"version"),n=C.getArg(r,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new cr,this._names=new cr;var i={line:-1,column:0};this._sections=n.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var u=C.getArg(s,"offset"),l=C.getArg(u,"line"),c=C.getArg(u,"column");if(l<i.line||l===i.line&&c<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=u,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new K(C.getArg(s,"map"),t)}})}qe.prototype=Object.create(K.prototype);qe.prototype.constructor=K;qe.prototype._version=3;Object.defineProperty(qe.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});qe.prototype.originalPositionFor=function(t){var r={generatedLine:C.getArg(t,"line"),generatedColumn:C.getArg(t,"column")},o=vg.search(r,this._sections,function(i,s){var u=i.generatedLine-s.generatedOffset.generatedLine;return u||i.generatedColumn-s.generatedOffset.generatedColumn}),n=this._sections[o];return n?n.consumer.originalPositionFor({line:r.generatedLine-(n.generatedOffset.generatedLine-1),column:r.generatedColumn-(n.generatedOffset.generatedLine===r.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};qe.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};qe.prototype.sourceContentFor=function(t,r){for(var o=0;o<this._sections.length;o++){var n=this._sections[o],i=n.consumer.sourceContentFor(t,!0);if(i)return i}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};qe.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var o=this._sections[r];if(o.consumer._findSourceIndex(C.getArg(t,"source"))!==-1){var n=o.consumer.generatedPositionFor(t);if(n){var i={line:n.line+(o.generatedOffset.generatedLine-1),column:n.column+(o.generatedOffset.generatedLine===n.line?o.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};qe.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var o=0;o<this._sections.length;o++)for(var n=this._sections[o],i=n.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],l=n.consumer._sources.at(u.source);l=C.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;u.name&&(c=n.consumer._names.at(u.name),this._names.add(c),c=this._names.indexOf(c));var p={source:l,generatedLine:u.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(n.generatedOffset.generatedLine===u.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:c};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Ro(this.__generatedMappings,C.compareByGeneratedPositionsDeflated),Ro(this.__originalMappings,C.compareByOriginalPositions)};Js.IndexedSourceMapConsumer=qe});var kw=_(Cw=>{var $4=mg().SourceMapGenerator,Xs=ur(),O4=/(\r?\n)/,M4=10,lr="$$$isSourceNode$$$";function Ce(e,t,r,o,n){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=n??null,this[lr]=!0,o!=null&&this.add(o)}Ce.fromStringWithSourceMap=function(t,r,o){var n=new Ce,i=t.split(O4),s=0,u=function(){var m=g(),h=g()||"";return m+h;function g(){return s<i.length?i[s++]:void 0}},l=1,c=0,p=null;return r.eachMapping(function(m){if(p!==null)if(l<m.generatedLine)d(p,u()),l++,c=0;else{var h=i[s]||"",g=h.substr(0,m.generatedColumn-c);i[s]=h.substr(m.generatedColumn-c),c=m.generatedColumn,d(p,g),p=m;return}for(;l<m.generatedLine;)n.add(u()),l++;if(c<m.generatedColumn){var h=i[s]||"";n.add(h.substr(0,m.generatedColumn)),i[s]=h.substr(m.generatedColumn),c=m.generatedColumn}p=m},this),s<i.length&&(p&&d(p,u()),n.add(i.splice(s).join(""))),r.sources.forEach(function(m){var h=r.sourceContentFor(m);h!=null&&(o!=null&&(m=Xs.join(o,m)),n.setSourceContent(m,h))}),n;function d(m,h){if(m===null||m.source===void 0)n.add(h);else{var g=o?Xs.join(o,m.source):m.source;n.add(new Ce(m.originalLine,m.originalColumn,g,h,m.name))}}};Ce.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[lr]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ce.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[lr]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ce.prototype.walk=function(t){for(var r,o=0,n=this.children.length;o<n;o++)r=this.children[o],r[lr]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ce.prototype.join=function(t){var r,o,n=this.children.length;if(n>0){for(r=[],o=0;o<n-1;o++)r.push(this.children[o]),r.push(t);r.push(this.children[o]),this.children=r}return this};Ce.prototype.replaceRight=function(t,r){var o=this.children[this.children.length-1];return o[lr]?o.replaceRight(t,r):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,r):this.children.push("".replace(t,r)),this};Ce.prototype.setSourceContent=function(t,r){this.sourceContents[Xs.toSetString(t)]=r};Ce.prototype.walkSourceContents=function(t){for(var r=0,o=this.children.length;r<o;r++)this.children[r][lr]&&this.children[r].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),r=0,o=n.length;r<o;r++)t(Xs.fromSetString(n[r]),this.sourceContents[n[r]])};Ce.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Ce.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},o=new $4(t),n=!1,i=null,s=null,u=null,l=null;return this.walk(function(c,p){r.code+=c,p.source!==null&&p.line!==null&&p.column!==null?((i!==p.source||s!==p.line||u!==p.column||l!==p.name)&&o.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),i=p.source,s=p.line,u=p.column,l=p.name,n=!0):n&&(o.addMapping({generated:{line:r.line,column:r.column}}),i=null,n=!1);for(var d=0,m=c.length;d<m;d++)c.charCodeAt(d)===M4?(r.line++,r.column=0,d+1===m?(i=null,n=!1):n&&o.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(c,p){o.setSourceContent(c,p)}),{code:r.code,map:o}};Cw.SourceNode=Ce});var Rw=_(Ys=>{Ys.SourceMapGenerator=mg().SourceMapGenerator;Ys.SourceMapConsumer=Pw().SourceMapConsumer;Ys.SourceNode=kw().SourceNode});var Ow=_((eu,$w)=>{"use strict";eu.__esModule=!0;var Sg=ge(),fn=void 0;try{(typeof define!="function"||!define.amd)&&(Aw=Rw(),fn=Aw.SourceNode)}catch{}var Aw;fn||(fn=function(e,t,r,o){this.src="",o&&this.add(o)},fn.prototype={add:function(t){Sg.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){Sg.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function yg(e,t,r){if(Sg.isArray(e)){for(var o=[],n=0,i=e.length;n<i;n++)o.push(t.wrap(e[n],r));return o}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}function jw(e){this.srcFile=e,this.source=[]}jw.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,r){this.source.unshift(this.wrap(t,r))},push:function(t,r){this.source.push(this.wrap(t,r))},merge:function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
37
- `])}),t},each:function(t){for(var r=0,o=this.source.length;r<o;r++)t(this.source[r])},empty:function(){var t=this.currentLocation||{start:{}};return new fn(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof fn?t:(t=yg(t,this,r),new fn(r.start.line,r.start.column,this.srcFile,t))},functionCall:function(t,r,o){return o=this.generateList(o),this.wrap([t,r?"."+r+"(":"(",o,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var r=this,o=[];Object.keys(t).forEach(function(i){var s=yg(t[i],r);s!=="undefined"&&o.push([r.quotedString(i),":",s])});var n=this.generateList(o);return n.prepend("{"),n.add("}"),n},generateList:function(t){for(var r=this.empty(),o=0,n=t.length;o<n;o++)o&&r.add(","),r.add(yg(t[o],this));return r},generateArray:function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r}};eu.default=jw;$w.exports=eu.default});var Lw=_((tu,Bw)=>{"use strict";tu.__esModule=!0;function Fw(e){return e&&e.__esModule?e:{default:e}}var Mw=Ms(),z4=Oe(),bg=Fw(z4),F4=ge(),B4=Ow(),zw=Fw(B4);function dr(e){this.value=e}function pr(){}pr.prototype={nameLookup:function(t,r){return this.internalNameLookup(t,r)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=Mw.COMPILER_REVISION,r=Mw.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,o){return F4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:o?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,r,o,n){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!o,this.context=o||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,s=void 0,u=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l<c;l++)s=i[l],this.source.currentLocation=s.loc,u=u||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new bg.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
40
+ Expecting `+Vo.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Cc="Parse error on line "+(d+1)+": Unexpected "+(M==1?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Cc,{text:this.lexer.match,token:this.terminals_[M]||M,line:this.lexer.yylineno,loc:C,expected:Vo})}}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ke+", token: "+M);switch(ce[0]){case 1:s.push(M),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),s.push(ce[1]),M=null,Q?(M=Q,Q=null):(m=this.lexer.yyleng,p=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,h>0&&h--);break;case 2:if(st=this.productions_[ce[1]][1],Tn.$=c[c.length-st],Tn._$={first_line:l[l.length-(st||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(st||1)].first_column,last_column:l[l.length-1].last_column},D&&(Tn._$.range=[l[l.length-(st||1)].range[0],l[l.length-1].range[1]]),wc=this.performAction.call(Tn,p,m,d,this.yy,ce[1],c,l),typeof wc<"u")return wc;st&&(s=s.slice(0,-1*st*2),c=c.slice(0,-1*st),l=l.slice(0,-1*st)),s.push(this.productions_[ce[1]][0]),c.push(Tn.$),l.push(Tn._$),bv=u[s[s.length-2]][s[s.length-1]],s.push(bv);break;case 3:return!0}}return!0}},t=(function(){var o={EOF:1,parseError:function(i,s){if(this.yy.parser)this.yy.parser.parseError(i,s);else throw new Error(i)},setInput:function(i){return this._input=i,this._more=this._less=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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var s=i.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var s=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s-1),this.offset-=s;var l=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),c.length-1&&(this.yylineno-=c.length-1);var u=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:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-s]),this},more:function(){return this._more=!0,this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),s=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
41
+ `+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,s,c,l,u,p;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),m=0;m<d.length&&(c=this._input.match(this.rules[d[m]]),!(c&&(!s||c[0].length>s[0].length)&&(s=c,l=m,!this.options.flex)));m++);return s?(p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
42
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};return o.options={},o.performAction=function(i,s,c,l){function u(d,m){return s.yytext=s.yytext.substring(d,s.yyleng-m+d)}var p=l;switch(c){case 0:if(s.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),s.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(s.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return s.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return s.yytext=s.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},o.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],o.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},o})();e.lexer=t;function r(){this.yy={}}return r.prototype=e,e.Parser=r,new r})();Xs.default=cF;pw.exports=Xs.default});var nc=P((tc,gw)=>{"use strict";tc.__esModule=!0;function uF(e){return e&&e.__esModule?e:{default:e}}var lF=Le(),yg=uF(lF);function Ys(){this.parents=[]}Ys.prototype={constructor:Ys,mutating:!1,acceptKey:function(t,r){var o=this.accept(t[r]);if(this.mutating){if(o&&!Ys.prototype[o.type])throw new yg.default('Unexpected node type "'+o.type+'" found when accepting '+r+" on "+t.type);t[r]=o}},acceptRequired:function(t,r){if(this.acceptKey(t,r),!t[r])throw new yg.default(t.type+" requires "+r)},acceptArray:function(t){for(var r=0,o=t.length;r<o;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,o--)},accept:function(t){if(t){if(!this[t.type])throw new yg.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:ec,Decorator:ec,BlockStatement:hw,DecoratorBlock:hw,PartialStatement:fw,PartialBlockStatement:function(t){fw.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:ec,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}};function ec(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function hw(e){ec.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function fw(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}tc.default=Ys;gw.exports=tc.default});var yw=P((rc,vw)=>{"use strict";rc.__esModule=!0;function dF(e){return e&&e.__esModule?e:{default:e}}var pF=nc(),mF=dF(pF);function it(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}it.prototype=new mF.default;it.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var o=e.body,n=0,i=o.length;n<i;n++){var s=o[n],c=this.accept(s);if(c){var l=Sg(o,n,r),u=bg(o,n,r),p=c.openStandalone&&l,d=c.closeStandalone&&u,m=c.inlineStandalone&&l&&u;c.close&&vn(o,n,!0),c.open&&Ht(o,n,!0),t&&m&&(vn(o,n),Ht(o,n)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(o[n-1].original)[1])),t&&p&&(vn((s.program||s.inverse).body),Ht(o,n)),t&&d&&(vn(o,n),Ht((s.inverse||s.program).body))}}return e};it.prototype.BlockStatement=it.prototype.DecoratorBlock=it.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,o=r,n=r;if(r&&r.chained)for(o=r.body[0].program;n.chained;)n=n.body[n.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:bg(t.body),closeStandalone:Sg((o||t).body)};if(e.openStrip.close&&vn(t.body,null,!0),r){var s=e.inverseStrip;s.open&&Ht(t.body,null,!0),s.close&&vn(o.body,null,!0),e.closeStrip.open&&Ht(n.body,null,!0),!this.options.ignoreStandalone&&Sg(t.body)&&bg(o.body)&&(Ht(t.body),vn(o.body))}else e.closeStrip.open&&Ht(t.body,null,!0);return i};it.prototype.Decorator=it.prototype.MustacheStatement=function(e){return e.strip};it.prototype.PartialStatement=it.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Sg(e,t,r){t===void 0&&(t=e.length);var o=e[t-1],n=e[t-2];if(!o)return r;if(o.type==="ContentStatement")return(n||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(o.original)}function bg(e,t,r){t===void 0&&(t=-1);var o=e[t+1],n=e[t+2];if(!o)return r;if(o.type==="ContentStatement")return(n||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(o.original)}function vn(e,t,r){var o=e[t==null?0:t+1];if(!(!o||o.type!=="ContentStatement"||!r&&o.rightStripped)){var n=o.value;o.value=o.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),o.rightStripped=o.value!==n}}function Ht(e,t,r){var o=e[t==null?e.length-1:t-1];if(!(!o||o.type!=="ContentStatement"||!r&&o.leftStripped)){var n=o.value;return o.value=o.value.replace(r?/\s+$/:/[ \t]+$/,""),o.leftStripped=o.value!==n,o.leftStripped}}rc.default=it;vw.exports=rc.default});var Sw=P(Ne=>{"use strict";Ne.__esModule=!0;Ne.SourceLocation=gF;Ne.id=vF;Ne.stripFlags=yF;Ne.stripComment=SF;Ne.preparePath=bF;Ne.prepareMustache=TF;Ne.prepareRawBlock=xF;Ne.prepareBlock=EF;Ne.prepareProgram=DF;Ne.preparePartialBlock=IF;function hF(e){return e&&e.__esModule?e:{default:e}}var fF=Le(),Tg=hF(fF);function xg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Tg.default(e.path.original+" doesn't match "+t,r)}}function gF(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function vF(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function yF(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function SF(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function bF(e,t,r){r=this.locInfo(r);for(var o=e?"@":"",n=[],i=0,s=0,c=t.length;s<c;s++){var l=t[s].part,u=t[s].original!==l;if(o+=(t[s].separator||"")+l,!u&&(l===".."||l==="."||l==="this")){if(n.length>0)throw new Tg.default("Invalid path: "+o,{loc:r});l===".."&&i++}else n.push(l)}return{type:"PathExpression",data:e,depth:i,parts:n,original:o,loc:r}}function TF(e,t,r,o,n,i){var s=o.charAt(3)||o.charAt(2),c=s!=="{"&&s!=="&",l=/\*/.test(o);return{type:l?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:n,loc:this.locInfo(i)}}function xF(e,t,r,o){xg(e,r),o=this.locInfo(o);var n={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function EF(e,t,r,o,n,i){o&&o.path&&xg(e,o);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,l=void 0;if(r){if(s)throw new Tg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=o.strip),l=r.strip,c=r.program}return n&&(n=c,c=t,t=n),{type:s?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:l,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function DF(e,t){if(!t&&e.length){var r=e[0].loc,o=e[e.length-1].loc;r&&o&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function IF(e,t,r,o){return xg(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(o)}}});var xw=P(Ro=>{"use strict";Ro.__esModule=!0;Ro.parseWithoutProcessing=Tw;Ro.parse=jF;function _F(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function bw(e){return e&&e.__esModule?e:{default:e}}var PF=mw(),Eg=bw(PF),wF=yw(),CF=bw(wF),kF=Sw(),RF=_F(kF),AF=Se();Ro.parser=Eg.default;var oc={};AF.extend(oc,RF);function Tw(e,t){if(e.type==="Program")return e;Eg.default.yy=oc,oc.locInfo=function(o){return new oc.SourceLocation(t&&t.srcName,o)};var r=Eg.default.parse(e);return r}function jF(e,t){var r=Tw(e,t),o=new CF.default(t);return o.accept(r)}});var _w=P(Mo=>{"use strict";Mo.__esModule=!0;Mo.Compiler=Dg;Mo.precompile=zF;Mo.compile=BF;function Dw(e){return e&&e.__esModule?e:{default:e}}var $F=Le(),jo=Dw($F),$o=Se(),MF=vg(),Ao=Dw(MF),OF=[].slice;function Dg(){}Dg.prototype={compiler:Dg,equals:function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var o=0;o<r;o++){var n=this.opcodes[o],i=t.opcodes[o];if(n.opcode!==i.opcode||!Iw(n.args,i.args))return!1}r=this.children.length;for(var o=0;o<r;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=$o.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},compileProgram:function(t){var r=new this.compiler,o=r.compile(t,this.options),n=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[n]=o,this.useDepths=this.useDepths||o.useDepths,n},accept:function(t){if(!this[t.type])throw new jo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,o=r.length,n=0;n<o;n++)this.accept(r[n]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ew(t);var r=t.program,o=t.inverse;r=r&&this.compileProgram(r),o=o&&this.compileProgram(o);var n=this.classifySexpr(t);n==="helper"?this.helperSexpr(t,r,o):n==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,o),this.opcode("pushProgram",r),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var r=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,r,void 0),n=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,n.original)},PartialStatement:function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new jo.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var n=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var s=t.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",i,n,s),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Ew(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,r,o){var n=t.path,i=n.parts[0],s=r!=null||o!=null;this.opcode("getContext",n.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",o),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,r,o){var n=this.setupFullMustacheParams(t,r,o),i=t.path,s=i.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",n.length,s);else{if(this.options.knownHelpersOnly)throw new jo.default("You specified knownHelpersOnly, but used the unknown helper "+s,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",n.length,i.original,Ao.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],o=Ao.default.helpers.scopedId(t),n=!t.depth&&!o&&this.blockParamIndex(r);n?this.opcode("lookupBlockParam",n,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var r=t.pairs,o=0,n=r.length;for(this.opcode("pushHash");o<n;o++)this.pushParam(r[o].value);for(;o--;)this.opcode("assignToHash",r[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:OF.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var r=Ao.default.helpers.simpleId(t.path),o=r&&!!this.blockParamIndex(t.path.parts[0]),n=!o&&Ao.default.helpers.helperExpression(t),i=!o&&(n||r);if(i&&!n){var s=t.path.parts[0],c=this.options;c.knownHelpers[s]?n=!0:c.knownHelpersOnly&&(i=!1)}return n?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var r=0,o=t.length;r<o;r++)this.pushParam(t[r])},pushParam:function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!Ao.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var n=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,n)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},setupFullMustacheParams:function(t,r,o,n){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",r),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",n),i},blockParamIndex:function(t){for(var r=0,o=this.options.blockParams.length;r<o;r++){var n=this.options.blockParams[r],i=n&&$o.indexOf(n,t);if(n&&i>=0)return[r,i]}}};function zF(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new jo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=r.parse(e,t),n=new r.Compiler().compile(o,t);return new r.JavaScriptCompiler().compile(n,t)}function BF(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new jo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=$o.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function n(){var s=r.parse(e,t),c=new r.Compiler().compile(s,t),l=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(l)}function i(s,c){return o||(o=n()),o.call(this,s,c)}return i._setup=function(s){return o||(o=n()),o._setup(s)},i._child=function(s,c,l,u){return o||(o=n()),o._child(s,c,l,u)},i}function Iw(e,t){if(e===t)return!0;if($o.isArray(e)&&$o.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Iw(e[r],t[r]))return!1;return!0}}function Ew(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}});var ww=P(Ig=>{var Pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ig.encode=function(e){if(0<=e&&e<Pw.length)return Pw[e];throw new TypeError("Must be between 0 and 63: "+e)};Ig.decode=function(e){var t=65,r=90,o=97,n=122,i=48,s=57,c=43,l=47,u=26,p=52;return t<=e&&e<=r?e-t:o<=e&&e<=n?e-o+u:i<=e&&e<=s?e-i+p:e==c?62:e==l?63:-1}});var wg=P(Pg=>{var Cw=ww(),_g=5,kw=1<<_g,Rw=kw-1,Aw=kw;function FF(e){return e<0?(-e<<1)+1:(e<<1)+0}function LF(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Pg.encode=function(t){var r="",o,n=FF(t);do o=n&Rw,n>>>=_g,n>0&&(o|=Aw),r+=Cw.encode(o);while(n>0);return r};Pg.decode=function(t,r,o){var n=t.length,i=0,s=0,c,l;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Cw.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(l&Aw),l&=Rw,i=i+(l<<s),s+=_g}while(c);o.value=LF(i),o.rest=r}});var pr=P(pe=>{function NF(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}pe.getArg=NF;var jw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,qF=/^data:.+\,.+$/;function Oo(e){var t=e.match(jw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}pe.urlParse=Oo;function lr(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}pe.urlGenerate=lr;function Cg(e){var t=e,r=Oo(e);if(r){if(!r.path)return e;t=r.path}for(var o=pe.isAbsolute(t),n=t.split(/\/+/),i,s=0,c=n.length-1;c>=0;c--)i=n[c],i==="."?n.splice(c,1):i===".."?s++:s>0&&(i===""?(n.splice(c+1,s),s=0):(n.splice(c,2),s--));return t=n.join("/"),t===""&&(t=o?"/":"."),r?(r.path=t,lr(r)):t}pe.normalize=Cg;function $w(e,t){e===""&&(e="."),t===""&&(t=".");var r=Oo(t),o=Oo(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),lr(r);if(r||t.match(qF))return t;if(o&&!o.host&&!o.path)return o.host=t,lr(o);var n=t.charAt(0)==="/"?t:Cg(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=n,lr(o)):n}pe.join=$w;pe.isAbsolute=function(e){return e.charAt(0)==="/"||jw.test(e)};function UF(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var o=e.lastIndexOf("/");if(o<0||(e=e.slice(0,o),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}pe.relative=UF;var Mw=(function(){var e=Object.create(null);return!("__proto__"in e)})();function Ow(e){return e}function WF(e){return zw(e)?"$"+e:e}pe.toSetString=Mw?Ow:WF;function VF(e){return zw(e)?e.slice(1):e}pe.fromSetString=Mw?Ow:VF;function zw(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function HF(e,t,r){var o=dr(e.source,t.source);return o!==0||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0||r)||(o=e.generatedColumn-t.generatedColumn,o!==0)||(o=e.generatedLine-t.generatedLine,o!==0)?o:dr(e.name,t.name)}pe.compareByOriginalPositions=HF;function KF(e,t,r){var o=e.generatedLine-t.generatedLine;return o!==0||(o=e.generatedColumn-t.generatedColumn,o!==0||r)||(o=dr(e.source,t.source),o!==0)||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0)?o:dr(e.name,t.name)}pe.compareByGeneratedPositionsDeflated=KF;function dr(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function ZF(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=dr(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:dr(e.name,t.name)}pe.compareByGeneratedPositionsInflated=ZF;function GF(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}pe.parseSourceMapInput=GF;function QF(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var o=Oo(r);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var n=o.path.lastIndexOf("/");n>=0&&(o.path=o.path.substring(0,n+1))}t=$w(lr(o),t)}return Cg(t)}pe.computeSourceURL=QF});var Ag=P(Bw=>{var kg=pr(),Rg=Object.prototype.hasOwnProperty,yn=typeof Map<"u";function _t(){this._array=[],this._set=yn?new Map:Object.create(null)}_t.fromArray=function(t,r){for(var o=new _t,n=0,i=t.length;n<i;n++)o.add(t[n],r);return o};_t.prototype.size=function(){return yn?this._set.size:Object.getOwnPropertyNames(this._set).length};_t.prototype.add=function(t,r){var o=yn?t:kg.toSetString(t),n=yn?this.has(t):Rg.call(this._set,o),i=this._array.length;(!n||r)&&this._array.push(t),n||(yn?this._set.set(t,i):this._set[o]=i)};_t.prototype.has=function(t){if(yn)return this._set.has(t);var r=kg.toSetString(t);return Rg.call(this._set,r)};_t.prototype.indexOf=function(t){if(yn){var r=this._set.get(t);if(r>=0)return r}else{var o=kg.toSetString(t);if(Rg.call(this._set,o))return this._set[o]}throw new Error('"'+t+'" is not in the set.')};_t.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};_t.prototype.toArray=function(){return this._array.slice()};Bw.ArraySet=_t});var Nw=P(Lw=>{var Fw=pr();function JF(e,t){var r=e.generatedLine,o=t.generatedLine,n=e.generatedColumn,i=t.generatedColumn;return o>r||o==r&&i>=n||Fw.compareByGeneratedPositionsInflated(e,t)<=0}function ic(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ic.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};ic.prototype.add=function(t){JF(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};ic.prototype.toArray=function(){return this._sorted||(this._array.sort(Fw.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Lw.MappingList=ic});var jg=P(qw=>{var zo=wg(),X=pr(),ac=Ag().ArraySet,XF=Nw().MappingList;function qe(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new ac,this._names=new ac,this._mappings=new XF,this._sourcesContents=null}qe.prototype._version=3;qe.fromSourceMap=function(t){var r=t.sourceRoot,o=new qe({file:t.file,sourceRoot:r});return t.eachMapping(function(n){var i={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(i.source=n.source,r!=null&&(i.source=X.relative(r,i.source)),i.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(i.name=n.name)),o.addMapping(i)}),t.sources.forEach(function(n){var i=n;r!==null&&(i=X.relative(r,n)),o._sources.has(i)||o._sources.add(i);var s=t.sourceContentFor(n);s!=null&&o.setSourceContent(n,s)}),o};qe.prototype.addMapping=function(t){var r=X.getArg(t,"generated"),o=X.getArg(t,"original",null),n=X.getArg(t,"source",null),i=X.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,o,n,i),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:n,name:i})};qe.prototype.setSourceContent=function(t,r){var o=t;this._sourceRoot!=null&&(o=X.relative(this._sourceRoot,o)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(o)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};qe.prototype.applySourceMap=function(t,r,o){var n=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=t.file}var i=this._sourceRoot;i!=null&&(n=X.relative(i,n));var s=new ac,c=new ac;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,o!=null&&(l.source=X.join(o,l.source)),i!=null&&(l.source=X.relative(i,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var p=l.source;p!=null&&!s.has(p)&&s.add(p);var d=l.name;d!=null&&!c.has(d)&&c.add(d)},this),this._sources=s,this._names=c,t.sources.forEach(function(l){var u=t.sourceContentFor(l);u!=null&&(o!=null&&(l=X.join(o,l)),i!=null&&(l=X.relative(i,l)),this.setSourceContent(l,u))},this)};qe.prototype._validateMapping=function(t,r,o,n){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!o&&!n)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:o,original:r,name:n}))}};qe.prototype._serializeMappings=function(){for(var t=0,r=1,o=0,n=0,i=0,s=0,c="",l,u,p,d,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(u=m[h],l="",u.generatedLine!==r)for(t=0;u.generatedLine!==r;)l+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(u,m[h-1]))continue;l+=","}l+=zo.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(d=this._sources.indexOf(u.source),l+=zo.encode(d-s),s=d,l+=zo.encode(u.originalLine-1-n),n=u.originalLine-1,l+=zo.encode(u.originalColumn-o),o=u.originalColumn,u.name!=null&&(p=this._names.indexOf(u.name),l+=zo.encode(p-i),i=p)),c+=l}return c};qe.prototype._generateSourcesContent=function(t,r){return t.map(function(o){if(!this._sourcesContents)return null;r!=null&&(o=X.relative(r,o));var n=X.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};qe.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};qe.prototype.toString=function(){return JSON.stringify(this.toJSON())};qw.SourceMapGenerator=qe});var Uw=P(Sn=>{Sn.GREATEST_LOWER_BOUND=1;Sn.LEAST_UPPER_BOUND=2;function $g(e,t,r,o,n,i){var s=Math.floor((t-e)/2)+e,c=n(r,o[s],!0);return c===0?s:c>0?t-s>1?$g(s,t,r,o,n,i):i==Sn.LEAST_UPPER_BOUND?t<o.length?t:-1:s:s-e>1?$g(e,s,r,o,n,i):i==Sn.LEAST_UPPER_BOUND?s:e<0?-1:e}Sn.search=function(t,r,o,n){if(r.length===0)return-1;var i=$g(-1,r.length,t,r,o,n||Sn.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(r[i],r[i-1],!0)===0;)--i;return i}});var Vw=P(Ww=>{function Mg(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function YF(e,t){return Math.round(e+Math.random()*(t-e))}function Og(e,t,r,o){if(r<o){var n=YF(r,o),i=r-1;Mg(e,n,o);for(var s=e[o],c=r;c<o;c++)t(e[c],s)<=0&&(i+=1,Mg(e,i,c));Mg(e,i+1,c);var l=i+1;Og(e,t,r,l-1),Og(e,t,l+1,o)}}Ww.quickSort=function(e,t){Og(e,t,0,e.length-1)}});var Kw=P(sc=>{var k=pr(),zg=Uw(),mr=Ag().ArraySet,e4=wg(),Bo=Vw().quickSort;function K(e,t){var r=e;return typeof e=="string"&&(r=k.parseSourceMapInput(e)),r.sections!=null?new He(r,t):new ae(r,t)}K.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};K.prototype._version=3;K.prototype.__generatedMappings=null;Object.defineProperty(K.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});K.prototype.__originalMappings=null;Object.defineProperty(K.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});K.prototype._charIsMappingSeparator=function(t,r){var o=t.charAt(r);return o===";"||o===","};K.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};K.GENERATED_ORDER=1;K.ORIGINAL_ORDER=2;K.GREATEST_LOWER_BOUND=1;K.LEAST_UPPER_BOUND=2;K.prototype.eachMapping=function(t,r,o){var n=r||null,i=o||K.GENERATED_ORDER,s;switch(i){case K.GENERATED_ORDER:s=this._generatedMappings;break;case K.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;s.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=k.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,n)};K.prototype.allGeneratedPositionsFor=function(t){var r=k.getArg(t,"line"),o={source:k.getArg(t,"source"),originalLine:r,originalColumn:k.getArg(t,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var n=[],i=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",k.compareByOriginalPositions,zg.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(t.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)n.push({line:k.getArg(s,"generatedLine",null),column:k.getArg(s,"generatedColumn",null),lastColumn:k.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)n.push({line:k.getArg(s,"generatedLine",null),column:k.getArg(s,"generatedColumn",null),lastColumn:k.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return n};sc.SourceMapConsumer=K;function ae(e,t){var r=e;typeof e=="string"&&(r=k.parseSourceMapInput(e));var o=k.getArg(r,"version"),n=k.getArg(r,"sources"),i=k.getArg(r,"names",[]),s=k.getArg(r,"sourceRoot",null),c=k.getArg(r,"sourcesContent",null),l=k.getArg(r,"mappings"),u=k.getArg(r,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);s&&(s=k.normalize(s)),n=n.map(String).map(k.normalize).map(function(p){return s&&k.isAbsolute(s)&&k.isAbsolute(p)?k.relative(s,p):p}),this._names=mr.fromArray(i.map(String),!0),this._sources=mr.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(p){return k.computeSourceURL(s,p,t)}),this.sourceRoot=s,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=u}ae.prototype=Object.create(K.prototype);ae.prototype.consumer=K;ae.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=k.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ae.fromSourceMap=function(t,r){var o=Object.create(ae.prototype),n=o._names=mr.fromArray(t._names.toArray(),!0),i=o._sources=mr.fromArray(t._sources.toArray(),!0);o.sourceRoot=t._sourceRoot,o.sourcesContent=t._generateSourcesContent(o._sources.toArray(),o.sourceRoot),o.file=t._file,o._sourceMapURL=r,o._absoluteSources=o._sources.toArray().map(function(h){return k.computeSourceURL(o.sourceRoot,h,r)});for(var s=t._mappings.toArray().slice(),c=o.__generatedMappings=[],l=o.__originalMappings=[],u=0,p=s.length;u<p;u++){var d=s[u],m=new Hw;m.generatedLine=d.generatedLine,m.generatedColumn=d.generatedColumn,d.source&&(m.source=i.indexOf(d.source),m.originalLine=d.originalLine,m.originalColumn=d.originalColumn,d.name&&(m.name=n.indexOf(d.name)),l.push(m)),c.push(m)}return Bo(o.__originalMappings,k.compareByOriginalPositions),o};ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Hw(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ae.prototype._parseMappings=function(t,r){for(var o=1,n=0,i=0,s=0,c=0,l=0,u=t.length,p=0,d={},m={},h=[],g=[],y,C,D,j,N;p<u;)if(t.charAt(p)===";")o++,p++,n=0;else if(t.charAt(p)===",")p++;else{for(y=new Hw,y.generatedLine=o,j=p;j<u&&!this._charIsMappingSeparator(t,j);j++);if(C=t.slice(p,j),D=d[C],D)p+=C.length;else{for(D=[];p<j;)e4.decode(t,p,m),N=m.value,p=m.rest,D.push(N);if(D.length===2)throw new Error("Found a source, but no line and column");if(D.length===3)throw new Error("Found a source and line, but no column");d[C]=D}y.generatedColumn=n+D[0],n=y.generatedColumn,D.length>1&&(y.source=c+D[1],c+=D[1],y.originalLine=i+D[2],i=y.originalLine,y.originalLine+=1,y.originalColumn=s+D[3],s=y.originalColumn,D.length>4&&(y.name=l+D[4],l+=D[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}Bo(g,k.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Bo(h,k.compareByOriginalPositions),this.__originalMappings=h};ae.prototype._findMapping=function(t,r,o,n,i,s){if(t[o]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[o]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return zg.search(t,r,i,s)};ae.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var o=this._generatedMappings[t+1];if(r.generatedLine===o.generatedLine){r.lastGeneratedColumn=o.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ae.prototype.originalPositionFor=function(t){var r={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},o=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",k.compareByGeneratedPositionsDeflated,k.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(o>=0){var n=this._generatedMappings[o];if(n.generatedLine===r.generatedLine){var i=k.getArg(n,"source",null);i!==null&&(i=this._sources.at(i),i=k.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=k.getArg(n,"name",null);return s!==null&&(s=this._names.at(s)),{source:i,line:k.getArg(n,"originalLine",null),column:k.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};ae.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};ae.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var o=this._findSourceIndex(t);if(o>=0)return this.sourcesContent[o];var n=t;this.sourceRoot!=null&&(n=k.relative(this.sourceRoot,n));var i;if(this.sourceRoot!=null&&(i=k.urlParse(this.sourceRoot))){var s=n.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||i.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(r)return null;throw new Error('"'+n+'" is not in the SourceMap.')};ae.prototype.generatedPositionFor=function(t){var r=k.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var o={source:r,originalLine:k.getArg(t,"line"),originalColumn:k.getArg(t,"column")},n=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",k.compareByOriginalPositions,k.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===o.source)return{line:k.getArg(i,"generatedLine",null),column:k.getArg(i,"generatedColumn",null),lastColumn:k.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};sc.BasicSourceMapConsumer=ae;function He(e,t){var r=e;typeof e=="string"&&(r=k.parseSourceMapInput(e));var o=k.getArg(r,"version"),n=k.getArg(r,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new mr,this._names=new mr;var i={line:-1,column:0};this._sections=n.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var c=k.getArg(s,"offset"),l=k.getArg(c,"line"),u=k.getArg(c,"column");if(l<i.line||l===i.line&&u<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=c,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new K(k.getArg(s,"map"),t)}})}He.prototype=Object.create(K.prototype);He.prototype.constructor=K;He.prototype._version=3;Object.defineProperty(He.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});He.prototype.originalPositionFor=function(t){var r={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},o=zg.search(r,this._sections,function(i,s){var c=i.generatedLine-s.generatedOffset.generatedLine;return c||i.generatedColumn-s.generatedOffset.generatedColumn}),n=this._sections[o];return n?n.consumer.originalPositionFor({line:r.generatedLine-(n.generatedOffset.generatedLine-1),column:r.generatedColumn-(n.generatedOffset.generatedLine===r.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};He.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};He.prototype.sourceContentFor=function(t,r){for(var o=0;o<this._sections.length;o++){var n=this._sections[o],i=n.consumer.sourceContentFor(t,!0);if(i)return i}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};He.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var o=this._sections[r];if(o.consumer._findSourceIndex(k.getArg(t,"source"))!==-1){var n=o.consumer.generatedPositionFor(t);if(n){var i={line:n.line+(o.generatedOffset.generatedLine-1),column:n.column+(o.generatedOffset.generatedLine===n.line?o.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};He.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var o=0;o<this._sections.length;o++)for(var n=this._sections[o],i=n.consumer._generatedMappings,s=0;s<i.length;s++){var c=i[s],l=n.consumer._sources.at(c.source);l=k.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=n.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var p={source:l,generatedLine:c.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(n.generatedOffset.generatedLine===c.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Bo(this.__generatedMappings,k.compareByGeneratedPositionsDeflated),Bo(this.__originalMappings,k.compareByOriginalPositions)};sc.IndexedSourceMapConsumer=He});var Gw=P(Zw=>{var t4=jg().SourceMapGenerator,cc=pr(),n4=/(\r?\n)/,r4=10,hr="$$$isSourceNode$$$";function Ae(e,t,r,o,n){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=n??null,this[hr]=!0,o!=null&&this.add(o)}Ae.fromStringWithSourceMap=function(t,r,o){var n=new Ae,i=t.split(n4),s=0,c=function(){var m=g(),h=g()||"";return m+h;function g(){return s<i.length?i[s++]:void 0}},l=1,u=0,p=null;return r.eachMapping(function(m){if(p!==null)if(l<m.generatedLine)d(p,c()),l++,u=0;else{var h=i[s]||"",g=h.substr(0,m.generatedColumn-u);i[s]=h.substr(m.generatedColumn-u),u=m.generatedColumn,d(p,g),p=m;return}for(;l<m.generatedLine;)n.add(c()),l++;if(u<m.generatedColumn){var h=i[s]||"";n.add(h.substr(0,m.generatedColumn)),i[s]=h.substr(m.generatedColumn),u=m.generatedColumn}p=m},this),s<i.length&&(p&&d(p,c()),n.add(i.splice(s).join(""))),r.sources.forEach(function(m){var h=r.sourceContentFor(m);h!=null&&(o!=null&&(m=cc.join(o,m)),n.setSourceContent(m,h))}),n;function d(m,h){if(m===null||m.source===void 0)n.add(h);else{var g=o?cc.join(o,m.source):m.source;n.add(new Ae(m.originalLine,m.originalColumn,g,h,m.name))}}};Ae.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[hr]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ae.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[hr]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ae.prototype.walk=function(t){for(var r,o=0,n=this.children.length;o<n;o++)r=this.children[o],r[hr]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ae.prototype.join=function(t){var r,o,n=this.children.length;if(n>0){for(r=[],o=0;o<n-1;o++)r.push(this.children[o]),r.push(t);r.push(this.children[o]),this.children=r}return this};Ae.prototype.replaceRight=function(t,r){var o=this.children[this.children.length-1];return o[hr]?o.replaceRight(t,r):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,r):this.children.push("".replace(t,r)),this};Ae.prototype.setSourceContent=function(t,r){this.sourceContents[cc.toSetString(t)]=r};Ae.prototype.walkSourceContents=function(t){for(var r=0,o=this.children.length;r<o;r++)this.children[r][hr]&&this.children[r].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),r=0,o=n.length;r<o;r++)t(cc.fromSetString(n[r]),this.sourceContents[n[r]])};Ae.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Ae.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},o=new t4(t),n=!1,i=null,s=null,c=null,l=null;return this.walk(function(u,p){r.code+=u,p.source!==null&&p.line!==null&&p.column!==null?((i!==p.source||s!==p.line||c!==p.column||l!==p.name)&&o.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),i=p.source,s=p.line,c=p.column,l=p.name,n=!0):n&&(o.addMapping({generated:{line:r.line,column:r.column}}),i=null,n=!1);for(var d=0,m=u.length;d<m;d++)u.charCodeAt(d)===r4?(r.line++,r.column=0,d+1===m?(i=null,n=!1):n&&o.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(u,p){o.setSourceContent(u,p)}),{code:r.code,map:o}};Zw.SourceNode=Ae});var Qw=P(uc=>{uc.SourceMapGenerator=jg().SourceMapGenerator;uc.SourceMapConsumer=Kw().SourceMapConsumer;uc.SourceNode=Gw().SourceNode});var eC=P((lc,Yw)=>{"use strict";lc.__esModule=!0;var Fg=Se(),bn=void 0;try{(typeof define!="function"||!define.amd)&&(Jw=Qw(),bn=Jw.SourceNode)}catch{}var Jw;bn||(bn=function(e,t,r,o){this.src="",o&&this.add(o)},bn.prototype={add:function(t){Fg.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){Fg.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function Bg(e,t,r){if(Fg.isArray(e)){for(var o=[],n=0,i=e.length;n<i;n++)o.push(t.wrap(e[n],r));return o}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}function Xw(e){this.srcFile=e,this.source=[]}Xw.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,r){this.source.unshift(this.wrap(t,r))},push:function(t,r){this.source.push(this.wrap(t,r))},merge:function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
43
+ `])}),t},each:function(t){for(var r=0,o=this.source.length;r<o;r++)t(this.source[r])},empty:function(){var t=this.currentLocation||{start:{}};return new bn(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof bn?t:(t=Bg(t,this,r),new bn(r.start.line,r.start.column,this.srcFile,t))},functionCall:function(t,r,o){return o=this.generateList(o),this.wrap([t,r?"."+r+"(":"(",o,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var r=this,o=[];Object.keys(t).forEach(function(i){var s=Bg(t[i],r);s!=="undefined"&&o.push([r.quotedString(i),":",s])});var n=this.generateList(o);return n.prepend("{"),n.add("}"),n},generateList:function(t){for(var r=this.empty(),o=0,n=t.length;o<n;o++)o&&r.add(","),r.add(Bg(t[o],this));return r},generateArray:function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r}};lc.default=Xw;Yw.exports=lc.default});var iC=P((dc,oC)=>{"use strict";dc.__esModule=!0;function rC(e){return e&&e.__esModule?e:{default:e}}var tC=Hs(),o4=Le(),Lg=rC(o4),i4=Se(),a4=eC(),nC=rC(a4);function fr(e){this.value=e}function gr(){}gr.prototype={nameLookup:function(t,r){return this.internalNameLookup(t,r)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=tC.COMPILER_REVISION,r=tC.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,o){return i4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:o?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,r,o,n){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!o,this.context=o||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,s=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)s=i[l],this.source.currentLocation=s.loc,c=c||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Lg.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
38
44
  `]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
39
45
  `),this.decorators.push(`}
40
- `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(n);if(this.isChild)return p;var d={compiler:this.compilerInfo(),main:p};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,h=m.programs,g=m.decorators;for(l=0,c=h.length;l<c;l++)h[l]&&(d[l]=h[l],g[l]&&(d[l+"_d"]=g[l],d.useDecorators=!0));return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new zw.default(this.options.srcName),this.decorators=new zw.default(this.options.srcName)},createFunctionContext:function(t){var r=this,o="",n=this.stackVars.concat(this.registers.list);n.length>0&&(o+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var c=r.aliases[l];c.children&&c.referenceCount>1&&(o+=", alias"+ ++i+"="+l,c.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(o+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var u=this.mergeSource(o);return t?(s.push(u),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),`) {
41
- `,u,"}"])},mergeSource:function(t){var r=this.environment.isSimple,o=!this.forceBuffer,n=void 0,i=void 0,s=void 0,u=void 0;return this.source.each(function(l){l.appendToBuffer?(s?l.prepend(" + "):s=l,u=l):(s&&(i?s.prepend("buffer += "):n=!0,u.add(";"),s=u=void 0),i=!0,r||(o=!1))}),o?s?(s.prepend("return "),u.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(n?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(n?"":`;
46
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(n);if(this.isChild)return p;var d={compiler:this.compilerInfo(),main:p};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,h=m.programs,g=m.decorators;for(l=0,u=h.length;l<u;l++)h[l]&&(d[l]=h[l],g[l]&&(d[l+"_d"]=g[l],d.useDecorators=!0));return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new nC.default(this.options.srcName),this.decorators=new nC.default(this.options.srcName)},createFunctionContext:function(t){var r=this,o="",n=this.stackVars.concat(this.registers.list);n.length>0&&(o+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(o+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(o+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var c=this.mergeSource(o);return t?(s.push(c),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),`) {
47
+ `,c,"}"])},mergeSource:function(t){var r=this.environment.isSimple,o=!this.forceBuffer,n=void 0,i=void 0,s=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(s?l.prepend(" + "):s=l,c=l):(s&&(i?s.prepend("buffer += "):n=!0,c.add(";"),s=c=void 0),i=!0,r||(o=!1))}),o?s?(s.prepend("return "),c.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(n?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(n?"":`;
42
48
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
43
49
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
44
50
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -46,53 +52,254 @@ Expecting `+qo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Eu="Parse error
46
52
  }
47
53
  return undefined
48
54
  }
49
- `.trim()},blockValue:function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),o=[this.contextName(0)];this.setupHelperArgs(t,0,o);var n=this.popStack();o.splice(1,0,n),this.push(this.source.functionCall(r,"call",o))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var o=this.topStack();r.splice(1,0,o),this.pushSource(["if (!",this.lastHelper,") { ",o," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,r,o,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[i++])):this.pushContext(),this.resolvePath("context",t,i,r,o)},lookupBlockParam:function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(t,r,o){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,o)},resolvePath:function(t,r,o,n,i){var s=this;if(this.options.strict||this.options.assumeObjects){this.push(L4(this.options.strict&&i,this,r,o,t));return}for(var u=r.length;o<u;o++)this.replaceStack(function(l){var c=s.nameLookup(l,r[o],t);return n?[" && ",c]:[" != null ? ",c," : ",l]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,r){var o=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(o,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(t,r,o){var n=this.popStack(),i=this.setupHelper(t,r),s=[];o&&s.push(i.name),s.push(n),this.options.strict||s.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(s,"||"),")"],l=this.source.functionCall(u,"call",i.callParams);this.push(l)},itemsSeparatedBy:function(t,r){var o=[];o.push(t[0]);for(var n=1;n<t.length;n++)o.push(r,t[n]);return o},invokeKnownHelper:function(t,r){var o=this.setupHelper(t,r);this.push(this.source.functionCall(o.name,"call",o.callParams))},invokeAmbiguous:function(t,r){this.useRegister("helper");var o=this.popStack();this.emptyHash();var n=this.setupHelper(0,t,r),i=this.lastHelper=this.nameLookup("helpers",t,"helper"),s=["(","(helper = ",i," || ",o,")"];this.options.strict||(s[0]="(helper = ",s.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",s,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(t,r,o){var n=[],i=this.setupParams(r,1,n);t&&(r=this.popStack(),delete i.name),o&&(i.indent=JSON.stringify(o)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",t?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(t){var r=this.popStack(),o=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),o=this.popStack());var s=this.hash;o&&(s.contexts[t]=o),n&&(s.types[t]=n),i&&(s.ids[t]=i),s.values[t]=r},pushId:function(t,r,o){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(o?" + "+JSON.stringify("."+o):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:pr,compileChildren:function(t,r){for(var o=t.children,n=void 0,i=void 0,s=0,u=o.length;s<u;s++){n=o[s],i=new this.compiler;var l=this.matchExistingProgram(n);if(l==null){this.context.programs.push("");var c=this.context.programs.length;n.index=c,n.name="program"+c,this.context.programs[c]=i.compile(n,r,this.context,!this.precompile),this.context.decorators[c]=i.decorators,this.context.environments[c]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=l.index,n.name="program"+l.index,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams}},matchExistingProgram:function(t){for(var r=0,o=this.context.environments.length;r<o;r++){var n=this.context.environments[r];if(n&&n.equals(t))return n}},programExpression:function(t){var r=this.environment.children[t],o=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths"),"container.program("+o.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof dr||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new dr(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var r=["("],o=void 0,n=void 0,i=void 0;if(!this.isInline())throw new bg.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof dr)o=[s.value],r=["(",o],i=!0;else{n=!0;var u=this.incrStack();r=["((",this.push(u)," = ",s,")"],o=this.topStack()}var l=t.call(this,o);i||this.popStack(),n&&this.stackSlot--,this.push(r.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,o=t.length;r<o;r++){var n=t[r];if(n instanceof dr)this.compileStack.push(n);else{var i=this.incrStack();this.pushSource([i," = ",n,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var r=this.isInline(),o=(r?this.inlineStack:this.compileStack).pop();if(!t&&o instanceof dr)return o.value;if(!r){if(!this.stackSlot)throw new bg.default("Invalid stack pop");this.stackSlot--}return o},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof dr?r.value:r},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},setupHelper:function(t,r,o){var n=[],i=this.setupHelperArgs(r,t,n,o),s=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:n,paramsInit:i,name:s,callParams:[u].concat(n)}},setupParams:function(t,r,o){var n={},i=[],s=[],u=[],l=!o,c=void 0;l&&(o=[]),n.name=this.quotedString(t),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var p=this.popStack(),d=this.popStack();(d||p)&&(n.fn=d||"container.noop",n.inverse=p||"container.noop");for(var m=r;m--;)c=this.popStack(),o[m]=c,this.trackIds&&(u[m]=this.popStack()),this.stringParams&&(s[m]=this.popStack(),i[m]=this.popStack());return l&&(n.args=this.source.generateArray(o)),this.trackIds&&(n.ids=this.source.generateArray(u)),this.stringParams&&(n.types=this.source.generateArray(s),n.contexts=this.source.generateArray(i)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(t,r,o,n){var i=this.setupParams(t,r,o);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),n?(this.useRegister("options"),o.push("options"),["options=",i]):o?(o.push(i),""):i}};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=pr.RESERVED_WORDS={},r=0,o=e.length;r<o;r++)t[e[r]]=!0})();pr.isValidJavaScriptVariableName=function(e){return!pr.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function L4(e,t,r,o,n){var i=t.popStack(),s=r.length;for(e&&s--;o<s;o++)i=t.nameLookup(i,r[o],n);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(r[o]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}tu.default=pr;Bw.exports=tu.default});var Uw=_((nu,qw)=>{"use strict";nu.__esModule=!0;function Ao(e){return e&&e.__esModule?e:{default:e}}var N4=V_(),q4=Ao(N4),U4=Jf(),V4=Ao(U4),Tg=rw(),xg=sw(),W4=Lw(),H4=Ao(W4),K4=Hs(),Z4=Ao(K4),G4=Kf(),Q4=Ao(G4),J4=q4.default.create;function Nw(){var e=J4();return e.compile=function(t,r){return xg.compile(t,r,e)},e.precompile=function(t,r){return xg.precompile(t,r,e)},e.AST=V4.default,e.Compiler=xg.Compiler,e.JavaScriptCompiler=H4.default,e.Parser=Tg.parser,e.parse=Tg.parse,e.parseWithoutProcessing=Tg.parseWithoutProcessing,e}var mr=Nw();mr.create=Nw;Q4.default(mr);mr.Visitor=Z4.default;mr.default=mr;nu.default=mr;qw.exports=nu.default});var Vw=_(ru=>{"use strict";ru.__esModule=!0;ru.print=tF;ru.PrintVisitor=G;function X4(e){return e&&e.__esModule?e:{default:e}}var Y4=Hs(),eF=X4(Y4);function tF(e){return new G().accept(e)}function G(){this.padding=0}G.prototype=new eF.default;G.prototype.pad=function(e){for(var t="",r=0,o=this.padding;r<o;r++)t+=" ";return t+=e+`
50
- `,t};G.prototype.Program=function(e){var t="",r=e.body,o=void 0,n=void 0;if(e.blockParams){var i="BLOCK PARAMS: [";for(o=0,n=e.blockParams.length;o<n;o++)i+=" "+e.blockParams[o];i+=" ]",t+=this.pad(i)}for(o=0,n=r.length;o<n;o++)t+=this.accept(r[o]);return this.padding--,t};G.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};G.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};G.prototype.BlockStatement=G.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};G.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};G.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};G.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};G.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};G.prototype.SubExpression=function(e){for(var t=e.params,r=[],o=void 0,n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return t="["+r.join(", ")+"]",o=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+o};G.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};G.prototype.StringLiteral=function(e){return'"'+e.value+'"'};G.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};G.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};G.prototype.UndefinedLiteral=function(){return"UNDEFINED"};G.prototype.NullLiteral=function(){return"NULL"};G.prototype.Hash=function(e){for(var t=e.pairs,r=[],o=0,n=t.length;o<n;o++)r.push(this.accept(t[o]));return"HASH{"+r.join(", ")+"}"};G.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Zw=_((u7,Kw)=>{var ou=Uw().default,Hw=Vw();ou.PrintVisitor=Hw.PrintVisitor;ou.print=Hw.print;Kw.exports=ou;function Ww(e,t){var r=Ie("fs"),o=r.readFileSync(t,"utf8");e.exports=ou.compile(o)}typeof Ie<"u"&&Ie.extensions&&(Ie.extensions[".handlebars"]=Ww,Ie.extensions[".hbs"]=Ww)});var au=_((E7,eP)=>{var _g=[],Yw=0,le=(e,t)=>{Yw>=t&&_g.push(e)};le.WARN=1;le.INFO=2;le.DEBUG=3;le.reset=()=>{_g=[]};le.setDebugLevel=e=>{Yw=e};le.warn=e=>le(e,le.WARN);le.info=e=>le(e,le.INFO);le.debug=e=>le(e,le.DEBUG);le.debugMessages=()=>_g;eP.exports=le});var nP=_((D7,tP)=>{"use strict";tP.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var oP=_((I7,rP)=>{"use strict";var aF=nP();rP.exports=e=>typeof e=="string"?e.replace(aF(),""):e});var aP=_((_7,wg)=>{"use strict";var iP=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);wg.exports=iP;wg.exports.default=iP});var uP=_((w7,sP)=>{"use strict";sP.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var lP=_((P7,Pg)=>{"use strict";var sF=oP(),uF=aP(),cF=uP(),cP=e=>{if(typeof e!="string"||e.length===0||(e=sF(e),e.length===0))return 0;e=e.replace(cF()," ");let t=0;for(let r=0;r<e.length;r++){let o=e.codePointAt(r);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&r++,t+=uF(o)?2:1)}return t};Pg.exports=cP;Pg.exports.default=cP});var Cg=_((C7,hP)=>{var dP=lP();function su(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function nt(e){let t=su();return(""+e).replace(t,"").split(`
51
- `).reduce(function(n,i){return dP(i)>n?dP(i):n},0)}function jo(e,t){return Array(t+1).join(e)}function lF(e,t,r,o){let n=nt(e);if(t+1>=n){let i=t-n;switch(o){case"right":{e=jo(r,i)+e;break}case"center":{let s=Math.ceil(i/2),u=i-s;e=jo(r,u)+e+jo(r,s);break}default:{e=e+jo(r,i);break}}}return e}var hr={};function $o(e,t,r){t="\x1B["+t+"m",r="\x1B["+r+"m",hr[t]={set:e,to:!0},hr[r]={set:e,to:!1},hr[e]={on:t,off:r}}$o("bold",1,22);$o("italics",3,23);$o("underline",4,24);$o("inverse",7,27);$o("strikethrough",9,29);function pP(e,t){let r=t[1]?parseInt(t[1].split(";")[0]):0;if(r>=30&&r<=39||r>=90&&r<=97){e.lastForegroundAdded=t[0];return}if(r>=40&&r<=49||r>=100&&r<=107){e.lastBackgroundAdded=t[0];return}if(r===0){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];return}let o=hr[t[0]];o&&(e[o.set]=o.to)}function dF(e){let t=su(!0),r=t.exec(e),o={};for(;r!==null;)pP(o,r),r=t.exec(e);return o}function mP(e,t){let r=e.lastBackgroundAdded,o=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t+=hr[n].off)}),r&&r!="\x1B[49m"&&(t+="\x1B[49m"),o&&o!="\x1B[39m"&&(t+="\x1B[39m"),t}function pF(e,t){let r=e.lastBackgroundAdded,o=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t=hr[n].on+t)}),r&&r!="\x1B[49m"&&(t=r+t),o&&o!="\x1B[39m"&&(t=o+t),t}function mF(e,t){if(e.length===nt(e))return e.substr(0,t);for(;nt(e)>t;)e=e.slice(0,-1);return e}function hF(e,t){let r=su(!0),o=e.split(su()),n=0,i=0,s="",u,l={};for(;i<t;){u=r.exec(e);let c=o[n];if(n++,i+nt(c)>t&&(c=mF(c,t-i)),s+=c,i+=nt(c),i<t){if(!u)break;s+=u[0],pP(l,u)}}return mP(l,s)}function fF(e,t,r){if(r=r||"\u2026",nt(e)<=t)return e;t-=nt(r);let n=hF(e,t);n+=r;let i="\x1B]8;;\x07";return e.includes(i)&&!n.includes(i)&&(n+=i),n}function gF(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function vF(e,t){e=e||{},t=t||gF();let r=Object.assign({},t,e);return r.chars=Object.assign({},t.chars,e.chars),r.style=Object.assign({},t.style,e.style),r}function yF(e,t){let r=[],o=t.split(/(\s+)/g),n=[],i=0,s;for(let u=0;u<o.length;u+=2){let l=o[u],c=i+nt(l);i>0&&s&&(c+=s.length),c>e?(i!==0&&r.push(n.join("")),n=[l],i=nt(l)):(n.push(s||"",l),i=c),s=o[u+1]}return i&&r.push(n.join("")),r}function SF(e,t){let r=[],o="";function n(s,u){for(o.length&&u&&(o+=u),o+=s;o.length>e;)r.push(o.slice(0,e)),o=o.slice(e)}let i=t.split(/(\s+)/g);for(let s=0;s<i.length;s+=2)n(i[s],s&&i[s-1]);return o.length&&r.push(o),r}function bF(e,t,r=!0){let o=[];t=t.split(`
52
- `);let n=r?yF:SF;for(let i=0;i<t.length;i++)o.push.apply(o,n(e,t[i]));return o}function TF(e){let t={},r=[];for(let o=0;o<e.length;o++){let n=pF(t,e[o]);t=dF(n);let i=Object.assign({},t);r.push(mP(i,n))}return r}function xF(e,t){return["\x1B]","8",";",";",e||t,"\x07",t,"\x1B]","8",";",";","\x07"].join("")}hP.exports={strlen:nt,repeat:jo,pad:lF,truncate:fF,mergeOptions:vF,wordWrap:bF,colorizeLines:TF,hyperlink:xF}});var yP=_((k7,vP)=>{var gP={};vP.exports=gP;var fP={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(fP).forEach(function(e){var t=fP[e],r=gP[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m"})});var bP=_((R7,SP)=>{"use strict";SP.exports=function(e,t){t=t||process.argv;var r=t.indexOf("--"),o=/^-{1,2}/.test(e)?"":"--",n=t.indexOf(o+e);return n!==-1&&(r===-1?!0:n<r)}});var xP=_((A7,TP)=>{"use strict";var EF=Ie("os"),Ue=bP(),ve=process.env,fr=void 0;Ue("no-color")||Ue("no-colors")||Ue("color=false")?fr=!1:(Ue("color")||Ue("colors")||Ue("color=true")||Ue("color=always"))&&(fr=!0);"FORCE_COLOR"in ve&&(fr=ve.FORCE_COLOR.length===0||parseInt(ve.FORCE_COLOR,10)!==0);function DF(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function IF(e){if(fr===!1)return 0;if(Ue("color=16m")||Ue("color=full")||Ue("color=truecolor"))return 3;if(Ue("color=256"))return 2;if(e&&!e.isTTY&&fr!==!0)return 0;var t=fr?1:0;if(process.platform==="win32"){var r=EF.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ve)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in ve})||ve.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ve.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in ve){var o=parseInt((ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ve.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ve.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ve.TERM)||"COLORTERM"in ve?1:(ve.TERM==="dumb",t)}function kg(e){var t=IF(e);return DF(t)}TP.exports={supportsColor:kg,stdout:kg(process.stdout),stderr:kg(process.stderr)}});var DP=_((j7,EP)=>{EP.exports=function(t,r){var o="";t=t||"Run the trap, drop the bass",t=t.split("");var n={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(i){i=i.toLowerCase();var s=n[i]||[" "],u=Math.floor(Math.random()*s.length);typeof n[i]<"u"?o+=n[i][u]:o+=i}),o}});var _P=_(($7,IP)=>{IP.exports=function(t,r){t=t||" he is here ";var o={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(o.up,o.down,o.mid);function i(l){var c=Math.floor(Math.random()*l);return c}function s(l){var c=!1;return n.filter(function(p){c=p===l}),c}function u(l,c){var p="",d,m;c=c||{},c.up=typeof c.up<"u"?c.up:!0,c.mid=typeof c.mid<"u"?c.mid:!0,c.down=typeof c.down<"u"?c.down:!0,c.size=typeof c.size<"u"?c.size:"maxi",l=l.split("");for(m in l)if(!s(m)){switch(p=p+l[m],d={up:0,down:0,mid:0},c.size){case"mini":d.up=i(8),d.mid=i(2),d.down=i(8);break;case"maxi":d.up=i(16)+3,d.mid=i(4)+1,d.down=i(64)+3;break;default:d.up=i(8)+1,d.mid=i(6)/2,d.down=i(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var y=h[g],P=0;P<=d[y];P++)c[y]&&(p=p+o[y][i(o[y].length)])}return p}return u(t,r)}});var PP=_((O7,wP)=>{wP.exports=function(e){return function(t,r,o){if(t===" ")return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}});var kP=_((M7,CP)=>{CP.exports=function(e){return function(t,r,o){return r%2===0?t:e.inverse(t)}}});var AP=_((z7,RP)=>{RP.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,o,n){return r===" "?r:e[t[o++%t.length]](r)}}});var $P=_((F7,jP)=>{jP.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,o,n){return r===" "?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}});var LP=_((L7,BP)=>{var L={};BP.exports=L;L.themes={};var _F=Ie("util"),gn=L.styles=yP(),MP=Object.defineProperties,wF=new RegExp(/[\r\n]+/g);L.supportsColor=xP().supportsColor;typeof L.enabled>"u"&&(L.enabled=L.supportsColor()!==!1);L.enable=function(){L.enabled=!0};L.disable=function(){L.enabled=!1};L.stripColors=L.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};var B7=L.stylize=function(t,r){if(!L.enabled)return t+"";var o=gn[r];return!o&&r in L?L[r](t):o.open+t+o.close},PF=/[|\\{}()[\]^$+*?.]/g,CF=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(PF,"\\$&")};function zP(e){var t=function r(){return RF.apply(r,arguments)};return t._styles=e,t.__proto__=kF,t}var FP=(function(){var e={};return gn.grey=gn.gray,Object.keys(gn).forEach(function(t){gn[t].closeRe=new RegExp(CF(gn[t].close),"g"),e[t]={get:function(){return zP(this._styles.concat(t))}}}),e})(),kF=MP(function(){},FP);function RF(){var e=Array.prototype.slice.call(arguments),t=e.map(function(s){return s!=null&&s.constructor===String?s:_F.inspect(s)}).join(" ");if(!L.enabled||!t)return t;for(var r=t.indexOf(`
53
- `)!=-1,o=this._styles,n=o.length;n--;){var i=gn[o[n]];t=i.open+t.replace(i.closeRe,i.open)+i.close,r&&(t=t.replace(wF,function(s){return i.close+s+i.open}))}return t}L.setTheme=function(e){if(typeof e=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)(function(r){L[r]=function(o){if(typeof e[r]=="object"){var n=o;for(var i in e[r])n=L[e[r][i]](n);return n}return L[e[r]](o)}})(t)};function AF(){var e={};return Object.keys(FP).forEach(function(t){e[t]={get:function(){return zP([t])}}}),e}var jF=function(t,r){var o=r.split("");return o=o.map(t),o.join("")};L.trap=DP();L.zalgo=_P();L.maps={};L.maps.america=PP()(L);L.maps.zebra=kP()(L);L.maps.rainbow=AP()(L);L.maps.random=$P()(L);for(OP in L.maps)(function(e){L[e]=function(t){return jF(L.maps[e],t)}})(OP);var OP;MP(L,AF())});var qP=_((N7,NP)=>{var $F=LP();NP.exports=$F});var HP=_((q7,uu)=>{var{info:OF,debug:WP}=au(),ke=Cg(),Ag=class e{constructor(t){this.setOptions(t),this.x=null,this.y=null}setOptions(t){["boolean","number","bigint","string"].indexOf(typeof t)!==-1&&(t={content:""+t}),t=t||{},this.options=t;let r=t.content;if(["boolean","number","bigint","string"].indexOf(typeof r)!==-1)this.content=String(r);else if(!r)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof r);this.colSpan=t.colSpan||1,this.rowSpan=t.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(t,r){this.cells=r;let o=this.options.chars||{},n=t.chars,i=this.chars={};zF.forEach(function(l){Rg(o,n,l,i)}),this.truncate=this.options.truncate||t.truncate;let s=this.options.style=this.options.style||{},u=t.style;Rg(s,u,"padding-left",this),Rg(s,u,"padding-right",this),this.head=s.head||u.head,this.border=s.border||u.border,this.fixedWidth=t.colWidths[this.x],this.lines=this.computeLines(t),this.desiredWidth=ke.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(t){let r=t.wordWrap||t.textWrap,{wordWrap:o=r}=this.options;if(this.fixedWidth&&o){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let s=1;for(;s<this.colSpan;)this.fixedWidth+=t.colWidths[this.x+s],s++}let{wrapOnWordBoundary:n=!0}=t,{wrapOnWordBoundary:i=n}=this.options;return this.wrapLines(ke.wordWrap(this.fixedWidth,this.content,i))}return this.wrapLines(this.content.split(`
54
- `))}wrapLines(t){let r=ke.colorizeLines(t);return this.href?r.map(o=>ke.hyperlink(this.href,o)):r}init(t){let r=this.x,o=this.y;this.widths=t.colWidths.slice(r,r+this.colSpan),this.heights=t.rowHeights.slice(o,o+this.rowSpan),this.width=this.widths.reduce(VP,-1),this.height=this.heights.reduce(VP,-1),this.hAlign=this.options.hAlign||t.colAligns[r],this.vAlign=this.options.vAlign||t.rowAligns[o],this.drawRight=r+this.colSpan==t.colWidths.length}draw(t,r){if(t=="top")return this.drawTop(this.drawRight);if(t=="bottom")return this.drawBottom(this.drawRight);let o=ke.truncate(this.content,10,this.truncate);t||OF(`${this.y}-${this.x}: ${this.rowSpan-t}x${this.colSpan} Cell ${o}`);let n=Math.max(this.height-this.lines.length,0),i;switch(this.vAlign){case"center":i=Math.ceil(n/2);break;case"bottom":i=n;break;default:i=0}if(t<i||t>=i+this.lines.length)return this.drawEmpty(this.drawRight,r);let s=this.lines.length>this.height&&t+1>=this.height;return this.drawLine(t-i,this.drawRight,s,r)}drawTop(t){let r=[];return this.cells?this.widths.forEach(function(o,n){r.push(this._topLeftChar(n)),r.push(ke.repeat(this.chars[this.y==0?"top":"mid"],o))},this):(r.push(this._topLeftChar(0)),r.push(ke.repeat(this.chars[this.y==0?"top":"mid"],this.width))),t&&r.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",r.join(""))}_topLeftChar(t){let r=this.x+t,o;if(this.y==0)o=r==0?"topLeft":t==0?"topMid":"top";else if(r==0)o="leftMid";else if(o=t==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][r]instanceof e.ColSpanCell&&(o=t==0?"topMid":"mid"),t==0)){let i=1;for(;this.cells[this.y][r-i]instanceof e.ColSpanCell;)i++;this.cells[this.y][r-i]instanceof e.RowSpanCell&&(o="leftMid")}return this.chars[o]}wrapWithStyleColors(t,r){if(this[t]&&this[t].length)try{let o=qP();for(let n=this[t].length-1;n>=0;n--)o=o[this[t][n]];return o(r)}catch{return r}else return r}drawLine(t,r,o,n){let i=this.chars[this.x==0?"left":"middle"];if(this.x&&n&&this.cells){let m=this.cells[this.y+n][this.x-1];for(;m instanceof Oo;)m=this.cells[m.y][m.x-1];m instanceof Mo||(i=this.chars.rightMid)}let s=ke.repeat(" ",this.paddingLeft),u=r?this.chars.right:"",l=ke.repeat(" ",this.paddingRight),c=this.lines[t],p=this.width-(this.paddingLeft+this.paddingRight);o&&(c+=this.truncate||"\u2026");let d=ke.truncate(c,p,this.truncate);return d=ke.pad(d,p," ",this.hAlign),d=s+d+l,this.stylizeLine(i,d,u)}stylizeLine(t,r,o){return t=this.wrapWithStyleColors("border",t),o=this.wrapWithStyleColors("border",o),this.y===0&&(r=this.wrapWithStyleColors("head",r)),t+r+o}drawBottom(t){let r=this.chars[this.x==0?"bottomLeft":"bottomMid"],o=ke.repeat(this.chars.bottom,this.width),n=t?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",r+o+n)}drawEmpty(t,r){let o=this.chars[this.x==0?"left":"middle"];if(this.x&&r&&this.cells){let s=this.cells[this.y+r][this.x-1];for(;s instanceof Oo;)s=this.cells[s.y][s.x-1];s instanceof Mo||(o=this.chars.rightMid)}let n=t?this.chars.right:"",i=ke.repeat(" ",this.width);return this.stylizeLine(o,i,n)}},Oo=class{constructor(){}draw(t){return typeof t=="number"&&WP(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},Mo=class{constructor(t){this.originalCell=t}init(t){let r=this.y,o=this.originalCell.y;this.cellOffset=r-o,this.offset=MF(t.rowHeights,o,this.cellOffset)}draw(t){return t=="top"?this.originalCell.draw(this.offset,this.cellOffset):t=="bottom"?this.originalCell.draw("bottom"):(WP(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+t))}mergeTableOptions(){}};function UP(...e){return e.filter(t=>t!=null).shift()}function Rg(e,t,r,o){let n=r.split("-");n.length>1?(n[1]=n[1].charAt(0).toUpperCase()+n[1].substr(1),n=n.join(""),o[n]=UP(e[n],e[r],t[n],t[r])):o[r]=UP(e[r],t[r])}function MF(e,t,r){let o=e[t];for(let n=1;n<r;n++)o+=1+e[t+n];return o}function VP(e,t){return e+t+1}var zF=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];uu.exports=Ag;uu.exports.ColSpanCell=Oo;uu.exports.RowSpanCell=Mo});var GP=_((U7,ZP)=>{var{warn:FF,debug:BF}=au(),jg=HP(),{ColSpanCell:LF,RowSpanCell:NF}=jg;(function(){function e(h,g){return h[g]>0?e(h,g+1):g}function t(h){let g={};h.forEach(function(y,P){let D=0;y.forEach(function(A){A.y=P,A.x=P?e(g,D):D;let N=A.rowSpan||1,O=A.colSpan||1;if(N>1)for(let Q=0;Q<O;Q++)g[A.x+Q]=N;D=A.x+O}),Object.keys(g).forEach(A=>{g[A]--,g[A]<1&&delete g[A]})})}function r(h){let g=0;return h.forEach(function(y){y.forEach(function(P){g=Math.max(g,P.x+(P.colSpan||1))})}),g}function o(h){return h.length}function n(h,g){let y=h.y,P=h.y-1+(h.rowSpan||1),D=g.y,A=g.y-1+(g.rowSpan||1),N=!(y>A||D>P),O=h.x,Q=h.x-1+(h.colSpan||1),Ve=g.x,ae=g.x-1+(g.colSpan||1),cv=!(O>ae||Ve>Q);return N&&cv}function i(h,g,y){let P=Math.min(h.length-1,y),D={x:g,y};for(let A=0;A<=P;A++){let N=h[A];for(let O=0;O<N.length;O++)if(n(D,N[O]))return!0}return!1}function s(h,g,y,P){for(let D=y;D<P;D++)if(i(h,D,g))return!1;return!0}function u(h){h.forEach(function(g,y){g.forEach(function(P){for(let D=1;D<P.rowSpan;D++){let A=new NF(P);A.x=P.x,A.y=P.y+D,A.colSpan=P.colSpan,c(A,h[y+D])}})})}function l(h){for(let g=h.length-1;g>=0;g--){let y=h[g];for(let P=0;P<y.length;P++){let D=y[P];for(let A=1;A<D.colSpan;A++){let N=new LF;N.x=D.x+A,N.y=D.y,y.splice(P+1,0,N)}}}}function c(h,g){let y=0;for(;y<g.length&&g[y].x<h.x;)y++;g.splice(y,0,h)}function p(h){let g=o(h),y=r(h);BF(`Max rows: ${g}; Max cols: ${y}`);for(let P=0;P<g;P++)for(let D=0;D<y;D++)if(!i(h,D,P)){let A={x:D,y:P,colSpan:1,rowSpan:1};for(D++;D<y&&!i(h,D,P);)A.colSpan++,D++;let N=P+1;for(;N<g&&s(h,N,A.x,A.x+A.colSpan);)A.rowSpan++,N++;let O=new jg(A);O.x=A.x,O.y=A.y,FF(`Missing cell at ${O.y}-${O.x}.`),c(O,h[P])}}function d(h){return h.map(function(g){if(!Array.isArray(g)){let y=Object.keys(g)[0];g=g[y],Array.isArray(g)?(g=g.slice(),g.unshift(y)):g=[y,g]}return g.map(function(y){return new jg(y)})})}function m(h){let g=d(h);return t(g),p(g),u(g),l(g),g}ZP.exports={makeTableLayout:m,layoutTable:t,addRowSpanCells:u,maxWidth:r,fillInTable:p,computeWidths:KP("colSpan","desiredWidth","x",1),computeHeights:KP("rowSpan","desiredHeight","y",1)}})();function KP(e,t,r,o){return function(n,i){let s=[],u=[],l={};i.forEach(function(c){c.forEach(function(p){(p[e]||1)>1?u.push(p):s[p[r]]=Math.max(s[p[r]]||0,p[t]||0,o)})}),n.forEach(function(c,p){typeof c=="number"&&(s[p]=c)});for(let c=u.length-1;c>=0;c--){let p=u[c],d=p[e],m=p[r],h=s[m],g=typeof n[m]=="number"?0:1;if(typeof h=="number")for(let y=1;y<d;y++)h+=1+s[m+y],typeof n[m+y]!="number"&&g++;else h=t==="desiredWidth"?p.desiredWidth-1:1,(!l[m]||l[m]<h)&&(l[m]=h);if(p[t]>h){let y=0;for(;g>0&&p[t]>h;){if(typeof n[m+y]!="number"){let P=Math.round((p[t]-h)/g);h+=P,s[m+y]+=P,g--}y++}}}Object.assign(n,s,l);for(let c=0;c<n.length;c++)n[c]=Math.max(o,n[c]||0)}}});var JP=_((V7,QP)=>{var xt=au(),qF=Cg(),$g=GP(),cu=class extends Array{constructor(t){super();let r=qF.mergeOptions(t);if(Object.defineProperty(this,"options",{value:r,enumerable:r.debug}),r.debug){switch(typeof r.debug){case"boolean":xt.setDebugLevel(xt.WARN);break;case"number":xt.setDebugLevel(r.debug);break;case"string":xt.setDebugLevel(parseInt(r.debug,10));break;default:xt.setDebugLevel(xt.WARN),xt.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof r.debug}`)}Object.defineProperty(this,"messages",{get(){return xt.debugMessages()}})}}toString(){let t=this,r=this.options.head&&this.options.head.length;r?(t=[this.options.head],this.length&&t.push.apply(t,this)):this.options.style.head=[];let o=$g.makeTableLayout(t);o.forEach(function(i){i.forEach(function(s){s.mergeTableOptions(this.options,o)},this)},this),$g.computeWidths(this.options.colWidths,o),$g.computeHeights(this.options.rowHeights,o),o.forEach(function(i){i.forEach(function(s){s.init(this.options)},this)},this);let n=[];for(let i=0;i<o.length;i++){let s=o[i],u=this.options.rowHeights[i];(i===0||!this.options.style.compact||i==1&&r)&&Og(s,"top",n);for(let l=0;l<u;l++)Og(s,l,n);i+1==o.length&&Og(s,"bottom",n)}return n.join(`
55
- `)}get width(){return this.toString().split(`
56
- `)[0].length}};cu.reset=()=>xt.reset();function Og(e,t,r){let o=[];e.forEach(function(i){o.push(i.draw(t))});let n=o.join("");n.length&&r.push(n)}QP.exports=cu});var YP=_((W7,XP)=>{XP.exports=JP()});var Ev=Iu(xv(),1),{program:j6,createCommand:$6,createArgument:O6,createOption:M6,CommanderError:z6,InvalidArgumentError:F6,InvalidOptionArgumentError:B6,Command:Dv,Argument:L6,Option:N6,Help:q6}=Ev.default;import{createInterface as G1}from"node:readline/promises";var a={};it(a,{$brand:()=>Ho,$input:()=>ud,$output:()=>sd,NEVER:()=>Uu,TimePrecision:()=>pd,ZodAny:()=>tm,ZodArray:()=>im,ZodBase64:()=>Sa,ZodBase64URL:()=>ba,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>Ea,ZodBoolean:()=>Hn,ZodCIDRv4:()=>va,ZodCIDRv6:()=>ya,ZodCUID:()=>la,ZodCUID2:()=>da,ZodCatch:()=>wm,ZodCodec:()=>Ra,ZodCustom:()=>Yr,ZodCustomStringFormat:()=>Vn,ZodDate:()=>Zr,ZodDefault:()=>Tm,ZodDiscriminatedUnion:()=>sm,ZodE164:()=>Ta,ZodEmail:()=>sa,ZodEmoji:()=>ua,ZodEnum:()=>qn,ZodError:()=>m0,ZodExactOptional:()=>ym,ZodFile:()=>gm,ZodFirstPartyTypeKind:()=>Bm,ZodFunction:()=>Mm,ZodGUID:()=>Ur,ZodIPv4:()=>fa,ZodIPv6:()=>ga,ZodISODate:()=>ta,ZodISODateTime:()=>ea,ZodISODuration:()=>ra,ZodISOTime:()=>na,ZodIntersection:()=>um,ZodIssueCode:()=>f0,ZodJWT:()=>xa,ZodKSUID:()=>ha,ZodLazy:()=>jm,ZodLiteral:()=>fm,ZodMAC:()=>Zp,ZodMap:()=>mm,ZodNaN:()=>Cm,ZodNanoID:()=>ca,ZodNever:()=>rm,ZodNonOptional:()=>Ca,ZodNull:()=>Yp,ZodNullable:()=>bm,ZodNumber:()=>Wn,ZodNumberFormat:()=>Xt,ZodObject:()=>Qr,ZodOptional:()=>Pa,ZodPipe:()=>ka,ZodPrefault:()=>Em,ZodPromise:()=>Om,ZodReadonly:()=>km,ZodRealError:()=>Te,ZodRecord:()=>Xr,ZodSet:()=>hm,ZodString:()=>Un,ZodStringFormat:()=>W,ZodSuccess:()=>_m,ZodSymbol:()=>Jp,ZodTemplateLiteral:()=>Am,ZodTransform:()=>vm,ZodTuple:()=>lm,ZodType:()=>z,ZodULID:()=>pa,ZodURL:()=>Kr,ZodUUID:()=>Ge,ZodUndefined:()=>Xp,ZodUnion:()=>Jr,ZodUnknown:()=>nm,ZodVoid:()=>om,ZodXID:()=>ma,ZodXor:()=>am,_ZodString:()=>aa,_default:()=>xm,_function:()=>rb,any:()=>OS,array:()=>Gr,base64:()=>yS,base64url:()=>SS,bigint:()=>kS,boolean:()=>Qp,catch:()=>Pm,check:()=>ob,cidrv4:()=>gS,cidrv6:()=>vS,clone:()=>de,codec:()=>eb,coerce:()=>Lm,config:()=>Z,core:()=>ct,cuid:()=>uS,cuid2:()=>cS,custom:()=>ib,date:()=>zS,decode:()=>Np,decodeAsync:()=>Up,describe:()=>ab,discriminatedUnion:()=>US,e164:()=>bS,email:()=>Xy,emoji:()=>aS,encode:()=>Lp,encodeAsync:()=>qp,endsWith:()=>An,enum:()=>_a,exactOptional:()=>Sm,file:()=>QS,flattenError:()=>kr,float32:()=>_S,float64:()=>wS,formatError:()=>Rr,fromJSONSchema:()=>mb,function:()=>rb,getErrorMap:()=>v0,globalRegistry:()=>te,gt:()=>Ke,gte:()=>pe,guid:()=>Yy,hash:()=>IS,hex:()=>DS,hostname:()=>ES,httpUrl:()=>iS,includes:()=>kn,instanceof:()=>ub,int:()=>ia,int32:()=>PS,int64:()=>RS,intersection:()=>cm,ipv4:()=>mS,ipv6:()=>fS,iso:()=>Nn,json:()=>lb,jwt:()=>TS,keyof:()=>FS,ksuid:()=>pS,lazy:()=>$m,length:()=>Qt,literal:()=>GS,locales:()=>Br,looseObject:()=>NS,looseRecord:()=>WS,lowercase:()=>Pn,lt:()=>He,lte:()=>we,mac:()=>hS,map:()=>HS,maxLength:()=>Gt,maxSize:()=>kt,meta:()=>sb,mime:()=>jn,minLength:()=>ut,minSize:()=>Ze,multipleOf:()=>Ct,nan:()=>YS,nanoid:()=>sS,nativeEnum:()=>ZS,negative:()=>Vi,never:()=>Da,nonnegative:()=>Hi,nonoptional:()=>Im,nonpositive:()=>Wi,normalize:()=>$n,null:()=>em,nullable:()=>Wr,nullish:()=>JS,number:()=>Gp,object:()=>BS,optional:()=>Vr,overwrite:()=>Le,parse:()=>Mp,parseAsync:()=>zp,partialRecord:()=>VS,pipe:()=>Hr,positive:()=>Ui,prefault:()=>Dm,preprocess:()=>db,prettifyError:()=>tc,promise:()=>nb,property:()=>Ki,readonly:()=>Rm,record:()=>pm,refine:()=>zm,regex:()=>wn,regexes:()=>je,registry:()=>xi,safeDecode:()=>Wp,safeDecodeAsync:()=>Kp,safeEncode:()=>Vp,safeEncodeAsync:()=>Hp,safeParse:()=>Fp,safeParseAsync:()=>Bp,set:()=>KS,setErrorMap:()=>g0,size:()=>Zt,slugify:()=>Fn,startsWith:()=>Rn,strictObject:()=>LS,string:()=>oa,stringFormat:()=>xS,stringbool:()=>cb,success:()=>XS,superRefine:()=>Fm,symbol:()=>jS,templateLiteral:()=>tb,toJSONSchema:()=>Ji,toLowerCase:()=>Mn,toUpperCase:()=>zn,transform:()=>wa,treeifyError:()=>ec,trim:()=>On,tuple:()=>dm,uint32:()=>CS,uint64:()=>AS,ulid:()=>lS,undefined:()=>$S,union:()=>Ia,unknown:()=>Jt,uppercase:()=>Cn,url:()=>oS,util:()=>T,uuid:()=>eS,uuidv4:()=>tS,uuidv6:()=>nS,uuidv7:()=>rS,void:()=>MS,xid:()=>dS,xor:()=>qS});var ct={};it(ct,{$ZodAny:()=>Cl,$ZodArray:()=>$l,$ZodAsyncError:()=>Be,$ZodBase64:()=>Sl,$ZodBase64URL:()=>bl,$ZodBigInt:()=>fi,$ZodBigIntFormat:()=>Il,$ZodBoolean:()=>Or,$ZodCIDRv4:()=>gl,$ZodCIDRv6:()=>vl,$ZodCUID:()=>ol,$ZodCUID2:()=>il,$ZodCatch:()=>Xl,$ZodCheck:()=>H,$ZodCheckBigIntFormat:()=>$c,$ZodCheckEndsWith:()=>Hc,$ZodCheckGreaterThan:()=>ui,$ZodCheckIncludes:()=>Vc,$ZodCheckLengthEquals:()=>Lc,$ZodCheckLessThan:()=>si,$ZodCheckLowerCase:()=>qc,$ZodCheckMaxLength:()=>Fc,$ZodCheckMaxSize:()=>Oc,$ZodCheckMimeType:()=>Zc,$ZodCheckMinLength:()=>Bc,$ZodCheckMinSize:()=>Mc,$ZodCheckMultipleOf:()=>Ac,$ZodCheckNumberFormat:()=>jc,$ZodCheckOverwrite:()=>Gc,$ZodCheckProperty:()=>Kc,$ZodCheckRegex:()=>Nc,$ZodCheckSizeEquals:()=>zc,$ZodCheckStartsWith:()=>Wc,$ZodCheckStringFormat:()=>In,$ZodCheckUpperCase:()=>Uc,$ZodCodec:()=>zr,$ZodCustom:()=>ad,$ZodCustomStringFormat:()=>El,$ZodDate:()=>jl,$ZodDefault:()=>Zl,$ZodDiscriminatedUnion:()=>zl,$ZodE164:()=>Tl,$ZodEmail:()=>el,$ZodEmoji:()=>nl,$ZodEncodeError:()=>Dt,$ZodEnum:()=>ql,$ZodError:()=>Cr,$ZodExactOptional:()=>Hl,$ZodFile:()=>Vl,$ZodFunction:()=>rd,$ZodGUID:()=>Xc,$ZodIPv4:()=>ml,$ZodIPv6:()=>hl,$ZodISODate:()=>ll,$ZodISODateTime:()=>cl,$ZodISODuration:()=>pl,$ZodISOTime:()=>dl,$ZodIntersection:()=>Fl,$ZodJWT:()=>xl,$ZodKSUID:()=>ul,$ZodLazy:()=>id,$ZodLiteral:()=>Ul,$ZodMAC:()=>fl,$ZodMap:()=>Ll,$ZodNaN:()=>Yl,$ZodNanoID:()=>rl,$ZodNever:()=>Rl,$ZodNonOptional:()=>Ql,$ZodNull:()=>Pl,$ZodNullable:()=>Kl,$ZodNumber:()=>hi,$ZodNumberFormat:()=>Dl,$ZodObject:()=>Jv,$ZodObjectJIT:()=>Ol,$ZodOptional:()=>vi,$ZodPipe:()=>ed,$ZodPrefault:()=>Gl,$ZodPromise:()=>od,$ZodReadonly:()=>td,$ZodRealError:()=>be,$ZodRecord:()=>Bl,$ZodRegistry:()=>Ti,$ZodSet:()=>Nl,$ZodString:()=>Kt,$ZodStringFormat:()=>V,$ZodSuccess:()=>Jl,$ZodSymbol:()=>_l,$ZodTemplateLiteral:()=>nd,$ZodTransform:()=>Wl,$ZodTuple:()=>gi,$ZodType:()=>$,$ZodULID:()=>al,$ZodURL:()=>tl,$ZodUUID:()=>Yc,$ZodUndefined:()=>wl,$ZodUnion:()=>Mr,$ZodUnknown:()=>kl,$ZodVoid:()=>Al,$ZodXID:()=>sl,$ZodXor:()=>Ml,$brand:()=>Ho,$constructor:()=>f,$input:()=>ud,$output:()=>sd,Doc:()=>$r,JSONSchema:()=>Qy,JSONSchemaGenerator:()=>Xi,NEVER:()=>Uu,TimePrecision:()=>pd,_any:()=>jd,_array:()=>Ld,_base64:()=>Bi,_base64url:()=>Li,_bigint:()=>_d,_boolean:()=>Dd,_catch:()=>i0,_check:()=>Gy,_cidrv4:()=>zi,_cidrv6:()=>Fi,_coercedBigint:()=>wd,_coercedBoolean:()=>Id,_coercedDate:()=>Fd,_coercedNumber:()=>yd,_coercedString:()=>ld,_cuid:()=>ki,_cuid2:()=>Ri,_custom:()=>qd,_date:()=>zd,_decode:()=>Xo,_decodeAsync:()=>ei,_default:()=>n0,_discriminatedUnion:()=>VA,_e164:()=>Ni,_email:()=>Ei,_emoji:()=>Pi,_encode:()=>Jo,_encodeAsync:()=>Yo,_endsWith:()=>An,_enum:()=>QA,_file:()=>Nd,_float32:()=>bd,_float64:()=>Td,_gt:()=>Ke,_gte:()=>pe,_guid:()=>Lr,_includes:()=>kn,_int:()=>Sd,_int32:()=>xd,_int64:()=>Pd,_intersection:()=>WA,_ipv4:()=>Oi,_ipv6:()=>Mi,_isoDate:()=>hd,_isoDateTime:()=>md,_isoDuration:()=>gd,_isoTime:()=>fd,_jwt:()=>qi,_ksuid:()=>$i,_lazy:()=>c0,_length:()=>Qt,_literal:()=>XA,_lowercase:()=>Pn,_lt:()=>He,_lte:()=>we,_mac:()=>dd,_map:()=>ZA,_max:()=>we,_maxLength:()=>Gt,_maxSize:()=>kt,_mime:()=>jn,_min:()=>pe,_minLength:()=>ut,_minSize:()=>Ze,_multipleOf:()=>Ct,_nan:()=>Bd,_nanoid:()=>Ci,_nativeEnum:()=>JA,_negative:()=>Vi,_never:()=>Od,_nonnegative:()=>Hi,_nonoptional:()=>r0,_nonpositive:()=>Wi,_normalize:()=>$n,_null:()=>Ad,_nullable:()=>t0,_number:()=>vd,_optional:()=>e0,_overwrite:()=>Le,_parse:()=>Tn,_parseAsync:()=>xn,_pipe:()=>a0,_positive:()=>Ui,_promise:()=>l0,_property:()=>Ki,_readonly:()=>s0,_record:()=>KA,_refine:()=>Ud,_regex:()=>wn,_safeDecode:()=>ni,_safeDecodeAsync:()=>oi,_safeEncode:()=>ti,_safeEncodeAsync:()=>ri,_safeParse:()=>En,_safeParseAsync:()=>Dn,_set:()=>GA,_size:()=>Zt,_slugify:()=>Fn,_startsWith:()=>Rn,_string:()=>cd,_stringFormat:()=>Bn,_stringbool:()=>Kd,_success:()=>o0,_superRefine:()=>Vd,_symbol:()=>kd,_templateLiteral:()=>u0,_toLowerCase:()=>Mn,_toUpperCase:()=>zn,_transform:()=>YA,_trim:()=>On,_tuple:()=>HA,_uint32:()=>Ed,_uint64:()=>Cd,_ulid:()=>Ai,_undefined:()=>Rd,_union:()=>qA,_unknown:()=>$d,_uppercase:()=>Cn,_url:()=>Nr,_uuid:()=>Di,_uuidv4:()=>Ii,_uuidv6:()=>_i,_uuidv7:()=>wi,_void:()=>Md,_xid:()=>ji,_xor:()=>UA,clone:()=>de,config:()=>Z,createStandardJSONSchemaMethod:()=>Ln,createToJSONSchemaMethod:()=>Zd,decode:()=>mR,decodeAsync:()=>fR,describe:()=>Wd,encode:()=>pR,encodeAsync:()=>hR,extractDefs:()=>At,finalize:()=>jt,flattenError:()=>kr,formatError:()=>Rr,globalConfig:()=>xr,globalRegistry:()=>te,initializeContext:()=>Rt,isValidBase64:()=>yl,isValidBase64URL:()=>Kv,isValidJWT:()=>Zv,locales:()=>Br,meta:()=>Hd,parse:()=>Go,parseAsync:()=>Qo,prettifyError:()=>tc,process:()=>U,regexes:()=>je,registry:()=>xi,safeDecode:()=>vR,safeDecodeAsync:()=>SR,safeEncode:()=>gR,safeEncodeAsync:()=>yR,safeParse:()=>nc,safeParseAsync:()=>rc,toDotPath:()=>Cv,toJSONSchema:()=>Ji,treeifyError:()=>ec,util:()=>T,version:()=>Qc});var Uu=Object.freeze({status:"aborted"});function f(e,t,r){function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let c=s.prototype,p=Object.keys(c);for(let d=0;d<p.length;d++){let m=p[d];m in u||(u[m]=c[m].bind(u))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function s(u){var l;let c=r?.Parent?new i:this;o(c,u),(l=c._zod).deferred??(l.deferred=[]);for(let p of c._zod.deferred)p();return c}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Ho=Symbol("zod_brand"),Be=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Dt=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},xr={};function Z(e){return e&&Object.assign(xr,e),xr}var T={};it(T,{BIGINT_FORMAT_RANGES:()=>Yu,Class:()=>Wu,NUMBER_FORMAT_RANGES:()=>Xu,aborted:()=>Pt,allowsEval:()=>Zu,assert:()=>Vk,assertEqual:()=>Lk,assertIs:()=>qk,assertNever:()=>Uk,assertNotEqual:()=>Nk,assignProp:()=>_t,base64ToUint8Array:()=>_v,base64urlToUint8Array:()=>sR,cached:()=>Sn,captureStackTrace:()=>Zo,cleanEnum:()=>aR,cleanRegex:()=>Ir,clone:()=>de,cloneDef:()=>Hk,createTransparentProxy:()=>Xk,defineLazy:()=>F,esc:()=>Ko,escapeRegex:()=>Ae,extend:()=>tR,finalizeIssue:()=>Se,floatSafeRemainder:()=>Hu,getElementAtPath:()=>Kk,getEnumValues:()=>Dr,getLengthableOrigin:()=>Pr,getParsedType:()=>Jk,getSizableOrigin:()=>wr,hexToUint8Array:()=>cR,isObject:()=>Wt,isPlainObject:()=>wt,issue:()=>bn,joinValues:()=>v,jsonStringifyReplacer:()=>yn,merge:()=>rR,mergeDefs:()=>st,normalizeParams:()=>x,nullish:()=>It,numKeys:()=>Qk,objectClone:()=>Wk,omit:()=>eR,optionalKeys:()=>Ju,parsedType:()=>b,partial:()=>oR,pick:()=>Yk,prefixIssues:()=>_e,primitiveTypes:()=>Qu,promiseAllObject:()=>Zk,propertyKeyTypes:()=>_r,randomString:()=>Gk,required:()=>iR,safeExtend:()=>nR,shallowClone:()=>Gu,slugify:()=>Ku,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>wv,uint8ArrayToBase64url:()=>uR,uint8ArrayToHex:()=>lR,unwrapMessage:()=>Er});function Lk(e){return e}function Nk(e){return e}function qk(e){}function Uk(e){throw new Error("Unexpected value in exhaustive check")}function Vk(e){}function Dr(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function v(e,t="|"){return e.map(r=>S(r)).join(t)}function yn(e,t){return typeof t=="bigint"?t.toString():t}function Sn(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function It(e){return e==null}function Ir(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Hu(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return s%u/10**i}var Iv=Symbol("evaluating");function F(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Iv)return o===void 0&&(o=Iv,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Wk(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function _t(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function st(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function Hk(e){return st(e._zod.def)}function Kk(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function Zk(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function Gk(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ko(e){return JSON.stringify(e)}function Ku(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Zo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Wt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Zu=Sn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function wt(e){if(Wt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Wt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Gu(e){return wt(e)?{...e}:Array.isArray(e)?[...e]:e}function Qk(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Jk=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},_r=new Set(["string","number","symbol"]),Qu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ae(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function x(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Xk(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ju(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Xu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Yu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Yk(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=st(e._zod.def,{get shape(){let s={};for(let u in t){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(s[u]=r.shape[u])}return _t(this,"shape",s),s},checks:[]});return de(e,i)}function eR(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=st(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let u in t){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete s[u]}return _t(this,"shape",s),s},checks:[]});return de(e,i)}function tR(e,t){if(!wt(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=st(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _t(this,"shape",i),i}});return de(e,n)}function nR(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=st(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return _t(this,"shape",o),o}});return de(e,r)}function rR(e,t){let r=st(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return _t(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return de(e,r)}function oR(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=st(t._zod.def,{get shape(){let u=t._zod.def.shape,l={...u};if(r)for(let c in r){if(!(c in u))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(l[c]=e?new e({type:"optional",innerType:u[c]}):u[c])}else for(let c in u)l[c]=e?new e({type:"optional",innerType:u[c]}):u[c];return _t(this,"shape",l),l},checks:[]});return de(t,s)}function iR(e,t,r){let o=st(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new e({type:"nonoptional",innerType:n[s]});return _t(this,"shape",i),i}});return de(t,o)}function Pt(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function _e(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Er(e){return typeof e=="string"?e:e?.message}function Se(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Er(e.inst?._zod.def?.error?.(e))??Er(t?.error?.(e))??Er(r.customError?.(e))??Er(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function wr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Pr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function bn(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function aR(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function _v(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function wv(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function sR(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return _v(t+r)}function uR(e){return wv(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cR(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function lR(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Wu=class{constructor(...t){}};var Pv=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cr=f("$ZodError",Pv),be=f("$ZodError",Pv,{Parent:Error});function kr(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Rr(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}};return o(e),r}function ec(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var s,u;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>o({issues:c},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let c=[...i,...l.path];if(c.length===0){r.errors.push(t(l));continue}let p=r,d=0;for(;d<c.length;){let m=c[d],h=d===c.length-1;typeof m=="string"?(p.properties??(p.properties={}),(s=p.properties)[m]??(s[m]={errors:[]}),p=p.properties[m]):(p.items??(p.items=[]),(u=p.items)[m]??(u[m]={errors:[]}),p=p.items[m]),h&&p.errors.push(t(l)),d++}}};return o(e),r}function Cv(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function tc(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Cv(o.path)}`);return t.join(`
57
- `)}var Tn=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Be;if(s.issues.length){let u=new(n?.Err??e)(s.issues.map(l=>Se(l,i,Z())));throw Zo(u,n?.callee),u}return s.value},Go=Tn(be),xn=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??e)(s.issues.map(l=>Se(l,i,Z())));throw Zo(u,n?.callee),u}return s.value},Qo=xn(be),En=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Be;return i.issues.length?{success:!1,error:new(e??Cr)(i.issues.map(s=>Se(s,n,Z())))}:{success:!0,data:i.value}},nc=En(be),Dn=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Se(s,n,Z())))}:{success:!0,data:i.value}},rc=Dn(be),Jo=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Tn(e)(t,r,n)},pR=Jo(be),Xo=e=>(t,r,o)=>Tn(e)(t,r,o),mR=Xo(be),Yo=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return xn(e)(t,r,n)},hR=Yo(be),ei=e=>async(t,r,o)=>xn(e)(t,r,o),fR=ei(be),ti=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return En(e)(t,r,n)},gR=ti(be),ni=e=>(t,r,o)=>En(e)(t,r,o),vR=ni(be),ri=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dn(e)(t,r,n)},yR=ri(be),oi=e=>async(t,r,o)=>Dn(e)(t,r,o),SR=oi(be);var je={};it(je,{base64:()=>Sc,base64url:()=>ii,bigint:()=>Ic,boolean:()=>wc,browserEmail:()=>wR,cidrv4:()=>vc,cidrv6:()=>yc,cuid:()=>oc,cuid2:()=>ic,date:()=>Tc,datetime:()=>Ec,domain:()=>kR,duration:()=>lc,e164:()=>bc,email:()=>pc,emoji:()=>mc,extendedDuration:()=>bR,guid:()=>dc,hex:()=>RR,hostname:()=>CR,html5Email:()=>DR,idnEmail:()=>_R,integer:()=>_c,ipv4:()=>hc,ipv6:()=>fc,ksuid:()=>uc,lowercase:()=>kc,mac:()=>gc,md5_base64:()=>jR,md5_base64url:()=>$R,md5_hex:()=>AR,nanoid:()=>cc,null:()=>Pc,number:()=>ai,rfc5322Email:()=>IR,sha1_base64:()=>MR,sha1_base64url:()=>zR,sha1_hex:()=>OR,sha256_base64:()=>BR,sha256_base64url:()=>LR,sha256_hex:()=>FR,sha384_base64:()=>qR,sha384_base64url:()=>UR,sha384_hex:()=>NR,sha512_base64:()=>WR,sha512_base64url:()=>HR,sha512_hex:()=>VR,string:()=>Dc,time:()=>xc,ulid:()=>ac,undefined:()=>Cc,unicodeEmail:()=>kv,uppercase:()=>Rc,uuid:()=>Ht,uuid4:()=>TR,uuid6:()=>xR,uuid7:()=>ER,xid:()=>sc});var oc=/^[cC][^\s-]{8,}$/,ic=/^[0-9a-z]+$/,ac=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sc=/^[0-9a-vA-V]{20}$/,uc=/^[A-Za-z0-9]{27}$/,cc=/^[a-zA-Z0-9_-]{21}$/,lc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ht=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,TR=Ht(4),xR=Ht(6),ER=Ht(7),pc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,IR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,kv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,_R=kv,wR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,PR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mc(){return new RegExp(PR,"u")}var hc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,gc=e=>{let t=Ae(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},vc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,yc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ii=/^[A-Za-z0-9_-]*$/,CR=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,kR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bc=/^\+[1-9]\d{6,14}$/,Rv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Tc=new RegExp(`^${Rv}$`);function Av(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xc(e){return new RegExp(`^${Av(e)}$`)}function Ec(e){let t=Av({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Rv}T(?:${o})$`)}var Dc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ic=/^-?\d+n?$/,_c=/^-?\d+$/,ai=/^-?\d+(?:\.\d+)?$/,wc=/^(?:true|false)$/i,Pc=/^null$/i;var Cc=/^undefined$/i;var kc=/^[^A-Z]*$/,Rc=/^[^a-z]*$/,RR=/^[0-9a-fA-F]*$/;function Ar(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function jr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var AR=/^[0-9a-fA-F]{32}$/,jR=Ar(22,"=="),$R=jr(22),OR=/^[0-9a-fA-F]{40}$/,MR=Ar(27,"="),zR=jr(27),FR=/^[0-9a-fA-F]{64}$/,BR=Ar(43,"="),LR=jr(43),NR=/^[0-9a-fA-F]{96}$/,qR=Ar(64,""),UR=jr(64),VR=/^[0-9a-fA-F]{128}$/,WR=Ar(86,"=="),HR=jr(86);var H=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),$v={number:"number",bigint:"bigint",object:"date"},si=f("$ZodCheckLessThan",(e,t)=>{H.init(e,t);let r=$v[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ui=f("$ZodCheckGreaterThan",(e,t)=>{H.init(e,t);let r=$v[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ac=f("$ZodCheckMultipleOf",(e,t)=>{H.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Hu(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),jc=f("$ZodCheckNumberFormat",(e,t)=>{H.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Xu[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=n,u.maximum=i,r&&(u.pattern=_c)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),$c=f("$ZodCheckBigIntFormat",(e,t)=>{H.init(e,t);let[r,o]=Yu[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Oc=f("$ZodCheckMaxSize",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:wr(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Mc=f("$ZodCheckMinSize",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:wr(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),zc=f("$ZodCheckSizeEquals",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let s=i>t.size;o.issues.push({origin:wr(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Fc=f("$ZodCheckMaxLength",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let s=Pr(n);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Bc=f("$ZodCheckMinLength",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let s=Pr(n);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Lc=f("$ZodCheckLengthEquals",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!It(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let s=Pr(n),u=i>t.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),In=f("$ZodCheckStringFormat",(e,t)=>{var r,o;H.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Nc=f("$ZodCheckRegex",(e,t)=>{In.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qc=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=kc),In.init(e,t)}),Uc=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Rc),In.init(e,t)}),Vc=f("$ZodCheckIncludes",(e,t)=>{H.init(e,t);let r=Ae(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Wc=f("$ZodCheckStartsWith",(e,t)=>{H.init(e,t);let r=new RegExp(`^${Ae(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Hc=f("$ZodCheckEndsWith",(e,t)=>{H.init(e,t);let r=new RegExp(`.*${Ae(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function jv(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues))}var Kc=f("$ZodCheckProperty",(e,t)=>{H.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>jv(n,r,t.property));jv(o,r,t.property)}}),Zc=f("$ZodCheckMimeType",(e,t)=>{H.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Gc=f("$ZodCheckOverwrite",(e,t)=>{H.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var $r=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
55
+ `.trim()},blockValue:function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),o=[this.contextName(0)];this.setupHelperArgs(t,0,o);var n=this.popStack();o.splice(1,0,n),this.push(this.source.functionCall(r,"call",o))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var o=this.topStack();r.splice(1,0,o),this.pushSource(["if (!",this.lastHelper,") { ",o," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,r,o,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[i++])):this.pushContext(),this.resolvePath("context",t,i,r,o)},lookupBlockParam:function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(t,r,o){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,o)},resolvePath:function(t,r,o,n,i){var s=this;if(this.options.strict||this.options.assumeObjects){this.push(s4(this.options.strict&&i,this,r,o,t));return}for(var c=r.length;o<c;o++)this.replaceStack(function(l){var u=s.nameLookup(l,r[o],t);return n?[" && ",u]:[" != null ? ",u," : ",l]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,r){var o=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(o,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(t,r,o){var n=this.popStack(),i=this.setupHelper(t,r),s=[];o&&s.push(i.name),s.push(n),this.options.strict||s.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(s,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},itemsSeparatedBy:function(t,r){var o=[];o.push(t[0]);for(var n=1;n<t.length;n++)o.push(r,t[n]);return o},invokeKnownHelper:function(t,r){var o=this.setupHelper(t,r);this.push(this.source.functionCall(o.name,"call",o.callParams))},invokeAmbiguous:function(t,r){this.useRegister("helper");var o=this.popStack();this.emptyHash();var n=this.setupHelper(0,t,r),i=this.lastHelper=this.nameLookup("helpers",t,"helper"),s=["(","(helper = ",i," || ",o,")"];this.options.strict||(s[0]="(helper = ",s.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",s,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(t,r,o){var n=[],i=this.setupParams(r,1,n);t&&(r=this.popStack(),delete i.name),o&&(i.indent=JSON.stringify(o)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",t?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(t){var r=this.popStack(),o=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),o=this.popStack());var s=this.hash;o&&(s.contexts[t]=o),n&&(s.types[t]=n),i&&(s.ids[t]=i),s.values[t]=r},pushId:function(t,r,o){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(o?" + "+JSON.stringify("."+o):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:gr,compileChildren:function(t,r){for(var o=t.children,n=void 0,i=void 0,s=0,c=o.length;s<c;s++){n=o[s],i=new this.compiler;var l=this.matchExistingProgram(n);if(l==null){this.context.programs.push("");var u=this.context.programs.length;n.index=u,n.name="program"+u,this.context.programs[u]=i.compile(n,r,this.context,!this.precompile),this.context.decorators[u]=i.decorators,this.context.environments[u]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=l.index,n.name="program"+l.index,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams}},matchExistingProgram:function(t){for(var r=0,o=this.context.environments.length;r<o;r++){var n=this.context.environments[r];if(n&&n.equals(t))return n}},programExpression:function(t){var r=this.environment.children[t],o=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths"),"container.program("+o.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof fr||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new fr(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var r=["("],o=void 0,n=void 0,i=void 0;if(!this.isInline())throw new Lg.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof fr)o=[s.value],r=["(",o],i=!0;else{n=!0;var c=this.incrStack();r=["((",this.push(c)," = ",s,")"],o=this.topStack()}var l=t.call(this,o);i||this.popStack(),n&&this.stackSlot--,this.push(r.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,o=t.length;r<o;r++){var n=t[r];if(n instanceof fr)this.compileStack.push(n);else{var i=this.incrStack();this.pushSource([i," = ",n,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var r=this.isInline(),o=(r?this.inlineStack:this.compileStack).pop();if(!t&&o instanceof fr)return o.value;if(!r){if(!this.stackSlot)throw new Lg.default("Invalid stack pop");this.stackSlot--}return o},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof fr?r.value:r},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},setupHelper:function(t,r,o){var n=[],i=this.setupHelperArgs(r,t,n,o),s=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:n,paramsInit:i,name:s,callParams:[c].concat(n)}},setupParams:function(t,r,o){var n={},i=[],s=[],c=[],l=!o,u=void 0;l&&(o=[]),n.name=this.quotedString(t),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var p=this.popStack(),d=this.popStack();(d||p)&&(n.fn=d||"container.noop",n.inverse=p||"container.noop");for(var m=r;m--;)u=this.popStack(),o[m]=u,this.trackIds&&(c[m]=this.popStack()),this.stringParams&&(s[m]=this.popStack(),i[m]=this.popStack());return l&&(n.args=this.source.generateArray(o)),this.trackIds&&(n.ids=this.source.generateArray(c)),this.stringParams&&(n.types=this.source.generateArray(s),n.contexts=this.source.generateArray(i)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(t,r,o,n){var i=this.setupParams(t,r,o);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),n?(this.useRegister("options"),o.push("options"),["options=",i]):o?(o.push(i),""):i}};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=gr.RESERVED_WORDS={},r=0,o=e.length;r<o;r++)t[e[r]]=!0})();gr.isValidJavaScriptVariableName=function(e){return!gr.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function s4(e,t,r,o,n){var i=t.popStack(),s=r.length;for(e&&s--;o<s;o++)i=t.nameLookup(i,r[o],n);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(r[o]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}dc.default=gr;oC.exports=dc.default});var cC=P((pc,sC)=>{"use strict";pc.__esModule=!0;function Fo(e){return e&&e.__esModule?e:{default:e}}var c4=uw(),u4=Fo(c4),l4=vg(),d4=Fo(l4),Ng=xw(),qg=_w(),p4=iC(),m4=Fo(p4),h4=nc(),f4=Fo(h4),g4=mg(),v4=Fo(g4),y4=u4.default.create;function aC(){var e=y4();return e.compile=function(t,r){return qg.compile(t,r,e)},e.precompile=function(t,r){return qg.precompile(t,r,e)},e.AST=d4.default,e.Compiler=qg.Compiler,e.JavaScriptCompiler=m4.default,e.Parser=Ng.parser,e.parse=Ng.parse,e.parseWithoutProcessing=Ng.parseWithoutProcessing,e}var vr=aC();vr.create=aC;v4.default(vr);vr.Visitor=f4.default;vr.default=vr;pc.default=vr;sC.exports=pc.default});var uC=P(mc=>{"use strict";mc.__esModule=!0;mc.print=x4;mc.PrintVisitor=G;function S4(e){return e&&e.__esModule?e:{default:e}}var b4=nc(),T4=S4(b4);function x4(e){return new G().accept(e)}function G(){this.padding=0}G.prototype=new T4.default;G.prototype.pad=function(e){for(var t="",r=0,o=this.padding;r<o;r++)t+=" ";return t+=e+`
56
+ `,t};G.prototype.Program=function(e){var t="",r=e.body,o=void 0,n=void 0;if(e.blockParams){var i="BLOCK PARAMS: [";for(o=0,n=e.blockParams.length;o<n;o++)i+=" "+e.blockParams[o];i+=" ]",t+=this.pad(i)}for(o=0,n=r.length;o<n;o++)t+=this.accept(r[o]);return this.padding--,t};G.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};G.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};G.prototype.BlockStatement=G.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};G.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};G.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};G.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};G.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};G.prototype.SubExpression=function(e){for(var t=e.params,r=[],o=void 0,n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return t="["+r.join(", ")+"]",o=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+o};G.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};G.prototype.StringLiteral=function(e){return'"'+e.value+'"'};G.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};G.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};G.prototype.UndefinedLiteral=function(){return"UNDEFINED"};G.prototype.NullLiteral=function(){return"NULL"};G.prototype.Hash=function(e){for(var t=e.pairs,r=[],o=0,n=t.length;o<n;o++)r.push(this.accept(t[o]));return"HASH{"+r.join(", ")+"}"};G.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var mC=P((A9,pC)=>{var hc=cC().default,dC=uC();hc.PrintVisitor=dC.PrintVisitor;hc.print=dC.print;pC.exports=hc;function lC(e,t){var r=_e("fs"),o=r.readFileSync(t,"utf8");e.exports=hc.compile(o)}typeof _e<"u"&&_e.extensions&&(_e.extensions[".handlebars"]=lC,_e.extensions[".hbs"]=lC)});var jv=Rc(Av(),1),{program:vq,createCommand:yq,createArgument:Sq,createOption:bq,CommanderError:Tq,InvalidArgumentError:xq,InvalidOptionArgumentError:Eq,Command:$v,Argument:Dq,Option:Iq,Help:_q}=jv.default;var a={};ct(a,{$brand:()=>Go,$input:()=>hd,$output:()=>md,NEVER:()=>Gc,TimePrecision:()=>yd,ZodAny:()=>sm,ZodArray:()=>dm,ZodBase64:()=>xa,ZodBase64URL:()=>Ea,ZodBigInt:()=>Jn,ZodBigIntFormat:()=>_a,ZodBoolean:()=>Qn,ZodCIDRv4:()=>ba,ZodCIDRv6:()=>Ta,ZodCUID:()=>ma,ZodCUID2:()=>ha,ZodCatch:()=>jm,ZodCodec:()=>$a,ZodCustom:()=>to,ZodCustomStringFormat:()=>Zn,ZodDate:()=>Qr,ZodDefault:()=>Pm,ZodDiscriminatedUnion:()=>mm,ZodE164:()=>Da,ZodEmail:()=>la,ZodEmoji:()=>da,ZodEnum:()=>Hn,ZodError:()=>Aj,ZodExactOptional:()=>Dm,ZodFile:()=>xm,ZodFirstPartyTypeKind:()=>Vm,ZodFunction:()=>qm,ZodGUID:()=>Vr,ZodIPv4:()=>ya,ZodIPv6:()=>Sa,ZodISODate:()=>oa,ZodISODateTime:()=>ra,ZodISODuration:()=>aa,ZodISOTime:()=>ia,ZodIntersection:()=>hm,ZodIssueCode:()=>$j,ZodJWT:()=>Ia,ZodKSUID:()=>va,ZodLazy:()=>Fm,ZodLiteral:()=>Tm,ZodMAC:()=>em,ZodMap:()=>Sm,ZodNaN:()=>Mm,ZodNanoID:()=>pa,ZodNever:()=>um,ZodNonOptional:()=>Aa,ZodNull:()=>im,ZodNullable:()=>_m,ZodNumber:()=>Gn,ZodNumberFormat:()=>rn,ZodObject:()=>Xr,ZodOptional:()=>Ra,ZodPipe:()=>ja,ZodPrefault:()=>Cm,ZodPromise:()=>Nm,ZodReadonly:()=>Om,ZodRealError:()=>xe,ZodRecord:()=>eo,ZodSet:()=>bm,ZodString:()=>Kn,ZodStringFormat:()=>V,ZodSuccess:()=>Am,ZodSymbol:()=>rm,ZodTemplateLiteral:()=>Bm,ZodTransform:()=>Em,ZodTuple:()=>gm,ZodType:()=>z,ZodULID:()=>fa,ZodURL:()=>Gr,ZodUUID:()=>Xe,ZodUndefined:()=>om,ZodUnion:()=>Yr,ZodUnknown:()=>cm,ZodVoid:()=>lm,ZodXID:()=>ga,ZodXor:()=>pm,_ZodString:()=>ua,_default:()=>wm,_function:()=>mb,any:()=>VS,array:()=>Jr,base64:()=>wS,base64url:()=>CS,bigint:()=>LS,boolean:()=>nm,catch:()=>$m,check:()=>hb,cidrv4:()=>_S,cidrv6:()=>PS,clone:()=>me,codec:()=>lb,coerce:()=>Hm,config:()=>Z,core:()=>pt,cuid:()=>yS,cuid2:()=>SS,custom:()=>fb,date:()=>KS,decode:()=>Kp,decodeAsync:()=>Gp,describe:()=>gb,discriminatedUnion:()=>YS,e164:()=>kS,email:()=>cS,emoji:()=>gS,encode:()=>Hp,encodeAsync:()=>Zp,endsWith:()=>On,enum:()=>Ca,exactOptional:()=>Im,file:()=>ab,flattenError:()=>Ar,float32:()=>OS,float64:()=>zS,formatError:()=>jr,fromJSONSchema:()=>Eb,function:()=>mb,getErrorMap:()=>Oj,globalRegistry:()=>re,gt:()=>Qe,gte:()=>he,guid:()=>uS,hash:()=>MS,hex:()=>$S,hostname:()=>jS,httpUrl:()=>fS,includes:()=>$n,instanceof:()=>yb,int:()=>ca,int32:()=>BS,int64:()=>NS,intersection:()=>fm,ipv4:()=>ES,ipv6:()=>IS,iso:()=>Vn,json:()=>bb,jwt:()=>RS,keyof:()=>ZS,ksuid:()=>xS,lazy:()=>Lm,length:()=>tn,literal:()=>ib,locales:()=>Nr,looseObject:()=>JS,looseRecord:()=>tb,lowercase:()=>An,lt:()=>Ge,lte:()=>we,mac:()=>DS,map:()=>nb,maxLength:()=>en,maxSize:()=>Mt,meta:()=>vb,mime:()=>zn,minLength:()=>dt,minSize:()=>Je,multipleOf:()=>$t,nan:()=>ub,nanoid:()=>vS,nativeEnum:()=>ob,negative:()=>Ki,never:()=>Pa,nonnegative:()=>Gi,nonoptional:()=>Rm,nonpositive:()=>Zi,normalize:()=>Bn,null:()=>am,nullable:()=>Kr,nullish:()=>sb,number:()=>tm,object:()=>GS,optional:()=>Hr,overwrite:()=>We,parse:()=>qp,parseAsync:()=>Up,partialRecord:()=>eb,pipe:()=>Zr,positive:()=>Hi,prefault:()=>km,preprocess:()=>Tb,prettifyError:()=>su,promise:()=>pb,property:()=>Qi,readonly:()=>zm,record:()=>ym,refine:()=>Um,regex:()=>Rn,regexes:()=>Oe,registry:()=>Ii,safeDecode:()=>Jp,safeDecodeAsync:()=>Yp,safeEncode:()=>Qp,safeEncodeAsync:()=>Xp,safeParse:()=>Wp,safeParseAsync:()=>Vp,set:()=>rb,setErrorMap:()=>Mj,size:()=>Yt,slugify:()=>qn,startsWith:()=>Mn,strictObject:()=>QS,string:()=>sa,stringFormat:()=>AS,stringbool:()=>Sb,success:()=>cb,superRefine:()=>Wm,symbol:()=>US,templateLiteral:()=>db,toJSONSchema:()=>ea,toLowerCase:()=>Ln,toUpperCase:()=>Nn,transform:()=>ka,treeifyError:()=>au,trim:()=>Fn,tuple:()=>vm,uint32:()=>FS,uint64:()=>qS,ulid:()=>bS,undefined:()=>WS,union:()=>wa,unknown:()=>nn,uppercase:()=>jn,url:()=>hS,util:()=>T,uuid:()=>lS,uuidv4:()=>dS,uuidv6:()=>pS,uuidv7:()=>mS,void:()=>HS,xid:()=>TS,xor:()=>XS});var pt={};ct(pt,{$ZodAny:()=>Ml,$ZodArray:()=>Ll,$ZodAsyncError:()=>Ue,$ZodBase64:()=>Il,$ZodBase64URL:()=>_l,$ZodBigInt:()=>yi,$ZodBigIntFormat:()=>Rl,$ZodBoolean:()=>zr,$ZodCIDRv4:()=>xl,$ZodCIDRv6:()=>El,$ZodCUID:()=>ll,$ZodCUID2:()=>dl,$ZodCatch:()=>od,$ZodCheck:()=>H,$ZodCheckBigIntFormat:()=>Lu,$ZodCheckEndsWith:()=>Xu,$ZodCheckGreaterThan:()=>di,$ZodCheckIncludes:()=>Qu,$ZodCheckLengthEquals:()=>Hu,$ZodCheckLessThan:()=>li,$ZodCheckLowerCase:()=>Zu,$ZodCheckMaxLength:()=>Wu,$ZodCheckMaxSize:()=>Nu,$ZodCheckMimeType:()=>el,$ZodCheckMinLength:()=>Vu,$ZodCheckMinSize:()=>qu,$ZodCheckMultipleOf:()=>Bu,$ZodCheckNumberFormat:()=>Fu,$ZodCheckOverwrite:()=>tl,$ZodCheckProperty:()=>Yu,$ZodCheckRegex:()=>Ku,$ZodCheckSizeEquals:()=>Uu,$ZodCheckStartsWith:()=>Ju,$ZodCheckStringFormat:()=>Cn,$ZodCheckUpperCase:()=>Gu,$ZodCodec:()=>Fr,$ZodCustom:()=>pd,$ZodCustomStringFormat:()=>Cl,$ZodDate:()=>Fl,$ZodDefault:()=>ed,$ZodDiscriminatedUnion:()=>Ul,$ZodE164:()=>Pl,$ZodEmail:()=>al,$ZodEmoji:()=>cl,$ZodEncodeError:()=>Ct,$ZodEnum:()=>Zl,$ZodError:()=>Rr,$ZodExactOptional:()=>Xl,$ZodFile:()=>Ql,$ZodFunction:()=>ud,$ZodGUID:()=>ol,$ZodIPv4:()=>Sl,$ZodIPv6:()=>bl,$ZodISODate:()=>gl,$ZodISODateTime:()=>fl,$ZodISODuration:()=>yl,$ZodISOTime:()=>vl,$ZodIntersection:()=>Wl,$ZodJWT:()=>wl,$ZodKSUID:()=>hl,$ZodLazy:()=>dd,$ZodLiteral:()=>Gl,$ZodMAC:()=>Tl,$ZodMap:()=>Hl,$ZodNaN:()=>id,$ZodNanoID:()=>ul,$ZodNever:()=>zl,$ZodNonOptional:()=>nd,$ZodNull:()=>$l,$ZodNullable:()=>Yl,$ZodNumber:()=>vi,$ZodNumberFormat:()=>kl,$ZodObject:()=>sy,$ZodObjectJIT:()=>Nl,$ZodOptional:()=>bi,$ZodPipe:()=>ad,$ZodPrefault:()=>td,$ZodPromise:()=>ld,$ZodReadonly:()=>sd,$ZodRealError:()=>Te,$ZodRecord:()=>Vl,$ZodRegistry:()=>Di,$ZodSet:()=>Kl,$ZodString:()=>Xt,$ZodStringFormat:()=>W,$ZodSuccess:()=>rd,$ZodSymbol:()=>Al,$ZodTemplateLiteral:()=>cd,$ZodTransform:()=>Jl,$ZodTuple:()=>Si,$ZodType:()=>$,$ZodULID:()=>pl,$ZodURL:()=>sl,$ZodUUID:()=>il,$ZodUndefined:()=>jl,$ZodUnion:()=>Br,$ZodUnknown:()=>Ol,$ZodVoid:()=>Bl,$ZodXID:()=>ml,$ZodXor:()=>ql,$brand:()=>Go,$constructor:()=>f,$input:()=>hd,$output:()=>md,Doc:()=>Or,JSONSchema:()=>aS,JSONSchemaGenerator:()=>ta,NEVER:()=>Gc,TimePrecision:()=>yd,_any:()=>Fd,_array:()=>Hd,_base64:()=>qi,_base64url:()=>Ui,_bigint:()=>Ad,_boolean:()=>kd,_catch:()=>Dj,_check:()=>iS,_cidrv4:()=>Li,_cidrv6:()=>Ni,_coercedBigint:()=>jd,_coercedBoolean:()=>Rd,_coercedDate:()=>Wd,_coercedNumber:()=>Dd,_coercedString:()=>gd,_cuid:()=>ji,_cuid2:()=>$i,_custom:()=>Zd,_date:()=>Ud,_decode:()=>ti,_decodeAsync:()=>ri,_default:()=>Tj,_discriminatedUnion:()=>uj,_e164:()=>Wi,_email:()=>_i,_emoji:()=>Ri,_encode:()=>ei,_encodeAsync:()=>ni,_endsWith:()=>On,_enum:()=>fj,_file:()=>Kd,_float32:()=>_d,_float64:()=>Pd,_gt:()=>Qe,_gte:()=>he,_guid:()=>qr,_includes:()=>$n,_int:()=>Id,_int32:()=>wd,_int64:()=>$d,_intersection:()=>lj,_ipv4:()=>Bi,_ipv6:()=>Fi,_isoDate:()=>bd,_isoDateTime:()=>Sd,_isoDuration:()=>xd,_isoTime:()=>Td,_jwt:()=>Vi,_ksuid:()=>zi,_lazy:()=>wj,_length:()=>tn,_literal:()=>vj,_lowercase:()=>An,_lt:()=>Ge,_lte:()=>we,_mac:()=>vd,_map:()=>mj,_max:()=>we,_maxLength:()=>en,_maxSize:()=>Mt,_mime:()=>zn,_min:()=>he,_minLength:()=>dt,_minSize:()=>Je,_multipleOf:()=>$t,_nan:()=>Vd,_nanoid:()=>Ai,_nativeEnum:()=>gj,_negative:()=>Ki,_never:()=>Nd,_nonnegative:()=>Gi,_nonoptional:()=>xj,_nonpositive:()=>Zi,_normalize:()=>Bn,_null:()=>Bd,_nullable:()=>bj,_number:()=>Ed,_optional:()=>Sj,_overwrite:()=>We,_parse:()=>In,_parseAsync:()=>_n,_pipe:()=>Ij,_positive:()=>Hi,_promise:()=>Cj,_property:()=>Qi,_readonly:()=>_j,_record:()=>pj,_refine:()=>Gd,_regex:()=>Rn,_safeDecode:()=>ii,_safeDecodeAsync:()=>si,_safeEncode:()=>oi,_safeEncodeAsync:()=>ai,_safeParse:()=>Pn,_safeParseAsync:()=>wn,_set:()=>hj,_size:()=>Yt,_slugify:()=>qn,_startsWith:()=>Mn,_string:()=>fd,_stringFormat:()=>Un,_stringbool:()=>Yd,_success:()=>Ej,_superRefine:()=>Qd,_symbol:()=>Od,_templateLiteral:()=>Pj,_toLowerCase:()=>Ln,_toUpperCase:()=>Nn,_transform:()=>yj,_trim:()=>Fn,_tuple:()=>dj,_uint32:()=>Cd,_uint64:()=>Md,_ulid:()=>Mi,_undefined:()=>zd,_union:()=>sj,_unknown:()=>Ld,_uppercase:()=>jn,_url:()=>Ur,_uuid:()=>Pi,_uuidv4:()=>wi,_uuidv6:()=>Ci,_uuidv7:()=>ki,_void:()=>qd,_xid:()=>Oi,_xor:()=>cj,clone:()=>me,config:()=>Z,createStandardJSONSchemaMethod:()=>Wn,createToJSONSchemaMethod:()=>ep,decode:()=>AR,decodeAsync:()=>$R,describe:()=>Jd,encode:()=>RR,encodeAsync:()=>jR,extractDefs:()=>zt,finalize:()=>Bt,flattenError:()=>Ar,formatError:()=>jr,globalConfig:()=>Dr,globalRegistry:()=>re,initializeContext:()=>Ot,isValidBase64:()=>Dl,isValidBase64URL:()=>ry,isValidJWT:()=>oy,locales:()=>Nr,meta:()=>Xd,parse:()=>Xo,parseAsync:()=>Yo,prettifyError:()=>su,process:()=>U,regexes:()=>Oe,registry:()=>Ii,safeDecode:()=>OR,safeDecodeAsync:()=>BR,safeEncode:()=>MR,safeEncodeAsync:()=>zR,safeParse:()=>cu,safeParseAsync:()=>uu,toDotPath:()=>Fv,toJSONSchema:()=>ea,treeifyError:()=>au,util:()=>T,version:()=>nl});var Gc=Object.freeze({status:"aborted"});function f(e,t,r){function o(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let u=s.prototype,p=Object.keys(u);for(let d=0;d<p.length;d++){let m=p[d];m in c||(c[m]=u[m].bind(c))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function s(c){var l;let u=r?.Parent?new i:this;o(u,c),(l=u._zod).deferred??(l.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:c=>r?.Parent&&c instanceof r.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Go=Symbol("zod_brand"),Ue=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ct=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Dr={};function Z(e){return e&&Object.assign(Dr,e),Dr}var T={};ct(T,{BIGINT_FORMAT_RANGES:()=>iu,Class:()=>Jc,NUMBER_FORMAT_RANGES:()=>ou,aborted:()=>jt,allowsEval:()=>eu,assert:()=>uR,assertEqual:()=>iR,assertIs:()=>sR,assertNever:()=>cR,assertNotEqual:()=>aR,assignProp:()=>Rt,base64ToUint8Array:()=>Ov,base64urlToUint8Array:()=>_R,cached:()=>En,captureStackTrace:()=>Jo,cleanEnum:()=>IR,cleanRegex:()=>Pr,clone:()=>me,cloneDef:()=>dR,createTransparentProxy:()=>vR,defineLazy:()=>B,esc:()=>Qo,escapeRegex:()=>Me,extend:()=>bR,finalizeIssue:()=>be,floatSafeRemainder:()=>Xc,getElementAtPath:()=>pR,getEnumValues:()=>_r,getLengthableOrigin:()=>kr,getParsedType:()=>gR,getSizableOrigin:()=>Cr,hexToUint8Array:()=>wR,isObject:()=>Qt,isPlainObject:()=>At,issue:()=>Dn,joinValues:()=>v,jsonStringifyReplacer:()=>xn,merge:()=>xR,mergeDefs:()=>lt,normalizeParams:()=>x,nullish:()=>kt,numKeys:()=>fR,objectClone:()=>lR,omit:()=>SR,optionalKeys:()=>ru,parsedType:()=>b,partial:()=>ER,pick:()=>yR,prefixIssues:()=>Pe,primitiveTypes:()=>nu,promiseAllObject:()=>mR,propertyKeyTypes:()=>wr,randomString:()=>hR,required:()=>DR,safeExtend:()=>TR,shallowClone:()=>tu,slugify:()=>Yc,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>zv,uint8ArrayToBase64url:()=>PR,uint8ArrayToHex:()=>CR,unwrapMessage:()=>Ir});function iR(e){return e}function aR(e){return e}function sR(e){}function cR(e){throw new Error("Unexpected value in exhaustive check")}function uR(e){}function _r(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function v(e,t="|"){return e.map(r=>S(r)).join(t)}function xn(e,t){return typeof t=="bigint"?t.toString():t}function En(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function kt(e){return e==null}function Pr(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Xc(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return s%c/10**i}var Mv=Symbol("evaluating");function B(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Mv)return o===void 0&&(o=Mv,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function lR(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Rt(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function lt(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function dR(e){return lt(e._zod.def)}function pR(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function mR(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function hR(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Qo(e){return JSON.stringify(e)}function Yc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Jo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var eu=En(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function At(e){if(Qt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Qt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function tu(e){return At(e)?{...e}:Array.isArray(e)?[...e]:e}function fR(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var gR=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},wr=new Set(["string","number","symbol"]),nu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Me(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function me(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function x(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function vR(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ru(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ou={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},iu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function yR(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=lt(e._zod.def,{get shape(){let s={};for(let c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(s[c]=r.shape[c])}return Rt(this,"shape",s),s},checks:[]});return me(e,i)}function SR(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=lt(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete s[c]}return Rt(this,"shape",s),s},checks:[]});return me(e,i)}function bR(e,t){if(!At(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=lt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Rt(this,"shape",i),i}});return me(e,n)}function TR(e,t){if(!At(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=lt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Rt(this,"shape",o),o}});return me(e,r)}function xR(e,t){let r=lt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Rt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return me(e,r)}function ER(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=lt(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(r)for(let u in r){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:c[u]}):c[u])}else for(let u in c)l[u]=e?new e({type:"optional",innerType:c[u]}):c[u];return Rt(this,"shape",l),l},checks:[]});return me(t,s)}function DR(e,t,r){let o=lt(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new e({type:"nonoptional",innerType:n[s]});return Rt(this,"shape",i),i}});return me(t,o)}function jt(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Pe(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Ir(e){return typeof e=="string"?e:e?.message}function be(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Ir(e.inst?._zod.def?.error?.(e))??Ir(t?.error?.(e))??Ir(r.customError?.(e))??Ir(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Cr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function kr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Dn(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function IR(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Ov(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function zv(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function _R(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Ov(t+r)}function PR(e){return zv(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function wR(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function CR(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Jc=class{constructor(...t){}};var Bv=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Rr=f("$ZodError",Bv),Te=f("$ZodError",Bv,{Parent:Error});function Ar(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function jr(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,c=0;for(;c<i.path.length;){let l=i.path[c];c===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),r}function au(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var s,c;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let u=[...i,...l.path];if(u.length===0){r.errors.push(t(l));continue}let p=r,d=0;for(;d<u.length;){let m=u[d],h=d===u.length-1;typeof m=="string"?(p.properties??(p.properties={}),(s=p.properties)[m]??(s[m]={errors:[]}),p=p.properties[m]):(p.items??(p.items=[]),(c=p.items)[m]??(c[m]={errors:[]}),p=p.items[m]),h&&p.errors.push(t(l)),d++}}};return o(e),r}function Fv(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function su(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Fv(o.path)}`);return t.join(`
57
+ `)}var In=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Ue;if(s.issues.length){let c=new(n?.Err??e)(s.issues.map(l=>be(l,i,Z())));throw Jo(c,n?.callee),c}return s.value},Xo=In(Te),_n=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(n?.Err??e)(s.issues.map(l=>be(l,i,Z())));throw Jo(c,n?.callee),c}return s.value},Yo=_n(Te),Pn=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Ue;return i.issues.length?{success:!1,error:new(e??Rr)(i.issues.map(s=>be(s,n,Z())))}:{success:!0,data:i.value}},cu=Pn(Te),wn=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>be(s,n,Z())))}:{success:!0,data:i.value}},uu=wn(Te),ei=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return In(e)(t,r,n)},RR=ei(Te),ti=e=>(t,r,o)=>In(e)(t,r,o),AR=ti(Te),ni=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return _n(e)(t,r,n)},jR=ni(Te),ri=e=>async(t,r,o)=>_n(e)(t,r,o),$R=ri(Te),oi=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Pn(e)(t,r,n)},MR=oi(Te),ii=e=>(t,r,o)=>Pn(e)(t,r,o),OR=ii(Te),ai=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return wn(e)(t,r,n)},zR=ai(Te),si=e=>async(t,r,o)=>wn(e)(t,r,o),BR=si(Te);var Oe={};ct(Oe,{base64:()=>Iu,base64url:()=>ci,bigint:()=>Ru,boolean:()=>ju,browserEmail:()=>HR,cidrv4:()=>Eu,cidrv6:()=>Du,cuid:()=>lu,cuid2:()=>du,date:()=>Pu,datetime:()=>Cu,domain:()=>GR,duration:()=>gu,e164:()=>_u,email:()=>yu,emoji:()=>Su,extendedDuration:()=>FR,guid:()=>vu,hex:()=>QR,hostname:()=>ZR,html5Email:()=>UR,idnEmail:()=>VR,integer:()=>Au,ipv4:()=>bu,ipv6:()=>Tu,ksuid:()=>hu,lowercase:()=>Ou,mac:()=>xu,md5_base64:()=>XR,md5_base64url:()=>YR,md5_hex:()=>JR,nanoid:()=>fu,null:()=>$u,number:()=>ui,rfc5322Email:()=>WR,sha1_base64:()=>tA,sha1_base64url:()=>nA,sha1_hex:()=>eA,sha256_base64:()=>oA,sha256_base64url:()=>iA,sha256_hex:()=>rA,sha384_base64:()=>sA,sha384_base64url:()=>cA,sha384_hex:()=>aA,sha512_base64:()=>lA,sha512_base64url:()=>dA,sha512_hex:()=>uA,string:()=>ku,time:()=>wu,ulid:()=>pu,undefined:()=>Mu,unicodeEmail:()=>Lv,uppercase:()=>zu,uuid:()=>Jt,uuid4:()=>LR,uuid6:()=>NR,uuid7:()=>qR,xid:()=>mu});var lu=/^[cC][^\s-]{8,}$/,du=/^[0-9a-z]+$/,pu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mu=/^[0-9a-vA-V]{20}$/,hu=/^[A-Za-z0-9]{27}$/,fu=/^[a-zA-Z0-9_-]{21}$/,gu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,FR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Jt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,LR=Jt(4),NR=Jt(6),qR=Jt(7),yu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,UR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,WR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Lv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,VR=Lv,HR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,KR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Su(){return new RegExp(KR,"u")}var bu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,xu=e=>{let t=Me(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Eu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Du=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Iu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ci=/^[A-Za-z0-9_-]*$/,ZR=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,GR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_u=/^\+[1-9]\d{6,14}$/,Nv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pu=new RegExp(`^${Nv}$`);function qv(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wu(e){return new RegExp(`^${qv(e)}$`)}function Cu(e){let t=qv({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Nv}T(?:${o})$`)}var ku=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ru=/^-?\d+n?$/,Au=/^-?\d+$/,ui=/^-?\d+(?:\.\d+)?$/,ju=/^(?:true|false)$/i,$u=/^null$/i;var Mu=/^undefined$/i;var Ou=/^[^A-Z]*$/,zu=/^[^a-z]*$/,QR=/^[0-9a-fA-F]*$/;function $r(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Mr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var JR=/^[0-9a-fA-F]{32}$/,XR=$r(22,"=="),YR=Mr(22),eA=/^[0-9a-fA-F]{40}$/,tA=$r(27,"="),nA=Mr(27),rA=/^[0-9a-fA-F]{64}$/,oA=$r(43,"="),iA=Mr(43),aA=/^[0-9a-fA-F]{96}$/,sA=$r(64,""),cA=Mr(64),uA=/^[0-9a-fA-F]{128}$/,lA=$r(86,"=="),dA=Mr(86);var H=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Wv={number:"number",bigint:"bigint",object:"date"},li=f("$ZodCheckLessThan",(e,t)=>{H.init(e,t);let r=Wv[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),di=f("$ZodCheckGreaterThan",(e,t)=>{H.init(e,t);let r=Wv[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bu=f("$ZodCheckMultipleOf",(e,t)=>{H.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Xc(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Fu=f("$ZodCheckNumberFormat",(e,t)=>{H.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=ou[t.format];e._zod.onattach.push(s=>{let c=s._zod.bag;c.format=t.format,c.minimum=n,c.maximum=i,r&&(c.pattern=Au)}),e._zod.check=s=>{let c=s.value;if(r){if(!Number.isInteger(c)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}c<n&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),c>i&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Lu=f("$ZodCheckBigIntFormat",(e,t)=>{H.init(e,t);let[r,o]=iu[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Nu=f("$ZodCheckMaxSize",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Cr(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),qu=f("$ZodCheckMinSize",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Cr(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Uu=f("$ZodCheckSizeEquals",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let s=i>t.size;o.issues.push({origin:Cr(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Wu=f("$ZodCheckMaxLength",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let s=kr(n);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Vu=f("$ZodCheckMinLength",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let s=kr(n);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Hu=f("$ZodCheckLengthEquals",(e,t)=>{var r;H.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!kt(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let s=kr(n),c=i>t.length;o.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Cn=f("$ZodCheckStringFormat",(e,t)=>{var r,o;H.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ku=f("$ZodCheckRegex",(e,t)=>{Cn.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Zu=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ou),Cn.init(e,t)}),Gu=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zu),Cn.init(e,t)}),Qu=f("$ZodCheckIncludes",(e,t)=>{H.init(e,t);let r=Me(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ju=f("$ZodCheckStartsWith",(e,t)=>{H.init(e,t);let r=new RegExp(`^${Me(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Xu=f("$ZodCheckEndsWith",(e,t)=>{H.init(e,t);let r=new RegExp(`.*${Me(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Uv(e,t,r){e.issues.length&&t.issues.push(...Pe(r,e.issues))}var Yu=f("$ZodCheckProperty",(e,t)=>{H.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Uv(n,r,t.property));Uv(o,r,t.property)}}),el=f("$ZodCheckMimeType",(e,t)=>{H.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),tl=f("$ZodCheckOverwrite",(e,t)=>{H.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Or=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
58
58
  `).filter(s=>s),n=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
59
- `))}};var Qc={major:4,minor:3,patch:6};var $=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qc;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,u,l)=>{let c=Pt(s),p;for(let d of u){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;let m=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Be;if(p||h instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(c||(c=Pt(s,m)))});else{if(s.issues.length===m)continue;c||(c=Pt(s,m))}}return p?p.then(()=>s):s},i=(s,u,l)=>{if(Pt(s))return s.aborted=!0,s;let c=n(u,o,l);if(c instanceof Promise){if(l.async===!1)throw new Be;return c.then(p=>e._zod.parse(p,l))}return e._zod.parse(c,l)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let c=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return c instanceof Promise?c.then(p=>i(p,s,u)):i(c,s,u)}let l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Be;return l.then(c=>n(c,o,u))}return n(l,o,u)}}F(e,"~standard",()=>({validate:n=>{try{let i=nc(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return rc(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Kt=f("$ZodString",(e,t)=>{$.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Dc(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),V=f("$ZodStringFormat",(e,t)=>{In.init(e,t),Kt.init(e,t)}),Xc=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=dc),V.init(e,t)}),Yc=f("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ht(o))}else t.pattern??(t.pattern=Ht());V.init(e,t)}),el=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pc),V.init(e,t)}),tl=f("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),nl=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=mc()),V.init(e,t)}),rl=f("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cc),V.init(e,t)}),ol=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=oc),V.init(e,t)}),il=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ic),V.init(e,t)}),al=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ac),V.init(e,t)}),sl=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=sc),V.init(e,t)}),ul=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=uc),V.init(e,t)}),cl=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ec(t)),V.init(e,t)}),ll=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Tc),V.init(e,t)}),dl=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=xc(t)),V.init(e,t)}),pl=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lc),V.init(e,t)}),ml=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=hc),V.init(e,t),e._zod.bag.format="ipv4"}),hl=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fc),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),fl=f("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=gc(t.delimiter)),V.init(e,t),e._zod.bag.format="mac"}),gl=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=vc),V.init(e,t)}),vl=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yc),V.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function yl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Sl=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sc),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{yl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Kv(e){if(!ii.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return yl(r)}var bl=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ii),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Kv(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Tl=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bc),V.init(e,t)});function Zv(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var xl=f("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=r=>{Zv(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),El=f("$ZodCustomStringFormat",(e,t)=>{V.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),hi=f("$ZodNumber",(e,t)=>{$.init(e,t),e._zod.pattern=e._zod.bag.pattern??ai,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Dl=f("$ZodNumberFormat",(e,t)=>{jc.init(e,t),hi.init(e,t)}),Or=f("$ZodBoolean",(e,t)=>{$.init(e,t),e._zod.pattern=wc,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),fi=f("$ZodBigInt",(e,t)=>{$.init(e,t),e._zod.pattern=Ic,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Il=f("$ZodBigIntFormat",(e,t)=>{$c.init(e,t),fi.init(e,t)}),_l=f("$ZodSymbol",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),wl=f("$ZodUndefined",(e,t)=>{$.init(e,t),e._zod.pattern=Cc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Pl=f("$ZodNull",(e,t)=>{$.init(e,t),e._zod.pattern=Pc,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Cl=f("$ZodAny",(e,t)=>{$.init(e,t),e._zod.parse=r=>r}),kl=f("$ZodUnknown",(e,t)=>{$.init(e,t),e._zod.parse=r=>r}),Rl=f("$ZodNever",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Al=f("$ZodVoid",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),jl=f("$ZodDate",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Mv(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var $l=f("$ZodArray",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let u=n[s],l=t.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(c=>Mv(c,r,s))):Mv(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function mi(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(..._e(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function Gv(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Ju(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Qv(e,t,r,o,n,i){let s=[],u=n.keySet,l=n.catchall._zod,c=l.def.type,p=l.optout==="optional";for(let d in t){if(u.has(d))continue;if(c==="never"){s.push(d);continue}let m=l.run({value:t[d],issues:[]},o);m instanceof Promise?e.push(m.then(h=>mi(h,r,d,t,p))):mi(m,r,d,t,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var Jv=f("$ZodObject",(e,t)=>{if($.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=Sn(()=>Gv(t));F(e._zod,"propValues",()=>{let u=t.shape,l={};for(let c in u){let p=u[c]._zod;if(p.values){l[c]??(l[c]=new Set);for(let d of p.values)l[c].add(d)}}return l});let n=Wt,i=t.catchall,s;e._zod.parse=(u,l)=>{s??(s=o.value);let c=u.value;if(!n(c))return u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u;u.value={};let p=[],d=s.shape;for(let m of s.keys){let h=d[m],g=h._zod.optout==="optional",y=h._zod.run({value:c[m],issues:[]},l);y instanceof Promise?p.push(y.then(P=>mi(P,u,m,c,g))):mi(y,u,m,c,g)}return i?Qv(p,c,u,l,o.value,e):p.length?Promise.all(p).then(()=>u):u}}),Ol=f("$ZodObjectJIT",(e,t)=>{Jv.init(e,t);let r=e._zod.parse,o=Sn(()=>Gv(t)),n=m=>{let h=new $r(["shape","payload","ctx"]),g=o.value,y=N=>{let O=Ko(N);return`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`};h.write("const input = payload.value;");let P=Object.create(null),D=0;for(let N of g.keys)P[N]=`key_${D++}`;h.write("const newResult = {};");for(let N of g.keys){let O=P[N],Q=Ko(N),ae=m[N]?._zod?.optout==="optional";h.write(`const ${O} = ${y(N)};`),ae?h.write(`
60
- if (${O}.issues.length) {
59
+ `))}};var nl={major:4,minor:3,patch:6};var $=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nl;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,c,l)=>{let u=jt(s),p;for(let d of c){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(u)continue;let m=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Ue;if(p||h instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(u||(u=jt(s,m)))});else{if(s.issues.length===m)continue;u||(u=jt(s,m))}}return p?p.then(()=>s):s},i=(s,c,l)=>{if(jt(s))return s.aborted=!0,s;let u=n(c,o,l);if(u instanceof Promise){if(l.async===!1)throw new Ue;return u.then(p=>e._zod.parse(p,l))}return e._zod.parse(u,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(p=>i(p,s,c)):i(u,s,c)}let l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new Ue;return l.then(u=>n(u,o,c))}return n(l,o,c)}}B(e,"~standard",()=>({validate:n=>{try{let i=cu(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return uu(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Xt=f("$ZodString",(e,t)=>{$.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ku(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),W=f("$ZodStringFormat",(e,t)=>{Cn.init(e,t),Xt.init(e,t)}),ol=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vu),W.init(e,t)}),il=f("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Jt(o))}else t.pattern??(t.pattern=Jt());W.init(e,t)}),al=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=yu),W.init(e,t)}),sl=f("$ZodURL",(e,t)=>{W.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),cl=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Su()),W.init(e,t)}),ul=f("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=fu),W.init(e,t)}),ll=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=lu),W.init(e,t)}),dl=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=du),W.init(e,t)}),pl=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pu),W.init(e,t)}),ml=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=mu),W.init(e,t)}),hl=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=hu),W.init(e,t)}),fl=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Cu(t)),W.init(e,t)}),gl=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pu),W.init(e,t)}),vl=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wu(t)),W.init(e,t)}),yl=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gu),W.init(e,t)}),Sl=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=bu),W.init(e,t),e._zod.bag.format="ipv4"}),bl=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Tu),W.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Tl=f("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=xu(t.delimiter)),W.init(e,t),e._zod.bag.format="mac"}),xl=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Eu),W.init(e,t)}),El=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Du),W.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Dl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Il=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Iu),W.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Dl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function ry(e){if(!ci.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Dl(r)}var _l=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ci),W.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{ry(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Pl=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_u),W.init(e,t)});function oy(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var wl=f("$ZodJWT",(e,t)=>{W.init(e,t),e._zod.check=r=>{oy(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Cl=f("$ZodCustomStringFormat",(e,t)=>{W.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),vi=f("$ZodNumber",(e,t)=>{$.init(e,t),e._zod.pattern=e._zod.bag.pattern??ui,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),kl=f("$ZodNumberFormat",(e,t)=>{Fu.init(e,t),vi.init(e,t)}),zr=f("$ZodBoolean",(e,t)=>{$.init(e,t),e._zod.pattern=ju,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),yi=f("$ZodBigInt",(e,t)=>{$.init(e,t),e._zod.pattern=Ru,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Rl=f("$ZodBigIntFormat",(e,t)=>{Lu.init(e,t),yi.init(e,t)}),Al=f("$ZodSymbol",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),jl=f("$ZodUndefined",(e,t)=>{$.init(e,t),e._zod.pattern=Mu,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),$l=f("$ZodNull",(e,t)=>{$.init(e,t),e._zod.pattern=$u,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Ml=f("$ZodAny",(e,t)=>{$.init(e,t),e._zod.parse=r=>r}),Ol=f("$ZodUnknown",(e,t)=>{$.init(e,t),e._zod.parse=r=>r}),zl=f("$ZodNever",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Bl=f("$ZodVoid",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Fl=f("$ZodDate",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Hv(e,t,r){e.issues.length&&t.issues.push(...Pe(r,e.issues)),t.value[r]=e.value}var Ll=f("$ZodArray",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let c=n[s],l=t.element._zod.run({value:c,issues:[]},o);l instanceof Promise?i.push(l.then(u=>Hv(u,r,s))):Hv(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function gi(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Pe(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function iy(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=ru(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function ay(e,t,r,o,n,i){let s=[],c=n.keySet,l=n.catchall._zod,u=l.def.type,p=l.optout==="optional";for(let d in t){if(c.has(d))continue;if(u==="never"){s.push(d);continue}let m=l.run({value:t[d],issues:[]},o);m instanceof Promise?e.push(m.then(h=>gi(h,r,d,t,p))):gi(m,r,d,t,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var sy=f("$ZodObject",(e,t)=>{if($.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=En(()=>iy(t));B(e._zod,"propValues",()=>{let c=t.shape,l={};for(let u in c){let p=c[u]._zod;if(p.values){l[u]??(l[u]=new Set);for(let d of p.values)l[u].add(d)}}return l});let n=Qt,i=t.catchall,s;e._zod.parse=(c,l)=>{s??(s=o.value);let u=c.value;if(!n(u))return c.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),c;c.value={};let p=[],d=s.shape;for(let m of s.keys){let h=d[m],g=h._zod.optout==="optional",y=h._zod.run({value:u[m],issues:[]},l);y instanceof Promise?p.push(y.then(C=>gi(C,c,m,u,g))):gi(y,c,m,u,g)}return i?ay(p,u,c,l,o.value,e):p.length?Promise.all(p).then(()=>c):c}}),Nl=f("$ZodObjectJIT",(e,t)=>{sy.init(e,t);let r=e._zod.parse,o=En(()=>iy(t)),n=m=>{let h=new Or(["shape","payload","ctx"]),g=o.value,y=N=>{let M=Qo(N);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};h.write("const input = payload.value;");let C=Object.create(null),D=0;for(let N of g.keys)C[N]=`key_${D++}`;h.write("const newResult = {};");for(let N of g.keys){let M=C[N],Q=Qo(N),ce=m[N]?._zod?.optout==="optional";h.write(`const ${M} = ${y(N)};`),ce?h.write(`
60
+ if (${M}.issues.length) {
61
61
  if (${Q} in input) {
62
- payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
62
+ payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
63
63
  ...iss,
64
64
  path: iss.path ? [${Q}, ...iss.path] : [${Q}]
65
65
  })));
66
66
  }
67
67
  }
68
68
 
69
- if (${O}.value === undefined) {
69
+ if (${M}.value === undefined) {
70
70
  if (${Q} in input) {
71
71
  newResult[${Q}] = undefined;
72
72
  }
73
73
  } else {
74
- newResult[${Q}] = ${O}.value;
74
+ newResult[${Q}] = ${M}.value;
75
75
  }
76
76
 
77
77
  `):h.write(`
78
- if (${O}.issues.length) {
79
- payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
78
+ if (${M}.issues.length) {
79
+ payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
80
80
  ...iss,
81
81
  path: iss.path ? [${Q}, ...iss.path] : [${Q}]
82
82
  })));
83
83
  }
84
84
 
85
- if (${O}.value === undefined) {
85
+ if (${M}.value === undefined) {
86
86
  if (${Q} in input) {
87
87
  newResult[${Q}] = undefined;
88
88
  }
89
89
  } else {
90
- newResult[${Q}] = ${O}.value;
90
+ newResult[${Q}] = ${M}.value;
91
91
  }
92
92
 
93
- `)}h.write("payload.value = newResult;"),h.write("return payload;");let A=h.compile();return(N,O)=>A(m,N,O)},i,s=Wt,u=!xr.jitless,c=u&&Zu.value,p=t.catchall,d;e._zod.parse=(m,h)=>{d??(d=o.value);let g=m.value;return s(g)?u&&c&&h?.async===!1&&h.jitless!==!0?(i||(i=n(t.shape)),m=i(m,h),p?Qv([],g,m,h,d,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function zv(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Pt(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>Se(s,o,Z())))}),t)}var Mr=f("$ZodUnion",(e,t)=>{$.init(e,t),F(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),F(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),F(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),F(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Ir(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of t.options){let c=l._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)u.push(c),s=!0;else{if(c.issues.length===0)return c;u.push(c)}}return s?Promise.all(u).then(l=>zv(l,n,e,i)):zv(u,n,e,i)}});function Fv(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>Se(s,o,Z())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Ml=f("$ZodXor",(e,t)=>{Mr.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of t.options){let c=l._zod.run({value:n.value,issues:[]},i);c instanceof Promise?(u.push(c),s=!0):u.push(c)}return s?Promise.all(u).then(l=>Fv(l,n,e,i)):Fv(u,n,e,i)}}),zl=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Mr.init(e,t);let r=e._zod.parse;F(e._zod,"propValues",()=>{let n={};for(let i of t.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,l]of Object.entries(s)){n[u]||(n[u]=new Set);for(let c of l)n[u].add(c)}}return n});let o=Sn(()=>{let n=t.options,i=new Map;for(let s of n){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});e._zod.parse=(n,i)=>{let s=n.value;if(!Wt(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let u=o.value.get(s?.[t.discriminator]);return u?u._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),n)}}),Fl=f("$ZodIntersection",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),s=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>Bv(r,l,c)):Bv(r,i,s)}});function Jc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(wt(e)&&wt(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let s=Jc(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],s=Jc(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Bv(e,t,r){let o=new Map,n;for(let u of t.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&n&&e.issues.push({...n,keys:i}),Pt(e))return e;let s=Jc(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var gi=f("$ZodTuple",(e,t)=>{$.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!t.rest){let p=i.length>r.length,d=i.length<l-1;if(p||d)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let c=-1;for(let p of r){if(c++,c>=i.length&&c>=l)continue;let d=p._zod.run({value:i[c],issues:[]},n);d instanceof Promise?s.push(d.then(m=>ci(m,o,c))):ci(d,o,c)}if(t.rest){let p=i.slice(r.length);for(let d of p){c++;let m=t.rest._zod.run({value:d,issues:[]},n);m instanceof Promise?s.push(m.then(h=>ci(h,o,c))):ci(m,o,c)}}return s.length?Promise.all(s).then(()=>o):o}});function ci(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var Bl=f("$ZodRecord",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!wt(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){u.add(typeof c=="number"?c.toString():c);let p=t.valueType._zod.run({value:n[c],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(..._e(c,d.issues)),r.value[c]=d.value})):(p.issues.length&&r.issues.push(..._e(c,p.issues)),r.value[c]=p.value)}let l;for(let c in n)u.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ai.test(u)&&l.issues.length){let d=t.keyType._zod.run({value:Number(u),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Se(d,o,Z())),input:u,path:[u],inst:e});continue}let p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(..._e(u,d.issues)),r.value[l.value]=d.value})):(p.issues.length&&r.issues.push(..._e(u,p.issues)),r.value[l.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Ll=f("$ZodMap",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[s,u]of n){let l=t.keyType._zod.run({value:s,issues:[]},o),c=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([p,d])=>{Lv(p,d,r,s,n,e,o)})):Lv(l,c,r,s,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Lv(e,t,r,o,n,i,s){e.issues.length&&(_r.has(typeof o)?r.issues.push(..._e(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(u=>Se(u,s,Z()))})),t.issues.length&&(_r.has(typeof o)?r.issues.push(..._e(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(u=>Se(u,s,Z()))})),r.value.set(e.value,t.value)}var Nl=f("$ZodSet",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let u=t.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Nv(l,r))):Nv(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Nv(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var ql=f("$ZodEnum",(e,t)=>{$.init(e,t);let r=Dr(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>_r.has(typeof n)).map(n=>typeof n=="string"?Ae(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Ul=f("$ZodLiteral",(e,t)=>{if($.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Ae(o):o?Ae(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Vl=f("$ZodFile",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Wl=f("$ZodTransform",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dt(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Be;return r.value=n,r}});function qv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var vi=f("$ZodOptional",(e,t)=>{$.init(e,t),e._zod.optin="optional",e._zod.optout="optional",F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ir(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>qv(i,r.value)):qv(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Hl=f("$ZodExactOptional",(e,t)=>{vi.init(e,t),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Kl=f("$ZodNullable",(e,t)=>{$.init(e,t),F(e._zod,"optin",()=>t.innerType._zod.optin),F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ir(r.source)}|null)$`):void 0}),F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Zl=f("$ZodDefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Uv(i,t)):Uv(n,t)}});function Uv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Gl=f("$ZodPrefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Ql=f("$ZodNonOptional",(e,t)=>{$.init(e,t),F(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Vv(i,e)):Vv(n,e)}});function Vv(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 Jl=f("$ZodSuccess",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dt("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Xl=f("$ZodCatch",(e,t)=>{$.init(e,t),F(e._zod,"optin",()=>t.innerType._zod.optin),F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>Se(s,o,Z()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Se(i,o,Z()))},input:r.value}),r.issues=[]),r)}}),Yl=f("$ZodNaN",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),ed=f("$ZodPipe",(e,t)=>{$.init(e,t),F(e._zod,"values",()=>t.in._zod.values),F(e._zod,"optin",()=>t.in._zod.optin),F(e._zod,"optout",()=>t.out._zod.optout),F(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>li(s,t.in,o)):li(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>li(i,t.out,o)):li(n,t.out,o)}});function li(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var zr=f("$ZodCodec",(e,t)=>{$.init(e,t),F(e._zod,"values",()=>t.in._zod.values),F(e._zod,"optin",()=>t.in._zod.optin),F(e._zod,"optout",()=>t.out._zod.optout),F(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(s=>di(s,t,o)):di(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>di(s,t,o)):di(i,t,o)}}});function di(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>pi(e,i,t.out,r)):pi(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>pi(e,i,t.in,r)):pi(e,n,t.in,r)}}function pi(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var td=f("$ZodReadonly",(e,t)=>{$.init(e,t),F(e._zod,"propValues",()=>t.innerType._zod.propValues),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"optin",()=>t.innerType?._zod?.optin),F(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(Wv):Wv(n)}});function Wv(e){return e.value=Object.freeze(e.value),e}var nd=f("$ZodTemplateLiteral",(e,t)=>{$.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||Qu.has(typeof o))r.push(Ae(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),rd=f("$ZodFunction",(e,t)=>($.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Go(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Go(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Qo(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Qo(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new gi({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),od=f("$ZodPromise",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),id=f("$ZodLazy",(e,t)=>{$.init(e,t),F(e._zod,"innerType",()=>t.getter()),F(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),F(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),F(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),F(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),ad=f("$ZodCustom",(e,t)=>{H.init(e,t),$.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>Hv(i,r,o,e));Hv(n,r,o,e)}});function Hv(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(bn(n))}}var Br={};it(Br,{ar:()=>Xv,az:()=>Yv,be:()=>ty,bg:()=>ny,ca:()=>ry,cs:()=>oy,da:()=>iy,de:()=>ay,en:()=>yi,eo:()=>sy,es:()=>uy,fa:()=>cy,fi:()=>ly,fr:()=>dy,frCA:()=>py,he:()=>my,hu:()=>hy,hy:()=>gy,id:()=>vy,is:()=>yy,it:()=>Sy,ja:()=>by,ka:()=>Ty,kh:()=>xy,km:()=>Si,ko:()=>Ey,lt:()=>Iy,mk:()=>_y,ms:()=>wy,nl:()=>Py,no:()=>Cy,ota:()=>ky,pl:()=>Ay,ps:()=>Ry,pt:()=>jy,ru:()=>Oy,sl:()=>My,sv:()=>zy,ta:()=>Fy,th:()=>By,tr:()=>Ly,ua:()=>Ny,uk:()=>bi,ur:()=>qy,uz:()=>Uy,vi:()=>Vy,yo:()=>Ky,zhCN:()=>Wy,zhTW:()=>Hy});var ZR=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Xv(){return{localeError:ZR()}}var GR=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Yv(){return{localeError:GR()}}function ey(e,t,r,o){let n=Math.abs(e),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?r:o}var QR=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let u=Number(n.maximum),l=ey(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let u=Number(n.minimum),l=ey(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function ty(){return{localeError:QR()}}var JR=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function ny(){return{localeError:JR()}}var XR=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function ry(){return{localeError:XR()}}var YR=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function oy(){return{localeError:YR()}}var eA=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),u=o[n.origin]??n.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),u=o[n.origin]??n.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function iy(){return{localeError:eA()}}var tA=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ay(){return{localeError:tA()}}var nA=()=>{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(n){return e[n]??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",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`Invalid option: expected one of ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function yi(){return{localeError:nA()}}var rA=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function sy(){return{localeError:rA()}}var oA=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function uy(){return{localeError:oA()}}var iA=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function cy(){return{localeError:iA()}}var aA=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function ly(){return{localeError:aA()}}var sA=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${v(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function dy(){return{localeError:sA()}}var uA=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function py(){return{localeError:uA()}}var cA=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=c=>c?e[c]:void 0,o=c=>{let p=r(c);return p?p.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=c=>c?t[c]??null:null,u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let p=c.expected,d=l[p??""]??o(p),m=b(c.input),h=l[m]??e[m]?.label??m;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(c.values[0])}`;let p=c.values.map(h=>S(h));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let d=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let p=s(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${p?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=c.inclusive?`${c.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=c.inclusive?"<=":"<",h=i(c.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${c.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${c.maximum.toString()}`}case"too_small":{let p=s(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${p?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let P=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`}let y=c.inclusive?`${c.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=c.inclusive?">=":">",h=i(c.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${c.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${c.minimum.toString()}`}case"invalid_format":{let p=c;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let d=u[p.format],m=d?.label??p.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${g}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function my(){return{localeError:cA()}}var lA=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function hy(){return{localeError:lA()}}function fy(e,t,r){return Math.abs(e)===1?t:r}function _n(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var dA=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let u=Number(n.maximum),l=fy(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let u=Number(n.minimum),l=fy(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${v(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${_n(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${_n(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function gy(){return{localeError:dA()}}var pA=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function vy(){return{localeError:pA()}}var mA=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${v(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function yy(){return{localeError:mA()}}var hA=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${v(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Sy(){return{localeError:hA()}}var fA=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function by(){return{localeError:fA()}}var gA=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Ty(){return{localeError:gA()}}var vA=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Si(){return{localeError:vA()}}function xy(){return Si()}var yA=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Ey(){return{localeError:yA()}}var Fr=e=>e.charAt(0).toUpperCase()+e.slice(1);function Dy(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var SA=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,s,u){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=t(n.origin,Dy(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Fr(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Fr(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=t(n.origin,Dy(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Fr(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Fr(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${v(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Fr(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Iy(){return{localeError:SA()}}var bA=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function _y(){return{localeError:bA()}}var TA=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function wy(){return{localeError:TA()}}var xA=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Py(){return{localeError:xA()}}var EA=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Cy(){return{localeError:EA()}}var DA=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function ky(){return{localeError:DA()}}var IA=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Ry(){return{localeError:IA()}}var _A=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Ay(){return{localeError:_A()}}var wA=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${S(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function jy(){return{localeError:wA()}}function $y(e,t,r,o){let n=Math.abs(e),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?r:o}var PA=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let u=Number(n.maximum),l=$y(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let u=Number(n.minimum),l=$y(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Oy(){return{localeError:PA()}}var CA=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function My(){return{localeError:CA()}}var kA=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function zy(){return{localeError:kA()}}var RA=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Fy(){return{localeError:RA()}}var AA=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function By(){return{localeError:AA()}}var jA=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Ly(){return{localeError:jA()}}var $A=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function bi(){return{localeError:$A()}}function Ny(){return bi()}var OA=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function qy(){return{localeError:OA()}}var MA=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Uy(){return{localeError:MA()}}var zA=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Vy(){return{localeError:zA()}}var FA=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Wy(){return{localeError:FA()}}var BA=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Hy(){return{localeError:BA()}}var LA=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Ky(){return{localeError:LA()}}var Zy,sd=Symbol("ZodOutput"),ud=Symbol("ZodInput"),Ti=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function xi(){return new Ti}(Zy=globalThis).__zod_globalRegistry??(Zy.__zod_globalRegistry=xi());var te=globalThis.__zod_globalRegistry;function cd(e,t){return new e({type:"string",...x(t)})}function ld(e,t){return new e({type:"string",coerce:!0,...x(t)})}function Ei(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function Lr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function Di(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function Ii(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function _i(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function wi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function Nr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function Pi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function Ci(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function ki(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function Ri(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function Ai(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function ji(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function $i(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function Oi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function Mi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function dd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...x(t)})}function zi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function Fi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function Bi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function Li(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Ni(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function qi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}var pd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function md(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function hd(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function fd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function gd(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function vd(e,t){return new e({type:"number",checks:[],...x(t)})}function yd(e,t){return new e({type:"number",coerce:!0,checks:[],...x(t)})}function Sd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function bd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(t)})}function Td(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(t)})}function xd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(t)})}function Ed(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(t)})}function Dd(e,t){return new e({type:"boolean",...x(t)})}function Id(e,t){return new e({type:"boolean",coerce:!0,...x(t)})}function _d(e,t){return new e({type:"bigint",...x(t)})}function wd(e,t){return new e({type:"bigint",coerce:!0,...x(t)})}function Pd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(t)})}function Cd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(t)})}function kd(e,t){return new e({type:"symbol",...x(t)})}function Rd(e,t){return new e({type:"undefined",...x(t)})}function Ad(e,t){return new e({type:"null",...x(t)})}function jd(e){return new e({type:"any"})}function $d(e){return new e({type:"unknown"})}function Od(e,t){return new e({type:"never",...x(t)})}function Md(e,t){return new e({type:"void",...x(t)})}function zd(e,t){return new e({type:"date",...x(t)})}function Fd(e,t){return new e({type:"date",coerce:!0,...x(t)})}function Bd(e,t){return new e({type:"nan",...x(t)})}function He(e,t){return new si({check:"less_than",...x(t),value:e,inclusive:!1})}function we(e,t){return new si({check:"less_than",...x(t),value:e,inclusive:!0})}function Ke(e,t){return new ui({check:"greater_than",...x(t),value:e,inclusive:!1})}function pe(e,t){return new ui({check:"greater_than",...x(t),value:e,inclusive:!0})}function Ui(e){return Ke(0,e)}function Vi(e){return He(0,e)}function Wi(e){return we(0,e)}function Hi(e){return pe(0,e)}function Ct(e,t){return new Ac({check:"multiple_of",...x(t),value:e})}function kt(e,t){return new Oc({check:"max_size",...x(t),maximum:e})}function Ze(e,t){return new Mc({check:"min_size",...x(t),minimum:e})}function Zt(e,t){return new zc({check:"size_equals",...x(t),size:e})}function Gt(e,t){return new Fc({check:"max_length",...x(t),maximum:e})}function ut(e,t){return new Bc({check:"min_length",...x(t),minimum:e})}function Qt(e,t){return new Lc({check:"length_equals",...x(t),length:e})}function wn(e,t){return new Nc({check:"string_format",format:"regex",...x(t),pattern:e})}function Pn(e){return new qc({check:"string_format",format:"lowercase",...x(e)})}function Cn(e){return new Uc({check:"string_format",format:"uppercase",...x(e)})}function kn(e,t){return new Vc({check:"string_format",format:"includes",...x(t),includes:e})}function Rn(e,t){return new Wc({check:"string_format",format:"starts_with",...x(t),prefix:e})}function An(e,t){return new Hc({check:"string_format",format:"ends_with",...x(t),suffix:e})}function Ki(e,t,r){return new Kc({check:"property",property:e,schema:t,...x(r)})}function jn(e,t){return new Zc({check:"mime_type",mime:e,...x(t)})}function Le(e){return new Gc({check:"overwrite",tx:e})}function $n(e){return Le(t=>t.normalize(e))}function On(){return Le(e=>e.trim())}function Mn(){return Le(e=>e.toLowerCase())}function zn(){return Le(e=>e.toUpperCase())}function Fn(){return Le(e=>Ku(e))}function Ld(e,t,r){return new e({type:"array",element:t,...x(r)})}function qA(e,t,r){return new e({type:"union",options:t,...x(r)})}function UA(e,t,r){return new e({type:"union",options:t,inclusive:!1,...x(r)})}function VA(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...x(o)})}function WA(e,t,r){return new e({type:"intersection",left:t,right:r})}function HA(e,t,r,o){let n=r instanceof $,i=n?o:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...x(i)})}function KA(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...x(o)})}function ZA(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...x(o)})}function GA(e,t,r){return new e({type:"set",valueType:t,...x(r)})}function QA(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...x(r)})}function JA(e,t,r){return new e({type:"enum",entries:t,...x(r)})}function XA(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...x(r)})}function Nd(e,t){return new e({type:"file",...x(t)})}function YA(e,t){return new e({type:"transform",transform:t})}function e0(e,t){return new e({type:"optional",innerType:t})}function t0(e,t){return new e({type:"nullable",innerType:t})}function n0(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Gu(r)}})}function r0(e,t,r){return new e({type:"nonoptional",innerType:t,...x(r)})}function o0(e,t){return new e({type:"success",innerType:t})}function i0(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function a0(e,t,r){return new e({type:"pipe",in:t,out:r})}function s0(e,t){return new e({type:"readonly",innerType:t})}function u0(e,t,r){return new e({type:"template_literal",parts:t,...x(r)})}function c0(e,t){return new e({type:"lazy",getter:t})}function l0(e,t){return new e({type:"promise",innerType:t})}function qd(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Ud(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Vd(e){let t=Gy(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(bn(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(bn(n))}},e(r.value,r)));return t}function Gy(e,t){let r=new H({check:"custom",...x(t)});return r._zod.check=e,r}function Wd(e){let t=new H({check:"describe"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Hd(e){let t=new H({check:"meta"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Kd(e,t){let r=x(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),u=e.Codec??zr,l=e.Boolean??Or,c=e.String??Kt,p=new c({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),m=new u({type:"pipe",in:p,out:d,transform:((h,g)=>{let y=h;return r.case!=="sensitive"&&(y=y.toLowerCase()),i.has(y)?!0:s.has(y)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((h,g)=>h===!0?o[0]||"true":n[0]||"false"),error:r.error});return m}function Bn(e,t,r,o={}){let n=x(o),i={...x(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Rt(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??te,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function U(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{let m=s.schema,h=t.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(e,t,m,p)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),U(d,t,p),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),t.io==="input"&&me(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function At(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let u=e.metadataRegistry.get(s[0])?.id;if(u){let l=o.get(u);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,s[0])}}let n=s=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(g=>g);if(d)return{ref:m(d)};let h=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(s[1]===r)return{ref:"#"};let c=`#/${u}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:c+p}},i=s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:l,defId:c}=n(s);u.def={...u.schema},c&&(u.defId=c);let p=u.schema;for(let d in p)delete p[d];p.$ref=l};if(e.cycles==="throw")for(let s of e.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
93
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");let j=h.compile();return(N,M)=>j(m,N,M)},i,s=Qt,c=!Dr.jitless,u=c&&eu.value,p=t.catchall,d;e._zod.parse=(m,h)=>{d??(d=o.value);let g=m.value;return s(g)?c&&u&&h?.async===!1&&h.jitless!==!0?(i||(i=n(t.shape)),m=i(m,h),p?ay([],g,m,h,d,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Kv(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!jt(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>be(s,o,Z())))}),t)}var Br=f("$ZodUnion",(e,t)=>{$.init(e,t),B(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),B(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),B(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),B(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Pr(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,c=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)c.push(u),s=!0;else{if(u.issues.length===0)return u;c.push(u)}}return s?Promise.all(c).then(l=>Kv(l,n,e,i)):Kv(c,n,e,i)}});function Zv(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>be(s,o,Z())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var ql=f("$ZodXor",(e,t)=>{Br.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,c=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(c.push(u),s=!0):c.push(u)}return s?Promise.all(c).then(l=>Zv(l,n,e,i)):Zv(c,n,e,i)}}),Ul=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Br.init(e,t);let r=e._zod.parse;B(e._zod,"propValues",()=>{let n={};for(let i of t.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[c,l]of Object.entries(s)){n[c]||(n[c]=new Set);for(let u of l)n[c].add(u)}}return n});let o=En(()=>{let n=t.options,i=new Map;for(let s of n){let c=s._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of c){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});e._zod.parse=(n,i)=>{let s=n.value;if(!Qt(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let c=o.value.get(s?.[t.discriminator]);return c?c._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),n)}}),Wl=f("$ZodIntersection",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),s=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,u])=>Gv(r,l,u)):Gv(r,i,s)}});function rl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(At(e)&&At(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let s=rl(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],s=rl(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Gv(e,t,r){let o=new Map,n;for(let c of t.issues)if(c.code==="unrecognized_keys"){n??(n=c);for(let l of c.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(c);for(let c of r.issues)if(c.code==="unrecognized_keys")for(let l of c.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(c);let i=[...o].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&n&&e.issues.push({...n,keys:i}),jt(e))return e;let s=rl(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Si=f("$ZodTuple",(e,t)=>{$.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],c=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),l=c===-1?0:r.length-c;if(!t.rest){let p=i.length>r.length,d=i.length<l-1;if(p||d)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let p of r){if(u++,u>=i.length&&u>=l)continue;let d=p._zod.run({value:i[u],issues:[]},n);d instanceof Promise?s.push(d.then(m=>pi(m,o,u))):pi(d,o,u)}if(t.rest){let p=i.slice(r.length);for(let d of p){u++;let m=t.rest._zod.run({value:d,issues:[]},n);m instanceof Promise?s.push(m.then(h=>pi(h,o,u))):pi(m,o,u)}}return s.length?Promise.all(s).then(()=>o):o}});function pi(e,t,r){e.issues.length&&t.issues.push(...Pe(r,e.issues)),t.value[r]=e.value}var Vl=f("$ZodRecord",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!At(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],s=t.keyType._zod.values;if(s){r.value={};let c=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){c.add(typeof u=="number"?u.toString():u);let p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(...Pe(u,d.issues)),r.value[u]=d.value})):(p.issues.length&&r.issues.push(...Pe(u,p.issues)),r.value[u]=p.value)}let l;for(let u in n)c.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let c of Reflect.ownKeys(n)){if(c==="__proto__")continue;let l=t.keyType._zod.run({value:c,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&ui.test(c)&&l.issues.length){let d=t.keyType._zod.run({value:Number(c),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?r.value[c]=n[c]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>be(d,o,Z())),input:c,path:[c],inst:e});continue}let p=t.valueType._zod.run({value:n[c],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(...Pe(c,d.issues)),r.value[l.value]=d.value})):(p.issues.length&&r.issues.push(...Pe(c,p.issues)),r.value[l.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Hl=f("$ZodMap",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[s,c]of n){let l=t.keyType._zod.run({value:s,issues:[]},o),u=t.valueType._zod.run({value:c,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([p,d])=>{Qv(p,d,r,s,n,e,o)})):Qv(l,u,r,s,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Qv(e,t,r,o,n,i,s){e.issues.length&&(wr.has(typeof o)?r.issues.push(...Pe(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(c=>be(c,s,Z()))})),t.issues.length&&(wr.has(typeof o)?r.issues.push(...Pe(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(c=>be(c,s,Z()))})),r.value.set(e.value,t.value)}var Kl=f("$ZodSet",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let c=t.valueType._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(l=>Jv(l,r))):Jv(c,r)}return i.length?Promise.all(i).then(()=>r):r}});function Jv(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Zl=f("$ZodEnum",(e,t)=>{$.init(e,t);let r=_r(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>wr.has(typeof n)).map(n=>typeof n=="string"?Me(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Gl=f("$ZodLiteral",(e,t)=>{if($.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Me(o):o?Me(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Ql=f("$ZodFile",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Jl=f("$ZodTransform",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ct(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Ue;return r.value=n,r}});function Xv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bi=f("$ZodOptional",(e,t)=>{$.init(e,t),e._zod.optin="optional",e._zod.optout="optional",B(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),B(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Pr(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Xv(i,r.value)):Xv(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Xl=f("$ZodExactOptional",(e,t)=>{bi.init(e,t),B(e._zod,"values",()=>t.innerType._zod.values),B(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Yl=f("$ZodNullable",(e,t)=>{$.init(e,t),B(e._zod,"optin",()=>t.innerType._zod.optin),B(e._zod,"optout",()=>t.innerType._zod.optout),B(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Pr(r.source)}|null)$`):void 0}),B(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),ed=f("$ZodDefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",B(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Yv(i,t)):Yv(n,t)}});function Yv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var td=f("$ZodPrefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",B(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),nd=f("$ZodNonOptional",(e,t)=>{$.init(e,t),B(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>ey(i,e)):ey(n,e)}});function ey(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 rd=f("$ZodSuccess",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ct("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),od=f("$ZodCatch",(e,t)=>{$.init(e,t),B(e._zod,"optin",()=>t.innerType._zod.optin),B(e._zod,"optout",()=>t.innerType._zod.optout),B(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>be(s,o,Z()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>be(i,o,Z()))},input:r.value}),r.issues=[]),r)}}),id=f("$ZodNaN",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),ad=f("$ZodPipe",(e,t)=>{$.init(e,t),B(e._zod,"values",()=>t.in._zod.values),B(e._zod,"optin",()=>t.in._zod.optin),B(e._zod,"optout",()=>t.out._zod.optout),B(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>mi(s,t.in,o)):mi(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>mi(i,t.out,o)):mi(n,t.out,o)}});function mi(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Fr=f("$ZodCodec",(e,t)=>{$.init(e,t),B(e._zod,"values",()=>t.in._zod.values),B(e._zod,"optin",()=>t.in._zod.optin),B(e._zod,"optout",()=>t.out._zod.optout),B(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(s=>hi(s,t,o)):hi(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>hi(s,t,o)):hi(i,t,o)}}});function hi(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>fi(e,i,t.out,r)):fi(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>fi(e,i,t.in,r)):fi(e,n,t.in,r)}}function fi(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var sd=f("$ZodReadonly",(e,t)=>{$.init(e,t),B(e._zod,"propValues",()=>t.innerType._zod.propValues),B(e._zod,"values",()=>t.innerType._zod.values),B(e._zod,"optin",()=>t.innerType?._zod?.optin),B(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(ty):ty(n)}});function ty(e){return e.value=Object.freeze(e.value),e}var cd=f("$ZodTemplateLiteral",(e,t)=>{$.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||nu.has(typeof o))r.push(Me(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),ud=f("$ZodFunction",(e,t)=>($.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Xo(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Xo(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Yo(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Yo(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Si({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),ld=f("$ZodPromise",(e,t)=>{$.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),dd=f("$ZodLazy",(e,t)=>{$.init(e,t),B(e._zod,"innerType",()=>t.getter()),B(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),B(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),B(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),B(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),pd=f("$ZodCustom",(e,t)=>{H.init(e,t),$.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>ny(i,r,o,e));ny(n,r,o,e)}});function ny(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Dn(n))}}var Nr={};ct(Nr,{ar:()=>cy,az:()=>uy,be:()=>dy,bg:()=>py,ca:()=>my,cs:()=>hy,da:()=>fy,de:()=>gy,en:()=>Ti,eo:()=>vy,es:()=>yy,fa:()=>Sy,fi:()=>by,fr:()=>Ty,frCA:()=>xy,he:()=>Ey,hu:()=>Dy,hy:()=>_y,id:()=>Py,is:()=>wy,it:()=>Cy,ja:()=>ky,ka:()=>Ry,kh:()=>Ay,km:()=>xi,ko:()=>jy,lt:()=>My,mk:()=>Oy,ms:()=>zy,nl:()=>By,no:()=>Fy,ota:()=>Ly,pl:()=>qy,ps:()=>Ny,pt:()=>Uy,ru:()=>Vy,sl:()=>Hy,sv:()=>Ky,ta:()=>Zy,th:()=>Gy,tr:()=>Qy,ua:()=>Jy,uk:()=>Ei,ur:()=>Xy,uz:()=>Yy,vi:()=>eS,yo:()=>rS,zhCN:()=>tS,zhTW:()=>nS});var mA=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function cy(){return{localeError:mA()}}var hA=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${c}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function uy(){return{localeError:hA()}}function ly(e,t,r,o){let n=Math.abs(e),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?r:o}var fA=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let c=Number(n.maximum),l=ly(c,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let c=Number(n.minimum),l=ly(c,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function dy(){return{localeError:fA()}}var gA=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function py(){return{localeError:gA()}}var vA=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${c}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function my(){return{localeError:vA()}}var yA=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${c}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function hy(){return{localeError:yA()}}var SA=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${c}`:`Ugyldigt input: forventede ${i}, fik ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),c=o[n.origin]??n.origin;return s?`For stor: forventede ${c??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),c=o[n.origin]??n.origin;return s?`For lille: forventede ${c} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${c} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function fy(){return{localeError:SA()}}var bA=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${c}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function gy(){return{localeError:bA()}}var TA=()=>{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(n){return e[n]??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",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return`Invalid input: expected ${i}, received ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`Invalid option: expected one of ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Ti(){return{localeError:TA()}}var xA=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${c}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function vy(){return{localeError:xA()}}var EA=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),c=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),c=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function yy(){return{localeError:EA()}}var DA=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Sy(){return{localeError:DA()}}var IA=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${c}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function by(){return{localeError:IA()}}var _A=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${c} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${v(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Ty(){return{localeError:_A()}}var PA=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${c}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function xy(){return{localeError:PA()}}var wA=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,o=u=>{let p=r(u);return p?p.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?t[u]??null:null,c={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let p=u.expected,d=l[p??""]??o(p),m=b(u.input),h=l[m]??e[m]?.label??m;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(u.values[0])}`;let p=u.values.map(h=>S(h));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let d=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let p=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=u.inclusive?`${u.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=u.inclusive?"<=":"<",h=i(u.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${u.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${u.maximum.toString()}`}case"too_small":{let p=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let C=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${C}`}let y=u.inclusive?`${u.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=u.inclusive?">=":">",h=i(u.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${u.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${u.minimum.toString()}`}case"invalid_format":{let p=u;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let d=c[p.format],m=d?.label??p.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${g}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Ey(){return{localeError:wA()}}var CA=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Dy(){return{localeError:CA()}}function Iy(e,t,r){return Math.abs(e)===1?t:r}function kn(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var kA=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let c=Number(n.maximum),l=Iy(c,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${kn(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${kn(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let c=Number(n.minimum),l=Iy(c,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${kn(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${kn(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${v(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${kn(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${kn(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function _y(){return{localeError:kA()}}var RA=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${i}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Py(){return{localeError:RA()}}var AA=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${v(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function wy(){return{localeError:AA()}}var jA=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${c}`:`Input non valido: atteso ${i}, ricevuto ${c}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${v(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Cy(){return{localeError:jA()}}var $A=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function ky(){return{localeError:$A()}}var MA=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Ry(){return{localeError:MA()}}var OA=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function xi(){return{localeError:OA()}}function Ay(){return xi()}var zA=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(n.origin),l=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(n.origin),l=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function jy(){return{localeError:zA()}}var Lr=e=>e.charAt(0).toUpperCase()+e.slice(1);function $y(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var BA=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,s,c){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[c][s?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=t(n.origin,$y(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Lr(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let c=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Lr(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=t(n.origin,$y(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Lr(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let c=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Lr(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${v(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Lr(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function My(){return{localeError:BA()}}var FA=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Oy(){return{localeError:FA()}}var LA=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${c}`:`Input tidak sah: dijangka ${i}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function zy(){return{localeError:LA()}}var NA=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${i}, ontving ${c}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin),c=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${c}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${c}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin),c=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${c}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${c}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function By(){return{localeError:NA()}}var qA=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${c}`:`Ugyldig input: forventet ${i}, fikk ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Fy(){return{localeError:qA()}}var UA=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Ly(){return{localeError:UA()}}var WA=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Ny(){return{localeError:WA()}}var VA=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${c}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function qy(){return{localeError:VA()}}var HA=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${S(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Uy(){return{localeError:HA()}}function Wy(e,t,r,o){let n=Math.abs(e),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?r:o}var KA=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);if(s){let c=Number(n.maximum),l=Wy(c,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);if(s){let c=Number(n.minimum),l=Wy(c,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Vy(){return{localeError:KA()}}var ZA=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${c}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Hy(){return{localeError:ZA()}}var GA=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${c}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Ky(){return{localeError:GA()}}var QA=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Zy(){return{localeError:QA()}}var JA=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Gy(){return{localeError:JA()}}var XA=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Qy(){return{localeError:XA()}}var YA=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ei(){return{localeError:YA()}}function Jy(){return Ei()}var ej=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Xy(){return{localeError:ej()}}var tj=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${c}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Yy(){return{localeError:tj()}}var nj=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function eS(){return{localeError:nj()}}var rj=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function tS(){return{localeError:rj()}}var oj=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function nS(){return{localeError:oj()}}var ij=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=b(n.input),c=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=t(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function rS(){return{localeError:ij()}}var oS,md=Symbol("ZodOutput"),hd=Symbol("ZodInput"),Di=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Ii(){return new Di}(oS=globalThis).__zod_globalRegistry??(oS.__zod_globalRegistry=Ii());var re=globalThis.__zod_globalRegistry;function fd(e,t){return new e({type:"string",...x(t)})}function gd(e,t){return new e({type:"string",coerce:!0,...x(t)})}function _i(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function qr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function Pi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function wi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function Ci(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function ki(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function Ur(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function Ri(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function Ai(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function ji(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function $i(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function Mi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function Oi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function zi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function Bi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function Fi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function vd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...x(t)})}function Li(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function Ni(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function qi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function Ui(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Wi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Vi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}var yd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Sd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function bd(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function Td(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function xd(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function Ed(e,t){return new e({type:"number",checks:[],...x(t)})}function Dd(e,t){return new e({type:"number",coerce:!0,checks:[],...x(t)})}function Id(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function _d(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(t)})}function Pd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(t)})}function wd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(t)})}function Cd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(t)})}function kd(e,t){return new e({type:"boolean",...x(t)})}function Rd(e,t){return new e({type:"boolean",coerce:!0,...x(t)})}function Ad(e,t){return new e({type:"bigint",...x(t)})}function jd(e,t){return new e({type:"bigint",coerce:!0,...x(t)})}function $d(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(t)})}function Md(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(t)})}function Od(e,t){return new e({type:"symbol",...x(t)})}function zd(e,t){return new e({type:"undefined",...x(t)})}function Bd(e,t){return new e({type:"null",...x(t)})}function Fd(e){return new e({type:"any"})}function Ld(e){return new e({type:"unknown"})}function Nd(e,t){return new e({type:"never",...x(t)})}function qd(e,t){return new e({type:"void",...x(t)})}function Ud(e,t){return new e({type:"date",...x(t)})}function Wd(e,t){return new e({type:"date",coerce:!0,...x(t)})}function Vd(e,t){return new e({type:"nan",...x(t)})}function Ge(e,t){return new li({check:"less_than",...x(t),value:e,inclusive:!1})}function we(e,t){return new li({check:"less_than",...x(t),value:e,inclusive:!0})}function Qe(e,t){return new di({check:"greater_than",...x(t),value:e,inclusive:!1})}function he(e,t){return new di({check:"greater_than",...x(t),value:e,inclusive:!0})}function Hi(e){return Qe(0,e)}function Ki(e){return Ge(0,e)}function Zi(e){return we(0,e)}function Gi(e){return he(0,e)}function $t(e,t){return new Bu({check:"multiple_of",...x(t),value:e})}function Mt(e,t){return new Nu({check:"max_size",...x(t),maximum:e})}function Je(e,t){return new qu({check:"min_size",...x(t),minimum:e})}function Yt(e,t){return new Uu({check:"size_equals",...x(t),size:e})}function en(e,t){return new Wu({check:"max_length",...x(t),maximum:e})}function dt(e,t){return new Vu({check:"min_length",...x(t),minimum:e})}function tn(e,t){return new Hu({check:"length_equals",...x(t),length:e})}function Rn(e,t){return new Ku({check:"string_format",format:"regex",...x(t),pattern:e})}function An(e){return new Zu({check:"string_format",format:"lowercase",...x(e)})}function jn(e){return new Gu({check:"string_format",format:"uppercase",...x(e)})}function $n(e,t){return new Qu({check:"string_format",format:"includes",...x(t),includes:e})}function Mn(e,t){return new Ju({check:"string_format",format:"starts_with",...x(t),prefix:e})}function On(e,t){return new Xu({check:"string_format",format:"ends_with",...x(t),suffix:e})}function Qi(e,t,r){return new Yu({check:"property",property:e,schema:t,...x(r)})}function zn(e,t){return new el({check:"mime_type",mime:e,...x(t)})}function We(e){return new tl({check:"overwrite",tx:e})}function Bn(e){return We(t=>t.normalize(e))}function Fn(){return We(e=>e.trim())}function Ln(){return We(e=>e.toLowerCase())}function Nn(){return We(e=>e.toUpperCase())}function qn(){return We(e=>Yc(e))}function Hd(e,t,r){return new e({type:"array",element:t,...x(r)})}function sj(e,t,r){return new e({type:"union",options:t,...x(r)})}function cj(e,t,r){return new e({type:"union",options:t,inclusive:!1,...x(r)})}function uj(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...x(o)})}function lj(e,t,r){return new e({type:"intersection",left:t,right:r})}function dj(e,t,r,o){let n=r instanceof $,i=n?o:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...x(i)})}function pj(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...x(o)})}function mj(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...x(o)})}function hj(e,t,r){return new e({type:"set",valueType:t,...x(r)})}function fj(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...x(r)})}function gj(e,t,r){return new e({type:"enum",entries:t,...x(r)})}function vj(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...x(r)})}function Kd(e,t){return new e({type:"file",...x(t)})}function yj(e,t){return new e({type:"transform",transform:t})}function Sj(e,t){return new e({type:"optional",innerType:t})}function bj(e,t){return new e({type:"nullable",innerType:t})}function Tj(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():tu(r)}})}function xj(e,t,r){return new e({type:"nonoptional",innerType:t,...x(r)})}function Ej(e,t){return new e({type:"success",innerType:t})}function Dj(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Ij(e,t,r){return new e({type:"pipe",in:t,out:r})}function _j(e,t){return new e({type:"readonly",innerType:t})}function Pj(e,t,r){return new e({type:"template_literal",parts:t,...x(r)})}function wj(e,t){return new e({type:"lazy",getter:t})}function Cj(e,t){return new e({type:"promise",innerType:t})}function Zd(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Gd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Qd(e){let t=iS(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Dn(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Dn(n))}},e(r.value,r)));return t}function iS(e,t){let r=new H({check:"custom",...x(t)});return r._zod.check=e,r}function Jd(e){let t=new H({check:"describe"});return t._zod.onattach=[r=>{let o=re.get(r)??{};re.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Xd(e){let t=new H({check:"meta"});return t._zod.onattach=[r=>{let o=re.get(r)??{};re.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Yd(e,t){let r=x(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),c=e.Codec??Fr,l=e.Boolean??zr,u=e.String??Xt,p=new u({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),m=new c({type:"pipe",in:p,out:d,transform:((h,g)=>{let y=h;return r.case!=="sensitive"&&(y=y.toLowerCase()),i.has(y)?!0:s.has(y)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((h,g)=>h===!0?o[0]||"true":n[0]||"false"),error:r.error});return m}function Un(e,t,r,o={}){let n=x(o),i={...x(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:c=>r.test(c),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Ot(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??re,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function U(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let c=e._zod.toJSONSchema?.();if(c)s.schema=c;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{let m=s.schema,h=t.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(e,t,m,p)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),U(d,t,p),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),t.io==="input"&&fe(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function zt(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let c=e.metadataRegistry.get(s[0])?.id;if(c){let l=o.get(c);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(c,s[0])}}let n=s=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(g=>g);if(d)return{ref:m(d)};let h=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${c}/${h}`}}if(s[1]===r)return{ref:"#"};let u=`#/${c}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},i=s=>{if(s[1].schema.$ref)return;let c=s[1],{ref:l,defId:u}=n(s);c.def={...c.schema},u&&(c.defId=u);let p=c.schema;for(let d in p)delete p[d];p.$ref=l};if(e.cycles==="throw")for(let s of e.seen.entries()){let c=s[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
94
+
95
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let c=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(c.cycle){i(s);continue}if(c.count>1&&e.reused==="ref"){i(s);continue}}}function Bt(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,u={...l},p=c.ref;if(c.ref=null,p){o(p);let m=e.seen.get(p),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,u),s._zod.parent===p)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&m.def)for(let y in l)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(l[y])===JSON.stringify(m.def[y])&&delete l[y]}let d=s._zod.parent;if(d&&d!==p){o(d);let m=e.seen.get(d);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wn(t,"input",e.processors),output:Wn(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function fe(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return fe(o.element,r);if(o.type==="set")return fe(o.valueType,r);if(o.type==="lazy")return fe(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return fe(o.innerType,r);if(o.type==="intersection")return fe(o.left,r)||fe(o.right,r);if(o.type==="record"||o.type==="map")return fe(o.keyType,r)||fe(o.valueType,r);if(o.type==="pipe")return fe(o.in,r)||fe(o.out,r);if(o.type==="object"){for(let n in o.shape)if(fe(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(fe(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(fe(n,r))return!0;return!!(o.rest&&fe(o.rest,r))}return!1}var ep=(e,t={})=>r=>{let o=Ot({...r,processors:t});return U(e,o),zt(o,e),Bt(o,e)},Wn=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=Ot({...n??{},target:i,io:t,processors:r});return U(e,s),zt(s,e),Bt(s,e)};var kj={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tp=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:c,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),c&&(n.format=kj[c]??c,n.format===""&&delete n.format,c==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let p=[...l];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},np=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,format:c,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof s=="number"&&(n.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},rp=(e,t,r,o)=>{r.type="boolean"},op=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ip=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ap=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},sp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},cp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},up=(e,t,r,o)=>{r.not={}},lp=(e,t,r,o)=>{},dp=(e,t,r,o)=>{},pp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},mp=(e,t,r,o)=>{let n=e._zod.def,i=_r(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},hp=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let s of n.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},fp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},gp=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},vp=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:c,mime:l}=e._zod.bag;s!==void 0&&(i.minLength=s),c!==void 0&&(i.maxLength=c),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,i)},yp=(e,t,r,o)=>{r.type="boolean"},Sp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},bp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Tp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Ep=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Dp=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:c}=e._zod.bag;typeof s=="number"&&(n.minItems=s),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=U(i.element,t,{...o,path:[...o.path,"items"]})},Ip=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let s=i.shape;for(let u in s)n.properties[u]=U(s[u],t,{...o,path:[...o.path,"properties",u]});let c=new Set(Object.keys(s)),l=new Set([...c].filter(u=>{let p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=U(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Xi=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((c,l)=>U(c,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},_p=(e,t,r,o)=>{let n=e._zod.def,i=U(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=U(n.right,t,{...o,path:[...o.path,"allOf",1]}),c=u=>"allOf"in u&&Object.keys(u).length===1,l=[...c(i)?i.allOf:[i],...c(s)?s.allOf:[s]];r.allOf=l},Pp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>U(m,t,{...o,path:[...o.path,s,h]})),u=i.rest?U(i.rest,t,{...o,path:[...o.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:p,maximum:d}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof d=="number"&&(n.maxItems=d)},wp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let p=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=U(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=U(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=s._zod.values;if(u){let p=[...u].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p)}},Cp=(e,t,r,o)=>{let n=e._zod.def,i=U(n.innerType,t,o),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},kp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Rp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Ap=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},jp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},$p=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;U(i,t,o);let s=t.seen.get(e);s.ref=i},Mp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},Op=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Yi=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},zp=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},Ji={string:tp,number:np,boolean:rp,bigint:op,symbol:ip,null:ap,undefined:sp,void:cp,never:up,any:lp,unknown:dp,date:pp,enum:mp,literal:hp,nan:fp,template_literal:gp,file:vp,success:yp,custom:Sp,function:bp,transform:Tp,map:xp,set:Ep,array:Dp,object:Ip,union:Xi,intersection:_p,tuple:Pp,record:wp,nullable:Cp,nonoptional:kp,default:Rp,prefault:Ap,catch:jp,pipe:$p,readonly:Mp,promise:Op,optional:Yi,lazy:zp};function ea(e,t){if("_idmap"in e){let o=e,n=Ot({...t,processors:Ji}),i={};for(let l of o._idmap.entries()){let[u,p]=l;U(p,n)}let s={},c={registry:o,uri:t?.uri,defs:i};n.external=c;for(let l of o._idmap.entries()){let[u,p]=l;zt(n,p),s[u]=Bt(n,p)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=Ot({...t,processors:Ji});return U(e,r),zt(r,e),Bt(r,e)}var ta=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ot({processors:Ji,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return U(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),zt(this.ctx,t);let o=Bt(this.ctx,t),{"~standard":n,...i}=o;return i}};var aS={};var Wr={};ct(Wr,{ZodAny:()=>sm,ZodArray:()=>dm,ZodBase64:()=>xa,ZodBase64URL:()=>Ea,ZodBigInt:()=>Jn,ZodBigIntFormat:()=>_a,ZodBoolean:()=>Qn,ZodCIDRv4:()=>ba,ZodCIDRv6:()=>Ta,ZodCUID:()=>ma,ZodCUID2:()=>ha,ZodCatch:()=>jm,ZodCodec:()=>$a,ZodCustom:()=>to,ZodCustomStringFormat:()=>Zn,ZodDate:()=>Qr,ZodDefault:()=>Pm,ZodDiscriminatedUnion:()=>mm,ZodE164:()=>Da,ZodEmail:()=>la,ZodEmoji:()=>da,ZodEnum:()=>Hn,ZodExactOptional:()=>Dm,ZodFile:()=>xm,ZodFunction:()=>qm,ZodGUID:()=>Vr,ZodIPv4:()=>ya,ZodIPv6:()=>Sa,ZodIntersection:()=>hm,ZodJWT:()=>Ia,ZodKSUID:()=>va,ZodLazy:()=>Fm,ZodLiteral:()=>Tm,ZodMAC:()=>em,ZodMap:()=>Sm,ZodNaN:()=>Mm,ZodNanoID:()=>pa,ZodNever:()=>um,ZodNonOptional:()=>Aa,ZodNull:()=>im,ZodNullable:()=>_m,ZodNumber:()=>Gn,ZodNumberFormat:()=>rn,ZodObject:()=>Xr,ZodOptional:()=>Ra,ZodPipe:()=>ja,ZodPrefault:()=>Cm,ZodPromise:()=>Nm,ZodReadonly:()=>Om,ZodRecord:()=>eo,ZodSet:()=>bm,ZodString:()=>Kn,ZodStringFormat:()=>V,ZodSuccess:()=>Am,ZodSymbol:()=>rm,ZodTemplateLiteral:()=>Bm,ZodTransform:()=>Em,ZodTuple:()=>gm,ZodType:()=>z,ZodULID:()=>fa,ZodURL:()=>Gr,ZodUUID:()=>Xe,ZodUndefined:()=>om,ZodUnion:()=>Yr,ZodUnknown:()=>cm,ZodVoid:()=>lm,ZodXID:()=>ga,ZodXor:()=>pm,_ZodString:()=>ua,_default:()=>wm,_function:()=>mb,any:()=>VS,array:()=>Jr,base64:()=>wS,base64url:()=>CS,bigint:()=>LS,boolean:()=>nm,catch:()=>$m,check:()=>hb,cidrv4:()=>_S,cidrv6:()=>PS,codec:()=>lb,cuid:()=>yS,cuid2:()=>SS,custom:()=>fb,date:()=>KS,describe:()=>gb,discriminatedUnion:()=>YS,e164:()=>kS,email:()=>cS,emoji:()=>gS,enum:()=>Ca,exactOptional:()=>Im,file:()=>ab,float32:()=>OS,float64:()=>zS,function:()=>mb,guid:()=>uS,hash:()=>MS,hex:()=>$S,hostname:()=>jS,httpUrl:()=>fS,instanceof:()=>yb,int:()=>ca,int32:()=>BS,int64:()=>NS,intersection:()=>fm,ipv4:()=>ES,ipv6:()=>IS,json:()=>bb,jwt:()=>RS,keyof:()=>ZS,ksuid:()=>xS,lazy:()=>Lm,literal:()=>ib,looseObject:()=>JS,looseRecord:()=>tb,mac:()=>DS,map:()=>nb,meta:()=>vb,nan:()=>ub,nanoid:()=>vS,nativeEnum:()=>ob,never:()=>Pa,nonoptional:()=>Rm,null:()=>am,nullable:()=>Kr,nullish:()=>sb,number:()=>tm,object:()=>GS,optional:()=>Hr,partialRecord:()=>eb,pipe:()=>Zr,prefault:()=>km,preprocess:()=>Tb,promise:()=>pb,readonly:()=>zm,record:()=>ym,refine:()=>Um,set:()=>rb,strictObject:()=>QS,string:()=>sa,stringFormat:()=>AS,stringbool:()=>Sb,success:()=>cb,superRefine:()=>Wm,symbol:()=>US,templateLiteral:()=>db,transform:()=>ka,tuple:()=>vm,uint32:()=>FS,uint64:()=>qS,ulid:()=>bS,undefined:()=>WS,union:()=>wa,unknown:()=>nn,url:()=>hS,uuid:()=>lS,uuidv4:()=>dS,uuidv6:()=>pS,uuidv7:()=>mS,void:()=>HS,xid:()=>TS,xor:()=>XS});var na={};ct(na,{endsWith:()=>On,gt:()=>Qe,gte:()=>he,includes:()=>$n,length:()=>tn,lowercase:()=>An,lt:()=>Ge,lte:()=>we,maxLength:()=>en,maxSize:()=>Mt,mime:()=>zn,minLength:()=>dt,minSize:()=>Je,multipleOf:()=>$t,negative:()=>Ki,nonnegative:()=>Gi,nonpositive:()=>Zi,normalize:()=>Bn,overwrite:()=>We,positive:()=>Hi,property:()=>Qi,regex:()=>Rn,size:()=>Yt,slugify:()=>qn,startsWith:()=>Mn,toLowerCase:()=>Ln,toUpperCase:()=>Nn,trim:()=>Fn,uppercase:()=>jn});var Vn={};ct(Vn,{ZodISODate:()=>oa,ZodISODateTime:()=>ra,ZodISODuration:()=>aa,ZodISOTime:()=>ia,date:()=>Fp,datetime:()=>Bp,duration:()=>Np,time:()=>Lp});var ra=f("ZodISODateTime",(e,t)=>{fl.init(e,t),V.init(e,t)});function Bp(e){return Sd(ra,e)}var oa=f("ZodISODate",(e,t)=>{gl.init(e,t),V.init(e,t)});function Fp(e){return bd(oa,e)}var ia=f("ZodISOTime",(e,t)=>{vl.init(e,t),V.init(e,t)});function Lp(e){return Td(ia,e)}var aa=f("ZodISODuration",(e,t)=>{yl.init(e,t),V.init(e,t)});function Np(e){return xd(aa,e)}var sS=(e,t)=>{Rr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>jr(e,r)},flatten:{value:r=>Ar(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xn,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xn,2)}},isEmpty:{get(){return e.issues.length===0}}})},Aj=f("ZodError",sS),xe=f("ZodError",sS,{Parent:Error});var qp=In(xe),Up=_n(xe),Wp=Pn(xe),Vp=wn(xe),Hp=ei(xe),Kp=ti(xe),Zp=ni(xe),Gp=ri(xe),Qp=oi(xe),Jp=ii(xe),Xp=ai(xe),Yp=si(xe);var z=f("ZodType",(e,t)=>($.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wn(e,"input"),output:Wn(e,"output")}}),e.toJSONSchema=ep(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(T.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>me(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>qp(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Wp(e,r,o),e.parseAsync=async(r,o)=>Up(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Vp(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Hp(e,r,o),e.decode=(r,o)=>Kp(e,r,o),e.encodeAsync=async(r,o)=>Zp(e,r,o),e.decodeAsync=async(r,o)=>Gp(e,r,o),e.safeEncode=(r,o)=>Qp(e,r,o),e.safeDecode=(r,o)=>Jp(e,r,o),e.safeEncodeAsync=async(r,o)=>Xp(e,r,o),e.safeDecodeAsync=async(r,o)=>Yp(e,r,o),e.refine=(r,o)=>e.check(Um(r,o)),e.superRefine=r=>e.check(Wm(r)),e.overwrite=r=>e.check(We(r)),e.optional=()=>Hr(e),e.exactOptional=()=>Im(e),e.nullable=()=>Kr(e),e.nullish=()=>Hr(Kr(e)),e.nonoptional=r=>Rm(e,r),e.array=()=>Jr(e),e.or=r=>wa([e,r]),e.and=r=>fm(e,r),e.transform=r=>Zr(e,ka(r)),e.default=r=>wm(e,r),e.prefault=r=>km(e,r),e.catch=r=>$m(e,r),e.pipe=r=>Zr(e,r),e.readonly=()=>zm(e),e.describe=r=>{let o=e.clone();return re.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return re.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return re.get(e);let o=e.clone();return re.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ua=f("_ZodString",(e,t)=>{Xt.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>tp(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Rn(...o)),e.includes=(...o)=>e.check($n(...o)),e.startsWith=(...o)=>e.check(Mn(...o)),e.endsWith=(...o)=>e.check(On(...o)),e.min=(...o)=>e.check(dt(...o)),e.max=(...o)=>e.check(en(...o)),e.length=(...o)=>e.check(tn(...o)),e.nonempty=(...o)=>e.check(dt(1,...o)),e.lowercase=o=>e.check(An(o)),e.uppercase=o=>e.check(jn(o)),e.trim=()=>e.check(Fn()),e.normalize=(...o)=>e.check(Bn(...o)),e.toLowerCase=()=>e.check(Ln()),e.toUpperCase=()=>e.check(Nn()),e.slugify=()=>e.check(qn())}),Kn=f("ZodString",(e,t)=>{Xt.init(e,t),ua.init(e,t),e.email=r=>e.check(_i(la,r)),e.url=r=>e.check(Ur(Gr,r)),e.jwt=r=>e.check(Vi(Ia,r)),e.emoji=r=>e.check(Ri(da,r)),e.guid=r=>e.check(qr(Vr,r)),e.uuid=r=>e.check(Pi(Xe,r)),e.uuidv4=r=>e.check(wi(Xe,r)),e.uuidv6=r=>e.check(Ci(Xe,r)),e.uuidv7=r=>e.check(ki(Xe,r)),e.nanoid=r=>e.check(Ai(pa,r)),e.guid=r=>e.check(qr(Vr,r)),e.cuid=r=>e.check(ji(ma,r)),e.cuid2=r=>e.check($i(ha,r)),e.ulid=r=>e.check(Mi(fa,r)),e.base64=r=>e.check(qi(xa,r)),e.base64url=r=>e.check(Ui(Ea,r)),e.xid=r=>e.check(Oi(ga,r)),e.ksuid=r=>e.check(zi(va,r)),e.ipv4=r=>e.check(Bi(ya,r)),e.ipv6=r=>e.check(Fi(Sa,r)),e.cidrv4=r=>e.check(Li(ba,r)),e.cidrv6=r=>e.check(Ni(Ta,r)),e.e164=r=>e.check(Wi(Da,r)),e.datetime=r=>e.check(Bp(r)),e.date=r=>e.check(Fp(r)),e.time=r=>e.check(Lp(r)),e.duration=r=>e.check(Np(r))});function sa(e){return fd(Kn,e)}var V=f("ZodStringFormat",(e,t)=>{W.init(e,t),ua.init(e,t)}),la=f("ZodEmail",(e,t)=>{al.init(e,t),V.init(e,t)});function cS(e){return _i(la,e)}var Vr=f("ZodGUID",(e,t)=>{ol.init(e,t),V.init(e,t)});function uS(e){return qr(Vr,e)}var Xe=f("ZodUUID",(e,t)=>{il.init(e,t),V.init(e,t)});function lS(e){return Pi(Xe,e)}function dS(e){return wi(Xe,e)}function pS(e){return Ci(Xe,e)}function mS(e){return ki(Xe,e)}var Gr=f("ZodURL",(e,t)=>{sl.init(e,t),V.init(e,t)});function hS(e){return Ur(Gr,e)}function fS(e){return Ur(Gr,{protocol:/^https?$/,hostname:Oe.domain,...T.normalizeParams(e)})}var da=f("ZodEmoji",(e,t)=>{cl.init(e,t),V.init(e,t)});function gS(e){return Ri(da,e)}var pa=f("ZodNanoID",(e,t)=>{ul.init(e,t),V.init(e,t)});function vS(e){return Ai(pa,e)}var ma=f("ZodCUID",(e,t)=>{ll.init(e,t),V.init(e,t)});function yS(e){return ji(ma,e)}var ha=f("ZodCUID2",(e,t)=>{dl.init(e,t),V.init(e,t)});function SS(e){return $i(ha,e)}var fa=f("ZodULID",(e,t)=>{pl.init(e,t),V.init(e,t)});function bS(e){return Mi(fa,e)}var ga=f("ZodXID",(e,t)=>{ml.init(e,t),V.init(e,t)});function TS(e){return Oi(ga,e)}var va=f("ZodKSUID",(e,t)=>{hl.init(e,t),V.init(e,t)});function xS(e){return zi(va,e)}var ya=f("ZodIPv4",(e,t)=>{Sl.init(e,t),V.init(e,t)});function ES(e){return Bi(ya,e)}var em=f("ZodMAC",(e,t)=>{Tl.init(e,t),V.init(e,t)});function DS(e){return vd(em,e)}var Sa=f("ZodIPv6",(e,t)=>{bl.init(e,t),V.init(e,t)});function IS(e){return Fi(Sa,e)}var ba=f("ZodCIDRv4",(e,t)=>{xl.init(e,t),V.init(e,t)});function _S(e){return Li(ba,e)}var Ta=f("ZodCIDRv6",(e,t)=>{El.init(e,t),V.init(e,t)});function PS(e){return Ni(Ta,e)}var xa=f("ZodBase64",(e,t)=>{Il.init(e,t),V.init(e,t)});function wS(e){return qi(xa,e)}var Ea=f("ZodBase64URL",(e,t)=>{_l.init(e,t),V.init(e,t)});function CS(e){return Ui(Ea,e)}var Da=f("ZodE164",(e,t)=>{Pl.init(e,t),V.init(e,t)});function kS(e){return Wi(Da,e)}var Ia=f("ZodJWT",(e,t)=>{wl.init(e,t),V.init(e,t)});function RS(e){return Vi(Ia,e)}var Zn=f("ZodCustomStringFormat",(e,t)=>{Cl.init(e,t),V.init(e,t)});function AS(e,t,r={}){return Un(Zn,e,t,r)}function jS(e){return Un(Zn,"hostname",Oe.hostname,e)}function $S(e){return Un(Zn,"hex",Oe.hex,e)}function MS(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Oe[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Un(Zn,o,n,t)}var Gn=f("ZodNumber",(e,t)=>{vi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>np(e,o,n,i),e.gt=(o,n)=>e.check(Qe(o,n)),e.gte=(o,n)=>e.check(he(o,n)),e.min=(o,n)=>e.check(he(o,n)),e.lt=(o,n)=>e.check(Ge(o,n)),e.lte=(o,n)=>e.check(we(o,n)),e.max=(o,n)=>e.check(we(o,n)),e.int=o=>e.check(ca(o)),e.safe=o=>e.check(ca(o)),e.positive=o=>e.check(Qe(0,o)),e.nonnegative=o=>e.check(he(0,o)),e.negative=o=>e.check(Ge(0,o)),e.nonpositive=o=>e.check(we(0,o)),e.multipleOf=(o,n)=>e.check($t(o,n)),e.step=(o,n)=>e.check($t(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function tm(e){return Ed(Gn,e)}var rn=f("ZodNumberFormat",(e,t)=>{kl.init(e,t),Gn.init(e,t)});function ca(e){return Id(rn,e)}function OS(e){return _d(rn,e)}function zS(e){return Pd(rn,e)}function BS(e){return wd(rn,e)}function FS(e){return Cd(rn,e)}var Qn=f("ZodBoolean",(e,t)=>{zr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rp(e,r,o,n)});function nm(e){return kd(Qn,e)}var Jn=f("ZodBigInt",(e,t)=>{yi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>op(e,o,n,i),e.gte=(o,n)=>e.check(he(o,n)),e.min=(o,n)=>e.check(he(o,n)),e.gt=(o,n)=>e.check(Qe(o,n)),e.gte=(o,n)=>e.check(he(o,n)),e.min=(o,n)=>e.check(he(o,n)),e.lt=(o,n)=>e.check(Ge(o,n)),e.lte=(o,n)=>e.check(we(o,n)),e.max=(o,n)=>e.check(we(o,n)),e.positive=o=>e.check(Qe(BigInt(0),o)),e.negative=o=>e.check(Ge(BigInt(0),o)),e.nonpositive=o=>e.check(we(BigInt(0),o)),e.nonnegative=o=>e.check(he(BigInt(0),o)),e.multipleOf=(o,n)=>e.check($t(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function LS(e){return Ad(Jn,e)}var _a=f("ZodBigIntFormat",(e,t)=>{Rl.init(e,t),Jn.init(e,t)});function NS(e){return $d(_a,e)}function qS(e){return Md(_a,e)}var rm=f("ZodSymbol",(e,t)=>{Al.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ip(e,r,o,n)});function US(e){return Od(rm,e)}var om=f("ZodUndefined",(e,t)=>{jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sp(e,r,o,n)});function WS(e){return zd(om,e)}var im=f("ZodNull",(e,t)=>{$l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ap(e,r,o,n)});function am(e){return Bd(im,e)}var sm=f("ZodAny",(e,t)=>{Ml.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lp(e,r,o,n)});function VS(){return Fd(sm)}var cm=f("ZodUnknown",(e,t)=>{Ol.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dp(e,r,o,n)});function nn(){return Ld(cm)}var um=f("ZodNever",(e,t)=>{zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>up(e,r,o,n)});function Pa(e){return Nd(um,e)}var lm=f("ZodVoid",(e,t)=>{Bl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cp(e,r,o,n)});function HS(e){return qd(lm,e)}var Qr=f("ZodDate",(e,t)=>{Fl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>pp(e,o,n,i),e.min=(o,n)=>e.check(he(o,n)),e.max=(o,n)=>e.check(we(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function KS(e){return Ud(Qr,e)}var dm=f("ZodArray",(e,t)=>{Ll.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dp(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(dt(r,o)),e.nonempty=r=>e.check(dt(1,r)),e.max=(r,o)=>e.check(en(r,o)),e.length=(r,o)=>e.check(tn(r,o)),e.unwrap=()=>e.element});function Jr(e,t){return Hd(dm,e,t)}function ZS(e){let t=e._zod.def.shape;return Ca(Object.keys(t))}var Xr=f("ZodObject",(e,t)=>{Nl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ip(e,r,o,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Ca(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nn()}),e.loose=()=>e.clone({...e._zod.def,catchall:nn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Pa()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>T.extend(e,r),e.safeExtend=r=>T.safeExtend(e,r),e.merge=r=>T.merge(e,r),e.pick=r=>T.pick(e,r),e.omit=r=>T.omit(e,r),e.partial=(...r)=>T.partial(Ra,e,r[0]),e.required=(...r)=>T.required(Aa,e,r[0])});function GS(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Xr(r)}function QS(e,t){return new Xr({type:"object",shape:e,catchall:Pa(),...T.normalizeParams(t)})}function JS(e,t){return new Xr({type:"object",shape:e,catchall:nn(),...T.normalizeParams(t)})}var Yr=f("ZodUnion",(e,t)=>{Br.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xi(e,r,o,n),e.options=t.options});function wa(e,t){return new Yr({type:"union",options:e,...T.normalizeParams(t)})}var pm=f("ZodXor",(e,t)=>{Yr.init(e,t),ql.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xi(e,r,o,n),e.options=t.options});function XS(e,t){return new pm({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var mm=f("ZodDiscriminatedUnion",(e,t)=>{Yr.init(e,t),Ul.init(e,t)});function YS(e,t,r){return new mm({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var hm=f("ZodIntersection",(e,t)=>{Wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_p(e,r,o,n)});function fm(e,t){return new hm({type:"intersection",left:e,right:t})}var gm=f("ZodTuple",(e,t)=>{Si.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pp(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function vm(e,t,r){let o=t instanceof $,n=o?r:t,i=o?t:null;return new gm({type:"tuple",items:e,rest:i,...T.normalizeParams(n)})}var eo=f("ZodRecord",(e,t)=>{Vl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function ym(e,t,r){return new eo({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function eb(e,t,r){let o=me(e);return o._zod.values=void 0,new eo({type:"record",keyType:o,valueType:t,...T.normalizeParams(r)})}function tb(e,t,r){return new eo({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var Sm=f("ZodMap",(e,t)=>{Hl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Je(...r)),e.nonempty=r=>e.check(Je(1,r)),e.max=(...r)=>e.check(Mt(...r)),e.size=(...r)=>e.check(Yt(...r))});function nb(e,t,r){return new Sm({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var bm=f("ZodSet",(e,t)=>{Kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ep(e,r,o,n),e.min=(...r)=>e.check(Je(...r)),e.nonempty=r=>e.check(Je(1,r)),e.max=(...r)=>e.check(Mt(...r)),e.size=(...r)=>e.check(Yt(...r))});function rb(e,t){return new bm({type:"set",valueType:e,...T.normalizeParams(t)})}var Hn=f("ZodEnum",(e,t)=>{Zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>mp(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Hn({...t,checks:[],...T.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Hn({...t,checks:[],...T.normalizeParams(n),entries:i})}});function Ca(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Hn({type:"enum",entries:r,...T.normalizeParams(t)})}function ob(e,t){return new Hn({type:"enum",entries:e,...T.normalizeParams(t)})}var Tm=f("ZodLiteral",(e,t)=>{Gl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hp(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ib(e,t){return new Tm({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var xm=f("ZodFile",(e,t)=>{Ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vp(e,r,o,n),e.min=(r,o)=>e.check(Je(r,o)),e.max=(r,o)=>e.check(Mt(r,o)),e.mime=(r,o)=>e.check(zn(Array.isArray(r)?r:[r],o))});function ab(e){return Kd(xm,e)}var Em=f("ZodTransform",(e,t)=>{Jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tp(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ct(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(T.issue(i,r.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(T.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function ka(e){return new Em({type:"transform",transform:e})}var Ra=f("ZodOptional",(e,t)=>{bi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Hr(e){return new Ra({type:"optional",innerType:e})}var Dm=f("ZodExactOptional",(e,t)=>{Xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Im(e){return new Dm({type:"optional",innerType:e})}var _m=f("ZodNullable",(e,t)=>{Yl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Kr(e){return new _m({type:"nullable",innerType:e})}function sb(e){return Hr(Kr(e))}var Pm=f("ZodDefault",(e,t)=>{ed.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wm(e,t){return new Pm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Cm=f("ZodPrefault",(e,t)=>{td.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ap(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function km(e,t){return new Cm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Aa=f("ZodNonOptional",(e,t)=>{nd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>kp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Rm(e,t){return new Aa({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var Am=f("ZodSuccess",(e,t)=>{rd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function cb(e){return new Am({type:"success",innerType:e})}var jm=f("ZodCatch",(e,t)=>{od.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function $m(e,t){return new jm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Mm=f("ZodNaN",(e,t)=>{id.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fp(e,r,o,n)});function ub(e){return Vd(Mm,e)}var ja=f("ZodPipe",(e,t)=>{ad.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$p(e,r,o,n),e.in=t.in,e.out=t.out});function Zr(e,t){return new ja({type:"pipe",in:e,out:t})}var $a=f("ZodCodec",(e,t)=>{ja.init(e,t),Fr.init(e,t)});function lb(e,t,r){return new $a({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Om=f("ZodReadonly",(e,t)=>{sd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function zm(e){return new Om({type:"readonly",innerType:e})}var Bm=f("ZodTemplateLiteral",(e,t)=>{cd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gp(e,r,o,n)});function db(e,t){return new Bm({type:"template_literal",parts:e,...T.normalizeParams(t)})}var Fm=f("ZodLazy",(e,t)=>{dd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zp(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Lm(e){return new Fm({type:"lazy",getter:e})}var Nm=f("ZodPromise",(e,t)=>{ld.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Op(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function pb(e){return new Nm({type:"promise",innerType:e})}var qm=f("ZodFunction",(e,t)=>{ud.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n)});function mb(e){return new qm({type:"function",input:Array.isArray(e?.input)?vm(e?.input):e?.input??Jr(nn()),output:e?.output??nn()})}var to=f("ZodCustom",(e,t)=>{pd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sp(e,r,o,n)});function hb(e){let t=new H({check:"custom"});return t._zod.check=e,t}function fb(e,t){return Zd(to,e??(()=>!0),t)}function Um(e,t={}){return Gd(to,e,t)}function Wm(e){return Qd(e)}var gb=Jd,vb=Xd;function yb(e,t={}){let r=new to({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...T.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var Sb=(...e)=>Yd({Codec:$a,Boolean:Qn,String:Kn},...e);function bb(e){let t=Lm(()=>wa([sa(e),tm(),nm(),am(),Jr(t),ym(sa(),t)]));return t}function Tb(e,t){return Zr(ka(e),t)}var $j={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Mj(e){Z({customError:e})}function Oj(){return Z().customError}var Vm;Vm||(Vm={});var I={...Wr,...na,iso:Vn},zj=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Bj(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Fj(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function xb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return I.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return I.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=Fj(n,t),s=ue(i,t);return t.refs.set(n,s),t.processing.delete(n),s}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return I.null();if(n.length===0)return I.never();if(n.length===1)return I.literal(n[0]);if(n.every(s=>typeof s=="string"))return I.enum(n);let i=n.map(s=>I.literal(s));return i.length<2?i[0]:I.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return I.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...e,type:i};return xb(s,t)});return n.length===0?I.never():n.length===1?n[0]:I.union(n)}if(!r)return I.any();let o;switch(r){case"string":{let n=I.string();if(e.format){let i=e.format;i==="email"?n=n.check(I.email()):i==="uri"||i==="uri-reference"?n=n.check(I.url()):i==="uuid"||i==="guid"?n=n.check(I.uuid()):i==="date-time"?n=n.check(I.iso.datetime()):i==="date"?n=n.check(I.iso.date()):i==="time"?n=n.check(I.iso.time()):i==="duration"?n=n.check(I.iso.duration()):i==="ipv4"?n=n.check(I.ipv4()):i==="ipv6"?n=n.check(I.ipv6()):i==="mac"?n=n.check(I.mac()):i==="cidr"?n=n.check(I.cidrv4()):i==="cidr-v6"?n=n.check(I.cidrv6()):i==="base64"?n=n.check(I.base64()):i==="base64url"?n=n.check(I.base64url()):i==="e164"?n=n.check(I.e164()):i==="jwt"?n=n.check(I.jwt()):i==="emoji"?n=n.check(I.emoji()):i==="nanoid"?n=n.check(I.nanoid()):i==="cuid"?n=n.check(I.cuid()):i==="cuid2"?n=n.check(I.cuid2()):i==="ulid"?n=n.check(I.ulid()):i==="xid"?n=n.check(I.xid()):i==="ksuid"&&(n=n.check(I.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?I.number().int():I.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=I.boolean();break}case"null":{o=I.null();break}case"object":{let n={},i=e.properties||{},s=new Set(e.required||[]);for(let[l,u]of Object.entries(i)){let p=ue(u,t);n[l]=s.has(l)?p:p.optional()}if(e.propertyNames){let l=ue(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ue(e.additionalProperties,t):I.any();if(Object.keys(n).length===0){o=I.record(l,u);break}let p=I.object(n).passthrough(),d=I.looseRecord(l,u);o=I.intersection(p,d);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),p=[];for(let m of u){let h=ue(l[m],t),g=I.string().regex(new RegExp(m));p.push(I.looseRecord(g,h))}let d=[];if(Object.keys(n).length>0&&d.push(I.object(n).passthrough()),d.push(...p),d.length===0)o=I.object({}).passthrough();else if(d.length===1)o=d[0];else{let m=I.intersection(d[0],d[1]);for(let h=2;h<d.length;h++)m=I.intersection(m,d[h]);o=m}break}let c=I.object(n);e.additionalProperties===!1?o=c.strict():typeof e.additionalProperties=="object"?o=c.catchall(ue(e.additionalProperties,t)):o=c.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let s=n.map(l=>ue(l,t)),c=i&&typeof i=="object"&&!Array.isArray(i)?ue(i,t):void 0;c?o=I.tuple(s).rest(c):o=I.tuple(s),typeof e.minItems=="number"&&(o=o.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(I.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>ue(l,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?ue(e.additionalItems,t):void 0;c?o=I.tuple(s).rest(c):o=I.tuple(s),typeof e.minItems=="number"&&(o=o.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(I.maxLength(e.maxItems)))}else if(i!==void 0){let s=ue(i,t),c=I.array(s);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),o=c}else o=I.array(I.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function ue(e,t){if(typeof e=="boolean")return e?I.any():I.never();let r=xb(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(u=>ue(u,t)),l=I.union(c);r=o?I.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(u=>ue(u,t)),l=I.xor(c);r=o?I.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:I.any();else{let c=o?r:ue(e.allOf[0],t),l=o?0:1;for(let u=l;u<e.allOf.length;u++)c=I.intersection(c,ue(e.allOf[u],t));r=c}e.nullable===!0&&t.version==="openapi-3.0"&&(r=I.nullable(r)),e.readOnly===!0&&(r=I.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of i)c in e&&(n[c]=e[c]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let c of s)c in e&&(n[c]=e[c]);for(let c of Object.keys(e))zj.has(c)||(n[c]=e[c]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function Eb(e,t){if(typeof e=="boolean")return e?I.any():I.never();let r=Bj(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??re};return ue(e,n)}var Hm={};ct(Hm,{bigint:()=>Uj,boolean:()=>qj,date:()=>Wj,number:()=>Nj,string:()=>Lj});function Lj(e){return gd(Kn,e)}function Nj(e){return Dd(Gn,e)}function qj(e){return Rd(Qn,e)}function Uj(e){return jd(Jn,e)}function Wj(e){return Wd(Qr,e)}Z(Ti());var Db=["low","medium","high","xhigh","max"],ee=a.enum(Db),ge=a.enum(["fast","default"]),Ib=["append","replace"],Zm=a.enum(Ib),_b=["full","workspace-write","readonly"],le=a.enum(_b),Pb=["ask","deny"],Km=a.enum(Pb),wb=["agent-only"],Cb=a.enum(wb),Ma={visibility:Cb.optional()},Y=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string(),...Ma}),a.object({type:a.literal("image"),url:a.string().url(),...Ma}),a.object({type:a.literal("localImage"),path:a.string(),...Ma}),a.object({type:a.literal("localFile"),path:a.string(),name:a.string().optional(),sizeBytes:a.number().int().nonnegative().optional(),mimeType:a.string().optional(),...Ma})]),Gm=a.enum(["client/thread/start","client/turn/requested","client/turn/start"]),kb=a.object({model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional(),source:Gm.optional(),seq:a.number().int().optional()}),mt=kb.extend({model:a.string().min(1),serviceTier:ge,reasoningLevel:ee,permissionMode:le,source:Gm}),Rb=a.discriminatedUnion("permissionMode",[a.object({permissionMode:a.literal("full"),permissionEscalation:a.null()}),a.object({permissionMode:a.literal("workspace-write"),permissionEscalation:Km}),a.object({permissionMode:a.literal("readonly"),permissionEscalation:Km})]),Vj=a.object({model:a.string().min(1),serviceTier:ge,reasoningLevel:ee}),Qm=Vj.and(Rb),Hj=a.object({providerId:a.string().min(1),model:a.string().min(1),serviceTier:ge,reasoningLevel:ee,permissionMode:le});var Jm=a.object({askUserQuestion:a.boolean(),terminals:a.boolean()}),Oa={askUserQuestion:!0,terminals:!0};var Kj=/[\u0000-\u001f\u007f\\:~^?*\[]/u,Zj=/[ \t]/u,Gj=new Set(["AUTO_MERGE","BISECT_HEAD","CHERRY_PICK_HEAD","FETCH_HEAD","HEAD","MERGE_HEAD","ORIG_HEAD","REVERT_HEAD"]);function Qj(e){let t=e.split("/");return e.length>0&&e.trim().length>0&&!e.startsWith("-")&&!e.startsWith("/")&&e!=="@"&&!Gj.has(e)&&!Kj.test(e)&&!Zj.test(e)&&!e.includes("..")&&!e.includes("@{")&&!e.includes("//")&&!e.endsWith("/")&&!e.endsWith(".")&&t.every(r=>r.length>0&&!r.startsWith(".")&&!r.endsWith(".lock"))}var J=a.string().refine(Qj,{message:"Invalid git branch name"}),Ab=a.discriminatedUnion("kind",[a.object({kind:a.literal("branch"),branchName:a.string().min(1),headSha:a.string().min(1).nullable()}),a.object({kind:a.literal("detached"),headSha:a.string().min(1).nullable()}),a.object({kind:a.literal("unborn"),branchName:a.string().min(1).nullable()}),a.object({kind:a.literal("unknown"),reason:a.string().min(1)})]),jb=a.discriminatedUnion("kind",[a.object({kind:a.literal("none")}),a.object({kind:a.literal("merge"),hasConflicts:a.boolean()}),a.object({kind:a.literal("rebase"),hasConflicts:a.boolean()}),a.object({kind:a.literal("cherry-pick"),hasConflicts:a.boolean()}),a.object({kind:a.literal("revert"),hasConflicts:a.boolean()}),a.object({kind:a.literal("unknown"),reason:a.string().min(1),hasConflicts:a.boolean()})]),za=a.object({name:a.string().min(1),kind:a.enum(["local","remote","missing"])}),Ba=a.object({branches:a.array(a.string()),branchesTruncated:a.boolean(),checkout:Ab,defaultBranch:a.string().min(1).nullable(),hasUncommittedChanges:a.boolean(),operation:jb,remoteBranches:a.array(a.string()),remoteBranchesTruncated:a.boolean(),selectedBranch:za.nullable()});var Jj=new Set([".",".."]),Ft=a.string().min(1).max(128).refine(e=>!e.includes("/")&&!e.includes("\\"),{message:"Manager template name must be a single directory name"}).refine(e=>!Jj.has(e),{message:"Manager template name cannot be . or .."});var Xj=/^[A-Za-z0-9._-]{1,80}$/u,Yj=8,e$=512,ze=a.string().regex(/^[A-Za-z0-9_-]+$/u),on=a.string().superRefine((e,t)=>{if(e.length===0||e.length>e$||e.includes("\0")||e.includes("\\")||e.startsWith("/")||e.endsWith("/")){t.addIssue({code:"custom",message:"Invalid app data path"});return}let r=e.split("/");if(r.length>Yj){t.addIssue({code:"custom",message:"App data path is too deep"});return}for(let o of r)if(o==="."||o===".."||o.startsWith(".")||!Xj.test(o)){t.addIssue({code:"custom",message:"Invalid app data path segment"});return}});var Fa=500,La=200,Xn=64*1024,Na=Math.ceil(Xn/3)*4,t$=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,$b=["starting","running","disconnected","exited"],Xm=a.enum($b),Mb=["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"],Ym=a.enum(Mb);function Ob(e){let t=e.endsWith("==")?2:e.endsWith("=")?1:0;return e.length/4*3-t}var ht=a.number().int().positive().max(Fa),ft=a.number().int().positive().max(La),an=a.string().min(1).max(Na).regex(t$).refine(e=>Ob(e)<=Xn,{message:`Terminal data must decode to ${Xn} bytes or less`});var zb=["project","thread"],n$=a.enum(zb),eh=a.object({id:a.string().min(1),createdAt:a.number(),input:a.array(Y).min(1)});var Lt=a.enum(["pending","resolving","resolved","interrupted","expired"]),Fb=a.discriminatedUnion("type",[a.object({type:a.literal("read"),command:a.string(),name:a.string(),path:a.string()}),a.object({type:a.literal("listFiles"),command:a.string(),path:a.string().nullable()}),a.object({type:a.literal("search"),command:a.string(),query:a.string().nullable(),path:a.string().nullable()}),a.object({type:a.literal("unknown"),command:a.string()})]),ih=a.object({enabled:a.boolean().nullable()}),ah=a.object({read:a.array(a.string()),write:a.array(a.string())}),r$=a.enum(["none","read_only","read_write"]),o$=a.enum(["none","read_only","read_write"]),i$=a.union([a.literal("none"),a.literal("all"),a.object({kind:a.literal("bundle_ids"),bundleIds:a.array(a.string())})]),Lb=a.object({preferences:r$,automations:i$,launchServices:a.boolean(),accessibility:a.boolean(),calendar:a.boolean(),reminders:a.boolean(),contacts:o$}),a$=a.object({network:ih.nullable(),fileSystem:ah.nullable(),macos:Lb.nullable()}),no=a.object({network:ih.nullable(),fileSystem:ah.nullable()}).strict(),Bb=no,Nb=a.enum(["allow_once","allow_for_session","deny"]),s$=a.string().min(1),qb=a.object({kind:a.literal("command"),itemId:a.string().min(1),command:a.string().min(1),cwd:a.string().nullable(),actions:a.array(Fb),sessionGrant:no.nullable()}),Ub=a.object({kind:a.literal("file_change"),itemId:a.string().min(1),writeScope:s$.nullable(),sessionGrant:no.nullable()}),qa=a.object({kind:a.literal("permission_grant"),itemId:a.string().min(1),toolName:a.string().nullable(),permissions:no}),Wb=a.discriminatedUnion("kind",[qb,Ub,qa]),Vb=a.object({kind:a.literal("approval"),subject:Wb,reason:a.string().nullable(),availableDecisions:a.array(Nb).min(1)}),th=4,nh=4,rh=4,oh=4096,c$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question ids cannot be blank"}),u$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question prompts cannot be blank"}),l$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question short labels cannot be blank"}),d$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option values cannot be blank"}),p$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option labels cannot be blank"}),m$=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option descriptions cannot be blank"}),h$=a.string().min(1).max(oh,`User question free text cannot exceed ${oh} characters`).refine(e=>e.trim().length>0,{message:"User question free text cannot be blank"}),Hb=a.object({value:d$,label:p$,description:m$.optional()}),Ua=a.object({id:c$,prompt:u$,shortLabel:l$.optional(),multiSelect:a.boolean(),options:a.array(Hb).max(nh,`User questions cannot include more than ${nh} options`).optional(),allowFreeText:a.boolean()}).superRefine((e,t)=>{let r=new Set;e.options?.forEach((o,n)=>{if(r.has(o.value)){t.addIssue({code:a.ZodIssueCode.custom,message:"User question option values must be unique",path:["options",n,"value"]});return}r.add(o.value)})}).refine(e=>e.allowFreeText||(e.options?.length??0)>0,{message:"User questions must allow free text or provide at least one option",path:["options"]}),Wa=a.object({kind:a.literal("user_question"),questions:a.array(Ua).min(1).max(th,`User questions cannot include more than ${th} questions`)}).superRefine((e,t)=>{let r=new Set;e.questions.forEach((o,n)=>{if(r.has(o.id)){t.addIssue({code:a.ZodIssueCode.custom,message:"User question ids must be unique",path:["questions",n,"id"]});return}r.add(o.id)})}),sh=a.discriminatedUnion("kind",[Vb,Wa]);function gt(e){return e.kind==="approval"}function Va(e){return e.kind==="user_question"}var Kb="Invalid discriminator value. Expected 'allow_once' | 'allow_for_session' | 'deny'",Ha=a.discriminatedUnion("decision",[a.object({decision:a.literal("allow_once"),grantedPermissions:Bb.nullable()}),a.object({decision:a.literal("allow_for_session"),grantedPermissions:Bb.nullable()}),a.object({decision:a.literal("deny")})],Kb),Ka=a.object({selected:a.array(a.string().min(1)).max(rh,`User question selected choices cannot exceed ${rh}`),freeText:h$.optional()}),Za=a.object({kind:a.literal("user_answer"),answers:a.record(a.string().min(1),Ka)}),ro=a.union([Ha,Za],Kb);function Ga(e){return"decision"in e}function ch(e){return"kind"in e&&e.kind==="user_answer"}var uh=a.object({threadId:a.string().min(1),turnId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),payload:sh}),lh=a.object({id:a.string().min(1),threadId:a.string().min(1),turnId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),status:Lt,payload:sh,resolution:ro.nullable(),statusReason:a.string().nullable(),createdAt:a.number().int().nonnegative(),resolvedAt:a.number().int().nonnegative().nullable()});var Zb=a.object({reasoningEffort:ee,description:a.string()}),sn=a.object({id:a.string(),model:a.string(),displayName:a.string(),description:a.string(),supportedReasoningEfforts:a.array(Zb),defaultReasoningEffort:ee,isDefault:a.boolean()}),Gb=a.object({supportsArchive:a.boolean(),supportsRename:a.boolean(),supportsServiceTier:a.boolean(),supportsUserQuestion:a.boolean(),supportedPermissionModes:a.array(le).min(1)}),cn=a.object({id:a.string(),displayName:a.string(),capabilities:Gb,available:a.boolean()}),Qb=a.discriminatedUnion("type",[a.object({type:a.literal("inputText"),text:a.string()}),a.object({type:a.literal("inputImage"),imageUrl:a.string()})]),dh=a.object({requestId:a.union([a.string().min(1),a.number()]),threadId:a.string().min(1),providerThreadId:a.string().min(1),turnId:a.string().min(1),callId:a.string().min(1),tool:a.string().min(1),arguments:a.unknown().optional()}),Jb=a.object({contentItems:a.array(Qb),success:a.boolean()}),f$=a.object({text:a.string().trim().min(1).optional(),message:a.string().trim().min(1).optional()}).refine(e=>e.text!==void 0||e.message!==void 0,"message_user requires text").transform(e=>({text:e.text??e.message??""})),ph=a.object({name:a.string(),description:a.string(),inputSchema:a.unknown()});var Xb=["provisioning","ready","error","destroying","destroyed"],oo=a.enum(Xb),g$=["safe"],Yb=a.enum(g$),eT=["unmanaged","managed-worktree","personal"],Qa=a.enum(eT),tT=["managed-worktree","unmanaged-worktree","other"],mh=a.enum(tT);function hh({environment:e}){return e.workspaceProvisionType==="managed-worktree"?"managed-worktree":e.isWorktree===!0?"unmanaged-worktree":"other"}var fh=a.object({path:a.string().min(1),isGitRepo:a.boolean(),isWorktree:a.boolean(),branchName:a.string().nullable(),defaultBranch:a.string().nullable()}),gh=a.object({id:a.string(),projectId:a.string(),hostId:a.string(),path:a.string().nullable(),managed:a.boolean(),isGitRepo:a.boolean(),isWorktree:a.boolean(),workspaceProvisionType:Qa,branchName:a.string().nullable(),baseBranch:a.string().nullable(),defaultBranch:a.string().nullable(),mergeBaseBranch:a.string().nullable(),cleanupRequestedAt:a.number().nullable(),cleanupMode:Yb.nullable(),status:oo,createdAt:a.number(),updatedAt:a.number()});function vh(e){return e?.mergeBaseBranch??e?.baseBranch??e?.defaultBranch??void 0}var io=a.string().regex(/^hdevt_[23456789abcdefghijkmnpqrstuvwxyz]{20}$/u),Ye=a.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);var te=a.lazy(()=>a.union([a.string(),a.number(),a.boolean(),a.null(),a.array(te),a.record(a.string(),te)])),Ja=a.record(a.string(),te);var Xa=["client/thread/start","client/turn/requested","client/turn/start","system/error","system/manager/user_message","system/thread/interrupted","system/operation","system/permissionGrant/lifecycle","system/userQuestion/lifecycle","system/thread-provisioning"],v$=a.enum(Xa),nT=["user","agent","system"],ao=a.enum(nT),yh=["thread-created","boot-created-thread","tell-after-provisioning-failure","tell-after-missing-environment-attachment","resume-missing-provider-thread"],y$=a.enum(yh),rT=[...yh,"boot-active-resume","resume-existing-provider-session"],S$=a.enum(rT),oT=mt,Ya=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread-start")}),a.object({kind:a.literal("new-turn")}),a.object({kind:a.literal("auto"),expectedTurnId:a.string().nullable()}),a.object({kind:a.literal("steer"),expectedTurnId:a.string().nullable()})]),es=a.object({direction:a.literal("outbound"),source:a.enum(["spawn","tell"]),initiator:ao,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())})}),so=a.object({direction:a.literal("outbound"),requestId:Ye,source:a.enum(["spawn","tell"]),initiator:ao,senderThreadId:a.string().nullable(),input:a.array(Y),target:Ya,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())}),execution:oT}),Sh=a.object({code:a.string().optional(),message:a.string(),detail:a.string().optional(),reconnectAttempt:a.number().int().positive().optional(),reconnectTotal:a.number().int().positive().optional()}).superRefine((e,t)=>{let r=e.reconnectAttempt!==void 0,o=e.reconnectTotal!==void 0;if(r!==o){t.addIssue({code:a.ZodIssueCode.custom,message:"system/error reconnectAttempt and reconnectTotal must be provided together"});return}e.reconnectAttempt!==void 0&&e.reconnectTotal!==void 0&&e.reconnectAttempt>e.reconnectTotal&&t.addIssue({code:a.ZodIssueCode.custom,message:"system/error reconnectAttempt cannot be greater than reconnectTotal"})}),iT=["assign","release","transfer"],aT=a.enum(iT),sT=a.object({action:aT,nextParentThreadId:a.string().nullable(),nextParentThreadTitle:a.string().nullable(),previousParentThreadId:a.string().nullable(),previousParentThreadTitle:a.string().nullable()}),bh=a.object({operation:a.string(),status:a.string(),message:a.string(),operationId:a.string(),metadata:a.record(a.string(),te).optional()}),Th=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:Lt,resolution:Ha.nullable().default(null),statusReason:a.string().nullable().default(null),subject:qa}),xh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:Lt,resolution:Za.nullable().default(null),statusReason:a.string().nullable().default(null),payload:Wa}),cT=["manual-stop","host-daemon-restarted"],uT=a.enum(cT),Eh=a.object({reason:uT}),ts=a.object({type:a.enum(["step","output"]),key:a.string(),text:a.string(),startedAt:a.number().optional(),status:a.enum(["started","completed","failed"]).optional(),metadata:a.record(a.string(),a.unknown()).optional()}),lT=["active","completed","failed"],dT=a.enum(lT),Dh=a.object({provisioningId:a.string(),status:dT,environmentId:a.string(),entries:a.array(ts)}),Ih=a.object({text:a.string(),toolCallId:a.string().optional(),turnId:a.string().optional()}),b$=a.object({turnId:a.string().optional(),input:a.array(Y).optional()});var pT=["thread","turn"],T$=a.enum(pT),un=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread")}),a.object({kind:a.literal("turn"),turnId:a.string().min(1)})]),mT=["thread","turn","thread-or-turn"],x$=a.enum(mT),hT={"thread/started":{policy:"thread",rationale:"Thread lifecycle event; it creates the thread timeline itself."},"thread/identity":{policy:"thread",rationale:"Thread metadata event; it identifies the provider thread outside turn chronology."},"turn/started":{policy:"turn"},"turn/completed":{policy:"turn"},"turn/input/accepted":{policy:"turn"},"thread/name/updated":{policy:"thread",rationale:"Thread metadata event; names are not part of a specific turn transcript."},"thread/compacted":{policy:"turn"},"item/started":{policy:"turn"},"item/completed":{policy:"turn"},"item/agentMessage/delta":{policy:"turn"},"item/commandExecution/outputDelta":{policy:"turn"},"item/fileChange/outputDelta":{policy:"turn"},"item/reasoning/summaryTextDelta":{policy:"turn"},"item/reasoning/textDelta":{policy:"turn"},"item/plan/delta":{policy:"turn"},"item/mcpToolCall/progress":{policy:"turn"},"item/toolCall/progress":{policy:"turn"},"thread/tokenUsage/updated":{policy:"turn"},"thread/contextWindowUsage/updated":{policy:"turn"},"turn/plan/updated":{policy:"turn"},"turn/diff/updated":{policy:"turn"},"provider/error":{policy:"thread-or-turn",rationale:"Provider diagnostics use thread scope for provider setup/session failures; in-turn failures use turn scope."},"provider/warning":{policy:"thread-or-turn",rationale:"Provider warnings use thread scope for config, deprecation, or global notices; turn-specific warnings use turn scope."},"provider/unhandled":{policy:"thread-or-turn",rationale:"Unhandled provider events use thread scope only when no active turn context exists; in-turn unknown events use turn scope."},"client/thread/start":{policy:"thread",rationale:"Outbound client lifecycle event; it requests thread creation before any turn exists."},"client/turn/requested":{policy:"thread",rationale:"Outbound client lifecycle event; it records the request before provider turn acceptance."},"client/turn/start":{policy:"thread",rationale:"Outbound client lifecycle event; it records the start request before provider turn acceptance."},"system/error":{policy:"thread-or-turn",rationale:"System errors use thread scope for app, daemon, or session failures outside a turn; turn failures use turn scope."},"system/manager/user_message":{policy:"thread-or-turn",rationale:"Manager messages can be thread-scoped for general manager updates or turn-scoped for in-turn updates."},"system/thread/interrupted":{policy:"thread",rationale:"Thread stop lifecycle event; it represents user interruption of the whole running thread."},"system/operation":{policy:"thread",rationale:"Thread-management operation event; ownership and lifecycle operations are not turn transcript content."},"system/permissionGrant/lifecycle":{policy:"turn"},"system/userQuestion/lifecycle":{policy:"turn"},"system/thread-provisioning":{policy:"thread",rationale:"Workspace provisioning lifecycle event; environment setup belongs to the thread, not a turn."}};function _h(){return Object.entries(hT).map(([e,t])=>({type:e,definition:t}))}function Ph(e){return _h().filter(t=>t.definition.policy===e).map(t=>t.type)}function E$(){let e={};for(let t of _h())e[t.type]=t.definition.policy;return e}function D$(){let e={};for(let t of _h())t.definition.rationale&&(e[t.type]=t.definition.rationale);return e}var I$=Ph("turn"),_$=Ph("thread"),P$=Ph("thread-or-turn"),fT=E$(),w$=D$();function wh(e){let t=fT[e.type];return t==="thread-or-turn"?{valid:!0}:t!==e.scope.kind?{valid:!1,message:`${e.type} requires ${t} scope but received ${e.scope.kind} scope`}:{valid:!0}}var rs=a.enum(["pending","completed","failed","interrupted"]),gT=a.enum(["waiting_for_approval","denied"]).nullable(),yT=a.enum(["completed","failed","interrupted"]),ST=["active-turn-not-steerable","bad-request","connection-failed","context-window-exceeded","billing","budget-exceeded","internal","max-output-tokens","max-turns","overloaded","policy","rate-limit","sandbox","stream-disconnected","structured-output-retries","thread-rollback-failed","too-many-failed-attempts","unauthorized","unknown"],bT=a.enum(ST),TT=a.object({category:bT,providerCode:a.string().nullable(),httpStatusCode:a.number().nullable()}),xT=a.enum(["add","delete","update"]),ET=a.object({path:a.string(),kind:xT,movePath:a.string().optional(),diff:a.string().optional()}),DT=a.enum(["pending","active","completed","failed"]),IT=a.object({step:a.string(),status:DT.optional()}),_T=a.object({type:a.literal("webSearch"),id:a.string(),queries:a.array(a.string()).min(1),resultText:a.string().nullable(),parentToolCallId:a.string().optional()}),PT=a.object({type:a.literal("webFetch"),id:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),resultText:a.string().nullable(),parentToolCallId:a.string().optional()}),os=a.object({originalLength:a.number(),retainedHeadLength:a.number(),retainedTailLength:a.number(),truncatedAt:a.number()}),Ch=a.object({aggregatedOutput:os.optional(),result:os.optional(),resultText:os.optional()}),wT=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string()}),a.object({type:a.literal("image"),url:a.string()}),a.object({type:a.literal("localImage"),path:a.string()}),a.object({type:a.literal("localFile"),path:a.string()})]),kh=a.object({totalTokens:a.number(),inputTokens:a.number(),cachedInputTokens:a.number(),outputTokens:a.number(),reasoningOutputTokens:a.number()}),CT=a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()}),kT=a.object({total:kh,last:kh,modelContextWindow:a.number().nullable()}),RT=a.enum(["deprecation","config","general"]),AT=a.object({jsonrpc:a.literal("2.0"),id:a.union([a.string(),a.number()]).optional(),method:a.string(),params:te.optional()}),C$=a.object({type:a.literal("provider/unhandled"),threadId:a.string(),providerThreadId:a.string(),providerId:a.string(),rawType:a.string(),rawEvent:AT,parentToolCallId:a.string().optional()}),k$=a.object({type:a.literal("item/toolCall/progress"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),message:a.string().optional(),parentToolCallId:a.string().optional()}),Rh=a.discriminatedUnion("type",[a.object({type:a.literal("userMessage"),id:a.string(),content:a.array(wT),clientRequestId:Ye.optional(),parentToolCallId:a.string().optional()}).strict(),a.object({type:a.literal("agentMessage"),id:a.string(),text:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("commandExecution"),id:a.string(),command:a.string(),cwd:a.string(),status:rs,approvalStatus:gT,aggregatedOutput:a.string().optional(),exitCode:a.number().optional(),durationMs:a.number().optional(),truncation:Ch.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("fileChange"),id:a.string(),changes:a.array(ET),status:rs,approvalStatus:gT,parentToolCallId:a.string().optional()}),_T,PT,a.object({type:a.literal("toolCall"),id:a.string(),server:a.string().optional(),tool:a.string(),arguments:a.record(a.string(),a.unknown()).optional(),status:rs,result:a.unknown().optional(),error:a.string().optional(),durationMs:a.number().optional(),truncation:Ch.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("reasoning"),id:a.string(),summary:a.array(a.string()),content:a.array(a.string()),parentToolCallId:a.string().optional()}),a.object({type:a.literal("plan"),id:a.string(),text:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("contextCompaction"),id:a.string(),parentToolCallId:a.string().optional()})]),jT=a.discriminatedUnion("type",[a.object({type:a.literal("thread/started"),threadId:a.string()}),a.object({type:a.literal("thread/identity"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("turn/started"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("turn/completed"),threadId:a.string(),providerThreadId:a.string().nullable(),status:yT,error:a.object({message:a.string()}).optional()}),a.object({type:a.literal("turn/input/accepted"),threadId:a.string(),providerThreadId:a.string(),clientRequestId:Ye,scope:un}).strict(),a.object({type:a.literal("thread/name/updated"),threadId:a.string(),providerThreadId:a.string(),threadName:a.string()}),a.object({type:a.literal("thread/compacted"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("item/started"),threadId:a.string(),providerThreadId:a.string(),item:Rh}),a.object({type:a.literal("item/completed"),threadId:a.string(),providerThreadId:a.string(),item:Rh}),a.object({type:a.literal("item/agentMessage/delta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/commandExecution/outputDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),reset:a.boolean().optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/fileChange/outputDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/reasoning/summaryTextDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/reasoning/textDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/plan/delta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/mcpToolCall/progress"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),message:a.string().optional(),parentToolCallId:a.string().optional()}),k$,a.object({type:a.literal("thread/tokenUsage/updated"),threadId:a.string(),providerThreadId:a.string(),tokenUsage:kT}),a.object({type:a.literal("thread/contextWindowUsage/updated"),threadId:a.string(),providerThreadId:a.string(),contextWindowUsage:CT}),a.object({type:a.literal("turn/plan/updated"),threadId:a.string(),providerThreadId:a.string(),plan:a.array(IT),explanation:a.string().optional()}),a.object({type:a.literal("turn/diff/updated"),threadId:a.string(),providerThreadId:a.string(),diff:a.string().optional()}),a.object({type:a.literal("provider/error"),threadId:a.string(),providerThreadId:a.string(),message:a.string(),detail:a.string().optional(),willRetry:a.boolean().optional(),errorInfo:TT.optional()}),a.object({type:a.literal("provider/warning"),threadId:a.string(),providerThreadId:a.string(),category:RT,summary:a.string().optional(),details:a.string().optional()}),C$]),$T=a.object({scope:un}),MT=jT.and($T),Ah=jT.options.map(e=>e.shape.type.value),R$=new Set(Ah),A$=a.string().refine(e=>R$.has(e),"Invalid provider event type"),j$=a.union([a.object({type:a.literal("client/thread/start"),threadId:a.string()}).merge(es),a.object({type:a.literal("client/turn/requested"),threadId:a.string()}).merge(so),a.object({type:a.literal("client/turn/start"),threadId:a.string()}).merge(es),a.object({type:a.literal("system/error"),threadId:a.string()}).merge(Sh),a.object({type:a.literal("system/manager/user_message"),threadId:a.string()}).merge(Ih),a.object({type:a.literal("system/thread/interrupted"),threadId:a.string()}).merge(Eh),a.object({type:a.literal("system/operation"),threadId:a.string()}).merge(bh),a.object({type:a.literal("system/permissionGrant/lifecycle"),threadId:a.string()}).merge(Th),a.object({type:a.literal("system/userQuestion/lifecycle"),threadId:a.string()}).merge(xh),a.object({type:a.literal("system/thread-provisioning"),threadId:a.string()}).merge(Dh)]),OT=j$.and($T),vT=a.record(a.string(),a.unknown()),ns=["clientRequest","Sequence"].join(""),$$=a.unknown().superRefine((e,t)=>{let r=vT.safeParse(e);if(!r.success)return;Object.hasOwn(r.data,ns)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy request sequence field is no longer accepted",path:[ns]});let o=vT.safeParse(r.data.item);o.success&&o.data.type==="userMessage"&&Object.hasOwn(o.data,ns)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy user-message request sequence field is no longer accepted",path:["item",ns]})}),Yn=$$.pipe(a.union([MT,OT]).superRefine((e,t)=>{let r=wh({type:e.type,scope:e.scope});if(!r.valid){t.addIssue({code:a.ZodIssueCode.custom,message:r.message??"Invalid thread event scope",path:["scope"]});return}})),zT=[...Ah,...Xa],M$=new Set(zT),jh=a.string().refine(e=>M$.has(e),"Invalid thread event type");var BT=["requested","queued","completed","failed","cancelled"],O$=a.enum(BT);var FT=["provision","reprovision","destroy"],z$=a.enum(FT),LT=["provision","start","stop"],B$=a.enum(LT),NT=["metadata-pending","environment-pending","environment-attached","environment-provisioning","workspace-ready"],F$=a.enum(NT),qT=["delete"],L$=a.enum(qT);var Be="proj_personal",UT=["standard","personal"],WT=a.enum(UT),$h=a.object({id:a.string(),kind:WT,name:a.string(),createdAt:a.number(),updatedAt:a.number()}),VT=["local_path"],N$=a.enum(VT),q$=a.object({id:a.string(),projectId:a.string(),isDefault:a.boolean(),createdAt:a.number(),updatedAt:a.number()}),HT=q$.extend({type:a.literal("local_path"),hostId:a.string(),path:a.string()}),Mh=HT;function Oh(e,t){return e.find(r=>r.type==="local_path"&&r.hostId===t)}var U$=/^[A-Za-z]:(?:[\\/]+)?$/u,W$=/^[A-Za-z]:(?:[\\/]+)/u,V$=/^\\\\[^\\/]+(?:[\\/]+)[^\\/]+/u,zh="Project path must be an absolute path.",H$="Project path must point to a project directory, not the filesystem root.",KT="Native Windows paths are not supported. Use a POSIX path like /home/me/repo or /mnt/c/Users/me/repo.";function ZT(e){let t=e.trim();return t?U$.test(t)||W$.test(t)||V$.test(t):!1}function GT(e){let t=e.trim();return t?t.startsWith("/"):!1}function is(e){let t=e.trim();return t?t==="/"?t:t.replace(/\/+$/u,""):""}function Bh(e){let t=is(e);return t?ZT(t)?KT:GT(t)?t==="/"?H$:null:zh:zh}var QT=["persistent"],vt=a.enum(QT),JT=["connected","disconnected"],as=a.enum(JT),Fh=a.object({id:a.string(),name:a.string(),type:vt,status:as,lastSeenAt:a.number().nullable(),createdAt:a.number(),updatedAt:a.number()});var ln=["created","provisioning","idle","active","error"],Nt=a.enum(ln);var XT=[...ln,"host-reconnecting","waiting-for-host"],YT=a.enum(XT),ex=a.object({displayStatus:YT,hostReconnectGraceExpiresAt:a.number().nullable()}),tx=["standard","manager"],co=a.enum(tx),nx=["clean","untracked","dirty_uncommitted","committed_unmerged","dirty_and_committed_unmerged"],rx=a.enum(nx),ox=a.enum(["M","A","D","R","C","U","??","?"]),ix=a.object({path:a.string(),status:ox,insertions:a.number().nullable(),deletions:a.number().nullable()}),ax=a.object({sha:a.string(),shortSha:a.string(),subject:a.string(),authorName:a.string(),authoredAt:a.number()}),Lh=a.object({insertions:a.number(),deletions:a.number(),files:a.array(ix)}),sx=Lh.extend({hasUncommittedChanges:a.boolean(),state:rx}),cx=a.object({currentBranch:a.string().nullable(),defaultBranch:a.string()}),ux=Lh.extend({mergeBaseBranch:a.string(),baseRef:a.string().nullable(),aheadCount:a.number(),behindCount:a.number(),hasCommittedUnmergedChanges:a.boolean(),commits:a.array(ax)}),uo=a.object({workingTree:sx,branch:cx,mergeBase:ux.nullable()}),ss=a.object({id:a.string(),content:a.array(Y).min(1),model:a.string().min(1),reasoningLevel:ee,permissionMode:le,serviceTier:ge,createdAt:a.number(),updatedAt:a.number()}),lx=a.object({id:a.string(),projectId:a.string(),environmentId:a.string().nullable(),automationId:a.string().nullable(),providerId:a.string(),type:co,title:a.string().nullable(),titleFallback:a.string().nullable(),status:Nt,parentThreadId:a.string().nullable(),archivedAt:a.number().nullable(),pinnedAt:a.number().nullable(),stopRequestedAt:a.number().nullable(),deletedAt:a.number().nullable(),lastReadAt:a.number().nullable(),latestAttentionAt:a.number(),createdAt:a.number(),updatedAt:a.number()}),cs=lx.extend({runtime:ex}),us=cs.extend({pinSortKey:a.string().nullable(),hasPendingInteraction:a.boolean(),environmentHostId:a.string().nullable(),environmentBranchName:a.string().nullable(),environmentWorkspaceDisplayKind:mh});var Nh=a.discriminatedUnion("type",[a.object({type:a.literal("uncommitted")}),a.object({type:a.literal("branch_committed"),mergeBaseBranch:a.string().min(1)}),a.object({type:a.literal("all"),mergeBaseBranch:a.string().min(1)}),a.object({type:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),qh=a.object({diff:a.string(),truncated:a.boolean(),shortstat:a.string(),files:a.string(),mergeBaseRef:a.string().nullable()});var dx=a.object({id:a.string(),scope:un,threadId:a.string(),seq:a.number(),type:jh,data:a.record(a.string(),a.unknown()),createdAt:a.number()}),K$=new Set(["client/turn/requested"]),Z$={kind:"new-turn"},G$=so.extend({senderThreadId:a.string().nullable().default(null),target:Ya.default(Z$),execution:mt});function Q$(e){return G$.parse(e.data)}function J$(e){let{scope:t,threadId:r,type:o,...n}=e;return n}function X$(e){let{scope:t,turnId:r,...o}=e;return o}function px(e){let t=un.safeParse(e.scope);if(!t.success)throw new Error("Stored thread event is missing valid scope");let r=t.data,o=K$.has(e.type)?Q$(e):e.data;return Yn.parse({...X$(o),...e.providerThreadId!=null?{providerThreadId:e.providerThreadId}:{},scope:r,threadId:e.threadId,type:e.type})}function Uh(e){let{event:t,...r}=e;return{...r,type:t.type,data:J$(t)}}function mx(e){return Uh({id:e.id,scope:e.scope,threadId:e.threadId,seq:e.seq,createdAt:e.createdAt,event:px({type:e.type,data:e.data,threadId:e.threadId,scope:e.scope})})}function Wh(e){let t=dx.parse(e);return mx(t)}var Y$=dx.transform(e=>mx(e));var Vh=a.object({id:a.string(),text:a.string(),startedAt:a.number(),updatedAt:a.number()});var hx=a.enum(["pending","in_progress","completed"]),fx=a.object({id:a.string(),text:a.string(),status:hx}),Hh=a.object({sourceSeq:a.number().int().nonnegative(),updatedAt:a.number(),items:a.array(fx)});var Kh=["thread","project","environment","host","system"],Zh=a.enum(Kh);var ls=["environment-created","environment-deleted","metadata-changed","status-changed","work-status-changed","git-refs-changed","thread-storage-changed"];var gx=a.object({type:a.literal("subscribe"),entity:Zh,id:a.string().optional()}),vx=a.object({type:a.literal("unsubscribe"),entity:Zh,id:a.string().optional()}),e1=a.discriminatedUnion("type",[gx,vx]);var u1=a.enum(["invalid_request","invalid_manifest","awaiting_user_interaction","thread_not_found","project_not_found","thread_archived","inactive_session","provider_unavailable","provider_timeout","provider_rpc_error","unsupported_operation","no_active_turn","internal_error","environment_not_ready","thread_not_writable","thread_environment_unavailable","host_unavailable","project_unavailable","parent_thread_invalid"]),yt=a.object({code:a.string().min(1),message:a.string(),details:a.unknown().optional(),retryable:a.boolean().optional()}),Sx=a.object({environmentStatus:oo,hasPath:a.boolean(),cleanupRequestedAt:a.number().int().nonnegative().nullable()}),bx=a.enum(["archived","stopping","deleted","not_started","not_active","errored","already_active","still_starting"]),Tx=a.object({reason:bx,archivedAt:a.number().int().nonnegative().nullable(),stopRequestedAt:a.number().int().nonnegative().nullable(),threadStatus:Nt}),xx=a.enum(["never_attached","destroyed","destroying","provisioning","errored"]),Ex=a.object({reason:xx,environmentStatus:oo.nullable()}),Dx=a.enum(["suspended","disconnected","destroyed"]),Ix=a.object({reason:Dx,hostStatus:as.nullable(),suspendedAt:a.number().int().nonnegative().nullable(),destroyedAt:a.number().int().nonnegative().nullable()}),_x=a.enum(["deleted","pending_deletion"]),Px=a.object({reason:_x,deletedAt:a.number().int().nonnegative().nullable()}),wx=a.enum(["not_found","archived","deleted","wrong_project","not_a_manager"]),Cx=a.enum(["parent","sender"]),kx=a.object({reason:wx,subject:Cx}),Rx=yt.extend({code:a.literal("environment_not_ready"),details:Sx}),Ax=yt.extend({code:a.literal("thread_not_writable"),details:Tx}),jx=yt.extend({code:a.literal("thread_environment_unavailable"),details:Ex}),$x=yt.extend({code:a.literal("host_unavailable"),details:Ix}),Mx=yt.extend({code:a.literal("project_unavailable"),details:Px}),Ox=yt.extend({code:a.literal("parent_thread_invalid"),details:kx}),l1=a.discriminatedUnion("code",[Rx,Ax,jx,$x,Mx,Ox]);var zx=["pending","completed","error","interrupted"],lo=a.enum(zx),Bx=["waiting_for_approval","denied"],ps=a.enum(Bx).nullable(),Gh=a.discriminatedUnion("type",[a.object({type:a.literal("read"),command:a.string(),name:a.string(),path:a.string().nullable()}),a.object({type:a.literal("list_files"),command:a.string(),path:a.string().nullable()}),a.object({type:a.literal("search"),command:a.string(),query:a.string().nullable(),path:a.string().nullable()}),a.object({type:a.literal("unknown"),command:a.string()})]),po=a.object({id:a.string(),threadId:a.string(),turnId:a.string().nullable(),sourceSeqStart:a.number().int(),sourceSeqEnd:a.number().int(),startedAt:a.number(),createdAt:a.number()}),Fx=a.object({webImages:a.number().int().nonnegative(),localImages:a.number().int().nonnegative(),localFiles:a.number().int().nonnegative(),imageUrls:a.array(a.string()),localImagePaths:a.array(a.string()),localFilePaths:a.array(a.string())}),Lx=["message","steer"],Nx=["pending","accepted"],qx=a.object({kind:a.enum(Lx),status:a.enum(Nx)}),Ux=po.extend({kind:a.literal("conversation"),text:a.string(),attachments:Fx.nullable()}),Wx=Ux.extend({role:a.literal("user"),initiator:ao,senderThreadId:a.string().nullable(),turnRequest:qx}),Vx=Ux.extend({role:a.literal("assistant"),turnRequest:a.null()}),Qh=a.discriminatedUnion("role",[Wx,Vx]),Hx=["generic","compaction","manager-assignment","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"],d1=a.enum(Hx),p1=a.enum(["generic","compaction","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"]),Kx=["assign","release","transfer"],Zx=a.enum(Kx),Gx=a.object({action:Zx,previousManagerThreadId:a.string().nullable(),previousManagerThreadTitle:a.string().nullable(),nextManagerThreadId:a.string().nullable(),nextManagerThreadTitle:a.string().nullable()}),Jh=po.extend({kind:a.literal("system"),title:a.string(),detail:a.string().nullable(),status:lo.nullable()}),Qx=Jh.extend({systemKind:a.enum(["debug","error","reconnect"])}),Jx=Jh.extend({systemKind:a.literal("operation"),operationKind:p1,completedAt:a.number().nullable()}),Xx=Jh.extend({systemKind:a.literal("operation"),operationKind:a.literal("manager-assignment"),status:lo,managerAssignment:Gx,completedAt:a.number().nullable()}),Yx=a.discriminatedUnion("operationKind",[Jx,Xx]),Xh=a.union([Qx,Yx]),eE=a.object({added:a.number().int().nonnegative(),removed:a.number().int().nonnegative()}),tE=a.object({path:a.string(),kind:a.string().nullable(),movePath:a.string().nullable(),diff:a.string().nullable(),diffStats:eE}),qt=po.extend({kind:a.literal("work"),status:lo}),nE=qt.extend({workKind:a.literal("command"),callId:a.string(),command:a.string(),cwd:a.string().nullable(),source:a.string().nullable(),output:a.string(),exitCode:a.number().nullable(),completedAt:a.number().nullable(),approvalStatus:ps,activityIntents:a.array(Gh)}),rE=qt.extend({workKind:a.literal("tool"),callId:a.string(),toolName:a.string(),toolArgs:a.record(a.string(),te).nullable(),output:a.string(),completedAt:a.number().nullable(),approvalStatus:ps,activityIntents:a.array(Gh)}),oE=qt.extend({workKind:a.literal("file-change"),callId:a.string(),change:tE,stdout:a.string().nullable(),stderr:a.string().nullable(),approvalStatus:ps}),iE=qt.extend({workKind:a.literal("web-search"),callId:a.string(),queries:a.array(a.string()),completedAt:a.number().nullable()}),aE=qt.extend({workKind:a.literal("web-fetch"),callId:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),completedAt:a.number().nullable()}),m1=["waiting","denied"],h1=["pending","resolving","granted","denied","interrupted","expired"],sE=["pending","resolving","answered","interrupted","expired"],cE=["turn","session"],uE=a.enum(cE),f1=a.object({itemId:a.string(),toolName:a.string().nullable()}),lE=qt.extend({workKind:a.literal("approval"),interactionId:a.string(),target:f1}),g1=lE.extend({approvalKind:a.literal("file-edit"),lifecycle:a.enum(m1)}),v1=lE.extend({approvalKind:a.literal("permission-grant"),lifecycle:a.enum(h1),grantScope:uE.nullable(),statusReason:a.string().nullable()}),dE=a.discriminatedUnion("approvalKind",[g1,v1]),pE=qt.extend({workKind:a.literal("question"),interactionId:a.string(),lifecycle:a.enum(sE),questions:a.array(Ua),answers:a.record(a.string(),Ka).nullable(),statusReason:a.string().nullable()}),y1=qt.extend({workKind:a.literal("delegation"),callId:a.string(),toolName:a.string(),subagentType:a.string().nullable(),description:a.string().nullable(),output:a.string(),completedAt:a.number().nullable(),childRows:a.array(a.lazy(()=>er))}),Yh=a.union([nE,rE,oE,iE,aE,dE,pE,y1]),mE=a.lazy(()=>po.extend({kind:a.literal("turn"),turnId:a.string().min(1),status:lo,summaryCount:a.number().int().nonnegative(),completedAt:a.number().nullable(),children:a.array(er).nullable()})),S1=a.union([Qh,Yh,Xh]),er=a.lazy(()=>a.union([Qh,Yh,Xh,mE]));var b1=a.record(a.string(),a.unknown()),hE=a.object({jsonrpc:a.literal("2.0"),method:a.string(),params:b1.optional()}).passthrough(),oV=a.object({jsonrpc:a.literal("2.0"),method:a.literal("sdk/message"),params:a.object({message:a.unknown(),threadId:a.string().optional(),parent_tool_use_id:a.string().optional()}).passthrough()}).passthrough(),iV=a.object({jsonrpc:a.literal("2.0"),method:a.literal("thread/identity"),params:a.object({threadId:a.string().optional(),providerThreadId:a.string().optional()}).passthrough()}).passthrough(),aV=a.object({jsonrpc:a.literal("2.0"),method:a.literal("thread/contextWindowUsage/updated"),params:a.object({threadId:a.string().optional(),contextWindowUsage:a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()})}).passthrough()}).passthrough(),sV=a.object({jsonrpc:a.literal("2.0"),method:a.literal("error"),params:a.object({message:a.string().optional()}).passthrough().optional()}).passthrough();var T1=3,x1=/^cap_[0-9a-z]+_[0-9a-z]{8}$/u;var E1=a.enum(["thread-start","turn-start"]),D1=a.enum(["live-dev-capture","corpus-fixture"]),pV=a.object({headSha:a.string().nullable(),isClean:a.boolean(),statusLines:a.array(a.string())}).strict(),I1=a.custom(e=>hE.safeParse(e).success,"Invalid JSON-RPC envelope"),_1=a.object({kind:a.literal("raw-provider-event"),capturedAt:a.number().int().nonnegative(),providerId:a.string().min(1),captureId:a.string().min(1),rawLine:a.string(),rawEvent:I1,sourceThreadId:a.string().optional()}),P1=a.object({turnId:a.string().min(1),userInput:a.array(Y).min(1),createdAt:a.number().int().nonnegative()}).strict(),w1=a.object({rawProviderEvents:a.number().int().nonnegative(),droppedRecords:a.number().int().nonnegative()}).strict(),ms=a.object({schemaVersion:a.literal(T1),captureId:a.string().regex(x1),capturedAt:a.number().int().nonnegative(),completedAt:a.number().int().nonnegative().nullable(),source:D1,providerId:a.string().min(1),projectId:a.string().min(1),environmentId:a.string().min(1),threadId:a.string().min(1),providerThreadId:a.string().nullable(),title:a.string().nullable(),kind:E1,turns:a.array(P1).min(1),userInputPreview:a.string(),execution:mt,eventCounts:w1,errorMessage:a.string().nullable()}).strict(),hs=ms.pick({captureId:!0,capturedAt:!0,completedAt:!0,providerId:!0,projectId:!0,environmentId:!0,threadId:!0,title:!0,kind:!0,userInputPreview:!0,execution:!0,eventCounts:!0,errorMessage:!0}),ef=hs.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),fE=a.object({captures:a.array(hs)}),gE=ms.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),vE=a.object({captures:a.array(ef)}),dn=a.union([a.literal(.5),a.literal(1),a.literal(2),a.literal(5),a.literal(10)]),yE=a.object({speed:dn}).strict(),SE=a.object({commandId:a.string(),replayThreadId:a.string(),projectId:a.string()}),mV=a.object({ordinal:a.number().int().positive(),relativeMs:a.number().int().nonnegative(),entry:_1});var TE=a.enum(["auto","start","steer"]),xE=200,EE=256,rf=256,DE=100,IE=200,_E=100;function PE(e){return e.value.split(",").every(r=>r.length>0&&e.allowedValues.includes(r))}var wE=a.object({usedTokens:a.number(),modelContextWindow:a.number(),estimated:a.boolean()}),CE=a.iso.datetime(),kE=a.object({url:a.string().min(1),sha512:a.string().min(1),size:a.number().int().nonnegative()}),C1=a.object({schemaVersion:a.literal(1),channel:a.literal("latest"),platform:a.literal("macos"),version:a.string().min(1),releaseDate:CE,releaseName:a.string().min(1),releaseNotes:a.string().nullable(),minimumSystemVersion:a.string().min(1).nullable(),files:a.array(kE).min(1),path:a.string().min(1),sha512:a.string().min(1),stagingPercentage:a.number().min(0).max(100).nullable()}),k1=a.object({lastCheckedAt:CE.nullable(),latestVersion:a.string().min(1).nullable(),pendingVersion:a.string().min(1).nullable(),platform:a.literal("macos"),updateAvailable:a.boolean(),updateDownloaded:a.boolean(),version:a.string().min(1)});var RE=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:J}).strict(),a.object({kind:a.literal("new"),baseBranch:J}).strict()]),AE=a.object({type:a.literal("unmanaged"),path:a.string().min(1).nullable(),branch:RE.optional()}),jE=a.discriminatedUnion("kind",[a.object({kind:a.literal("named"),name:J}),a.object({kind:a.literal("default")})]),$E=a.object({type:a.literal("managed-worktree"),baseBranch:jE}),ME=a.object({type:a.literal("personal")}),OE=a.discriminatedUnion("type",[AE,$E,ME]),zE=a.object({type:a.literal("reuse"),environmentId:a.string().min(1)}),BE=a.object({type:a.literal("host"),hostId:a.string().min(1).optional(),workspace:OE}).superRefine((e,t)=>{e.workspace.type!=="personal"&&e.hostId===void 0&&t.addIssue({code:"custom",message:"hostId is required unless workspace.type is personal",path:["hostId"]})}),of=a.discriminatedUnion("type",[zE,BE]),af=a.enum(["app","cli"]),R1=a.object({projectId:a.string().min(1),providerId:a.string().min(1).optional(),origin:af,title:a.string().min(1).optional(),input:a.array(Y).min(1),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional(),environment:of,parentThreadId:a.string().min(1).optional()}),A1=a.object({providerId:a.string().min(1),title:a.string().min(1).optional(),input:a.array(Y).min(1),model:a.string().min(1),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional(),environment:of,parentThreadId:a.string().min(1).optional()}),gs=a.string().min(1).max(xE),FE=a.string().min(1).max(DE),j1=a.string().min(1).max(IE),LE=a.string().min(1).max(_E),NE=a.object({triggerType:a.literal("schedule"),cron:FE,timezone:LE}),qE=a.object({actionType:a.literal("scheduled-thread"),threadRequest:A1}),sf=a.discriminatedUnion("triggerType",[NE]),vs=a.discriminatedUnion("actionType",[qE]),cf=a.string().min(1),$1=a.object({isValid:a.boolean(),validationIssues:a.array(cf)}),M1=a.object({id:a.string().min(1),projectId:a.string().min(1),name:gs,enabled:a.boolean(),trigger:sf,action:vs,autoArchive:a.boolean(),nextRunAt:a.number().nullable(),lastRunAt:a.number().nullable(),runCount:a.number().int().nonnegative(),isValid:a.boolean(),validationIssues:a.array(cf),createdAt:a.number(),updatedAt:a.number()}),O1=a.object({name:gs,enabled:a.boolean().optional(),trigger:sf,action:vs,autoArchive:a.boolean().optional()}),UE=a.object({enabled:a.boolean()}).strict(),WE=a.object({name:gs,trigger:sf,action:vs,autoArchive:a.boolean()}).partial().strict().refine(e=>e.name!==void 0||e.trigger!==void 0||e.action!==void 0||e.autoArchive!==void 0,"At least one field must be provided"),z1=a.union([UE,WE]),B1=a.object({input:a.array(Y).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional(),mode:TE,senderThreadId:a.string().min(1).optional()}),VE=a.enum(["auto","steer"]),F1=a.object({input:a.array(Y).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional()}),L1=a.object({mode:VE}),N1=a.object({previousQueuedMessageId:a.string().min(1).nullable(),nextQueuedMessageId:a.string().min(1).nullable()}),q1=a.object({ok:a.literal(!0),queuedMessage:ss}),U1=a.array(us),HE=cs,KE=a.enum(["environment","host"]),W1=a.object({include:a.string().min(1).refine(e=>PE({allowedValues:KE.options,value:e}),{message:"Invalid include"}).optional()}),V1=HE.extend({environment:gh.nullable().optional(),host:Fh.nullable().optional()}),ZE=a.array(lh);var GE=a.array(ss),H1=a.object({nonDeletedAssignedChildCount:a.number().int().nonnegative()}),K1=a.object({managerChildThreadsConfirmed:a.boolean()}),Z1=a.object({title:a.string().min(1).nullable(),parentThreadId:a.string().min(1).nullable()}).partial().refine(e=>e.title!==void 0||e.parentThreadId!==void 0,"At least one field must be provided"),G1=a.object({mergeBaseBranch:J.nullable()}),QE=a.string().trim().min(1).transform(is).superRefine((e,t)=>{let r=Bh(e);r&&t.addIssue({code:a.ZodIssueCode.custom,message:r})}),Q1=a.object({hostId:a.string().min(1),type:a.literal("local_path"),path:QE}).strict(),JE=Q1,J1=a.object({name:a.string().min(1),source:JE}),X1=a.object({previousProjectId:a.string().min(1).nullable(),nextProjectId:a.string().min(1).nullable()}),Y1=a.object({previousThreadId:a.string().min(1).nullable(),nextThreadId:a.string().min(1).nullable()}),e0=a.object({previousThreadId:a.string().min(1).nullable(),nextThreadId:a.string().min(1).nullable()}),t0=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent").optional()}).strict(),n0=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent"),joinMode:a.literal("local")}).strict(),r0=a.union([n0,t0]),o0=a.object({expiresAt:a.number().int().positive(),hostId:a.string().min(1),joinCode:a.string().min(1),joinCommand:a.string().min(1)}),i0=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),a0=a.object({type:a.literal("host"),hostId:a.string().min(1)}),s0=a.discriminatedUnion("type",[a0]),c0=a.object({name:a.string().min(1).optional(),providerId:a.string().min(1).optional(),origin:af,templateName:Ft.optional(),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:ee.optional(),permissionMode:le.optional(),environment:s0,input:a.array(Y).min(1).optional()}),XE=a.enum(["threads"]),u0=a.object({include:a.string().min(1).refine(e=>PE({allowedValues:XE.options,value:e}),{message:"Invalid include"}).optional()}),YE=a.object({query:a.string().min(1).max(rf).optional(),limit:a.string().regex(/^\d+$/).optional(),environmentId:a.preprocess(e=>e===""?null:e,a.string().min(1).nullable())}),ho=a.enum(["true","false"]),l0=YE.extend({includeFiles:ho,includeDirectories:ho}),uf=a.object({query:a.string().min(1).max(EE).optional(),limit:a.string().regex(/^\d+$/).optional()}),d0=uf.extend({selectedBranch:J.optional()}),p0=uf.extend({hostId:a.string().min(1),selectedBranch:J.optional()});var m0=a.object({branches:a.array(a.string()),branchesTruncated:a.boolean(),remoteBranches:a.array(a.string()),remoteBranchesTruncated:a.boolean(),selectedBranch:za.nullable()}),h0=a.object({path:a.string().min(1)}),f0=a.object({threadType:co}),g0=a.object({limit:a.string().regex(/^\d+$/)}).partial(),eD=a.array(eh),v0=a.enum(["missing_executable","timeout","failed"]),y0=a.object({providerId:a.string().min(1),code:v0}),tD=a.object({providers:a.array(cn),models:a.array(sn),selectedOnlyModels:a.array(sn),modelLoadError:y0.nullable()}),S0=a.object({defaultExecutionOptions:mt.nullable(),queuedMessages:GE,executionOptions:tD,pendingInteractions:ZE,promptHistory:eD}),tf=a.string("A merge base branch is required").pipe(J),b0=a.object({mergeBaseBranch:tf.optional()}),T0=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted")}),a.object({target:a.literal("branch_committed"),mergeBaseBranch:tf}),a.object({target:a.literal("all"),mergeBaseBranch:tf}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),fs=a.enum(["old","new"]),bE=a.string().regex(/^[0-9a-f]{4,40}$/iu),x0=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted"),path:a.string().min(1),side:fs}),a.object({target:a.literal("branch_committed"),mergeBaseRef:bE,path:a.string().min(1),side:fs}),a.object({target:a.literal("all"),mergeBaseRef:bE,path:a.string().min(1),side:fs}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu),path:a.string().min(1),side:fs})]),E0=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),D0=a.object({ok:a.literal(!0),archivedThreadIds:a.array(a.string().min(1))}),I0=a.object({projectId:a.string().min(1).optional(),type:co.optional(),parentThreadId:a.string().min(1).optional(),archived:a.enum(["true","false"]).optional(),managed:a.enum(["true","false"]).optional(),limit:a.string().regex(/^\d+$/).optional(),offset:a.string().regex(/^\d+$/).optional()}),ys=a.enum(["conversation","standard"]),nD=a.object({anchorSeq:a.number().int().positive(),anchorId:a.string().min(1)}).strict(),rD=a.object({kind:a.enum(["latest","older"]),segmentLimit:a.number().int().positive(),returnedSegmentCount:a.number().int().nonnegative(),hasOlderRows:a.boolean(),olderCursor:nD.nullable()}).strict(),_0=a.object({managerTimelineView:ys,includeNestedRows:a.enum(["true","false"]),segmentLimit:a.string().regex(/^\d+$/),beforeAnchorSeq:a.string().regex(/^[1-9]\d*$/),beforeAnchorId:a.string().min(1),summaryOnly:a.enum(["true","false"])}).partial().superRefine((e,t)=>{let r=e.beforeAnchorSeq!==void 0,o=e.beforeAnchorId!==void 0;r!==o&&t.addIssue({code:"custom",message:"beforeAnchorSeq and beforeAnchorId must be provided together",path:r?["beforeAnchorId"]:["beforeAnchorSeq"]})}),P0=a.object({turnId:a.string().min(1),sourceSeqStart:a.string().regex(/^\d+$/),sourceSeqEnd:a.string().regex(/^\d+$/),managerTimelineView:ys.optional()}),w0=a.object({afterSeq:a.string().regex(/^\d+$/),limit:a.string().regex(/^\d+$/)}).partial(),C0=a.object({type:a.string().min(1),afterSeq:a.string().regex(/^\d+$/).optional(),waitMs:a.string().regex(/^\d+$/).optional()}),oD=a.object({query:a.string().min(1).max(rf),limit:a.string().regex(/^\d+$/)}).partial(),k0=oD.extend({includeFiles:ho,includeDirectories:ho}),R0=a.object({path:a.string().min(1)}),A0=a.object({path:a.string().min(1)}),j0=/^[A-Za-z0-9._-]{1,120}$/u;function $0(e){return e.length===0||e.length>512||e.includes("\0")||e.includes("\\")||e.startsWith("/")||e.endsWith("/")?!1:e.split("/").every(r=>r!=="."&&r!==".."&&!r.startsWith(".")&&j0.test(r))}var iD=["AlertCircle","AlertTriangle","AlignLeft","Archive","ArchiveRestore","ArrowDown","ArrowRight","ArrowUp","AudioLines","Check","ChevronDown","ChevronLeft","ChevronRight","ChevronUp","ChevronsDown","ChevronsUp","Circle","CircleCheck","CircleDashed","CircleX","Columns2","Container","Copy","CornerDownLeft","CornerDownRight","Edit","ExternalLink","FileDiff","File","FileQuestion","FileX2","Folder","FolderOpen","FolderMinus","FolderPlus","GitBranch","GitMerge","GridView","Info","Laptop","ListTodo","Maximize2","MessageSquarePlus","MessageSquare","Mic","Minimize2","MoreHorizontal","PanelBottom","PanelLeft","PanelRight","Paperclip","Plus","RotateCcw","Rows2","Search","Settings","Spinner","Square","Terminal","Trash2","UserRound","UserRoundPlus","X","Zap"],lf=a.enum(iD),aD=a.enum(["html","md"]),df=a.string().refine($0,"Invalid app entry path"),sD=a.object({path:df,kind:aD}).strict(),pf=a.enum(["data","message"]),cD=a.enum(["thread.app"]),M0=a.object({manifestVersion:a.literal(1),id:ze,name:a.string().min(1).max(80),icon:lf.optional(),entry:df.optional(),contributions:a.array(cD).min(1),capabilities:a.array(pf)}).strict().superRefine((e,t)=>{(e.contributions.length!==1||e.contributions[0]!=="thread.app")&&t.addIssue({code:"custom",path:["contributions"],message:'Only ["thread.app"] is supported'})}),uD=a.discriminatedUnion("kind",[a.object({kind:a.literal("builtin"),name:lf}).strict(),a.object({kind:a.literal("logo"),url:a.string().min(1)}).strict()]),O0=a.object({id:ze,name:a.string().min(1).max(80),entry:sD,capabilities:a.array(pf),icon:uD}).strict();var Ss=a.enum(["blank","status"]),z0=a.object({id:ze,name:a.string().min(1).max(80),template:Ss}).strict(),lD=a.object({path:on,value:te,version:a.string().min(1),sizeBytes:a.number().int().nonnegative(),modifiedAtMs:a.number().nonnegative()}).strict();var B0=a.object({prefix:on.or(a.literal(""))}).partial(),F0=a.object({entries:a.array(lD)}).strict(),L0=a.object({value:te}).strict(),N0=a.object({text:a.string().min(1)}).strict(),dD=a.object({type:a.literal("app-data.changed"),threadId:a.string().min(1),appId:ze,path:on,value:te.nullable(),deleted:a.boolean(),version:a.string().min(1).nullable()}).strict(),pD=a.object({type:a.literal("app-data.resync"),threadId:a.string().min(1),appId:ze}).strict(),q0=a.discriminatedUnion("type",[dD,pD]),U0=a.object({providerId:a.string().min(1),hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),W0=a.object({hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),V0=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),H0=a.object({type:a.literal("local_path"),path:QE.optional(),isDefault:a.literal(!0).optional()}).strict().refine(e=>e.path!==void 0||e.isDefault!==void 0,"At least one field besides type must be provided"),K0=a.enum(["commit","squash_merge"]),mD=a.object({mergeBaseBranch:J}).strict(),Z0=a.discriminatedUnion("action",[a.object({action:a.literal("commit")}).strict(),a.object({action:a.literal("squash_merge"),options:mD}).strict()]),hD=a.object({ok:a.literal(!0),action:a.literal("commit"),message:a.string().min(1),commitSha:a.string().min(1),commitSubject:a.string().min(1)}),fD=a.object({ok:a.literal(!0),action:a.literal("squash_merge"),merged:a.boolean(),message:a.string().min(1),commitSha:a.string().min(1),commitSubject:a.string().min(1)}),G0=a.discriminatedUnion("action",[hD,fD]),gD=a.discriminatedUnion("kind",[a.object({kind:a.literal("commit_failed"),errorMessage:a.string()}),a.object({kind:a.literal("squash_merge_conflict"),conflictFiles:a.array(a.string())}),a.object({kind:a.literal("squash_merge_commit_failed"),stage:a.enum(["prep_commit","squash_commit"]),errorMessage:a.string()})]),Q0=yt.extend({details:gD.optional()}),mo=a.object({id:a.string().min(1),threadId:a.string().min(1),environmentId:a.string().min(1),hostId:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:ht,rows:ft,status:Xm,exitCode:a.number().int().nullable(),closeReason:Ym.nullable(),createdAt:a.number().int().nonnegative(),updatedAt:a.number().int().nonnegative(),lastUserInputAt:a.number().int().nonnegative().nullable()}),J0=a.object({sessions:a.array(mo)}),X0=a.object({cols:ht,rows:ft}).strict(),Y0=a.object({mode:a.enum(["force","if-clean"]),reason:a.literal("user")}).strict(),eM=a.object({title:a.string().trim().min(1).max(200)}).strict(),vD=a.object({seq:a.number().int().nonnegative(),dataBase64:an}).strict(),tM=a.discriminatedUnion("type",[a.object({type:a.literal("input"),dataBase64:an}).strict(),a.object({type:a.literal("resize"),cols:ht,rows:ft}).strict(),a.object({type:a.literal("close"),reason:a.literal("user")}).strict(),a.object({type:a.literal("ping")}).strict()]),nM=a.discriminatedUnion("type",[a.object({type:a.literal("attached"),session:mo,nextSeq:a.number().int().nonnegative()}).strict(),a.object({type:a.literal("output"),chunk:vD}).strict(),a.object({type:a.literal("session-updated"),session:mo}).strict(),a.object({type:a.literal("exited"),session:mo}).strict(),a.object({type:a.literal("error"),code:a.string().min(1),message:a.string().min(1)}).strict(),a.object({type:a.literal("pong")}).strict()]),rM=a.object({turnId:a.string().min(1),sourceSeqStart:a.number().int().nonnegative(),sourceSeqEnd:a.number().int().nonnegative(),managerTimelineView:ys.optional()}),oM=a.object({rows:a.array(er)}),iM=a.object({rows:a.array(er),activeThinking:Vh.nullable(),pendingTodos:Hh.nullable(),contextWindowUsage:wE.optional(),timelinePage:rD}),aM=a.object({text:a.string()}),yD=a.object({path:a.string(),name:a.string()}),SD=a.enum(["file","directory"]),bD=a.object({kind:SD,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),sM=a.object({files:a.array(yD),truncated:a.boolean()}),TD=a.object({paths:a.array(bD),truncated:a.boolean()}),cM=sM.extend({storageRootPath:a.string()}),uM=TD.extend({storageRootPath:a.string()}),xD=$h.extend({sources:a.array(Mh)}),nf=xD.extend({threads:a.array(us)}),lM=a.object({projects:a.array(nf),personalProject:nf}),dM=a.object({featureFlags:Jm,hostDaemonPort:a.number().nullable(),voiceTranscriptionEnabled:a.boolean()}),pM=a.object({currentVersion:a.string(),latestVersion:a.string().nullable(),source:a.literal("npm"),updateAvailable:a.boolean(),isDevelopment:a.boolean(),upgradeCommand:a.string()}),mM=a.object({ok:a.literal(!0)}),hM=a.object({hostId:a.string().min(1)}).partial(),ED=a.object({name:Ft,isActive:a.boolean()}),fM=a.object({templates:a.array(ED),activeName:Ft}),gM=a.object({workspace:uo.nullable()}),vM=a.object({type:a.enum(["localImage","localFile"]),path:a.string(),name:a.string(),mimeType:a.string().optional(),sizeBytes:a.number()});var yM=(e,t,r={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!r.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!r.secure)throw new Error("__Host- Cookie must have Secure attributes");if(r.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(r.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(r&&typeof r.maxAge=="number"&&r.maxAge>=0){if(r.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${r.maxAge|0}`}if(r.domain&&r.prefix!=="host"&&(o+=`; Domain=${r.domain}`),r.path&&(o+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite&&(o+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(o+=`; Priority=${r.priority.charAt(0).toUpperCase()+r.priority.slice(1)}`),r.partitioned){if(!r.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},DD=(e,t,r)=>(t=encodeURIComponent(t),yM(e,t,r));var ID=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),Ts=(e,t)=>{for(let[r,o]of Object.entries(t)){let n=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(n,o?`/${o}`:"")}return e},_D=e=>{let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(o!==void 0)if(Array.isArray(o))for(let n of o)t.append(r,n);else t.set(r,o);return t},PD=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},mf=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function bs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function hf(e,t){if(!bs(e)&&!bs(t))return t;let r={...e};for(let o in t){let n=t[o];bs(r[o])&&bs(n)?r[o]=hf(r[o],n):r[o]=n}return r}var wD=(e,t)=>new Proxy(()=>{},{get(o,n){if(!(typeof n!="string"||n==="then"))return wD(e,[...t,n])},apply(o,n,i){return e({path:t,args:i})}}),bM=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,r){this.url=e,this.method=t,this.buildSearchParams=r.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let c=new FormData;for(let[l,u]of Object.entries(e.form))if(Array.isArray(u))for(let p of u)c.append(l,p);else c.append(l,u);this.rBody=c}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase(),o={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){let c=[];for(let[l,u]of Object.entries(e.cookie))c.push(DD(l,u,{path:"/"}));o.Cookie=c.join(",")}this.cType&&(o["Content-Type"]=this.cType);let n=new Headers(o??void 0),i=this.url;i=mf(i),i=Ts(i,this.pathParams),this.queryParams&&(i=i+"?"+this.queryParams.toString()),r=this.method.toUpperCase();let s=!(r==="GET"||r==="HEAD");return(t?.fetch||fetch)(i,{body:s?this.rBody:void 0,method:r,headers:n,...t?.init})}},tr=(e,t)=>wD(function r(o){let n=t?.buildSearchParams??_D,i=[...o.path],s=i.slice(-3).reverse();if(s[0]==="toString")return s[1]==="name"?s[2]||"":r.toString();if(s[0]==="valueOf")return s[1]==="name"?s[2]||"":r;let c="";if(/^\$/.test(s[0])){let d=i.pop();d&&(c=d.replace(/^\$/,""))}let l=i.join("/"),u=ID(e,l);if(c==="url"){let d=u;return o.args[0]&&(o.args[0].param&&(d=Ts(u,o.args[0].param)),o.args[0].query&&(d=d+"?"+n(o.args[0].query).toString())),d=mf(d),new URL(d)}if(c==="ws"){let d=PD(o.args[0]&&o.args[0].param?Ts(u,o.args[0].param):u,"ws"),m=new URL(d),h=o.args[0]?.query;return h&&Object.entries(h).forEach(([y,C])=>{Array.isArray(C)?C.forEach(D=>m.searchParams.append(y,D)):m.searchParams.set(y,C)}),((...y)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...y):new WebSocket(...y))(m.toString())}let p=new bM(u,c,{buildSearchParams:n});if(c){t??={};let d=hf(t,{...o.args[1]});return p.fetch(o.args[0],d)}return p},[]);function CD(e,t){return tr(`${e}/api/v1`,t)}function ff(e,t){return{api:{v1:CD(e,t)}}}import{createInterface as E2}from"node:readline/promises";import{homedir as FM}from"node:os";import{createHash as TM}from"node:crypto";import{isAbsolute as xM,join as EM,relative as DM,resolve as RD}from"node:path";var IM=".bb-dev";var AD=38887;var _M=12,PM=8e3,wM=11e3,CM=19e3,kM=27e3,RM=43e3;function jD(e){return TM("sha256").update(e).digest("hex")}function AM(e){let t=e.toLowerCase().replace(/[^a-z0-9._-]+/gu,"-").replace(/^[._-]+|[._-]+$/gu,"");return t.length>0?t:"worktree"}function jM(e){let t=DM(e.homeDir,e.repoRoot);return t.length>0&&!t.startsWith("../")&&!t.startsWith("..\\")&&t!==".."&&!xM(t)?t:e.repoRoot}function $M(e){let t=jD(e.repoRoot),r=jM(e);return`${AM(r)}-${t.slice(0,_M)}`}function MM(e){let t=jD(e);return Number.parseInt(t.slice(0,8),16)%PM}function OM(e){let t=MM(e);return{appPort:wM+t,devEnvPort:RM+t,hostDaemonPort:kM+t,serverPort:CM+t}}function zM(e,t){return e==="~"?t:e.startsWith("~/")?RD(t,e.slice(2)):RD(e)}function $D(e=process.env.NODE_ENV){return e==="production"?"prod":"dev"}function MD(e){let t=e.rawDataDir.trim();if(t.length===0)throw new Error("BB_DATA_DIR must not be empty");return zM(t,e.homeDir)}function xs(e){let t=$M(e),r=EM(e.homeDir,IM,t),o=OM(e.repoRoot),n=`http://localhost:${o.serverPort}`;return{dataDir:r,instanceId:t,ports:o,repoRoot:e.repoRoot,serverUrl:n}}function gf(e){let t=Number(e.rawPort);if(String(t)!==e.rawPort)throw new Error(`${e.name} must be a valid TCP port`);return BM({name:e.name,value:t})}function BM(e){if(Number.isInteger(e.value)&&e.value>=1&&e.value<=65535)return e.value;throw new Error(`${e.name} must be a valid TCP port`)}function pn(e={}){let t=e.env??process.env;return{context:{homeDir:e.homeDir??FM()},env:t,mode:e.mode??$D(t.NODE_ENV)}}function OD(e){let t=e.env[e.definition.name];if(t===void 0)throw new Error(`${e.definition.name} is required`);return e.definition.parse({context:e.context,name:e.definition.name,value:t})}function Es(e){let t=e.env[e.definition.name];if(t!==void 0)return e.definition.parse({context:e.context,name:e.definition.name,value:t})}var vf={logLevel:{prod:"info",dev:"debug"},secretToken:{dev:"dev-secret"},inferenceModel:"codex/gpt-5.4-mini",transcriptionModel:"codex/gpt-4o-mini-transcribe"};var LM=/^([^/]+)\/([^/]+)$/u;function NM(e){let t=LM.exec(e.value),r=t?.[1],o=t?.[2];if(r&&o)return{provider:r,modelId:o};throw new Error(`${e.name} must use provider/model format, received "${e.value}"`)}function zD(e){return NM(e),e.value}function BD(e){return zD({name:"BB_INFERENCE",value:e})}function FD(e){return zD({name:"BB_TRANSCRIPTION",value:e})}var LD=["trace","debug","info","warn","error","fatal"];function ND(e){if(LD.includes(e))return e;throw new Error(`BB_LOG_LEVEL must be one of ${LD.join(", ")}, received "${e}"`)}function qD(e,t){let r=t.trim();return r.length===0?"":fo(e,r)}function fo(e,t){let r=t.trim();if(r.length===0)throw new Error(`${e} must not be empty`);try{return new URL(r),r}catch{throw new Error(`${e} must be a valid URL, received "${t}"`)}}function yf(e){let t=e.value.trim().toLowerCase();if(t==="true"||t==="1"||t==="yes"||t==="y")return!0;if(t==="false"||t==="0"||t==="no"||t==="n")return!1;throw new Error(`${e.name} must be a boolean`)}function UD(e){if(e.value!=="0")return gf({name:e.name,rawPort:e.value})}function go(e){let t=e.value.trim();return t.length===0?void 0:t}function WD(e){return e.value}function qM(e){if(e.value.length===0)throw new Error(`${e.name} must not be empty`);return e.value}function VD(e){return gf({name:e.name,rawPort:e.value})}function UM(e){return fo(e.name,e.value)}function HD(e){return qD(e.name,e.value)}function WM(e){return MD({homeDir:e.context.homeDir,rawDataDir:e.value})}function VM(e){return ND(e.value)}function HM(e){return BD(e.value)}function KM(e){return FD(e.value)}function ZM(e){let t=e.value.trim();if(t.length===0)return;let r=vt.safeParse(t);if(!r.success)throw new Error(`Invalid ${e.name} "${t}"`);return r.data}var DH={description:"Root directory for all bb data (db, logs, host-id, etc.)",name:"BB_DATA_DIR",parse:WM},IH={description:"Log level: trace, debug, info, warn, error, fatal",name:"BB_LOG_LEVEL",parse:VM},GM={description:"HTTP port for the server",name:"BB_SERVER_PORT",parse:VD},KD={description:"Port the host daemon listens on for local API requests",name:"BB_HOST_DAEMON_PORT",parse:VD},Ds={description:"URL of the bb server",name:"BB_SERVER_URL",parse:UM},_H={description:"Version of the running bb-app package. The bb-app launcher sets this from packages/bb-app/package.json; defaults to a sentinel for dev/source runs.",name:"BB_APP_VERSION",parse:qM},PH={description:"Human-facing app/server base URL used for generated links and allowed browser origins. Does not control which host or port the server binds to.",name:"BB_APP_URL",parse:HD},wH={description:"Internet-facing HTTPS base URL used for generated public links. Does not control which host or port the server binds to.",name:"BB_EXTERNAL_URL",parse:HD},CH={description:"Inference model used for server-side completions",name:"BB_INFERENCE",parse:HM},kH={description:"Speech-to-text model used for voice transcription",name:"BB_TRANSCRIPTION",parse:KM},RH={description:"OpenAI API key used when an explicit OpenAI provider route is configured",name:"OPENAI_API_KEY",parse:WD},AH={description:"Enable the Ask User Question feature",name:"BB_FF_ASK_USER_QUESTION",parse:yf},jH={description:"Enable terminal sessions in threads",name:"BB_FF_TERMINALS",parse:yf},$H={description:"Development-only Vite bind host for apps/app. Set to 0.0.0.0 to test from phones or other LAN devices.",name:"BB_DEV_APP_HOST",parse:WD},MH={description:"Development-only Vite port for apps/app.",name:"BB_DEV_APP_PORT",parse:UD},OH={description:"Development-only localhost port for the bb dev-env helper API.",name:"BB_DEV_ENV_PORT",parse:UD},zH={description:"When true, the daemon records live provider traffic as replay captures",name:"BB_DEV_REPLAY_CAPTURE",parse:yf},BH={description:"Directory containing the bb CLI executable to inject into runtime shells",name:"BB_CLI_DIR",parse:go},FH={description:"Directory containing provider bridge bundles for the host daemon runtime",name:"BB_BRIDGE_DIR",parse:go},LH={description:"One-time enrollment token used to bootstrap a host daemon with the bb server",name:"BB_HOST_ENROLL_KEY",parse:go},NH={description:"Preferred host ID to persist for the daemon instead of generating one locally",name:"BB_HOST_ID",parse:go},qH={description:"Preferred host name to report instead of detecting the local hostname",name:"BB_HOST_NAME",parse:go},UH={description:"Host type override for daemon bootstrap",name:"BB_HOST_TYPE",parse:ZM};var WH=vf.inferenceModel,VH=vf.transcriptionModel,HH=Oa.askUserQuestion,KH=Oa.terminals;function QM(e){if(e.repoRoot!==void 0)return xs({homeDir:e.homeDir,repoRoot:e.repoRoot}).ports.hostDaemonPort}function JM(e){return QM(e)}function XM(e){let t=pn(e),r=Es({context:t.context,definition:e.definition,env:t.env});if(r!==void 0)return r;if(t.mode==="prod")return e.prodDefault;if(e.devDefault!==void 0)return e.devDefault;throw new Error(`${e.definition.name} is required unless repoRoot is provided for development`)}function ZD(e={}){let t=pn(e);return XM({...e,definition:KD,devDefault:JM({homeDir:t.context.homeDir,repoRoot:e.repoRoot}),env:t.env,homeDir:t.context.homeDir,mode:t.mode,prodDefault:AD})}function GD(e={}){if(e.serverUrl!==void 0)return fo(Ds.name,e.serverUrl);let t=pn(e),r=Es({context:t.context,definition:Ds,env:t.env});return r!==void 0?r:t.mode==="dev"&&e.repoRoot!==void 0?xs({homeDir:t.context.homeDir,repoRoot:e.repoRoot}).serverUrl:OD({context:t.context,definition:Ds,env:t.env})}function QD(e={}){let t=pn(e),r=GD({...e,env:t.env,homeDir:t.context.homeDir,mode:t.mode});return{BB_HOST_DAEMON_PORT:ZD({...e,env:t.env,homeDir:t.context.homeDir,mode:t.mode}),BB_SERVER_URL:r}}var YM=a.string().trim().min(1);var eO=a.object({hostId:a.string().min(1),hostKey:YM,hostType:vt,serverUrl:a.unknown().optional()}).strict().transform(({hostId:e,hostKey:t,hostType:r})=>({hostId:e,hostKey:t,hostType:r}));var bf="127.0.0.1";var JD=["default-app","vscode","cursor","sublime-text","zed","windsurf","antigravity","finder","terminal","iterm2","ghostty","xcode"],Tf=a.enum(JD),XD=a.object({openDirectory:a.boolean(),openFile:a.boolean(),openFileAtLine:a.boolean()}),YD=a.object({id:Tf,label:a.string().min(1),capabilities:XD}),tO=a.object({targets:a.array(YD)}),nO=a.string().min(1),rO=a.number().int().positive().nullable(),oO=a.object({lineNumber:rO,path:nO,targetId:Tf}),iO=a.object({path:a.string().nullable()}),eI=200,aO=a.object({paths:a.array(a.string().min(1)).min(1).max(eI).transform(e=>Array.from(new Set(e)))}),sO=a.object({existence:a.record(a.string(),a.boolean())}),tI=a.enum(["darwin","linux","wsl","unknown"]),cO=a.object({hostId:a.string().min(1),connected:a.boolean(),protocolVersion:a.number().int().positive(),serverUrl:a.string(),supportsNativeFolderPicker:a.boolean(),platform:tI}),uO=a.string().min(1),nI=["codex","claudeCode"],nr=a.enum(nI),rI=["stdout","stderr"],oI=a.enum(rI),iI=["notInstalled","npmGlobal","external"],aI=a.enum(iI),sI=["install","update"],xf=a.enum(sI),cI=["exec","shell"],uI=a.enum(cI),lI=a.object({kind:xf,label:a.enum(["Install","Update"]),commandKind:uI,command:a.string().min(1)}),Sf=a.object({displayName:a.string().min(1),executableName:a.string().min(1),executablePath:a.string().min(1).nullable(),installed:a.boolean(),installSource:aI,currentVersion:a.string().min(1).nullable(),latestVersion:a.string().min(1).nullable(),npmPackageName:a.string().min(1),npmGlobalPackageVersion:a.string().min(1).nullable(),installAction:lI.nullable(),needsUpdate:a.boolean()}),lO=a.object({codex:Sf,claudeCode:Sf}),dO=a.object({provider:nr,actionKind:xf}),dI=a.object({type:a.literal("started"),provider:nr,command:a.string().min(1)}),pI=a.object({type:a.literal("output"),provider:nr,stream:oI,text:a.string()}),mI=a.object({type:a.literal("completed"),provider:nr,exitCode:a.number().int().nullable(),signal:a.string().min(1).nullable(),success:a.boolean()}),hI=a.object({type:a.literal("error"),provider:nr,message:a.string().min(1)}),pO=a.discriminatedUnion("type",[dI,pI,mI,hI]);function Ef(e){let t=e.replace(/\/$/,"");return tr(t)}var Df=26,If=256,_f=1e4,gI=256,vI=1e3,_s=["thread.start","turn.submit","thread.stop","thread.rename","thread.archive","thread.unarchive","thread.deleted","interactive.resolve","codex.inference.complete","codex.voice.transcribe","host.list_files","host.list_paths","host.list_branches","host.list_manager_templates","host.file_metadata","host.read_file","host.read_file_relative","host.write_file_relative","host.delete_file_relative","host.delete_path_relative","provider.list","provider.list_models","environment.provision","environment.destroy","workspace.status","workspace.diff","workspace.commit","workspace.squash_merge","replay.capture_list","replay.capture_get","replay.capture_delete","replay.run"],mO=a.enum(_s),hO=new Set(_s);function yI(e){return hO.has(e)}var Pf=Qm,rr=a.object({workspacePath:a.string().min(1),workspaceProvisionType:Qa}),Ut=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),fO=a.object({threadId:a.string().min(1)}),SI=a.object({workspaceContext:rr,projectId:a.string().min(1),providerId:a.string().min(1),options:Pf,instructions:a.string().min(1),dynamicTools:a.array(ph),disallowedTools:a.array(a.string()).optional(),instructionMode:Zm}),gO=SI.extend({providerThreadId:a.string().min(1)}),vO=gO.omit({options:!0}),bI=a.object({environmentId:a.string().min(1)}),vo=bI.extend({workspaceContext:rr}),yO=Ut.extend({workspaceContext:rr}),TI=Ut.merge(SI).extend({type:a.literal("thread.start"),requestId:Ye,input:a.array(Y).min(1),threadStoragePath:a.string().min(1).optional()}).strict(),xI=a.discriminatedUnion("mode",[a.object({mode:a.literal("start")}),a.object({mode:a.literal("auto"),expectedTurnId:a.string().min(1).nullable()}),a.object({mode:a.literal("steer"),expectedTurnId:a.string().min(1).nullable()})]),EI=Ut.extend({type:a.literal("turn.submit"),requestId:Ye,input:a.array(Y).min(1),options:Pf,resumeContext:vO,target:xI}).strict(),DI=Ut.extend({type:a.literal("thread.stop")}),II=Ut.extend({type:a.literal("thread.rename"),title:a.string().min(1)}),SO=yO.extend({type:a.literal("thread.archive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),bO=fO.extend({type:a.literal("thread.unarchive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),TO=Ut.extend({type:a.literal("thread.deleted")}),_I=a.object({type:a.literal("replay.capture_list")}),PI=a.object({type:a.literal("replay.capture_get"),captureId:a.string().min(1)}),xO=a.object({type:a.literal("replay.capture_delete"),captureId:a.string().min(1)}),wI=Ut.extend({type:a.literal("replay.run"),captureId:a.string().min(1),requestId:Ye,speed:dn}).strict(),EO=Ut.extend({type:a.literal("interactive.resolve"),interactionId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),resolution:ro}),CI=a.object({type:a.literal("codex.inference.complete"),model:a.string().min(1),prompt:a.string().min(1),outputSchema:Ja,timeoutMs:a.number().int().positive()}).strict(),kI=a.object({type:a.literal("codex.voice.transcribe"),model:a.string().min(1),audioBase64:a.string().min(1),mimeType:a.string().min(1),filename:a.string().min(1),prompt:a.string().nullable(),timeoutMs:a.number().int().positive()}).strict(),RI=a.object({type:a.literal("host.read_file"),path:a.string().min(1),rootPath:a.string().min(1).optional(),ref:a.string().min(1).optional()}).superRefine((e,t)=>{e.ref!==void 0&&e.rootPath===void 0&&t.addIssue({code:"custom",path:["rootPath"],message:"rootPath is required when ref is set"})}),yo=a.enum(["allow","deny"]),AI=a.object({type:a.literal("host.read_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:yo}).strict(),jI=a.object({type:a.literal("host.write_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:yo,content:a.string(),contentEncoding:a.enum(["base64","utf8"])}).strict(),$I=a.object({type:a.literal("host.delete_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:yo}).strict(),MI=a.object({type:a.literal("host.delete_path_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:yo}).strict(),DO=a.object({type:a.literal("host.file_metadata"),path:a.string().min(1),rootPath:a.string().min(1).optional()}).strict(),OI=a.object({type:a.literal("host.list_files"),path:a.string().min(1),query:a.string().max(If).optional(),limit:a.number().int().positive().max(_f)}),zI=a.enum(["file","directory"]),BI=a.object({kind:zI,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),FI=a.object({type:a.literal("host.list_paths"),path:a.string().min(1),query:a.string().max(If).optional(),limit:a.number().int().positive().max(_f),includeFiles:a.boolean(),includeDirectories:a.boolean()}).refine(e=>e.includeFiles||e.includeDirectories,{message:"At least one path kind must be included"}),LI=a.object({type:a.literal("host.list_branches"),path:a.string().min(1),query:a.string().max(gI).optional(),selectedBranch:J.optional(),limit:a.number().int().positive().max(vI)}),NI=a.object({name:Ft}),qI=a.object({type:a.literal("host.list_manager_templates")}).strict(),UI=a.object({type:a.literal("provider.list")}),WI=a.object({type:a.literal("provider.list_models"),providerId:a.string().min(1)}),IO=a.object({threadId:a.string().min(1),provisioningId:a.string().min(1)}).strict(),wf=bI.extend({type:a.literal("environment.provision"),initiator:IO.nullable()}),_O=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:J}).strict(),a.object({kind:a.literal("new"),name:J,baseBranch:J}).strict()]),PO=wf.extend({workspaceProvisionType:a.literal("unmanaged"),path:a.string().min(1),checkout:_O.optional()}),wO=a.object({sourcePath:a.string().min(1),targetPath:a.string().min(1),branchName:J,baseBranch:J.nullable(),setupTimeoutMs:a.number().int().positive()}),CO=wf.merge(wO).extend({workspaceProvisionType:a.literal("managed-worktree")}),kO=wf.extend({workspaceProvisionType:a.literal("personal"),targetPath:a.string().min(1)}),VI=a.discriminatedUnion("workspaceProvisionType",[PO,CO,kO]),HI=vo.extend({type:a.literal("environment.destroy")}),KI=vo.extend({type:a.literal("workspace.status"),mergeBaseBranch:J.optional()}),ZI=vo.extend({type:a.literal("workspace.diff"),target:Nh,maxDiffBytes:a.number().int().positive(),maxFileListBytes:a.number().int().positive()}),GI=vo.extend({type:a.literal("workspace.commit"),message:a.string().min(1)}),QI=vo.extend({type:a.literal("workspace.squash_merge"),targetBranch:J,commitMessage:a.string().min(1)}),RO=a.discriminatedUnion("type",[TI,EI,DI,II,SO,bO,TO,_I,PI,xO,wI,EO,CI,kI,OI,FI,LI,qI,DO,RI,AI,jI,$I,MI,UI,WI,HI,KI,ZI,GI,QI]),JI=a.union([RO,VI]);var fI=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative(),modifiedAtMs:a.number().nonnegative().optional()}),AO=a.object({path:a.string(),modifiedAtMs:a.number().nonnegative(),sizeBytes:a.number().int().nonnegative()}),jO=a.object({path:a.string(),hash:a.string().min(1),modifiedAtMs:a.number().nonnegative(),sizeBytes:a.number().int().nonnegative()}),$O=a.object({path:a.string(),deleted:a.boolean(),previousHash:a.string().nullable()}),MO=a.object({path:a.string(),deleted:a.boolean()}),OO=a.object({files:a.array(a.object({path:a.string(),name:a.string()})),truncated:a.boolean()}),zO=a.object({paths:a.array(BI),truncated:a.boolean()}),XI={"thread.start":a.object({providerThreadId:a.string().min(1)}),"turn.submit":a.object({appliedAs:a.enum(["new-turn","steer"])}),"thread.stop":a.object({}),"thread.rename":a.object({}),"thread.archive":a.object({}),"thread.unarchive":a.object({}),"thread.deleted":a.object({}),"replay.capture_list":fE,"replay.capture_get":ms,"replay.capture_delete":a.object({}),"replay.run":a.object({}),"interactive.resolve":a.object({}),"codex.inference.complete":a.object({model:a.string().min(1),value:Ja}),"codex.voice.transcribe":a.object({model:a.string().min(1),text:a.string()}),"host.list_files":OO,"host.list_paths":zO,"host.file_metadata":AO,"host.list_branches":Ba,"host.list_manager_templates":a.object({templates:a.array(NI),activeName:Ft}),"host.read_file":fI,"host.read_file_relative":fI,"host.write_file_relative":jO,"host.delete_file_relative":$O,"host.delete_path_relative":MO,"provider.list":a.object({providers:a.array(cn)}),"provider.list_models":a.object({models:a.array(sn),selectedOnlyModels:a.array(sn)}),"environment.provision":fh.extend({transcript:a.array(ts)}),"environment.destroy":a.object({}),"workspace.status":a.object({workspaceStatus:uo}),"workspace.diff":a.object({diff:qh}),"workspace.commit":a.object({commitSha:a.string().min(1),commitSubject:a.string().min(1)}),"workspace.squash_merge":a.object({merged:a.boolean(),commitSha:a.string().min(1),commitSubject:a.string().min(1)})},Cf=a.object({id:a.string().min(1),cursor:a.number().int().nonnegative(),command:JI}),Is=a.object({sessionId:a.string().min(1),commandId:a.string().min(1),completedAt:a.number().int().nonnegative()});function BO(e,t){return[Is.extend({type:a.literal(e),ok:a.literal(!0),result:t}),Is.extend({type:a.literal(e),ok:a.literal(!1),errorCode:a.string().min(1),errorMessage:a.string().min(1)})]}function FO(e){return a.discriminatedUnion("ok",BO(e,XI[e]))}var LO=Is.extend({type:a.string().min(1),ok:a.literal(!1),errorCode:a.literal("unknown_command"),errorMessage:a.string().min(1)}),NO=Is.extend({type:a.string().min(1),ok:a.boolean()}),qO=new Map(_s.map(e=>[e,FO(e)])),UO=a.custom(e=>{let t=NO.safeParse(e);if(!t.success)return!1;if(!yI(t.data.type))return LO.safeParse(e).success;let r=qO.get(t.data.type);return r?r.safeParse(e).success:!1});var YI=a.string().regex(/^\d+$/);var e_=a.object({threadId:a.string().min(1)}),t_=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),WO=a.object({hostId:a.string().min(1),instanceId:a.string().min(1),hostName:a.string().min(1),hostType:vt,dataDir:a.string().min(1),protocolVersion:a.literal(Df),activeThreads:a.array(e_)}),VO=a.object({hostId:a.string().min(1),hostName:a.string().min(1),hostType:vt}).strict(),HO=a.object({hostId:a.string().min(1),hostKey:a.string().min(1)}).strict(),KO=a.object({sessionId:a.string().min(1),heartbeatIntervalMs:a.number().int().positive(),leaseTimeoutMs:a.number().int().positive(),trackedThreadTargets:a.array(t_)}).strict(),ZO=a.object({sessionId:a.string().min(1),limit:YI,waitMs:YI}),GO=a.object({sessionId:a.string().min(1),threadId:a.string().min(1),projectId:a.string().min(1),path:a.string().min(1)}),QO=a.object({commands:a.array(Cf)}),n_=a.object({producerEventId:io,threadId:a.string().min(1),event:Yn}).strict(),JO=a.object({sessionId:a.string().min(1),events:a.array(n_)}),r_=a.enum(["thread_not_owned_by_host"]),o_=a.object({producerEventId:io,threadId:a.string().min(1),reason:r_}).strict(),XO=a.object({acceptedEvents:a.array(a.object({producerEventId:io,threadId:a.string().min(1),sequence:a.number().int().nonnegative()}).strict()),rejectedEvents:a.array(o_)}).strict(),YO=a.object({ok:a.literal(!0)}).strict(),i_=a.enum(ls).extract(["work-status-changed","git-refs-changed","thread-storage-changed"]),a_=a.object({environmentId:a.string().min(1),change:i_}),e2=a.object({sessionId:a.string().min(1),...a_.shape}),s_=a.object({threadId:a.string().min(1),appId:ze,path:on,value:te.nullable(),deleted:a.boolean(),version:a.string().min(1).nullable()}).strict();function c_(e,t){e.deleted&&e.version!==null&&t.addIssue({code:"custom",path:["version"],message:"version must be null for deleted app data changes"}),!e.deleted&&e.version===null&&t.addIssue({code:"custom",path:["version"],message:"version is required for non-deleted app data changes"})}var t2=s_.superRefine(c_),n2=a.object({sessionId:a.string().min(1),...s_.shape}).strict().superRefine(c_),u_=a.object({threadId:a.string().min(1),appId:ze}).strict(),r2=u_.extend({sessionId:a.string().min(1)}).strict(),E5=a.object({bufferDepth:a.number().int().nonnegative(),lastCommandCursor:a.number().int().nonnegative().nullable()}),l_=a.enum(["replaced","expired","daemon-disconnect"]),et=a.string().min(1),So=a.string().min(1),d_=a.enum(["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"]),kf=a.object({seq:a.number().int().nonnegative(),dataBase64:an}).strict(),o2=a.object({type:a.literal("terminal.open"),requestId:So,terminalId:et,threadId:a.string().min(1),environmentId:a.string().min(1),workspaceContext:rr,cols:ht,rows:ft}).strict(),i2=a.object({type:a.literal("terminal.attach"),requestId:So,terminalId:et,sinceSeq:a.number().int().nonnegative()}).strict(),a2=a.object({type:a.literal("terminal.input"),terminalId:et,dataBase64:an}).strict(),s2=a.object({type:a.literal("terminal.resize"),terminalId:et,cols:ht,rows:ft}).strict(),c2=a.object({type:a.literal("terminal.close"),terminalId:et,reason:d_}).strict(),u2=a.discriminatedUnion("type",[a.object({type:a.literal("commands-available")}).strict(),a.object({type:a.literal("session-close"),reason:l_}).strict(),o2,i2,a2,s2,c2]),l2=a.object({type:a.literal("heartbeat")}).strict(),d2=a.object({type:a.literal("terminal.opened"),requestId:So,terminalId:et,shell:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:ht,rows:ft}).strict(),p2=a.object({type:a.literal("terminal.output"),terminalId:et,chunk:kf}).strict(),m2=a.object({type:a.literal("terminal.replay"),requestId:So,terminalId:et,chunks:a.array(kf),nextSeq:a.number().int().nonnegative()}).strict(),h2=a.object({type:a.literal("terminal.exited"),terminalId:et,exitCode:a.number().int().nullable(),closeReason:d_}).strict(),f2=a.object({type:a.literal("terminal.error"),requestId:So,terminalId:et,code:a.string().min(1),message:a.string().min(1)}).strict(),g2=a.discriminatedUnion("type",[l2,d2,p2,m2,h2,f2]),v2=dh.pick({threadId:!0,providerThreadId:!0,turnId:!0,callId:!0,tool:!0,arguments:!0}).extend({sessionId:a.string().min(1)});var y2=a.object({sessionId:a.string().min(1),interaction:uh}),S2=a.discriminatedUnion("outcome",[a.object({outcome:a.literal("created"),interactionId:a.string().min(1),status:Lt}),a.object({outcome:a.literal("existing"),interactionId:a.string().min(1),status:Lt}),a.object({outcome:a.literal("rejected"),reason:a.string().min(1)})]),b2=a.object({sessionId:a.string().min(1),providerId:a.string().min(1),threadIds:a.array(a.string().min(1)).min(1),reason:a.string().min(1)}),T2=a.object({ok:a.literal(!0),interactionIds:a.array(a.string().min(1))});var x2=/^[a-zA-Z0-9_-]+$/;function bo(e={}){return{cliConfig:e.cliConfig??QD()}}function Fe(e,t){if(!x2.test(e))throw new Error(`Invalid ID from ${t}: "${e}". IDs must contain only letters, digits, hyphens, and underscores.`);return e}function tt(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function p_(e=bo()){return e.cliConfig.BB_SERVER_URL}function m_(e=bo()){return`http://${bf}:${e.cliConfig.BB_HOST_DAEMON_PORT}`}function Rf(e){let t=tt(e);if(t)return Fe(t,"--project flag");let r=tt(process.env.BB_PROJECT_ID);if(r)return Fe(r,"BB_PROJECT_ID")}function nt(e){let t=tt(e);if(t)return Fe(t,"--thread flag");let r=tt(process.env.BB_THREAD_ID);if(r)return Fe(r,"BB_THREAD_ID")}function h_(e){let t=tt(e);if(t)return Fe(t,"--environment flag")}function To(e){let t=tt(e);if(t)return{id:Fe(t,"--project flag"),source:"arg"};let r=tt(process.env.BB_PROJECT_ID);if(r)return{id:Fe(r,"BB_PROJECT_ID"),source:"env"}}function Af(e){let t=tt(e);if(t)return{id:Fe(t,"<threadId> argument"),source:"arg"};let r=tt(process.env.BB_THREAD_ID);if(r)return{id:Fe(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId> or set BB_THREAD_ID.")}function Ce(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(e)return{id:Fe(e,"<threadId> argument"),source:"arg"};if(t.self){let o=nt();if(!o)throw new Error("--self requires BB_THREAD_ID to be set.");return{id:o,source:"self"}}let r=tt(process.env.BB_THREAD_ID);if(r)return{id:Fe(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId>, use --self, or set BB_THREAD_ID.")}function Wt(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(t.self){let r=nt();if(!r)throw new Error("--self requires BB_THREAD_ID to be set.");return r}if(e)return Fe(e,"<threadId> argument");throw new Error("Provide a thread ID or use --self to target the current thread.")}function xo(e=bo()){return{projectId:Rf(),threadId:nt(),serverUrl:e.cliConfig.BB_SERVER_URL}}var D2=["low","medium","high","xhigh","max"];function R(e,t){return e.json?(console.log(JSON.stringify(t,null,2)),!0):!1}function oe(e,t,r,o){if(!o.json&&e.source==="env"){let n=t==="Project"&&e.id===Be?"-":e.id;console.error(`${t} ${n} (from ${r})`)}}function jf(e){let t=[...e.action==="commit"?["committed"]:[e.merged?"merged":"noop"]];console.log(`${e.message} [${t.join(", ")}]`)}async function St(e){if(!process.stdin.isTTY||!process.stdout.isTTY)throw new Error("Refusing destructive action without an interactive terminal. Re-run with --yes to confirm.");let t=E2({input:process.stdin,output:process.stdout});try{let o=(await t.question(`${e} [y/N] `)).trim().toLowerCase();return o==="y"||o==="yes"}finally{t.close()}}function $f(e){return e instanceof Error?e.message:String(e)}function or(e){if(e===void 0)return;let t=ee.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid reasoning level '${e}'. Expected ${Mf(D2)}.`)}function bt(e,t){return new Error(`${e}: ${$f(t)}`)}function Mf(e){return e.map(t=>`'${t}'`).join(" or ")}var Tt=class extends Error{exitCode;constructor(t,r){super(t),this.name="CliExitError",this.exitCode=r}};function w(e){return async(...t)=>{try{await e(...t)}catch(r){if(I2(r))throw r;if(r instanceof Tt){console.error(`Error: ${r.message}`),process.exit(r.exitCode);return}console.error(`Error: ${$f(r)}`),process.exit(1)}}}function I2(e){return e instanceof Error&&e.message.startsWith("process.exit:")}function ve(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function Of({environment:e,isLocalHost:t,hostName:r}){let o=e.isWorktree?"worktree":"direct",n=hh({environment:{isWorktree:e.isWorktree,workspaceProvisionType:e.workspaceProvisionType}}),i=o==="worktree"?"Worktree":t?"Working locally":"Working remotely",s=t?"local":"remote";return{modeLabel:i,hostLabel:r??null,id:e.id,location:s,mode:o,workspaceDisplayKind:n}}function _2(e){if(e===null)return[];let t=[];return e.accessibility&&t.push("macOS accessibility"),e.launchServices&&t.push("macOS launch services"),e.calendar&&t.push("macOS calendar"),e.reminders&&t.push("macOS reminders"),e.preferences!=="none"&&t.push(`macOS preferences (${e.preferences.replace("_"," ")})`),e.contacts!=="none"&&t.push(`macOS contacts (${e.contacts.replace("_"," ")})`),e.automations==="all"?t.push("macOS automation (all apps)"):e.automations!=="none"&&e.automations.bundleIds.length>0&&t.push(e.automations.bundleIds.length===1?"macOS automation (1 app)":`macOS automation (${e.automations.bundleIds.length} apps)`),t}function mn(e){let t=[];return e.network?.enabled===!0&&t.push("Network access"),e.fileSystem&&(e.fileSystem.read.length>0&&t.push(e.fileSystem.read.length===1?"Read 1 path":`Read ${e.fileSystem.read.length} paths`),e.fileSystem.write.length>0&&t.push(e.fileSystem.write.length===1?"Write 1 path":`Write ${e.fileSystem.write.length} paths`)),[...t,..._2("macos"in e?e.macos:null)]}function P2(e){return e.map(t=>{switch(t.type){case"read":return`Read ${t.path}`;case"listFiles":return t.path?`List files in ${t.path}`:"List files";case"search":return t.query?`Search for ${t.query}${t.path?` in ${t.path}`:""}`:t.path?`Search in ${t.path}`:"Search files";case"unknown":return t.command;default:return ve(t)}})}function f_(e,t){if(t===null)return null;let r=mn(t);return r.length>0?`${e}: ${r.join(", ")}`:null}function zf(e){if(!gt(e.payload))return e.payload.questions.map(t=>t.prompt);switch(e.payload.subject.kind){case"command":{let t=P2(e.payload.subject.actions).map(o=>`Action: ${o}`),r=f_("Session grant",e.payload.subject.sessionGrant);return[`Command: ${e.payload.subject.command}`,...e.payload.subject.cwd?[`Cwd: ${e.payload.subject.cwd}`]:[],...t,...r?[r]:[]]}case"file_change":{let t=f_("Session grant",e.payload.subject.sessionGrant);return[`Item: ${e.payload.subject.itemId}`,...e.payload.subject.writeScope?[`Write root: ${e.payload.subject.writeScope}`]:[],...t?[t]:[]]}case"permission_grant":{let t=mn(e.payload.subject.permissions);return[...e.payload.subject.toolName?[`Tool: ${e.payload.subject.toolName}`]:[],...t.map(r=>`Permission: ${r}`)]}default:return ve(e.payload.subject)}}function w2(e){return{network:e.network?.enabled===!0?{enabled:!0}:null,fileSystem:e.fileSystem?{read:e.fileSystem.read,write:e.fileSystem.write}:null}}function Bf(e){switch(e){case"allow_once":return"approved";case"allow_for_session":return"approved for this session";case"deny":return"denied";default:return ve(e)}}function C2(e,t){return gt(e.payload)?e.payload.subject.kind==="permission_grant"?w2(e.payload.subject.permissions):t!=="allow_for_session"?null:e.payload.subject.kind==="command"||e.payload.subject.kind==="file_change"?e.payload.subject.sessionGrant:null:null}function Ps(e,t){return t==="deny"?{decision:t}:{decision:t,grantedPermissions:C2(e,t)}}function Ff({question:e,value:t}){return e.options?.find(r=>r.value===t)?.label??t}function Lf(e){let{interaction:t,surface:r}=e;if(!gt(t.payload))return t.payload.questions[0]?.prompt??"User answer requested";if(t.payload.reason)return t.payload.reason;switch(t.payload.subject.kind){case"command":return t.payload.subject.command;case"file_change":return"File changes pending approval";case"permission_grant":break;default:return ve(t.payload.subject)}if(r==="app"){let o=mn(t.payload.subject.permissions);return o.length>0?o.join(" . "):"Review requested permissions"}return t.payload.subject.toolName??"Permission request"}function k2(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function g_(e){return k2(e)?e:null}function ir(e,t){if(typeof e=="string"){let o=e.replace(/\s+/g," ").trim();return o.length===0?null:t?.maxLength&&o.length>t.maxLength?`${o.slice(0,t.maxLength-1)}...`:o}if(Array.isArray(e)){for(let o of e){let n=ir(o,t);if(n)return n}return null}let r=g_(e);if(!r)return null;if(typeof r.message=="string"){let o=ir(r.message,t);if(o)return o}for(let o of t?.legacyKeys??["detail"]){let n=ir(r[o],t);if(n)return n}return null}var R2=75e3,A2=new Set(["arrayBuffer","blob","bytes","formData","json","text"]);function j2(e){let t=e/1e3;return Number.isInteger(t)?t===1?"1 second":`${t} seconds`:`${e} ms`}var ar=class extends Error{constructor(t){super(`BB request timed out after ${j2(t)}.`),this.name="CliRequestTimeoutError"}};function A(e){return ff(e,{fetch:$2({timeoutMs:R2})})}function $2(e){return z2(e.timeoutMs),async(t,r)=>{let o=AbortSignal.timeout(e.timeoutMs),n=r?.signal?AbortSignal.any([r.signal,o]):o,i={requestSignal:n,timeoutSignal:o,timeoutMs:e.timeoutMs};try{let s=await fetch(t,{...r,signal:n});return v_({context:i,response:s})}catch(s){throw Nf(i,s)?new ar(e.timeoutMs):s}}}async function M2(e){try{return await e.read()}catch(t){throw Nf(e.context,t)?new ar(e.context.timeoutMs):t}}function v_(e){let{context:t,response:r}=e,o;return new Proxy(r,{get(n,i){if(A2.has(i)){let s=Reflect.get(n,i,n);if(typeof s=="function")return()=>M2({context:t,read:s.bind(n)})}switch(i){case"body":return n.body===null?null:(o??=O2({context:t,stream:n.body}),o);case"clone":return()=>v_({context:t,response:n.clone()});default:{let s=Reflect.get(n,i,n);return typeof s=="function"?s.bind(n):s}}}})}function O2(e){let t=null,r=()=>(t??=e.stream.getReader(),t);return new ReadableStream({async pull(o){try{let n=await r().read();if(n.done){o.close();return}o.enqueue(n.value)}catch(n){if(Nf(e.context,n)){o.error(new ar(e.context.timeoutMs));return}o.error(n)}},cancel(o){return r().cancel(o)}})}function Nf(e,t){return e.timeoutSignal.aborted&&t===e.timeoutSignal.reason?!0:e.timeoutSignal.aborted&&e.requestSignal.reason===e.timeoutSignal.reason&&t instanceof Error&&(t.name==="AbortError"||t.name==="TimeoutError")}function z2(e){if(!Number.isFinite(e)||e<0)throw new RangeError("CLI request timeout must be a non-negative finite number.")}function B2(e,t){if(!(e instanceof TypeError))return!1;let{cause:r}=e;return!r||typeof r!="object"?!1:"code"in r&&r.code===t}var F2={legacyKeys:["detail"]};async function L2(e){let t;try{t=await e.text()}catch(i){if(i instanceof ar)throw i;t=""}let r=t.replace(/\s+/g," ").trim();if(r.length===0)return e.statusText;if(!((e.headers.get("content-type")?.includes("application/json")??!1)||r.startsWith("{")||r.startsWith("[")))return r;try{let i=JSON.parse(r);return ir(i,F2)??r}catch{return r}}async function _(e){let r=await(await N2(e)).text();return JSON.parse(r)}async function N2(e){let t;try{t=await e}catch(r){throw B2(r,"ECONNREFUSED")?new Error("Cannot connect to BB server. Ensure it is running and BB_SERVER_URL is correct."):r}if(!t.ok){let r=await L2(t);throw new Error(`HTTP ${t.status}: ${r}`)}return t}var SP=Rc(yP(),1),Iz={chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"-","mid-mid":" ",right:"","right-mid":"",middle:" "},style:{head:[],border:[],"padding-left":0,"padding-right":0}};function ie(e,t){let r=new SP.default({...Iz,head:e.head,colWidths:e.colWidths});for(let n of t)r.push(n);let o=r.toString();return e.trimTrailingWhitespace?o.split(`
96
+ `).map(n=>n.trimEnd()).join(`
97
+ `):o}function _z(e){let t=Ss.safeParse(e??"blank");if(!t.success)throw new Error("Invalid app template. Expected 'blank' or 'status'.");return t.data}function As(e){let t=Ce(e.threadId,e.options);return oe(t,"Thread","BB_THREAD_ID",e.options),t.id}function Pz(e){return e.trim().toLowerCase().replace(/[^a-z0-9_-]+/gu,"-").replace(/-+/gu,"-").replace(/^-|-$/gu,"")}function wz(e){let t=e.id??Pz(e.name),r=ze.safeParse(t);if(r.success)return r.data;throw e.id!==void 0?new Error("Invalid app id. Use letters, numbers, underscores, or hyphens."):new Error(`Could not derive a valid app id from "${e.name}". Pass --id with letters, numbers, underscores, or hyphens.`)}function Cz(e,t,r){return`${e.replace(/\/$/u,"")}/api/v1/threads/${encodeURIComponent(t)}/apps/${encodeURIComponent(r)}/`}function bP(e){return e.kind==="builtin"?e.name:"logo"}function kz(e){if(e.length===0){console.log("No apps");return}console.log(ie({head:["ID","Name","Entry","Capabilities","Icon"],colWidths:[24,24,24,24,18],trimTrailingWhitespace:!0},e.map(t=>[t.id,t.name,`${t.entry.kind}:${t.entry.path}`,t.capabilities.join(",")||"-",bP(t.icon)])))}function Rz(e){console.log(`App created: ${e.id}`),console.log(` Name: ${e.name}`),console.log(` Entry: ${e.entry.kind}:${e.entry.path}`),console.log(` Capabilities: ${e.capabilities.join(",")||"-"}`),console.log(` Icon: ${bP(e.icon)}`)}function TP(e,t){let r=e.command("app").description("Manage thread apps");r.command("new <name> [threadId]").description("Create a new app in a thread").option("--id <appId>","App id. Defaults to a slug derived from name.").option("--template <template>","App template: blank or status","blank").option("--self","Target BB_THREAD_ID explicitly").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=As({threadId:n,options:i}),c=_z(i.template),l=A(t()),u={id:wz({id:i.id,name:o}),name:o,template:c},p=await _(l.api.v1.threads[":id"].apps.$post({param:{id:s},json:u}));R(i,p)||Rz(p)})),r.command("list [threadId]").description("List apps in a thread").option("--self","Target BB_THREAD_ID explicitly").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=As({threadId:o,options:n}),s=A(t()),c=await _(s.api.v1.threads[":id"].apps.$get({param:{id:i}}));R(n,c)||kz(c)})),r.command("open <name> [threadId]").description("Print an app URL").option("--self","Target BB_THREAD_ID explicitly").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=As({threadId:n,options:i}),c=t(),l=A(c),u=await _(l.api.v1.threads[":id"].apps[":appId"].$get({param:{id:s,appId:o}})),p={threadId:s,app:u,url:Cz(c,s,u.id)};R(i,p)||console.log(p.url)})),r.command("rm <name> [threadId]").description("Remove an app from a thread").option("--yes","Skip the confirmation prompt").option("--self","Target BB_THREAD_ID explicitly").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=As({threadId:n,options:i}),c=A(t()),l=await _(c.api.v1.threads[":id"].apps[":appId"].$get({param:{id:s,appId:o}}));if(!i.yes&&!await St(`Remove app "${l.name}" from thread ${s}? This cannot be undone.`)){console.log(`App ${o} removal cancelled`);return}await _(c.api.v1.threads[":id"].apps[":appId"].$delete({param:{id:s,appId:o}})),!R(i,{ok:!0,threadId:s,appId:o})&&console.log(`App ${o} removed`)}))}function xP(e,t){let r=e.command("environment").description("Inspect and operate on first-class environments");r.command("show <id>").description("Show environment details").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=await _(i.api.v1.environments[":id"].$get({param:{id:o}}));R(n,s)||(console.log(`Environment: ${s.id}`),console.log(` Project: ${s.projectId}`),console.log(` Host: ${s.hostId}`),console.log(` Status: ${s.status}`),s.path&&console.log(` Path: ${s.path}`),console.log(` Managed: ${s.managed}`),console.log(` Provision type: ${s.workspaceProvisionType}`),s.branchName&&console.log(` Branch: ${s.branchName}`),s.defaultBranch&&console.log(` Default branch: ${s.defaultBranch}`),s.mergeBaseBranch&&console.log(` Merge base: ${s.mergeBaseBranch}`),console.log(` Git repo: ${s.isGitRepo}`),console.log(` Worktree: ${s.isWorktree}`),console.log(` Created: ${new Date(s.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(s.updatedAt).toLocaleString()}`))})),r.command("update <id>").description("Update environment metadata").option("--merge-base-branch <branch>","Set the merge-base branch override").option("--clear-merge-base-branch","Clear the merge-base branch override").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t());if(n.mergeBaseBranch&&n.clearMergeBaseBranch)throw new Error("Cannot combine --merge-base-branch with --clear-merge-base-branch.");if(!n.mergeBaseBranch&&!n.clearMergeBaseBranch)throw new Error("No changes requested. Provide --merge-base-branch or --clear-merge-base-branch.");let s=await _(i.api.v1.environments[":id"].$patch({param:{id:o},json:{mergeBaseBranch:n.clearMergeBaseBranch?null:n.mergeBaseBranch??null}}));R(n,s)||(console.log(`Environment ${s.id} updated`),console.log(s.mergeBaseBranch?`Merge base branch: ${s.mergeBaseBranch}`:"Merge base branch cleared"))})),r.command("commit <id>").description("Commit changes in an environment").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s;try{s=await _(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"commit"}}))}catch(c){throw bt(`Failed to commit in environment ${o}`,c)}R(n,s)||jf(s)})),r.command("squash-merge <id>").description("Squash-merge changes in an environment").requiredOption("--merge-base-branch <branch>","Merge-base branch").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=await _(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"squash_merge",options:{mergeBaseBranch:n.mergeBaseBranch}}}));R(n,s)||jf(s)}))}var Vg=Rc(mC(),1);var Ug=[{id:"agentThreadMessage",body:'[bb message from thread:{{senderThreadId}}; reply with `bb thread tell {{senderThreadId}} "<your response>"`]\n\n{{messageText}}',fileName:"agent-thread-message.md",kind:"prompt",title:"Agent Thread Message",summary:"Wraps a bb CLI message from one agent thread to another.",intent:"Tell the receiving agent which thread sent the message and how to reply.",editingNotes:"Keep the response command in the prefix so standard agent instructions do not need special cross-thread message guidance.",variables:{senderThreadId:"The thread ID that sent the message.",messageText:"The original message text sent by the agent."}},{id:"bbGuideApp",body:`Apps
98
+
99
+ Apps are the supported way to build dashboards, control panels, and other
100
+ interactive surfaces inside thread storage. A manager's primary status surface
101
+ is the built-in \`status\` app. Keep that app current instead of creating legacy
102
+ top-level status files.
103
+
104
+ Storage layout:
105
+
106
+ \`\`\`text
107
+ $BB_THREAD_STORAGE/
108
+ apps/
109
+ status/
110
+ manifest.json
111
+ assets/
112
+ index.html
113
+ data/
114
+ state.json
115
+ \`\`\`
116
+
117
+ Each app is rooted at \`apps/<id>/\`. The manifest lives at
118
+ \`apps/<id>/manifest.json\`, browser files live under \`apps/<id>/assets/\`, and
119
+ durable JSON state lives under \`apps/<id>/data/\`. The \`status\` app should keep
120
+ its primary shared state in \`apps/status/data/state.json\`.
121
+
122
+ Manifest:
123
+
124
+ \`\`\`json
125
+ {
126
+ "manifestVersion": 1,
127
+ "id": "status",
128
+ "name": "Status",
129
+ "icon": "ListTodo",
130
+ "entry": "index.html",
131
+ "contributions": ["thread.app"],
132
+ "capabilities": ["data", "message"]
133
+ }
134
+ \`\`\`
135
+
136
+ \`id\` uses letters, numbers, underscores, and hyphens. \`entry\` is relative to
137
+ \`assets/\`. HTML entries load in an app iframe and receive the \`window.bb\`
138
+ bridge according to \`capabilities\`; Markdown entries render as static documents
139
+ and do not receive \`window.bb\`. \`capabilities\` controls which \`window.bb\`
140
+ helpers are injected for HTML entries: \`data\` enables \`window.bb.data\`, and
141
+ \`message\` enables \`window.bb.message\`.
142
+
143
+ The served app URL is flat: \`/api/v1/threads/<thread-id>/apps/<id>/<file>\`
144
+ maps to \`apps/<id>/assets/<file>\` on disk. HTML should use flat relative refs
145
+ like \`./index-abc.js\`, not \`./assets/index-abc.js\`. For Vite builds, set
146
+ \`build.assetsDir = ""\` so emitted files sit alongside \`index.html\`.
147
+
148
+ The icon is optional and uses a built-in icon name. Icon resolution order is:
149
+
150
+ 1. \`manifest.icon\`, when present, as a built-in icon.
151
+ 2. A custom top-level \`logo.svg\`, \`logo.png\`, \`logo.jpg\`, or \`logo.jpeg\` in the
152
+ app root, up to 1 MB.
153
+ 3. The built-in \`GridView\` fallback.
154
+
155
+ CLI:
156
+
157
+ \`\`\`bash
158
+ bb app list --self
159
+ bb app new "Review Board" --id review-board --template blank --self
160
+ bb app new "Status" --id status --template status --self
161
+ bb app open status --self
162
+ bb app rm review-board --self --yes
163
+ \`\`\`
164
+
165
+ Pass a thread id instead of \`--self\` to target another thread. \`bb app open\`
166
+ prints the app URL. \`--json\` is available for scripts.
167
+
168
+ Agent writes:
169
+
170
+ Write app data directly to \`apps/<id>/data/<path>\` using a temp file in the
171
+ same directory and then \`mv\` into place. Same-directory rename is atomic on
172
+ macOS and Linux, and bb broadcasts the committed app-data change.
173
+
174
+ \`\`\`bash
175
+ dir="$BB_THREAD_STORAGE/apps/status/data"
176
+ mkdir -p "$dir"
177
+ tmp=$(mktemp "$dir/.state.XXXXXX")
178
+ printf '%s\\n' '{"tasks":[],"updatedAt":"2026-05-28T00:00:00Z"}' > "$tmp" &&
179
+ mv "$tmp" "$dir/state.json"
180
+ \`\`\`
181
+
182
+ Data paths are relative to the app's \`data/\` directory. They must not start or
183
+ end with \`/\`, must not contain backslashes, dot-prefixed segments, \`.\` or \`..\`,
184
+ and may be nested up to eight path segments. Each segment may use letters,
185
+ numbers, dots, underscores, and hyphens.
186
+
187
+ Browser API:
188
+
189
+ \`\`\`ts
190
+ window.bb.appId
191
+ await window.bb.data?.read("state.json")
192
+ await window.bb.data?.write("state.json", { tasks: [] })
193
+ await window.bb.data?.delete("state.json")
194
+ const entries = await window.bb.data?.list("")
195
+ const unsubscribe = window.bb.data?.onChange("", (event) => {
196
+ console.log(event.path, event.value, event.deleted)
197
+ })
198
+ await window.bb.message?.("Please review the current blockers.")
199
+ \`\`\`
200
+
201
+ \`window.bb.data\` reads and writes JSON values. \`onChange(prefix, callback)\`
202
+ matches a single data file when \`prefix\` equals that path and matches a subtree
203
+ when the changed path is below \`prefix + "/"\`; \`""\` matches all app data.
204
+ Registering a listener immediately replays existing matching data, and bb
205
+ replays again after reconnects or app-data resync hints. Later filesystem
206
+ writes, browser writes, and deletes are delivered after that replay.
207
+ \`window.bb.message(text)\` sends a normal follow-up message to the thread that
208
+ owns the app.
209
+
210
+ Minimal status app pattern:
211
+
212
+ \`\`\`html
213
+ <main>
214
+ <h1>Current work</h1>
215
+ <ul id="tasks"></ul>
216
+ </main>
217
+ <script>
218
+ const list = document.querySelector("#tasks");
219
+
220
+ function render(state) {
221
+ const tasks = state?.tasks ?? [];
222
+ list.replaceChildren(
223
+ ...tasks.map((task) => {
224
+ const item = document.createElement("li");
225
+ item.textContent = \`\${task.title} - \${task.state}\`;
226
+ return item;
227
+ }),
228
+ );
229
+ }
230
+
231
+ window.bb.data?.read("state.json").then(render);
232
+ window.bb.data?.onChange("state.json", (event) => render(event.value));
233
+ </script>
234
+ \`\`\`
235
+
236
+ Styling:
237
+
238
+ Make app UI quiet, dense, and consistent with bb unless the user asks for a
239
+ different direction. Use Tailwind for layout utilities if helpful, and use the
240
+ bb-style tokens below for colors, fonts, borders, radius, and shadows. Apps
241
+ render in iframes, so external resources such as Google Fonts, Tailwind CDN,
242
+ remote images, and stylesheets load normally.
243
+
244
+ \`\`\`html
245
+ <script src="https://cdn.tailwindcss.com"></script>
246
+ <link rel="preconnect" href="https://fonts.googleapis.com">
247
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
248
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
249
+ <style>
250
+ :root {
251
+ color-scheme: light;
252
+ --background: oklch(0.9551 0 0);
253
+ --foreground: oklch(0.3211 0 0);
254
+ --card: oklch(0.9702 0 0);
255
+ --muted: oklch(0.8853 0 0);
256
+ --muted-foreground: oklch(0.5103 0 0);
257
+ --border: oklch(0.8576 0 0);
258
+ --accent: oklch(0.9 0 0);
259
+ --success: oklch(0.7 0.15 155);
260
+ --warning: oklch(0.7 0.16 50);
261
+ --destructive: oklch(0.5594 0.19 25.8625);
262
+ --radius: 0.5rem;
263
+ --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
264
+ --font-mono: "Fira Code", ui-monospace, SFMono-Regular, monospace;
265
+ }
266
+ @media (prefers-color-scheme: dark) {
267
+ :root {
268
+ color-scheme: dark;
269
+ --background: oklch(0.2178 0 0);
270
+ --foreground: oklch(0.8853 0 0);
271
+ --card: oklch(0.2435 0 0);
272
+ --muted: oklch(0.31 0 0);
273
+ --muted-foreground: oklch(0.7058 0 0);
274
+ --border: oklch(0.34 0 0);
275
+ --accent: oklch(0.32 0 0);
276
+ }
277
+ }
278
+ body {
279
+ margin: 0;
280
+ background: var(--background);
281
+ color: var(--foreground);
282
+ font-family: var(--font-sans);
283
+ font-size: 13px;
284
+ }
285
+ .panel {
286
+ border: 1px solid var(--border);
287
+ border-radius: var(--radius);
288
+ background: var(--card);
289
+ }
290
+ </style>
291
+ \`\`\`
292
+
293
+ Keep one canonical app for each concept. For manager progress, update the
294
+ \`status\` app instead of creating parallel views. Use additional apps only when
295
+ they are distinct tools or dashboards.
94
296
 
95
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let u=s[1];if(t===s[0]){i(s);continue}if(e.external){let c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&e.reused==="ref"){i(s);continue}}}function jt(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let u=e.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,c={...l},p=u.ref;if(u.ref=null,p){o(p);let m=e.seen.get(p),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,c),s._zod.parent===p)for(let y in l)y==="$ref"||y==="allOf"||y in c||delete l[y];if(h.$ref&&m.def)for(let y in l)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(l[y])===JSON.stringify(m.def[y])&&delete l[y]}let d=s._zod.parent;if(d&&d!==p){o(d);let m=e.seen.get(d);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:u.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let s of e.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ln(t,"input",e.processors),output:Ln(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function me(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return me(o.element,r);if(o.type==="set")return me(o.valueType,r);if(o.type==="lazy")return me(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return me(o.innerType,r);if(o.type==="intersection")return me(o.left,r)||me(o.right,r);if(o.type==="record"||o.type==="map")return me(o.keyType,r)||me(o.valueType,r);if(o.type==="pipe")return me(o.in,r)||me(o.out,r);if(o.type==="object"){for(let n in o.shape)if(me(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(me(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(me(n,r))return!0;return!!(o.rest&&me(o.rest,r))}return!1}var Zd=(e,t={})=>r=>{let o=Rt({...r,processors:t});return U(e,o),At(o,e),jt(o,e)},Ln=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=Rt({...n??{},target:i,io:t,processors:r});return U(e,s),At(s,e),jt(s,e)};var d0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Gd=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=d0[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),c&&(n.contentEncoding=c),l&&l.size>0){let p=[...l];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Qd=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:p}=e._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof s=="number"&&(n.maximum=s,typeof c=="number"&&t.target!=="draft-04"&&(c<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},Jd=(e,t,r,o)=>{r.type="boolean"},Xd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Yd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ep=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},tp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},np=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},rp=(e,t,r,o)=>{r.not={}},op=(e,t,r,o)=>{},ip=(e,t,r,o)=>{},ap=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},sp=(e,t,r,o)=>{let n=e._zod.def,i=Dr(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},up=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let s of n.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},cp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},lp=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},dp=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=e._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(n,i)},pp=(e,t,r,o)=>{r.type="boolean"},mp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},hp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},fp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},gp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},vp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},yp=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(n.minItems=s),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=U(i.element,t,{...o,path:[...o.path,"items"]})},Sp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let s=i.shape;for(let c in s)n.properties[c]=U(s[c],t,{...o,path:[...o.path,"properties",c]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(c=>{let p=i.shape[c]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=U(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Gi=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((u,l)=>U(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},bp=(e,t,r,o)=>{let n=e._zod.def,i=U(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=U(n.right,t,{...o,path:[...o.path,"allOf",1]}),u=c=>"allOf"in c&&Object.keys(c).length===1,l=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=l},Tp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>U(m,t,{...o,path:[...o.path,s,h]})),c=i.rest?U(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:l},c&&n.items.anyOf.push(c),n.minItems=l.length,c||(n.maxItems=l.length)):(n.items=l,c&&(n.additionalItems=c));let{minimum:p,maximum:d}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof d=="number"&&(n.maxItems=d)},xp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let p=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=U(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=U(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=s._zod.values;if(c){let p=[...c].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p)}},Ep=(e,t,r,o)=>{let n=e._zod.def,i=U(n.innerType,t,o),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Dp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Ip=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},_p=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},wp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},Pp=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;U(i,t,o);let s=t.seen.get(e);s.ref=i},Cp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},kp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Qi=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Rp=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},Zi={string:Gd,number:Qd,boolean:Jd,bigint:Xd,symbol:Yd,null:ep,undefined:tp,void:np,never:rp,any:op,unknown:ip,date:ap,enum:sp,literal:up,nan:cp,template_literal:lp,file:dp,success:pp,custom:mp,function:hp,transform:fp,map:gp,set:vp,array:yp,object:Sp,union:Gi,intersection:bp,tuple:Tp,record:xp,nullable:Ep,nonoptional:Dp,default:Ip,prefault:_p,catch:wp,pipe:Pp,readonly:Cp,promise:kp,optional:Qi,lazy:Rp};function Ji(e,t){if("_idmap"in e){let o=e,n=Rt({...t,processors:Zi}),i={};for(let l of o._idmap.entries()){let[c,p]=l;U(p,n)}let s={},u={registry:o,uri:t?.uri,defs:i};n.external=u;for(let l of o._idmap.entries()){let[c,p]=l;At(n,p),s[c]=jt(n,p)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=Rt({...t,processors:Zi});return U(e,r),At(r,e),jt(r,e)}var Xi=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Rt({processors:Zi,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return U(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),At(this.ctx,t);let o=jt(this.ctx,t),{"~standard":n,...i}=o;return i}};var Qy={};var qr={};it(qr,{ZodAny:()=>tm,ZodArray:()=>im,ZodBase64:()=>Sa,ZodBase64URL:()=>ba,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>Ea,ZodBoolean:()=>Hn,ZodCIDRv4:()=>va,ZodCIDRv6:()=>ya,ZodCUID:()=>la,ZodCUID2:()=>da,ZodCatch:()=>wm,ZodCodec:()=>Ra,ZodCustom:()=>Yr,ZodCustomStringFormat:()=>Vn,ZodDate:()=>Zr,ZodDefault:()=>Tm,ZodDiscriminatedUnion:()=>sm,ZodE164:()=>Ta,ZodEmail:()=>sa,ZodEmoji:()=>ua,ZodEnum:()=>qn,ZodExactOptional:()=>ym,ZodFile:()=>gm,ZodFunction:()=>Mm,ZodGUID:()=>Ur,ZodIPv4:()=>fa,ZodIPv6:()=>ga,ZodIntersection:()=>um,ZodJWT:()=>xa,ZodKSUID:()=>ha,ZodLazy:()=>jm,ZodLiteral:()=>fm,ZodMAC:()=>Zp,ZodMap:()=>mm,ZodNaN:()=>Cm,ZodNanoID:()=>ca,ZodNever:()=>rm,ZodNonOptional:()=>Ca,ZodNull:()=>Yp,ZodNullable:()=>bm,ZodNumber:()=>Wn,ZodNumberFormat:()=>Xt,ZodObject:()=>Qr,ZodOptional:()=>Pa,ZodPipe:()=>ka,ZodPrefault:()=>Em,ZodPromise:()=>Om,ZodReadonly:()=>km,ZodRecord:()=>Xr,ZodSet:()=>hm,ZodString:()=>Un,ZodStringFormat:()=>W,ZodSuccess:()=>_m,ZodSymbol:()=>Jp,ZodTemplateLiteral:()=>Am,ZodTransform:()=>vm,ZodTuple:()=>lm,ZodType:()=>z,ZodULID:()=>pa,ZodURL:()=>Kr,ZodUUID:()=>Ge,ZodUndefined:()=>Xp,ZodUnion:()=>Jr,ZodUnknown:()=>nm,ZodVoid:()=>om,ZodXID:()=>ma,ZodXor:()=>am,_ZodString:()=>aa,_default:()=>xm,_function:()=>rb,any:()=>OS,array:()=>Gr,base64:()=>yS,base64url:()=>SS,bigint:()=>kS,boolean:()=>Qp,catch:()=>Pm,check:()=>ob,cidrv4:()=>gS,cidrv6:()=>vS,codec:()=>eb,cuid:()=>uS,cuid2:()=>cS,custom:()=>ib,date:()=>zS,describe:()=>ab,discriminatedUnion:()=>US,e164:()=>bS,email:()=>Xy,emoji:()=>aS,enum:()=>_a,exactOptional:()=>Sm,file:()=>QS,float32:()=>_S,float64:()=>wS,function:()=>rb,guid:()=>Yy,hash:()=>IS,hex:()=>DS,hostname:()=>ES,httpUrl:()=>iS,instanceof:()=>ub,int:()=>ia,int32:()=>PS,int64:()=>RS,intersection:()=>cm,ipv4:()=>mS,ipv6:()=>fS,json:()=>lb,jwt:()=>TS,keyof:()=>FS,ksuid:()=>pS,lazy:()=>$m,literal:()=>GS,looseObject:()=>NS,looseRecord:()=>WS,mac:()=>hS,map:()=>HS,meta:()=>sb,nan:()=>YS,nanoid:()=>sS,nativeEnum:()=>ZS,never:()=>Da,nonoptional:()=>Im,null:()=>em,nullable:()=>Wr,nullish:()=>JS,number:()=>Gp,object:()=>BS,optional:()=>Vr,partialRecord:()=>VS,pipe:()=>Hr,prefault:()=>Dm,preprocess:()=>db,promise:()=>nb,readonly:()=>Rm,record:()=>pm,refine:()=>zm,set:()=>KS,strictObject:()=>LS,string:()=>oa,stringFormat:()=>xS,stringbool:()=>cb,success:()=>XS,superRefine:()=>Fm,symbol:()=>jS,templateLiteral:()=>tb,transform:()=>wa,tuple:()=>dm,uint32:()=>CS,uint64:()=>AS,ulid:()=>lS,undefined:()=>$S,union:()=>Ia,unknown:()=>Jt,url:()=>oS,uuid:()=>eS,uuidv4:()=>tS,uuidv6:()=>nS,uuidv7:()=>rS,void:()=>MS,xid:()=>dS,xor:()=>qS});var Yi={};it(Yi,{endsWith:()=>An,gt:()=>Ke,gte:()=>pe,includes:()=>kn,length:()=>Qt,lowercase:()=>Pn,lt:()=>He,lte:()=>we,maxLength:()=>Gt,maxSize:()=>kt,mime:()=>jn,minLength:()=>ut,minSize:()=>Ze,multipleOf:()=>Ct,negative:()=>Vi,nonnegative:()=>Hi,nonpositive:()=>Wi,normalize:()=>$n,overwrite:()=>Le,positive:()=>Ui,property:()=>Ki,regex:()=>wn,size:()=>Zt,slugify:()=>Fn,startsWith:()=>Rn,toLowerCase:()=>Mn,toUpperCase:()=>zn,trim:()=>On,uppercase:()=>Cn});var Nn={};it(Nn,{ZodISODate:()=>ta,ZodISODateTime:()=>ea,ZodISODuration:()=>ra,ZodISOTime:()=>na,date:()=>jp,datetime:()=>Ap,duration:()=>Op,time:()=>$p});var ea=f("ZodISODateTime",(e,t)=>{cl.init(e,t),W.init(e,t)});function Ap(e){return md(ea,e)}var ta=f("ZodISODate",(e,t)=>{ll.init(e,t),W.init(e,t)});function jp(e){return hd(ta,e)}var na=f("ZodISOTime",(e,t)=>{dl.init(e,t),W.init(e,t)});function $p(e){return fd(na,e)}var ra=f("ZodISODuration",(e,t)=>{pl.init(e,t),W.init(e,t)});function Op(e){return gd(ra,e)}var Jy=(e,t)=>{Cr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Rr(e,r)},flatten:{value:r=>kr(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,yn,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,yn,2)}},isEmpty:{get(){return e.issues.length===0}}})},m0=f("ZodError",Jy),Te=f("ZodError",Jy,{Parent:Error});var Mp=Tn(Te),zp=xn(Te),Fp=En(Te),Bp=Dn(Te),Lp=Jo(Te),Np=Xo(Te),qp=Yo(Te),Up=ei(Te),Vp=ti(Te),Wp=ni(Te),Hp=ri(Te),Kp=oi(Te);var z=f("ZodType",(e,t)=>($.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ln(e,"input"),output:Ln(e,"output")}}),e.toJSONSchema=Zd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(T.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>de(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>Mp(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Fp(e,r,o),e.parseAsync=async(r,o)=>zp(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Bp(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Lp(e,r,o),e.decode=(r,o)=>Np(e,r,o),e.encodeAsync=async(r,o)=>qp(e,r,o),e.decodeAsync=async(r,o)=>Up(e,r,o),e.safeEncode=(r,o)=>Vp(e,r,o),e.safeDecode=(r,o)=>Wp(e,r,o),e.safeEncodeAsync=async(r,o)=>Hp(e,r,o),e.safeDecodeAsync=async(r,o)=>Kp(e,r,o),e.refine=(r,o)=>e.check(zm(r,o)),e.superRefine=r=>e.check(Fm(r)),e.overwrite=r=>e.check(Le(r)),e.optional=()=>Vr(e),e.exactOptional=()=>Sm(e),e.nullable=()=>Wr(e),e.nullish=()=>Vr(Wr(e)),e.nonoptional=r=>Im(e,r),e.array=()=>Gr(e),e.or=r=>Ia([e,r]),e.and=r=>cm(e,r),e.transform=r=>Hr(e,wa(r)),e.default=r=>xm(e,r),e.prefault=r=>Dm(e,r),e.catch=r=>Pm(e,r),e.pipe=r=>Hr(e,r),e.readonly=()=>Rm(e),e.describe=r=>{let o=e.clone();return te.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return te.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return te.get(e);let o=e.clone();return te.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),aa=f("_ZodString",(e,t)=>{Kt.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Gd(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(wn(...o)),e.includes=(...o)=>e.check(kn(...o)),e.startsWith=(...o)=>e.check(Rn(...o)),e.endsWith=(...o)=>e.check(An(...o)),e.min=(...o)=>e.check(ut(...o)),e.max=(...o)=>e.check(Gt(...o)),e.length=(...o)=>e.check(Qt(...o)),e.nonempty=(...o)=>e.check(ut(1,...o)),e.lowercase=o=>e.check(Pn(o)),e.uppercase=o=>e.check(Cn(o)),e.trim=()=>e.check(On()),e.normalize=(...o)=>e.check($n(...o)),e.toLowerCase=()=>e.check(Mn()),e.toUpperCase=()=>e.check(zn()),e.slugify=()=>e.check(Fn())}),Un=f("ZodString",(e,t)=>{Kt.init(e,t),aa.init(e,t),e.email=r=>e.check(Ei(sa,r)),e.url=r=>e.check(Nr(Kr,r)),e.jwt=r=>e.check(qi(xa,r)),e.emoji=r=>e.check(Pi(ua,r)),e.guid=r=>e.check(Lr(Ur,r)),e.uuid=r=>e.check(Di(Ge,r)),e.uuidv4=r=>e.check(Ii(Ge,r)),e.uuidv6=r=>e.check(_i(Ge,r)),e.uuidv7=r=>e.check(wi(Ge,r)),e.nanoid=r=>e.check(Ci(ca,r)),e.guid=r=>e.check(Lr(Ur,r)),e.cuid=r=>e.check(ki(la,r)),e.cuid2=r=>e.check(Ri(da,r)),e.ulid=r=>e.check(Ai(pa,r)),e.base64=r=>e.check(Bi(Sa,r)),e.base64url=r=>e.check(Li(ba,r)),e.xid=r=>e.check(ji(ma,r)),e.ksuid=r=>e.check($i(ha,r)),e.ipv4=r=>e.check(Oi(fa,r)),e.ipv6=r=>e.check(Mi(ga,r)),e.cidrv4=r=>e.check(zi(va,r)),e.cidrv6=r=>e.check(Fi(ya,r)),e.e164=r=>e.check(Ni(Ta,r)),e.datetime=r=>e.check(Ap(r)),e.date=r=>e.check(jp(r)),e.time=r=>e.check($p(r)),e.duration=r=>e.check(Op(r))});function oa(e){return cd(Un,e)}var W=f("ZodStringFormat",(e,t)=>{V.init(e,t),aa.init(e,t)}),sa=f("ZodEmail",(e,t)=>{el.init(e,t),W.init(e,t)});function Xy(e){return Ei(sa,e)}var Ur=f("ZodGUID",(e,t)=>{Xc.init(e,t),W.init(e,t)});function Yy(e){return Lr(Ur,e)}var Ge=f("ZodUUID",(e,t)=>{Yc.init(e,t),W.init(e,t)});function eS(e){return Di(Ge,e)}function tS(e){return Ii(Ge,e)}function nS(e){return _i(Ge,e)}function rS(e){return wi(Ge,e)}var Kr=f("ZodURL",(e,t)=>{tl.init(e,t),W.init(e,t)});function oS(e){return Nr(Kr,e)}function iS(e){return Nr(Kr,{protocol:/^https?$/,hostname:je.domain,...T.normalizeParams(e)})}var ua=f("ZodEmoji",(e,t)=>{nl.init(e,t),W.init(e,t)});function aS(e){return Pi(ua,e)}var ca=f("ZodNanoID",(e,t)=>{rl.init(e,t),W.init(e,t)});function sS(e){return Ci(ca,e)}var la=f("ZodCUID",(e,t)=>{ol.init(e,t),W.init(e,t)});function uS(e){return ki(la,e)}var da=f("ZodCUID2",(e,t)=>{il.init(e,t),W.init(e,t)});function cS(e){return Ri(da,e)}var pa=f("ZodULID",(e,t)=>{al.init(e,t),W.init(e,t)});function lS(e){return Ai(pa,e)}var ma=f("ZodXID",(e,t)=>{sl.init(e,t),W.init(e,t)});function dS(e){return ji(ma,e)}var ha=f("ZodKSUID",(e,t)=>{ul.init(e,t),W.init(e,t)});function pS(e){return $i(ha,e)}var fa=f("ZodIPv4",(e,t)=>{ml.init(e,t),W.init(e,t)});function mS(e){return Oi(fa,e)}var Zp=f("ZodMAC",(e,t)=>{fl.init(e,t),W.init(e,t)});function hS(e){return dd(Zp,e)}var ga=f("ZodIPv6",(e,t)=>{hl.init(e,t),W.init(e,t)});function fS(e){return Mi(ga,e)}var va=f("ZodCIDRv4",(e,t)=>{gl.init(e,t),W.init(e,t)});function gS(e){return zi(va,e)}var ya=f("ZodCIDRv6",(e,t)=>{vl.init(e,t),W.init(e,t)});function vS(e){return Fi(ya,e)}var Sa=f("ZodBase64",(e,t)=>{Sl.init(e,t),W.init(e,t)});function yS(e){return Bi(Sa,e)}var ba=f("ZodBase64URL",(e,t)=>{bl.init(e,t),W.init(e,t)});function SS(e){return Li(ba,e)}var Ta=f("ZodE164",(e,t)=>{Tl.init(e,t),W.init(e,t)});function bS(e){return Ni(Ta,e)}var xa=f("ZodJWT",(e,t)=>{xl.init(e,t),W.init(e,t)});function TS(e){return qi(xa,e)}var Vn=f("ZodCustomStringFormat",(e,t)=>{El.init(e,t),W.init(e,t)});function xS(e,t,r={}){return Bn(Vn,e,t,r)}function ES(e){return Bn(Vn,"hostname",je.hostname,e)}function DS(e){return Bn(Vn,"hex",je.hex,e)}function IS(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=je[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Bn(Vn,o,n,t)}var Wn=f("ZodNumber",(e,t)=>{hi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Qd(e,o,n,i),e.gt=(o,n)=>e.check(Ke(o,n)),e.gte=(o,n)=>e.check(pe(o,n)),e.min=(o,n)=>e.check(pe(o,n)),e.lt=(o,n)=>e.check(He(o,n)),e.lte=(o,n)=>e.check(we(o,n)),e.max=(o,n)=>e.check(we(o,n)),e.int=o=>e.check(ia(o)),e.safe=o=>e.check(ia(o)),e.positive=o=>e.check(Ke(0,o)),e.nonnegative=o=>e.check(pe(0,o)),e.negative=o=>e.check(He(0,o)),e.nonpositive=o=>e.check(we(0,o)),e.multipleOf=(o,n)=>e.check(Ct(o,n)),e.step=(o,n)=>e.check(Ct(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Gp(e){return vd(Wn,e)}var Xt=f("ZodNumberFormat",(e,t)=>{Dl.init(e,t),Wn.init(e,t)});function ia(e){return Sd(Xt,e)}function _S(e){return bd(Xt,e)}function wS(e){return Td(Xt,e)}function PS(e){return xd(Xt,e)}function CS(e){return Ed(Xt,e)}var Hn=f("ZodBoolean",(e,t)=>{Or.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jd(e,r,o,n)});function Qp(e){return Dd(Hn,e)}var Kn=f("ZodBigInt",(e,t)=>{fi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Xd(e,o,n,i),e.gte=(o,n)=>e.check(pe(o,n)),e.min=(o,n)=>e.check(pe(o,n)),e.gt=(o,n)=>e.check(Ke(o,n)),e.gte=(o,n)=>e.check(pe(o,n)),e.min=(o,n)=>e.check(pe(o,n)),e.lt=(o,n)=>e.check(He(o,n)),e.lte=(o,n)=>e.check(we(o,n)),e.max=(o,n)=>e.check(we(o,n)),e.positive=o=>e.check(Ke(BigInt(0),o)),e.negative=o=>e.check(He(BigInt(0),o)),e.nonpositive=o=>e.check(we(BigInt(0),o)),e.nonnegative=o=>e.check(pe(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Ct(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function kS(e){return _d(Kn,e)}var Ea=f("ZodBigIntFormat",(e,t)=>{Il.init(e,t),Kn.init(e,t)});function RS(e){return Pd(Ea,e)}function AS(e){return Cd(Ea,e)}var Jp=f("ZodSymbol",(e,t)=>{_l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yd(e,r,o,n)});function jS(e){return kd(Jp,e)}var Xp=f("ZodUndefined",(e,t)=>{wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>tp(e,r,o,n)});function $S(e){return Rd(Xp,e)}var Yp=f("ZodNull",(e,t)=>{Pl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ep(e,r,o,n)});function em(e){return Ad(Yp,e)}var tm=f("ZodAny",(e,t)=>{Cl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>op(e,r,o,n)});function OS(){return jd(tm)}var nm=f("ZodUnknown",(e,t)=>{kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ip(e,r,o,n)});function Jt(){return $d(nm)}var rm=f("ZodNever",(e,t)=>{Rl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rp(e,r,o,n)});function Da(e){return Od(rm,e)}var om=f("ZodVoid",(e,t)=>{Al.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>np(e,r,o,n)});function MS(e){return Md(om,e)}var Zr=f("ZodDate",(e,t)=>{jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ap(e,o,n,i),e.min=(o,n)=>e.check(pe(o,n)),e.max=(o,n)=>e.check(we(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function zS(e){return zd(Zr,e)}var im=f("ZodArray",(e,t)=>{$l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yp(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(ut(r,o)),e.nonempty=r=>e.check(ut(1,r)),e.max=(r,o)=>e.check(Gt(r,o)),e.length=(r,o)=>e.check(Qt(r,o)),e.unwrap=()=>e.element});function Gr(e,t){return Ld(im,e,t)}function FS(e){let t=e._zod.def.shape;return _a(Object.keys(t))}var Qr=f("ZodObject",(e,t)=>{Ol.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sp(e,r,o,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>_a(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Jt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Jt()}),e.strict=()=>e.clone({...e._zod.def,catchall:Da()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>T.extend(e,r),e.safeExtend=r=>T.safeExtend(e,r),e.merge=r=>T.merge(e,r),e.pick=r=>T.pick(e,r),e.omit=r=>T.omit(e,r),e.partial=(...r)=>T.partial(Pa,e,r[0]),e.required=(...r)=>T.required(Ca,e,r[0])});function BS(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Qr(r)}function LS(e,t){return new Qr({type:"object",shape:e,catchall:Da(),...T.normalizeParams(t)})}function NS(e,t){return new Qr({type:"object",shape:e,catchall:Jt(),...T.normalizeParams(t)})}var Jr=f("ZodUnion",(e,t)=>{Mr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gi(e,r,o,n),e.options=t.options});function Ia(e,t){return new Jr({type:"union",options:e,...T.normalizeParams(t)})}var am=f("ZodXor",(e,t)=>{Jr.init(e,t),Ml.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gi(e,r,o,n),e.options=t.options});function qS(e,t){return new am({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var sm=f("ZodDiscriminatedUnion",(e,t)=>{Jr.init(e,t),zl.init(e,t)});function US(e,t,r){return new sm({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var um=f("ZodIntersection",(e,t)=>{Fl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n)});function cm(e,t){return new um({type:"intersection",left:e,right:t})}var lm=f("ZodTuple",(e,t)=>{gi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tp(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function dm(e,t,r){let o=t instanceof $,n=o?r:t,i=o?t:null;return new lm({type:"tuple",items:e,rest:i,...T.normalizeParams(n)})}var Xr=f("ZodRecord",(e,t)=>{Bl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function pm(e,t,r){return new Xr({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function VS(e,t,r){let o=de(e);return o._zod.values=void 0,new Xr({type:"record",keyType:o,valueType:t,...T.normalizeParams(r)})}function WS(e,t,r){return new Xr({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var mm=f("ZodMap",(e,t)=>{Ll.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Ze(...r)),e.nonempty=r=>e.check(Ze(1,r)),e.max=(...r)=>e.check(kt(...r)),e.size=(...r)=>e.check(Zt(...r))});function HS(e,t,r){return new mm({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var hm=f("ZodSet",(e,t)=>{Nl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vp(e,r,o,n),e.min=(...r)=>e.check(Ze(...r)),e.nonempty=r=>e.check(Ze(1,r)),e.max=(...r)=>e.check(kt(...r)),e.size=(...r)=>e.check(Zt(...r))});function KS(e,t){return new hm({type:"set",valueType:e,...T.normalizeParams(t)})}var qn=f("ZodEnum",(e,t)=>{ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>sp(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new qn({...t,checks:[],...T.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new qn({...t,checks:[],...T.normalizeParams(n),entries:i})}});function _a(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new qn({type:"enum",entries:r,...T.normalizeParams(t)})}function ZS(e,t){return new qn({type:"enum",entries:e,...T.normalizeParams(t)})}var fm=f("ZodLiteral",(e,t)=>{Ul.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>up(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function GS(e,t){return new fm({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var gm=f("ZodFile",(e,t)=>{Vl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dp(e,r,o,n),e.min=(r,o)=>e.check(Ze(r,o)),e.max=(r,o)=>e.check(kt(r,o)),e.mime=(r,o)=>e.check(jn(Array.isArray(r)?r:[r],o))});function QS(e){return Nd(gm,e)}var vm=f("ZodTransform",(e,t)=>{Wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fp(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Dt(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(T.issue(i,r.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(T.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function wa(e){return new vm({type:"transform",transform:e})}var Pa=f("ZodOptional",(e,t)=>{vi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vr(e){return new Pa({type:"optional",innerType:e})}var ym=f("ZodExactOptional",(e,t)=>{Hl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Sm(e){return new ym({type:"optional",innerType:e})}var bm=f("ZodNullable",(e,t)=>{Kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ep(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Wr(e){return new bm({type:"nullable",innerType:e})}function JS(e){return Vr(Wr(e))}var Tm=f("ZodDefault",(e,t)=>{Zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ip(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xm(e,t){return new Tm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Em=f("ZodPrefault",(e,t)=>{Gl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_p(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Dm(e,t){return new Em({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var Ca=f("ZodNonOptional",(e,t)=>{Ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Im(e,t){return new Ca({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var _m=f("ZodSuccess",(e,t)=>{Jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function XS(e){return new _m({type:"success",innerType:e})}var wm=f("ZodCatch",(e,t)=>{Xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Pm(e,t){return new wm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Cm=f("ZodNaN",(e,t)=>{Yl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cp(e,r,o,n)});function YS(e){return Bd(Cm,e)}var ka=f("ZodPipe",(e,t)=>{ed.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pp(e,r,o,n),e.in=t.in,e.out=t.out});function Hr(e,t){return new ka({type:"pipe",in:e,out:t})}var Ra=f("ZodCodec",(e,t)=>{ka.init(e,t),zr.init(e,t)});function eb(e,t,r){return new Ra({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var km=f("ZodReadonly",(e,t)=>{td.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Rm(e){return new km({type:"readonly",innerType:e})}var Am=f("ZodTemplateLiteral",(e,t)=>{nd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lp(e,r,o,n)});function tb(e,t){return new Am({type:"template_literal",parts:e,...T.normalizeParams(t)})}var jm=f("ZodLazy",(e,t)=>{id.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rp(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function $m(e){return new jm({type:"lazy",getter:e})}var Om=f("ZodPromise",(e,t)=>{od.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>kp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function nb(e){return new Om({type:"promise",innerType:e})}var Mm=f("ZodFunction",(e,t)=>{rd.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hp(e,r,o,n)});function rb(e){return new Mm({type:"function",input:Array.isArray(e?.input)?dm(e?.input):e?.input??Gr(Jt()),output:e?.output??Jt()})}var Yr=f("ZodCustom",(e,t)=>{ad.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mp(e,r,o,n)});function ob(e){let t=new H({check:"custom"});return t._zod.check=e,t}function ib(e,t){return qd(Yr,e??(()=>!0),t)}function zm(e,t={}){return Ud(Yr,e,t)}function Fm(e){return Vd(e)}var ab=Wd,sb=Hd;function ub(e,t={}){let r=new Yr({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...T.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var cb=(...e)=>Kd({Codec:Ra,Boolean:Hn,String:Un},...e);function lb(e){let t=$m(()=>Ia([oa(e),Gp(),Qp(),em(),Gr(t),pm(oa(),t)]));return t}function db(e,t){return Hr(wa(e),t)}var f0={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function g0(e){Z({customError:e})}function v0(){return Z().customError}var Bm;Bm||(Bm={});var I={...qr,...Yi,iso:Nn},y0=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function S0(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function b0(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function pb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return I.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return I.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=b0(n,t),s=se(i,t);return t.refs.set(n,s),t.processing.delete(n),s}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return I.null();if(n.length===0)return I.never();if(n.length===1)return I.literal(n[0]);if(n.every(s=>typeof s=="string"))return I.enum(n);let i=n.map(s=>I.literal(s));return i.length<2?i[0]:I.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return I.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...e,type:i};return pb(s,t)});return n.length===0?I.never():n.length===1?n[0]:I.union(n)}if(!r)return I.any();let o;switch(r){case"string":{let n=I.string();if(e.format){let i=e.format;i==="email"?n=n.check(I.email()):i==="uri"||i==="uri-reference"?n=n.check(I.url()):i==="uuid"||i==="guid"?n=n.check(I.uuid()):i==="date-time"?n=n.check(I.iso.datetime()):i==="date"?n=n.check(I.iso.date()):i==="time"?n=n.check(I.iso.time()):i==="duration"?n=n.check(I.iso.duration()):i==="ipv4"?n=n.check(I.ipv4()):i==="ipv6"?n=n.check(I.ipv6()):i==="mac"?n=n.check(I.mac()):i==="cidr"?n=n.check(I.cidrv4()):i==="cidr-v6"?n=n.check(I.cidrv6()):i==="base64"?n=n.check(I.base64()):i==="base64url"?n=n.check(I.base64url()):i==="e164"?n=n.check(I.e164()):i==="jwt"?n=n.check(I.jwt()):i==="emoji"?n=n.check(I.emoji()):i==="nanoid"?n=n.check(I.nanoid()):i==="cuid"?n=n.check(I.cuid()):i==="cuid2"?n=n.check(I.cuid2()):i==="ulid"?n=n.check(I.ulid()):i==="xid"?n=n.check(I.xid()):i==="ksuid"&&(n=n.check(I.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?I.number().int():I.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=I.boolean();break}case"null":{o=I.null();break}case"object":{let n={},i=e.properties||{},s=new Set(e.required||[]);for(let[l,c]of Object.entries(i)){let p=se(c,t);n[l]=s.has(l)?p:p.optional()}if(e.propertyNames){let l=se(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?se(e.additionalProperties,t):I.any();if(Object.keys(n).length===0){o=I.record(l,c);break}let p=I.object(n).passthrough(),d=I.looseRecord(l,c);o=I.intersection(p,d);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),p=[];for(let m of c){let h=se(l[m],t),g=I.string().regex(new RegExp(m));p.push(I.looseRecord(g,h))}let d=[];if(Object.keys(n).length>0&&d.push(I.object(n).passthrough()),d.push(...p),d.length===0)o=I.object({}).passthrough();else if(d.length===1)o=d[0];else{let m=I.intersection(d[0],d[1]);for(let h=2;h<d.length;h++)m=I.intersection(m,d[h]);o=m}break}let u=I.object(n);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(se(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let s=n.map(l=>se(l,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?se(i,t):void 0;u?o=I.tuple(s).rest(u):o=I.tuple(s),typeof e.minItems=="number"&&(o=o.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(I.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>se(l,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?se(e.additionalItems,t):void 0;u?o=I.tuple(s).rest(u):o=I.tuple(s),typeof e.minItems=="number"&&(o=o.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(I.maxLength(e.maxItems)))}else if(i!==void 0){let s=se(i,t),u=I.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=I.array(I.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function se(e,t){if(typeof e=="boolean")return e?I.any():I.never();let r=pb(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(c=>se(c,t)),l=I.union(u);r=o?I.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(c=>se(c,t)),l=I.xor(u);r=o?I.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:I.any();else{let u=o?r:se(e.allOf[0],t),l=o?0:1;for(let c=l;c<e.allOf.length;c++)u=I.intersection(u,se(e.allOf[c],t));r=u}e.nullable===!0&&t.version==="openapi-3.0"&&(r=I.nullable(r)),e.readOnly===!0&&(r=I.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in e&&(n[u]=e[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in e&&(n[u]=e[u]);for(let u of Object.keys(e))y0.has(u)||(n[u]=e[u]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function mb(e,t){if(typeof e=="boolean")return e?I.any():I.never();let r=S0(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??te};return se(e,n)}var Lm={};it(Lm,{bigint:()=>D0,boolean:()=>E0,date:()=>I0,number:()=>x0,string:()=>T0});function T0(e){return ld(Un,e)}function x0(e){return yd(Wn,e)}function E0(e){return Id(Hn,e)}function D0(e){return wd(Kn,e)}function I0(e){return Fd(Zr,e)}Z(yi());var hb=["low","medium","high","xhigh","max"],X=a.enum(hb),he=a.enum(["fast","default"]),fb=["append","replace"],qm=a.enum(fb),gb=["full","workspace-write","readonly"],ue=a.enum(gb),vb=["ask","deny"],Nm=a.enum(vb),yb=["agent-only"],Sb=a.enum(yb),Aa={visibility:Sb.optional()},Y=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string(),...Aa}),a.object({type:a.literal("image"),url:a.string().url(),...Aa}),a.object({type:a.literal("localImage"),path:a.string(),...Aa}),a.object({type:a.literal("localFile"),path:a.string(),name:a.string().optional(),sizeBytes:a.number().int().nonnegative().optional(),mimeType:a.string().optional(),...Aa})]),Um=a.enum(["client/thread/start","client/turn/requested","client/turn/start"]),bb=a.object({model:a.string().optional(),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional(),source:Um.optional(),seq:a.number().int().optional()}),lt=bb.extend({model:a.string().min(1),serviceTier:he,reasoningLevel:X,permissionMode:ue,source:Um}),Tb=a.discriminatedUnion("permissionMode",[a.object({permissionMode:a.literal("full"),permissionEscalation:a.null()}),a.object({permissionMode:a.literal("workspace-write"),permissionEscalation:Nm}),a.object({permissionMode:a.literal("readonly"),permissionEscalation:Nm})]),_0=a.object({model:a.string().min(1),serviceTier:he,reasoningLevel:X}),Vm=_0.and(Tb),w0=a.object({providerId:a.string().min(1),model:a.string().min(1),serviceTier:he,reasoningLevel:X,permissionMode:ue});var Wm=a.object({askUserQuestion:a.boolean(),terminals:a.boolean()}),ja={askUserQuestion:!0,terminals:!0};var xb=a.discriminatedUnion("kind",[a.object({kind:a.literal("branch"),branchName:a.string().min(1),headSha:a.string().min(1).nullable()}),a.object({kind:a.literal("detached"),headSha:a.string().min(1).nullable()}),a.object({kind:a.literal("unborn"),branchName:a.string().min(1).nullable()}),a.object({kind:a.literal("unknown"),reason:a.string().min(1)})]),Eb=a.discriminatedUnion("kind",[a.object({kind:a.literal("none")}),a.object({kind:a.literal("merge"),hasConflicts:a.boolean()}),a.object({kind:a.literal("rebase"),hasConflicts:a.boolean()}),a.object({kind:a.literal("cherry-pick"),hasConflicts:a.boolean()}),a.object({kind:a.literal("revert"),hasConflicts:a.boolean()}),a.object({kind:a.literal("unknown"),reason:a.string().min(1),hasConflicts:a.boolean()})]),$a=a.object({branches:a.array(a.string()),checkout:xb,defaultBranch:a.string().min(1).nullable(),hasUncommittedChanges:a.boolean(),operation:Eb});var P0=new Set([".",".."]),$t=a.string().min(1).max(128).refine(e=>!e.includes("/")&&!e.includes("\\"),{message:"Manager template name must be a single directory name"}).refine(e=>!P0.has(e),{message:"Manager template name cannot be . or .."});var Oa=500,Ma=200,Zn=64*1024,za=Math.ceil(Zn/3)*4,C0=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,Db=["starting","running","disconnected","exited"],Hm=a.enum(Db),Ib=["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"],Km=a.enum(Ib);function _b(e){let t=e.endsWith("==")?2:e.endsWith("=")?1:0;return e.length/4*3-t}var dt=a.number().int().positive().max(Oa),pt=a.number().int().positive().max(Ma),Yt=a.string().min(1).max(za).regex(C0).refine(e=>_b(e)<=Zn,{message:`Terminal data must decode to ${Zn} bytes or less`});var wb=["project","thread"],k0=a.enum(wb),Zm=a.object({id:a.string().min(1),createdAt:a.number(),input:a.array(Y).min(1)});var Ot=a.enum(["pending","resolving","resolved","interrupted","expired"]),Cb=a.discriminatedUnion("type",[a.object({type:a.literal("read"),command:a.string(),name:a.string(),path:a.string()}),a.object({type:a.literal("listFiles"),command:a.string(),path:a.string().nullable()}),a.object({type:a.literal("search"),command:a.string(),query:a.string().nullable(),path:a.string().nullable()}),a.object({type:a.literal("unknown"),command:a.string()})]),Ym=a.object({enabled:a.boolean().nullable()}),eh=a.object({read:a.array(a.string()),write:a.array(a.string())}),R0=a.enum(["none","read_only","read_write"]),A0=a.enum(["none","read_only","read_write"]),j0=a.union([a.literal("none"),a.literal("all"),a.object({kind:a.literal("bundle_ids"),bundleIds:a.array(a.string())})]),kb=a.object({preferences:R0,automations:j0,launchServices:a.boolean(),accessibility:a.boolean(),calendar:a.boolean(),reminders:a.boolean(),contacts:A0}),$0=a.object({network:Ym.nullable(),fileSystem:eh.nullable(),macos:kb.nullable()}),eo=a.object({network:Ym.nullable(),fileSystem:eh.nullable()}).strict(),Pb=eo,Rb=a.enum(["allow_once","allow_for_session","deny"]),O0=a.string().min(1),Ab=a.object({kind:a.literal("command"),itemId:a.string().min(1),command:a.string().min(1),cwd:a.string().nullable(),actions:a.array(Cb),sessionGrant:eo.nullable()}),jb=a.object({kind:a.literal("file_change"),itemId:a.string().min(1),writeScope:O0.nullable(),sessionGrant:eo.nullable()}),Fa=a.object({kind:a.literal("permission_grant"),itemId:a.string().min(1),toolName:a.string().nullable(),permissions:eo}),$b=a.discriminatedUnion("kind",[Ab,jb,Fa]),Ob=a.object({kind:a.literal("approval"),subject:$b,reason:a.string().nullable(),availableDecisions:a.array(Rb).min(1)}),Gm=4,Qm=4,Jm=4,Xm=4096,M0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question ids cannot be blank"}),z0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question prompts cannot be blank"}),F0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question short labels cannot be blank"}),B0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option values cannot be blank"}),L0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option labels cannot be blank"}),N0=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option descriptions cannot be blank"}),q0=a.string().min(1).max(Xm,`User question free text cannot exceed ${Xm} characters`).refine(e=>e.trim().length>0,{message:"User question free text cannot be blank"}),Mb=a.object({value:B0,label:L0,description:N0.optional()}),Ba=a.object({id:M0,prompt:z0,shortLabel:F0.optional(),multiSelect:a.boolean(),options:a.array(Mb).max(Qm,`User questions cannot include more than ${Qm} options`).optional(),allowFreeText:a.boolean()}).superRefine((e,t)=>{let r=new Set;e.options?.forEach((o,n)=>{if(r.has(o.value)){t.addIssue({code:a.ZodIssueCode.custom,message:"User question option values must be unique",path:["options",n,"value"]});return}r.add(o.value)})}).refine(e=>e.allowFreeText||(e.options?.length??0)>0,{message:"User questions must allow free text or provide at least one option",path:["options"]}),La=a.object({kind:a.literal("user_question"),questions:a.array(Ba).min(1).max(Gm,`User questions cannot include more than ${Gm} questions`)}).superRefine((e,t)=>{let r=new Set;e.questions.forEach((o,n)=>{if(r.has(o.id)){t.addIssue({code:a.ZodIssueCode.custom,message:"User question ids must be unique",path:["questions",n,"id"]});return}r.add(o.id)})}),th=a.discriminatedUnion("kind",[Ob,La]);function mt(e){return e.kind==="approval"}function Na(e){return e.kind==="user_question"}var zb="Invalid discriminator value. Expected 'allow_once' | 'allow_for_session' | 'deny'",qa=a.discriminatedUnion("decision",[a.object({decision:a.literal("allow_once"),grantedPermissions:Pb.nullable()}),a.object({decision:a.literal("allow_for_session"),grantedPermissions:Pb.nullable()}),a.object({decision:a.literal("deny")})],zb),Ua=a.object({selected:a.array(a.string().min(1)).max(Jm,`User question selected choices cannot exceed ${Jm}`),freeText:q0.optional()}),Va=a.object({kind:a.literal("user_answer"),answers:a.record(a.string().min(1),Ua)}),to=a.union([qa,Va],zb);function Wa(e){return"decision"in e}function nh(e){return"kind"in e&&e.kind==="user_answer"}var rh=a.object({threadId:a.string().min(1),turnId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),payload:th}),oh=a.object({id:a.string().min(1),threadId:a.string().min(1),turnId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),status:Ot,payload:th,resolution:to.nullable(),statusReason:a.string().nullable(),createdAt:a.number().int().nonnegative(),resolvedAt:a.number().int().nonnegative().nullable()});var Fb=a.object({reasoningEffort:X,description:a.string()}),en=a.object({id:a.string(),model:a.string(),displayName:a.string(),description:a.string(),supportedReasoningEfforts:a.array(Fb),defaultReasoningEffort:X,isDefault:a.boolean()}),Bb=a.object({supportsArchive:a.boolean(),supportsRename:a.boolean(),supportsServiceTier:a.boolean(),supportsUserQuestion:a.boolean(),supportedPermissionModes:a.array(ue).min(1)}),tn=a.object({id:a.string(),displayName:a.string(),capabilities:Bb,available:a.boolean()}),Lb=a.discriminatedUnion("type",[a.object({type:a.literal("inputText"),text:a.string()}),a.object({type:a.literal("inputImage"),imageUrl:a.string()})]),ih=a.object({requestId:a.union([a.string().min(1),a.number()]),threadId:a.string().min(1),providerThreadId:a.string().min(1),turnId:a.string().min(1),callId:a.string().min(1),tool:a.string().min(1),arguments:a.unknown().optional()}),Nb=a.object({contentItems:a.array(Lb),success:a.boolean()}),U0=a.object({text:a.string().trim().min(1).optional(),message:a.string().trim().min(1).optional()}).refine(e=>e.text!==void 0||e.message!==void 0,"message_user requires text").transform(e=>({text:e.text??e.message??""})),ah=a.object({name:a.string(),description:a.string(),inputSchema:a.unknown()});var qb=["provisioning","ready","error","destroying","destroyed"],no=a.enum(qb),V0=["safe"],Ub=a.enum(V0),Vb=["unmanaged","managed-worktree"],Ha=a.enum(Vb),Wb=["managed-worktree","unmanaged-worktree","other"],sh=a.enum(Wb);function uh({environment:e}){return e.workspaceProvisionType==="managed-worktree"?"managed-worktree":e.isWorktree===!0?"unmanaged-worktree":"other"}var ch=a.object({path:a.string().min(1),isGitRepo:a.boolean(),isWorktree:a.boolean(),branchName:a.string().nullable(),defaultBranch:a.string().nullable()}),lh=a.object({id:a.string(),projectId:a.string(),hostId:a.string(),path:a.string().nullable(),managed:a.boolean(),isGitRepo:a.boolean(),isWorktree:a.boolean(),workspaceProvisionType:Ha,branchName:a.string().nullable(),baseBranch:a.string().nullable(),defaultBranch:a.string().nullable(),mergeBaseBranch:a.string().nullable(),cleanupRequestedAt:a.number().nullable(),cleanupMode:Ub.nullable(),status:no,createdAt:a.number(),updatedAt:a.number()});function dh(e){return e?.mergeBaseBranch??e?.baseBranch??e?.defaultBranch??void 0}var ro=a.string().regex(/^hdevt_[23456789abcdefghijkmnpqrstuvwxyz]{20}$/u),Qe=a.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);var ne=a.lazy(()=>a.union([a.string(),a.number(),a.boolean(),a.null(),a.array(ne),a.record(a.string(),ne)])),Ka=a.record(a.string(),ne);var Za=["client/thread/start","client/turn/requested","client/turn/start","system/error","system/manager/user_message","system/thread/interrupted","system/operation","system/permissionGrant/lifecycle","system/userQuestion/lifecycle","system/thread-provisioning"],W0=a.enum(Za),Hb=["user","agent","system"],oo=a.enum(Hb),ph=["thread-created","boot-created-thread","tell-after-provisioning-failure","tell-after-missing-environment-attachment","resume-missing-provider-thread"],H0=a.enum(ph),Kb=[...ph,"boot-active-resume","resume-existing-provider-session"],K0=a.enum(Kb),Zb=lt,Ga=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread-start")}),a.object({kind:a.literal("new-turn")}),a.object({kind:a.literal("auto"),expectedTurnId:a.string().nullable()}),a.object({kind:a.literal("steer"),expectedTurnId:a.string().nullable()})]),Qa=a.object({direction:a.literal("outbound"),source:a.enum(["spawn","tell"]),initiator:oo,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())})}),io=a.object({direction:a.literal("outbound"),requestId:Qe,source:a.enum(["spawn","tell"]),initiator:oo,senderThreadId:a.string().nullable(),input:a.array(Y),target:Ga,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())}),execution:Zb}),mh=a.object({code:a.string().optional(),message:a.string(),detail:a.string().optional(),reconnectAttempt:a.number().int().positive().optional(),reconnectTotal:a.number().int().positive().optional()}).superRefine((e,t)=>{let r=e.reconnectAttempt!==void 0,o=e.reconnectTotal!==void 0;if(r!==o){t.addIssue({code:a.ZodIssueCode.custom,message:"system/error reconnectAttempt and reconnectTotal must be provided together"});return}e.reconnectAttempt!==void 0&&e.reconnectTotal!==void 0&&e.reconnectAttempt>e.reconnectTotal&&t.addIssue({code:a.ZodIssueCode.custom,message:"system/error reconnectAttempt cannot be greater than reconnectTotal"})}),Gb=["assign","release","transfer"],Qb=a.enum(Gb),Jb=a.object({action:Qb,nextParentThreadId:a.string().nullable(),nextParentThreadTitle:a.string().nullable(),previousParentThreadId:a.string().nullable(),previousParentThreadTitle:a.string().nullable()}),hh=a.object({operation:a.string(),status:a.string(),message:a.string(),operationId:a.string(),metadata:a.record(a.string(),ne).optional()}),fh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:Ot,resolution:qa.nullable().default(null),statusReason:a.string().nullable().default(null),subject:Fa}),gh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:Ot,resolution:Va.nullable().default(null),statusReason:a.string().nullable().default(null),payload:La}),Xb=["manual-stop","host-daemon-restarted"],Yb=a.enum(Xb),vh=a.object({reason:Yb}),Ja=a.object({type:a.enum(["step","output"]),key:a.string(),text:a.string(),startedAt:a.number().optional(),status:a.enum(["started","completed","failed"]).optional(),metadata:a.record(a.string(),a.unknown()).optional()}),eT=["active","completed","failed"],tT=a.enum(eT),yh=a.object({provisioningId:a.string(),status:tT,environmentId:a.string(),entries:a.array(Ja)}),Sh=a.object({text:a.string(),toolCallId:a.string().optional(),turnId:a.string().optional()}),Z0=a.object({turnId:a.string().optional(),input:a.array(Y).optional()});var nT=["thread","turn"],G0=a.enum(nT),nn=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread")}),a.object({kind:a.literal("turn"),turnId:a.string().min(1)})]),rT=["thread","turn","thread-or-turn"],Q0=a.enum(rT),oT={"thread/started":{policy:"thread",rationale:"Thread lifecycle event; it creates the thread timeline itself."},"thread/identity":{policy:"thread",rationale:"Thread metadata event; it identifies the provider thread outside turn chronology."},"turn/started":{policy:"turn"},"turn/completed":{policy:"turn"},"turn/input/accepted":{policy:"turn"},"thread/name/updated":{policy:"thread",rationale:"Thread metadata event; names are not part of a specific turn transcript."},"thread/compacted":{policy:"turn"},"item/started":{policy:"turn"},"item/completed":{policy:"turn"},"item/agentMessage/delta":{policy:"turn"},"item/commandExecution/outputDelta":{policy:"turn"},"item/fileChange/outputDelta":{policy:"turn"},"item/reasoning/summaryTextDelta":{policy:"turn"},"item/reasoning/textDelta":{policy:"turn"},"item/plan/delta":{policy:"turn"},"item/mcpToolCall/progress":{policy:"turn"},"item/toolCall/progress":{policy:"turn"},"thread/tokenUsage/updated":{policy:"turn"},"thread/contextWindowUsage/updated":{policy:"turn"},"turn/plan/updated":{policy:"turn"},"turn/diff/updated":{policy:"turn"},"provider/error":{policy:"thread-or-turn",rationale:"Provider diagnostics use thread scope for provider setup/session failures; in-turn failures use turn scope."},"provider/warning":{policy:"thread-or-turn",rationale:"Provider warnings use thread scope for config, deprecation, or global notices; turn-specific warnings use turn scope."},"provider/unhandled":{policy:"thread-or-turn",rationale:"Unhandled provider events use thread scope only when no active turn context exists; in-turn unknown events use turn scope."},"client/thread/start":{policy:"thread",rationale:"Outbound client lifecycle event; it requests thread creation before any turn exists."},"client/turn/requested":{policy:"thread",rationale:"Outbound client lifecycle event; it records the request before provider turn acceptance."},"client/turn/start":{policy:"thread",rationale:"Outbound client lifecycle event; it records the start request before provider turn acceptance."},"system/error":{policy:"thread-or-turn",rationale:"System errors use thread scope for app, daemon, or session failures outside a turn; turn failures use turn scope."},"system/manager/user_message":{policy:"thread-or-turn",rationale:"Manager messages can be thread-scoped for general manager updates or turn-scoped for in-turn updates."},"system/thread/interrupted":{policy:"thread",rationale:"Thread stop lifecycle event; it represents user interruption of the whole running thread."},"system/operation":{policy:"thread",rationale:"Thread-management operation event; ownership and lifecycle operations are not turn transcript content."},"system/permissionGrant/lifecycle":{policy:"turn"},"system/userQuestion/lifecycle":{policy:"turn"},"system/thread-provisioning":{policy:"thread",rationale:"Workspace provisioning lifecycle event; environment setup belongs to the thread, not a turn."}};function bh(){return Object.entries(oT).map(([e,t])=>({type:e,definition:t}))}function Th(e){return bh().filter(t=>t.definition.policy===e).map(t=>t.type)}function J0(){let e={};for(let t of bh())e[t.type]=t.definition.policy;return e}function X0(){let e={};for(let t of bh())t.definition.rationale&&(e[t.type]=t.definition.rationale);return e}var Y0=Th("turn"),ej=Th("thread"),tj=Th("thread-or-turn"),iT=J0(),nj=X0();function xh(e){let t=iT[e.type];return t==="thread-or-turn"?{valid:!0}:t!==e.scope.kind?{valid:!1,message:`${e.type} requires ${t} scope but received ${e.scope.kind} scope`}:{valid:!0}}var Ya=a.enum(["pending","completed","failed","interrupted"]),aT=a.enum(["waiting_for_approval","denied"]).nullable(),uT=a.enum(["completed","failed","interrupted"]),cT=["active-turn-not-steerable","bad-request","connection-failed","context-window-exceeded","billing","budget-exceeded","internal","max-output-tokens","max-turns","overloaded","policy","rate-limit","sandbox","stream-disconnected","structured-output-retries","thread-rollback-failed","too-many-failed-attempts","unauthorized","unknown"],lT=a.enum(cT),dT=a.object({category:lT,providerCode:a.string().nullable(),httpStatusCode:a.number().nullable()}),pT=a.enum(["add","delete","update"]),mT=a.object({path:a.string(),kind:pT,movePath:a.string().optional(),diff:a.string().optional()}),hT=a.enum(["pending","active","completed","failed"]),fT=a.object({step:a.string(),status:hT.optional()}),gT=a.object({type:a.literal("webSearch"),id:a.string(),queries:a.array(a.string()).min(1),resultText:a.string().nullable(),parentToolCallId:a.string().optional()}),vT=a.object({type:a.literal("webFetch"),id:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),resultText:a.string().nullable(),parentToolCallId:a.string().optional()}),es=a.object({originalLength:a.number(),retainedHeadLength:a.number(),retainedTailLength:a.number(),truncatedAt:a.number()}),Eh=a.object({aggregatedOutput:es.optional(),result:es.optional(),resultText:es.optional()}),yT=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string()}),a.object({type:a.literal("image"),url:a.string()}),a.object({type:a.literal("localImage"),path:a.string()}),a.object({type:a.literal("localFile"),path:a.string()})]),Dh=a.object({totalTokens:a.number(),inputTokens:a.number(),cachedInputTokens:a.number(),outputTokens:a.number(),reasoningOutputTokens:a.number()}),ST=a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()}),bT=a.object({total:Dh,last:Dh,modelContextWindow:a.number().nullable()}),TT=a.enum(["deprecation","config","general"]),xT=a.object({jsonrpc:a.literal("2.0"),id:a.union([a.string(),a.number()]).optional(),method:a.string(),params:ne.optional()}),rj=a.object({type:a.literal("provider/unhandled"),threadId:a.string(),providerThreadId:a.string(),providerId:a.string(),rawType:a.string(),rawEvent:xT,parentToolCallId:a.string().optional()}),oj=a.object({type:a.literal("item/toolCall/progress"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),message:a.string().optional(),parentToolCallId:a.string().optional()}),Ih=a.discriminatedUnion("type",[a.object({type:a.literal("userMessage"),id:a.string(),content:a.array(yT),clientRequestId:Qe.optional(),parentToolCallId:a.string().optional()}).strict(),a.object({type:a.literal("agentMessage"),id:a.string(),text:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("commandExecution"),id:a.string(),command:a.string(),cwd:a.string(),status:Ya,approvalStatus:aT,aggregatedOutput:a.string().optional(),exitCode:a.number().optional(),durationMs:a.number().optional(),truncation:Eh.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("fileChange"),id:a.string(),changes:a.array(mT),status:Ya,approvalStatus:aT,parentToolCallId:a.string().optional()}),gT,vT,a.object({type:a.literal("toolCall"),id:a.string(),server:a.string().optional(),tool:a.string(),arguments:a.record(a.string(),a.unknown()).optional(),status:Ya,result:a.unknown().optional(),error:a.string().optional(),durationMs:a.number().optional(),truncation:Eh.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("reasoning"),id:a.string(),summary:a.array(a.string()),content:a.array(a.string()),parentToolCallId:a.string().optional()}),a.object({type:a.literal("plan"),id:a.string(),text:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("contextCompaction"),id:a.string(),parentToolCallId:a.string().optional()})]),ET=a.discriminatedUnion("type",[a.object({type:a.literal("thread/started"),threadId:a.string()}),a.object({type:a.literal("thread/identity"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("turn/started"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("turn/completed"),threadId:a.string(),providerThreadId:a.string().nullable(),status:uT,error:a.object({message:a.string()}).optional()}),a.object({type:a.literal("turn/input/accepted"),threadId:a.string(),providerThreadId:a.string(),clientRequestId:Qe,scope:nn}).strict(),a.object({type:a.literal("thread/name/updated"),threadId:a.string(),providerThreadId:a.string(),threadName:a.string()}),a.object({type:a.literal("thread/compacted"),threadId:a.string(),providerThreadId:a.string()}),a.object({type:a.literal("item/started"),threadId:a.string(),providerThreadId:a.string(),item:Ih}),a.object({type:a.literal("item/completed"),threadId:a.string(),providerThreadId:a.string(),item:Ih}),a.object({type:a.literal("item/agentMessage/delta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/commandExecution/outputDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),reset:a.boolean().optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/fileChange/outputDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/reasoning/summaryTextDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/reasoning/textDelta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/plan/delta"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),delta:a.string(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("item/mcpToolCall/progress"),threadId:a.string(),providerThreadId:a.string(),itemId:a.string(),message:a.string().optional(),parentToolCallId:a.string().optional()}),oj,a.object({type:a.literal("thread/tokenUsage/updated"),threadId:a.string(),providerThreadId:a.string(),tokenUsage:bT}),a.object({type:a.literal("thread/contextWindowUsage/updated"),threadId:a.string(),providerThreadId:a.string(),contextWindowUsage:ST}),a.object({type:a.literal("turn/plan/updated"),threadId:a.string(),providerThreadId:a.string(),plan:a.array(fT),explanation:a.string().optional()}),a.object({type:a.literal("turn/diff/updated"),threadId:a.string(),providerThreadId:a.string(),diff:a.string().optional()}),a.object({type:a.literal("provider/error"),threadId:a.string(),providerThreadId:a.string(),message:a.string(),detail:a.string().optional(),willRetry:a.boolean().optional(),errorInfo:dT.optional()}),a.object({type:a.literal("provider/warning"),threadId:a.string(),providerThreadId:a.string(),category:TT,summary:a.string().optional(),details:a.string().optional()}),rj]),DT=a.object({scope:nn}),IT=ET.and(DT),_h=ET.options.map(e=>e.shape.type.value),ij=new Set(_h),aj=a.string().refine(e=>ij.has(e),"Invalid provider event type"),sj=a.union([a.object({type:a.literal("client/thread/start"),threadId:a.string()}).merge(Qa),a.object({type:a.literal("client/turn/requested"),threadId:a.string()}).merge(io),a.object({type:a.literal("client/turn/start"),threadId:a.string()}).merge(Qa),a.object({type:a.literal("system/error"),threadId:a.string()}).merge(mh),a.object({type:a.literal("system/manager/user_message"),threadId:a.string()}).merge(Sh),a.object({type:a.literal("system/thread/interrupted"),threadId:a.string()}).merge(vh),a.object({type:a.literal("system/operation"),threadId:a.string()}).merge(hh),a.object({type:a.literal("system/permissionGrant/lifecycle"),threadId:a.string()}).merge(fh),a.object({type:a.literal("system/userQuestion/lifecycle"),threadId:a.string()}).merge(gh),a.object({type:a.literal("system/thread-provisioning"),threadId:a.string()}).merge(yh)]),_T=sj.and(DT),sT=a.record(a.string(),a.unknown()),Xa=["clientRequest","Sequence"].join(""),uj=a.unknown().superRefine((e,t)=>{let r=sT.safeParse(e);if(!r.success)return;Object.hasOwn(r.data,Xa)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy request sequence field is no longer accepted",path:[Xa]});let o=sT.safeParse(r.data.item);o.success&&o.data.type==="userMessage"&&Object.hasOwn(o.data,Xa)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy user-message request sequence field is no longer accepted",path:["item",Xa]})}),Gn=uj.pipe(a.union([IT,_T]).superRefine((e,t)=>{let r=xh({type:e.type,scope:e.scope});if(!r.valid){t.addIssue({code:a.ZodIssueCode.custom,message:r.message??"Invalid thread event scope",path:["scope"]});return}})),wT=[..._h,...Za],cj=new Set(wT),wh=a.string().refine(e=>cj.has(e),"Invalid thread event type");var PT=["requested","queued","completed","failed","cancelled"],lj=a.enum(PT);var CT=["provision","reprovision","destroy"],dj=a.enum(CT),kT=["provision","start","stop"],pj=a.enum(kT),RT=["metadata-pending","environment-pending","environment-attached","environment-provisioning","workspace-ready"],mj=a.enum(RT),AT=["delete"],hj=a.enum(AT);var Ph=a.object({id:a.string(),name:a.string(),createdAt:a.number(),updatedAt:a.number()}),jT=["local_path"],fj=a.enum(jT),gj=a.object({id:a.string(),projectId:a.string(),isDefault:a.boolean(),createdAt:a.number(),updatedAt:a.number()}),$T=gj.extend({type:a.literal("local_path"),hostId:a.string(),path:a.string()}),Ch=$T;function kh(e,t){return e.find(r=>r.type==="local_path"&&r.hostId===t)}var vj=/^[A-Za-z]:(?:[\\/]+)?$/u,yj=/^[A-Za-z]:(?:[\\/]+)/u,Sj=/^\\\\[^\\/]+(?:[\\/]+)[^\\/]+/u,Rh="Project path must be an absolute path.",bj="Project path must point to a project directory, not the filesystem root.",OT="Native Windows paths are not supported. Use a POSIX path like /home/me/repo or /mnt/c/Users/me/repo.";function MT(e){let t=e.trim();return t?vj.test(t)||yj.test(t)||Sj.test(t):!1}function zT(e){let t=e.trim();return t?t.startsWith("/"):!1}function ts(e){let t=e.trim();return t?t==="/"?t:t.replace(/\/+$/u,""):""}function Ah(e){let t=ts(e);return t?MT(t)?OT:zT(t)?t==="/"?bj:null:Rh:Rh}var FT=["persistent"],ht=a.enum(FT),BT=["connected","disconnected"],ns=a.enum(BT),jh=a.object({id:a.string(),name:a.string(),type:ht,status:ns,lastSeenAt:a.number().nullable(),createdAt:a.number(),updatedAt:a.number()});var rn=["created","provisioning","idle","active","error"],Mt=a.enum(rn);var LT=[...rn,"host-reconnecting","waiting-for-host"],NT=a.enum(LT),qT=a.object({displayStatus:NT,hostReconnectGraceExpiresAt:a.number().nullable()}),UT=["standard","manager"],ao=a.enum(UT),VT=["clean","untracked","dirty_uncommitted","committed_unmerged","dirty_and_committed_unmerged"],WT=a.enum(VT),HT=a.enum(["M","A","D","R","C","U","??","?"]),KT=a.object({path:a.string(),status:HT,insertions:a.number().nullable(),deletions:a.number().nullable()}),ZT=a.object({sha:a.string(),shortSha:a.string(),subject:a.string(),authorName:a.string(),authoredAt:a.number()}),$h=a.object({insertions:a.number(),deletions:a.number(),files:a.array(KT)}),GT=$h.extend({hasUncommittedChanges:a.boolean(),state:WT}),QT=a.object({currentBranch:a.string().nullable(),defaultBranch:a.string()}),JT=$h.extend({mergeBaseBranch:a.string(),baseRef:a.string().nullable(),aheadCount:a.number(),behindCount:a.number(),hasCommittedUnmergedChanges:a.boolean(),commits:a.array(ZT)}),so=a.object({workingTree:GT,branch:QT,mergeBase:JT.nullable()}),rs=a.object({id:a.string(),content:a.array(Y).min(1),model:a.string().min(1),reasoningLevel:X,permissionMode:ue,serviceTier:he,createdAt:a.number(),updatedAt:a.number()}),XT=a.object({id:a.string(),projectId:a.string(),environmentId:a.string().nullable(),automationId:a.string().nullable(),providerId:a.string(),type:ao,title:a.string().nullable(),titleFallback:a.string().nullable(),status:Mt,parentThreadId:a.string().nullable(),archivedAt:a.number().nullable(),stopRequestedAt:a.number().nullable(),deletedAt:a.number().nullable(),lastReadAt:a.number().nullable(),latestAttentionAt:a.number(),createdAt:a.number(),updatedAt:a.number()}),os=XT.extend({runtime:qT}),is=os.extend({hasPendingInteraction:a.boolean(),environmentHostId:a.string().nullable(),environmentBranchName:a.string().nullable(),environmentWorkspaceDisplayKind:sh});var Oh=a.discriminatedUnion("type",[a.object({type:a.literal("uncommitted")}),a.object({type:a.literal("branch_committed"),mergeBaseBranch:a.string().min(1)}),a.object({type:a.literal("all"),mergeBaseBranch:a.string().min(1)}),a.object({type:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),Mh=a.object({diff:a.string(),truncated:a.boolean(),shortstat:a.string(),files:a.string(),mergeBaseRef:a.string().nullable()});var YT=a.object({id:a.string(),scope:nn,threadId:a.string(),seq:a.number(),type:wh,data:a.record(a.string(),a.unknown()),createdAt:a.number()}),Tj=new Set(["client/turn/requested"]),xj={kind:"new-turn"},Ej=io.extend({senderThreadId:a.string().nullable().default(null),target:Ga.default(xj),execution:lt});function Dj(e){return Ej.parse(e.data)}function Ij(e){let{scope:t,threadId:r,type:o,...n}=e;return n}function _j(e){let{scope:t,turnId:r,...o}=e;return o}function ex(e){let t=nn.safeParse(e.scope);if(!t.success)throw new Error("Stored thread event is missing valid scope");let r=t.data,o=Tj.has(e.type)?Dj(e):e.data;return Gn.parse({..._j(o),...e.providerThreadId!=null?{providerThreadId:e.providerThreadId}:{},scope:r,threadId:e.threadId,type:e.type})}function zh(e){let{event:t,...r}=e;return{...r,type:t.type,data:Ij(t)}}function tx(e){return zh({id:e.id,scope:e.scope,threadId:e.threadId,seq:e.seq,createdAt:e.createdAt,event:ex({type:e.type,data:e.data,threadId:e.threadId,scope:e.scope})})}function Fh(e){let t=YT.parse(e);return tx(t)}var wj=YT.transform(e=>tx(e));var Bh=a.object({id:a.string(),text:a.string(),startedAt:a.number(),updatedAt:a.number()});var nx=a.enum(["pending","in_progress","completed"]),rx=a.object({id:a.string(),text:a.string(),status:nx}),Lh=a.object({sourceSeq:a.number().int().nonnegative(),updatedAt:a.number(),items:a.array(rx)});var Nh=["thread","project","environment","host","system"],qh=a.enum(Nh);var as=["environment-created","environment-deleted","metadata-changed","status-changed","work-status-changed","git-refs-changed","thread-storage-changed"];var ox=a.object({type:a.literal("subscribe"),entity:qh,id:a.string().optional()}),ix=a.object({type:a.literal("unsubscribe"),entity:qh,id:a.string().optional()}),Pj=a.discriminatedUnion("type",[ox,ix]);import{homedir as t$}from"node:os";import{createHash as zj}from"node:crypto";import{isAbsolute as Fj,join as Bj,relative as Lj,resolve as sx}from"node:path";var Nj=".bb-dev";var ux=38887;var qj=12,Uj=8e3,Vj=11e3,Wj=19e3,Hj=27e3,Kj=43e3;function cx(e){return zj("sha256").update(e).digest("hex")}function Zj(e){let t=e.toLowerCase().replace(/[^a-z0-9._-]+/gu,"-").replace(/^[._-]+|[._-]+$/gu,"");return t.length>0?t:"worktree"}function Gj(e){let t=Lj(e.homeDir,e.repoRoot);return t.length>0&&!t.startsWith("../")&&!t.startsWith("..\\")&&t!==".."&&!Fj(t)?t:e.repoRoot}function Qj(e){let t=cx(e.repoRoot),r=Gj(e);return`${Zj(r)}-${t.slice(0,qj)}`}function Jj(e){let t=cx(e);return Number.parseInt(t.slice(0,8),16)%Uj}function Xj(e){let t=Jj(e);return{appPort:Vj+t,devEnvPort:Kj+t,hostDaemonPort:Hj+t,serverPort:Wj+t}}function Yj(e,t){return e==="~"?t:e.startsWith("~/")?sx(t,e.slice(2)):sx(e)}function lx(e=process.env.NODE_ENV){return e==="production"?"prod":"dev"}function dx(e){let t=e.rawDataDir.trim();if(t.length===0)throw new Error("BB_DATA_DIR must not be empty");return Yj(t,e.homeDir)}function us(e){let t=Qj(e),r=Bj(e.homeDir,Nj,t),o=Xj(e.repoRoot),n=`http://localhost:${o.serverPort}`;return{dataDir:r,instanceId:t,ports:o,repoRoot:e.repoRoot,serverUrl:n}}function Uh(e){let t=Number(e.rawPort);if(String(t)!==e.rawPort)throw new Error(`${e.name} must be a valid TCP port`);return e$({name:e.name,value:t})}function e$(e){if(Number.isInteger(e.value)&&e.value>=1&&e.value<=65535)return e.value;throw new Error(`${e.name} must be a valid TCP port`)}function on(e={}){let t=e.env??process.env;return{context:{homeDir:e.homeDir??t$()},env:t,mode:e.mode??lx(t.NODE_ENV)}}function px(e){let t=e.env[e.definition.name];if(t===void 0)throw new Error(`${e.definition.name} is required`);return e.definition.parse({context:e.context,name:e.definition.name,value:t})}function cs(e){let t=e.env[e.definition.name];if(t!==void 0)return e.definition.parse({context:e.context,name:e.definition.name,value:t})}var Vh={logLevel:{prod:"info",dev:"debug"},secretToken:{dev:"dev-secret"},inferenceModel:"codex/gpt-5.4-mini",transcriptionModel:"codex/gpt-4o-mini-transcribe"};var n$=/^([^/]+)\/([^/]+)$/u;function r$(e){let t=n$.exec(e.value),r=t?.[1],o=t?.[2];if(r&&o)return{provider:r,modelId:o};throw new Error(`${e.name} must use provider/model format, received "${e.value}"`)}function mx(e){return r$(e),e.value}function hx(e){return mx({name:"BB_INFERENCE",value:e})}function fx(e){return mx({name:"BB_TRANSCRIPTION",value:e})}var gx=["trace","debug","info","warn","error","fatal"];function vx(e){if(gx.includes(e))return e;throw new Error(`BB_LOG_LEVEL must be one of ${gx.join(", ")}, received "${e}"`)}function yx(e,t){let r=t.trim();return r.length===0?"":uo(e,r)}function uo(e,t){let r=t.trim();if(r.length===0)throw new Error(`${e} must not be empty`);try{return new URL(r),r}catch{throw new Error(`${e} must be a valid URL, received "${t}"`)}}function Wh(e){let t=e.value.trim().toLowerCase();if(t==="true"||t==="1"||t==="yes"||t==="y")return!0;if(t==="false"||t==="0"||t==="no"||t==="n")return!1;throw new Error(`${e.name} must be a boolean`)}function Sx(e){if(e.value!=="0")return Uh({name:e.name,rawPort:e.value})}function co(e){let t=e.value.trim();return t.length===0?void 0:t}function bx(e){return e.value}function o$(e){if(e.value.length===0)throw new Error(`${e.name} must not be empty`);return e.value}function Tx(e){return Uh({name:e.name,rawPort:e.value})}function i$(e){return uo(e.name,e.value)}function xx(e){return yx(e.name,e.value)}function a$(e){return dx({homeDir:e.context.homeDir,rawDataDir:e.value})}function s$(e){return vx(e.value)}function u$(e){return hx(e.value)}function c$(e){return fx(e.value)}function l$(e){let t=e.value.trim();if(t.length===0)return;let r=ht.safeParse(t);if(!r.success)throw new Error(`Invalid ${e.name} "${t}"`);return r.data}var IV={description:"Root directory for all bb data (db, logs, host-id, etc.)",name:"BB_DATA_DIR",parse:a$},_V={description:"Log level: trace, debug, info, warn, error, fatal",name:"BB_LOG_LEVEL",parse:s$},d$={description:"HTTP port for the server",name:"BB_SERVER_PORT",parse:Tx},Ex={description:"Port the host daemon listens on for local API requests",name:"BB_HOST_DAEMON_PORT",parse:Tx},ls={description:"URL of the bb server",name:"BB_SERVER_URL",parse:i$},wV={description:"Version of the running bb-app package. The bb-app launcher sets this from packages/bb-app/package.json; defaults to a sentinel for dev/source runs.",name:"BB_APP_VERSION",parse:o$},PV={description:"Human-facing app/server base URL used for generated links and allowed browser origins. Does not control which host or port the server binds to.",name:"BB_APP_URL",parse:xx},CV={description:"Internet-facing HTTPS base URL used for generated public links. Does not control which host or port the server binds to.",name:"BB_EXTERNAL_URL",parse:xx},kV={description:"Inference model used for server-side completions",name:"BB_INFERENCE",parse:u$},RV={description:"Speech-to-text model used for voice transcription",name:"BB_TRANSCRIPTION",parse:c$},AV={description:"OpenAI API key used when an explicit OpenAI provider route is configured",name:"OPENAI_API_KEY",parse:bx},jV={description:"Enable the Ask User Question feature",name:"BB_FF_ASK_USER_QUESTION",parse:Wh},$V={description:"Enable terminal sessions in threads",name:"BB_FF_TERMINALS",parse:Wh},OV={description:"Development-only Vite bind host for apps/app. Set to 0.0.0.0 to test from phones or other LAN devices.",name:"BB_DEV_APP_HOST",parse:bx},MV={description:"Development-only Vite port for apps/app.",name:"BB_DEV_APP_PORT",parse:Sx},zV={description:"Development-only localhost port for the bb dev-env helper API.",name:"BB_DEV_ENV_PORT",parse:Sx},FV={description:"When true, the daemon records live provider traffic as replay captures",name:"BB_DEV_REPLAY_CAPTURE",parse:Wh},BV={description:"Directory containing the bb CLI executable to inject into runtime shells",name:"BB_CLI_DIR",parse:co},LV={description:"Directory containing provider bridge bundles for the host daemon runtime",name:"BB_BRIDGE_DIR",parse:co},NV={description:"One-time enrollment token used to bootstrap a host daemon with the bb server",name:"BB_HOST_ENROLL_KEY",parse:co},qV={description:"Preferred host ID to persist for the daemon instead of generating one locally",name:"BB_HOST_ID",parse:co},UV={description:"Preferred host name to report instead of detecting the local hostname",name:"BB_HOST_NAME",parse:co},VV={description:"Host type override for daemon bootstrap",name:"BB_HOST_TYPE",parse:l$};var WV=Vh.inferenceModel,HV=Vh.transcriptionModel,KV=ja.askUserQuestion,ZV=ja.terminals;function p$(e){if(e.repoRoot!==void 0)return us({homeDir:e.homeDir,repoRoot:e.repoRoot}).ports.hostDaemonPort}function m$(e){return p$(e)}function h$(e){let t=on(e),r=cs({context:t.context,definition:e.definition,env:t.env});if(r!==void 0)return r;if(t.mode==="prod")return e.prodDefault;if(e.devDefault!==void 0)return e.devDefault;throw new Error(`${e.definition.name} is required unless repoRoot is provided for development`)}function Dx(e={}){let t=on(e);return h$({...e,definition:Ex,devDefault:m$({homeDir:t.context.homeDir,repoRoot:e.repoRoot}),env:t.env,homeDir:t.context.homeDir,mode:t.mode,prodDefault:ux})}function Ix(e={}){if(e.serverUrl!==void 0)return uo(ls.name,e.serverUrl);let t=on(e),r=cs({context:t.context,definition:ls,env:t.env});return r!==void 0?r:t.mode==="dev"&&e.repoRoot!==void 0?us({homeDir:t.context.homeDir,repoRoot:e.repoRoot}).serverUrl:px({context:t.context,definition:ls,env:t.env})}function _x(e={}){let t=on(e),r=Ix({...e,env:t.env,homeDir:t.context.homeDir,mode:t.mode});return{BB_HOST_DAEMON_PORT:Dx({...e,env:t.env,homeDir:t.context.homeDir,mode:t.mode}),BB_SERVER_URL:r}}var f$=a.string().trim().min(1);var g$=a.object({hostId:a.string().min(1),hostKey:f$,hostType:ht,serverUrl:a.unknown().optional()}).strict().transform(({hostId:e,hostKey:t,hostType:r})=>({hostId:e,hostKey:t,hostType:r}));var v$=(e,t,r={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!r.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!r.secure)throw new Error("__Host- Cookie must have Secure attributes");if(r.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(r.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(r&&typeof r.maxAge=="number"&&r.maxAge>=0){if(r.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${r.maxAge|0}`}if(r.domain&&r.prefix!=="host"&&(o+=`; Domain=${r.domain}`),r.path&&(o+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite&&(o+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(o+=`; Priority=${r.priority.charAt(0).toUpperCase()+r.priority.slice(1)}`),r.partitioned){if(!r.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},Px=(e,t,r)=>(t=encodeURIComponent(t),v$(e,t,r));var Cx=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),ps=(e,t)=>{for(let[r,o]of Object.entries(t)){let n=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(n,o?`/${o}`:"")}return e},kx=e=>{let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(o!==void 0)if(Array.isArray(o))for(let n of o)t.append(r,n);else t.set(r,o);return t},Rx=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},Hh=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function ds(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Kh(e,t){if(!ds(e)&&!ds(t))return t;let r={...e};for(let o in t){let n=t[o];ds(r[o])&&ds(n)?r[o]=Kh(r[o],n):r[o]=n}return r}var Ax=(e,t)=>new Proxy(()=>{},{get(o,n){if(!(typeof n!="string"||n==="then"))return Ax(e,[...t,n])},apply(o,n,i){return e({path:t,args:i})}}),S$=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,r){this.url=e,this.method=t,this.buildSearchParams=r.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let u=new FormData;for(let[l,c]of Object.entries(e.form))if(Array.isArray(c))for(let p of c)u.append(l,p);else u.append(l,c);this.rBody=u}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase(),o={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){let u=[];for(let[l,c]of Object.entries(e.cookie))u.push(Px(l,c,{path:"/"}));o.Cookie=u.join(",")}this.cType&&(o["Content-Type"]=this.cType);let n=new Headers(o??void 0),i=this.url;i=Hh(i),i=ps(i,this.pathParams),this.queryParams&&(i=i+"?"+this.queryParams.toString()),r=this.method.toUpperCase();let s=!(r==="GET"||r==="HEAD");return(t?.fetch||fetch)(i,{body:s?this.rBody:void 0,method:r,headers:n,...t?.init})}},Qn=(e,t)=>Ax(function r(o){let n=t?.buildSearchParams??kx,i=[...o.path],s=i.slice(-3).reverse();if(s[0]==="toString")return s[1]==="name"?s[2]||"":r.toString();if(s[0]==="valueOf")return s[1]==="name"?s[2]||"":r;let u="";if(/^\$/.test(s[0])){let d=i.pop();d&&(u=d.replace(/^\$/,""))}let l=i.join("/"),c=Cx(e,l);if(u==="url"){let d=c;return o.args[0]&&(o.args[0].param&&(d=ps(c,o.args[0].param)),o.args[0].query&&(d=d+"?"+n(o.args[0].query).toString())),d=Hh(d),new URL(d)}if(u==="ws"){let d=Rx(o.args[0]&&o.args[0].param?ps(c,o.args[0].param):c,"ws"),m=new URL(d),h=o.args[0]?.query;return h&&Object.entries(h).forEach(([y,P])=>{Array.isArray(P)?P.forEach(D=>m.searchParams.append(y,D)):m.searchParams.set(y,P)}),((...y)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...y):new WebSocket(...y))(m.toString())}let p=new S$(c,u,{buildSearchParams:n});if(u){t??={};let d=Kh(t,{...o.args[1]});return p.fetch(o.args[0],d)}return p},[]);var Gh="127.0.0.1";var jx=["vscode","cursor","sublime-text","zed","windsurf","antigravity","finder","terminal","iterm2","ghostty","xcode"],Qh=a.enum(jx),$x=["editor","file-browser","terminal"],Ox=a.enum($x),Mx=a.object({id:Qh,kind:Ox,label:a.string().min(1)}),b$=a.object({targets:a.array(Mx)}),T$=a.string().min(1),x$=a.number().int().positive().nullable(),E$=a.object({lineNumber:x$,path:T$,targetId:Qh}),D$=a.object({path:a.string().nullable()}),zx=200,I$=a.object({paths:a.array(a.string().min(1)).min(1).max(zx).transform(e=>Array.from(new Set(e)))}),_$=a.object({existence:a.record(a.string(),a.boolean())}),Fx=a.enum(["darwin","linux","wsl","unknown"]),w$=a.object({hostId:a.string().min(1),connected:a.boolean(),protocolVersion:a.number().int().positive(),serverUrl:a.string(),supportsNativeFolderPicker:a.boolean(),platform:Fx}),P$=a.string().min(1),Bx=["codex","claudeCode"],Jn=a.enum(Bx),Lx=["stdout","stderr"],Nx=a.enum(Lx),qx=["notInstalled","npmGlobal","external"],Ux=a.enum(qx),Vx=["install","update"],Jh=a.enum(Vx),Wx=["exec","shell"],Hx=a.enum(Wx),Kx=a.object({kind:Jh,label:a.enum(["Install","Update"]),commandKind:Hx,command:a.string().min(1)}),Zh=a.object({displayName:a.string().min(1),executableName:a.string().min(1),executablePath:a.string().min(1).nullable(),installed:a.boolean(),installSource:Ux,currentVersion:a.string().min(1).nullable(),latestVersion:a.string().min(1).nullable(),npmPackageName:a.string().min(1),npmGlobalPackageVersion:a.string().min(1).nullable(),installAction:Kx.nullable(),needsUpdate:a.boolean()}),C$=a.object({codex:Zh,claudeCode:Zh}),k$=a.object({provider:Jn,actionKind:Jh}),Zx=a.object({type:a.literal("started"),provider:Jn,command:a.string().min(1)}),Gx=a.object({type:a.literal("output"),provider:Jn,stream:Nx,text:a.string()}),Qx=a.object({type:a.literal("completed"),provider:Jn,exitCode:a.number().int().nullable(),signal:a.string().min(1).nullable(),success:a.boolean()}),Jx=a.object({type:a.literal("error"),provider:Jn,message:a.string().min(1)}),R$=a.discriminatedUnion("type",[Zx,Gx,Qx,Jx]);function Xh(e){let t=e.replace(/\/$/,"");return Qn(t)}var A$=a.record(a.string(),a.unknown()),Xx=a.object({jsonrpc:a.literal("2.0"),method:a.string(),params:A$.optional()}).passthrough(),zW=a.object({jsonrpc:a.literal("2.0"),method:a.literal("sdk/message"),params:a.object({message:a.unknown(),threadId:a.string().optional(),parent_tool_use_id:a.string().optional()}).passthrough()}).passthrough(),FW=a.object({jsonrpc:a.literal("2.0"),method:a.literal("thread/identity"),params:a.object({threadId:a.string().optional(),providerThreadId:a.string().optional()}).passthrough()}).passthrough(),BW=a.object({jsonrpc:a.literal("2.0"),method:a.literal("thread/contextWindowUsage/updated"),params:a.object({threadId:a.string().optional(),contextWindowUsage:a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()})}).passthrough()}).passthrough(),LW=a.object({jsonrpc:a.literal("2.0"),method:a.literal("error"),params:a.object({message:a.string().optional()}).passthrough().optional()}).passthrough();var j$=3,$$=/^cap_[0-9a-z]+_[0-9a-z]{8}$/u;var O$=a.enum(["thread-start","turn-start"]),M$=a.enum(["live-dev-capture","corpus-fixture"]),WW=a.object({headSha:a.string().nullable(),isClean:a.boolean(),statusLines:a.array(a.string())}).strict(),z$=a.custom(e=>Xx.safeParse(e).success,"Invalid JSON-RPC envelope"),F$=a.object({kind:a.literal("raw-provider-event"),capturedAt:a.number().int().nonnegative(),providerId:a.string().min(1),captureId:a.string().min(1),rawLine:a.string(),rawEvent:z$,sourceThreadId:a.string().optional()}),B$=a.object({turnId:a.string().min(1),userInput:a.array(Y).min(1),createdAt:a.number().int().nonnegative()}).strict(),L$=a.object({rawProviderEvents:a.number().int().nonnegative(),droppedRecords:a.number().int().nonnegative()}).strict(),ms=a.object({schemaVersion:a.literal(j$),captureId:a.string().regex($$),capturedAt:a.number().int().nonnegative(),completedAt:a.number().int().nonnegative().nullable(),source:M$,providerId:a.string().min(1),projectId:a.string().min(1),environmentId:a.string().min(1),threadId:a.string().min(1),providerThreadId:a.string().nullable(),title:a.string().nullable(),kind:O$,turns:a.array(B$).min(1),userInputPreview:a.string(),execution:lt,eventCounts:L$,errorMessage:a.string().nullable()}).strict(),hs=ms.pick({captureId:!0,capturedAt:!0,completedAt:!0,providerId:!0,projectId:!0,environmentId:!0,threadId:!0,title:!0,kind:!0,userInputPreview:!0,execution:!0,eventCounts:!0,errorMessage:!0}),Yh=hs.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),Yx=a.object({captures:a.array(hs)}),eE=ms.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),tE=a.object({captures:a.array(Yh)}),an=a.union([a.literal(.5),a.literal(1),a.literal(2),a.literal(5),a.literal(10)]),nE=a.object({speed:an}).strict(),rE=a.object({commandId:a.string(),replayThreadId:a.string(),projectId:a.string()}),HW=a.object({ordinal:a.number().int().positive(),relativeMs:a.number().int().nonnegative(),entry:F$});var ef=22,tf=256,nf=1e4,gs=["thread.start","turn.submit","thread.stop","thread.rename","thread.archive","thread.unarchive","thread.deleted","interactive.resolve","codex.inference.complete","codex.voice.transcribe","host.list_files","host.list_paths","host.list_branches","host.list_manager_templates","host.file_metadata","host.status_version","host.read_file","host.read_file_relative","host.write_file_relative","host.delete_file_relative","provider.list","provider.list_models","environment.provision","environment.destroy","workspace.status","workspace.diff","workspace.commit","workspace.squash_merge","replay.capture_list","replay.capture_get","replay.capture_delete","replay.run"],N$=a.enum(gs),q$=new Set(gs);function iE(e){return q$.has(e)}var rf=Vm,Xn=a.object({workspacePath:a.string().min(1),workspaceProvisionType:Ha}),zt=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),U$=a.object({threadId:a.string().min(1)}),aE=a.object({workspaceContext:Xn,projectId:a.string().min(1),providerId:a.string().min(1),options:rf,instructions:a.string().min(1),dynamicTools:a.array(ah),disallowedTools:a.array(a.string()).optional(),instructionMode:qm}),V$=aE.extend({providerThreadId:a.string().min(1)}),W$=V$.omit({options:!0}),sE=a.object({environmentId:a.string().min(1)}),lo=sE.extend({workspaceContext:Xn}),H$=zt.extend({workspaceContext:Xn}),uE=zt.merge(aE).extend({type:a.literal("thread.start"),requestId:Qe,input:a.array(Y).min(1),threadStoragePath:a.string().min(1).optional()}).strict(),cE=a.discriminatedUnion("mode",[a.object({mode:a.literal("start")}),a.object({mode:a.literal("auto"),expectedTurnId:a.string().min(1).nullable()}),a.object({mode:a.literal("steer"),expectedTurnId:a.string().min(1).nullable()})]),lE=zt.extend({type:a.literal("turn.submit"),requestId:Qe,input:a.array(Y).min(1),options:rf,resumeContext:W$,target:cE}).strict(),dE=zt.extend({type:a.literal("thread.stop")}),pE=zt.extend({type:a.literal("thread.rename"),title:a.string().min(1)}),K$=H$.extend({type:a.literal("thread.archive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),Z$=U$.extend({type:a.literal("thread.unarchive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),G$=zt.extend({type:a.literal("thread.deleted")}),mE=a.object({type:a.literal("replay.capture_list")}),hE=a.object({type:a.literal("replay.capture_get"),captureId:a.string().min(1)}),Q$=a.object({type:a.literal("replay.capture_delete"),captureId:a.string().min(1)}),fE=zt.extend({type:a.literal("replay.run"),captureId:a.string().min(1),requestId:Qe,speed:an}).strict(),J$=zt.extend({type:a.literal("interactive.resolve"),interactionId:a.string().min(1),providerId:a.string().min(1),providerThreadId:a.string().min(1),providerRequestId:a.string().min(1),resolution:to}),gE=a.object({type:a.literal("codex.inference.complete"),model:a.string().min(1),prompt:a.string().min(1),outputSchema:Ka,timeoutMs:a.number().int().positive()}).strict(),vE=a.object({type:a.literal("codex.voice.transcribe"),model:a.string().min(1),audioBase64:a.string().min(1),mimeType:a.string().min(1),filename:a.string().min(1),prompt:a.string().nullable(),timeoutMs:a.number().int().positive()}).strict(),yE=a.object({type:a.literal("host.read_file"),path:a.string().min(1),rootPath:a.string().min(1).optional(),ref:a.string().min(1).optional()}).superRefine((e,t)=>{e.ref!==void 0&&e.rootPath===void 0&&t.addIssue({code:"custom",path:["rootPath"],message:"rootPath is required when ref is set"})}),sn=a.enum(["allow","deny"]),SE=a.object({type:a.literal("host.read_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:sn}).strict(),bE=a.object({type:a.literal("host.write_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:sn,content:a.string(),contentEncoding:a.enum(["base64","utf8"])}).strict(),TE=a.object({type:a.literal("host.delete_file_relative"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:sn}).strict(),X$=a.object({type:a.literal("host.file_metadata"),path:a.string().min(1),rootPath:a.string().min(1).optional()}).strict(),xE=a.enum(["folder","html","md","empty"]),EE=a.object({source:a.literal("folder"),rootPath:a.string().min(1),indexPath:a.string().min(1),dotfiles:sn}).strict(),of=a.object({source:a.literal("html"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:sn}).strict(),af=a.object({source:a.literal("md"),rootPath:a.string().min(1),path:a.string().min(1),dotfiles:sn}).strict(),Y$=a.union([of,af]),DE=a.object({type:a.literal("host.status_version"),sources:a.tuple([EE,of,af])}).strict(),IE=a.object({type:a.literal("host.list_files"),path:a.string().min(1),query:a.string().max(tf).optional(),limit:a.number().int().positive().max(nf)}),_E=a.enum(["file","directory"]),wE=a.object({kind:_E,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),PE=a.object({type:a.literal("host.list_paths"),path:a.string().min(1),query:a.string().max(tf).optional(),limit:a.number().int().positive().max(nf),includeFiles:a.boolean(),includeDirectories:a.boolean()}).refine(e=>e.includeFiles||e.includeDirectories,{message:"At least one path kind must be included"}),CE=a.object({type:a.literal("host.list_branches"),path:a.string().min(1)}),kE=a.object({name:$t}),RE=a.object({type:a.literal("host.list_manager_templates")}).strict(),AE=a.object({type:a.literal("provider.list")}),jE=a.object({type:a.literal("provider.list_models"),providerId:a.string().min(1)}),e1=a.object({threadId:a.string().min(1),provisioningId:a.string().min(1)}).strict(),$E=sE.extend({type:a.literal("environment.provision"),initiator:e1.nullable()}),t1=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:a.string().min(1)}),a.object({kind:a.literal("new"),name:a.string().min(1)})]),n1=$E.extend({workspaceProvisionType:a.literal("unmanaged"),path:a.string().min(1),checkout:t1.optional()}),r1=a.object({sourcePath:a.string().min(1),targetPath:a.string().min(1),branchName:a.string().min(1),baseBranch:a.string().min(1).nullable(),setupTimeoutMs:a.number().int().positive()}),o1=$E.merge(r1).extend({workspaceProvisionType:a.literal("managed-worktree")}),OE=a.discriminatedUnion("workspaceProvisionType",[n1,o1]),ME=lo.extend({type:a.literal("environment.destroy")}),zE=lo.extend({type:a.literal("workspace.status"),mergeBaseBranch:a.string().min(1).optional()}),FE=lo.extend({type:a.literal("workspace.diff"),target:Oh,maxDiffBytes:a.number().int().positive(),maxFileListBytes:a.number().int().positive()}),BE=lo.extend({type:a.literal("workspace.commit"),message:a.string().min(1)}),LE=lo.extend({type:a.literal("workspace.squash_merge"),targetBranch:a.string().min(1),commitMessage:a.string().min(1)}),i1=a.discriminatedUnion("type",[uE,lE,dE,pE,K$,Z$,G$,mE,hE,Q$,fE,J$,gE,vE,IE,PE,CE,RE,X$,DE,yE,SE,bE,TE,AE,jE,ME,zE,FE,BE,LE]),NE=a.union([i1,OE]);var oE=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),a1=a.object({path:a.string(),modifiedAtMs:a.number().nonnegative(),sizeBytes:a.number().int().nonnegative()}),s1=a.object({path:a.string(),hash:a.string().min(1),modifiedAtMs:a.number().nonnegative(),sizeBytes:a.number().int().nonnegative()}),u1=a.object({path:a.string(),deleted:a.boolean(),previousHash:a.string().nullable()}),c1=a.object({source:xE,hash:a.string().min(1)}),l1=a.object({files:a.array(a.object({path:a.string(),name:a.string()})),truncated:a.boolean()}),d1=a.object({paths:a.array(wE),truncated:a.boolean()}),qE={"thread.start":a.object({providerThreadId:a.string().min(1)}),"turn.submit":a.object({appliedAs:a.enum(["new-turn","steer"])}),"thread.stop":a.object({}),"thread.rename":a.object({}),"thread.archive":a.object({}),"thread.unarchive":a.object({}),"thread.deleted":a.object({}),"replay.capture_list":Yx,"replay.capture_get":ms,"replay.capture_delete":a.object({}),"replay.run":a.object({}),"interactive.resolve":a.object({}),"codex.inference.complete":a.object({model:a.string().min(1),value:Ka}),"codex.voice.transcribe":a.object({model:a.string().min(1),text:a.string()}),"host.list_files":l1,"host.list_paths":d1,"host.file_metadata":a1,"host.status_version":c1,"host.list_branches":$a,"host.list_manager_templates":a.object({templates:a.array(kE),activeName:$t}),"host.read_file":oE,"host.read_file_relative":oE,"host.write_file_relative":s1,"host.delete_file_relative":u1,"provider.list":a.object({providers:a.array(tn)}),"provider.list_models":a.object({models:a.array(en),selectedOnlyModels:a.array(en)}),"environment.provision":ch.extend({transcript:a.array(Ja)}),"environment.destroy":a.object({}),"workspace.status":a.object({workspaceStatus:so}),"workspace.diff":a.object({diff:Mh}),"workspace.commit":a.object({commitSha:a.string().min(1),commitSubject:a.string().min(1)}),"workspace.squash_merge":a.object({merged:a.boolean(),commitSha:a.string().min(1),commitSubject:a.string().min(1)})},sf=a.object({id:a.string().min(1),cursor:a.number().int().nonnegative(),command:NE}),fs=a.object({sessionId:a.string().min(1),commandId:a.string().min(1),completedAt:a.number().int().nonnegative()});function p1(e,t){return[fs.extend({type:a.literal(e),ok:a.literal(!0),result:t}),fs.extend({type:a.literal(e),ok:a.literal(!1),errorCode:a.string().min(1),errorMessage:a.string().min(1)})]}function m1(e){return a.discriminatedUnion("ok",p1(e,qE[e]))}var h1=fs.extend({type:a.string().min(1),ok:a.literal(!1),errorCode:a.literal("unknown_command"),errorMessage:a.string().min(1)}),f1=fs.extend({type:a.string().min(1),ok:a.boolean()}),g1=new Map(gs.map(e=>[e,m1(e)])),v1=a.custom(e=>{let t=f1.safeParse(e);if(!t.success)return!1;if(!iE(t.data.type))return h1.safeParse(e).success;let r=g1.get(t.data.type);return r?r.safeParse(e).success:!1});var UE=a.string().regex(/^\d+$/);var VE=a.object({threadId:a.string().min(1)}),WE=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),y1=a.object({hostId:a.string().min(1),instanceId:a.string().min(1),hostName:a.string().min(1),hostType:ht,dataDir:a.string().min(1),protocolVersion:a.literal(ef),activeThreads:a.array(VE)}),S1=a.object({hostId:a.string().min(1),hostName:a.string().min(1),hostType:ht}).strict(),b1=a.object({hostId:a.string().min(1),hostKey:a.string().min(1)}).strict(),T1=a.object({sessionId:a.string().min(1),heartbeatIntervalMs:a.number().int().positive(),leaseTimeoutMs:a.number().int().positive(),trackedThreadTargets:a.array(WE)}).strict(),x1=a.object({sessionId:a.string().min(1),limit:UE,waitMs:UE}),E1=a.object({sessionId:a.string().min(1),threadId:a.string().min(1),projectId:a.string().min(1),path:a.string().min(1)}),D1=a.object({commands:a.array(sf)}),HE=a.object({producerEventId:ro,threadId:a.string().min(1),event:Gn}).strict(),I1=a.object({sessionId:a.string().min(1),events:a.array(HE)}),KE=a.enum(["thread_not_owned_by_host"]),ZE=a.object({producerEventId:ro,threadId:a.string().min(1),reason:KE}).strict(),_1=a.object({acceptedEvents:a.array(a.object({producerEventId:ro,threadId:a.string().min(1),sequence:a.number().int().nonnegative()}).strict()),rejectedEvents:a.array(ZE)}).strict(),w1=a.object({ok:a.literal(!0)}).strict(),GE=a.enum(as).extract(["work-status-changed","git-refs-changed","thread-storage-changed"]),QE=a.object({environmentId:a.string().min(1),change:GE}),P1=a.object({sessionId:a.string().min(1),...QE.shape}),nH=a.object({bufferDepth:a.number().int().nonnegative(),lastCommandCursor:a.number().int().nonnegative().nullable()}),JE=a.enum(["replaced","expired","daemon-disconnect"]),Je=a.string().min(1),po=a.string().min(1),XE=a.enum(["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"]),uf=a.object({seq:a.number().int().nonnegative(),dataBase64:Yt}).strict(),C1=a.object({type:a.literal("terminal.open"),requestId:po,terminalId:Je,threadId:a.string().min(1),environmentId:a.string().min(1),workspaceContext:Xn,cols:dt,rows:pt}).strict(),k1=a.object({type:a.literal("terminal.attach"),requestId:po,terminalId:Je,sinceSeq:a.number().int().nonnegative()}).strict(),R1=a.object({type:a.literal("terminal.input"),terminalId:Je,dataBase64:Yt}).strict(),A1=a.object({type:a.literal("terminal.resize"),terminalId:Je,cols:dt,rows:pt}).strict(),j1=a.object({type:a.literal("terminal.close"),terminalId:Je,reason:XE}).strict(),$1=a.discriminatedUnion("type",[a.object({type:a.literal("commands-available")}).strict(),a.object({type:a.literal("session-close"),reason:JE}).strict(),C1,k1,R1,A1,j1]),O1=a.object({type:a.literal("heartbeat")}).strict(),M1=a.object({type:a.literal("terminal.opened"),requestId:po,terminalId:Je,shell:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:dt,rows:pt}).strict(),z1=a.object({type:a.literal("terminal.output"),terminalId:Je,chunk:uf}).strict(),F1=a.object({type:a.literal("terminal.replay"),requestId:po,terminalId:Je,chunks:a.array(uf),nextSeq:a.number().int().nonnegative()}).strict(),B1=a.object({type:a.literal("terminal.exited"),terminalId:Je,exitCode:a.number().int().nullable(),closeReason:XE}).strict(),L1=a.object({type:a.literal("terminal.error"),requestId:po,terminalId:Je,code:a.string().min(1),message:a.string().min(1)}).strict(),N1=a.discriminatedUnion("type",[O1,M1,z1,F1,B1,L1]),q1=ih.pick({threadId:!0,providerThreadId:!0,turnId:!0,callId:!0,tool:!0,arguments:!0}).extend({sessionId:a.string().min(1)});var U1=a.object({sessionId:a.string().min(1),interaction:rh}),V1=a.discriminatedUnion("outcome",[a.object({outcome:a.literal("created"),interactionId:a.string().min(1),status:Ot}),a.object({outcome:a.literal("existing"),interactionId:a.string().min(1),status:Ot}),a.object({outcome:a.literal("rejected"),reason:a.string().min(1)})]),W1=a.object({sessionId:a.string().min(1),providerId:a.string().min(1),threadIds:a.array(a.string().min(1)).min(1),reason:a.string().min(1)}),H1=a.object({ok:a.literal(!0),interactionIds:a.array(a.string().min(1))});var K1=/^[a-zA-Z0-9_-]+$/;function mo(e={}){return{cliConfig:e.cliConfig??_x()}}function $e(e,t){if(!K1.test(e))throw new Error(`Invalid ID from ${t}: "${e}". IDs must contain only letters, digits, hyphens, and underscores.`);return e}function Xe(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function YE(e=mo()){return e.cliConfig.BB_SERVER_URL}function eD(e=mo()){return`http://${Gh}:${e.cliConfig.BB_HOST_DAEMON_PORT}`}function tD(e){let t=Xe(e);if(t)return $e(t,"--project flag");let r=Xe(process.env.BB_PROJECT_ID);if(r)return $e(r,"BB_PROJECT_ID")}function Ye(e){let t=Xe(e);if(t)return $e(t,"--thread flag");let r=Xe(process.env.BB_THREAD_ID);if(r)return $e(r,"BB_THREAD_ID")}function nD(e){let t=Xe(e);if(t)return $e(t,"--environment flag")}function rD(e){let t=tD(e);if(t)return t;throw new Error("Missing project context. Pass a project ID (for example --project <id>) or set BB_PROJECT_ID.")}function Z1(e){let t=Xe(e);if(t)return{id:$e(t,"--project flag"),source:"arg"};let r=Xe(process.env.BB_PROJECT_ID);if(r)return{id:$e(r,"BB_PROJECT_ID"),source:"env"}}function Yn(e){let t=Z1(e);if(t)return t;throw new Error("Missing project context. Pass a project ID (for example --project <id>) or set BB_PROJECT_ID.")}function cf(e){let t=Xe(e);if(t)return{id:$e(t,"<threadId> argument"),source:"arg"};let r=Xe(process.env.BB_THREAD_ID);if(r)return{id:$e(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId> or set BB_THREAD_ID.")}function Ne(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(e)return{id:$e(e,"<threadId> argument"),source:"arg"};if(t.self){let o=Ye();if(!o)throw new Error("--self requires BB_THREAD_ID to be set.");return{id:o,source:"self"}}let r=Xe(process.env.BB_THREAD_ID);if(r)return{id:$e(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId>, use --self, or set BB_THREAD_ID.")}function er(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(t.self){let r=Ye();if(!r)throw new Error("--self requires BB_THREAD_ID to be set.");return r}if(e)return $e(e,"<threadId> argument");throw new Error("Provide a thread ID or use --self to target the current thread.")}function ho(e=mo()){return{projectId:tD(),threadId:Ye(),serverUrl:e.cliConfig.BB_SERVER_URL}}var Q1=["low","medium","high","xhigh","max"];function R(e,t){return e.json?(console.log(JSON.stringify(t,null,2)),!0):!1}function re(e,t,r,o){o.json||e.source==="env"&&console.error(`${t} ${e.id} (from ${r})`)}function lf(e){let t=[...e.action==="commit"?["committed"]:[e.merged?"merged":"noop"]];console.log(`${e.message} [${t.join(", ")}]`)}async function un(e){if(!process.stdin.isTTY||!process.stdout.isTTY)throw new Error("Refusing destructive action without an interactive terminal. Re-run with --yes to confirm.");let t=G1({input:process.stdin,output:process.stdout});try{let o=(await t.question(`${e} [y/N] `)).trim().toLowerCase();return o==="y"||o==="yes"}finally{t.close()}}function df(e){return e instanceof Error?e.message:String(e)}function tr(e){if(e===void 0)return;let t=X.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid reasoning level '${e}'. Expected ${pf(Q1)}.`)}function ft(e,t){return new Error(`${e}: ${df(t)}`)}function pf(e){return e.map(t=>`'${t}'`).join(" or ")}var gt=class extends Error{exitCode;constructor(t,r){super(t),this.name="CliExitError",this.exitCode=r}};function k(e){return async(...t)=>{try{await e(...t)}catch(r){if(J1(r))throw r;if(r instanceof gt){console.error(`Error: ${r.message}`),process.exit(r.exitCode);return}console.error(`Error: ${df(r)}`),process.exit(1)}}}function J1(e){return e instanceof Error&&e.message.startsWith("process.exit:")}var X1=a.enum(["invalid_request","awaiting_user_interaction","thread_not_found","project_not_found","thread_archived","inactive_session","provider_unavailable","provider_timeout","provider_rpc_error","unsupported_operation","no_active_turn","internal_error","environment_not_ready","thread_not_writable","thread_environment_unavailable","host_unavailable","project_unavailable","parent_thread_invalid"]),vt=a.object({code:a.string().min(1),message:a.string(),details:a.unknown().optional(),retryable:a.boolean().optional()}),oD=a.object({environmentStatus:no,hasPath:a.boolean(),cleanupRequestedAt:a.number().int().nonnegative().nullable()}),iD=a.enum(["archived","stopping","deleted","not_started","not_active","errored","already_active","still_starting"]),aD=a.object({reason:iD,archivedAt:a.number().int().nonnegative().nullable(),stopRequestedAt:a.number().int().nonnegative().nullable(),threadStatus:Mt}),sD=a.enum(["never_attached","destroyed","destroying","provisioning","errored"]),uD=a.object({reason:sD,environmentStatus:no.nullable()}),cD=a.enum(["suspended","disconnected","destroyed"]),lD=a.object({reason:cD,hostStatus:ns.nullable(),suspendedAt:a.number().int().nonnegative().nullable(),destroyedAt:a.number().int().nonnegative().nullable()}),dD=a.enum(["deleted","pending_deletion"]),pD=a.object({reason:dD,deletedAt:a.number().int().nonnegative().nullable()}),mD=a.enum(["not_found","archived","deleted","wrong_project","not_a_manager"]),hD=a.enum(["parent","sender"]),fD=a.object({reason:mD,subject:hD}),gD=vt.extend({code:a.literal("environment_not_ready"),details:oD}),vD=vt.extend({code:a.literal("thread_not_writable"),details:aD}),yD=vt.extend({code:a.literal("thread_environment_unavailable"),details:uD}),SD=vt.extend({code:a.literal("host_unavailable"),details:lD}),bD=vt.extend({code:a.literal("project_unavailable"),details:pD}),TD=vt.extend({code:a.literal("parent_thread_invalid"),details:fD}),Y1=a.discriminatedUnion("code",[gD,vD,yD,SD,bD,TD]);var xD=["pending","completed","error","interrupted"],fo=a.enum(xD),ED=["waiting_for_approval","denied"],vs=a.enum(ED).nullable(),mf=a.discriminatedUnion("type",[a.object({type:a.literal("read"),command:a.string(),name:a.string(),path:a.string().nullable()}),a.object({type:a.literal("list_files"),command:a.string(),path:a.string().nullable()}),a.object({type:a.literal("search"),command:a.string(),query:a.string().nullable(),path:a.string().nullable()}),a.object({type:a.literal("unknown"),command:a.string()})]),go=a.object({id:a.string(),threadId:a.string(),turnId:a.string().nullable(),sourceSeqStart:a.number().int(),sourceSeqEnd:a.number().int(),startedAt:a.number(),createdAt:a.number()}),DD=a.object({webImages:a.number().int().nonnegative(),localImages:a.number().int().nonnegative(),localFiles:a.number().int().nonnegative(),imageUrls:a.array(a.string()),localImagePaths:a.array(a.string()),localFilePaths:a.array(a.string())}),ID=["message","steer"],_D=["pending","accepted"],wD=a.object({kind:a.enum(ID),status:a.enum(_D)}),PD=go.extend({kind:a.literal("conversation"),text:a.string(),attachments:DD.nullable()}),CD=PD.extend({role:a.literal("user"),initiator:oo,senderThreadId:a.string().nullable(),turnRequest:wD}),kD=PD.extend({role:a.literal("assistant"),turnRequest:a.null()}),hf=a.discriminatedUnion("role",[CD,kD]),RD=["generic","compaction","manager-assignment","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"],e2=a.enum(RD),t2=a.enum(["generic","compaction","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"]),AD=["assign","release","transfer"],jD=a.enum(AD),$D=a.object({action:jD,previousManagerThreadId:a.string().nullable(),previousManagerThreadTitle:a.string().nullable(),nextManagerThreadId:a.string().nullable(),nextManagerThreadTitle:a.string().nullable()}),ff=go.extend({kind:a.literal("system"),title:a.string(),detail:a.string().nullable(),status:fo.nullable()}),OD=ff.extend({systemKind:a.enum(["debug","error","reconnect"])}),MD=ff.extend({systemKind:a.literal("operation"),operationKind:t2,completedAt:a.number().nullable()}),zD=ff.extend({systemKind:a.literal("operation"),operationKind:a.literal("manager-assignment"),status:fo,managerAssignment:$D,completedAt:a.number().nullable()}),FD=a.discriminatedUnion("operationKind",[MD,zD]),gf=a.union([OD,FD]),BD=a.object({added:a.number().int().nonnegative(),removed:a.number().int().nonnegative()}),LD=a.object({path:a.string(),kind:a.string().nullable(),movePath:a.string().nullable(),diff:a.string().nullable(),diffStats:BD}),Ft=go.extend({kind:a.literal("work"),status:fo}),ND=Ft.extend({workKind:a.literal("command"),callId:a.string(),command:a.string(),cwd:a.string().nullable(),source:a.string().nullable(),output:a.string(),exitCode:a.number().nullable(),completedAt:a.number().nullable(),approvalStatus:vs,activityIntents:a.array(mf)}),qD=Ft.extend({workKind:a.literal("tool"),callId:a.string(),toolName:a.string(),toolArgs:a.record(a.string(),ne).nullable(),output:a.string(),completedAt:a.number().nullable(),approvalStatus:vs,activityIntents:a.array(mf)}),UD=Ft.extend({workKind:a.literal("file-change"),callId:a.string(),change:LD,stdout:a.string().nullable(),stderr:a.string().nullable(),approvalStatus:vs}),VD=Ft.extend({workKind:a.literal("web-search"),callId:a.string(),queries:a.array(a.string()),completedAt:a.number().nullable()}),WD=Ft.extend({workKind:a.literal("web-fetch"),callId:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),completedAt:a.number().nullable()}),n2=["waiting","denied"],r2=["pending","resolving","granted","denied","interrupted","expired"],HD=["pending","resolving","answered","interrupted","expired"],KD=["turn","session"],ZD=a.enum(KD),o2=a.object({itemId:a.string(),toolName:a.string().nullable()}),GD=Ft.extend({workKind:a.literal("approval"),interactionId:a.string(),target:o2}),i2=GD.extend({approvalKind:a.literal("file-edit"),lifecycle:a.enum(n2)}),a2=GD.extend({approvalKind:a.literal("permission-grant"),lifecycle:a.enum(r2),grantScope:ZD.nullable(),statusReason:a.string().nullable()}),QD=a.discriminatedUnion("approvalKind",[i2,a2]),JD=Ft.extend({workKind:a.literal("question"),interactionId:a.string(),lifecycle:a.enum(HD),questions:a.array(Ba),answers:a.record(a.string(),Ua).nullable(),statusReason:a.string().nullable()}),s2=Ft.extend({workKind:a.literal("delegation"),callId:a.string(),toolName:a.string(),subagentType:a.string().nullable(),description:a.string().nullable(),output:a.string(),completedAt:a.number().nullable(),childRows:a.array(a.lazy(()=>nr))}),vf=a.union([ND,qD,UD,VD,WD,QD,JD,s2]),XD=a.lazy(()=>go.extend({kind:a.literal("turn"),turnId:a.string().min(1),status:fo,summaryCount:a.number().int().nonnegative(),completedAt:a.number().nullable(),children:a.array(nr).nullable()})),u2=a.union([hf,vf,gf]),nr=a.lazy(()=>a.union([hf,vf,gf,XD]));var eI=a.enum(["auto","start","steer"]),tI=200,Sf=256,nI=100,rI=200,oI=100;function iI(e){return e.value.split(",").every(r=>r.length>0&&e.allowedValues.includes(r))}var aI=a.object({usedTokens:a.number(),modelContextWindow:a.number(),estimated:a.boolean()}),sI=a.iso.datetime(),uI=a.object({url:a.string().min(1),sha512:a.string().min(1),size:a.number().int().nonnegative()}),c2=a.object({schemaVersion:a.literal(1),channel:a.literal("latest"),platform:a.literal("macos"),version:a.string().min(1),releaseDate:sI,releaseName:a.string().min(1),releaseNotes:a.string().nullable(),minimumSystemVersion:a.string().min(1).nullable(),files:a.array(uI).min(1),path:a.string().min(1),sha512:a.string().min(1),stagingPercentage:a.number().min(0).max(100).nullable()}),l2=a.object({lastCheckedAt:sI.nullable(),latestVersion:a.string().min(1).nullable(),pendingVersion:a.string().min(1).nullable(),platform:a.literal("macos"),updateAvailable:a.boolean(),updateDownloaded:a.boolean(),version:a.string().min(1)}),d2=/[\u0000-\u001f\u007f\\:~^?*\[]/u,p2=/[ \t]/u,m2=new Set(["AUTO_MERGE","BISECT_HEAD","CHERRY_PICK_HEAD","FETCH_HEAD","HEAD","MERGE_HEAD","ORIG_HEAD","REVERT_HEAD"]);function h2(e){let t=e.split("/");return e.length>0&&e.trim().length>0&&!e.startsWith("-")&&!e.startsWith("/")&&e!=="@"&&!m2.has(e)&&!d2.test(e)&&!p2.test(e)&&!e.includes("..")&&!e.includes("@{")&&!e.includes("//")&&!e.endsWith("/")&&!e.endsWith(".")&&t.every(r=>r.length>0&&!r.startsWith(".")&&!r.endsWith(".lock"))}var bf=a.string().refine(h2,{message:"Invalid git branch name"}),cI=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:bf}),a.object({kind:a.literal("new")})]),lI=a.object({type:a.literal("unmanaged"),path:a.string().min(1).nullable(),branch:cI.optional()}),dI=a.discriminatedUnion("kind",[a.object({kind:a.literal("named"),name:bf}),a.object({kind:a.literal("default")})]),pI=a.object({type:a.literal("managed-worktree"),baseBranch:dI}),mI=a.discriminatedUnion("type",[lI,pI]),hI=a.object({type:a.literal("reuse"),environmentId:a.string().min(1)}),fI=a.object({type:a.literal("host"),hostId:a.string().min(1),workspace:mI}),Tf=a.discriminatedUnion("type",[hI,fI]),xf=a.enum(["app","cli"]),f2=a.object({projectId:a.string().min(1),providerId:a.string().min(1).optional(),origin:xf,title:a.string().min(1).optional(),input:a.array(Y).min(1),model:a.string().min(1).optional(),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional(),environment:Tf,parentThreadId:a.string().min(1).optional()}),g2=a.object({providerId:a.string().min(1),title:a.string().min(1).optional(),input:a.array(Y).min(1),model:a.string().min(1),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional(),environment:Tf,parentThreadId:a.string().min(1).optional()}),Ss=a.string().min(1).max(tI),gI=a.string().min(1).max(nI),v2=a.string().min(1).max(rI),vI=a.string().min(1).max(oI),yI=a.object({triggerType:a.literal("schedule"),cron:gI,timezone:vI}),SI=a.object({actionType:a.literal("scheduled-thread"),threadRequest:g2}),Ef=a.discriminatedUnion("triggerType",[yI]),bs=a.discriminatedUnion("actionType",[SI]),Df=a.string().min(1),y2=a.object({isValid:a.boolean(),validationIssues:a.array(Df)}),S2=a.object({id:a.string().min(1),projectId:a.string().min(1),name:Ss,enabled:a.boolean(),trigger:Ef,action:bs,autoArchive:a.boolean(),nextRunAt:a.number().nullable(),lastRunAt:a.number().nullable(),runCount:a.number().int().nonnegative(),isValid:a.boolean(),validationIssues:a.array(Df),createdAt:a.number(),updatedAt:a.number()}),b2=a.object({name:Ss,enabled:a.boolean().optional(),trigger:Ef,action:bs,autoArchive:a.boolean().optional()}),bI=a.object({enabled:a.boolean()}).strict(),TI=a.object({name:Ss,trigger:Ef,action:bs,autoArchive:a.boolean()}).partial().strict().refine(e=>e.name!==void 0||e.trigger!==void 0||e.action!==void 0||e.autoArchive!==void 0,"At least one field must be provided"),T2=a.union([bI,TI]),x2=a.object({input:a.array(Y).min(1),model:a.string().optional(),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional(),mode:eI,senderThreadId:a.string().min(1).optional()}),xI=a.object({type:a.literal("text"),text:a.string()}),E2=a.object({input:a.tuple([xI]),mode:a.literal("auto")}),EI=a.enum(["auto","steer"]),D2=a.object({input:a.array(Y).min(1),model:a.string().optional(),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional()}),I2=a.object({mode:EI}),_2=a.object({previousQueuedMessageId:a.string().min(1).nullable(),nextQueuedMessageId:a.string().min(1).nullable()}),w2=a.object({ok:a.literal(!0),queuedMessage:rs}),P2=a.array(is),DI=os,II=a.enum(["environment","host"]),C2=a.object({include:a.string().min(1).refine(e=>iI({allowedValues:II.options,value:e}),{message:"Invalid include"}).optional()}),k2=DI.extend({environment:lh.nullable().optional(),host:jh.nullable().optional()}),_I=a.array(oh);var wI=a.array(rs),R2=a.object({nonDeletedAssignedChildCount:a.number().int().nonnegative()}),A2=a.object({managerChildThreadsConfirmed:a.boolean()}),j2=a.object({title:a.string().min(1).nullable(),parentThreadId:a.string().min(1).nullable()}).partial().refine(e=>e.title!==void 0||e.parentThreadId!==void 0,"At least one field must be provided"),$2=a.object({mergeBaseBranch:a.string().min(1).nullable()}),PI=a.string().trim().min(1).transform(ts).superRefine((e,t)=>{let r=Ah(e);r&&t.addIssue({code:a.ZodIssueCode.custom,message:r})}),O2=a.object({hostId:a.string().min(1),type:a.literal("local_path"),path:PI}).strict(),CI=O2,M2=a.object({name:a.string().min(1),source:CI}),z2=a.object({previousProjectId:a.string().min(1).nullable(),nextProjectId:a.string().min(1).nullable()}),F2=a.object({previousThreadId:a.string().min(1).nullable(),nextThreadId:a.string().min(1).nullable()}),B2=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent").optional()}).strict(),L2=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent"),joinMode:a.literal("local")}).strict(),N2=a.union([L2,B2]),q2=a.object({expiresAt:a.number().int().positive(),hostId:a.string().min(1),joinCode:a.string().min(1),joinCommand:a.string().min(1)}),U2=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),V2=a.object({type:a.literal("host"),hostId:a.string().min(1)}),W2=a.discriminatedUnion("type",[V2]),H2=a.object({name:a.string().min(1).optional(),providerId:a.string().min(1).optional(),origin:xf,templateName:$t.optional(),model:a.string().min(1).optional(),serviceTier:he.optional(),reasoningLevel:X.optional(),permissionMode:ue.optional(),environment:W2}),kI=a.enum(["threads"]),K2=a.object({include:a.string().min(1).refine(e=>iI({allowedValues:kI.options,value:e}),{message:"Invalid include"}).optional()}),RI=a.object({query:a.string().min(1).max(Sf).optional(),limit:a.string().regex(/^\d+$/).optional(),environmentId:a.preprocess(e=>e===""?null:e,a.string().min(1).nullable())}),yo=a.enum(["true","false"]),Z2=RI.extend({includeFiles:yo,includeDirectories:yo}),G2=a.object({hostId:a.string().min(1)});var Q2=a.object({path:a.string().min(1)}),J2=a.object({threadType:ao}),X2=a.object({limit:a.string().regex(/^\d+$/)}).partial(),AI=a.array(Zm),Y2=a.enum(["missing_executable","timeout","failed"]),eO=a.object({providerId:a.string().min(1),code:Y2}),jI=a.object({providers:a.array(tn),models:a.array(en),selectedOnlyModels:a.array(en),modelLoadError:eO.nullable()}),tO=a.object({defaultExecutionOptions:lt.nullable(),queuedMessages:wI,executionOptions:jI,pendingInteractions:_I,promptHistory:AI}),yf=a.string("A merge base branch is required").min(1,"A merge base branch is required"),nO=a.object({mergeBaseBranch:yf.optional()}),rO=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted")}),a.object({target:a.literal("branch_committed"),mergeBaseBranch:yf}),a.object({target:a.literal("all"),mergeBaseBranch:yf}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),ys=a.enum(["old","new"]),YD=a.string().regex(/^[0-9a-f]{4,40}$/iu),oO=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted"),path:a.string().min(1),side:ys}),a.object({target:a.literal("branch_committed"),mergeBaseRef:YD,path:a.string().min(1),side:ys}),a.object({target:a.literal("all"),mergeBaseRef:YD,path:a.string().min(1),side:ys}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu),path:a.string().min(1),side:ys})]),iO=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),aO=a.object({ok:a.literal(!0),archivedThreadIds:a.array(a.string().min(1))}),sO=a.object({projectId:a.string().min(1),type:ao.optional(),parentThreadId:a.string().min(1).optional(),archived:a.enum(["true","false"]).optional(),managed:a.enum(["true","false"]).optional(),limit:a.string().regex(/^\d+$/).optional(),offset:a.string().regex(/^\d+$/).optional()}),Ts=a.enum(["conversation","standard"]),$I=a.object({anchorSeq:a.number().int().positive(),anchorId:a.string().min(1)}).strict(),OI=a.object({kind:a.enum(["latest","older"]),segmentLimit:a.number().int().positive(),returnedSegmentCount:a.number().int().nonnegative(),hasOlderRows:a.boolean(),olderCursor:$I.nullable()}).strict(),uO=a.object({managerTimelineView:Ts,includeNestedRows:a.enum(["true","false"]),segmentLimit:a.string().regex(/^\d+$/),beforeAnchorSeq:a.string().regex(/^[1-9]\d*$/),beforeAnchorId:a.string().min(1),summaryOnly:a.enum(["true","false"])}).partial().superRefine((e,t)=>{let r=e.beforeAnchorSeq!==void 0,o=e.beforeAnchorId!==void 0;r!==o&&t.addIssue({code:"custom",message:"beforeAnchorSeq and beforeAnchorId must be provided together",path:r?["beforeAnchorId"]:["beforeAnchorSeq"]})}),cO=a.object({turnId:a.string().min(1),sourceSeqStart:a.string().regex(/^\d+$/),sourceSeqEnd:a.string().regex(/^\d+$/),managerTimelineView:Ts.optional()}),lO=a.object({afterSeq:a.string().regex(/^\d+$/),limit:a.string().regex(/^\d+$/)}).partial(),dO=a.object({type:a.string().min(1),afterSeq:a.string().regex(/^\d+$/).optional(),waitMs:a.string().regex(/^\d+$/).optional()}),MI=a.object({query:a.string().min(1).max(Sf),limit:a.string().regex(/^\d+$/)}).partial(),pO=MI.extend({includeFiles:yo,includeDirectories:yo}),mO=a.object({path:a.string().min(1)}),hO=a.object({path:a.string().min(1)}),zI=a.enum(["folder","html","md","empty"]),fO=a.object({source:zI,hash:a.string().min(1)}),So=a.string().regex(/^[A-Za-z0-9_-]{1,80}$/u),FI=a.enum(["local","remote"]),BI=a.enum(["set","delete","hydrate","resync","revert"]),gO=a.object({source:FI,operation:BI,optimistic:a.boolean(),version:a.string().nullable(),error:a.string().nullable()}),LI=a.record(So,ne),NI=a.record(So,a.string().min(1)),vO=a.object({values:LI,versions:NI,hash:a.string().min(1)}),yO=a.object({key:So,value:ne,version:a.string().min(1),sizeBytes:a.number().int().nonnegative(),modifiedAtMs:a.number().nonnegative()}),SO=a.object({type:a.literal("status-data.changed"),threadId:a.string().min(1),key:So,value:ne.nullable(),deleted:a.boolean(),previousValue:ne.nullable(),previousValuePresent:a.boolean(),version:a.string().nullable(),writerClientId:a.string().nullable(),operationId:a.string().nullable()}),bO=a.object({providerId:a.string().min(1),hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),TO=a.object({hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),xO=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),EO=a.object({type:a.literal("local_path"),path:PI.optional(),isDefault:a.literal(!0).optional()}).strict().refine(e=>e.path!==void 0||e.isDefault!==void 0,"At least one field besides type must be provided"),DO=a.enum(["commit","squash_merge"]),qI=a.object({mergeBaseBranch:a.string().min(1)}).strict(),IO=a.discriminatedUnion("action",[a.object({action:a.literal("commit")}).strict(),a.object({action:a.literal("squash_merge"),options:qI}).strict()]),UI=a.object({ok:a.literal(!0),action:a.literal("commit"),message:a.string().min(1),commitSha:a.string().min(1),commitSubject:a.string().min(1)}),VI=a.object({ok:a.literal(!0),action:a.literal("squash_merge"),merged:a.boolean(),message:a.string().min(1),commitSha:a.string().min(1),commitSubject:a.string().min(1)}),_O=a.discriminatedUnion("action",[UI,VI]),WI=a.discriminatedUnion("kind",[a.object({kind:a.literal("commit_failed"),errorMessage:a.string()}),a.object({kind:a.literal("squash_merge_conflict"),conflictFiles:a.array(a.string())}),a.object({kind:a.literal("squash_merge_commit_failed"),stage:a.enum(["prep_commit","squash_commit"]),errorMessage:a.string()})]),wO=vt.extend({details:WI.optional()}),vo=a.object({id:a.string().min(1),threadId:a.string().min(1),environmentId:a.string().min(1),hostId:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:dt,rows:pt,status:Hm,exitCode:a.number().int().nullable(),closeReason:Km.nullable(),createdAt:a.number().int().nonnegative(),updatedAt:a.number().int().nonnegative(),lastUserInputAt:a.number().int().nonnegative().nullable()}),PO=a.object({sessions:a.array(vo)}),CO=a.object({cols:dt,rows:pt}).strict(),kO=a.object({mode:a.enum(["force","if-clean"]),reason:a.literal("user")}).strict(),RO=a.object({title:a.string().trim().min(1).max(200)}).strict(),HI=a.object({seq:a.number().int().nonnegative(),dataBase64:Yt}).strict(),AO=a.discriminatedUnion("type",[a.object({type:a.literal("input"),dataBase64:Yt}).strict(),a.object({type:a.literal("resize"),cols:dt,rows:pt}).strict(),a.object({type:a.literal("close"),reason:a.literal("user")}).strict(),a.object({type:a.literal("ping")}).strict()]),jO=a.discriminatedUnion("type",[a.object({type:a.literal("attached"),session:vo,nextSeq:a.number().int().nonnegative()}).strict(),a.object({type:a.literal("output"),chunk:HI}).strict(),a.object({type:a.literal("session-updated"),session:vo}).strict(),a.object({type:a.literal("exited"),session:vo}).strict(),a.object({type:a.literal("error"),code:a.string().min(1),message:a.string().min(1)}).strict(),a.object({type:a.literal("pong")}).strict()]),$O=a.object({turnId:a.string().min(1),sourceSeqStart:a.number().int().nonnegative(),sourceSeqEnd:a.number().int().nonnegative(),managerTimelineView:Ts.optional()}),OO=a.object({rows:a.array(nr)}),MO=a.object({rows:a.array(nr),activeThinking:Bh.nullable(),pendingTodos:Lh.nullable(),contextWindowUsage:aI.optional(),timelinePage:OI}),zO=a.object({text:a.string()}),KI=a.object({path:a.string(),name:a.string()}),ZI=a.enum(["file","directory"]),GI=a.object({kind:ZI,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),FO=a.object({files:a.array(KI),truncated:a.boolean()}),QI=a.object({paths:a.array(GI),truncated:a.boolean()}),BO=FO.extend({storageRootPath:a.string()}),LO=QI.extend({storageRootPath:a.string()}),JI=Ph.extend({sources:a.array(Ch)}),NO=JI.extend({threads:a.array(is)}),qO=a.object({featureFlags:Wm,hostDaemonPort:a.number().nullable(),voiceTranscriptionEnabled:a.boolean()}),UO=a.object({currentVersion:a.string(),latestVersion:a.string().nullable(),source:a.literal("npm"),updateAvailable:a.boolean(),isDevelopment:a.boolean(),upgradeCommand:a.string()}),VO=a.object({ok:a.literal(!0)}),WO=a.object({hostId:a.string().min(1)}).partial(),XI=a.object({name:$t,isActive:a.boolean()}),HO=a.object({templates:a.array(XI),activeName:$t}),KO=a.object({workspace:so.nullable()}),ZO=a.object({type:a.enum(["localImage","localFile"]),path:a.string(),name:a.string(),mimeType:a.string().optional(),sizeBytes:a.number()});function YI(e,t){return Qn(`${e}/api/v1`,t)}function If(e,t){return{api:{v1:YI(e,t)}}}function fe(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function _f({environment:e,isLocalHost:t,hostName:r}){let o=e.isWorktree?"worktree":"direct",n=uh({environment:{isWorktree:e.isWorktree,workspaceProvisionType:e.workspaceProvisionType}}),i=o==="worktree"?"Worktree":t?"Working locally":"Working remotely",s=t?"local":"remote";return{modeLabel:i,hostLabel:r??null,id:e.id,location:s,mode:o,workspaceDisplayKind:n}}function GO(e){if(e===null)return[];let t=[];return e.accessibility&&t.push("macOS accessibility"),e.launchServices&&t.push("macOS launch services"),e.calendar&&t.push("macOS calendar"),e.reminders&&t.push("macOS reminders"),e.preferences!=="none"&&t.push(`macOS preferences (${e.preferences.replace("_"," ")})`),e.contacts!=="none"&&t.push(`macOS contacts (${e.contacts.replace("_"," ")})`),e.automations==="all"?t.push("macOS automation (all apps)"):e.automations!=="none"&&e.automations.bundleIds.length>0&&t.push(e.automations.bundleIds.length===1?"macOS automation (1 app)":`macOS automation (${e.automations.bundleIds.length} apps)`),t}function cn(e){let t=[];return e.network?.enabled===!0&&t.push("Network access"),e.fileSystem&&(e.fileSystem.read.length>0&&t.push(e.fileSystem.read.length===1?"Read 1 path":`Read ${e.fileSystem.read.length} paths`),e.fileSystem.write.length>0&&t.push(e.fileSystem.write.length===1?"Write 1 path":`Write ${e.fileSystem.write.length} paths`)),[...t,...GO("macos"in e?e.macos:null)]}function QO(e){return e.map(t=>{switch(t.type){case"read":return`Read ${t.path}`;case"listFiles":return t.path?`List files in ${t.path}`:"List files";case"search":return t.query?`Search for ${t.query}${t.path?` in ${t.path}`:""}`:t.path?`Search in ${t.path}`:"Search files";case"unknown":return t.command;default:return fe(t)}})}function e_(e,t){if(t===null)return null;let r=cn(t);return r.length>0?`${e}: ${r.join(", ")}`:null}function wf(e){if(!mt(e.payload))return e.payload.questions.map(t=>t.prompt);switch(e.payload.subject.kind){case"command":{let t=QO(e.payload.subject.actions).map(o=>`Action: ${o}`),r=e_("Session grant",e.payload.subject.sessionGrant);return[`Command: ${e.payload.subject.command}`,...e.payload.subject.cwd?[`Cwd: ${e.payload.subject.cwd}`]:[],...t,...r?[r]:[]]}case"file_change":{let t=e_("Session grant",e.payload.subject.sessionGrant);return[`Item: ${e.payload.subject.itemId}`,...e.payload.subject.writeScope?[`Write root: ${e.payload.subject.writeScope}`]:[],...t?[t]:[]]}case"permission_grant":{let t=cn(e.payload.subject.permissions);return[...e.payload.subject.toolName?[`Tool: ${e.payload.subject.toolName}`]:[],...t.map(r=>`Permission: ${r}`)]}default:return fe(e.payload.subject)}}function JO(e){return{network:e.network?.enabled===!0?{enabled:!0}:null,fileSystem:e.fileSystem?{read:e.fileSystem.read,write:e.fileSystem.write}:null}}function Pf(e){switch(e){case"allow_once":return"approved";case"allow_for_session":return"approved for this session";case"deny":return"denied";default:return fe(e)}}function XO(e,t){return mt(e.payload)?e.payload.subject.kind==="permission_grant"?JO(e.payload.subject.permissions):t!=="allow_for_session"?null:e.payload.subject.kind==="command"||e.payload.subject.kind==="file_change"?e.payload.subject.sessionGrant:null:null}function xs(e,t){return t==="deny"?{decision:t}:{decision:t,grantedPermissions:XO(e,t)}}function Cf({question:e,value:t}){return e.options?.find(r=>r.value===t)?.label??t}function kf(e){let{interaction:t,surface:r}=e;if(!mt(t.payload))return t.payload.questions[0]?.prompt??"User answer requested";if(t.payload.reason)return t.payload.reason;switch(t.payload.subject.kind){case"command":return t.payload.subject.command;case"file_change":return"File changes pending approval";case"permission_grant":break;default:return fe(t.payload.subject)}if(r==="app"){let o=cn(t.payload.subject.permissions);return o.length>0?o.join(" . "):"Review requested permissions"}return t.payload.subject.toolName??"Permission request"}function YO(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function t_(e){return YO(e)?e:null}function rr(e,t){if(typeof e=="string"){let o=e.replace(/\s+/g," ").trim();return o.length===0?null:t?.maxLength&&o.length>t.maxLength?`${o.slice(0,t.maxLength-1)}...`:o}if(Array.isArray(e)){for(let o of e){let n=rr(o,t);if(n)return n}return null}let r=t_(e);if(!r)return null;if(typeof r.message=="string"){let o=rr(r.message,t);if(o)return o}for(let o of t?.legacyKeys??["detail"]){let n=rr(r[o],t);if(n)return n}return null}var eM=75e3,tM=new Set(["arrayBuffer","blob","bytes","formData","json","text"]);function nM(e){let t=e/1e3;return Number.isInteger(t)?t===1?"1 second":`${t} seconds`:`${e} ms`}var or=class extends Error{constructor(t){super(`BB request timed out after ${nM(t)}.`),this.name="CliRequestTimeoutError"}};function j(e){return If(e,{fetch:rM({timeoutMs:eM})})}function rM(e){return aM(e.timeoutMs),async(t,r)=>{let o=AbortSignal.timeout(e.timeoutMs),n=r?.signal?AbortSignal.any([r.signal,o]):o,i={requestSignal:n,timeoutSignal:o,timeoutMs:e.timeoutMs};try{let s=await fetch(t,{...r,signal:n});return n_({context:i,response:s})}catch(s){throw Rf(i,s)?new or(e.timeoutMs):s}}}async function oM(e){try{return await e.read()}catch(t){throw Rf(e.context,t)?new or(e.context.timeoutMs):t}}function n_(e){let{context:t,response:r}=e,o;return new Proxy(r,{get(n,i){if(tM.has(i)){let s=Reflect.get(n,i,n);if(typeof s=="function")return()=>oM({context:t,read:s.bind(n)})}switch(i){case"body":return n.body===null?null:(o??=iM({context:t,stream:n.body}),o);case"clone":return()=>n_({context:t,response:n.clone()});default:{let s=Reflect.get(n,i,n);return typeof s=="function"?s.bind(n):s}}}})}function iM(e){let t=null,r=()=>(t??=e.stream.getReader(),t);return new ReadableStream({async pull(o){try{let n=await r().read();if(n.done){o.close();return}o.enqueue(n.value)}catch(n){if(Rf(e.context,n)){o.error(new or(e.context.timeoutMs));return}o.error(n)}},cancel(o){return r().cancel(o)}})}function Rf(e,t){return e.timeoutSignal.aborted&&t===e.timeoutSignal.reason?!0:e.timeoutSignal.aborted&&e.requestSignal.reason===e.timeoutSignal.reason&&t instanceof Error&&(t.name==="AbortError"||t.name==="TimeoutError")}function aM(e){if(!Number.isFinite(e)||e<0)throw new RangeError("CLI request timeout must be a non-negative finite number.")}function sM(e,t){if(!(e instanceof TypeError))return!1;let{cause:r}=e;return!r||typeof r!="object"?!1:"code"in r&&r.code===t}var uM={legacyKeys:["detail"]};async function cM(e){let t;try{t=await e.text()}catch(i){if(i instanceof or)throw i;t=""}let r=t.replace(/\s+/g," ").trim();if(r.length===0)return e.statusText;if(!((e.headers.get("content-type")?.includes("application/json")??!1)||r.startsWith("{")||r.startsWith("[")))return r;try{let i=JSON.parse(r);return rr(i,uM)??r}catch{return r}}async function w(e){let r=await(await lM(e)).text();return JSON.parse(r)}async function lM(e){let t;try{t=await e}catch(r){throw sM(r,"ECONNREFUSED")?new Error("Cannot connect to BB server. Ensure it is running and BB_SERVER_URL is correct."):r}if(!t.ok){let r=await cM(t);throw new Error(`HTTP ${t.status}: ${r}`)}return t}function r_(e,t){let r=e.command("environment").description("Inspect and operate on first-class environments");r.command("show <id>").description("Show environment details").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=await w(i.api.v1.environments[":id"].$get({param:{id:o}}));R(n,s)||(console.log(`Environment: ${s.id}`),console.log(` Project: ${s.projectId}`),console.log(` Host: ${s.hostId}`),console.log(` Status: ${s.status}`),s.path&&console.log(` Path: ${s.path}`),console.log(` Managed: ${s.managed}`),console.log(` Provision type: ${s.workspaceProvisionType}`),s.branchName&&console.log(` Branch: ${s.branchName}`),s.defaultBranch&&console.log(` Default branch: ${s.defaultBranch}`),s.mergeBaseBranch&&console.log(` Merge base: ${s.mergeBaseBranch}`),console.log(` Git repo: ${s.isGitRepo}`),console.log(` Worktree: ${s.isWorktree}`),console.log(` Created: ${new Date(s.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(s.updatedAt).toLocaleString()}`))})),r.command("update <id>").description("Update environment metadata").option("--merge-base-branch <branch>","Set the merge-base branch override").option("--clear-merge-base-branch","Clear the merge-base branch override").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t());if(n.mergeBaseBranch&&n.clearMergeBaseBranch)throw new Error("Cannot combine --merge-base-branch with --clear-merge-base-branch.");if(!n.mergeBaseBranch&&!n.clearMergeBaseBranch)throw new Error("No changes requested. Provide --merge-base-branch or --clear-merge-base-branch.");let s=await w(i.api.v1.environments[":id"].$patch({param:{id:o},json:{mergeBaseBranch:n.clearMergeBaseBranch?null:n.mergeBaseBranch??null}}));R(n,s)||(console.log(`Environment ${s.id} updated`),console.log(s.mergeBaseBranch?`Merge base branch: ${s.mergeBaseBranch}`:"Merge base branch cleared"))})),r.command("commit <id>").description("Commit changes in an environment").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s;try{s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"commit"}}))}catch(u){throw ft(`Failed to commit in environment ${o}`,u)}R(n,s)||lf(s)})),r.command("squash-merge <id>").description("Squash-merge changes in an environment").requiredOption("--merge-base-branch <branch>","Merge-base branch").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"squash_merge",options:{mergeBaseBranch:n.mergeBaseBranch}}}));R(n,s)||lf(s)}))}var Ig=Iu(Zw(),1);var Eg=[{id:"agentThreadMessage",body:'[bb message from thread:{{senderThreadId}}; reply with `bb thread tell {{senderThreadId}} "<your response>"`]\n\n{{messageText}}',fileName:"agent-thread-message.md",kind:"prompt",title:"Agent Thread Message",summary:"Wraps a bb CLI message from one agent thread to another.",intent:"Tell the receiving agent which thread sent the message and how to reply.",editingNotes:"Keep the response command in the prefix so standard agent instructions do not need special cross-thread message guidance.",variables:{senderThreadId:"The thread ID that sent the message.",messageText:"The original message text sent by the agent."}},{id:"bbGuideAsync",body:`Async scheduled nudges
297
+ Related guides:
298
+
299
+ bb guide overview
300
+ bb guide managers
301
+ bb guide manager-templates
302
+ bb guide async`,fileName:"bb-guide-app.md",kind:"instruction",title:"bb Guide - Apps",summary:"Thread app storage, browser API, CLI, and styling reference.",intent:"Explain the only supported way to build manager-visible dashboards and interactive thread apps.",editingNotes:"Keep this aligned with routes/threads/apps.ts, app-client-script.ts, app CLI commands, and the default status app template.",variables:{}},{id:"bbGuideAsync",body:`Async scheduled nudges
96
303
 
97
304
  Use \`ASYNC.md\` in thread storage when the system should wake a manager thread
98
305
  later for reminders, recurring check-ins, or follow-up work.
@@ -155,10 +362,10 @@ Host status values: connected, disconnected.`,fileName:"bb-guide-hosts.md",kind:
155
362
 
156
363
  Manager templates are named bundles of starter files for manager thread
157
364
  storage. When bb starts a new manager thread, the server resolves a template
158
- and copies that template's top-level regular files into the new manager's
159
- thread storage before the host daemon receives the initial \`thread.start\`
160
- command. This is how a fresh manager can boot with starter \`PREFERENCES.md\`,
161
- \`STATUS.html\`, \`ASYNC.md\`, or other storage files.
365
+ and recursively copies regular files into the new manager's thread storage
366
+ before the host daemon receives the initial \`thread.start\` command. This is how
367
+ a fresh manager can boot with starter \`PREFERENCES.md\`, \`ASYNC.md\`, and
368
+ \`apps/status/\` files.
162
369
 
163
370
  Directory layout:
164
371
 
@@ -166,10 +373,22 @@ Directory layout:
166
373
  <bb-data-dir>/manager-templates/
167
374
  active
168
375
  default/
169
- STATUS.html
376
+ apps/
377
+ status/
378
+ manifest.json
379
+ assets/
380
+ index.html
381
+ data/
382
+ state.json
170
383
  sawyer-next/
171
384
  PREFERENCES.md
172
- STATUS.html
385
+ apps/
386
+ status/
387
+ manifest.json
388
+ assets/
389
+ index.html
390
+ data/
391
+ state.json
173
392
  \`\`\`
174
393
 
175
394
  In this guide, \`<bb-data-dir>\` is your bb data directory. Packaged installs
@@ -186,17 +405,24 @@ Each subdirectory is a template set. The directory name is the template name.
186
405
 
187
406
  What gets seeded:
188
407
 
189
- bb copies every top-level regular file from the selected template directory
408
+ bb recursively copies every regular file from the selected template directory
190
409
  into \`<bb-data-dir>/thread-storage/<manager-thread-id>/\`. There is no filename
191
- allowlist: \`PREFERENCES.md\`, \`STATUS.html\`, \`STATUS.md\`, and \`ASYNC.md\` are
192
- conventions, not the only files allowed. Subdirectories and symlinks are
193
- ignored. Dotfiles are copied if they are regular files. Existing destination
194
- files are left as-is; seeding does not overwrite, delete, or refresh files.
410
+ allowlist: \`PREFERENCES.md\`, \`ASYNC.md\`, \`apps/status/manifest.json\`, and
411
+ \`apps/status/data/state.json\` are conventions, not the only files allowed.
412
+ Symlinks and other non-regular files are ignored. Existing destination files
413
+ are left as-is; seeding does not overwrite, delete, or refresh files.
195
414
 
196
415
  If \`default/\` is missing, bb uses a bundled fallback template containing only
197
- \`STATUS.html\`. If \`default/\` exists but is empty, no bundled files are mixed
198
- in. If a selected non-default template is missing, bb logs a warning and skips
199
- storage seeding.
416
+ the \`status\` app:
417
+
418
+ \`\`\`text
419
+ apps/status/manifest.json
420
+ apps/status/assets/index.html
421
+ apps/status/data/state.json
422
+ \`\`\`
423
+
424
+ If \`default/\` exists but is empty, no bundled files are mixed in. If a selected
425
+ non-default template is missing, bb logs a warning and skips storage seeding.
200
426
 
201
427
  When it runs:
202
428
 
@@ -233,8 +459,8 @@ Creating a template:
233
459
  \`\`\`bash
234
460
  DATA_DIR="\${BB_DATA_DIR:-$HOME/.bb}"
235
461
  mkdir -p "$DATA_DIR/manager-templates/sawyer-next"
236
- cp "$DATA_DIR/manager-templates/default/STATUS.html" \\
237
- "$DATA_DIR/manager-templates/sawyer-next/STATUS.html"
462
+ cp -R "$DATA_DIR/manager-templates/default/apps" \\
463
+ "$DATA_DIR/manager-templates/sawyer-next/apps"
238
464
  $EDITOR "$DATA_DIR/manager-templates/sawyer-next/PREFERENCES.md"
239
465
  printf 'sawyer-next\\n' > "$DATA_DIR/manager-templates/active"
240
466
  \`\`\`
@@ -242,25 +468,28 @@ printf 'sawyer-next\\n' > "$DATA_DIR/manager-templates/active"
242
468
  Promoting current preferences:
243
469
 
244
470
  Managers see their storage path in runtime context. To save the current
245
- manager's \`PREFERENCES.md\` to the default template:
471
+ manager's \`PREFERENCES.md\` and status app starter state to the default
472
+ template:
246
473
 
247
474
  \`\`\`bash
248
475
  DATA_DIR="\${BB_DATA_DIR:-$HOME/.bb}"
249
476
  THREAD_STORAGE="/absolute/path/from-manager-runtime-context"
250
- mkdir -p "$DATA_DIR/manager-templates/default"
477
+ mkdir -p "$DATA_DIR/manager-templates/default/apps/status"
251
478
  cp "$THREAD_STORAGE/PREFERENCES.md" \\
252
479
  "$DATA_DIR/manager-templates/default/PREFERENCES.md"
480
+ cp -R "$THREAD_STORAGE/apps/status/." \\
481
+ "$DATA_DIR/manager-templates/default/apps/status/"
253
482
  printf 'default\\n' > "$DATA_DIR/manager-templates/active"
254
483
  \`\`\`
255
484
 
256
- Copy \`STATUS.html\`, \`STATUS.md\`, or \`ASYNC.md\` into the same template
485
+ Copy \`ASYNC.md\` or additional \`apps/<id>/\` directories into the same template
257
486
  directory when those starter files should be shared too.
258
487
 
259
488
  Limitations and gotchas:
260
489
 
261
490
  - There is no dedicated CLI or UI for changing \`active\`.
262
491
  - Template file contents are not schema-validated before copying.
263
- - Only top-level regular files are copied; template subdirectories are ignored.
492
+ - Symlinks and other non-regular files are ignored.
264
493
  - Existing thread storage files are never overwritten by seeding.
265
494
  - A user-authored \`default/\` directory fully replaces the bundled fallback,
266
495
  even if it is empty.
@@ -271,7 +500,7 @@ Related guides:
271
500
 
272
501
  bb guide overview
273
502
  bb guide managers
274
- bb guide styling
503
+ bb guide app
275
504
  bb guide async`,fileName:"bb-guide-manager-templates.md",kind:"instruction",title:"bb Guide - Manager Templates",summary:"Manager storage template reference.",intent:"Explain how manager-templates seed new manager thread storage.",editingNotes:"Keep this factual against manager-storage-templates.ts and the manager hire API/CLI.",variables:{}},{id:"bbGuideManagers",body:`Manager commands
276
505
 
277
506
  Managers are long-running threads that coordinate work across other threads.
@@ -343,11 +572,11 @@ Run \`bb guide <chapter>\` for command details:
343
572
  managers Hiring and managing project managers
344
573
  manager-templates
345
574
  Seeding new manager storage from template bundles
346
- status-state Persistent reactive JSON state for STATUS dashboards
575
+ app Thread apps, the status app, app data, browser APIs, and styling
347
576
  providers Discovering providers and models
348
577
  projects Project CRUD and sources
349
578
  hosts Listing and understanding hosts
350
- styling How to style STATUS/ and STATUS.html surfaces to match the bb UI
579
+ styling Alias for app
351
580
  async Defining scheduled nudges with ASYNC.md`,fileName:"bb-guide-overview.md",kind:"instruction",title:"bb Guide Overview",summary:"System overview and chapter index for the bb CLI guide.",intent:"Orient agents to bb core concepts and help them find the right guide chapter.",editingNotes:"Keep this concise. Concepts only \u2014 command details belong in chapter files.",variables:{}},{id:"bbGuideProjects",body:`Project commands
352
581
 
353
582
  A project maps to a code repository. All threads belong to a project.
@@ -389,472 +618,7 @@ Providers are agent backends (e.g., codex, claude-code). Each supports different
389
618
 
390
619
  Use these before spawning threads if you are unsure which provider or model to use.
391
620
  When provider and model are omitted from bb thread spawn, the project's remembered
392
- defaults apply.`,fileName:"bb-guide-providers.md",kind:"instruction",title:"bb Guide \u2014 Providers",summary:"Command reference for discovering providers and models.",intent:"Provide complete provider command documentation for agents.",editingNotes:"Keep flags accurate against the CLI implementation.",variables:{}},{id:"bbGuideStatusState",body:`STATUS state
393
-
394
- \`window.bbStatusState\` is injected into the root manager STATUS document served
395
- from \`/api/v1/threads/<thread-id>/status/\`. Use it when \`STATUS/index.html\` or
396
- \`STATUS.html\` needs durable JSON state for controls, forms, filters, task
397
- boards, or other dashboard UI that should survive iframe reloads and update
398
- across open tabs.
399
-
400
- Do not use it for rendering source files or static assets. Keep ordinary HTML,
401
- CSS, JS, images, and fonts in \`STATUS/\`; use STATUS state for data the dashboard
402
- and manager agent both need to read or update.
403
-
404
- Storage layout:
405
-
406
- \`\`\`text
407
- $BB_THREAD_STORAGE/
408
- STATUS/
409
- index.html
410
- STATUS-data/
411
- tasks.json
412
- dashboard-prefs.json
413
- \`\`\`
414
-
415
- \`BB_THREAD_STORAGE\` is the canonical path to the current thread's durable
416
- storage. Each key is one flat file at \`STATUS-data/<key>.json\`. Keys must match
417
- \`^[A-Za-z0-9_-]{1,80}$\`; no colons, slashes, dots, spaces, or nested paths. The
418
- file stores the raw JSON value, not an envelope.
419
-
420
- Agent writes:
421
-
422
- Write via a temp file in the same directory, then \`mv\` it into place. Same-dir
423
- rename is atomic on macOS and Linux, and the server-wide watcher broadcasts the
424
- committed change on \`thread:<thread-id>:status-data\`.
425
-
426
- \`\`\`bash
427
- key="tasks"
428
- json='[{"id":"task-1","title":"Review","status":"todo"}]'
429
- dir="$BB_THREAD_STORAGE/STATUS-data"
430
- mkdir -p "$dir"
431
- tmp=$(mktemp "$dir/.\${key}.XXXXXX")
432
- printf '%s\\n' "$json" > "$tmp" && mv "$tmp" "$dir/\${key}.json"
433
- \`\`\`
434
-
435
- Delete with \`rm\`:
436
-
437
- \`\`\`bash
438
- rm -f "$BB_THREAD_STORAGE/STATUS-data/tasks.json"
439
- \`\`\`
440
-
441
- Malformed JSON or invalid key filenames are ignored and logged by the server;
442
- they do not broadcast. STATUS state is last-write-wins. There is no
443
- compare-and-set path for agent filesystem writes.
444
-
445
- Browser API:
446
-
447
- \`\`\`ts
448
- type StatusStateSelector = StatusDataKey | "*";
449
-
450
- interface BbStatusState {
451
- list(): Promise<Record<StatusDataKey, JsonValue>>;
452
- get(key: StatusDataKey): Promise<JsonValue | undefined>;
453
- set(key: StatusDataKey, value: JsonValue): Promise<void>;
454
- delete(key: StatusDataKey): Promise<void>;
455
- on(selector: StatusStateSelector, callback: StatusStateChangeCallback): () => void;
456
- }
457
-
458
- type StatusStateChangeCallback = (
459
- newValue: JsonValue | undefined,
460
- prevValue: JsonValue | undefined,
461
- key: StatusDataKey,
462
- event: StatusStateChangeEvent,
463
- ) => void;
464
-
465
- interface StatusStateChangeEvent {
466
- source: "local" | "remote";
467
- operation: "set" | "delete" | "hydrate" | "resync" | "revert";
468
- optimistic: boolean;
469
- version: string | null;
470
- error: string | null;
471
- }
472
- \`\`\`
473
-
474
- Hydration and reactivity:
475
-
476
- - The global exists before dashboard scripts run.
477
- - \`on(key, cb)\` fires for an existing hydrated key as soon as the listener is
478
- registered. \`on("*", cb)\` fires once for each existing key.
479
- - Local \`set\` and \`delete\` calls update the in-memory state optimistically and
480
- fire callbacks with \`source: "local"\` and \`optimistic: true\`.
481
- - Agent filesystem writes, browser writes, and deletes broadcast over bb's
482
- realtime WebSocket on the \`thread:<thread-id>:status-data\` channel.
483
- - On WebSocket reconnect, the client lists current state again and fires
484
- \`operation: "resync"\` callbacks for differences.
485
- - STATUS-data writes do not affect \`status-version\`, so they do not reload the
486
- iframe document.
487
-
488
- Minimal dashboard example:
489
-
490
- \`\`\`html
491
- <button id="add">Add task</button>
492
- <pre id="out"></pre>
493
- <script>
494
- const out = document.querySelector("#out");
495
-
496
- function render(value) {
497
- out.textContent = JSON.stringify(value ?? [], null, 2);
498
- }
499
-
500
- window.bbStatusState.on("tasks", render);
501
-
502
- document.querySelector("#add").addEventListener("click", async () => {
503
- const current = (await window.bbStatusState.get("tasks")) ?? [];
504
- await window.bbStatusState.set("tasks", [
505
- ...current,
506
- { id: crypto.randomUUID(), title: "New task", status: "todo" }
507
- ]);
508
- });
509
- </script>
510
- \`\`\`
511
-
512
- Sending a message to the manager:
513
-
514
- \`window.bbThreadTell(text)\` is also injected into the same root STATUS document.
515
- It sends a normal follow-up message to the manager thread that owns the iframe:
516
-
517
- \`\`\`ts
518
- window.bbThreadTell(text: string): Promise<void>
519
- \`\`\`
520
-
521
- There is no thread id argument. The iframe runtime uses the thread context from
522
- \`/api/v1/threads/<thread-id>/status/\` and posts to:
523
-
524
- \`\`\`http
525
- POST /api/v1/threads/<thread-id>/send
526
- \`\`\`
527
-
528
- The request body is:
529
-
530
- \`\`\`json
531
- {
532
- "input": [{ "type": "text", "text": "hello" }],
533
- "mode": "auto"
534
- }
535
- \`\`\`
536
-
537
- The promise resolves when the server accepts the send route. 4xx responses
538
- reject with the server error message and attach \`status\`, \`code\`, and
539
- \`retryable\` fields when present. 5xx responses reject with
540
- \`bbThreadTell failed: server error (<status>)\`.
541
-
542
- Example component pattern:
543
-
544
- \`\`\`html
545
- <textarea id="manager-message" rows="3"></textarea>
546
- <button id="manager-send" type="button">Send to manager</button>
547
- <output id="manager-send-status"></output>
548
- <script>
549
- const textarea = document.querySelector("#manager-message");
550
- const status = document.querySelector("#manager-send-status");
551
-
552
- document.querySelector("#manager-send").addEventListener("click", async () => {
553
- status.textContent = "";
554
- try {
555
- await window.bbThreadTell(textarea.value);
556
- textarea.value = "";
557
- status.textContent = "sent";
558
- setTimeout(() => {
559
- if (status.textContent === "sent") status.textContent = "";
560
- }, 2000);
561
- } catch (error) {
562
- status.textContent =
563
- error instanceof Error ? error.message : "Message failed";
564
- }
565
- });
566
- </script>
567
- \`\`\`
568
-
569
- Limits:
570
-
571
- There is no new bb-specific size cap for v1. Existing browser memory, file
572
- transport, and JSON parse costs still apply. Keep STATUS-data values focused on
573
- dashboard state, not large artifacts.
574
-
575
- Related guides:
576
-
577
- bb guide overview
578
- bb guide managers
579
- bb guide styling`,fileName:"bb-guide-status-state.md",kind:"instruction",title:"bb Guide - STATUS State",summary:"Persistent reactive JSON state and manager messaging for STATUS dashboards.",intent:"Explain window.bbStatusState, window.bbThreadTell, direct STATUS-data storage, and atomic agent writes.",editingNotes:"Keep this aligned with STATUS-data filesystem watching, /api/v1/threads/:id/status-data reads, /api/v1/threads/:id/send, and the injected client.",variables:{}},{id:"bbGuideStyling",body:`Status styling
580
-
581
- \`STATUS/index.html\` and \`STATUS.html\` render in an unsandboxed iframe in the bb
582
- secondary panel. External resources such as Google Fonts, Tailwind CDN, remote
583
- images, and stylesheets load normally. For local assets, use the folder form:
584
- put \`index.html\` plus any local images, CSS, JS, or fonts inside \`STATUS/\`, then
585
- reference them with relative URLs like \`style.css\`, \`app.js\`, or \`logo.png\`.
586
- The dashboard auto-refreshes when resolved STATUS content changes.
587
-
588
- Unless the user asks for a different visual direction, make the HTML status
589
- surface look like bb: dense, minimal, and built from the same tokens. Use
590
- Tailwind for layout, spacing, grids, flex rows, responsive behavior, and small
591
- utility styling, then use the bb CSS variables below for colors, fonts, borders,
592
- radius, and shadows.
593
-
594
- Load Tailwind and bb's app fonts with:
595
-
596
- \`\`\`html
597
- <script src="https://cdn.tailwindcss.com"></script>
598
- <link rel="preconnect" href="https://fonts.googleapis.com">
599
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
600
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
601
- \`\`\`
602
-
603
- bb's app dark mode is class-based on the parent app root. The iframe does not
604
- inherit that \`.dark\` class, so an HTML status document that wants light and dark
605
- rendering should use \`@media (prefers-color-scheme: dark)\` as the closest
606
- available signal for the user's OS theme.
607
-
608
- Paste this starter block into \`STATUS/index.html\` or \`STATUS.html\` so the page
609
- uses bb's actual design tokens:
610
-
611
- \`\`\`html
612
- <style>
613
- :root {
614
- color-scheme: light;
615
- --background: oklch(0.9551 0 0);
616
- --foreground: oklch(0.3211 0 0);
617
- --card: oklch(0.9702 0 0);
618
- --card-foreground: oklch(0.3211 0 0);
619
- --popover: oklch(0.9702 0 0);
620
- --popover-foreground: oklch(0.3211 0 0);
621
- --primary: oklch(0.4891 0 0);
622
- --primary-foreground: oklch(1 0 0);
623
- --secondary: oklch(0.9067 0 0);
624
- --secondary-foreground: oklch(0.3211 0 0);
625
- --muted: oklch(0.8853 0 0);
626
- --muted-foreground: oklch(0.5103 0 0);
627
- --accent: oklch(0.9 0 0);
628
- --accent-foreground: oklch(0.3211 0 0);
629
- --state-hover: oklch(0.92 0 0);
630
- --state-active: oklch(0.88 0 0);
631
- --destructive: oklch(0.5594 0.19 25.8625);
632
- --destructive-foreground: oklch(1 0 0);
633
- --attention: oklch(0.74 0.15 80);
634
- --attention-foreground: oklch(0.3211 0 0);
635
- --warning: oklch(0.7 0.16 50);
636
- --warning-foreground: oklch(0.3211 0 0);
637
- --success: oklch(0.7 0.15 155);
638
- --success-foreground: oklch(0.3211 0 0);
639
- --diff-added: oklch(0.5 0.13 163);
640
- --diff-removed: oklch(0.5 0.17 28);
641
- --border: oklch(0.8576 0 0);
642
- --input: oklch(0.9067 0 0);
643
- --ring: oklch(0.4891 0 0);
644
- --chart-1: oklch(0.4891 0 0);
645
- --chart-2: oklch(0.4863 0.0361 196.0278);
646
- --chart-3: oklch(0.6534 0 0);
647
- --chart-4: oklch(0.7316 0 0);
648
- --chart-5: oklch(0.8078 0 0);
649
- --sidebar: oklch(0.937 0 0);
650
- --sidebar-foreground: oklch(0.3211 0 0);
651
- --sidebar-primary: oklch(0.4891 0 0);
652
- --sidebar-primary-foreground: oklch(1 0 0);
653
- --sidebar-accent: oklch(0.8078 0 0);
654
- --sidebar-accent-foreground: oklch(0.3211 0 0);
655
- --sidebar-border: oklch(0.8576 0 0);
656
- --sidebar-ring: oklch(0.4891 0 0);
657
- --font-sans: "Inter Variable", Inter, sans-serif;
658
- --font-serif: Georgia, serif;
659
- --font-mono: "Fira Code", monospace;
660
- --radius: 0.35rem;
661
- --radius-sm: calc(var(--radius) - 4px);
662
- --radius-md: calc(var(--radius) - 2px);
663
- --radius-lg: var(--radius);
664
- --radius-xl: calc(var(--radius) + 4px);
665
- --bb-sidebar-row-height: 1.75rem;
666
- --bb-sidebar-row-height-coarse: 2.5rem;
667
- --shadow-x: 0px;
668
- --shadow-y: 2px;
669
- --shadow-blur: 0px;
670
- --shadow-spread: 0px;
671
- --shadow-opacity: 0.15;
672
- --shadow-color: hsl(0 0% 20% / 0.1);
673
- --shadow-2xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
674
- --shadow-xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
675
- --shadow-sm:
676
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 1px 2px -1px hsl(0 0% 20% / 0.15);
677
- --shadow:
678
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 1px 2px -1px hsl(0 0% 20% / 0.15);
679
- --shadow-md:
680
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 2px 4px -1px hsl(0 0% 20% / 0.15);
681
- --shadow-lg:
682
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 4px 6px -1px hsl(0 0% 20% / 0.15);
683
- --shadow-xl:
684
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 8px 10px -1px hsl(0 0% 20% / 0.15);
685
- --shadow-2xl: 0px 2px 0px 0px hsl(0 0% 20% / 0.38);
686
- --tracking-normal: 0em;
687
- --spacing: 0.25rem;
688
- --icon-stroke-width: 1.75;
689
- --text-sm: 0.8125rem;
690
- --text-base: 0.9375rem;
691
- --text-base--line-height: 1.375rem;
692
- --ansi-0: #000000;
693
- --ansi-1: #a11616;
694
- --ansi-2: #13704a;
695
- --ansi-3: #7f6a00;
696
- --ansi-4: #1f5ca6;
697
- --ansi-5: #8a2f8a;
698
- --ansi-6: #0b6f88;
699
- --ansi-7: #3d3d3d;
700
- --ansi-8: #3a3a3a;
701
- --ansi-9: #d32f2f;
702
- --ansi-10: #197c52;
703
- --ansi-11: #a35f00;
704
- --ansi-12: #2666b0;
705
- --ansi-13: #9b349b;
706
- --ansi-14: #0f7798;
707
- --ansi-15: #1f1f1f;
708
- --ansi-bg-fg-0: #ffffff;
709
- --ansi-bg-fg-1: #ffffff;
710
- --ansi-bg-fg-2: #ffffff;
711
- --ansi-bg-fg-3: #ffffff;
712
- --ansi-bg-fg-4: #ffffff;
713
- --ansi-bg-fg-5: #ffffff;
714
- --ansi-bg-fg-6: #ffffff;
715
- --ansi-bg-fg-7: #ffffff;
716
- --ansi-bg-fg-8: #ffffff;
717
- --ansi-bg-fg-9: #ffffff;
718
- --ansi-bg-fg-10: #ffffff;
719
- --ansi-bg-fg-11: #ffffff;
720
- --ansi-bg-fg-12: #ffffff;
721
- --ansi-bg-fg-13: #ffffff;
722
- --ansi-bg-fg-14: #ffffff;
723
- --ansi-bg-fg-15: #ffffff;
724
- }
725
-
726
- @media (prefers-color-scheme: dark) {
727
- :root {
728
- color-scheme: dark;
729
- --background: oklch(0.195 0 0);
730
- --foreground: oklch(0.8853 0 0);
731
- --card: oklch(0.2435 0 0);
732
- --card-foreground: oklch(0.8853 0 0);
733
- --popover: oklch(0.2435 0 0);
734
- --popover-foreground: oklch(0.8853 0 0);
735
- --primary: oklch(0.7058 0 0);
736
- --primary-foreground: oklch(0.2178 0 0);
737
- --secondary: oklch(0.3092 0 0);
738
- --secondary-foreground: oklch(0.8853 0 0);
739
- --muted: oklch(0.285 0 0);
740
- --muted-foreground: oklch(0.66 0 0);
741
- --accent: oklch(0.285 0 0);
742
- --accent-foreground: oklch(0.8853 0 0);
743
- --state-hover: oklch(0.255 0 0);
744
- --state-active: oklch(0.305 0 0);
745
- --destructive: oklch(0.56 0.19 22.1703);
746
- --destructive-foreground: oklch(1 0 0);
747
- --attention: oklch(0.8 0.15 80);
748
- --attention-foreground: oklch(0.2178 0 0);
749
- --warning: oklch(0.75 0.16 50);
750
- --warning-foreground: oklch(0.2178 0 0);
751
- --success: oklch(0.74 0.15 155);
752
- --success-foreground: oklch(0.2178 0 0);
753
- --diff-added: oklch(0.77 0.17 163);
754
- --diff-removed: oklch(0.72 0.19 22);
755
- --border: oklch(0.329 0 0);
756
- --input: oklch(0.3092 0 0);
757
- --ring: oklch(0.7058 0 0);
758
- --chart-1: oklch(0.7058 0 0);
759
- --chart-2: oklch(0.6714 0.0339 206.3482);
760
- --chart-3: oklch(0.5452 0 0);
761
- --chart-4: oklch(0.4604 0 0);
762
- --chart-5: oklch(0.3715 0 0);
763
- --sidebar: oklch(0.24 0 0);
764
- --sidebar-foreground: oklch(0.8853 0 0);
765
- --sidebar-primary: oklch(0.7058 0 0);
766
- --sidebar-primary-foreground: oklch(0.2178 0 0);
767
- --sidebar-accent: oklch(0.32 0 0);
768
- --sidebar-accent-foreground: oklch(0.8853 0 0);
769
- --sidebar-border: oklch(0.32 0 0);
770
- --sidebar-ring: oklch(0.7058 0 0);
771
- --font-sans: "Inter Variable", Inter, sans-serif;
772
- --font-serif: Georgia, serif;
773
- --font-mono: "Fira Code", monospace;
774
- --radius: 0.35rem;
775
- --shadow-x: 0px;
776
- --shadow-y: 2px;
777
- --shadow-blur: 0px;
778
- --shadow-spread: 0px;
779
- --shadow-opacity: 0.15;
780
- --shadow-color: hsl(0 0% 20% / 0.1);
781
- --shadow-2xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
782
- --shadow-xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
783
- --shadow-sm:
784
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 1px 2px -1px hsl(0 0% 20% / 0.15);
785
- --shadow:
786
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 1px 2px -1px hsl(0 0% 20% / 0.15);
787
- --shadow-md:
788
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 2px 4px -1px hsl(0 0% 20% / 0.15);
789
- --shadow-lg:
790
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 4px 6px -1px hsl(0 0% 20% / 0.15);
791
- --shadow-xl:
792
- 0px 2px 0px 0px hsl(0 0% 20% / 0.15), 0px 8px 10px -1px hsl(0 0% 20% / 0.15);
793
- --shadow-2xl: 0px 2px 0px 0px hsl(0 0% 20% / 0.38);
794
- --ansi-0: #858585;
795
- --ansi-1: #d85e5e;
796
- --ansi-2: #0dbc79;
797
- --ansi-3: #e5e510;
798
- --ansi-4: #3c88dc;
799
- --ansi-5: #c85ac8;
800
- --ansi-6: #11a8cd;
801
- --ansi-7: #e5e5e5;
802
- --ansi-8: #9a9a9a;
803
- --ansi-9: #ff6f6f;
804
- --ansi-10: #23d18b;
805
- --ansi-11: #f5f543;
806
- --ansi-12: #5aaaf2;
807
- --ansi-13: #d670d6;
808
- --ansi-14: #29b8db;
809
- --ansi-15: #ffffff;
810
- --ansi-bg-fg-0: #000000;
811
- --ansi-bg-fg-1: #000000;
812
- --ansi-bg-fg-2: #000000;
813
- --ansi-bg-fg-3: #000000;
814
- --ansi-bg-fg-4: #000000;
815
- --ansi-bg-fg-5: #000000;
816
- --ansi-bg-fg-6: #000000;
817
- --ansi-bg-fg-7: #000000;
818
- --ansi-bg-fg-8: #000000;
819
- --ansi-bg-fg-9: #000000;
820
- --ansi-bg-fg-10: #000000;
821
- --ansi-bg-fg-11: #000000;
822
- --ansi-bg-fg-12: #000000;
823
- --ansi-bg-fg-13: #000000;
824
- --ansi-bg-fg-14: #000000;
825
- --ansi-bg-fg-15: #000000;
826
- }
827
- }
828
-
829
- html,
830
- body {
831
- margin: 0;
832
- min-height: 100%;
833
- background: var(--background);
834
- color: var(--foreground);
835
- font-family: var(--font-sans);
836
- font-size: var(--text-base);
837
- line-height: var(--text-base--line-height);
838
- }
839
-
840
- body {
841
- padding: 1rem;
842
- }
843
-
844
- .card {
845
- background: var(--card);
846
- color: var(--card-foreground);
847
- border: 1px solid var(--border);
848
- border-radius: var(--radius);
849
- box-shadow: var(--shadow-sm);
850
- }
851
- </style>
852
- \`\`\`
853
-
854
- Keep the design dense and minimal so it feels native to bb: small text,
855
- hairline borders, subtle shadows, and semantic color only for status pills such
856
- as success, attention, or destructive. Use the same shapes as the app: cards on
857
- \`--card\`, \`1px\` borders using \`--border\`, and \`--radius\` with \`--shadow-sm\`.`,fileName:"bb-guide-styling.md",kind:"instruction",title:"bb Guide - Styling",summary:"Styling reference for manager status surfaces rendered inside bb.",intent:"Give agents the tokens and starter CSS needed to make STATUS/index.html or STATUS.html match the bb UI.",editingNotes:"Keep this as the canonical styling reference for HTML status surfaces. Manager prompts should point here instead of inlining tokens.",variables:{}},{id:"bbGuideThreads",body:`Thread commands
621
+ defaults apply.`,fileName:"bb-guide-providers.md",kind:"instruction",title:"bb Guide \u2014 Providers",summary:"Command reference for discovering providers and models.",intent:"Provide complete provider command documentation for agents.",editingNotes:"Keep flags accurate against the CLI implementation.",variables:{}},{id:"bbGuideThreads",body:`Thread commands
858
622
 
859
623
  Every command supports --json for machine-readable output.
860
624
 
@@ -962,7 +726,7 @@ Call the \`result\` tool with:
962
726
  - title: short, clear, 4-5 words maximum, Title Case
963
727
 
964
728
  Task:
965
- {{cleanedPrompt}}`,fileName:"generate-thread-metadata.md",kind:"prompt",title:"Thread Metadata Generator",summary:"Prompt for deriving short thread metadata from the user's task prompt.",intent:"Generate stable, operator-friendly metadata for threads without adding explanatory prose.",editingNotes:"Callers use tool-call structured output; the model calls a `result` tool with the schema.",variables:{cleanedPrompt:"User prompt text with noisy tokens removed and length-clamped."}},{id:"managerAgentInstructions",body:'You are a manager in a project inside bb, a futuristic IDE where agents collaborate to complete tasks and you (the manager) have full control over the environment. You should be helpful, friendly, and proactive.\n\nYour job is to coordinate work across child threads, keep the user informed, and keep the system moving. Delegate substantive work by default. Use the manager thread for lightweight coordination, quick scoping, routing decisions, and final review.\n\nThe user will most likely be doing coding work. You should keep them updated on the changes, but not overload them with too much information. You are a middle manager reporting updates to your supervisor (the user) and delegating work to your team (child threads).\n\n## The BB System\n\nbb is the IDE that you live in. It is a UI and runtime for agents and you will primarily interact with it through the `bb` CLI.\n\n`bb` has four core primitives:\n\n- A **host** is a machine. Hosts run environments. Use `bb host list` to see available hosts.\n- An **environment** is a workspace on a host: the project checkout or an isolated git worktree.\n- A **thread** is a single agent conversation attached to an environment. Threads are the fundamental unit of work.\n- A **project** maps to a repository. All threads and environments belong to a project.\n\nThese connect in a chain: a project has hosts, hosts have environments, and environments have threads. Multiple threads can share one environment (useful for multi-thread collaboration like code-then-review). Each thread is either **standard** (does the work) or **manager** (coordinates the work). You are a manager.\n\nThe default operating model is to spawn worker threads on the same host as you, each in its own isolated worktree. This gives file-level isolation between workers and lets you directly access their worktree paths for inspection. When the user has a preference for a different host, follow that.\n\nThreads can have a parent-child relationship. A parent thread manages the child. When a child thread completes, bb notifies the parent. Threads without a parent are managed directly by the user.\n\nAs a manager, you use the `bb` CLI to spawn worker threads, inspect their progress, and manage them directly. Run `bb guide` for the system overview and `bb guide <chapter>` for detailed command reference.\n\n## Storage\n\nYou have access to durable storage. Think of this like a shared drive where you can keep notes, files, and artifacts. Use it to collaborate with your user or to write down information you want to remember for later. Use this as the place to keep plans, todos, and other work artifacts you want to share with the user.\n\nA few **special** well known files in your storage:\n\n- **`PREFERENCES.md`** \u2014 durable user preferences and collaboration norms. Create it as you learn about the user, and keep it current.\n- **`STATUS/`, `STATUS.html`, or `STATUS.md`** \u2014 a concise, current view of your work. As a manager you juggle many tasks; keep this status surface up to date so the user can catch up at a glance. The bb UI loads one server-resolved iframe URL (`/api/v1/threads/<thread-id>/status/`) and chooses the first available source in this order: `STATUS/index.html`, then `STATUS.html`, then `STATUS.md`. Use `STATUS/index.html` when you want a rich multi-asset dashboard with local images, CSS, JS, or fonts; every local asset must live inside `STATUS/` to be served. Dot-prefixed files or directories anywhere under `STATUS/` are not served. Use `STATUS.html` for a simple single-file HTML page. Use `STATUS.md` for lightweight markdown.\n- **`ASYNC.md`** \u2014 scheduled nudges. Use this for reminders, recurring check-ins, and other work that should wake you up later. Run `bb guide async` for syntax, constraints, and examples.\n\nPreferences and starter storage files can be saved as manager templates in `{{managerDataDir}}/manager-templates/` so future managers boot with the same starting state. Run `bb guide manager-templates` for the layout and commands.\n\nUnless otherwise specified, make `STATUS/index.html` or `STATUS.html` styled like bb and use Tailwind. The UI renders HTML status surfaces in an unsandboxed iframe, so external resources such as Tailwind CDN, Google Fonts, remote images, and stylesheets load normally. For bb design tokens, fonts, light/dark variables, Tailwind setup, and a starter `<style>` snippet, run `bb guide styling`.\n\nSTATUS dashboards can read and write persistent reactive JSON state under `STATUS-data/`; run `bb guide status-state` for the direct `$BB_THREAD_STORAGE/STATUS-data/<key>.json` write pattern, browser API, and manager messaging helper.\n\nThe storage directory is yours to organize. Write down anything your future self or the user might find useful. Use `notes/`, `plans/`, `research/`, and `scratch/` as default folders when they fit. When an artifact does not belong in the repository, put it in thread storage.\n\n## How to communicate\n\n**IMPORTANT**: A user will not see a message you do not send through the `message_user` tool.\n\nAll user-facing output goes through the user-message tool. Call the exact tool id exposed in your tool list: `mcp__bb-bridge__message_user` when present, otherwise `message_user`. Plain assistant text is not visible to users \u2014 they only see their own messages and what you publish through that tool. Worker messages, orchestration notes, and internal lifecycle messages are not directly visible to the user.\n\nA typical update cadence is: a short kickoff when work starts, a completion update when it finishes, and extra updates only for blockers or meaningful scope changes. Keep updates concise, factual, and ownership-clear.\n\nWhen you need user input, approval, or help clearing a blocker, ask clearly through the same exact user-message tool.\n\n## System messages\n\nMessages prefixed with `[bb system]` are internal lifecycle signals, not user requests. The important ones:\n\n- **Thread complete / failed / interrupted** \u2014 review the thread\'s result or error and decide whether to update the user, retry, or delegate a follow-up.\n- **Ownership assigned** \u2014 a thread is now yours to manage. Inspect it and decide how to proceed.\n- **Ownership removed** \u2014 stop treating that thread as active managed work.\n\n### File links and deliverables\n\nWhen sharing a file or deliverable, use a Markdown link whose target is the full absolute path. Example: `[Investigation report]({{managerDataDir}}/thread-storage/thr_abc123/reports/investigation.md)`.\n\nUse absolute paths that start with `/`, not relative paths. Prefer linking the specific Markdown file you created or updated so the user can open it directly.\n\n## How to work\n\n### Delegation is the default\n\nAny substantive task \u2014 coding, file edits, debugging, investigations, multi-step analysis \u2014 goes to a managed child thread. The manager thread handles only lightweight coordination: quick reads to scope work, status checks, and deciding what to delegate next. Unless the user explicitly asks you to do otherwise. Remember the user is always the boss and can fire you or change how you work at any time.\n\nDelegation means creating a BB child thread with `bb thread spawn`. If a spawn fails, tell the user and retry. \n\nWhen you delegate, give the thread a clear prompt: objective, constraints, expected deliverable, and how to validate the result. Prefer one clear owner per task. Ask workers to report outcome, changed files or created artifacts, validation performed, and any blockers.\n\nAfter delegating, let the worker execute. Send additional worker instructions only when requirements changed, the worker asked a question, or a blocker/error must be handled. Then wait for the system to notify you when the thread completes \u2014 do not loop on `bb thread show`, `bb thread log`, or `bb thread list` to detect completion.\n\nDo not use shell sleeps, `tail` loops, repeated log reads, repeated status reads, or transcript scraping to watch worker progress. Inspect a child thread when you need to make a routing decision, review completed work, or investigate a failure.\n\nContext variables `BB_PROJECT_ID` and `BB_THREAD_ID` are set automatically in your environment, so `--project` and `--parent-thread` default to the right values when you run `bb thread spawn` from the manager thread. Fresh managed child threads also default to a managed worktree and `workspace-write` permission mode when the selected provider supports it, so you usually do not need to pass those flags explicitly.\n\nEach worker thread\'s changes usually live in its own worktree. Keep same-environment reuse explicit with `--environment <environment-id>` when you want an implementation thread and a review thread to share files. Review worker changes in the worker environment \u2014 do not reapply edits into the manager checkout unless the user explicitly asked for that.\n\n### Direct manager work\n\nDirect manager execution is for trivial, low-latency work where delegation overhead is clearly higher than doing the work directly, or when immediate user unblock requires a small inspection. Keep direct execution minimal and return to delegation-first behavior afterward unless the user explicitly asks you to stay in direct execution mode.\n\nUnless the user explicitly asks you to do otherwise. Remember the user is always the boss and can fire you or change how you work at any time.\n\n### Common patterns\n\n**Simple delegation**: Scope the work with a quick inspection. If you are unsure which provider or model to use, run `bb provider list` and `bb provider models <provider-id>`. Spawn a thread with `bb thread spawn --title "..." --prompt "..."`. Send the user a kickoff update. When the completion notification arrives, review with `bb thread show <id> --git-diff` and `bb thread output <id>`, then update the user.\n\n**Pipeline**: When a follow-on thread (like a reviewer) needs to see the same files, get the environment ID from `bb thread show <original-id> --json` and spawn into it with `--environment <environment-id>`. That same-environment reuse is an explicit override; fresh managed children otherwise start in a separate managed worktree. After the review thread completes, triage its findings and send specific fix instructions back to the original thread via `bb thread tell`.\n\n**Parallel work**: When the user gives you several independent tasks, spawn a thread for each. Report on each as it completes rather than waiting for all to finish.\n\n**Taking over a thread**: `bb thread update <id> --parent-thread <your-id>`. Inspect its state with `bb thread show` and `bb thread log`, understand its goal, and manage it from there.\n\n**Handing off a thread**: If a user asks to takeover a thread: `bb thread update <id> --clear-parent-thread`.\n\n**Worker errors**: Inspect with `bb thread show <id> --json` and `bb thread log <id>`. Handle transient issues autonomously \u2014 retry or clarify via `bb thread tell`. Escalate when the error needs information only the user has or is significant enough they should know about.\n\n**Interrupted or stopped workers**: Inspect the thread state before acting. If CLI output, logs, or lifecycle events indicate the user stopped it manually, treat that as intentional. Summarize the stopped state if useful, but do not resume, restart, retry, replace, or continue the work unless the user explicitly asks.\n\n**Stopping a thread**: If a worker is stuck or no longer needed, stop it with `bb thread stop <id>`.\n\n**Plan decomposition**: Identify independent work units, spawn a thread per unit. Workers run in separate worktrees so they do not conflict during execution, but merging multiple worktrees back can still produce conflicts \u2014 coordinate if needed.\n\n### Thread lifecycle\n\nKeep threads around when follow-up work is likely. Archive threads once they are no longer needed with `bb thread archive <id>`. Do not archive threads that still hold active work or environments with uncommitted changes the user may need.\n\n### Scheduled nudges\n\nUse `ASYNC.md` in your thread storage for scheduled reminders, recurring check-ins, and wakeups. Run `bb guide async` for the file syntax, constraints, and examples.\n\nWhen a scheduled nudge arrives, read the matching section in `ASYNC.md` and decide whether there is real work to do. Only message the user when the nudge produced something useful. Remove schedules that are no longer needed.\n\n### Cross-manager coordination\n\nIf you need context from another manager, use `bb thread tell <manager-id> "..."`. Use `bb thread list --parent-thread <manager-id>` to see what another manager is working on. This is rare.\n\n---\n\nRuntime context:\n\n- Manager thread ID: `{{managerThreadId}}`\n- Host: `{{hostId}}`\n- Project: `{{projectName}}` (`{{projectId}}`)\n- Project root: `{{projectRootPath}}`\n- BB data dir: `{{managerDataDir}}`\n- Thread storage: `{{threadStoragePath}}`\n- Local timezone: `{{localTimezone}}`',fileName:"manager-agent-instructions.md",kind:"instruction",title:"Manager Agent Instructions",summary:"Delegation-first operating instructions for a project manager agent.",intent:"Ensure the manager stays user-facing, delegates substantive work, and uses managed threads as the default execution path.",editingNotes:"Organized into system, communication, storage, and work guidance. First-turn startup behavior belongs in system-message-manager-welcome.md.",variables:{localTimezone:"IANA timezone to use for local reminder-style scheduling when the user does not specify a timezone.",managerDataDir:"Absolute path to the bb data directory that owns manager templates and thread storage on this host.",threadStoragePath:"Absolute path to the manager thread's durable storage directory.",managerThreadId:"The manager's own thread ID.",projectName:"The project name.",projectId:"The project ID.",projectRootPath:"The project root path on disk.",hostId:"The host ID where this manager's environment runs."}},{id:"standardAgentInstructions",body:"You are a coding agent working on a project thread inside bb, an agent orchestration tool. If you need to message another agent or orchestrate work across other agents (rare), use the `bb` cli.",fileName:"standard-agent-instructions.md",kind:"instruction",title:"Standard Agent Base Instructions",summary:"Baseline system prompt for provider-backed coding threads.",intent:"Keep the agent focused on following the task carefully and producing working code.",editingNotes:"Preserve the concise coding-agent framing.",variables:{}},{id:"systemMessageManagedThreadComplete",body:`[bb system]
729
+ {{cleanedPrompt}}`,fileName:"generate-thread-metadata.md",kind:"prompt",title:"Thread Metadata Generator",summary:"Prompt for deriving short thread metadata from the user's task prompt.",intent:"Generate stable, operator-friendly metadata for threads without adding explanatory prose.",editingNotes:"Callers use tool-call structured output; the model calls a `result` tool with the schema.",variables:{cleanedPrompt:"User prompt text with noisy tokens removed and length-clamped."}},{id:"managerAgentInstructions",body:'You are a manager in a project inside bb, a futuristic IDE where agents collaborate to complete tasks and you (the manager) have full control over the environment. You should be helpful, friendly, and proactive.\n\nYour job is to coordinate work across child threads, keep the user informed, and keep the system moving. Delegate substantive work by default. Use the manager thread for lightweight coordination, quick scoping, routing decisions, and final review.\n\nThe user will most likely be doing coding work. You should keep them updated on the changes, but not overload them with too much information. You are a middle manager reporting updates to your supervisor (the user) and delegating work to your team (child threads).\n\n## The BB System\n\nbb is the IDE that you live in. It is a UI and runtime for agents and you will primarily interact with it through the `bb` CLI.\n\n`bb` has four core primitives:\n\n- A **host** is a machine. Hosts run environments. Use `bb host list` to see available hosts.\n- An **environment** is a workspace on a host: the project checkout or an isolated git worktree.\n- A **thread** is a single agent conversation attached to an environment. Threads are the fundamental unit of work.\n- A **project** maps to a repository. All threads and environments belong to a project.\n\nThese connect in a chain: a project has hosts, hosts have environments, and environments have threads. Multiple threads can share one environment (useful for multi-thread collaboration like code-then-review). Each thread is either **standard** (does the work) or **manager** (coordinates the work). You are a manager.\n\nThe default operating model is to spawn worker threads on the same host as you, each in its own isolated worktree. This gives file-level isolation between workers and lets you directly access their worktree paths for inspection. When the user has a preference for a different host, follow that.\n\nThreads can have a parent-child relationship. A parent thread manages the child. When a child thread completes, bb notifies the parent. Threads without a parent are managed directly by the user.\n\nAs a manager, you use the `bb` CLI to spawn worker threads, inspect their progress, and manage them directly. Run `bb guide` for the system overview and `bb guide <chapter>` for detailed command reference.\n\n## Storage\n\nYou have access to durable storage. Think of this like a shared drive where you can keep notes, files, and artifacts. Use it to collaborate with your user or to write down information you want to remember for later. Use this as the place to keep plans, todos, and other work artifacts you want to share with the user.\n\nA few **special** well known files in your storage:\n\n- **`PREFERENCES.md`** \u2014 durable user preferences and collaboration norms. Create it as you learn about the user, and keep it current.\n- **`apps/status/`** \u2014 the built-in manager status app. Keep `apps/status/data/state.json` current so the user can catch up at a glance. Use `bb guide app` for the app layout, browser API, data writes, and styling guidance.\n- **`ASYNC.md`** \u2014 scheduled nudges. Use this for reminders, recurring check-ins, and other work that should wake you up later. Run `bb guide async` for syntax, constraints, and examples.\n\nPreferences and starter storage files can be saved as manager templates in `{{managerDataDir}}/manager-templates/` so future managers boot with the same starting state. Run `bb guide manager-templates` for the layout and commands.\n\nApps can read and write persistent reactive JSON state under `apps/<id>/data/` and can send messages to the owning thread through `window.bb.message`. Managers should update app data directly with same-directory temp-file writes and atomic renames. Use `bb app` for app creation, listing, URLs, and removal.\n\nThe storage directory is yours to organize. Write down anything your future self or the user might find useful. Use `notes/`, `plans/`, `research/`, and `scratch/` as default folders when they fit. When an artifact does not belong in the repository, put it in thread storage.\n\n## How to communicate\n\n**IMPORTANT**: A user will not see a message you do not send through the `message_user` tool.\n\nAll user-facing output goes through the user-message tool. Call the exact tool id exposed in your tool list: `mcp__bb-bridge__message_user` when present, otherwise `message_user`. Plain assistant text is not visible to users \u2014 they only see their own messages and what you publish through that tool. Worker messages, orchestration notes, and internal lifecycle messages are not directly visible to the user.\n\nA typical update cadence is: a short kickoff when work starts, a completion update when it finishes, and extra updates only for blockers or meaningful scope changes. Keep updates concise, factual, and ownership-clear.\n\nWhen you need user input, approval, or help clearing a blocker, ask clearly through the same exact user-message tool.\n\n## System messages\n\nMessages prefixed with `[bb system]` are internal lifecycle signals, not user requests. The important ones:\n\n- **Thread complete / failed / interrupted** \u2014 review the thread\'s result or error and decide whether to update the user, retry, or delegate a follow-up.\n- **Ownership assigned** \u2014 a thread is now yours to manage. Inspect it and decide how to proceed.\n- **Ownership removed** \u2014 stop treating that thread as active managed work.\n\n### File links and deliverables\n\nWhen sharing a file or deliverable, use a Markdown link whose target is the full absolute path. Example: `[Investigation report]({{managerDataDir}}/thread-storage/thr_abc123/reports/investigation.md)`.\n\nUse absolute paths that start with `/`, not relative paths. Prefer linking the specific Markdown file you created or updated so the user can open it directly.\n\n## How to work\n\n### Delegation is the default\n\nAny substantive task \u2014 coding, file edits, debugging, investigations, multi-step analysis \u2014 goes to a managed child thread. The manager thread handles only lightweight coordination: quick reads to scope work, status checks, and deciding what to delegate next. Unless the user explicitly asks you to do otherwise. Remember the user is always the boss and can fire you or change how you work at any time.\n\nDelegation means creating a BB child thread with `bb thread spawn`. If a spawn fails, tell the user and retry. \n\nWhen you delegate, give the thread a clear prompt: objective, constraints, expected deliverable, and how to validate the result. Prefer one clear owner per task. Ask workers to report outcome, changed files or created artifacts, validation performed, and any blockers.\n\nAfter delegating, let the worker execute. Send additional worker instructions only when requirements changed, the worker asked a question, or a blocker/error must be handled. Then wait for the system to notify you when the thread completes \u2014 do not loop on `bb thread show`, `bb thread log`, or `bb thread list` to detect completion.\n\nDo not use shell sleeps, `tail` loops, repeated log reads, repeated status reads, or transcript scraping to watch worker progress. Inspect a child thread when you need to make a routing decision, review completed work, or investigate a failure.\n\nContext variables `BB_PROJECT_ID` and `BB_THREAD_ID` are set automatically in your environment, so `--project` and `--parent-thread` default to the right values when you run `bb thread spawn` from the manager thread. Fresh managed child threads also default to a managed worktree and `workspace-write` permission mode when the selected provider supports it, so you usually do not need to pass those flags explicitly.\n\nEach worker thread\'s changes usually live in its own worktree. Keep same-environment reuse explicit with `--environment <environment-id>` when you want an implementation thread and a review thread to share files. Review worker changes in the worker environment \u2014 do not reapply edits into the manager checkout unless the user explicitly asked for that.\n\n### Direct manager work\n\nDirect manager execution is for trivial, low-latency work where delegation overhead is clearly higher than doing the work directly, or when immediate user unblock requires a small inspection. Keep direct execution minimal and return to delegation-first behavior afterward unless the user explicitly asks you to stay in direct execution mode.\n\nUnless the user explicitly asks you to do otherwise. Remember the user is always the boss and can fire you or change how you work at any time.\n\n### Common patterns\n\n**Simple delegation**: Scope the work with a quick inspection. If you are unsure which provider or model to use, run `bb provider list` and `bb provider models <provider-id>`. Spawn a thread with `bb thread spawn --title "..." --prompt "..."`. Send the user a kickoff update. When the completion notification arrives, review with `bb thread show <id> --git-diff` and `bb thread output <id>`, then update the user.\n\n**Pipeline**: When a follow-on thread (like a reviewer) needs to see the same files, get the environment ID from `bb thread show <original-id> --json` and spawn into it with `--environment <environment-id>`. That same-environment reuse is an explicit override; fresh managed children otherwise start in a separate managed worktree. After the review thread completes, triage its findings and send specific fix instructions back to the original thread via `bb thread tell`.\n\n**Parallel work**: When the user gives you several independent tasks, spawn a thread for each. Report on each as it completes rather than waiting for all to finish.\n\n**Taking over a thread**: `bb thread update <id> --parent-thread <your-id>`. Inspect its state with `bb thread show` and `bb thread log`, understand its goal, and manage it from there.\n\n**Handing off a thread**: If a user asks to takeover a thread: `bb thread update <id> --clear-parent-thread`.\n\n**Worker errors**: Inspect with `bb thread show <id> --json` and `bb thread log <id>`. Handle transient issues autonomously \u2014 retry or clarify via `bb thread tell`. Escalate when the error needs information only the user has or is significant enough they should know about.\n\n**Interrupted or stopped workers**: Inspect the thread state before acting. If CLI output, logs, or lifecycle events indicate the user stopped it manually, treat that as intentional. Summarize the stopped state if useful, but do not resume, restart, retry, replace, or continue the work unless the user explicitly asks.\n\n**Stopping a thread**: If a worker is stuck or no longer needed, stop it with `bb thread stop <id>`.\n\n**Plan decomposition**: Identify independent work units, spawn a thread per unit. Workers run in separate worktrees so they do not conflict during execution, but merging multiple worktrees back can still produce conflicts \u2014 coordinate if needed.\n\n### Thread lifecycle\n\nKeep threads around when follow-up work is likely. Archive threads once they are no longer needed with `bb thread archive <id>`. Do not archive threads that still hold active work or environments with uncommitted changes the user may need.\n\n### Scheduled nudges\n\nUse `ASYNC.md` in your thread storage for scheduled reminders, recurring check-ins, and wakeups. Run `bb guide async` for the file syntax, constraints, and examples.\n\nWhen a scheduled nudge arrives, read the matching section in `ASYNC.md` and decide whether there is real work to do. Only message the user when the nudge produced something useful. Remove schedules that are no longer needed.\n\n### Cross-manager coordination\n\nIf you need context from another manager, use `bb thread tell <manager-id> "..."`. Use `bb thread list --parent-thread <manager-id>` to see what another manager is working on. This is rare.\n\n---\n\nRuntime context:\n\n- Manager thread ID: `{{managerThreadId}}`\n- Host: `{{hostId}}`\n- Project: `{{projectName}}` (`{{projectId}}`)\n- Project root: `{{projectRootPath}}`\n- BB data dir: `{{managerDataDir}}`\n- Thread storage: `{{threadStoragePath}}`\n- Local timezone: `{{localTimezone}}`',fileName:"manager-agent-instructions.md",kind:"instruction",title:"Manager Agent Instructions",summary:"Delegation-first operating instructions for a project manager agent.",intent:"Ensure the manager stays user-facing, delegates substantive work, and uses managed threads as the default execution path.",editingNotes:"Organized into system, communication, storage, and work guidance. First-turn startup behavior belongs in system-message-manager-welcome.md.",variables:{localTimezone:"IANA timezone to use for local reminder-style scheduling when the user does not specify a timezone.",managerDataDir:"Absolute path to the bb data directory that owns manager templates and thread storage on this host.",threadStoragePath:"Absolute path to the manager thread's durable storage directory.",managerThreadId:"The manager's own thread ID.",projectName:"The project name.",projectId:"The project ID.",projectRootPath:"The project root path on disk.",hostId:"The host ID where this manager's environment runs."}},{id:"standardAgentInstructions",body:"You are a coding agent working on a project thread inside bb, an agent orchestration tool. If you need to message another agent or orchestrate work across other agents (rare), use the `bb` cli.",fileName:"standard-agent-instructions.md",kind:"instruction",title:"Standard Agent Base Instructions",summary:"Baseline system prompt for provider-backed coding threads.",intent:"Keep the agent focused on following the task carefully and producing working code.",editingNotes:"Preserve the concise coding-agent framing.",variables:{}},{id:"systemMessageManagedThreadComplete",body:`[bb system]
966
730
 
967
731
  Managed thread complete: {{threadId}}{{titleSuffix}}
968
732
  Review that thread's result and decide whether to update the user or delegate a follow-up.
@@ -991,7 +755,7 @@ PREFERENCES.md has been updated. New contents:
991
755
  {{preferencesContent}}
992
756
  {{fence}}`,fileName:"system-message-manager-preferences-updated.md",kind:"system-message",title:"Manager Preferences Updated Snapshot",summary:"Manager notification that PREFERENCES.md changed since it was last shown.",intent:"Refresh manager durable preferences at the start of the next inbound turn after a file change.",variables:{fence:"Markdown backtick fence long enough to contain the file contents.",preferencesContent:"Verbatim PREFERENCES.md contents."}},{id:"systemMessageManagerPreferencesWarning",body:`[bb system]
993
757
 
994
- PREFERENCES.md was not delivered. {{reason}}`,fileName:"system-message-manager-preferences-warning.md",kind:"system-message",title:"Manager Preferences Warning",summary:"Manager warning that PREFERENCES.md exists but cannot be inlined.",intent:"Tell the manager why its durable preferences were not delivered while still recording the observed file state.",variables:{reason:"Human-readable reason the file was not delivered."}},{id:"systemMessageManagerWelcome",body:`[bb system]
758
+ PREFERENCES.md was not delivered. {{reason}}`,fileName:"system-message-manager-preferences-warning.md",kind:"system-message",title:"Manager Preferences Warning",summary:"Manager warning that PREFERENCES.md exists but cannot be inlined.",intent:"Tell the manager why its durable preferences were not delivered while still recording the observed file state.",variables:{reason:"Human-readable reason the file was not delivered."}},{id:"systemMessageManagerQuickStart",body:"[bb system]\n\nYou just came online inside bb. You are a manager helping your user get things done.\n\nThe user has sent their initial instructions as their next message \u2014 act on those directly.\n\nBefore diving in, peek at `PREFERENCES.md` in your thread storage. If it exists with real saved preferences, treat them as starting context. If it's missing or starter content, that's fine \u2014 don't block on creating one; capture what you learn as you go and save it later. Preserve any seeded `STATUS/`, `STATUS.html`, `STATUS.md`, or `ASYNC.md` from templates and keep them current as you work.\n\nTalk to the user with the user-message tool: `mcp__bb-bridge__message_user` when present, otherwise `message_user`. Plain assistant text is not visible to them.\n\nThings worth capturing in `PREFERENCES.md` when they come up naturally (don't open with them): what the user wants to be called and how to refer to yourself; landing mode (PR per worker vs. local-branch merge); working vibe; update cadence; any boundaries or workflow preferences. Pick them up in passing, not as a form.\n\nGet to work.",fileName:"system-message-manager-quick-start.md",kind:"prompt",title:"Manager Quick Start",summary:"First-turn framing when the user provides initial instructions at hire time.",intent:"Tell the manager to act on the user's next message directly, while still pointing it at the durable storage and user-message contracts the welcome would otherwise cover.",editingNotes:"Used in place of system-message-manager-welcome.md when the create-manager request includes user-provided input. Keep durable manager behavior in manager-agent-instructions.md.",variables:{}},{id:"systemMessageManagerWelcome",body:`[bb system]
995
759
 
996
760
  Welcome. You just came online inside bb. You are a manager helping your user get things done.
997
761
 
@@ -1050,10 +814,11 @@ After scope and landing mode are settled, figure out together:
1050
814
  Create, replace, or update \`PREFERENCES.md\` with what you learn. If the user gives you a
1051
815
  name, vibe, or other identity details for yourself, record those too.
1052
816
 
1053
- \`STATUS/\`, \`STATUS.html\`, \`STATUS.md\`, and \`ASYNC.md\` may also already exist from user
1054
- templates. Preserve any seeded structure and keep the files current as you work.
817
+ \`apps/status/\`, \`PREFERENCES.md\`, and \`ASYNC.md\` may already exist from user
818
+ templates. Preserve any seeded structure and keep the status app current as you work.
1055
819
 
1056
- Depending on user preferences you might want to update the status surface to match their landing mode.
820
+ Depending on user preferences you might want to update \`apps/status/data/state.json\`
821
+ to match their landing mode.
1057
822
 
1058
823
  If there is no \`PREFERENCES.md\` fill out this template with what you learn and save it:
1059
824
 
@@ -1081,20 +846,19 @@ This file is the manager's durable memory of how the user wants to be worked wit
1081
846
  - Merge into a local branch (like a staging area) automatically without PRs, and push to origin on user go-ahead.
1082
847
 
1083
848
  ## Keeping the user updated
1084
- Adjust the status surface (\`STATUS/index.html\`, \`STATUS.html\`, or \`STATUS.md\`) to match the chosen mode (see next bullet).
1085
- - **Status mode**: if the user opens PRs, the status surface tracks open PRs in its primary section. If the user does NOT use PRs, replace the \`Open PRs\` section with two sections instead: **In progress** (branches actively being worked on by workers) and **Ready for review** (branches that are validated and waiting for the user's go-ahead to push or merge). If you use an HTML template with snippet patterns, copy/paste as needed.
1086
- - **Status refresh**: keep the status surface current with the state of the world
849
+ Adjust the \`status\` app to match the chosen mode.
850
+ - **Status mode**: if the user opens PRs, the status app tracks open PRs in its primary section. If the user does NOT use PRs, use two sections instead: **In progress** (branches actively being worked on by workers) and **Ready for review** (branches that are validated and waiting for the user's go-ahead to push or merge).
851
+ - **Status refresh**: keep \`apps/status/data/state.json\` current with the state of the world
1087
852
  - after any state-affecting action (worker spawn, branch ready, PR opened, merge, close, push).
1088
853
  - **after every child thread completion notification** (on any \`[bb system] Thread complete/failed/interrupted\`), even if the thread didn't obviously touch the tracked state \u2014 reconcile the relevant section.
1089
- - **Status styling**: run \`bb guide styling\` for the bb design tokens, fonts, and a starter \`<style>\` snippet so an iframe-rendered HTML status surface matches the rest of the app. Use \`STATUS/\` when local assets need to be served.
1090
- - **Status state**: dashboards may include forms, buttons, and shared JSON state. Use \`bb guide status-state\` when the status surface should persist interactive state that you can also inspect or update as the manager.
1091
- - Also keep running tasks and any user action items in the status surface
854
+ - **Status app**: run \`bb guide app\` for app data, \`window.bb\`, styling, and \`bb app\` commands.
855
+ - Also keep running tasks and any user action items in the status app.
1092
856
 
1093
857
  ## Open questions to resolve when natural
1094
858
 
1095
859
  - Preferred name / how to address the user
1096
860
  - Worker defaults (provider / reasoning level / permission mode / preferred model) \u2014 ask the user when it comes up; do not assume a default.
1097
- - Anything else the user wants surfaced in the status surface (extra sections, custom info, integrations) \u2014 ask once when natural and update the template accordingly.
861
+ - Anything else the user wants surfaced in the status app (extra sections, custom info, integrations) \u2014 ask once when natural and update the template accordingly.
1098
862
  - Update verbosity preference (terse vs detailed)
1099
863
  - Any specific area of the codebase that's currently the focus
1100
864
  \`\`\`
@@ -1123,25 +887,23 @@ Git reported: {{errorMessage}}.
1123
887
  {{/if}}`,fileName:"thread-operation-squash-merge-commit-failure-follow-up.md",kind:"prompt",title:"Squash Merge Commit Failure Follow-Up",summary:"Follow-up prompt for squash-merge flows that fail while creating a prep commit or the final squash commit.",intent:"Direct the agent to fix the blocker in-place and retry the squash merge without broadening the task.",editingNotes:"The failure instruction is computed by the caller so this template can stay small and reusable across failure stages.",variables:{prepCommitMergeBaseBranch:"Merge base branch name when the prep commit could not be created.",squashCommitMergeBaseBranch:"Merge base branch name when the final squash commit could not be created.",errorMessage:"Optional git error surfaced to the agent."}},{id:"threadOperationSquashMergeConflictFollowUp",body:`Squash merge into {{mergeBaseBranch}} stopped on conflicts. Rebase this branch onto {{mergeBaseBranch}}, resolve the conflicts, and retry the squash merge so the changes land on {{mergeBaseBranch}}.
1124
888
  {{#if conflictFiles}}
1125
889
  Conflicted files: {{conflictFiles}}.
1126
- {{/if}}`,fileName:"thread-operation-squash-merge-conflict-follow-up.md",kind:"prompt",title:"Squash Merge Conflict Follow-Up",summary:"Follow-up prompt for squash merges that stop on conflicts.",intent:"Tell the agent to rebase onto the merge base, resolve the conflicts, and retry the squash merge.",editingNotes:"Keep this concise and procedural. Conflict file details are optional context and should stay additive.",variables:{mergeBaseBranch:"Merge base branch name shown to the agent.",conflictFiles:"Optional comma-separated file list."}}];function nF(e){return Eg.some(t=>t.id===e)}function rF(){let e=Eg.map(t=>{if(!nF(t.id))throw new Error(`Unknown generated template id: ${t.id}`);return[t.id,{...t,id:t.id,kind:t.kind}]});return Object.fromEntries(e)}var Dg=rF();var Gw=!1;function oF(){if(!Gw){for(let e of Object.values(Dg))Ig.default.registerPartial(e.id,e.body);Gw=!0}}var Qw=new Map;function iF(e){let t=Qw.get(e);if(t)return t;let r=Ig.default.compile(Dg[e].body,{noEscape:!0});return Qw.set(e,r),r}function iu(e,t){return oF(),iF(e)(t).trim()}var Jw={threads:"bbGuideThreads",environments:"bbGuideEnvironments",managers:"bbGuideManagers","manager-templates":"bbGuideManagerTemplates","status-state":"bbGuideStatusState",providers:"bbGuideProviders",projects:"bbGuideProjects",hosts:"bbGuideHosts",styling:"bbGuideStyling",async:"bbGuideAsync"};function Xw(e){e.command("guide [chapter]").description("Show the BB system overview and CLI guide").option("--json","Print machine-readable JSON output").action(k(async(t,r)=>{if(t){let n=Jw[t];if(!n){let s=Object.keys(Jw).join(", ");throw new Error(`Unknown guide chapter '${t}'. Available: ${s}.`)}let i=iu(n,{});if(R(r,{chapter:t,content:i}))return;console.log(i);return}let o=iu("bbGuideOverview",{});R(r,{overview:o})||console.log(o)}))}var eC=Iu(YP(),1),UF={chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"-","mid-mid":" ",right:"","right-mid":"",middle:" "},style:{head:[],border:[],"padding-left":0,"padding-right":0}};function ye(e,t){let r=new eC.default({...UF,head:e.head,colWidths:e.colWidths});for(let n of t)r.push(n);let o=r.toString();return e.trimTrailingWhitespace?o.split(`
1127
- `).map(n=>n.trimEnd()).join(`
1128
- `):o}function tC(e,t){e.command("host").description("Inspect available hosts").command("list").description("List persistent hosts").option("--json","Print machine-readable JSON output").action(k(async o=>{let n=j(t()),i=await w(n.api.v1.hosts.$get());if(!R(o,i)){if(i.length===0){console.log("No hosts found");return}VF(i)}}))}function VF(e){let t=e.map(s=>[s.id,s.name,s.status]),r=Math.max(4,...t.map(s=>s[0].length)),o=Math.max(4,...t.map(s=>s[1].length)),n=Math.max(6,...t.map(s=>s[2].length)),i=ye({head:["ID","Name","Status"],colWidths:[r,o,n],trimTrailingWhitespace:!0},t);console.log(""),console.log(i),console.log("")}var gr;async function xe(){if(gr!==void 0)return gr;try{let t=await Xh(eD()).status.$get();return t.ok?(gr=(await t.json()).hostId,gr):(gr=null,null)}catch{return gr=null,null}}var Mg=2,zg=3,nC=4,Fg=30,Bg=250,WF=["fast","default"],lu="Permission mode: full, workspace-write, or readonly",rC="Permission mode: full, workspace-write, or readonly (managed threads deny escalations)";function Nt(e){switch(e){case"created":return"created";case"provisioning":return"provisioning";case"error":return"error";case"idle":return"idle";case"active":return"active";default:return fe(e)}}function oC(e){if(e===void 0)return Fg;let t=Number.parseFloat(e);if(!Number.isFinite(t)||t<0)throw new Error("Timeout must be a non-negative number of seconds.");return t}function iC(e){if(e===void 0)return Bg;let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<1)throw new Error("Poll interval must be a positive integer number of milliseconds.");return t}function aC(e){if(e===void 0)return;let t=he.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid service tier '${e}'. Expected ${pf(WF)}.`)}function vr(e){if(e===void 0)return;let t=ue.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid permission mode '${e}'. Expected full, workspace-write, or readonly.`)}function cC(e,t){let r=e.command("manager").description("Manage project managers");r.command("hire [projectId]").description("Hire a new manager for a project; omitted provider and execution flags use remembered manager defaults or the server manager policy").option("--project <id>","Project ID (defaults to BB_PROJECT_ID)").option("--name <name>","Manager name").option("--provider <id>","Provider ID for the manager. Omit to use the project's remembered manager defaults or the server manager policy").option("--model <model>","Model ID for the manager. Omit to use the remembered or server default for the resolved provider").option("--template <name>","Manager template set name from manager-templates/<name>").option("--reasoning-level <level>","Reasoning level (low, medium, high, xhigh, max; provider-dependent)").option("--permission-mode <mode>",rC).option("--host <id>","Host ID (defaults to local host)").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=Yn(o??n.project),u=s.id;re(s,"Project","BB_PROJECT_ID",n);let l=tr(n.reasoningLevel),c=vr(n.permissionMode),p=n.host;if(!p&&(p=await xe()??void 0,!p))throw new Error("Cannot auto-detect host ID (daemon unreachable). Pass --host <id> explicitly.");let d=await w(i.api.v1.projects[":id"].managers.$post({param:{id:u},json:{origin:"cli",...n.name?{name:n.name}:{},...n.provider?{providerId:n.provider}:{},...n.model?{model:n.model}:{},...n.template?{templateName:n.template}:{},environment:{type:"host",hostId:p},...l?{reasoningLevel:l}:{},...c?{permissionMode:c}:{}}}));R(n,d)||(console.log(`Manager hired: ${d.id}`),uC(d))})),r.command("list [projectId]").description("List managers for a project").option("--project <id>","Project ID (defaults to BB_PROJECT_ID)").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=Yn(o??n.project),u=s.id;re(s,"Project","BB_PROJECT_ID",n);let l=await w(i.api.v1.threads.$get({query:{projectId:u,type:"manager"}}));if(!R(n,l)){if(l.length===0){console.log("No managers hired");return}lC(l)}})),r.command("status <id>").description("Show manager status and managed threads").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=o,u=await sC(i,s),l=await KF(i,u.projectId,s);R(n,{manager:u,managedThreads:l})||(uC(u),ZF(l))})),r.command("delete <id>").description("Delete a manager permanently").option("--yes","Skip the confirmation prompt").option("--confirm-assigned-child-threads","Confirm deleting a manager with assigned child threads").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=o,u=await sC(i,s);if(!n.yes&&!await un(`Delete manager "${u.title??u.id}" permanently? This cannot be undone.`)){console.log(`Manager ${s} deletion cancelled`);return}await w(i.api.v1.threads[":id"].$delete({param:{id:s},json:{managerChildThreadsConfirmed:n.confirmAssignedChildThreads===!0}})),!R(n,{ok:!0,managerId:s})&&console.log(`Manager ${s} deleted`)}))}async function HF(e,t){return w(e.api.v1.threads[":id"].$get({param:{id:t}}))}async function sC(e,t){let r=await HF(e,t);if(r.type!=="manager")throw new Error(`Thread ${t} is not a manager`);return r}async function KF(e,t,r){return w(e.api.v1.threads.$get({query:{projectId:t,parentThreadId:r}}))}function uC(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Title: ${e.title??"<untitled>"}`),console.log(` Type: ${e.type}`),console.log(` Status: ${e.status}`),console.log(` Project: ${e.projectId}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),console.log("")}function lC(e){let t=e.map(s=>[s.id,s.status,s.title??"<untitled>"]),r=Math.max(4,...t.map(s=>s[0].length)),o=Math.max(6,...t.map(s=>s[1].length)),n=Math.max(5,...t.map(s=>s[2].length)),i=ye({head:["ID","Status","Title"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function ZF(e){if(console.log("Managed threads:"),e.length===0){console.log(" None");return}lC(e)}async function GF(e){if(e)return e;let t=await xe();if(!t)throw new Error("Cannot auto-detect host ID (daemon unreachable). Pass --host <id> explicitly.");return t}async function dC(e){if(e.path)return{hostId:await GF(e.host),path:e.path,type:"local_path"};throw new Error("Provide --path.")}function QF(e,t){let r=e.sources.find(o=>o.id===t);if(!r)throw new Error(`Project source ${t} not found on project ${e.id}.`);return r}function JF(e,t){if(!t.path&&!t.default)throw new Error("Provide --path and/or --default.");return{...t.default?{isDefault:!0}:{},...t.path?{path:t.path}:{},type:e.type}}function XF(e){return{isDefault:!0,type:"local_path"}}function pC(e,t){let r=t&&e.hostId===t?" (local)":"",o=e.isDefault?" [default]":"";console.log(`${e.id} ${e.hostId}${r} ${e.type} ${e.path}${o}`)}function mC(e,t){let r=e.command("project").description("Inspect and manage projects"),o=r.command("source").description("Manage project sources");r.command("list").description("List projects").option("--json","Print machine-readable JSON output").action(k(async n=>{let i=j(t()),s=await w(i.api.v1.projects.$get());if(R(n,s))return;if(s.length===0){console.log("No projects found");return}let u=await xe();YF(s,u)})),r.command("create").description("Create a project").requiredOption("--name <name>","Project name").option("--root <path>","Project source path").option("--host <id>","Host ID for the project source (auto-detected from daemon if omitted)").option("--json","Print machine-readable JSON output").action(k(async n=>{let i=j(t()),s=await dC({host:n.host,path:n.root}),u=await w(i.api.v1.projects.$post({json:{name:n.name,source:s}}));if(R(n,u))return;console.log(`Project created: ${u.id}`);let l=await xe();Lg(u,l)})),r.command("show <id>").description("Show project details").option("--json","Print machine-readable JSON output").action(k(async(n,i)=>{let s=j(t()),u=await w(s.api.v1.projects[":id"].$get({param:{id:n}}));if(R(i,u))return;let l=await xe();Lg(u,l)})),r.command("update <id>").description("Update a project").option("--name <name>","Set the project name").option("--json","Print machine-readable JSON output").action(k(async(n,i)=>{let s=j(t());if(!i.name)throw new Error("No changes requested. Provide --name.");let u={name:i.name},l=await w(s.api.v1.projects[":id"].$patch({param:{id:n},json:u}));if(R(i,l))return;console.log(`Project ${l.id} updated`);let c=await xe();Lg(l,c)})),r.command("delete <id>").description("Delete a project and all its threads").option("--yes","Skip confirmation prompt").option("--json","Print machine-readable JSON output").action(k(async(n,i)=>{let s=j(t());if(!i.yes&&!await un(`Delete project ${n} and all its threads?`)){console.log("Aborted.");return}await w(s.api.v1.projects[":id"].$delete({param:{id:n}})),!R(i,{ok:!0,id:n})&&console.log(`Project ${n} deleted`)})),o.command("add <projectId>").description("Add a source to a project").option("--path <path>","Local path source").option("--host <id>","Host ID for a local path source (auto-detected from daemon if omitted)").option("--default","Mark the new source as default").option("--json","Print machine-readable JSON output").action(k(async(n,i)=>{let s=j(t()),u=await dC({host:i.host,path:i.path}),l=await w(s.api.v1.projects[":id"].sources.$post({param:{id:n},json:u})),c=i.default?await w(s.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:l.id},json:XF(l)})):l;if(R(i,c))return;console.log(`Project source added: ${c.id}`);let p=await xe();pC(c,p)})),o.command("update <projectId> <sourceId>").description("Update a project source").option("--path <path>","New local path for a local path source").option("--default","Mark this source as default").option("--json","Print machine-readable JSON output").action(k(async(n,i,s)=>{let u=j(t()),l=await w(u.api.v1.projects[":id"].$get({param:{id:n}})),c=QF(l,i),p=JF(c,s),d=await w(u.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:i},json:p}));if(R(s,d))return;console.log(`Project source updated: ${d.id}`);let m=await xe();pC(d,m)})),o.command("delete <projectId> <sourceId>").description("Delete a project source").option("--yes","Skip confirmation prompt").option("--json","Print machine-readable JSON output").action(k(async(n,i,s)=>{let u=j(t());if(!s.yes&&!await un(`Delete project source ${i} from project ${n}?`)){console.log("Aborted.");return}await w(u.api.v1.projects[":id"].sources[":sourceId"].$delete({param:{id:n,sourceId:i}})),!R(s,{ok:!0,projectId:n,sourceId:i})&&console.log(`Project source ${i} deleted`)}))}function Lg(e,t){if(console.log(""),console.log(` ID: ${e.id}`),console.log(` Name: ${e.name}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),e.sources.length>0){console.log(" Sources:");for(let r of e.sources){let o=t&&r.hostId===t?" (local)":"";console.log(` ${r.hostId}${o} ${r.type} ${r.path}`)}}console.log("")}function YF(e,t){let r=e.map(u=>{let l=t?kh(u.sources,t):void 0;return[u.id,u.name,l?.path??"-"]}),o=Math.max(4,...r.map(u=>u[0].length)),n=Math.max(4,...r.map(u=>u[1].length)),i=Math.max(10,...r.map(u=>u[2].length)),s=ye({head:["ID","Name","Local Path"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}function hC(e,t){let r=e.command("provider").description("Inspect available providers and models");r.command("list").description("List available providers").option("--json","Print machine-readable JSON output").action(k(async o=>{let n=j(t()),i=await w(n.api.v1.system.providers.$get({query:{}}));if(!R(o,i)){if(i.length===0){console.log("No providers available");return}tB(i)}})),r.command("models [providerId]").description("List available models for a provider").option("--json","Print machine-readable JSON output").option("--selected-model <model>","Include a selected-only model if it matches").action(k(async(o,n)=>{let i=j(t()),s=await w(i.api.v1.system["execution-options"].$get({query:{...o?{providerId:o}:{}}})),u=eB({models:s.models,selectedOnlyModels:s.selectedOnlyModels,selectedModel:n.selectedModel});if(!R(n,u)){if(u.length===0){console.log("No models available");return}nB(u,o)}}))}function eB(e){if(!e.selectedModel||e.models.some(r=>r.model===e.selectedModel))return e.models;let t=e.selectedOnlyModels.find(r=>r.model===e.selectedModel);return t?[t,...e.models]:e.models}function tB(e){let t=e.map(i=>[i.id,i.displayName]),r=Math.max(4,...t.map(i=>i[0].length)),o=Math.max(4,...t.map(i=>i[1].length)),n=ye({head:["ID","Name"],colWidths:[r,o]},t);console.log(""),console.log(n),console.log("")}function nB(e,t){t&&console.log(`Models for ${t}:`);let r=e.map(u=>[u.model,u.displayName??u.model,u.isDefault?"*":""]),o=Math.max(5,...r.map(u=>u[0].length)),n=Math.max(4,...r.map(u=>u[1].length)),i=Math.max(7,...r.map(u=>u[2].length)),s=ye({head:["Model","Name","Default"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}var fC=1;function rB(e){if(e===void 0)return fC;let t=Number(e),r=an.safeParse(t);if(!r.success)throw new Error("Replay speed must be one of: 0.5, 1, 2, 5, 10");return r.data}function oB(e){return new Date(e).toISOString()}var iB="http://localhost:5173/development-only/replay";function aB(e){if(e.length===0){console.log("No replay captures found.");return}console.log(ye({head:["Capture","Host","Provider","Project","Thread","Raw events","Captured"],colWidths:[28,16,16,18,18,10,26],trimTrailingWhitespace:!0},e.map(t=>[t.captureId,t.hostId,t.providerId,t.projectId,t.threadId,String(t.eventCounts.rawProviderEvents),oB(t.capturedAt)])))}function sB(e){console.log(`Replay thread: ${e.replayThreadId}`),console.log(`Project: ${e.projectId}`),console.log(`Command: ${e.commandId}`)}function gC(e,t){let r=e.command("replay").description("Manage dev replay captures");r.command("list").description("List dev replay captures").option("--json","Print machine-readable JSON output").action(k(async o=>{let n=j(t()),i=await w(n.api.v1["development-only"].replay.captures.$get());R(o,i)||aB(i.captures)})),r.command("run <captureId>").description("Start a new replay thread from a capture").option("--json","Print machine-readable JSON output").option("--speed <n>","Replay speed multiplier: 0.5, 1, 2, 5, or 10",String(fC)).action(k(async(o,n)=>{let i=j(t()),s=rB(n.speed),u=await w(i.api.v1["development-only"].replay.captures[":id"].runs.$post({param:{id:o},json:{speed:s}}));R(n,u)||sB(u)})),r.command("delete <captureId>").description("Delete a dev replay capture").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=j(t()),s=await w(i.api.v1["development-only"].replay.captures[":id"].$delete({param:{id:o}}));R(n,s)||console.log(`Deleted replay capture ${o}`)})),r.command("open").description("Print the app URL for the replay captures list").option("--json","Print machine-readable JSON output").action(k(async o=>{let n={url:iB};R(o,n)||console.log(n.url)}))}async function uB(e){try{return await w(e.client.api.v1.hosts[":id"].$get({param:{id:e.hostId}}))}catch{return null}}async function du(e){try{let[t,r]=await Promise.all([w(e.client.api.v1.environments[":id"].$get({param:{id:e.environmentId}})),xe()]),o=await uB({client:e.client,hostId:t.hostId}),n=t.hostId===r;return{display:_f({environment:t,isLocalHost:n,hostName:o?.name}),hostId:t.hostId,hostName:o?.name??null,isLocalHost:n}}catch{return null}}function pu(e){let t=e.hostName??e.hostId,r=e.isLocalHost?" (localhost)":"";console.log(` Host: ${t}${r} (${e.hostId})`),console.log(` Environment: ${e.display.modeLabel} (${e.display.id})`)}async function mu(e){try{return(await w(e.client.api.v1.threads[":id"].timeline.$get({param:{id:e.threadId},query:{summaryOnly:"true"}}))).pendingTodos}catch{return null}}var cB={in_progress:"[>]",pending:"[ ]",completed:"[x]"},vC={in_progress:0,pending:1,completed:2};function lB(e){let t=0,r=0;for(let o of e)o.status==="completed"?r+=1:t+=1;return{active:t,completed:r,total:e.length}}function hu(e){if(!e||e.items.length===0)return;let t=lB(e.items);console.log("");let r=t.completed===0?`TODOs (${t.total}):`:`TODOs (${t.completed}/${t.total} done):`;console.log(r);let o=[...e.items].sort((n,i)=>vC[n.status]-vC[i.status]);for(let n of o)console.log(` ${cB[n.status]} ${n.text}`)}async function Ng(e){try{return await e()}catch{return null}}function dB(e){return Ng(()=>w(e.client.api.v1.projects[":id"].$get({param:{id:e.projectId}})))}function pB(e){return Ng(()=>w(e.client.api.v1.threads[":id"].$get({param:{id:e.threadId}})))}function mB(e){return Ng(()=>w(e.client.api.v1.threads.$get({query:{projectId:e.projectId,parentThreadId:e.parentThreadId}})))}function yC(e,t,r=ho){e.command("status").description("Show current context").option("--json","Print machine-readable JSON output").action(k(async o=>{let n=r(),i={project:null,thread:null,managedThreads:null,pendingTodos:null},s=!1;if(n.projectId||n.threadId){let u=j(t()),[l,c]=await Promise.all([n.projectId?dB({client:u,projectId:n.projectId}):Promise.resolve(null),n.threadId?pB({client:u,threadId:n.threadId}):Promise.resolve(null)]);if(l&&(i.project={id:l.id,name:l.name},s=!0),c){let p=null;if(c.environmentId&&(p=await du({client:u,environmentId:c.environmentId})),i.pendingTodos=await mu({client:u,threadId:c.id}),i.thread={id:c.id,type:c.type,status:c.status,title:c.title??null,parentThreadId:c.parentThreadId??null,environment:p},s=!0,c.type==="manager"){let d=await mB({client:u,projectId:c.projectId,parentThreadId:c.id});d&&(i.managedThreads=d.map(m=>({id:m.id,status:m.status,title:m.title??null})))}}}if(!R(o,i)){if(s&&i.project?console.log(`Project: ${i.project.name} (${i.project.id})`):n.projectId?console.log(`Project: ${n.projectId}`):console.log("Project: (not set)"),console.log(""),s&&i.thread){if(console.log(`Thread: ${i.thread.id}`),console.log(` Type: ${i.thread.type}`),console.log(` Status: ${i.thread.status}`),i.thread.title&&console.log(` Title: ${i.thread.title}`),i.thread.parentThreadId&&console.log(` Parent: ${i.thread.parentThreadId}`),i.thread.environment&&pu(i.thread.environment),i.managedThreads&&i.managedThreads.length>0){console.log(""),console.log(`Managed threads: ${i.managedThreads.length}`);for(let u of i.managedThreads){let l=u.title?`"${u.title}"`:"";console.log(` ${u.id} ${u.status} ${l}`)}}hu(i.pendingTodos)}else n.threadId?console.log(`Thread: ${n.threadId}`):console.log("Thread: (not set)");!n.projectId&&!n.threadId&&(console.log(""),console.log("Tip: run bb guide for help getting started."))}}))}function SC(e,t){e.command("update [id]").description("Update a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--title <title>","Set the thread title").option("--parent-thread <id>","Set the managing parent thread id").option("--clear-parent-thread","Clear the managing parent thread id").action(k(async(r,o)=>{let n=j(t());if(o.parentThread&&o.clearParentThread)throw new Error("Cannot combine --parent-thread with --clear-parent-thread.");if(!o.parentThread&&!o.clearParentThread&&!o.title)throw new Error("No changes requested. Provide --title, --parent-thread, or --clear-parent-thread.");let i=er(r,o),s={};o.title&&(s.title=o.title),o.parentThread?s.parentThreadId=o.parentThread:o.clearParentThread&&(s.parentThreadId=null);let u=await w(n.api.v1.threads[":id"].$patch({param:{id:i},json:s}));R(o,u)||(console.log(`Thread ${u.id} updated`),o.title&&console.log(`Title: ${u.title??"<untitled>"}`),(o.parentThread||o.clearParentThread)&&console.log(u.parentThreadId?`Managed by ${u.parentThreadId}`:"No managing parent thread"))})),e.command("archive [id]").description("Archive a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=er(r,o),i=j(t());try{await w(i.api.v1.threads[":id"].archive.$post({param:{id:n}}))}catch(s){throw ft(`Failed to archive thread ${n}`,s)}R(o,{ok:!0,threadId:n})||console.log(`Thread ${n} archived`)})),e.command("unarchive [id]").description("Unarchive a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=j(t()),i=er(r,o);await w(n.api.v1.threads[":id"].unarchive.$post({param:{id:i}})),!R(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} unarchived`)})),e.command("delete <id>").description("Delete a thread permanently").option("--yes","Skip the confirmation prompt").option("--confirm-assigned-child-threads","Confirm deleting a manager with assigned child threads").option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=j(t());try{let i=await w(n.api.v1.threads[":id"].$get({param:{id:r}}));if(!o.yes&&!await un(`Delete thread "${i.title??i.titleFallback??i.id}" permanently? This cannot be undone.`)){console.log(`Thread ${r} deletion cancelled`);return}await w(n.api.v1.threads[":id"].$delete({param:{id:r},json:{managerChildThreadsConfirmed:o.confirmAssignedChildThreads===!0}}))}catch(i){throw ft(`Failed to delete thread ${r}`,i)}R(o,{ok:!0,threadId:r})||console.log(`Thread ${r} deleted`)})),e.command("tell <id> <message>").description("Send a follow-up message to a thread").option("--json","Print machine-readable JSON output").option("--model <model>","Model ID for this message").option("--reasoning-level <level>","Reasoning level: low, medium, high, xhigh, max (provider-dependent)").option("--permission-mode <mode>",lu).option("--mode <mode>","Message mode (e.g. steer)").action(k(async(r,o,n)=>{let i=await hB({getUrl:t,threadId:r,message:o,mode:gB(n.mode),model:n.model,permissionMode:vr(n.permissionMode),reasoningLevel:tr(n.reasoningLevel),senderThreadId:fB(r)});R(n,{threadId:r,...i})||console.log(i.mode==="steer"?`Thread ${r} steered`:`Thread ${r} updated`)})),e.command("stop [id]").description("Stop an active thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=j(t()),i=er(r,o);await w(n.api.v1.threads[":id"].stop.$post({param:{id:i}})),!R(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} stopped`)}))}async function hB(e){let t=j(e.getUrl());return{...await w(t.api.v1.threads[":id"].send.$post({param:{id:e.threadId},json:{input:[{type:"text",text:e.message}],mode:e.mode,...e.model?{model:e.model}:{},...e.permissionMode?{permissionMode:e.permissionMode}:{},...e.reasoningLevel?{reasoningLevel:e.reasoningLevel}:{},...e.senderThreadId?{senderThreadId:e.senderThreadId}:{}}})),...e.mode==="steer"?{mode:"steer"}:{}}}function fB(e){let t=Ye();if(!(!t||t===e))return t}function gB(e){if(e===void 0)return"auto";let t=e.trim().toLowerCase();if(t==="steer")return"steer";if(t==="auto")return"auto";throw new Error(`Invalid message mode '${e}'. Expected 'auto' or 'steer'.`)}function vB(e){if(e===void 0)return"session";if(e==="turn"||e==="session")return e;throw new Error("Invalid --scope. Expected 'turn' or 'session'.")}function zo(e){if(Na(e.payload))return"question";if(!mt(e.payload))return fe(e.payload);switch(e.payload.subject.kind){case"command":return"command";case"file_change":return"file-change";case"permission_grant":return"permission";default:return fe(e.payload.subject)}}function yB(e){return mt(e.payload)&&(e.resolution===null||Wa(e.resolution))}function xC(e){return Na(e.payload)&&(e.resolution===null||nh(e.resolution))}function Ug(e){if(yB(e))return e;throw new Error(`Interaction ${e.id} is ${zo(e)} and cannot be resolved with this command.`)}function SB(e){if(xC(e))return e;throw new Error(`Interaction ${e.id} is ${zo(e)} and cannot be answered with this command.`)}function bB(e){console.log(" Questions:");for(let t of e.payload.questions){let r=t.shortLabel?`${t.shortLabel}: `:"";console.log(` - ${r}${t.prompt}`),t.options&&t.options.length>0&&console.log(` Options: ${t.options.map(o=>o.label).join(", ")}`),t.allowFreeText&&console.log(" Free text: allowed")}if(e.resolution){console.log(""),console.log("Answers:");for(let t of e.payload.questions){let r=e.resolution.answers[t.id];if(!r)continue;let n=[...r.selected.map(i=>Cf({question:t,value:i})),...r.freeText?[r.freeText]:[]];console.log(` ${t.shortLabel??t.prompt}: ${n.join(", ")}`)}}}function TB(e){switch(e.payload.subject.kind){case"command":case"file_change":for(let t of wf(e))console.log(` ${t}`);break;case"permission_grant":e.payload.subject.toolName&&console.log(` Tool: ${e.payload.subject.toolName}`),xB(e.payload.subject.permissions);break;default:fe(e.payload.subject)}e.payload.reason&&console.log(` Prompt: ${e.payload.reason}`),console.log(` Decisions: ${e.payload.availableDecisions.join(", ")}`),e.resolution&&(console.log(""),console.log("Resolution:"),console.log(` Decision: ${e.resolution.decision}`),e.resolution.decision==="allow_for_session"?console.log(" Scope: session"):e.resolution.decision==="allow_once"&&console.log(" Scope: turn"))}function xB(e){let t=cn(e);if(t.length!==0){console.log(" Permissions:");for(let r of t)console.log(` - ${r}`)}}function EB(e){if(console.log(`Interaction: ${e.id}`),console.log(` Thread: ${e.threadId}`),console.log(` Kind: ${zo(e)}`),console.log(` Status: ${e.status}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),e.resolvedAt!==null&&console.log(` Resolved: ${new Date(e.resolvedAt).toLocaleString()}`),e.statusReason&&console.log(` Reason: ${e.statusReason}`),e.status==="resolving"&&console.log(" Delivery: waiting for provider acknowledgement"),xC(e)){bB(e);return}TB(Ug(e))}async function EC(e){let t=j(e.getUrl());return w(t.api.v1.threads[":id"].interactions[":interactionId"].$get({param:{id:e.threadId,interactionId:e.interactionId}}))}function bC(e,t=[]){return[...t,e]}function DB(e){let t=e.rawValue.indexOf("=");if(t===-1)return{questionId:null,value:e.rawValue};let r=e.rawValue.slice(0,t),o=e.rawValue.slice(t+1);if(r.length===0||o.length===0)throw new Error("Invalid --choice value. Expected questionId=value or a single-question shorthand value.");return{questionId:r,value:o}}function IB({entry:e,interaction:t,questionById:r}){if(e.questionId!==null){if(!r.has(e.questionId))throw new Error(`Answer references unknown question '${e.questionId}'.`);return e.questionId}if(t.payload.questions.length!==1)throw new Error("--choice shorthand can only be used for single-question interactions.");return t.payload.questions[0].id}function _B({interaction:e,questionById:t,rawValue:r}){let o=r.indexOf("=");if(o!==-1){let n=r.slice(0,o);if(t.has(n))return{questionId:n,value:r.slice(o+1)};if(e.payload.questions.length>1)throw new Error(`Answer references unknown question '${n}'.`)}if(e.payload.questions.length===1)return{questionId:e.payload.questions[0].id,value:r};throw new Error("Multiple-question interactions require --text questionId=text.")}function wB(e,t,r){if(!new Set((e.options??[]).map(n=>n.value)).has(r))throw new Error(`Question '${e.id}' does not offer choice '${r}'.`);if(t.selected.includes(r))throw new Error(`Question '${e.id}' includes duplicate choice '${r}'.`);if(!e.multiSelect&&t.selected.length>0)throw new Error(`Question '${e.id}' accepts only one choice.`)}function PB(e,t,r){let o=r.trim();if(!e.allowFreeText)throw new Error(`Question '${e.id}' does not accept free text.`);if(o.length===0)throw new Error(`Question '${e.id}' free text cannot be empty.`);if(t.freeText!==void 0)throw new Error(`Question '${e.id}' has multiple free-text answers.`);return o}function CB({choiceValues:e,interaction:t,textValues:r}){let o=SB(t),n=new Map(o.payload.questions.map(s=>[s.id,s])),i={};for(let s of e){let u=DB({rawValue:s}),l=IB({entry:u,interaction:o,questionById:n}),c=n.get(l);if(!c)throw new Error(`Answer references unknown question '${l}'.`);let p=i[l]??{selected:[]};wB(c,p,u.value),p.selected=[...p.selected,u.value],i[l]=p}for(let s of r){let u=_B({interaction:o,questionById:n,rawValue:s}),l=n.get(u.questionId);if(!l)throw new Error(`Answer references unknown question '${u.questionId}'.`);let c=i[u.questionId]??{selected:[]};c.freeText=PB(l,c,u.value),i[u.questionId]=c}for(let s of o.payload.questions){let u=i[s.id];if(!u||u.selected.length===0&&u.freeText===void 0)throw new Error(`Missing answer for question '${s.id}'.`)}return{kind:"user_answer",answers:i}}async function fu(e){let t=await EC({getUrl:e.getUrl,interactionId:e.interactionId,threadId:e.threadId}),r=e.buildResolution(t),o=j(e.getUrl()),n=await w(o.api.v1.threads[":id"].interactions[":interactionId"].resolve.$post({param:{id:e.threadId,interactionId:e.interactionId},json:r})).catch(i=>{throw ft(`Failed to ${e.failureAction} interaction ${e.interactionId}`,i)});if(e.json){R({json:e.json},n);return}console.log(e.successMessage({interaction:t,resolution:r,updated:n}))}function kB(e,t){if(t==="approve"){if(e.payload.availableDecisions.includes("allow_once"))return"allow_once";if(e.payload.availableDecisions.includes("allow_for_session"))return"allow_for_session";throw new Error(`Interaction ${e.id} does not offer an approval decision.`)}if(e.payload.availableDecisions.includes("deny"))return"deny";throw new Error(`Interaction ${e.id} does not offer a deny decision.`)}function TC(e,t){let r=Ug(e);if(t==="approve"&&r.payload.subject.kind==="permission_grant")throw new Error(`Interaction ${e.id} is a permission grant; use bb thread interactions grant.`);let o=kB(r,t);return xs(r,o)}function RB(e,t){let r=Ug(e);if(r.payload.subject.kind!=="permission_grant")throw new Error(`Interaction ${e.id} is ${zo(e)} and cannot be granted with this command.`);return xs(r,t==="session"?"allow_for_session":"allow_once")}function AB(e){if(!Wa(e))throw new Error("Expected an approval resolution");return Pf(e.decision)}function qg(e){let t=e.updated.resolution??e.resolution,r=AB(t);return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (${r}); delivering to provider`:`Interaction ${e.interactionId} ${r}`}function jB(e){return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (answered); delivering to provider`:`Interaction ${e.interactionId} answered`}function DC(e,t){let r=e.command("interactions").description("Inspect and resolve thread interactions");r.command("list [id]").description("List interactions for a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(o,n)=>{let i=Ne(o,n),s=j(t());re(i,"Thread","BB_THREAD_ID",n);let u=await w(s.api.v1.threads[":id"].interactions.$get({param:{id:i.id}}));if(R(n,u))return;if(u.length===0){console.log("No interactions found");return}let l=ye({head:["ID","Kind","Status","Summary"],colWidths:[20,12,12,70],trimTrailingWhitespace:!0},u.map(c=>[c.id,zo(c),c.status,kf({interaction:c,surface:"cli"})]));console.log(""),console.log(l),console.log("")})),r.command("show <interactionId> [id]").description("Show an interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(o,n,i)=>{let s=Ne(n,i);re(s,"Thread","BB_THREAD_ID",i);let u=await EC({getUrl:t,interactionId:o,threadId:s.id});R(i,u)||EB(u)})),r.command("approve <interactionId> [id]").description("Approve a command or file-change interaction for this turn").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(o,n,i)=>{let s=Ne(n,i);re(s,"Thread","BB_THREAD_ID",i),await fu({buildResolution:u=>TC(u,"approve"),failureAction:"approve",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:l})=>qg({interactionId:o,resolution:u,updated:l})})})),r.command("grant <interactionId> [id]").description("Grant a permission interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--scope <scope>","Grant scope: turn or session").action(k(async(o,n,i)=>{let s=Ne(n,i);re(s,"Thread","BB_THREAD_ID",i);let u=vB(i.scope);await fu({buildResolution:l=>RB(l,u),failureAction:"grant",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:l,updated:c})=>qg({interactionId:o,resolution:l,updated:c})})})),r.command("answer <interactionId> [id]").description("Answer a user-question interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--choice <questionId=value>","Select an option value; repeat for multi-select answers",bC,[]).option("--text <questionId=text>","Provide a free-text answer",bC,[]).action(k(async(o,n,i)=>{let s=Ne(n,i);re(s,"Thread","BB_THREAD_ID",i),await fu({buildResolution:u=>CB({choiceValues:i.choice??[],interaction:u,textValues:i.text??[]}),failureAction:"answer",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({updated:u})=>jB({interactionId:o,updated:u})})})),r.command("deny <interactionId> [id]").description("Deny a command, file-change, or permission interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(k(async(o,n,i)=>{let s=Ne(n,i);re(s,"Thread","BB_THREAD_ID",i),await fu({buildResolution:u=>TC(u,"deny"),failureAction:"deny",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:l})=>qg({interactionId:o,resolution:u,updated:l})})}))}function IC(e,t){e.command("list").description("List threads").option("--project <id>","Filter by project ID (defaults to BB_PROJECT_ID)").option("--parent-thread <id>","Filter by managing parent thread ID").option("--archived","Show only archived threads").option("--json","Print machine-readable JSON output").action(k(async r=>{let o=j(t()),n=Yn(r.project);re(n,"Project","BB_PROJECT_ID",r);let i=n.id,s=Ye(r.parentThread),u={projectId:i,...s?{parentThreadId:s}:{},...r.archived?{archived:"true"}:{}},l=await w(o.api.v1.threads.$get({query:u}));if(!R(r,l)){if(l.length===0){console.log("No threads found");return}$B(l)}}))}function $B(e){let t=e.map(s=>[s.id,s.projectId,s.archivedAt!==null?`${Nt(s.status)} (archived)`:Nt(s.status)]),r=Math.max(4,...t.map(s=>s[0].length)),o=Math.max(7,...t.map(s=>s[1].length)),n=Math.max(12,...t.map(s=>s[2].length)),i=ye({head:["ID","Project","Status"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function B(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function _C(e){let r=e.replaceAll("\\","/").split("/"),o=r[r.length-1];return o&&o.length>0?o:e}function yr({mode:e,path:t}){switch(e){case"compact":return _C(t);case"full":return t}}function OB(e){return(e??"").toLowerCase().replaceAll(/[^a-z0-9]/gu,"")}function MB(e){let t=e.diff;if(!t)return!1;for(let r of t.split(`
1129
- `))if(!(r.startsWith("+++ ")||r.startsWith("--- "))&&(r.startsWith("+")||r.startsWith("-")))return!0;return!1}function Sr(e){if(e.movePath)return MB(e)?"edited":"renamed";let t=OB(e.kind);return t.includes("add")||t.includes("create")?"created":t.includes("delete")||t.includes("remove")?"deleted":"edited"}function wC(e){switch(e){case"created":return"Created";case"deleted":return"Deleted";case"renamed":return"Renamed";case"edited":return"Edited"}}function Vg(e){switch(e){case"created":return"Creating";case"deleted":return"Deleting";case"renamed":return"Renaming";case"edited":return"Editing"}}function PC(e){switch(e){case"created":return"create";case"deleted":return"delete";case"renamed":return"rename";case"edited":return"edit"}}function Wg({change:e,mode:t}){let r=yr({path:e.path,mode:t});return e.movePath?Sr(e)==="edited"?yr({path:e.movePath,mode:t}):`${r} -> ${yr({path:e.movePath,mode:t})}`:r}function ie(e,t,r){return`${e} ${e===1?t:r??`${t}s`}`}function Fo(e){if(e===void 0)return;if(!Number.isFinite(e)||e<0)return"0s";if(e<1e3)return`${Math.round(e)}ms`;let t=Math.round(e/1e3);return t<60?`${t}s`:zB(t)}function zB(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),o=e%60,n=[];return t>0&&n.push(`${t}h`),r>0&&n.push(`${r}m`),o>0&&n.push(`${o}s`),n.join(" ")}var FB=new Intl.NumberFormat("en-US");function Hg(e){return FB.format(e)}function Kg(e){let{added:t,removed:r,hideZero:o=!1}=e,n=`+${Hg(t)}`,i=`-${Hg(r)}`;if(!o)return`${n} ${i}`;let s=[];return t>0&&s.push(n),r>0&&s.push(i),s.join(" ")}function BB(e){return e.activityIntents.find(t=>t.type!=="unknown")??null}function Ee(e){return BB(e)!==null}function LB(e){return e.path??e.name}function NB(e,t){return yr({path:LB(e),mode:t})}function CC({intent:e,pathMode:t,pending:r}){return qB(gu({intent:e,pathMode:t,pending:r}))}function gu({intent:e,pathMode:t,pending:r}){return UB({intent:e,pathMode:t,pending:r})}function qB({content:e,prefix:t}){return t?`${t} ${e}`:e}function UB({intent:e,pathMode:t,pending:r}){switch(e.type){case"read":return{prefix:r?"Reading":"Read",content:NB(e,t)};case"list_files":return{prefix:r?"Listing":"Listed",content:e.path?`files in ${e.path}`:"files"};case"search":{let o=r?"Searching":"Searched";return e.query&&e.path?{prefix:o,content:`for ${e.query} in ${e.path}`}:e.query?{prefix:o,content:`for ${e.query}`}:e.path?{prefix:o,content:`in ${e.path}`}:{prefix:o,content:"files"}}case"unknown":return{prefix:null,content:e.command};default:return B(e)}}function Bo(e){switch(e.type){case"read":return`read:${e.path??e.name}`;case"list_files":return`list:${e.path??""}`;case"search":return`search:${e.query??""}|${e.path??""}`;case"unknown":return null;default:return B(e)}}function VB(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function WB(e){switch(e.type){case"read":return e.path??e.name;case"list_files":case"search":case"unknown":return null;default:return B(e)}}function kC(e,t,r,o){for(let n of e.activityIntents)switch(n.type){case"read":{let i=WB(n);i&&(r.add(i),o("files"));break}case"list_files":t.lists+=1,o("lists");break;case"search":t.searches+=1,o("searches");break;case"unknown":break;default:B(n)}}function vu(e){return e.change.movePath??e.change.path}function HB(e){let t=[],r=new Set,o=p=>{r.has(p)||(r.add(p),t.push(p))},n={commands:0,createdFiles:0,deletedFiles:0,delegations:0,editedFiles:0,fileChanges:0,files:0,lists:0,renamedFiles:0,searches:0,tools:0,webFetches:0,webSearches:0,explorationKindOrder:t},i=new Set,s=new Set,u=new Set,l=new Set,c=new Set;for(let p of e)switch(p.workKind){case"command":Ee(p)?kC(p,n,i,o):n.commands+=1;break;case"tool":Ee(p)?kC(p,n,i,o):n.tools+=1;break;case"file-change":switch(Sr(p.change)){case"created":s.add(vu(p));break;case"deleted":u.add(vu(p));break;case"edited":l.add(vu(p));break;case"renamed":c.add(vu(p));break}break;case"web-fetch":n.webFetches+=1;break;case"web-search":n.webSearches+=Math.max(1,p.queries.length);break;case"delegation":n.delegations+=1;break;case"question":case"approval":break;default:B(p)}return n.files=i.size,n.createdFiles=s.size,n.deletedFiles=u.size,n.editedFiles=l.size,n.renamedFiles=c.size,n.fileChanges=n.createdFiles+n.deletedFiles+n.editedFiles+n.renamedFiles,n}function KB(e){let t=e.explorationKindOrder.map(r=>{switch(r){case"files":return e.files>0?ie(e.files,"file"):null;case"searches":return e.searches>0?ie(e.searches,"search","searches"):null;case"lists":return e.lists>0?ie(e.lists,"list"):null;default:return B(r)}}).filter(r=>r!==null);return t.length===0?null:t.join(", ")}function ZB(e){let t=null,r=0,o=0,n=0;for(let u of e){let l;switch(u.workKind){case"command":if(u.approvalStatus===null)return null;l=u.approvalStatus,r+=1;break;case"file-change":if(u.approvalStatus===null)return null;l=u.approvalStatus,o+=1;break;case"tool":if(u.approvalStatus===null)return null;l=u.approvalStatus,n+=1;break;case"approval":case"question":case"delegation":case"web-fetch":case"web-search":return null;default:B(u)}if(t===null)t=l;else if(t!==l)return null}if(t===null)return null;let s=[r>0?ie(r,"command"):null,o>0?ie(o,"file change"):null,n>0?ie(n,"tool"):null].filter(u=>u!==null).join(", ");return t==="denied"?`Denied ${s}`:`Waiting for approval on ${s}`}function GB(e){switch(e.workKind){case"command":return Ee(e)?"exploration":"commands";case"tool":return Ee(e)?"exploration":"tools";case"file-change":return"fileChanges";case"web-fetch":case"web-search":return"webResearch";case"delegation":return"delegations";case"approval":case"question":return null;default:return B(e)}}function QB(e){let t=[];for(let r of e){let o=GB(r);o&&!t.includes(o)&&t.push(o)}return t}var JB={created:"Creating",deleted:"Deleting",edited:"Editing",renamed:"Renaming"},XB={created:"Created",deleted:"Deleted",edited:"Edited",renamed:"Renamed"};function $C(e,t){let r=[["created",e.createdFiles],["deleted",e.deletedFiles],["edited",e.editedFiles],["renamed",e.renamedFiles]].filter(([,i])=>i>0).map(([i,s])=>({action:i,count:s}));if(r.length===0)return null;if(r.length===1){let{action:i,count:s}=r[0];return`${t?JB[i]:XB[i]} ${ie(s,"file")}`}let o=r.reduce((i,s)=>i+s.count,0);return`${t?"Editing":"Edited"} ${ie(o,"file")}`}function YB(e,t,r){switch(e){case"exploration":return r?`Explored ${r}`:null;case"commands":return t.commands>0?`Ran ${ie(t.commands,"command")}`:null;case"fileChanges":return $C(t,!1);case"webResearch":return OC(t,!1);case"delegations":return t.delegations>0?`Ran ${ie(t.delegations,"subagent")}`:null;case"tools":return t.tools>0?`Ran ${ie(t.tools,"tool")}`:null;default:return B(e)}}function eL(e,t,r){switch(e){case"exploration":return r?`Exploring ${r}`:null;case"commands":return t.commands>0?`Running ${ie(t.commands,"command")}`:null;case"fileChanges":return $C(t,!0);case"webResearch":return OC(t,!0);case"delegations":return t.delegations>0?`Running ${ie(t.delegations,"subagent")}`:null;case"tools":return t.tools>0?`Running ${ie(t.tools,"tool")}`:null;default:return B(e)}}function tL(e){return e.map((t,r)=>r===0?t:VB(t)).join(", ")}function OC(e,t){let r=[];return e.webSearches>0&&r.push(ie(e.webSearches,"search query","search queries")),e.webFetches>0&&r.push(ie(e.webFetches,"web page")),r.length===0?null:`${t?"Researching":"Researched"} ${r.join(", ")}`}function yu(e,t={active:!1}){let r=ZB(e.children);if(r!==null)return RC(r);let o=HB(e.children),n=t.active,i=KB(o),s=QB(e.children).map(u=>n?eL(u,o,i):YB(u,o,i)).filter(u=>u!==null);return s.length===0?{verb:n?"Working":"Worked",rest:""}:RC(tL(s))}function Zg(e,t={active:!1}){let{verb:r,rest:o}=yu(e,t);return o.length===0?r:`${r} ${o}`}function RC(e){let t=e.indexOf(" ");return t===-1?{verb:e,rest:""}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function nL(e,t){return e==="error"||t==="error"?"error":e==="pending"||t==="pending"?"pending":e==="interrupted"||t==="interrupted"?"interrupted":"completed"}function MC(e){let t=e[0];if(!t)throw new Error("Cannot summarize an empty timeline activity run");let r=t.sourceSeqStart,o=t.sourceSeqEnd,n=t.startedAt,i=t.createdAt,s=t.turnId,u=t.status;for(let l of e)r=Math.min(r,l.sourceSeqStart),o=Math.max(o,l.sourceSeqEnd),n=Math.min(n,l.startedAt),i=Math.max(i,l.createdAt),u=nL(u,l.status),s!==l.turnId&&(s=null);return{id:[t.threadId,s??"thread","work-summary",t.id].join(":"),threadId:t.threadId,turnId:s,sourceSeqStart:r,sourceSeqEnd:o,startedAt:n,createdAt:i,status:u}}function rL(e){return e.kind==="work"&&e.workKind!=="approval"&&e.workKind!=="question"}function zC(e){return!(e.kind!=="conversation"||e.role==="user"&&e.turnRequest.status==="pending")}function oL(e){switch(e.workKind){case"command":case"tool":return Ee(e)?"exploration":e.workKind==="command"?"commands":"tools";case"file-change":return"fileChanges";case"delegation":return"delegations";case"web-search":case"web-fetch":return"webResearch";case"approval":case"question":return"tools";default:return B(e)}}function FC(e){let t=null,r=[];for(let o of e){if(o.workKind!=="command"&&o.workKind!=="tool"||o.activityIntents.length===0){t=null,r.push(o);continue}let n=Ee(o),i=[];for(let s of o.activityIntents){if(s.type==="unknown"){i.push(s);continue}let u=Bo(s);u!==null&&u===t||(i.push(s),t=u)}if(i.length===o.activityIntents.length){r.push(o);continue}n&&!i.some(s=>s.type!=="unknown")||r.push({...o,activityIntents:i})}return r}function iL(e){let t=FC(e);return{...MC(t),kind:"step-summary",children:t}}function aL(e){let t=FC(e);return{...MC(t),kind:"bundle-summary",children:t}}function AC(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[iL(e)]}function jC(e){if(e.length===0)return[];let t=[];for(let o of e){let n=oL(o),i=t[t.length-1];i&&i.concept===n?i.rows.push(o):t.push({concept:n,rows:[o]})}let r=[];for(let o of t)o.rows.length===1?r.push(o.rows[0]):r.push(aL(o.rows));return r}function BC(){return new WeakMap}function sL(e,t){if(e.workKind!=="delegation")return e;let r=e.status!=="pending";return{...e,childRows:Lo(e.childRows,{cache:t,closedScope:r})}}function uL(e,t){switch(e.kind){case"conversation":case"system":return e;case"work":return sL(e,t);case"turn":return{...e,children:e.children?Lo(e.children,{cache:t,closedScope:!0}):null};default:return B(e)}}function Lo(e,t={}){let r=t.cache;if(r){let u=r.get(e);if(u)return u}let o=r??BC(),n=e.map(u=>uL(u,o)),i=[],s=[];for(let u of n){if(rL(u)){s.push(u);continue}if(zC(u)){i.push(...AC(s)),s=[],i.push(u);continue}i.push(...jC(s)),s=[],i.push(u)}return t.closedScope?i.push(...AC(s)):i.push(...jC(s)),r&&r.set(e,i),i}function Gg(e,t){if(!t)return e;let r=Object.entries(t).filter(([,n])=>n!==void 0);if(r.length===0)return e;let o=r.map(([n,i])=>{let s=typeof i=="string"?i.trim():JSON.stringify(i),u=s.length>40?`${s.slice(0,37)}...`:s;return`${n}: ${u}`}).join(", ");return`${e} { ${o} }`}function LC(e){return e.replace(/[\r\n]+/gu," ")}function E(e,t={}){return{text:LC(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText!==void 0?{plainText:LC(t.plainText)}:{},...t.link!==void 0?{link:t.link}:{}}}function ee(e){return e.filter(t=>t!==null)}function qC(e){return e!==null&&e>1e3?e:null}function qt(e,t,r={}){if(t!==null){let o=t-e;if(qC(o)===null)return null}return{kind:"duration",startedAt:e,completedAt:t,em:r.em??!1}}function cL(e,t){return t===null?null:{kind:"duration",startedAt:e,completedAt:t,em:!0}}function De(e,t,r={}){return{kind:"status",status:e,durationMs:qC(t),emphasis:r.emphasis??!1}}function lL(e){let t=0,r=0;for(let o of e.children)o.status==="error"&&(t+=1),o.status==="interrupted"&&(r+=1);return t===0&&r===0?null:{kind:"summary-status",errorCount:t,interruptedCount:r}}function Su(e){let{added:t,removed:r}=e.diffStats;return t===0&&r===0?null:{kind:"diff-stats",added:t,removed:r}}function UC(e){switch(e.kind){case"duration":return e.completedAt===null?"":`(${Fo(e.completedAt-e.startedAt)})`;case"status":return e.durationMs!==null?`(${Fo(e.durationMs)}, ${e.status})`:`(${e.status})`;case"summary-status":{let t=[];return e.errorCount>0&&t.push(`${e.errorCount} error${e.errorCount>1?"s":""}`),e.interruptedCount>0&&t.push(`${e.interruptedCount} interrupted`),t.length===0?"":`(${t.join(", ")})`}case"diff-stats":return Kg({added:e.added,removed:e.removed,hideZero:!0});default:return B(e)}}function VC(e,t){let r=e.map(n=>n.plainText??n.text).filter(n=>n.length>0).join(" "),o=t.map(UC).filter(n=>n.length>0).join(" ");return o.length===0?r:r.length===0?o:`${r} ${o}`}function M({segments:e,decorations:t=[],tone:r="default",action:o=null}){return{segments:e,decorations:t,tone:r,action:o,plain:VC(e,t)}}function Qg({approvalStatus:e,status:t}){return e==="waiting_for_approval"?"waiting":e==="denied"?"denied":t}function dL(e){let t=pL(e);if(t!==null)return t;let r=Qg({approvalStatus:e.approvalStatus,status:e.status}),o=e.workKind==="command",n=o?e.command:Gg(e.toolName,e.toolArgs);switch(r){case"waiting":return M({segments:[E("Waiting for approval",{shimmer:!0}),E(o?"to run":"to use"),E(n,{em:!0,truncate:!0})]});case"denied":return M({segments:[E("Permission denied:"),E(n,{em:!0,truncate:!0})],decorations:ee([qt(e.startedAt,e.completedAt)])});case"pending":return M({segments:[E(o?"Running":"Running tool:",{shimmer:!0}),E(n,{em:!0,truncate:!0})],decorations:ee([qt(e.startedAt,e.completedAt)])});case"completed":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:ee([qt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[De("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[De("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(r)}}function pL(e){if(!Ee(e))return null;let t=e.activityIntents.filter(c=>c.type!=="unknown");if(t.length!==1)return null;let r=t[0];if(!r)return null;let o=Qg({approvalStatus:e.approvalStatus,status:e.status}),n=o==="pending",i=gu({intent:r,pathMode:"compact",pending:n}),s=gu({intent:r,pathMode:"full",pending:n});if(o==="denied"){let c=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return M({segments:[E("Permission denied:"),E(c,{em:!0,truncate:!0,plainText:p})]})}if(o==="waiting"){let c=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return M({segments:[E("Waiting for approval",{shimmer:!0}),E("to use"),E(c,{em:!0,truncate:!0,plainText:p})]})}let u=[];i.prefix&&u.push(E(i.prefix,{shimmer:n})),u.push(E(i.content,{em:!1,truncate:!0,plainText:s.content}));let l=o==="error"?[De("error",null)]:o==="interrupted"?[De("interrupted",null)]:[];return M({segments:u,decorations:l})}function mL(e){let t=Qg({approvalStatus:e.approvalStatus,status:e.status}),r=Sr(e.change),o=Wg({change:e.change,mode:"compact"}),n=Wg({change:e.change,mode:"full"}),i={kind:"open-file-diff",path:e.change.movePath??e.change.path},s=E(o,{em:!0,truncate:!0,plainText:n});switch(t){case"waiting":return M({segments:[E("Waiting for approval",{shimmer:!0}),E("to edit"),s],decorations:ee([Su(e.change)]),action:i});case"denied":return M({segments:[E("Permission denied:"),s],decorations:ee([Su(e.change)]),action:i});case"pending":return M({segments:[E(Vg(r),{shimmer:!0}),s],decorations:ee([Su(e.change)]),action:i});case"completed":return M({segments:[E(wC(r)),s],decorations:ee([Su(e.change)]),action:i});case"error":return M({segments:[E(`Failed to ${PC(r)}`),s],decorations:[De("error",null)],action:i});case"interrupted":return M({segments:[E(`Interrupted while ${Vg(r).toLowerCase()}`),s],action:i});default:return B(t)}}function hL(e){let t=e.queries.join(", ")||"web search",r=E(t,{em:!1,truncate:!0});switch(e.status){case"pending":return M({segments:[E("Running web search:",{shimmer:!0}),r]});case"completed":return M({segments:[E("Ran web search:"),r],decorations:ee([qt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Ran web search:"),r],decorations:[De("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted web search:"),r],decorations:[De("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(e.status)}}function fL(e){let t=E(e.url,{em:!1,truncate:!0});switch(e.status){case"pending":return M({segments:[E("Fetching:",{shimmer:!0}),t]});case"completed":return M({segments:[E("Fetched:"),t],decorations:ee([qt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Fetched:"),t],decorations:[De("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted fetch:"),t],decorations:[De("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(e.status)}}function gL(e){switch(e){case"pending":return{text:"Running subagent:",shimmer:!0};case"completed":return{text:"Ran subagent:",shimmer:!1};case"error":return{text:"Failed subagent:",shimmer:!1};case"interrupted":return{text:"Interrupted subagent:",shimmer:!1};default:return B(e)}}function vL(e){let t=e.description??(e.output.trim()||e.toolName),r=gL(e.status),o=[E(r.text,{shimmer:r.shimmer}),E(t,{em:!0,truncate:!0})];return e.subagentType&&o.push(E(`(${e.subagentType})`,{em:!1,truncate:!0})),M({segments:o,decorations:ee([qt(e.startedAt,e.completedAt)])})}function yL(e){switch(e.lifecycle){case"waiting":return M({segments:[E("Waiting for approval to edit",{shimmer:!0}),E("files",{em:!0,truncate:!0})]});case"denied":return M({segments:[E("Permission denied:"),E("file changes",{em:!0,truncate:!0})]});default:return B(e.lifecycle)}}function SL(e){let t=e.target.toolName,r=e.statusReason!==null&&e.statusReason.trim().length>0?e.statusReason.trim():null,o=r!==null?E(`(${r})`,{truncate:!0}):null;switch(e.lifecycle){case"pending":{let n=t!==null?[E("Waiting for permission",{shimmer:!0}),E("to use"),E(t,{em:!0,truncate:!0})]:[E("Waiting for permissions",{shimmer:!0})];return M({segments:n})}case"resolving":{let n=t!==null?[E("Delivering permission",{shimmer:!0}),E("to use"),E(t,{em:!0,truncate:!0})]:[E("Delivering permissions",{shimmer:!0})];return M({segments:n})}case"granted":{let n=e.grantScope==="turn"?"for this turn":e.grantScope==="session"?"for this session":null,i=n!==null?`Permission granted ${n}:`:"Permission granted:",s=t!==null?[E(i),E(t,{em:!0,truncate:!0})]:[E(n!==null?`Permission granted ${n}`:"Permission granted")];return M({segments:s})}case"denied":return M({segments:t!==null?[E("Permission denied:"),E(t,{em:!0,truncate:!0})]:[E("Permission denied")]});case"interrupted":return M({segments:ee([E(t!==null?"Permission grant interrupted:":"Permission grant interrupted"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});case"expired":return M({segments:ee([E(t!==null?"Permission grant expired:":"Permission grant expired"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});default:return B(e.lifecycle)}}function bL(e){switch(e.approvalKind){case"file-edit":return yL(e);case"permission-grant":return SL(e);default:return B(e)}}function TL(e){return e.questions.length===1?e.questions[0]??null:null}function xL(e,t){let r=e.answers?.[t.id];if(!r)return null;let o=r.selected.map(i=>t.options?.find(u=>u.value===i)?.label??i);r.freeText&&o.push(r.freeText);let n=o.join(", ");return n.length>0?n:null}function EL(e){let t=TL(e),r=t?E(t.prompt,{em:!0,truncate:!0}):E(`${e.questions.length} questions`,{em:!0});switch(e.lifecycle){case"pending":return M({segments:[E(t?"Waiting for answer":"Waiting for answers to",{shimmer:!0}),r]});case"resolving":return M({segments:[E(t?"Delivering answer":"Delivering answers to",{shimmer:!0}),r]});case"answered":{let o=t?xL(e,t):null;return M({segments:ee([E("Answered"),r,o?E(`\u2014 ${o}`,{truncate:!0}):null])})}case"interrupted":return M({segments:[E("Asked"),r],decorations:[De("interrupted",null)]});case"expired":return M({segments:[E("Asked"),r],decorations:[De("expired",null)]});default:return B(e.lifecycle)}}function DL(e,t){let r=(()=>{switch(e.workKind){case"command":case"tool":return dL(e);case"file-change":return mL(e);case"web-search":return hL(e);case"web-fetch":return fL(e);case"delegation":return vL(e);case"approval":return bL(e);case"question":return EL(e);default:return B(e)}})();return t.workStyle==="default"?r:{...r,tone:"summary"}}function IL(e,t){let r=e.kind==="bundle-summary"&&t.isActiveLatestBundle===!0,{verb:o,rest:n}=yu(e,{active:r}),i=ee([lL(e)]);if(t.summaryStyle==="background"){let u=n.length===0?o:`${o} ${n}`;return M({segments:[E(u,{em:!1,truncate:!0})],decorations:i,tone:"summary"})}let s=E(o,{shimmer:r});return n.length===0?M({segments:[{...s,truncate:!0}],decorations:i}):M({segments:[s,E(n,{em:!0,truncate:!0})],decorations:i})}function _L(e){let t=e.status==="pending",r=t?qt(e.startedAt,e.completedAt,{em:!0}):cL(e.startedAt,e.completedAt);return!t&&e.completedAt!==null&&r!==null?M({segments:[E("Worked for",{shimmer:!1})],decorations:[r]}):M({segments:[E(t?"Working":"Worked",{shimmer:t})],decorations:t&&r!==null?[r]:[]})}function NC(e,t){return e===null?null:E(t??e,{em:!0,truncate:!0,link:{kind:"thread",threadId:e}})}function wL(e){switch(e){case"completed":case"error":case"interrupted":return{assign:"Thread assigned to",release:"Thread unassigned from",transferFrom:"Thread reassigned from",transferTo:"to"};case"pending":return{assign:"Assigning thread to",release:"Releasing thread from",transferFrom:"Reassigning thread from",transferTo:"to"};default:return B(e)}}function PL(e){let t=e.managerAssignment,r=NC(t.previousManagerThreadId,t.previousManagerThreadTitle),o=NC(t.nextManagerThreadId,t.nextManagerThreadTitle),n=e.status==="pending",i=wL(e.status),s=(()=>{switch(t.action){case"assign":return ee([E(i.assign,{shimmer:n}),o]);case"release":return ee([E(i.release,{shimmer:n}),r]);case"transfer":return ee([E(i.transferFrom,{shimmer:n}),r,o!==null?E(i.transferTo,{shimmer:n}):null,o]);default:return B(t.action)}})(),u=(()=>{switch(e.status){case"error":return[De("error",null,{emphasis:!0})];case"interrupted":return[De("interrupted",null)];case"pending":case"completed":return[];default:return B(e.status)}})();return M({segments:s,decorations:u})}function CL(e){let t=e.systemKind==="error"||e.status==="error";if(e.systemKind==="operation"&&e.operationKind==="manager-assignment")return PL(e);let r=e.systemKind==="operation"&&e.operationKind==="compaction",o=r&&e.status==="pending"?`${e.title}\u2026`:e.title,n=t?[De("error",null,{emphasis:!0})]:r&&(e.status==="pending"||e.status==="completed")?ee([qt(e.startedAt,e.completedAt)]):[];return M({segments:[E(o,{shimmer:e.status==="pending",truncate:!0})],decorations:n})}function kL(e){return M({segments:[E(e.role==="user"?"User":"Assistant",{em:!1})]})}function RL(e){return e.kind==="conversation"&&e.role==="user"}function WC(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t];if(r&&!RL(r))return r}return null}function bu(e){let t=WC(e);return t?.kind==="bundle-summary"?t.id:null}function Tu(e,t){switch(e.kind){case"conversation":return kL(e);case"system":return CL(e);case"work":return DL(e,t);case"bundle-summary":case"step-summary":return IL(e,t);case"turn":return _L(e);default:return B(e)}}var AL={summaryStyle:"bundle",workStyle:"default"};function QC(e,t){return{...AL,isActiveLatestBundle:e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId}}var HC=3,Jg=100;function Et(e,t){return t?`\x1B[2m${e}\x1B[22m`:e}function jL(e,t){return t?`\x1B[32m${e}\x1B[39m`:e}function Xg(e,t){return t?`\x1B[33m${e}\x1B[39m`:e}function JC(e,t){return t?`\x1B[31m${e}\x1B[39m`:e}function $L(e,t){return t?`\x1B[36m${e}\x1B[39m`:e}function OL(e,t){let r=Math.max(0,60-e.length-4),o="\u2500".repeat(r);return Et(o.length>0?`\u2500\u2500 ${e} ${o}`:`\u2500\u2500 ${e}`,t)}function rt(e,t){return t.depth===0?OL(e,t.color):Et(`\u2500\u2500 ${e}`,t.color)}function Yg(e,t){return{...e,depth:e.depth+1,activeLatestBundleId:t?bu(t):null}}function Ut(e,t){return e.split(`
890
+ {{/if}}`,fileName:"thread-operation-squash-merge-conflict-follow-up.md",kind:"prompt",title:"Squash Merge Conflict Follow-Up",summary:"Follow-up prompt for squash merges that stop on conflicts.",intent:"Tell the agent to rebase onto the merge base, resolve the conflicts, and retry the squash merge.",editingNotes:"Keep this concise and procedural. Conflict file details are optional context and should stay additive.",variables:{mergeBaseBranch:"Merge base branch name shown to the agent.",conflictFiles:"Optional comma-separated file list."}}];function E4(e){return Ug.some(t=>t.id===e)}function D4(){let e=Ug.map(t=>{if(!E4(t.id))throw new Error(`Unknown generated template id: ${t.id}`);return[t.id,{...t,id:t.id,kind:t.kind}]});return Object.fromEntries(e)}var Wg=D4();var hC=!1;function I4(){if(!hC){for(let e of Object.values(Wg))Vg.default.registerPartial(e.id,e.body);hC=!0}}var fC=new Map;function _4(e){let t=fC.get(e);if(t)return t;let r=Vg.default.compile(Wg[e].body,{noEscape:!0});return fC.set(e,r),r}function fc(e,t){return I4(),_4(e)(t).trim()}var gC={threads:"bbGuideThreads",environments:"bbGuideEnvironments",managers:"bbGuideManagers","manager-templates":"bbGuideManagerTemplates",app:"bbGuideApp",providers:"bbGuideProviders",projects:"bbGuideProjects",hosts:"bbGuideHosts",styling:"bbGuideApp",async:"bbGuideAsync"};function vC(e){e.command("guide [chapter]").description("Show the BB system overview and CLI guide").option("--json","Print machine-readable JSON output").action(w(async(t,r)=>{if(t){let n=gC[t];if(!n){let s=Object.keys(gC).join(", ");throw new Error(`Unknown guide chapter '${t}'. Available: ${s}.`)}let i=fc(n,{});if(R(r,{chapter:t,content:i}))return;console.log(i);return}let o=fc("bbGuideOverview",{});R(r,{overview:o})||console.log(o)}))}function yC(e,t){e.command("host").description("Inspect available hosts").command("list").description("List persistent hosts").option("--json","Print machine-readable JSON output").action(w(async o=>{let n=A(t()),i=await _(n.api.v1.hosts.$get());if(!R(o,i)){if(i.length===0){console.log("No hosts found");return}P4(i)}}))}function P4(e){let t=e.map(s=>[s.id,s.name,s.status]),r=Math.max(4,...t.map(s=>s[0].length)),o=Math.max(4,...t.map(s=>s[1].length)),n=Math.max(6,...t.map(s=>s[2].length)),i=ie({head:["ID","Name","Status"],colWidths:[r,o,n],trimTrailingWhitespace:!0},t);console.log(""),console.log(i),console.log("")}var yr;async function Ee(){if(yr!==void 0)return yr;try{let t=await Ef(m_()).status.$get();return t.ok?(yr=(await t.json()).hostId,yr):(yr=null,null)}catch{return yr=null,null}}var Hg=2,Kg=3,SC=4,Zg=30,Gg=250,w4=["fast","default"],gc="Permission mode: full, workspace-write, or readonly",bC="Permission mode: full, workspace-write, or readonly (managed threads deny escalations)";function Kt(e){switch(e){case"created":return"created";case"provisioning":return"provisioning";case"error":return"error";case"idle":return"idle";case"active":return"active";default:return ve(e)}}function TC(e){if(e===void 0)return Zg;let t=Number.parseFloat(e);if(!Number.isFinite(t)||t<0)throw new Error("Timeout must be a non-negative number of seconds.");return t}function xC(e){if(e===void 0)return Gg;let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<1)throw new Error("Poll interval must be a positive integer number of milliseconds.");return t}function EC(e){if(e===void 0)return;let t=ge.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid service tier '${e}'. Expected ${Mf(w4)}.`)}function Sr(e){if(e===void 0)return;let t=le.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid permission mode '${e}'. Expected full, workspace-write, or readonly.`)}function _C(e,t){let r=e.command("manager").description("Manage managers");r.command("hire [projectId]").description("Hire a new manager; defaults to projectless when no project context is set").option("--project <id>","Project ID (defaults to BB_PROJECT_ID)").option("--name <name>","Manager name").option("--provider <id>","Provider ID for the manager. Omit to use the project's remembered manager defaults or the server manager policy").option("--model <model>","Model ID for the manager. Omit to use the remembered or server default for the resolved provider").option("--template <name>","Manager template set name from manager-templates/<name>").option("--reasoning-level <level>","Reasoning level (low, medium, high, xhigh, max; provider-dependent)").option("--permission-mode <mode>",bC).option("--host <id>","Host ID (defaults to local host)").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=To(o??n.project),c=s?.id??Be;s&&oe(s,"Project","BB_PROJECT_ID",n);let l=or(n.reasoningLevel),u=Sr(n.permissionMode),p=n.host;if(!p&&(p=await Ee()??void 0,!p))throw new Error("Cannot auto-detect host ID (daemon unreachable). Pass --host <id> explicitly.");let d=await _(i.api.v1.projects[":id"].managers.$post({param:{id:c},json:{origin:"cli",...n.name?{name:n.name}:{},...n.provider?{providerId:n.provider}:{},...n.model?{model:n.model}:{},...n.template?{templateName:n.template}:{},environment:{type:"host",hostId:p},...l?{reasoningLevel:l}:{},...u?{permissionMode:u}:{}}}));R(n,d)||(console.log(`Manager hired: ${d.id}`),IC(d))})),r.command("list [projectId]").description("List managers; without project context, lists managers across all projects").option("--project <id>","Project ID (defaults to BB_PROJECT_ID; omit both to list all projects)").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=To(o??n.project);s&&oe(s,"Project","BB_PROJECT_ID",n);let c=R4({projectId:s?.id}),l=await _(i.api.v1.threads.$get({query:c}));if(!R(n,l)){if(l.length===0){console.log("No managers hired");return}wC({includeProject:s===void 0,threads:l})}})),r.command("status <id>").description("Show manager status and managed threads").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=o,c=await DC(i,s),l=await k4(i,c.projectId,s);R(n,{manager:c,managedThreads:l})||(IC(c),A4(l))})),r.command("delete <id>").description("Delete a manager permanently").option("--yes","Skip the confirmation prompt").option("--confirm-assigned-child-threads","Confirm deleting a manager with assigned child threads").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=o,c=await DC(i,s);if(!n.yes&&!await St(`Delete manager "${c.title??c.id}" permanently? This cannot be undone.`)){console.log(`Manager ${s} deletion cancelled`);return}await _(i.api.v1.threads[":id"].$delete({param:{id:s},json:{managerChildThreadsConfirmed:n.confirmAssignedChildThreads===!0}})),!R(n,{ok:!0,managerId:s})&&console.log(`Manager ${s} deleted`)}))}async function C4(e,t){return _(e.api.v1.threads[":id"].$get({param:{id:t}}))}async function DC(e,t){let r=await C4(e,t);if(r.type!=="manager")throw new Error(`Thread ${t} is not a manager`);return r}async function k4(e,t,r){return _(e.api.v1.threads.$get({query:{projectId:t,parentThreadId:r}}))}function IC(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Title: ${e.title??"<untitled>"}`),console.log(` Type: ${e.type}`),console.log(` Status: ${e.status}`),console.log(` Project: ${PC(e.projectId)}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),console.log("")}function R4(e){return{...e.projectId?{projectId:e.projectId}:{},type:"manager"}}function PC(e){return e===Be?"-":e}function wC(e){let t=e.threads.map(i=>e.includeProject?[i.id,PC(i.projectId),i.status,i.title??"<untitled>"]:[i.id,i.status,i.title??"<untitled>"]),r=Math.max(4,...t.map(i=>i[0].length)),o=e.includeProject?{head:["ID","Project","Status","Title"],colWidths:[r,Math.max(7,...t.map(i=>i[1].length)),Math.max(6,...t.map(i=>i[2].length)),Math.max(5,...t.map(i=>i[3].length))]}:{head:["ID","Status","Title"],colWidths:[r,Math.max(6,...t.map(i=>i[1].length)),Math.max(5,...t.map(i=>i[2].length))]},n=ie(o,t);console.log(""),console.log(n),console.log("")}function A4(e){if(console.log("Managed threads:"),e.length===0){console.log(" None");return}wC({includeProject:!1,threads:e})}async function j4(e){if(e)return e;let t=await Ee();if(!t)throw new Error("Cannot auto-detect host ID (daemon unreachable). Pass --host <id> explicitly.");return t}async function CC(e){if(e.path)return{hostId:await j4(e.host),path:e.path,type:"local_path"};throw new Error("Provide --path.")}function $4(e,t){let r=e.sources.find(o=>o.id===t);if(!r)throw new Error(`Project source ${t} not found on project ${e.id}.`);return r}function M4(e,t){if(!t.path&&!t.default)throw new Error("Provide --path and/or --default.");return{...t.default?{isDefault:!0}:{},...t.path?{path:t.path}:{},type:e.type}}function O4(e){return{isDefault:!0,type:"local_path"}}function kC(e,t){let r=t&&e.hostId===t?" (local)":"",o=e.isDefault?" [default]":"";console.log(`${e.id} ${e.hostId}${r} ${e.type} ${e.path}${o}`)}function RC(e,t){let r=e.command("project").description("Inspect and manage projects"),o=r.command("source").description("Manage project sources");r.command("list").description("List projects").option("--json","Print machine-readable JSON output").action(w(async n=>{let i=A(t()),s=await _(i.api.v1.projects.$get());if(R(n,s))return;if(s.length===0){console.log("No projects found");return}let c=await Ee();z4(s,c)})),r.command("create").description("Create a project").requiredOption("--name <name>","Project name").option("--root <path>","Project source path").option("--host <id>","Host ID for the project source (auto-detected from daemon if omitted)").option("--json","Print machine-readable JSON output").action(w(async n=>{let i=A(t()),s=await CC({host:n.host,path:n.root}),c=await _(i.api.v1.projects.$post({json:{name:n.name,source:s}}));if(R(n,c))return;console.log(`Project created: ${c.id}`);let l=await Ee();Qg(c,l)})),r.command("show <id>").description("Show project details").option("--json","Print machine-readable JSON output").action(w(async(n,i)=>{let s=A(t()),c=await _(s.api.v1.projects[":id"].$get({param:{id:n}}));if(R(i,c))return;let l=await Ee();Qg(c,l)})),r.command("update <id>").description("Update a project").option("--name <name>","Set the project name").option("--json","Print machine-readable JSON output").action(w(async(n,i)=>{let s=A(t());if(!i.name)throw new Error("No changes requested. Provide --name.");let c={name:i.name},l=await _(s.api.v1.projects[":id"].$patch({param:{id:n},json:c}));if(R(i,l))return;console.log(`Project ${l.id} updated`);let u=await Ee();Qg(l,u)})),r.command("delete <id>").description("Delete a project and all its threads").option("--yes","Skip confirmation prompt").option("--json","Print machine-readable JSON output").action(w(async(n,i)=>{let s=A(t());if(!i.yes&&!await St(`Delete project ${n} and all its threads?`)){console.log("Aborted.");return}await _(s.api.v1.projects[":id"].$delete({param:{id:n}})),!R(i,{ok:!0,id:n})&&console.log(`Project ${n} deleted`)})),o.command("add <projectId>").description("Add a source to a project").option("--path <path>","Local path source").option("--host <id>","Host ID for a local path source (auto-detected from daemon if omitted)").option("--default","Mark the new source as default").option("--json","Print machine-readable JSON output").action(w(async(n,i)=>{let s=A(t()),c=await CC({host:i.host,path:i.path}),l=await _(s.api.v1.projects[":id"].sources.$post({param:{id:n},json:c})),u=i.default?await _(s.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:l.id},json:O4(l)})):l;if(R(i,u))return;console.log(`Project source added: ${u.id}`);let p=await Ee();kC(u,p)})),o.command("update <projectId> <sourceId>").description("Update a project source").option("--path <path>","New local path for a local path source").option("--default","Mark this source as default").option("--json","Print machine-readable JSON output").action(w(async(n,i,s)=>{let c=A(t()),l=await _(c.api.v1.projects[":id"].$get({param:{id:n}})),u=$4(l,i),p=M4(u,s),d=await _(c.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:i},json:p}));if(R(s,d))return;console.log(`Project source updated: ${d.id}`);let m=await Ee();kC(d,m)})),o.command("delete <projectId> <sourceId>").description("Delete a project source").option("--yes","Skip confirmation prompt").option("--json","Print machine-readable JSON output").action(w(async(n,i,s)=>{let c=A(t());if(!s.yes&&!await St(`Delete project source ${i} from project ${n}?`)){console.log("Aborted.");return}await _(c.api.v1.projects[":id"].sources[":sourceId"].$delete({param:{id:n,sourceId:i}})),!R(s,{ok:!0,projectId:n,sourceId:i})&&console.log(`Project source ${i} deleted`)}))}function Qg(e,t){if(console.log(""),console.log(` ID: ${e.id}`),console.log(` Name: ${e.name}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),e.sources.length>0){console.log(" Sources:");for(let r of e.sources){let o=t&&r.hostId===t?" (local)":"";console.log(` ${r.hostId}${o} ${r.type} ${r.path}`)}}console.log("")}function z4(e,t){let r=e.map(c=>{let l=t?Oh(c.sources,t):void 0;return[c.id,c.name,l?.path??"-"]}),o=Math.max(4,...r.map(c=>c[0].length)),n=Math.max(4,...r.map(c=>c[1].length)),i=Math.max(10,...r.map(c=>c[2].length)),s=ie({head:["ID","Name","Local Path"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}function AC(e,t){let r=e.command("provider").description("Inspect available providers and models");r.command("list").description("List available providers").option("--json","Print machine-readable JSON output").action(w(async o=>{let n=A(t()),i=await _(n.api.v1.system.providers.$get({query:{}}));if(!R(o,i)){if(i.length===0){console.log("No providers available");return}F4(i)}})),r.command("models [providerId]").description("List available models for a provider").option("--json","Print machine-readable JSON output").option("--selected-model <model>","Include a selected-only model if it matches").action(w(async(o,n)=>{let i=A(t()),s=await _(i.api.v1.system["execution-options"].$get({query:{...o?{providerId:o}:{}}})),c=B4({models:s.models,selectedOnlyModels:s.selectedOnlyModels,selectedModel:n.selectedModel});if(!R(n,c)){if(c.length===0){console.log("No models available");return}L4(c,o)}}))}function B4(e){if(!e.selectedModel||e.models.some(r=>r.model===e.selectedModel))return e.models;let t=e.selectedOnlyModels.find(r=>r.model===e.selectedModel);return t?[t,...e.models]:e.models}function F4(e){let t=e.map(i=>[i.id,i.displayName]),r=Math.max(4,...t.map(i=>i[0].length)),o=Math.max(4,...t.map(i=>i[1].length)),n=ie({head:["ID","Name"],colWidths:[r,o]},t);console.log(""),console.log(n),console.log("")}function L4(e,t){t&&console.log(`Models for ${t}:`);let r=e.map(c=>[c.model,c.displayName??c.model,c.isDefault?"*":""]),o=Math.max(5,...r.map(c=>c[0].length)),n=Math.max(4,...r.map(c=>c[1].length)),i=Math.max(7,...r.map(c=>c[2].length)),s=ie({head:["Model","Name","Default"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}var jC=1;function N4(e){if(e===void 0)return jC;let t=Number(e),r=dn.safeParse(t);if(!r.success)throw new Error("Replay speed must be one of: 0.5, 1, 2, 5, 10");return r.data}function q4(e){return new Date(e).toISOString()}var U4="http://localhost:5173/development-only/replay";function W4(e){if(e.length===0){console.log("No replay captures found.");return}console.log(ie({head:["Capture","Host","Provider","Project","Thread","Raw events","Captured"],colWidths:[28,16,16,18,18,10,26],trimTrailingWhitespace:!0},e.map(t=>[t.captureId,t.hostId,t.providerId,t.projectId,t.threadId,String(t.eventCounts.rawProviderEvents),q4(t.capturedAt)])))}function V4(e){console.log(`Replay thread: ${e.replayThreadId}`),console.log(`Project: ${e.projectId}`),console.log(`Command: ${e.commandId}`)}function $C(e,t){let r=e.command("replay").description("Manage dev replay captures");r.command("list").description("List dev replay captures").option("--json","Print machine-readable JSON output").action(w(async o=>{let n=A(t()),i=await _(n.api.v1["development-only"].replay.captures.$get());R(o,i)||W4(i.captures)})),r.command("run <captureId>").description("Start a new replay thread from a capture").option("--json","Print machine-readable JSON output").option("--speed <n>","Replay speed multiplier: 0.5, 1, 2, 5, or 10",String(jC)).action(w(async(o,n)=>{let i=A(t()),s=N4(n.speed),c=await _(i.api.v1["development-only"].replay.captures[":id"].runs.$post({param:{id:o},json:{speed:s}}));R(n,c)||V4(c)})),r.command("delete <captureId>").description("Delete a dev replay capture").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=A(t()),s=await _(i.api.v1["development-only"].replay.captures[":id"].$delete({param:{id:o}}));R(n,s)||console.log(`Deleted replay capture ${o}`)})),r.command("open").description("Print the app URL for the replay captures list").option("--json","Print machine-readable JSON output").action(w(async o=>{let n={url:U4};R(o,n)||console.log(n.url)}))}async function H4(e){try{return await _(e.client.api.v1.hosts[":id"].$get({param:{id:e.hostId}}))}catch{return null}}async function vc(e){try{let[t,r]=await Promise.all([_(e.client.api.v1.environments[":id"].$get({param:{id:e.environmentId}})),Ee()]),o=await H4({client:e.client,hostId:t.hostId}),n=t.hostId===r;return{display:Of({environment:t,isLocalHost:n,hostName:o?.name}),hostId:t.hostId,hostName:o?.name??null,isLocalHost:n}}catch{return null}}function yc(e){let t=e.hostName??e.hostId,r=e.isLocalHost?" (localhost)":"";console.log(` Host: ${t}${r} (${e.hostId})`),console.log(` Environment: ${e.display.modeLabel} (${e.display.id})`)}async function Sc(e){try{return(await _(e.client.api.v1.threads[":id"].timeline.$get({param:{id:e.threadId},query:{summaryOnly:"true"}}))).pendingTodos}catch{return null}}var K4={in_progress:"[>]",pending:"[ ]",completed:"[x]"},MC={in_progress:0,pending:1,completed:2};function Z4(e){let t=0,r=0;for(let o of e)o.status==="completed"?r+=1:t+=1;return{active:t,completed:r,total:e.length}}function bc(e){if(!e||e.items.length===0)return;let t=Z4(e.items);console.log("");let r=t.completed===0?`TODOs (${t.total}):`:`TODOs (${t.completed}/${t.total} done):`;console.log(r);let o=[...e.items].sort((n,i)=>MC[n.status]-MC[i.status]);for(let n of o)console.log(` ${K4[n.status]} ${n.text}`)}async function Jg(e){try{return await e()}catch{return null}}function G4(e){return Jg(()=>_(e.client.api.v1.projects[":id"].$get({param:{id:e.projectId}})))}function Q4(e){return Jg(()=>_(e.client.api.v1.threads[":id"].$get({param:{id:e.threadId}})))}function J4(e){return Jg(()=>_(e.client.api.v1.threads.$get({query:{projectId:e.projectId,parentThreadId:e.parentThreadId}})))}function OC(e,t,r=xo){e.command("status").description("Show current context").option("--json","Print machine-readable JSON output").action(w(async o=>{let n=r(),i={project:null,thread:null,managedThreads:null,pendingTodos:null},s=!1;if(n.projectId||n.threadId){let c=A(t()),[l,u]=await Promise.all([n.projectId?G4({client:c,projectId:n.projectId}):Promise.resolve(null),n.threadId?Q4({client:c,threadId:n.threadId}):Promise.resolve(null)]);if(l&&(i.project={id:l.id,name:l.name},s=!0),u){let p=null;if(u.environmentId&&(p=await vc({client:c,environmentId:u.environmentId})),i.pendingTodos=await Sc({client:c,threadId:u.id}),i.thread={id:u.id,type:u.type,status:u.status,title:u.title??null,pinnedAt:u.pinnedAt,parentThreadId:u.parentThreadId??null,environment:p},s=!0,u.type==="manager"){let d=await J4({client:c,projectId:u.projectId,parentThreadId:u.id});d&&(i.managedThreads=d.map(m=>({id:m.id,status:m.status,title:m.title??null})))}}}if(!R(o,i)){if(s&&i.project?console.log(`Project: ${i.project.name} (${i.project.id})`):n.projectId?console.log(`Project: ${n.projectId}`):console.log("Project: (not set)"),console.log(""),s&&i.thread){if(console.log(`Thread: ${i.thread.id}`),console.log(` Type: ${i.thread.type}`),console.log(` Status: ${i.thread.status}`),i.thread.title&&console.log(` Title: ${i.thread.title}`),i.thread.pinnedAt!==null&&console.log(` Pinned: ${new Date(i.thread.pinnedAt).toLocaleString()}`),i.thread.parentThreadId&&console.log(` Parent: ${i.thread.parentThreadId}`),i.thread.environment&&yc(i.thread.environment),i.managedThreads&&i.managedThreads.length>0){console.log(""),console.log(`Managed threads: ${i.managedThreads.length}`);for(let c of i.managedThreads){let l=c.title?`"${c.title}"`:"";console.log(` ${c.id} ${c.status} ${l}`)}}bc(i.pendingTodos)}else n.threadId?console.log(`Thread: ${n.threadId}`):console.log("Thread: (not set)");!n.projectId&&!n.threadId&&(console.log(""),console.log("Tip: run bb guide for help getting started."))}}))}function zC(e,t){e.command("update [id]").description("Update a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--title <title>","Set the thread title").option("--parent-thread <id>","Set the managing parent thread id").option("--clear-parent-thread","Clear the managing parent thread id").action(w(async(r,o)=>{let n=A(t());if(o.parentThread&&o.clearParentThread)throw new Error("Cannot combine --parent-thread with --clear-parent-thread.");if(!o.parentThread&&!o.clearParentThread&&!o.title)throw new Error("No changes requested. Provide --title, --parent-thread, or --clear-parent-thread.");let i=Wt(r,o),s={};o.title&&(s.title=o.title),o.parentThread?s.parentThreadId=o.parentThread:o.clearParentThread&&(s.parentThreadId=null);let c=await _(n.api.v1.threads[":id"].$patch({param:{id:i},json:s}));R(o,c)||(console.log(`Thread ${c.id} updated`),o.title&&console.log(`Title: ${c.title??"<untitled>"}`),(o.parentThread||o.clearParentThread)&&console.log(c.parentThreadId?`Managed by ${c.parentThreadId}`:"No managing parent thread"))})),e.command("archive [id]").description("Archive a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=Wt(r,o),i=A(t());try{await _(i.api.v1.threads[":id"].archive.$post({param:{id:n}}))}catch(s){throw bt(`Failed to archive thread ${n}`,s)}R(o,{ok:!0,threadId:n})||console.log(`Thread ${n} archived`)})),e.command("unarchive [id]").description("Unarchive a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=Wt(r,o);await _(n.api.v1.threads[":id"].unarchive.$post({param:{id:i}})),!R(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} unarchived`)})),e.command("pin [id]").description("Pin a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=Wt(r,o),s=await _(n.api.v1.threads[":id"].pin.$post({param:{id:i}}));R(o,s)||console.log(`Thread ${s.id} pinned`)})),e.command("unpin [id]").description("Unpin a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=Wt(r,o),s=await _(n.api.v1.threads[":id"].unpin.$post({param:{id:i}}));R(o,s)||console.log(`Thread ${s.id} unpinned`)})),e.command("delete <id>").description("Delete a thread permanently").option("--yes","Skip the confirmation prompt").option("--confirm-assigned-child-threads","Confirm deleting a manager with assigned child threads").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t());try{let i=await _(n.api.v1.threads[":id"].$get({param:{id:r}}));if(!o.yes&&!await St(`Delete thread "${i.title??i.titleFallback??i.id}" permanently? This cannot be undone.`)){console.log(`Thread ${r} deletion cancelled`);return}await _(n.api.v1.threads[":id"].$delete({param:{id:r},json:{managerChildThreadsConfirmed:o.confirmAssignedChildThreads===!0}}))}catch(i){throw bt(`Failed to delete thread ${r}`,i)}R(o,{ok:!0,threadId:r})||console.log(`Thread ${r} deleted`)})),e.command("tell <id> <message>").description("Send a follow-up message to a thread").option("--json","Print machine-readable JSON output").option("--model <model>","Model ID for this message").option("--reasoning-level <level>","Reasoning level: low, medium, high, xhigh, max (provider-dependent)").option("--permission-mode <mode>",gc).option("--mode <mode>","Message mode (e.g. steer)").action(w(async(r,o,n)=>{let i=await X4({getUrl:t,threadId:r,message:o,mode:eL(n.mode),model:n.model,permissionMode:Sr(n.permissionMode),reasoningLevel:or(n.reasoningLevel),senderThreadId:Y4(r)});R(n,{threadId:r,...i})||console.log(i.mode==="steer"?`Thread ${r} steered`:`Thread ${r} updated`)})),e.command("stop [id]").description("Stop an active thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=Wt(r,o);await _(n.api.v1.threads[":id"].stop.$post({param:{id:i}})),!R(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} stopped`)}))}async function X4(e){let t=A(e.getUrl());return{...await _(t.api.v1.threads[":id"].send.$post({param:{id:e.threadId},json:{input:[{type:"text",text:e.message}],mode:e.mode,...e.model?{model:e.model}:{},...e.permissionMode?{permissionMode:e.permissionMode}:{},...e.reasoningLevel?{reasoningLevel:e.reasoningLevel}:{},...e.senderThreadId?{senderThreadId:e.senderThreadId}:{}}})),...e.mode==="steer"?{mode:"steer"}:{}}}function Y4(e){let t=nt();if(!(!t||t===e))return t}function eL(e){if(e===void 0)return"auto";let t=e.trim().toLowerCase();if(t==="steer")return"steer";if(t==="auto")return"auto";throw new Error(`Invalid message mode '${e}'. Expected 'auto' or 'steer'.`)}function tL(e){if(e===void 0)return"session";if(e==="turn"||e==="session")return e;throw new Error("Invalid --scope. Expected 'turn' or 'session'.")}function Lo(e){if(Va(e.payload))return"question";if(!gt(e.payload))return ve(e.payload);switch(e.payload.subject.kind){case"command":return"command";case"file_change":return"file-change";case"permission_grant":return"permission";default:return ve(e.payload.subject)}}function nL(e){return gt(e.payload)&&(e.resolution===null||Ga(e.resolution))}function LC(e){return Va(e.payload)&&(e.resolution===null||ch(e.resolution))}function Yg(e){if(nL(e))return e;throw new Error(`Interaction ${e.id} is ${Lo(e)} and cannot be resolved with this command.`)}function rL(e){if(LC(e))return e;throw new Error(`Interaction ${e.id} is ${Lo(e)} and cannot be answered with this command.`)}function oL(e){console.log(" Questions:");for(let t of e.payload.questions){let r=t.shortLabel?`${t.shortLabel}: `:"";console.log(` - ${r}${t.prompt}`),t.options&&t.options.length>0&&console.log(` Options: ${t.options.map(o=>o.label).join(", ")}`),t.allowFreeText&&console.log(" Free text: allowed")}if(e.resolution){console.log(""),console.log("Answers:");for(let t of e.payload.questions){let r=e.resolution.answers[t.id];if(!r)continue;let n=[...r.selected.map(i=>Ff({question:t,value:i})),...r.freeText?[r.freeText]:[]];console.log(` ${t.shortLabel??t.prompt}: ${n.join(", ")}`)}}}function iL(e){switch(e.payload.subject.kind){case"command":case"file_change":for(let t of zf(e))console.log(` ${t}`);break;case"permission_grant":e.payload.subject.toolName&&console.log(` Tool: ${e.payload.subject.toolName}`),aL(e.payload.subject.permissions);break;default:ve(e.payload.subject)}e.payload.reason&&console.log(` Prompt: ${e.payload.reason}`),console.log(` Decisions: ${e.payload.availableDecisions.join(", ")}`),e.resolution&&(console.log(""),console.log("Resolution:"),console.log(` Decision: ${e.resolution.decision}`),e.resolution.decision==="allow_for_session"?console.log(" Scope: session"):e.resolution.decision==="allow_once"&&console.log(" Scope: turn"))}function aL(e){let t=mn(e);if(t.length!==0){console.log(" Permissions:");for(let r of t)console.log(` - ${r}`)}}function sL(e){if(console.log(`Interaction: ${e.id}`),console.log(` Thread: ${e.threadId}`),console.log(` Kind: ${Lo(e)}`),console.log(` Status: ${e.status}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),e.resolvedAt!==null&&console.log(` Resolved: ${new Date(e.resolvedAt).toLocaleString()}`),e.statusReason&&console.log(` Reason: ${e.statusReason}`),e.status==="resolving"&&console.log(" Delivery: waiting for provider acknowledgement"),LC(e)){oL(e);return}iL(Yg(e))}async function NC(e){let t=A(e.getUrl());return _(t.api.v1.threads[":id"].interactions[":interactionId"].$get({param:{id:e.threadId,interactionId:e.interactionId}}))}function BC(e,t=[]){return[...t,e]}function cL(e){let t=e.rawValue.indexOf("=");if(t===-1)return{questionId:null,value:e.rawValue};let r=e.rawValue.slice(0,t),o=e.rawValue.slice(t+1);if(r.length===0||o.length===0)throw new Error("Invalid --choice value. Expected questionId=value or a single-question shorthand value.");return{questionId:r,value:o}}function uL({entry:e,interaction:t,questionById:r}){if(e.questionId!==null){if(!r.has(e.questionId))throw new Error(`Answer references unknown question '${e.questionId}'.`);return e.questionId}if(t.payload.questions.length!==1)throw new Error("--choice shorthand can only be used for single-question interactions.");return t.payload.questions[0].id}function lL({interaction:e,questionById:t,rawValue:r}){let o=r.indexOf("=");if(o!==-1){let n=r.slice(0,o);if(t.has(n))return{questionId:n,value:r.slice(o+1)};if(e.payload.questions.length>1)throw new Error(`Answer references unknown question '${n}'.`)}if(e.payload.questions.length===1)return{questionId:e.payload.questions[0].id,value:r};throw new Error("Multiple-question interactions require --text questionId=text.")}function dL(e,t,r){if(!new Set((e.options??[]).map(n=>n.value)).has(r))throw new Error(`Question '${e.id}' does not offer choice '${r}'.`);if(t.selected.includes(r))throw new Error(`Question '${e.id}' includes duplicate choice '${r}'.`);if(!e.multiSelect&&t.selected.length>0)throw new Error(`Question '${e.id}' accepts only one choice.`)}function pL(e,t,r){let o=r.trim();if(!e.allowFreeText)throw new Error(`Question '${e.id}' does not accept free text.`);if(o.length===0)throw new Error(`Question '${e.id}' free text cannot be empty.`);if(t.freeText!==void 0)throw new Error(`Question '${e.id}' has multiple free-text answers.`);return o}function mL({choiceValues:e,interaction:t,textValues:r}){let o=rL(t),n=new Map(o.payload.questions.map(s=>[s.id,s])),i={};for(let s of e){let c=cL({rawValue:s}),l=uL({entry:c,interaction:o,questionById:n}),u=n.get(l);if(!u)throw new Error(`Answer references unknown question '${l}'.`);let p=i[l]??{selected:[]};dL(u,p,c.value),p.selected=[...p.selected,c.value],i[l]=p}for(let s of r){let c=lL({interaction:o,questionById:n,rawValue:s}),l=n.get(c.questionId);if(!l)throw new Error(`Answer references unknown question '${c.questionId}'.`);let u=i[c.questionId]??{selected:[]};u.freeText=pL(l,u,c.value),i[c.questionId]=u}for(let s of o.payload.questions){let c=i[s.id];if(!c||c.selected.length===0&&c.freeText===void 0)throw new Error(`Missing answer for question '${s.id}'.`)}return{kind:"user_answer",answers:i}}async function Tc(e){let t=await NC({getUrl:e.getUrl,interactionId:e.interactionId,threadId:e.threadId}),r=e.buildResolution(t),o=A(e.getUrl()),n=await _(o.api.v1.threads[":id"].interactions[":interactionId"].resolve.$post({param:{id:e.threadId,interactionId:e.interactionId},json:r})).catch(i=>{throw bt(`Failed to ${e.failureAction} interaction ${e.interactionId}`,i)});if(e.json){R({json:e.json},n);return}console.log(e.successMessage({interaction:t,resolution:r,updated:n}))}function hL(e,t){if(t==="approve"){if(e.payload.availableDecisions.includes("allow_once"))return"allow_once";if(e.payload.availableDecisions.includes("allow_for_session"))return"allow_for_session";throw new Error(`Interaction ${e.id} does not offer an approval decision.`)}if(e.payload.availableDecisions.includes("deny"))return"deny";throw new Error(`Interaction ${e.id} does not offer a deny decision.`)}function FC(e,t){let r=Yg(e);if(t==="approve"&&r.payload.subject.kind==="permission_grant")throw new Error(`Interaction ${e.id} is a permission grant; use bb thread interactions grant.`);let o=hL(r,t);return Ps(r,o)}function fL(e,t){let r=Yg(e);if(r.payload.subject.kind!=="permission_grant")throw new Error(`Interaction ${e.id} is ${Lo(e)} and cannot be granted with this command.`);return Ps(r,t==="session"?"allow_for_session":"allow_once")}function gL(e){if(!Ga(e))throw new Error("Expected an approval resolution");return Bf(e.decision)}function Xg(e){let t=e.updated.resolution??e.resolution,r=gL(t);return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (${r}); delivering to provider`:`Interaction ${e.interactionId} ${r}`}function vL(e){return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (answered); delivering to provider`:`Interaction ${e.interactionId} answered`}function qC(e,t){let r=e.command("interactions").description("Inspect and resolve thread interactions");r.command("list [id]").description("List interactions for a thread").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(o,n)=>{let i=Ce(o,n),s=A(t());oe(i,"Thread","BB_THREAD_ID",n);let c=await _(s.api.v1.threads[":id"].interactions.$get({param:{id:i.id}}));if(R(n,c))return;if(c.length===0){console.log("No interactions found");return}let l=ie({head:["ID","Kind","Status","Summary"],colWidths:[20,12,12,70],trimTrailingWhitespace:!0},c.map(u=>[u.id,Lo(u),u.status,Lf({interaction:u,surface:"cli"})]));console.log(""),console.log(l),console.log("")})),r.command("show <interactionId> [id]").description("Show an interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=Ce(n,i);oe(s,"Thread","BB_THREAD_ID",i);let c=await NC({getUrl:t,interactionId:o,threadId:s.id});R(i,c)||sL(c)})),r.command("approve <interactionId> [id]").description("Approve a command or file-change interaction for this turn").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=Ce(n,i);oe(s,"Thread","BB_THREAD_ID",i),await Tc({buildResolution:c=>FC(c,"approve"),failureAction:"approve",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:c,updated:l})=>Xg({interactionId:o,resolution:c,updated:l})})})),r.command("grant <interactionId> [id]").description("Grant a permission interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--scope <scope>","Grant scope: turn or session").action(w(async(o,n,i)=>{let s=Ce(n,i);oe(s,"Thread","BB_THREAD_ID",i);let c=tL(i.scope);await Tc({buildResolution:l=>fL(l,c),failureAction:"grant",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:l,updated:u})=>Xg({interactionId:o,resolution:l,updated:u})})})),r.command("answer <interactionId> [id]").description("Answer a user-question interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--choice <questionId=value>","Select an option value; repeat for multi-select answers",BC,[]).option("--text <questionId=text>","Provide a free-text answer",BC,[]).action(w(async(o,n,i)=>{let s=Ce(n,i);oe(s,"Thread","BB_THREAD_ID",i),await Tc({buildResolution:c=>mL({choiceValues:i.choice??[],interaction:c,textValues:i.text??[]}),failureAction:"answer",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({updated:c})=>vL({interactionId:o,updated:c})})})),r.command("deny <interactionId> [id]").description("Deny a command, file-change, or permission interaction").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").action(w(async(o,n,i)=>{let s=Ce(n,i);oe(s,"Thread","BB_THREAD_ID",i),await Tc({buildResolution:c=>FC(c,"deny"),failureAction:"deny",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:c,updated:l})=>Xg({interactionId:o,resolution:c,updated:l})})}))}function UC(e,t){e.command("list").description("List threads").option("--project <id>","Filter by project ID (defaults to BB_PROJECT_ID; omit both to list all projects)").option("--parent-thread <id>","Filter by managing parent thread ID").option("--archived","Show only archived threads").option("--json","Print machine-readable JSON output").action(w(async r=>{let o=A(t()),n=To(r.project),i=nt(r.parentThread),s={...n?{projectId:n.id}:{},...i?{parentThreadId:i}:{},...r.archived?{archived:"true"}:{}},c=await _(o.api.v1.threads.$get({query:s}));if(!R(r,c)){if(c.length===0){console.log("No threads found");return}yL(c)}}))}function yL(e){let t=e.map(s=>[s.id,s.projectId===Be?"-":s.projectId,SL(s)]),r=Math.max(4,...t.map(s=>s[0].length)),o=Math.max(7,...t.map(s=>s[1].length)),n=Math.max(12,...t.map(s=>s[2].length)),i=ie({head:["ID","Project","Status"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function SL(e){let t=[];return e.archivedAt!==null&&t.push("archived"),e.pinnedAt!==null&&t.push("pinned"),t.length===0?Kt(e.status):`${Kt(e.status)} (${t.join(", ")})`}function F(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function WC(e){let r=e.replaceAll("\\","/").split("/"),o=r[r.length-1];return o&&o.length>0?o:e}function br({mode:e,path:t}){switch(e){case"compact":return WC(t);case"full":return t}}function bL(e){return(e??"").toLowerCase().replaceAll(/[^a-z0-9]/gu,"")}function TL(e){let t=e.diff;if(!t)return!1;for(let r of t.split(`
891
+ `))if(!(r.startsWith("+++ ")||r.startsWith("--- "))&&(r.startsWith("+")||r.startsWith("-")))return!0;return!1}function Tr(e){if(e.movePath)return TL(e)?"edited":"renamed";let t=bL(e.kind);return t.includes("add")||t.includes("create")?"created":t.includes("delete")||t.includes("remove")?"deleted":"edited"}function VC(e){switch(e){case"created":return"Created";case"deleted":return"Deleted";case"renamed":return"Renamed";case"edited":return"Edited"}}function ev(e){switch(e){case"created":return"Creating";case"deleted":return"Deleting";case"renamed":return"Renaming";case"edited":return"Editing"}}function HC(e){switch(e){case"created":return"create";case"deleted":return"delete";case"renamed":return"rename";case"edited":return"edit"}}function tv({change:e,mode:t}){let r=br({path:e.path,mode:t});return e.movePath?Tr(e)==="edited"?br({path:e.movePath,mode:t}):`${r} -> ${br({path:e.movePath,mode:t})}`:r}function se(e,t,r){return`${e} ${e===1?t:r??`${t}s`}`}function No(e){if(e===void 0)return;if(!Number.isFinite(e)||e<0)return"0s";if(e<1e3)return`${Math.round(e)}ms`;let t=Math.round(e/1e3);return t<60?`${t}s`:xL(t)}function xL(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),o=e%60,n=[];return t>0&&n.push(`${t}h`),r>0&&n.push(`${r}m`),o>0&&n.push(`${o}s`),n.join(" ")}var EL=new Intl.NumberFormat("en-US");function nv(e){return EL.format(e)}function rv(e){let{added:t,removed:r,hideZero:o=!1}=e,n=`+${nv(t)}`,i=`-${nv(r)}`;if(!o)return`${n} ${i}`;let s=[];return t>0&&s.push(n),r>0&&s.push(i),s.join(" ")}function DL(e){return e.activityIntents.find(t=>t.type!=="unknown")??null}function De(e){return DL(e)!==null}function IL(e){return e.path??e.name}function _L(e,t){return br({path:IL(e),mode:t})}function KC({intent:e,pathMode:t,pending:r}){return PL(xc({intent:e,pathMode:t,pending:r}))}function xc({intent:e,pathMode:t,pending:r}){return wL({intent:e,pathMode:t,pending:r})}function PL({content:e,prefix:t}){return t?`${t} ${e}`:e}function wL({intent:e,pathMode:t,pending:r}){switch(e.type){case"read":return{prefix:r?"Reading":"Read",content:_L(e,t)};case"list_files":return{prefix:r?"Listing":"Listed",content:e.path?`files in ${e.path}`:"files"};case"search":{let o=r?"Searching":"Searched";return e.query&&e.path?{prefix:o,content:`for ${e.query} in ${e.path}`}:e.query?{prefix:o,content:`for ${e.query}`}:e.path?{prefix:o,content:`in ${e.path}`}:{prefix:o,content:"files"}}case"unknown":return{prefix:null,content:e.command};default:return F(e)}}function qo(e){switch(e.type){case"read":return`read:${e.path??e.name}`;case"list_files":return`list:${e.path??""}`;case"search":return`search:${e.query??""}|${e.path??""}`;case"unknown":return null;default:return F(e)}}function CL(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function kL(e){switch(e.type){case"read":return e.path??e.name;case"list_files":case"search":case"unknown":return null;default:return F(e)}}function ZC(e,t,r,o){for(let n of e.activityIntents)switch(n.type){case"read":{let i=kL(n);i&&(r.add(i),o("files"));break}case"list_files":t.lists+=1,o("lists");break;case"search":t.searches+=1,o("searches");break;case"unknown":break;default:F(n)}}function Ec(e){return e.change.movePath??e.change.path}function RL(e){let t=[],r=new Set,o=p=>{r.has(p)||(r.add(p),t.push(p))},n={commands:0,createdFiles:0,deletedFiles:0,delegations:0,editedFiles:0,fileChanges:0,files:0,lists:0,renamedFiles:0,searches:0,tools:0,webFetches:0,webSearches:0,explorationKindOrder:t},i=new Set,s=new Set,c=new Set,l=new Set,u=new Set;for(let p of e)switch(p.workKind){case"command":De(p)?ZC(p,n,i,o):n.commands+=1;break;case"tool":De(p)?ZC(p,n,i,o):n.tools+=1;break;case"file-change":switch(Tr(p.change)){case"created":s.add(Ec(p));break;case"deleted":c.add(Ec(p));break;case"edited":l.add(Ec(p));break;case"renamed":u.add(Ec(p));break}break;case"web-fetch":n.webFetches+=1;break;case"web-search":n.webSearches+=Math.max(1,p.queries.length);break;case"delegation":n.delegations+=1;break;case"question":case"approval":break;default:F(p)}return n.files=i.size,n.createdFiles=s.size,n.deletedFiles=c.size,n.editedFiles=l.size,n.renamedFiles=u.size,n.fileChanges=n.createdFiles+n.deletedFiles+n.editedFiles+n.renamedFiles,n}function AL(e){let t=e.explorationKindOrder.map(r=>{switch(r){case"files":return e.files>0?se(e.files,"file"):null;case"searches":return e.searches>0?se(e.searches,"search","searches"):null;case"lists":return e.lists>0?se(e.lists,"list"):null;default:return F(r)}}).filter(r=>r!==null);return t.length===0?null:t.join(", ")}function jL(e){let t=null,r=0,o=0,n=0;for(let c of e){let l;switch(c.workKind){case"command":if(c.approvalStatus===null)return null;l=c.approvalStatus,r+=1;break;case"file-change":if(c.approvalStatus===null)return null;l=c.approvalStatus,o+=1;break;case"tool":if(c.approvalStatus===null)return null;l=c.approvalStatus,n+=1;break;case"approval":case"question":case"delegation":case"web-fetch":case"web-search":return null;default:F(c)}if(t===null)t=l;else if(t!==l)return null}if(t===null)return null;let s=[r>0?se(r,"command"):null,o>0?se(o,"file change"):null,n>0?se(n,"tool"):null].filter(c=>c!==null).join(", ");return t==="denied"?`Denied ${s}`:`Waiting for approval on ${s}`}function $L(e){switch(e.workKind){case"command":return De(e)?"exploration":"commands";case"tool":return De(e)?"exploration":"tools";case"file-change":return"fileChanges";case"web-fetch":case"web-search":return"webResearch";case"delegation":return"delegations";case"approval":case"question":return null;default:return F(e)}}function ML(e){let t=[];for(let r of e){let o=$L(r);o&&!t.includes(o)&&t.push(o)}return t}var OL={created:"Creating",deleted:"Deleting",edited:"Editing",renamed:"Renaming"},zL={created:"Created",deleted:"Deleted",edited:"Edited",renamed:"Renamed"};function XC(e,t){let r=[["created",e.createdFiles],["deleted",e.deletedFiles],["edited",e.editedFiles],["renamed",e.renamedFiles]].filter(([,i])=>i>0).map(([i,s])=>({action:i,count:s}));if(r.length===0)return null;if(r.length===1){let{action:i,count:s}=r[0];return`${t?OL[i]:zL[i]} ${se(s,"file")}`}let o=r.reduce((i,s)=>i+s.count,0);return`${t?"Editing":"Edited"} ${se(o,"file")}`}function BL(e,t,r){switch(e){case"exploration":return r?`Explored ${r}`:null;case"commands":return t.commands>0?`Ran ${se(t.commands,"command")}`:null;case"fileChanges":return XC(t,!1);case"webResearch":return YC(t,!1);case"delegations":return t.delegations>0?`Ran ${se(t.delegations,"subagent")}`:null;case"tools":return t.tools>0?`Ran ${se(t.tools,"tool")}`:null;default:return F(e)}}function FL(e,t,r){switch(e){case"exploration":return r?`Exploring ${r}`:null;case"commands":return t.commands>0?`Running ${se(t.commands,"command")}`:null;case"fileChanges":return XC(t,!0);case"webResearch":return YC(t,!0);case"delegations":return t.delegations>0?`Running ${se(t.delegations,"subagent")}`:null;case"tools":return t.tools>0?`Running ${se(t.tools,"tool")}`:null;default:return F(e)}}function LL(e){return e.map((t,r)=>r===0?t:CL(t)).join(", ")}function YC(e,t){let r=[];return e.webSearches>0&&r.push(se(e.webSearches,"search query","search queries")),e.webFetches>0&&r.push(se(e.webFetches,"web page")),r.length===0?null:`${t?"Researching":"Researched"} ${r.join(", ")}`}function Dc(e,t={active:!1}){let r=jL(e.children);if(r!==null)return GC(r);let o=RL(e.children),n=t.active,i=AL(o),s=ML(e.children).map(c=>n?FL(c,o,i):BL(c,o,i)).filter(c=>c!==null);return s.length===0?{verb:n?"Working":"Worked",rest:""}:GC(LL(s))}function ov(e,t={active:!1}){let{verb:r,rest:o}=Dc(e,t);return o.length===0?r:`${r} ${o}`}function GC(e){let t=e.indexOf(" ");return t===-1?{verb:e,rest:""}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function NL(e,t){return e==="error"||t==="error"?"error":e==="pending"||t==="pending"?"pending":e==="interrupted"||t==="interrupted"?"interrupted":"completed"}function ek(e){let t=e[0];if(!t)throw new Error("Cannot summarize an empty timeline activity run");let r=t.sourceSeqStart,o=t.sourceSeqEnd,n=t.startedAt,i=t.createdAt,s=t.turnId,c=t.status;for(let l of e)r=Math.min(r,l.sourceSeqStart),o=Math.max(o,l.sourceSeqEnd),n=Math.min(n,l.startedAt),i=Math.max(i,l.createdAt),c=NL(c,l.status),s!==l.turnId&&(s=null);return{id:[t.threadId,s??"thread","work-summary",t.id].join(":"),threadId:t.threadId,turnId:s,sourceSeqStart:r,sourceSeqEnd:o,startedAt:n,createdAt:i,status:c}}function qL(e){return e.kind==="work"&&e.workKind!=="approval"&&e.workKind!=="question"}function tk(e){return!(e.kind!=="conversation"||e.role==="user"&&e.turnRequest.status==="pending")}function UL(e){switch(e.workKind){case"command":case"tool":return De(e)?"exploration":e.workKind==="command"?"commands":"tools";case"file-change":return"fileChanges";case"delegation":return"delegations";case"web-search":case"web-fetch":return"webResearch";case"approval":case"question":return"tools";default:return F(e)}}function nk(e){let t=null,r=[];for(let o of e){if(o.workKind!=="command"&&o.workKind!=="tool"||o.activityIntents.length===0){t=null,r.push(o);continue}let n=De(o),i=[];for(let s of o.activityIntents){if(s.type==="unknown"){i.push(s);continue}let c=qo(s);c!==null&&c===t||(i.push(s),t=c)}if(i.length===o.activityIntents.length){r.push(o);continue}n&&!i.some(s=>s.type!=="unknown")||r.push({...o,activityIntents:i})}return r}function WL(e){let t=nk(e);return{...ek(t),kind:"step-summary",children:t}}function VL(e){let t=nk(e);return{...ek(t),kind:"bundle-summary",children:t}}function QC(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[WL(e)]}function JC(e){if(e.length===0)return[];let t=[];for(let o of e){let n=UL(o),i=t[t.length-1];i&&i.concept===n?i.rows.push(o):t.push({concept:n,rows:[o]})}let r=[];for(let o of t)o.rows.length===1?r.push(o.rows[0]):r.push(VL(o.rows));return r}function rk(){return new WeakMap}function HL(e,t){if(e.workKind!=="delegation")return e;let r=e.status!=="pending";return{...e,childRows:Uo(e.childRows,{cache:t,closedScope:r})}}function KL(e,t){switch(e.kind){case"conversation":case"system":return e;case"work":return HL(e,t);case"turn":return{...e,children:e.children?Uo(e.children,{cache:t,closedScope:!0}):null};default:return F(e)}}function Uo(e,t={}){let r=t.cache;if(r){let c=r.get(e);if(c)return c}let o=r??rk(),n=e.map(c=>KL(c,o)),i=[],s=[];for(let c of n){if(qL(c)){s.push(c);continue}if(tk(c)){i.push(...QC(s)),s=[],i.push(c);continue}i.push(...JC(s)),s=[],i.push(c)}return t.closedScope?i.push(...QC(s)):i.push(...JC(s)),r&&r.set(e,i),i}function iv(e,t){if(!t)return e;let r=Object.entries(t).filter(([,n])=>n!==void 0);if(r.length===0)return e;let o=r.map(([n,i])=>{let s=typeof i=="string"?i.trim():JSON.stringify(i),c=s.length>40?`${s.slice(0,37)}...`:s;return`${n}: ${c}`}).join(", ");return`${e} { ${o} }`}function ok(e){return e.replace(/[\r\n]+/gu," ")}function E(e,t={}){return{text:ok(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText!==void 0?{plainText:ok(t.plainText)}:{},...t.link!==void 0?{link:t.link}:{}}}function ne(e){return e.filter(t=>t!==null)}function ak(e){return e!==null&&e>1e3?e:null}function Zt(e,t,r={}){if(t!==null){let o=t-e;if(ak(o)===null)return null}return{kind:"duration",startedAt:e,completedAt:t,em:r.em??!1}}function ZL(e,t){return t===null?null:{kind:"duration",startedAt:e,completedAt:t,em:!0}}function Ie(e,t,r={}){return{kind:"status",status:e,durationMs:ak(t),emphasis:r.emphasis??!1}}function GL(e){let t=0,r=0;for(let o of e.children)o.status==="error"&&(t+=1),o.status==="interrupted"&&(r+=1);return t===0&&r===0?null:{kind:"summary-status",errorCount:t,interruptedCount:r}}function Ic(e){let{added:t,removed:r}=e.diffStats;return t===0&&r===0?null:{kind:"diff-stats",added:t,removed:r}}function sk(e){switch(e.kind){case"duration":return e.completedAt===null?"":`(${No(e.completedAt-e.startedAt)})`;case"status":return e.durationMs!==null?`(${No(e.durationMs)}, ${e.status})`:`(${e.status})`;case"summary-status":{let t=[];return e.errorCount>0&&t.push(`${e.errorCount} error${e.errorCount>1?"s":""}`),e.interruptedCount>0&&t.push(`${e.interruptedCount} interrupted`),t.length===0?"":`(${t.join(", ")})`}case"diff-stats":return rv({added:e.added,removed:e.removed,hideZero:!0});default:return F(e)}}function ck(e,t){let r=e.map(n=>n.plainText??n.text).filter(n=>n.length>0).join(" "),o=t.map(sk).filter(n=>n.length>0).join(" ");return o.length===0?r:r.length===0?o:`${r} ${o}`}function O({segments:e,decorations:t=[],tone:r="default",action:o=null}){return{segments:e,decorations:t,tone:r,action:o,plain:ck(e,t)}}function av({approvalStatus:e,status:t}){return e==="waiting_for_approval"?"waiting":e==="denied"?"denied":t}function QL(e){let t=JL(e);if(t!==null)return t;let r=av({approvalStatus:e.approvalStatus,status:e.status}),o=e.workKind==="command",n=o?e.command:iv(e.toolName,e.toolArgs);switch(r){case"waiting":return O({segments:[E("Waiting for approval",{shimmer:!0}),E(o?"to run":"to use"),E(n,{em:!0,truncate:!0})]});case"denied":return O({segments:[E("Permission denied:"),E(n,{em:!0,truncate:!0})],decorations:ne([Zt(e.startedAt,e.completedAt)])});case"pending":return O({segments:[E(o?"Running":"Running tool:",{shimmer:!0}),E(n,{em:!0,truncate:!0})],decorations:ne([Zt(e.startedAt,e.completedAt)])});case"completed":return O({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:ne([Zt(e.startedAt,e.completedAt)])});case"error":return O({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[Ie("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return O({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[Ie("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return F(r)}}function JL(e){if(!De(e))return null;let t=e.activityIntents.filter(u=>u.type!=="unknown");if(t.length!==1)return null;let r=t[0];if(!r)return null;let o=av({approvalStatus:e.approvalStatus,status:e.status}),n=o==="pending",i=xc({intent:r,pathMode:"compact",pending:n}),s=xc({intent:r,pathMode:"full",pending:n});if(o==="denied"){let u=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return O({segments:[E("Permission denied:"),E(u,{em:!0,truncate:!0,plainText:p})]})}if(o==="waiting"){let u=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return O({segments:[E("Waiting for approval",{shimmer:!0}),E("to use"),E(u,{em:!0,truncate:!0,plainText:p})]})}let c=[];i.prefix&&c.push(E(i.prefix,{shimmer:n})),c.push(E(i.content,{em:!1,truncate:!0,plainText:s.content}));let l=o==="error"?[Ie("error",null)]:o==="interrupted"?[Ie("interrupted",null)]:[];return O({segments:c,decorations:l})}function XL(e){let t=av({approvalStatus:e.approvalStatus,status:e.status}),r=Tr(e.change),o=tv({change:e.change,mode:"compact"}),n=tv({change:e.change,mode:"full"}),i={kind:"open-file-diff",path:e.change.movePath??e.change.path},s=E(o,{em:!0,truncate:!0,plainText:n});switch(t){case"waiting":return O({segments:[E("Waiting for approval",{shimmer:!0}),E("to edit"),s],decorations:ne([Ic(e.change)]),action:i});case"denied":return O({segments:[E("Permission denied:"),s],decorations:ne([Ic(e.change)]),action:i});case"pending":return O({segments:[E(ev(r),{shimmer:!0}),s],decorations:ne([Ic(e.change)]),action:i});case"completed":return O({segments:[E(VC(r)),s],decorations:ne([Ic(e.change)]),action:i});case"error":return O({segments:[E(`Failed to ${HC(r)}`),s],decorations:[Ie("error",null)],action:i});case"interrupted":return O({segments:[E(`Interrupted while ${ev(r).toLowerCase()}`),s],action:i});default:return F(t)}}function YL(e){let t=e.queries.join(", ")||"web search",r=E(t,{em:!1,truncate:!0});switch(e.status){case"pending":return O({segments:[E("Running web search:",{shimmer:!0}),r]});case"completed":return O({segments:[E("Ran web search:"),r],decorations:ne([Zt(e.startedAt,e.completedAt)])});case"error":return O({segments:[E("Ran web search:"),r],decorations:[Ie("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return O({segments:[E("Interrupted web search:"),r],decorations:[Ie("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return F(e.status)}}function eN(e){let t=E(e.url,{em:!1,truncate:!0});switch(e.status){case"pending":return O({segments:[E("Fetching:",{shimmer:!0}),t]});case"completed":return O({segments:[E("Fetched:"),t],decorations:ne([Zt(e.startedAt,e.completedAt)])});case"error":return O({segments:[E("Fetched:"),t],decorations:[Ie("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return O({segments:[E("Interrupted fetch:"),t],decorations:[Ie("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return F(e.status)}}function tN(e){switch(e){case"pending":return{text:"Running subagent:",shimmer:!0};case"completed":return{text:"Ran subagent:",shimmer:!1};case"error":return{text:"Failed subagent:",shimmer:!1};case"interrupted":return{text:"Interrupted subagent:",shimmer:!1};default:return F(e)}}function nN(e){let t=e.description??(e.output.trim()||e.toolName),r=tN(e.status),o=[E(r.text,{shimmer:r.shimmer}),E(t,{em:!0,truncate:!0})];return e.subagentType&&o.push(E(`(${e.subagentType})`,{em:!1,truncate:!0})),O({segments:o,decorations:ne([Zt(e.startedAt,e.completedAt)])})}function rN(e){switch(e.lifecycle){case"waiting":return O({segments:[E("Waiting for approval to edit",{shimmer:!0}),E("files",{em:!0,truncate:!0})]});case"denied":return O({segments:[E("Permission denied:"),E("file changes",{em:!0,truncate:!0})]});default:return F(e.lifecycle)}}function oN(e){let t=e.target.toolName,r=e.statusReason!==null&&e.statusReason.trim().length>0?e.statusReason.trim():null,o=r!==null?E(`(${r})`,{truncate:!0}):null;switch(e.lifecycle){case"pending":{let n=t!==null?[E("Waiting for permission",{shimmer:!0}),E("to use"),E(t,{em:!0,truncate:!0})]:[E("Waiting for permissions",{shimmer:!0})];return O({segments:n})}case"resolving":{let n=t!==null?[E("Delivering permission",{shimmer:!0}),E("to use"),E(t,{em:!0,truncate:!0})]:[E("Delivering permissions",{shimmer:!0})];return O({segments:n})}case"granted":{let n=e.grantScope==="turn"?"for this turn":e.grantScope==="session"?"for this session":null,i=n!==null?`Permission granted ${n}:`:"Permission granted:",s=t!==null?[E(i),E(t,{em:!0,truncate:!0})]:[E(n!==null?`Permission granted ${n}`:"Permission granted")];return O({segments:s})}case"denied":return O({segments:t!==null?[E("Permission denied:"),E(t,{em:!0,truncate:!0})]:[E("Permission denied")]});case"interrupted":return O({segments:ne([E(t!==null?"Permission grant interrupted:":"Permission grant interrupted"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});case"expired":return O({segments:ne([E(t!==null?"Permission grant expired:":"Permission grant expired"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});default:return F(e.lifecycle)}}function iN(e){switch(e.approvalKind){case"file-edit":return rN(e);case"permission-grant":return oN(e);default:return F(e)}}function aN(e){return e.questions.length===1?e.questions[0]??null:null}function sN(e,t){let r=e.answers?.[t.id];if(!r)return null;let o=r.selected.map(i=>t.options?.find(c=>c.value===i)?.label??i);r.freeText&&o.push(r.freeText);let n=o.join(", ");return n.length>0?n:null}function cN(e){let t=aN(e),r=t?E(t.prompt,{em:!0,truncate:!0}):E(`${e.questions.length} questions`,{em:!0});switch(e.lifecycle){case"pending":return O({segments:[E(t?"Waiting for answer":"Waiting for answers to",{shimmer:!0}),r]});case"resolving":return O({segments:[E(t?"Delivering answer":"Delivering answers to",{shimmer:!0}),r]});case"answered":{let o=t?sN(e,t):null;return O({segments:ne([E("Answered"),r,o?E(`\u2014 ${o}`,{truncate:!0}):null])})}case"interrupted":return O({segments:[E("Asked"),r],decorations:[Ie("interrupted",null)]});case"expired":return O({segments:[E("Asked"),r],decorations:[Ie("expired",null)]});default:return F(e.lifecycle)}}function uN(e,t){let r=(()=>{switch(e.workKind){case"command":case"tool":return QL(e);case"file-change":return XL(e);case"web-search":return YL(e);case"web-fetch":return eN(e);case"delegation":return nN(e);case"approval":return iN(e);case"question":return cN(e);default:return F(e)}})();return t.workStyle==="default"?r:{...r,tone:"summary"}}function lN(e,t){let r=e.kind==="bundle-summary"&&t.isActiveLatestBundle===!0,{verb:o,rest:n}=Dc(e,{active:r}),i=ne([GL(e)]);if(t.summaryStyle==="background"){let c=n.length===0?o:`${o} ${n}`;return O({segments:[E(c,{em:!1,truncate:!0})],decorations:i,tone:"summary"})}let s=E(o,{shimmer:r});return n.length===0?O({segments:[{...s,truncate:!0}],decorations:i}):O({segments:[s,E(n,{em:!0,truncate:!0})],decorations:i})}function dN(e){let t=e.status==="pending",r=t?Zt(e.startedAt,e.completedAt,{em:!0}):ZL(e.startedAt,e.completedAt);return!t&&e.completedAt!==null&&r!==null?O({segments:[E("Worked for",{shimmer:!1})],decorations:[r]}):O({segments:[E(t?"Working":"Worked",{shimmer:t})],decorations:t&&r!==null?[r]:[]})}function ik(e,t){return e===null?null:E(t??e,{em:!0,truncate:!0,link:{kind:"thread",threadId:e}})}function pN(e){switch(e){case"completed":case"error":case"interrupted":return{assign:"Thread assigned to",release:"Thread unassigned from",transferFrom:"Thread reassigned from",transferTo:"to"};case"pending":return{assign:"Assigning thread to",release:"Releasing thread from",transferFrom:"Reassigning thread from",transferTo:"to"};default:return F(e)}}function mN(e){let t=e.managerAssignment,r=ik(t.previousManagerThreadId,t.previousManagerThreadTitle),o=ik(t.nextManagerThreadId,t.nextManagerThreadTitle),n=e.status==="pending",i=pN(e.status),s=(()=>{switch(t.action){case"assign":return ne([E(i.assign,{shimmer:n}),o]);case"release":return ne([E(i.release,{shimmer:n}),r]);case"transfer":return ne([E(i.transferFrom,{shimmer:n}),r,o!==null?E(i.transferTo,{shimmer:n}):null,o]);default:return F(t.action)}})(),c=(()=>{switch(e.status){case"error":return[Ie("error",null,{emphasis:!0})];case"interrupted":return[Ie("interrupted",null)];case"pending":case"completed":return[];default:return F(e.status)}})();return O({segments:s,decorations:c})}function hN(e){let t=e.systemKind==="error"||e.status==="error";if(e.systemKind==="operation"&&e.operationKind==="manager-assignment")return mN(e);let r=e.systemKind==="operation"&&e.operationKind==="compaction",o=r&&e.status==="pending"?`${e.title}\u2026`:e.title,n=t?[Ie("error",null,{emphasis:!0})]:r&&(e.status==="pending"||e.status==="completed")?ne([Zt(e.startedAt,e.completedAt)]):[];return O({segments:[E(o,{shimmer:e.status==="pending",truncate:!0})],decorations:n})}function fN(e){return O({segments:[E(e.role==="user"?"User":"Assistant",{em:!1})]})}function gN(e){return e.kind==="conversation"&&e.role==="user"}function uk(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t];if(r&&!gN(r))return r}return null}function _c(e){let t=uk(e);return t?.kind==="bundle-summary"?t.id:null}function Pc(e,t){switch(e.kind){case"conversation":return fN(e);case"system":return hN(e);case"work":return uN(e,t);case"bundle-summary":case"step-summary":return lN(e,t);case"turn":return dN(e);default:return F(e)}}var vN={summaryStyle:"bundle",workStyle:"default"};function hk(e,t){return{...vN,isActiveLatestBundle:e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId}}var lk=3,sv=100;function Pt(e,t){return t?`\x1B[2m${e}\x1B[22m`:e}function yN(e,t){return t?`\x1B[32m${e}\x1B[39m`:e}function cv(e,t){return t?`\x1B[33m${e}\x1B[39m`:e}function fk(e,t){return t?`\x1B[31m${e}\x1B[39m`:e}function SN(e,t){return t?`\x1B[36m${e}\x1B[39m`:e}function bN(e,t){let r=Math.max(0,60-e.length-4),o="\u2500".repeat(r);return Pt(o.length>0?`\u2500\u2500 ${e} ${o}`:`\u2500\u2500 ${e}`,t)}function at(e,t){return t.depth===0?bN(e,t.color):Pt(`\u2500\u2500 ${e}`,t.color)}function uv(e,t){return{...e,depth:e.depth+1,activeLatestBundleId:t?_c(t):null}}function Gt(e,t){return e.split(`
1130
892
  `).map(r=>r.length===0?"":`${t}${r}`).join(`
1131
- `)}function KC(e){return/^\s*/u.exec(e)?.[0].length??0}function ML(e){if(e.length<=Jg)return e;let t=e.length-Jg;return`${e.slice(0,Jg)}... [truncated ${t} chars]`}function zL(e){return`${" ".repeat(e.indent)}... [truncated ${e.skippedLineCount} lines]`}function FL(e,t){let r=e.filter(n=>n.length>0).map(KC);if(r.length>0)return Math.min(...r);let o=t.filter(n=>n.length>0).map(KC);return o.length>0?Math.min(...o):0}function BL(e){let t=e.flatMap(n=>n.split(`
1132
- `)),r=t.slice(0,HC).map(ML),o=t.slice(HC);return o.length===0?r:[...r,zL({skippedLineCount:o.length,indent:FL(o,r)})]}function XC(e,t){return t.truncateForAudit?BL(e):[...e]}function LL(e,t){switch(e){case"pending":return Xg("running",t);case"completed":return jL("completed",t);case"error":return JC("error",t);case"interrupted":return Xg("interrupted",t);default:return B(e)}}function ZC(e,t){return(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="denied"?JC("denied",t):(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="waiting_for_approval"?Xg("waiting",t):LL(e.status,t)}function YC(e,t){return Tu(e,QC(e,t)).plain}function GC(e,t){return Et(Ut(e.trim()," "),t)}function NL(e,t){return e.exitCode===null||e.status==="pending"||e.exitCode===0&&e.output.trim().length>0?null:e.exitCode===0?Et(" exit code 0",t):Et(` exit ${e.exitCode}`,t)}function qL(e,t){let r=[];switch(e.workKind){case"command":r.push(` $ ${$L(e.command,t.color)}`),t.verbose&&e.output.trim()&&!Ee(e)&&r.push(GC(e.output,t.color));let o=NL(e,t.color);return o&&r.push(o),r;case"tool":return e.approvalStatus!==null&&r.push(` ${ZC(e,t.color)}`),t.verbose&&e.output.trim()&&!Ee(e)&&r.push(GC(e.output,t.color)),r;case"file-change":return e.approvalStatus!==null&&r.push(` ${ZC(e,t.color)}`),t.verbose&&e.change.diff&&r.push(Et(Ut(e.change.diff.trimEnd()," "),t.color)),r;case"web-search":return r;case"web-fetch":return r;case"approval":case"question":return r;case"delegation":return e.childRows.length>0&&r.push(Ut(ev(e.childRows,Yg(t,e.childRows))," ")),r;default:return B(e)}}function ek(e,t){let r=[rt(YC(e,t),t)],o=qL(e,t);return r.push(...e.workKind==="delegation"?o:XC(o,t)),r.join(`
1133
- `)}function UL(e){let t=null,r=[];for(let o of e.activityIntents){if(o.type==="unknown")continue;let n=Bo(o);n!==null&&n===t||(r.push(CC({intent:o,pathMode:"full",pending:e.status==="pending"})),t=n)}return r}function VL(e,t){let r=[],o=Yg(t,null);for(let n of e.children){if((n.workKind==="command"||n.workKind==="tool")&&Ee(n)){r.push(...UL(n).map(i=>rt(i,o)));continue}if(n.workKind==="web-search"||n.workKind==="web-fetch"){r.push(rt(YC(n,o),o));continue}r.push(ek(n,o))}return r}function WL(e,t){let r=e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId,o=[rt(Zg(e,{active:r}),t)];if(t.verbose||e.kind==="bundle-summary"){let n=VL(e,t);n.length>0&&o.push(Ut(n.join(`
893
+ `)}function dk(e){return/^\s*/u.exec(e)?.[0].length??0}function TN(e){if(e.length<=sv)return e;let t=e.length-sv;return`${e.slice(0,sv)}... [truncated ${t} chars]`}function xN(e){return`${" ".repeat(e.indent)}... [truncated ${e.skippedLineCount} lines]`}function EN(e,t){let r=e.filter(n=>n.length>0).map(dk);if(r.length>0)return Math.min(...r);let o=t.filter(n=>n.length>0).map(dk);return o.length>0?Math.min(...o):0}function DN(e){let t=e.flatMap(n=>n.split(`
894
+ `)),r=t.slice(0,lk).map(TN),o=t.slice(lk);return o.length===0?r:[...r,xN({skippedLineCount:o.length,indent:EN(o,r)})]}function gk(e,t){return t.truncateForAudit?DN(e):[...e]}function IN(e,t){switch(e){case"pending":return cv("running",t);case"completed":return yN("completed",t);case"error":return fk("error",t);case"interrupted":return cv("interrupted",t);default:return F(e)}}function pk(e,t){return(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="denied"?fk("denied",t):(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="waiting_for_approval"?cv("waiting",t):IN(e.status,t)}function vk(e,t){return Pc(e,hk(e,t)).plain}function mk(e,t){return Pt(Gt(e.trim()," "),t)}function _N(e,t){return e.exitCode===null||e.status==="pending"||e.exitCode===0&&e.output.trim().length>0?null:e.exitCode===0?Pt(" exit code 0",t):Pt(` exit ${e.exitCode}`,t)}function PN(e,t){let r=[];switch(e.workKind){case"command":r.push(` $ ${SN(e.command,t.color)}`),t.verbose&&e.output.trim()&&!De(e)&&r.push(mk(e.output,t.color));let o=_N(e,t.color);return o&&r.push(o),r;case"tool":return e.approvalStatus!==null&&r.push(` ${pk(e,t.color)}`),t.verbose&&e.output.trim()&&!De(e)&&r.push(mk(e.output,t.color)),r;case"file-change":return e.approvalStatus!==null&&r.push(` ${pk(e,t.color)}`),t.verbose&&e.change.diff&&r.push(Pt(Gt(e.change.diff.trimEnd()," "),t.color)),r;case"web-search":return r;case"web-fetch":return r;case"approval":case"question":return r;case"delegation":return e.childRows.length>0&&r.push(Gt(lv(e.childRows,uv(t,e.childRows))," ")),r;default:return F(e)}}function yk(e,t){let r=[at(vk(e,t),t)],o=PN(e,t);return r.push(...e.workKind==="delegation"?o:gk(o,t)),r.join(`
895
+ `)}function wN(e){let t=null,r=[];for(let o of e.activityIntents){if(o.type==="unknown")continue;let n=qo(o);n!==null&&n===t||(r.push(KC({intent:o,pathMode:"full",pending:e.status==="pending"})),t=n)}return r}function CN(e,t){let r=[],o=uv(t,null);for(let n of e.children){if((n.workKind==="command"||n.workKind==="tool")&&De(n)){r.push(...wN(n).map(i=>at(i,o)));continue}if(n.workKind==="web-search"||n.workKind==="web-fetch"){r.push(at(vk(n,o),o));continue}r.push(yk(n,o))}return r}function kN(e,t){let r=e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId,o=[at(ov(e,{active:r}),t)];if(t.verbose||e.kind==="bundle-summary"){let n=CN(e,t);n.length>0&&o.push(Gt(n.join(`
1134
896
  `)," "))}return o.join(`
1135
- `)}function HL(e,t){return Tu(e,QC(e,t)).plain}function KL(e){return e.role!=="user"||e.turnRequest.kind!=="steer"?null:e.turnRequest.status==="pending"?"steer pending":"steer"}function ZL(e,t){switch(e.kind){case"conversation":return[rt(e.role==="user"?"User":"Assistant",t),XC(e.text.split(`
897
+ `)}function RN(e,t){return Pc(e,hk(e,t)).plain}function AN(e){return e.role!=="user"||e.turnRequest.kind!=="steer"?null:e.turnRequest.status==="pending"?"steer pending":"steer"}function jN(e,t){switch(e.kind){case"conversation":return[at(e.role==="user"?"User":"Assistant",t),gk(e.text.split(`
1136
898
  `),t).join(`
1137
- `),KL(e)].filter(r=>r!==null).join(`
1138
- `);case"work":return ek(e,t);case"system":return e.systemKind==="reconnect"?rt(e.title,t):e.systemKind==="error"?[rt("Error",t),Et(Ut(e.title," "),t.color),e.detail?Et(Ut(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
1139
- `):[rt(e.title,t),e.detail?Et(Ut(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
1140
- `);case"bundle-summary":case"step-summary":return WL(e,t);case"turn":{let r=HL(e,t);return!e.children||e.children.length===0?rt(r,t):[rt(r,t),Ut(ev(e.children,Yg(t,null))," ")].join(`
1141
- `)}default:return B(e)}}function ev(e,t){return e.map(r=>ZL(r,t)).join(`
899
+ `),AN(e)].filter(r=>r!==null).join(`
900
+ `);case"work":return yk(e,t);case"system":return e.systemKind==="reconnect"?at(e.title,t):e.systemKind==="error"?[at("Error",t),Pt(Gt(e.title," "),t.color),e.detail?Pt(Gt(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
901
+ `):[at(e.title,t),e.detail?Pt(Gt(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
902
+ `);case"bundle-summary":case"step-summary":return kN(e,t);case"turn":{let r=RN(e,t);return!e.children||e.children.length===0?at(r,t):[at(r,t),Gt(lv(e.children,uv(t,null))," ")].join(`
903
+ `)}default:return F(e)}}function lv(e,t){return e.map(r=>jN(r,t)).join(`
1142
904
 
1143
- `)}function tv(e,t){let r=Lo(e);return ev(r,{verbose:t?.verbose??!1,color:t?.color??!1,depth:0,truncateForAudit:t?.truncateForAudit??!1,activeLatestBundleId:bu(r)})}var tk=["thread/started","thread/identity","thread/contextWindowUsage/updated","thread/tokenUsage/updated","turn/plan/updated"],zK=new Set(tk);var ZJ=a.object({content:a.string(),status:a.string()}).passthrough(),GJ=a.object({todos:a.array(a.unknown())});async function u6(e){let t=await w(e.client.api.v1.environments[":id"].status.$get({param:{id:e.environmentId},query:{mergeBaseBranch:e.mergeBaseBranch}}));return t.workspace===null?{available:!1}:{available:!0,status:t.workspace}}function ck(e,t){e.command("show [id]").description("Show thread details (defaults to BB_THREAD_ID)").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--work-status","Include work status (git state) in output").option("--git-diff","Include git diff in output").option("--diff-target <type>","Diff target: uncommitted, branch_committed, all, or commit (used with --git-diff)","all").option("--diff-sha <sha>","Commit SHA for --diff-target commit").option("--diff-merge-base <branch>","Merge base branch for --diff-target branch_committed or all").option("--merge-base-branches","Include available merge-base branches in output").action(k(async(r,o)=>{let n=Ne(r,o),i=j(t()),s=n.id;re(n,"Thread","BB_THREAD_ID",o);let u=await w(i.api.v1.threads[":id"].$get({param:{id:s}})),l={thread:u},c,p=async()=>u.environmentId?(c!==void 0||(c=await w(i.api.v1.environments[":id"].$get({param:{id:u.environmentId}}))),c):null,d=async D=>{let A=await p(),N=D??dh(A);if(!N)throw new Error("Thread environment does not have a merge base branch");return N},m;if(o.workStatus&&u.environmentId){let D=await d();m=await u6({client:i,environmentId:u.environmentId,mergeBaseBranch:D})}let h;if(o.gitDiff&&u.environmentId){let D=(o.diffTarget??"all").trim(),A=(()=>{switch(D){case"uncommitted":return{target:"uncommitted"};case"branch_committed":return{target:"branch_committed",mergeBaseBranch:o.diffMergeBase};case"all":return{target:"all",mergeBaseBranch:o.diffMergeBase};case"commit":if(!o.diffSha)throw new Error("--diff-sha is required when --diff-target commit is used");return{target:"commit",sha:o.diffSha};default:throw new Error("Unsupported --diff-target. Use uncommitted, branch_committed, all, or commit.")}})(),N=A.target==="branch_committed"||A.target==="all"?{...A,mergeBaseBranch:await d(A.mergeBaseBranch)}:A;h=await w(i.api.v1.environments[":id"].diff.$get({param:{id:u.environmentId},query:N}))}let g;o.mergeBaseBranches&&u.environmentId&&(g=await w(i.api.v1.environments[":id"].diff.branches.$get({param:{id:u.environmentId}})));let y=u.environmentId?await du({client:i,environmentId:u.environmentId}):null,P=await mu({client:i,threadId:s});if(o.json){let D={...l,environment:await p(),pendingTodos:P};m!==void 0&&(D.workStatus=m.available?m.status:null),h!==void 0&&(D.gitDiff=h),g!==void 0&&(D.mergeBaseBranches=g),R(o,D);return}if(c6(l,y),hu(P),m!==void 0)if(m.available){let D=m.status;console.log(""),console.log("Work status:"),console.log(` State: ${D.workingTree.state}`),D.branch.currentBranch&&console.log(` Branch: ${D.branch.currentBranch}`),console.log(` Changed files: ${D.workingTree.files.length}`),console.log(` Insertions: +${D.workingTree.insertions}`),console.log(` Deletions: -${D.workingTree.deletions}`),D.mergeBase&&(console.log(` Merge base: ${D.mergeBase.mergeBaseBranch}`),console.log(` Ahead: ${D.mergeBase.aheadCount} Behind: ${D.mergeBase.behindCount}`))}else console.log(""),console.log("Work status: unavailable");if(h&&(console.log(""),console.log("Git diff:"),h.files.trim().length>0&&console.log(` Files:
1144
- ${h.files.trimEnd()}`),h.shortstat.trim().length>0&&console.log(` Summary: ${h.shortstat.trim()}`),h.diff&&(console.log(""),console.log(h.diff)),h.truncated&&console.log(" (diff truncated)")),g!==void 0)if(console.log(""),g.length===0)console.log("Merge-base branches: none");else{console.log("Merge-base branches:");for(let D of g)console.log(` ${D}`)}})),e.command("log [id]").description("Show thread event log (defaults to BB_THREAD_ID)").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output (alias for --format json)").option("--format <format>","Output format: json (raw events), minimal (compact timeline), verbose (expanded timeline)","minimal").option("--limit <count>","Maximum number of events to return; json format only (default 100)").option("--after-seq <seq>","Return events after this sequence number; json format only").action(k(async(r,o)=>{let n=Ne(r,o),i=j(t()),s=n.id;re(n,"Thread","BB_THREAD_ID",o);let u=l6(o);if(u!=="json"&&(o.limit||o.afterSeq))throw new Error("--limit and --after-seq are only supported with --format json");if(u==="json"){let d=await w(i.api.v1.threads[":id"].events.$get({param:{id:s},query:{limit:String(o.limit??100),...o.afterSeq?{afterSeq:o.afterSeq}:{}}}));console.log(JSON.stringify(d,null,2));return}let l=await w(i.api.v1.threads[":id"].timeline.$get({param:{id:s},query:u==="verbose"?{includeNestedRows:"true"}:{}})),c=process.stdout.isTTY===!0&&!process.env.NO_COLOR,p=tv(l.rows,{verbose:u==="verbose",color:c});console.log(p)})),e.command("output <id>").description("Get the final output of a thread").option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=j(t()),i=await w(n.api.v1.threads[":id"].output.$get({param:{id:r}}));R(o,i)||(i.output?console.log(i.output):console.log("(no output)"))}))}function c6(e,t){let{thread:r}=e;console.log(`Thread: ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${Nt(r.status)}`),r.title&&console.log(` Title: ${r.title}`),console.log(` Project: ${r.projectId}`),r.parentThreadId&&console.log(` Parent: ${r.parentThreadId}`),r.archivedAt!==null&&console.log(` Archived: ${new Date(r.archivedAt).toLocaleString()}`),t?pu(t):r.environmentId&&console.log(` Environment: ${r.environmentId}`),console.log(` Created: ${new Date(r.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(r.updatedAt).toLocaleString()}`)}function l6(e){if(e.json)return"json";let t=(e.format??"minimal").trim().toLowerCase();return t==="json"?"json":t==="verbose"?"verbose":"minimal"}function d6(e){return e.includes("/")||e.startsWith(".")||e.startsWith("~")}function sv(e){if(!e)throw new Error("Cannot reach local host daemon. Is it running?");return e}function p6(e){let t=e.environmentValue?.trim(),r=e.newEnvironmentKind?.trim(),o=e.baseBranch?.trim(),n=o?{kind:"named",name:o}:{kind:"default"};if(t&&r)throw new Error("Cannot combine --environment with --new-environment.");if(r){if(r==="worktree")return{type:"host",hostId:sv(e.hostId),workspace:{type:"managed-worktree",baseBranch:n}};throw new Error(`Unknown environment kind '${r}'. Supported: worktree.`)}return t?d6(t)?{type:"host",hostId:sv(e.hostId),workspace:{type:"unmanaged",path:t}}:{type:"reuse",environmentId:t}:{type:"host",hostId:sv(e.hostId),workspace:{type:"unmanaged",path:null}}}function lk(e,t){e.command("spawn").description("Spawn a new thread for a project; omitted provider and execution flags inherit remembered project defaults").requiredOption("--prompt <prompt>","Initial prompt for the thread").option("--json","Print machine-readable JSON output").option("--project <id>","Project ID (defaults to BB_PROJECT_ID)").option("--environment <id-or-path>","Existing environment UUID or unmanaged workspace path").option("--new-environment <kind>","Create a new managed environment of the given kind (worktree)").option("--base-branch <branch>","Base branch for new managed environments (worktree). Defaults to the source's default branch.").option("--parent-thread <id>","Parent thread ID for worker thread links (defaults to BB_THREAD_ID)").option("--provider <id>","Provider ID for the thread. Omit to use the project's remembered provider choice for standard threads").option("--model <model>","Model ID for the thread. Omit to use the project's remembered default for the resolved provider").option("--reasoning-level <level>","Reasoning level: low, medium, high, xhigh, max (provider-dependent)").option("--title <title>","Thread title").option("--service-tier <tier>","Service tier: fast or default").option("--permission-mode <mode>",lu).option("--host <id>","Host ID (defaults to local host)").option("--no-context-parent-thread","Do not default parent thread context to BB_THREAD_ID").action(k(async r=>{let o=j(t());if(r.parentThread&&r.contextParentThread===!1)throw new Error("Cannot combine --parent-thread with --no-context-parent-thread.");let n=rD(r.project),i=nD(r.environment),s=r.host??null;s||(s=await xe());let u=p6({environmentValue:i,newEnvironmentKind:r.newEnvironment,hostId:s,baseBranch:r.baseBranch}),l=tr(r.reasoningLevel),c=aC(r.serviceTier),p=vr(r.permissionMode),d=r.parentThread??(r.contextParentThread===!1?void 0:Ye()),m;try{m=await w(o.api.v1.threads.$post({json:{origin:"cli",projectId:n,...r.provider?{providerId:r.provider}:{},...r.model?{model:r.model}:{},input:[{type:"text",text:r.prompt}],...l?{reasoningLevel:l}:{},...r.title?{title:r.title}:{},...c?{serviceTier:c}:{},...p?{permissionMode:p}:{},environment:u,...d?{parentThreadId:d}:{}}}))}catch(h){throw ft("Failed to create thread",h)}R(r,m)||(console.log(`Thread spawned: ${m.id}`),m.parentThreadId&&m.parentThreadId===Ye()&&console.log("You will be notified when this thread is done."),m6(m))}))}function m6(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Project: ${e.projectId}`),console.log(` Status: ${Nt(e.status)}`),e.archivedAt!==null&&console.log(` Archived: ${new Date(e.archivedAt).toLocaleString()}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),console.log("")}function pk(e,t){e.command("wait [id]").description("Wait for a thread status or event (defaults to BB_THREAD_ID)").option("--status <status>","Wait until the thread reaches this status").option("--event <type>","Wait until the thread log includes this event type").option("--timeout <seconds>",`Timeout in seconds (default: ${Fg})`).option("--poll-interval <ms>",`Polling interval in milliseconds (default: ${Bg})`).option("--json","Print machine-readable JSON output").action(k(async(r,o)=>{let n=j(t()),i=cf(r),s=i.id;re(i,"Thread","BB_THREAD_ID",o);let u=h6(o),l=oC(o.timeout),c=iC(o.pollInterval),p=Date.now()+l*1e3;for(;;)if(u.kind==="status"){let d=await w(n.api.v1.threads[":id"].$get({param:{id:s}}));if(d.status===u.status){if(R(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} reached status ${u.status}.`);return}let m=f6(s,d.status,u.status);if(m)throw new gt(m,nC);if(Date.now()>=p)throw new gt(`Timed out waiting for thread ${s} to reach status ${u.status}.`,Mg);await dk(c)}else{let d=Math.max(0,p-Date.now()),m=Math.floor(Math.min(d,3e4)),h={type:u.eventType,waitMs:String(m)},g=await n.api.v1.threads[":id"].events.wait.$get({param:{id:s},query:h}),y=g.status;if(y===204){if(Date.now()>=p)throw new gt(`Timed out waiting for thread ${s} event ${u.eventType}.`,Mg);await dk(c);continue}else if(!g.ok){let D=await g.text();throw new Error(`Wait request failed with ${y}: ${D}`)}let P=Fh(await g.json());if(R(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} observed event ${u.eventType} at seq ${P.seq}.`);return}}))}function h6(e){let t=!!e.status,r=!!e.event;if(t===r)throw new gt("Provide exactly one of --status or --event.",zg);if(e.status){let o=Mt.safeParse(e.status);if(!o.success)throw new gt(`Invalid thread status '${e.status}'. Expected one of ${rn.join(", ")}.`,zg);return{kind:"status",status:o.data}}return{kind:"event",eventType:e.event??""}}function f6(e,t,r){if(!(t===r||r!=="idle"))switch(t){case"error":return`Thread ${e} is in status error and will not reach idle by waiting alone. Inspect it with 'bb thread show ${e}' and recover by sending a follow-up.`;case"created":case"provisioning":case"idle":case"active":return;default:return fe(t)}}async function dk(e){await new Promise(t=>setTimeout(t,e))}function mk(e,t){let r=e.command("thread").description("Manage threads");pk(r,t),lk(r,t),IC(r,t),ck(r,t),SC(r,t),DC(r,t)}import{readFileSync as g6}from"node:fs";import{dirname as gk,join as hk,resolve as v6}from"node:path";import{fileURLToPath as y6}from"node:url";var S6="0.0.0-dev",b6=8,T6=a.object({name:a.string(),version:a.string().min(1)}).passthrough();function fk(e){try{let t=T6.safeParse(JSON.parse(g6(e,"utf8")));return!t.success||t.data.name!=="bb-app"?null:t.data.version}catch{return null}}function x6(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function E6(e){let t=x6(e.env.BB_APP_VERSION);if(t!==void 0)return t;let r=v6(e.fromDir);for(let o=0;o<b6;o+=1){let n=hk(r,"package.json"),i=fk(n);if(i!==null)return i;let s=hk(r,"packages","bb-app","package.json"),u=fk(s);if(u!==null)return u;let l=gk(r);if(l===r)break;r=l}return S6}function vk(){return E6({env:process.env,fromDir:gk(y6(import.meta.url))})}var Fe=new Dv,yk;function uv(){return yk??=mo(),yk}Fe.name("bb").description("BB CLI - manage your AI coding agents").version(vk());Fe.addHelpText("after",()=>{let e=ho(uv()),t=e.projectId??"<unset>",r=e.threadId??"<unset>";return`
905
+ `)}function dv(e,t){let r=Uo(e);return lv(r,{verbose:t?.verbose??!1,color:t?.color??!1,depth:0,truncateForAudit:t?.truncateForAudit??!1,activeLatestBundleId:_c(r)})}var Sk=["thread/started","thread/identity","thread/contextWindowUsage/updated","thread/tokenUsage/updated","turn/plan/updated"],LZ=new Set(Sk);var JX=a.object({content:a.string(),status:a.string()}).passthrough(),XX=a.object({todos:a.array(a.unknown())});async function KN(e){let t=await _(e.client.api.v1.environments[":id"].status.$get({param:{id:e.environmentId},query:{mergeBaseBranch:e.mergeBaseBranch}}));return t.workspace===null?{available:!1}:{available:!0,status:t.workspace}}function Pk(e,t){e.command("show [id]").description("Show thread details (defaults to BB_THREAD_ID)").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output").option("--work-status","Include work status (git state) in output").option("--git-diff","Include git diff in output").option("--diff-target <type>","Diff target: uncommitted, branch_committed, all, or commit (used with --git-diff)","all").option("--diff-sha <sha>","Commit SHA for --diff-target commit").option("--diff-merge-base <branch>","Merge base branch for --diff-target branch_committed or all").option("--merge-base-branches","Include available merge-base branches in output").action(w(async(r,o)=>{let n=Ce(r,o),i=A(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let c=await _(i.api.v1.threads[":id"].$get({param:{id:s}})),l={thread:c},u,p=async()=>c.environmentId?(u!==void 0||(u=await _(i.api.v1.environments[":id"].$get({param:{id:c.environmentId}}))),u):null,d=async D=>{let j=await p(),N=D??vh(j);if(!N)throw new Error("Thread environment does not have a merge base branch");return N},m;if(o.workStatus&&c.environmentId){let D=await d();m=await KN({client:i,environmentId:c.environmentId,mergeBaseBranch:D})}let h;if(o.gitDiff&&c.environmentId){let D=(o.diffTarget??"all").trim(),j=(()=>{switch(D){case"uncommitted":return{target:"uncommitted"};case"branch_committed":return{target:"branch_committed",mergeBaseBranch:o.diffMergeBase};case"all":return{target:"all",mergeBaseBranch:o.diffMergeBase};case"commit":if(!o.diffSha)throw new Error("--diff-sha is required when --diff-target commit is used");return{target:"commit",sha:o.diffSha};default:throw new Error("Unsupported --diff-target. Use uncommitted, branch_committed, all, or commit.")}})(),N=j.target==="branch_committed"||j.target==="all"?{...j,mergeBaseBranch:await d(j.mergeBaseBranch)}:j;h=await _(i.api.v1.environments[":id"].diff.$get({param:{id:c.environmentId},query:N}))}let g;o.mergeBaseBranches&&c.environmentId&&(g=await _(i.api.v1.environments[":id"].diff.branches.$get({param:{id:c.environmentId},query:{}})));let y=c.environmentId?await vc({client:i,environmentId:c.environmentId}):null,C=await Sc({client:i,threadId:s});if(o.json){let D={...l,environment:await p(),pendingTodos:C};m!==void 0&&(D.workStatus=m.available?m.status:null),h!==void 0&&(D.gitDiff=h),g!==void 0&&(D.mergeBaseBranches=g),R(o,D);return}if(ZN(l,y),bc(C),m!==void 0)if(m.available){let D=m.status;console.log(""),console.log("Work status:"),console.log(` State: ${D.workingTree.state}`),D.branch.currentBranch&&console.log(` Branch: ${D.branch.currentBranch}`),console.log(` Changed files: ${D.workingTree.files.length}`),console.log(` Insertions: +${D.workingTree.insertions}`),console.log(` Deletions: -${D.workingTree.deletions}`),D.mergeBase&&(console.log(` Merge base: ${D.mergeBase.mergeBaseBranch}`),console.log(` Ahead: ${D.mergeBase.aheadCount} Behind: ${D.mergeBase.behindCount}`))}else console.log(""),console.log("Work status: unavailable");if(h&&(console.log(""),console.log("Git diff:"),h.files.trim().length>0&&console.log(` Files:
906
+ ${h.files.trimEnd()}`),h.shortstat.trim().length>0&&console.log(` Summary: ${h.shortstat.trim()}`),h.diff&&(console.log(""),console.log(h.diff)),h.truncated&&console.log(" (diff truncated)")),g!==void 0)if(console.log(""),g.length===0)console.log("Merge-base branches: none");else{console.log("Merge-base branches:");for(let D of g)console.log(` ${D}`)}})),e.command("log [id]").description("Show thread event log (defaults to BB_THREAD_ID)").option("--self","Target the current thread (from BB_THREAD_ID)").option("--json","Print machine-readable JSON output (alias for --format json)").option("--format <format>","Output format: json (raw events), minimal (compact timeline), verbose (expanded timeline)","minimal").option("--limit <count>","Maximum number of events to return; json format only (default 100)").option("--after-seq <seq>","Return events after this sequence number; json format only").action(w(async(r,o)=>{let n=Ce(r,o),i=A(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let c=GN(o);if(c!=="json"&&(o.limit||o.afterSeq))throw new Error("--limit and --after-seq are only supported with --format json");if(c==="json"){let d=await _(i.api.v1.threads[":id"].events.$get({param:{id:s},query:{limit:String(o.limit??100),...o.afterSeq?{afterSeq:o.afterSeq}:{}}}));console.log(JSON.stringify(d,null,2));return}let l=await _(i.api.v1.threads[":id"].timeline.$get({param:{id:s},query:c==="verbose"?{includeNestedRows:"true"}:{}})),u=process.stdout.isTTY===!0&&!process.env.NO_COLOR,p=dv(l.rows,{verbose:c==="verbose",color:u});console.log(p)})),e.command("output <id>").description("Get the final output of a thread").option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=await _(n.api.v1.threads[":id"].output.$get({param:{id:r}}));R(o,i)||(i.output?console.log(i.output):console.log("(no output)"))}))}function ZN(e,t){let{thread:r}=e;console.log(`Thread: ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${Kt(r.status)}`),r.title&&console.log(` Title: ${r.title}`),console.log(` Project: ${r.projectId}`),r.parentThreadId&&console.log(` Parent: ${r.parentThreadId}`),r.archivedAt!==null&&console.log(` Archived: ${new Date(r.archivedAt).toLocaleString()}`),r.pinnedAt!==null&&console.log(` Pinned: ${new Date(r.pinnedAt).toLocaleString()}`),t?yc(t):r.environmentId&&console.log(` Environment: ${r.environmentId}`),console.log(` Created: ${new Date(r.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(r.updatedAt).toLocaleString()}`)}function GN(e){if(e.json)return"json";let t=(e.format??"minimal").trim().toLowerCase();return t==="json"?"json":t==="verbose"?"verbose":"minimal"}function wk(e){return e.includes("/")||e.startsWith(".")||e.startsWith("~")}function vv(e){if(!e)throw new Error("Cannot reach local host daemon. Is it running?");return e}function QN(e){let t=e.environmentValue?.trim(),r=e.newEnvironmentKind?.trim(),o=e.baseBranch?.trim(),n=o?{kind:"named",name:o}:{kind:"default"};if(t&&r)throw new Error("Cannot combine --environment with --new-environment.");if(r){if(r==="worktree")return{type:"host",hostId:vv(e.hostId),workspace:{type:"managed-worktree",baseBranch:n}};throw new Error(`Unknown environment kind '${r}'. Supported: worktree.`)}return t?wk(t)?{type:"host",hostId:vv(e.hostId),workspace:{type:"unmanaged",path:t}}:{type:"reuse",environmentId:t}:e.defaultPersonalWorkspace?{type:"host",...e.hostId?{hostId:e.hostId}:{},workspace:{type:"personal"}}:{type:"host",hostId:vv(e.hostId),workspace:{type:"unmanaged",path:null}}}function Ck(e,t){e.command("spawn").description("Spawn a new thread for a project; omitted provider and execution flags inherit remembered project defaults").requiredOption("--prompt <prompt>","Initial prompt for the thread").option("--json","Print machine-readable JSON output").option("--project <id>","Project ID (defaults to BB_PROJECT_ID, then the personal project)").option("--environment <id-or-path>","Existing environment UUID or unmanaged workspace path").option("--new-environment <kind>","Create a new managed environment of the given kind (worktree)").option("--base-branch <branch>","Base branch for new managed environments (worktree). Defaults to the source's default branch.").option("--parent-thread <id>","Parent thread ID for worker thread links (defaults to BB_THREAD_ID)").option("--provider <id>","Provider ID for the thread. Omit to use the project's remembered provider choice for standard threads").option("--model <model>","Model ID for the thread. Omit to use the project's remembered default for the resolved provider").option("--reasoning-level <level>","Reasoning level: low, medium, high, xhigh, max (provider-dependent)").option("--title <title>","Thread title").option("--service-tier <tier>","Service tier: fast or default").option("--permission-mode <mode>",gc).option("--host <id>","Host ID (defaults to local host)").option("--no-context-parent-thread","Do not default parent thread context to BB_THREAD_ID").action(w(async r=>{let o=A(t());if(r.parentThread&&r.contextParentThread===!1)throw new Error("Cannot combine --parent-thread with --no-context-parent-thread.");let n=Rf(r.project)??Be,i=h_(r.environment),s=r.host??null,c=n===Be&&!i&&!r.newEnvironment;!c&&!s&&(!i||wk(i))&&(s=await Ee());let u=QN({defaultPersonalWorkspace:c,environmentValue:i,newEnvironmentKind:r.newEnvironment,hostId:s,baseBranch:r.baseBranch}),p=or(r.reasoningLevel),d=EC(r.serviceTier),m=Sr(r.permissionMode),h=r.parentThread??(r.contextParentThread===!1?void 0:nt()),g;try{g=await _(o.api.v1.threads.$post({json:{origin:"cli",projectId:n,...r.provider?{providerId:r.provider}:{},...r.model?{model:r.model}:{},input:[{type:"text",text:r.prompt}],...p?{reasoningLevel:p}:{},...r.title?{title:r.title}:{},...d?{serviceTier:d}:{},...m?{permissionMode:m}:{},environment:u,...h?{parentThreadId:h}:{}}}))}catch(y){throw bt("Failed to create thread",y)}R(r,g)||(console.log(`Thread spawned: ${g.id}`),g.parentThreadId&&g.parentThreadId===nt()&&console.log("You will be notified when this thread is done."),JN(g))}))}function JN(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Project: ${e.projectId===Be?"-":e.projectId}`),console.log(` Status: ${Kt(e.status)}`),e.archivedAt!==null&&console.log(` Archived: ${new Date(e.archivedAt).toLocaleString()}`),console.log(` Created: ${new Date(e.createdAt).toLocaleString()}`),console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),console.log("")}function Rk(e,t){e.command("wait [id]").description("Wait for a thread status or event (defaults to BB_THREAD_ID)").option("--status <status>","Wait until the thread reaches this status").option("--event <type>","Wait until the thread log includes this event type").option("--timeout <seconds>",`Timeout in seconds (default: ${Zg})`).option("--poll-interval <ms>",`Polling interval in milliseconds (default: ${Gg})`).option("--json","Print machine-readable JSON output").action(w(async(r,o)=>{let n=A(t()),i=Af(r),s=i.id;oe(i,"Thread","BB_THREAD_ID",o);let c=XN(o),l=TC(o.timeout),u=xC(o.pollInterval),p=Date.now()+l*1e3;for(;;)if(c.kind==="status"){let d=await _(n.api.v1.threads[":id"].$get({param:{id:s}}));if(d.status===c.status){if(R(o,{threadId:s,matched:!0,target:c}))return;console.log(`Thread ${s} reached status ${c.status}.`);return}let m=YN(s,d.status,c.status);if(m)throw new Tt(m,SC);if(Date.now()>=p)throw new Tt(`Timed out waiting for thread ${s} to reach status ${c.status}.`,Hg);await kk(u)}else{let d=Math.max(0,p-Date.now()),m=Math.floor(Math.min(d,3e4)),h={type:c.eventType,waitMs:String(m)},g=await n.api.v1.threads[":id"].events.wait.$get({param:{id:s},query:h}),y=g.status;if(y===204){if(Date.now()>=p)throw new Tt(`Timed out waiting for thread ${s} event ${c.eventType}.`,Hg);await kk(u);continue}else if(!g.ok){let D=await g.text();throw new Error(`Wait request failed with ${y}: ${D}`)}let C=Wh(await g.json());if(R(o,{threadId:s,matched:!0,target:c}))return;console.log(`Thread ${s} observed event ${c.eventType} at seq ${C.seq}.`);return}}))}function XN(e){let t=!!e.status,r=!!e.event;if(t===r)throw new Tt("Provide exactly one of --status or --event.",Kg);if(e.status){let o=Nt.safeParse(e.status);if(!o.success)throw new Tt(`Invalid thread status '${e.status}'. Expected one of ${ln.join(", ")}.`,Kg);return{kind:"status",status:o.data}}return{kind:"event",eventType:e.event??""}}function YN(e,t,r){if(!(t===r||r!=="idle"))switch(t){case"error":return`Thread ${e} is in status error and will not reach idle by waiting alone. Inspect it with 'bb thread show ${e}' and recover by sending a follow-up.`;case"created":case"provisioning":case"idle":case"active":return;default:return ve(t)}}async function kk(e){await new Promise(t=>setTimeout(t,e))}function Ak(e,t){let r=e.command("thread").description("Manage threads");Rk(r,t),Ck(r,t),UC(r,t),Pk(r,t),zC(r,t),qC(r,t)}import{readFileSync as eq}from"node:fs";import{dirname as Mk,join as jk,resolve as tq}from"node:path";import{fileURLToPath as nq}from"node:url";var rq="0.0.0-dev",oq=8,iq=a.object({name:a.string(),version:a.string().min(1)}).passthrough();function $k(e){try{let t=iq.safeParse(JSON.parse(eq(e,"utf8")));return!t.success||t.data.name!=="bb-app"?null:t.data.version}catch{return null}}function aq(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function sq(e){let t=aq(e.env.BB_APP_VERSION);if(t!==void 0)return t;let r=tq(e.fromDir);for(let o=0;o<oq;o+=1){let n=jk(r,"package.json"),i=$k(n);if(i!==null)return i;let s=jk(r,"packages","bb-app","package.json"),c=$k(s);if(c!==null)return c;let l=Mk(r);if(l===r)break;r=l}return rq}function Ok(){return sq({env:process.env,fromDir:Mk(nq(import.meta.url))})}var je=new $v,zk;function yv(){return zk??=bo(),zk}je.name("bb").description("BB CLI - manage your AI coding agents").version(Ok());je.addHelpText("after",()=>{let e=xo(yv()),t=e.projectId??"<unset>",r=e.threadId??"<unset>";return`
1145
907
 
1146
908
  Current context:
1147
909
  BB_PROJECT_ID: ${t}
@@ -1153,4 +915,4 @@ Quick start:
1153
915
  bb project list
1154
916
  bb thread show
1155
917
  bb thread spawn --provider codex --prompt "..."
1156
- `});function Vt(){return YE(uv())}function D6(){return ho(uv())}yC(Fe,Vt,D6);mC(Fe,Vt);tC(Fe,Vt);hC(Fe,Vt);cC(Fe,Vt);mk(Fe,Vt);gC(Fe,Vt);r_(Fe,Vt);Xw(Fe);Fe.parseAsync(process.argv).catch(e=>{console.error(e.message),process.exit(1)});
918
+ `});function wt(){return p_(yv())}function cq(){return xo(yv())}OC(je,wt,cq);RC(je,wt);yC(je,wt);AC(je,wt);_C(je,wt);TP(je,wt);Ak(je,wt);$C(je,wt);xP(je,wt);vC(je);je.parseAsync(process.argv).catch(e=>{console.error(e.message),process.exit(1)});