bb-app 0.0.3 → 0.0.5

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 (346) hide show
  1. package/README.md +9 -7
  2. package/app/dist/assets/AppSettingsView-Dmjbm_4y.js +1 -0
  3. package/app/dist/assets/InternalReplayListView-BMzOdu0K.js +1 -0
  4. package/app/dist/assets/ProjectArchivedThreadsView-DzbW3kSk.js +1 -0
  5. package/app/dist/assets/ProjectSettingsView-BCVVMJFB.js +1 -0
  6. package/app/dist/assets/ThreadDetailRoute-BI3VVE99.js +2535 -0
  7. package/app/dist/assets/ThreadUnarchiveButton-BJStGY8f.js +1 -0
  8. package/app/dist/assets/{angular-html-C2Dl0O00.js → angular-html-CM7ZtmlE.js} +1 -1
  9. package/app/dist/assets/{angular-ts-CVYqc36v.js → angular-ts-B4aAwutb.js} +1 -1
  10. package/app/dist/assets/{apl-BGPamPSJ.js → apl-Db6aaGYX.js} +1 -1
  11. package/app/dist/assets/{astro-Ba-Dojj4.js → astro-CXkhV095.js} +1 -1
  12. package/app/dist/assets/{blade-Lwg2Qi0v.js → blade-CfLZY3kt.js} +1 -1
  13. package/app/dist/assets/{bsl-JaCMWPaY.js → bsl-CG-fq4sc.js} +1 -1
  14. package/app/dist/assets/{c-B_58eHuy.js → c-CwV4mx9Z.js} +1 -1
  15. package/app/dist/assets/{cairo-D7Xpkdmw.js → cairo-Ds0kTeYT.js} +1 -1
  16. package/app/dist/assets/chunk-JZWAC4HX-CrzST-zS.js +3 -0
  17. package/app/dist/assets/{cobol-CM0x5uzi.js → cobol-Bx9V6w-A.js} +1 -1
  18. package/app/dist/assets/{coffee-WumiHYOD.js → coffee-4vexivp2.js} +1 -1
  19. package/app/dist/assets/{cpp-D0sZgzGq.js → cpp-B9JgHtmn.js} +1 -1
  20. package/app/dist/assets/{crystal-C2tAIJ-r.js → crystal-CV6ainQY.js} +1 -1
  21. package/app/dist/assets/{css-QhLRjU31.js → css-BahFL25I.js} +1 -1
  22. package/app/dist/assets/{dialog-CxN4lDeD.js → dialog-sqh89xvD.js} +1 -1
  23. package/app/dist/assets/{edge-BmtKCk7-.js → edge-Dbi7IqBU.js} +1 -1
  24. package/app/dist/assets/{effective-hosts-BWRuszG7.js → effective-hosts-Dc1pzW51.js} +4 -4
  25. package/app/dist/assets/{elixir-DiumzaXM.js → elixir-Bcybagr3.js} +1 -1
  26. package/app/dist/assets/{elm-DV3i51_v.js → elm-Cg7kNsW7.js} +1 -1
  27. package/app/dist/assets/{erb-3qqPnLJh.js → erb-CUdWoCwh.js} +1 -1
  28. package/app/dist/assets/{erlang-DJdyEhn7.js → erlang-C-m_88FN.js} +1 -1
  29. package/app/dist/assets/{fortran-fixed-form-Dyncprn4.js → fortran-fixed-form-Cx1lv7HN.js} +1 -1
  30. package/app/dist/assets/{fsharp-D6WYKxtq.js → fsharp-DC5k9sy2.js} +1 -1
  31. package/app/dist/assets/{gdresource-Bac2fAQZ.js → gdresource-D0EsKdgH.js} +1 -1
  32. package/app/dist/assets/{git-commit-CDZnUqIF.js → git-commit-BcFsuO5E.js} +1 -1
  33. package/app/dist/assets/{git-rebase-DIMwlcT0.js → git-rebase-CebuXWOz.js} +1 -1
  34. package/app/dist/assets/{glimmer-js-BKsURin4.js → glimmer-js-DHD_iF4f.js} +1 -1
  35. package/app/dist/assets/{glimmer-ts-Chhe0oIX.js → glimmer-ts-x8YwQhtI.js} +1 -1
  36. package/app/dist/assets/{glsl-Dy3tp3E1.js → glsl-DTvpjV5x.js} +1 -1
  37. package/app/dist/assets/{graphql-CseHr1LK.js → graphql-BABFRhpo.js} +1 -1
  38. package/app/dist/assets/{hack-boTiAbss.js → hack-BTa_6UF4.js} +1 -1
  39. package/app/dist/assets/{haml-CjrsmcwN.js → haml-DwZg9pb5.js} +1 -1
  40. package/app/dist/assets/{handlebars-B_oDWsbs.js → handlebars-Bkp0I46S.js} +1 -1
  41. package/app/dist/assets/{html-C4e0uDKx.js → html-BrFG164I.js} +1 -1
  42. package/app/dist/assets/{html-derivative-DtQj__OI.js → html-derivative-Dm50cCgO.js} +1 -1
  43. package/app/dist/assets/{http-W8z61A1Z.js → http-DHs85vmZ.js} +1 -1
  44. package/app/dist/assets/{hurl-CBaPhsIJ.js → hurl-Dh07B-Ro.js} +1 -1
  45. package/app/dist/assets/{hxml-BNblpm3P.js → hxml-iQTOTWpM.js} +1 -1
  46. package/app/dist/assets/index-8oyVoqEg.js +1360 -0
  47. package/app/dist/assets/index-Cdqw3W2G.css +2 -0
  48. package/app/dist/assets/{java-C9TLG_lA.js → java-CyElhBLV.js} +1 -1
  49. package/app/dist/assets/{javascript-B6-baDIX.js → javascript-Iw1B_HiK.js} +1 -1
  50. package/app/dist/assets/{jinja-D6Ec9tX7.js → jinja-CwNzTCBn.js} +1 -1
  51. package/app/dist/assets/{jison-abiW-9pn.js → jison-DmnCmBdi.js} +1 -1
  52. package/app/dist/assets/{json-DtR-rTq5.js → json-2cvnIy7t.js} +1 -1
  53. package/app/dist/assets/{jsx-TQyKdSmQ.js → jsx-CUP6THJt.js} +1 -1
  54. package/app/dist/assets/{julia-BKK2QHze.js → julia-C5QkPIf6.js} +1 -1
  55. package/app/dist/assets/{just-BY5hWNgR.js → just-DKTy3QCk.js} +1 -1
  56. package/app/dist/assets/{latex-CuW1q2vJ.js → latex-D6EezuXB.js} +1 -1
  57. package/app/dist/assets/{liquid-BsqUQnO5.js → liquid-CIoyldIJ.js} +1 -1
  58. package/app/dist/assets/localhost-badge-DMyU8aEl.js +22 -0
  59. package/app/dist/assets/{lua-D4PO1r07.js → lua-DdZ7KAyq.js} +1 -1
  60. package/app/dist/assets/{marko-1bNyFeKY.js → marko-DzUNPeS3.js} +1 -1
  61. package/app/dist/assets/{mdc-BoU9IUKL.js → mdc-D5459Kci.js} +1 -1
  62. package/app/dist/assets/mutation-cache-effects-DiCFYnTh.js +1 -0
  63. package/app/dist/assets/{nextflow-dLJhzX3Z.js → nextflow-D-Ec_bsY.js} +1 -1
  64. package/app/dist/assets/{nginx-BXWzwlUI.js → nginx-0z5C7Rx2.js} +1 -1
  65. package/app/dist/assets/{nim-BgalU8R5.js → nim-DqH405Ip.js} +1 -1
  66. package/app/dist/assets/page-shell-DBPkwDcw.js +39 -0
  67. package/app/dist/assets/{perl-OrqzwF6j.js → perl-DFMDl6Q7.js} +1 -1
  68. package/app/dist/assets/{php-DsC0K8EH.js → php-CnLHesuB.js} +1 -1
  69. package/app/dist/assets/pill-BNIxU09I.js +1 -0
  70. package/app/dist/assets/{pug-D-Q9Kgtz.js → pug-Bd_9REL_.js} +1 -1
  71. package/app/dist/assets/{qml-Dyn06a9u.js → qml-Lr6hdC-5.js} +1 -1
  72. package/app/dist/assets/{r-C3AjV-3E.js → r-Ce3-ySeQ.js} +1 -1
  73. package/app/dist/assets/{razor-DHd1twLi.js → razor-FG0QpIgS.js} +1 -1
  74. package/app/dist/assets/{regexp-Dl_oPCDN.js → regexp-CIUvMYKc.js} +1 -1
  75. package/app/dist/assets/{rst-BIq6VDAT.js → rst-Dz7v6x4B.js} +1 -1
  76. package/app/dist/assets/{ruby-BJwcPMyx.js → ruby-C-FBX9Yb.js} +1 -1
  77. package/app/dist/assets/{sas-TXWq-8Bu.js → sas-C9h-w7MI.js} +1 -1
  78. package/app/dist/assets/{scss-Cz2NsCSh.js → scss-D6OzIOrm.js} +1 -1
  79. package/app/dist/assets/{settings-section-CZi6DvBs.js → settings-section-BKzVpY8V.js} +1 -1
  80. package/app/dist/assets/{shaderlab-CSb6CBXg.js → shaderlab-DGohHMiF.js} +1 -1
  81. package/app/dist/assets/{shellscript-CJedfzfs.js → shellscript-D87RcbyJ.js} +1 -1
  82. package/app/dist/assets/{shellsession-Tkblvq8e.js → shellsession-TIQjKTe8.js} +1 -1
  83. package/app/dist/assets/{soy-g_UxtUjg.js → soy-B-dmhoWy.js} +1 -1
  84. package/app/dist/assets/{sparql-J1VOnnwM.js → sparql-BgU2QITA.js} +1 -1
  85. package/app/dist/assets/split-button-DqIwadhH.js +1 -0
  86. package/app/dist/assets/{sql-DQAX0EN7.js → sql-CbBIAEKN.js} +1 -1
  87. package/app/dist/assets/{stata-BXjroK6c.js → stata-BQ_FGGIg.js} +1 -1
  88. package/app/dist/assets/{surrealql-DyDhPjEW.js → surrealql-B5__VBgQ.js} +1 -1
  89. package/app/dist/assets/{svelte-CEjCx-8g.js → svelte-CgBSZjLG.js} +1 -1
  90. package/app/dist/assets/{templ-BViMCY-s.js → templ-_lWYjbQF.js} +1 -1
  91. package/app/dist/assets/{tex-BOG7uw6j.js → tex-BYUs5HV3.js} +1 -1
  92. package/app/dist/assets/thread-queries-BX-3vM7I.js +1 -0
  93. package/app/dist/assets/{ts-tags-1PkZB39L.js → ts-tags-hjuJ4isf.js} +1 -1
  94. package/app/dist/assets/{tsx-B1khekg1.js → tsx-DlvScFgB.js} +1 -1
  95. package/app/dist/assets/{twig-C30VOGkj.js → twig-DgkARV1o.js} +1 -1
  96. package/app/dist/assets/{typescript-BVriUqhl.js → typescript-BE5MgbU9.js} +1 -1
  97. package/app/dist/assets/{vue-Dy6YaQjk.js → vue-C6mGC-Xh.js} +1 -1
  98. package/app/dist/assets/{vue-html-yfcmxRL7.js → vue-html-BcBAJPrV.js} +1 -1
  99. package/app/dist/assets/{vue-vine-BnfxXDO0.js → vue-vine-DsdYqYVB.js} +1 -1
  100. package/app/dist/assets/{xml-BJ3Y9ehh.js → xml-CMIrlqCw.js} +1 -1
  101. package/app/dist/assets/{xsl-CFOlFF3h.js → xsl-BL_g6M4v.js} +1 -1
  102. package/app/dist/assets/{yaml-BJda_PXC.js → yaml-D4rIwiAS.js} +1 -1
  103. package/app/dist/index.html +9 -9
  104. package/host-daemon/dist/bb +194 -49
  105. package/host-daemon/dist/bb-claude-code-bridge.mjs +34 -34
  106. package/host-daemon/dist/daemon-bundle.mjs +224 -224
  107. package/package.json +1 -1
  108. package/server/dist/index.js +176 -11
  109. package/app/dist/assets/AppSettingsView-D4Xk7Lux.js +0 -1
  110. package/app/dist/assets/InternalReplayListView-DOajBbUO.js +0 -1
  111. package/app/dist/assets/ProjectArchivedThreadsView-CR1mxrlQ.js +0 -1
  112. package/app/dist/assets/ProjectSettingsView-DucRZWso.js +0 -1
  113. package/app/dist/assets/ThreadDetailRoute-CrBpC0ct.js +0 -2390
  114. package/app/dist/assets/ThreadUnarchiveButton-EqnpnszW.js +0 -1
  115. package/app/dist/assets/index-BSJHUjhM.css +0 -2
  116. package/app/dist/assets/index-ByQGFt4l.js +0 -1359
  117. package/app/dist/assets/localhost-badge-BBCmn0GW.js +0 -22
  118. package/app/dist/assets/mutation-cache-effects-BQHFwGL7.js +0 -1
  119. package/app/dist/assets/page-shell-Dglk9LmR.js +0 -39
  120. package/app/dist/assets/pill-BHnTA2D7.js +0 -3
  121. package/app/dist/assets/split-button-CeV-MQ2f.js +0 -1
  122. package/app/dist/assets/thread-queries-BOTfj5Vv.js +0 -1
  123. package/server/dist/default-template/PREFERENCES.md +0 -35
  124. /package/app/dist/assets/{abap-DKGmjV0m.js → abap-B1dkBSPn.js} +0 -0
  125. /package/app/dist/assets/{actionscript-3-PQHI9sRP.js → actionscript-3-BT4ibYlP.js} +0 -0
  126. /package/app/dist/assets/{ada-7dCRqcEc.js → ada-CD92zeps.js} +0 -0
  127. /package/app/dist/assets/{addon-fit-CIMl-Yt0.js → addon-fit-Cm0rqjtv.js} +0 -0
  128. /package/app/dist/assets/{addon-web-links-Sy65bwVY.js → addon-web-links-B8_D6zvC.js} +0 -0
  129. /package/app/dist/assets/{andromeeda-CvHLbWZU.js → andromeeda-DqSmgxi0.js} +0 -0
  130. /package/app/dist/assets/{apache-DuwFT_ko.js → apache-D5suuoa_.js} +0 -0
  131. /package/app/dist/assets/{apex-ZrILV9y9.js → apex-BL-m4VHy.js} +0 -0
  132. /package/app/dist/assets/{applescript-QewDI2Hm.js → applescript-CLiBqvKT.js} +0 -0
  133. /package/app/dist/assets/{ara-CAKYVeDX.js → ara-LdDF8cmv.js} +0 -0
  134. /package/app/dist/assets/{asciidoc-xYtH5EEV.js → asciidoc-2DZ9hC2N.js} +0 -0
  135. /package/app/dist/assets/{asm-DuNyKkDV.js → asm-0ZPGRSUy.js} +0 -0
  136. /package/app/dist/assets/{aurora-x-mlfFqJAh.js → aurora-x-Da7Zfvbg.js} +0 -0
  137. /package/app/dist/assets/{awk-BDSWDVpS.js → awk-Bn0gn_B_.js} +0 -0
  138. /package/app/dist/assets/{ayu-dark-BTeHke7b.js → ayu-dark-bqYKoqpM.js} +0 -0
  139. /package/app/dist/assets/{ayu-light-CoZXvb4i.js → ayu-light-C45jTIzZ.js} +0 -0
  140. /package/app/dist/assets/{ayu-mirage-DlGy8b5I.js → ayu-mirage-BV_FCTQi.js} +0 -0
  141. /package/app/dist/assets/{ballerina-eIQtFtZN.js → ballerina-D2nw_w8Q.js} +0 -0
  142. /package/app/dist/assets/{bat-DVPhDFws.js → bat-ByUBN5gS.js} +0 -0
  143. /package/app/dist/assets/{beancount-DRh4LoEp.js → beancount-BTb2W6Mp.js} +0 -0
  144. /package/app/dist/assets/{berry-BJPWN0aG.js → berry-5SO2uITG.js} +0 -0
  145. /package/app/dist/assets/{bibtex-BXZl-zGT.js → bibtex-CDBTNfUI.js} +0 -0
  146. /package/app/dist/assets/{bicep-DUhze7H3.js → bicep-fgxG_4rP.js} +0 -0
  147. /package/app/dist/assets/{bird2-D_94N4Us.js → bird2-BCwzDhwX.js} +0 -0
  148. /package/app/dist/assets/{c3-CUFd2ak_.js → c3-Dlaci63_.js} +0 -0
  149. /package/app/dist/assets/{cadence-zuA3Lqsu.js → cadence-DHbRuEmm.js} +0 -0
  150. /package/app/dist/assets/{catppuccin-frappe-C4xh_RpD.js → catppuccin-frappe-DrL1fUuH.js} +0 -0
  151. /package/app/dist/assets/{catppuccin-latte-ZIzlVBYe.js → catppuccin-latte-C0REgVjl.js} +0 -0
  152. /package/app/dist/assets/{catppuccin-macchiato-DOZXEuSH.js → catppuccin-macchiato-ChQpylWO.js} +0 -0
  153. /package/app/dist/assets/{catppuccin-mocha-rnm_6i_u.js → catppuccin-mocha-Dd0JU1T0.js} +0 -0
  154. /package/app/dist/assets/{clarity-Dp-fzxYs.js → clarity-DMoTOm4G.js} +0 -0
  155. /package/app/dist/assets/{clojure-85kagXuc.js → clojure-DBhE3PpS.js} +0 -0
  156. /package/app/dist/assets/{cmake-5KZO_J3V.js → cmake-DwMc40Or.js} +0 -0
  157. /package/app/dist/assets/{codeowners-CwITHnrC.js → codeowners-1lVr8wqV.js} +0 -0
  158. /package/app/dist/assets/{codeql-DsuZZPKs.js → codeql-DWflolvo.js} +0 -0
  159. /package/app/dist/assets/{common-lisp-DQj0fa1s.js → common-lisp-CrVQ5xT-.js} +0 -0
  160. /package/app/dist/assets/{coq-BGPtnnb4.js → coq-CjfoyYSh.js} +0 -0
  161. /package/app/dist/assets/{csharp-Bz4y1fn8.js → csharp-C7bIWP5y.js} +0 -0
  162. /package/app/dist/assets/{csv-92JdhrVb.js → csv-DsAkDVtA.js} +0 -0
  163. /package/app/dist/assets/{cue-DO5iBckt.js → cue-BWmQgbOB.js} +0 -0
  164. /package/app/dist/assets/{cypher-Dt0SBufN.js → cypher-D-jVC50Q.js} +0 -0
  165. /package/app/dist/assets/{d-POAmrdpL.js → d-CaviyOrm.js} +0 -0
  166. /package/app/dist/assets/{dark-plus-Ci223Kw7.js → dark-plus-DIrnwZt9.js} +0 -0
  167. /package/app/dist/assets/{dart-Cv4z4sEx.js → dart-CZEi7JgC.js} +0 -0
  168. /package/app/dist/assets/{dax-Cw_LNvcO.js → dax-BK-8zffy.js} +0 -0
  169. /package/app/dist/assets/{desktop-B_uWbpWi.js → desktop-D3cjbL4D.js} +0 -0
  170. /package/app/dist/assets/{diff-pSjjL-ZH.js → diff-sHAzLvlp.js} +0 -0
  171. /package/app/dist/assets/{docker-r0L9bSzI.js → docker--xs2Ng3w.js} +0 -0
  172. /package/app/dist/assets/{dotenv-DU-Uz6AA.js → dotenv-Cm4nwcJ7.js} +0 -0
  173. /package/app/dist/assets/{dracula-C5lq8I7X.js → dracula-CAUSusef.js} +0 -0
  174. /package/app/dist/assets/{dracula-soft-QH3ntlSU.js → dracula-soft-cjNkMFza.js} +0 -0
  175. /package/app/dist/assets/{dream-maker-DE3sVgWW.js → dream-maker-fjmWTFCO.js} +0 -0
  176. /package/app/dist/assets/{emacs-lisp-aMjKKeFP.js → emacs-lisp-CJzqStIa.js} +0 -0
  177. /package/app/dist/assets/{everforest-dark-KTiMpaXm.js → everforest-dark-DBpaSMx1.js} +0 -0
  178. /package/app/dist/assets/{everforest-light-yJZ9a76P.js → everforest-light-CiGrXwia.js} +0 -0
  179. /package/app/dist/assets/{fennel-Bruivvq3.js → fennel-DRaXF7k8.js} +0 -0
  180. /package/app/dist/assets/{fish-CaGhpV7s.js → fish-Bn-Yh3Jj.js} +0 -0
  181. /package/app/dist/assets/{fluent-BsmQk-nO.js → fluent-DF5F8Ks_.js} +0 -0
  182. /package/app/dist/assets/{fortran-free-form-B9mY58s0.js → fortran-free-form-hCQHRqew.js} +0 -0
  183. /package/app/dist/assets/{gdscript-B_WUGHIs.js → gdscript-_C9_Hi_w.js} +0 -0
  184. /package/app/dist/assets/{gdshader-BR6nyn6z.js → gdshader-BW7b1X1Y.js} +0 -0
  185. /package/app/dist/assets/{genie-CW-a1unw.js → genie-Ch_6TCHd.js} +0 -0
  186. /package/app/dist/assets/{gherkin-D8z0Dn14.js → gherkin-CaNUsmTq.js} +0 -0
  187. /package/app/dist/assets/{github-dark-C2YvJIRl.js → github-dark-B9ygjgg6.js} +0 -0
  188. /package/app/dist/assets/{github-dark-default-DPZ1YWUU.js → github-dark-default-Br2bgYSx.js} +0 -0
  189. /package/app/dist/assets/{github-dark-dimmed-BlMwpJVf.js → github-dark-dimmed-CmtqpPJ-.js} +0 -0
  190. /package/app/dist/assets/{github-dark-high-contrast-KRBg57oP.js → github-dark-high-contrast-fSfmrZcC.js} +0 -0
  191. /package/app/dist/assets/{github-light-BLj5WXD_.js → github-light-BZjUqfZl.js} +0 -0
  192. /package/app/dist/assets/{github-light-default-BLgrdOV4.js → github-light-default-lIytXXhR.js} +0 -0
  193. /package/app/dist/assets/{github-light-high-contrast-Bmexxccr.js → github-light-high-contrast-BRrjFb7n.js} +0 -0
  194. /package/app/dist/assets/{gleam-BtOZgVle.js → gleam-DALMDpNs.js} +0 -0
  195. /package/app/dist/assets/{gn-JO9YMz2t.js → gn-DGjqrYN9.js} +0 -0
  196. /package/app/dist/assets/{gnuplot-DjZHg3_f.js → gnuplot-BYckvgQI.js} +0 -0
  197. /package/app/dist/assets/{go-D2GlBE5F.js → go-JycvP538.js} +0 -0
  198. /package/app/dist/assets/{groovy-1vEGAvvX.js → groovy-D5qMRONT.js} +0 -0
  199. /package/app/dist/assets/{gruvbox-dark-hard-pdBjrsK5.js → gruvbox-dark-hard-M1dj1e6V.js} +0 -0
  200. /package/app/dist/assets/{gruvbox-dark-medium-Csp4lPEF.js → gruvbox-dark-medium-cqq_ncQu.js} +0 -0
  201. /package/app/dist/assets/{gruvbox-dark-soft-BpNWvgik.js → gruvbox-dark-soft-B4QwL2a9.js} +0 -0
  202. /package/app/dist/assets/{gruvbox-light-hard-CC8CVJp5.js → gruvbox-light-hard-DLayMKOQ.js} +0 -0
  203. /package/app/dist/assets/{gruvbox-light-medium-D2yGUmJd.js → gruvbox-light-medium-D52XgPKf.js} +0 -0
  204. /package/app/dist/assets/{gruvbox-light-soft-C_9RTTTT.js → gruvbox-light-soft-Dola3KdD.js} +0 -0
  205. /package/app/dist/assets/{haskell-BFZjB68l.js → haskell-ys7wPPEd.js} +0 -0
  206. /package/app/dist/assets/{haxe-DDQKctJt.js → haxe-94kiChn7.js} +0 -0
  207. /package/app/dist/assets/{hcl-DUAADz_v.js → hcl-DmHt_-wq.js} +0 -0
  208. /package/app/dist/assets/{hjson-DyGphq4K.js → hjson-xMmoJ0Gx.js} +0 -0
  209. /package/app/dist/assets/{hlsl-BVEJlW36.js → hlsl-b-Pskdze.js} +0 -0
  210. /package/app/dist/assets/{horizon-BZmYXqIF.js → horizon-BKMqttiR.js} +0 -0
  211. /package/app/dist/assets/{horizon-bright-D0uooZm5.js → horizon-bright-HNkBlnm5.js} +0 -0
  212. /package/app/dist/assets/{houston-BUtcOxf9.js → houston-BkBSBSOQ.js} +0 -0
  213. /package/app/dist/assets/{hy-oWi_RwAK.js → hy-DKl1XhBq.js} +0 -0
  214. /package/app/dist/assets/{imba-iwzgkuTD.js → imba-DPxkOTAg.js} +0 -0
  215. /package/app/dist/assets/{ini-BNaakZQr.js → ini-lkLGq_1x.js} +0 -0
  216. /package/app/dist/assets/{json5-Y2CuQCK-.js → json5-Cy6ypJuJ.js} +0 -0
  217. /package/app/dist/assets/{jsonc-B30nqSUF.js → jsonc-Cw2ugYAK.js} +0 -0
  218. /package/app/dist/assets/{jsonl-B7UEa0TN.js → jsonl-Dp5_qBVH.js} +0 -0
  219. /package/app/dist/assets/{jsonnet-ZiCJB3SD.js → jsonnet-BTbmg_-u.js} +0 -0
  220. /package/app/dist/assets/{jssm-BOfC2rh1.js → jssm-CnT7nPea.js} +0 -0
  221. /package/app/dist/assets/{kanagawa-dragon-BVoApXR6.js → kanagawa-dragon-CxsBnuhV.js} +0 -0
  222. /package/app/dist/assets/{kanagawa-lotus-C-uV5im6.js → kanagawa-lotus-vHdxDDOS.js} +0 -0
  223. /package/app/dist/assets/{kanagawa-wave-BizPisns.js → kanagawa-wave-CIkfTKWk.js} +0 -0
  224. /package/app/dist/assets/{kdl-Bg7xxjIF.js → kdl-BwK60g80.js} +0 -0
  225. /package/app/dist/assets/{kotlin-CNprttl8.js → kotlin-Dbd9Vi-v.js} +0 -0
  226. /package/app/dist/assets/{kusto-D3uRUZFA.js → kusto-BuTk9usc.js} +0 -0
  227. /package/app/dist/assets/{laserwave-BypMvj8s.js → laserwave-C0wf_d3o.js} +0 -0
  228. /package/app/dist/assets/{lean-BbKKg8_U.js → lean-CYAW8bRN.js} +0 -0
  229. /package/app/dist/assets/{less-6BW8xQaX.js → less-D4uen21c.js} +0 -0
  230. /package/app/dist/assets/{light-plus-zSYF2DYe.js → light-plus-oqYyWKEE.js} +0 -0
  231. /package/app/dist/assets/{llvm-OMExIg60.js → llvm-Z1xJzteV.js} +0 -0
  232. /package/app/dist/assets/{log-BBfW4u9k.js → log-BGUxlsk3.js} +0 -0
  233. /package/app/dist/assets/{logo-D8GGcRiY.js → logo-wVUhvQ1b.js} +0 -0
  234. /package/app/dist/assets/{luau-CZIl0XK4.js → luau-rPFZzCmq.js} +0 -0
  235. /package/app/dist/assets/{make-mlZyflos.js → make-BmPf6m0P.js} +0 -0
  236. /package/app/dist/assets/{markdown-CppElJDR.js → markdown-AseU6zcW.js} +0 -0
  237. /package/app/dist/assets/{material-theme-OBz0sIMu.js → material-theme-6_W6rQhR.js} +0 -0
  238. /package/app/dist/assets/{material-theme-darker-BNfFk916.js → material-theme-darker-VPEo3Sem.js} +0 -0
  239. /package/app/dist/assets/{material-theme-lighter-D0OJsx_T.js → material-theme-lighter-CUhzCcZ9.js} +0 -0
  240. /package/app/dist/assets/{material-theme-ocean-CKWC7YJB.js → material-theme-ocean-B2JdsaGb.js} +0 -0
  241. /package/app/dist/assets/{material-theme-palenight-DOTFIR3W.js → material-theme-palenight-DhY-sklA.js} +0 -0
  242. /package/app/dist/assets/{matlab-CwLrY_Ss.js → matlab-BOj_BDQv.js} +0 -0
  243. /package/app/dist/assets/{mdx-OZt5aooY.js → mdx-Cm6cDkDI.js} +0 -0
  244. /package/app/dist/assets/{mermaid-mzvznqsh.js → mermaid-DLO-R4hv.js} +0 -0
  245. /package/app/dist/assets/{min-dark-BAbZNtjj.js → min-dark-D34a_pX7.js} +0 -0
  246. /package/app/dist/assets/{min-light-BzEisXBR.js → min-light-Cdd4KORE.js} +0 -0
  247. /package/app/dist/assets/{mipsasm-DONjtc4L.js → mipsasm-DYpHF-GA.js} +0 -0
  248. /package/app/dist/assets/{mojo-CHKQ5hW9.js → mojo-DqYVFv_G.js} +0 -0
  249. /package/app/dist/assets/{monokai-B8rLeJY_.js → monokai-CDR4sQ2n.js} +0 -0
  250. /package/app/dist/assets/{moonbit-CWIHpJf0.js → moonbit-DRKee9wk.js} +0 -0
  251. /package/app/dist/assets/{move-Dy7CmIgW.js → move-DbRk6Vn9.js} +0 -0
  252. /package/app/dist/assets/{narrat-NioX5-_j.js → narrat-IOfmaXfb.js} +0 -0
  253. /package/app/dist/assets/{nextflow-groovy-jKlTICX_.js → nextflow-groovy-EYl0c2BQ.js} +0 -0
  254. /package/app/dist/assets/{night-owl-light-C_DkqGGe.js → night-owl-light-Bedht9b4.js} +0 -0
  255. /package/app/dist/assets/{night-owl-C_xVeV9U.js → night-owl-yQJ3-I0I.js} +0 -0
  256. /package/app/dist/assets/{nix-BZVKmCQS.js → nix-C2IovEl2.js} +0 -0
  257. /package/app/dist/assets/{nord-CrTSutxR.js → nord-BjZ63GNL.js} +0 -0
  258. /package/app/dist/assets/{nushell-C8hgS98n.js → nushell-BflTrRB5.js} +0 -0
  259. /package/app/dist/assets/{objective-c-BUiYTSad.js → objective-c-GRClK1S7.js} +0 -0
  260. /package/app/dist/assets/{objective-cpp-BwY1U2XT.js → objective-cpp-l3qYw-v5.js} +0 -0
  261. /package/app/dist/assets/{ocaml-D51PiCY5.js → ocaml-BBDyhyMH.js} +0 -0
  262. /package/app/dist/assets/{odin-CoC4d8pi.js → odin-jCJ7Js99.js} +0 -0
  263. /package/app/dist/assets/{one-dark-pro-C9bEA2Dz.js → one-dark-pro-PIx2Diul.js} +0 -0
  264. /package/app/dist/assets/{one-light-DZ_5GYrV.js → one-light-BFMEz49S.js} +0 -0
  265. /package/app/dist/assets/{openscad-DCmPLSXt.js → openscad-Drf0LgCX.js} +0 -0
  266. /package/app/dist/assets/{pascal-BMY45JJO.js → pascal-BT2XAUTl.js} +0 -0
  267. /package/app/dist/assets/{pierre-dark-CMWr1OVv.js → pierre-dark-BMm5HxPQ.js} +0 -0
  268. /package/app/dist/assets/{pierre-light-DhtJ5n85.js → pierre-light-DyzEot4Q.js} +0 -0
  269. /package/app/dist/assets/{pkl-BlBky-cR.js → pkl-ML-dWShO.js} +0 -0
  270. /package/app/dist/assets/{plastic-C50vuo0c.js → plastic-BFI-Z5Z2.js} +0 -0
  271. /package/app/dist/assets/{plsql-B6Eq-lAd.js → plsql-0vd5cLro.js} +0 -0
  272. /package/app/dist/assets/{po-ByS5p8Sz.js → po-CbZ_uqQA.js} +0 -0
  273. /package/app/dist/assets/{poimandres-Cs9j_baE.js → poimandres-Cayhd01L.js} +0 -0
  274. /package/app/dist/assets/{polar-COmSbiHW.js → polar-C4hfV8Nc.js} +0 -0
  275. /package/app/dist/assets/{postcss-D_ArMqNC.js → postcss-osFUbTLw.js} +0 -0
  276. /package/app/dist/assets/{powerquery-BzHwsYRb.js → powerquery-CTlGUQPj.js} +0 -0
  277. /package/app/dist/assets/{powershell-C6bIwB0M.js → powershell-DyZsOmuq.js} +0 -0
  278. /package/app/dist/assets/{prisma-D5S9vj6g.js → prisma-SS92PO_I.js} +0 -0
  279. /package/app/dist/assets/{prolog-CHVuxG8M.js → prolog-B1O1NNVC.js} +0 -0
  280. /package/app/dist/assets/{proto-BhkmoXVj.js → proto-BWu3eZTs.js} +0 -0
  281. /package/app/dist/assets/{puppet-Brdz8eoo.js → puppet-tvtRVdr6.js} +0 -0
  282. /package/app/dist/assets/{purescript-DX3wKXeK.js → purescript-Dtbpb7D-.js} +0 -0
  283. /package/app/dist/assets/{python-CUtprRpG.js → python-Dlk0Acio.js} +0 -0
  284. /package/app/dist/assets/{qmldir-ftS4SxdQ.js → qmldir-B-iEOngH.js} +0 -0
  285. /package/app/dist/assets/{qss-Mo-j41VR.js → qss-Ba0p-aHw.js} +0 -0
  286. /package/app/dist/assets/{racket-CrTD1_3_.js → racket-BXDsxf2U.js} +0 -0
  287. /package/app/dist/assets/{raku-Bhig3MAC.js → raku-Dw1WWFXK.js} +0 -0
  288. /package/app/dist/assets/{red-CWX-2pbk.js → red-BC3Ds49b.js} +0 -0
  289. /package/app/dist/assets/{reg-C0s7-4s0.js → reg-DXFHGaM4.js} +0 -0
  290. /package/app/dist/assets/{rel-D1_XRRAX.js → rel-Dc5_Ytx2.js} +0 -0
  291. /package/app/dist/assets/{riscv-QV-e36TY.js → riscv-ZgswiWij.js} +0 -0
  292. /package/app/dist/assets/{ron-B-EB7ZBI.js → ron-YghabWAH.js} +0 -0
  293. /package/app/dist/assets/{rose-pine-Dxqc8n_1.js → rose-pine-ByWLnVr3.js} +0 -0
  294. /package/app/dist/assets/{rose-pine-dawn-pz_3O4ep.js → rose-pine-dawn-DBmeySrz.js} +0 -0
  295. /package/app/dist/assets/{rose-pine-moon-B27idgkd.js → rose-pine-moon-B9J-N3nK.js} +0 -0
  296. /package/app/dist/assets/{rosmsg-CcBwQf5j.js → rosmsg-DTKmAsVH.js} +0 -0
  297. /package/app/dist/assets/{rust-ppknoGus.js → rust-nfXwuE6F.js} +0 -0
  298. /package/app/dist/assets/{sass-Baw41att.js → sass-CbRjkld3.js} +0 -0
  299. /package/app/dist/assets/{scala-DtlnBhKt.js → scala-BzD3eypx.js} +0 -0
  300. /package/app/dist/assets/{scheme-DYQMayIi.js → scheme-D4d1PV1y.js} +0 -0
  301. /package/app/dist/assets/{sdbl-D0gXyfL6.js → sdbl-Cf-Ydnvx.js} +0 -0
  302. /package/app/dist/assets/{slack-dark-D27cdsBY.js → slack-dark-MszIyPZ2.js} +0 -0
  303. /package/app/dist/assets/{slack-ochin-BaRZ7cFo.js → slack-ochin-tQ3Q0gE9.js} +0 -0
  304. /package/app/dist/assets/{smalltalk-DRM3jr39.js → smalltalk-_uWoArwn.js} +0 -0
  305. /package/app/dist/assets/{snazzy-light-BayTLer3.js → snazzy-light-9sniMEk5.js} +0 -0
  306. /package/app/dist/assets/{solarized-dark-Y31Htb59.js → solarized-dark-CdD0Hxzv.js} +0 -0
  307. /package/app/dist/assets/{solarized-light-B-u_T8hk.js → solarized-light-C-nsEdqF.js} +0 -0
  308. /package/app/dist/assets/{solidity-CYAp_sJG.js → solidity-D6uC-xwP.js} +0 -0
  309. /package/app/dist/assets/{splunk-LsCTpuOP.js → splunk-LQYHRu14.js} +0 -0
  310. /package/app/dist/assets/{ssh-config-QxQe7y21.js → ssh-config-B7BUl8Rd.js} +0 -0
  311. /package/app/dist/assets/{stylus-DZvi0832.js → stylus-Byjxdx_q.js} +0 -0
  312. /package/app/dist/assets/{swift-BBBWvOdl.js → swift-BexLlMrU.js} +0 -0
  313. /package/app/dist/assets/{synthwave-84-Dq9WAwjJ.js → synthwave-84-BxMBwQMS.js} +0 -0
  314. /package/app/dist/assets/{system-verilog-Ddagu-BW.js → system-verilog-DVGwm0mw.js} +0 -0
  315. /package/app/dist/assets/{systemd-BxlmhgV_.js → systemd-H2IT3-p5.js} +0 -0
  316. /package/app/dist/assets/{talonscript-p-GlmLEL.js → talonscript-mKZIGM8n.js} +0 -0
  317. /package/app/dist/assets/{tasl-BNm9EzXM.js → tasl-B7he_Ugr.js} +0 -0
  318. /package/app/dist/assets/{tcl-BQwTCs7_.js → tcl-5mT3RxHH.js} +0 -0
  319. /package/app/dist/assets/{terraform-DQhgYyF5.js → terraform-BZP0GLsT.js} +0 -0
  320. /package/app/dist/assets/{tokyo-night-DxL5lL62.js → tokyo-night-CTPVdZt9.js} +0 -0
  321. /package/app/dist/assets/{toml-BncMjmx0.js → toml-CTFA98he.js} +0 -0
  322. /package/app/dist/assets/{tsv--yOlbuAc.js → tsv-BayJtYdY.js} +0 -0
  323. /package/app/dist/assets/{turtle-ZCrKgE8E.js → turtle-TVCBh_kY.js} +0 -0
  324. /package/app/dist/assets/{typespec-9rD7KG94.js → typespec-BUvaJDLF.js} +0 -0
  325. /package/app/dist/assets/{typst-DJ10KoY6.js → typst-8NBaY7Ec.js} +0 -0
  326. /package/app/dist/assets/{v-CutuAYrg.js → v-VihyTigi.js} +0 -0
  327. /package/app/dist/assets/{vala-DJpFErrU.js → vala-DyFAPyX6.js} +0 -0
  328. /package/app/dist/assets/{vb-DQuyY02M.js → vb-Dg1Iqi4J.js} +0 -0
  329. /package/app/dist/assets/{verilog-BuvxZrtu.js → verilog-D2Xc-vhD.js} +0 -0
  330. /package/app/dist/assets/{vesper-bM1AKkiO.js → vesper-DJbtqYNr.js} +0 -0
  331. /package/app/dist/assets/{vhdl-pScFq2IF.js → vhdl-CU3BVeE7.js} +0 -0
  332. /package/app/dist/assets/{viml-LZIbwXqf.js → viml-hG2shuOW.js} +0 -0
  333. /package/app/dist/assets/{vitesse-black-BhKXUSxn.js → vitesse-black-DbG2gsc0.js} +0 -0
  334. /package/app/dist/assets/{vitesse-dark-BzqhRcAC.js → vitesse-dark-B6WV4xXH.js} +0 -0
  335. /package/app/dist/assets/{vitesse-light-C6rj90Ld.js → vitesse-light-DC1pdD02.js} +0 -0
  336. /package/app/dist/assets/{vyper-CAC2wkEx.js → vyper-C1wojIuk.js} +0 -0
  337. /package/app/dist/assets/{wasm-JuQDwMf4.js → wasm-C6Y0s02M.js} +0 -0
  338. /package/app/dist/assets/{wasm-C9fkFrNS.js → wasm-y20ImDym.js} +0 -0
  339. /package/app/dist/assets/{wenyan-BtC3dCkd.js → wenyan-BG5vPQF0.js} +0 -0
  340. /package/app/dist/assets/{wgsl-BfhDoYq0.js → wgsl-DrVb-Cub.js} +0 -0
  341. /package/app/dist/assets/{wikitext-BN0a9cMl.js → wikitext-PRC4s8sH.js} +0 -0
  342. /package/app/dist/assets/{wit-B5eB3VJ4.js → wit-ChW5qvg_.js} +0 -0
  343. /package/app/dist/assets/{wolfram-hGtNh8mf.js → wolfram-B8mKuZSQ.js} +0 -0
  344. /package/app/dist/assets/{xterm-CoRq-s8T.js → xterm-DGJHbKBQ.js} +0 -0
  345. /package/app/dist/assets/{zenscript-Dl5s7Kfy.js → zenscript-C-jEPC9j.js} +0 -0
  346. /package/app/dist/assets/{zig-Dashm4F0.js → zig-EbnRGjcz.js} +0 -0
@@ -1,45 +1,45 @@
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 nk=Object.create;var Su=Object.defineProperty;var rk=Object.getOwnPropertyDescriptor;var ok=Object.getOwnPropertyNames;var ik=Object.getPrototypeOf,ak=Object.prototype.hasOwnProperty;var De=(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 D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),st=(e,t)=>{for(var r in t)Su(e,r,{get:t[r],enumerable:!0})},sk=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ok(t))!ak.call(e,n)&&n!==r&&Su(e,n,{get:()=>t[n],enumerable:!(o=rk(t,n))||o.enumerable});return e};var Bo=(e,t,r)=>(r=e!=null?nk(ik(e)):{},sk(t||!e||!e.__esModule?Su(r,"default",{value:e,enumerable:!0}):r,e));var Er=D(Tu=>{var Lo=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}},bu=class extends Lo{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Tu.CommanderError=Lo;Tu.InvalidArgumentError=bu});var qo=D(Eu=>{var{InvalidArgumentError:uk}=Er(),xu=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 uk(`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 ck(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Eu.Argument=xu;Eu.humanReadableArgName=ck});var _u=D(Du=>{var{humanReadableArgName:lk}=qo(),Iu=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=>lk(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 c=r.visibleArguments(t).map(d=>i(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));c.length>0&&(s=s.concat([r.styleTitle("Arguments:"),...c,""]));let l=r.visibleOptions(t).map(d=>i(r.styleOptionTerm(r.optionTerm(d)),r.styleOptionDescription(r.optionDescription(d))));if(l.length>0&&(s=s.concat([r.styleTitle("Options:"),...l,""])),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 av(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)),c=2,p=(this.helpWidth??80)-r-c-2,d;return p<this.minWidthToWrap||n.preformatted(o)?d=o:d=n.boxWrap(o,p).replace(/\n/g,`
3
+ var dk=Object.create;var bu=Object.defineProperty;var pk=Object.getOwnPropertyDescriptor;var mk=Object.getOwnPropertyNames;var hk=Object.getPrototypeOf,fk=Object.prototype.hasOwnProperty;var De=(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 D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),st=(e,t)=>{for(var r in t)bu(e,r,{get:t[r],enumerable:!0})},gk=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mk(t))!fk.call(e,n)&&n!==r&&bu(e,n,{get:()=>t[n],enumerable:!(o=pk(t,n))||o.enumerable});return e};var Bo=(e,t,r)=>(r=e!=null?dk(hk(e)):{},gk(t||!e||!e.__esModule?bu(r,"default",{value:e,enumerable:!0}):r,e));var Er=D(xu=>{var qo=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}},Tu=class extends qo{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};xu.CommanderError=qo;xu.InvalidArgumentError=Tu});var No=D(Iu=>{var{InvalidArgumentError:vk}=Er(),Eu=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 vk(`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 yk(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Iu.Argument=Eu;Iu.humanReadableArgName=yk});var wu=D(_u=>{var{humanReadableArgName:Sk}=No(),Du=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=>Sk(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 c=r.visibleArguments(t).map(d=>i(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));c.length>0&&(s=s.concat([r.styleTitle("Arguments:"),...c,""]));let l=r.visibleOptions(t).map(d=>i(r.styleOptionTerm(r.optionTerm(d)),r.styleOptionDescription(r.optionDescription(d))));if(l.length>0&&(s=s.concat([r.styleTitle("Options:"),...l,""])),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 cv(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)),c=2,p=(this.helpWidth??80)-r-c-2,d;return p<this.minWidthToWrap||n.preformatted(o)?d=o:d=n.boxWrap(o,p).replace(/\n/g,`
5
5
  `+" ".repeat(r+c)),s+u+" ".repeat(c)+d.replace(/\n/g,`
6
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 c=[u.shift()],l=this.displayWidth(c[0]);u.forEach(p=>{let d=this.displayWidth(p);if(l+d<=r){c.push(p),l+=d;return}i.push(c.join(""));let m=p.trimStart();c=[m],l=this.displayWidth(m)}),i.push(c.join(""))}),i.join(`
7
- `)}};function av(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Du.Help=Iu;Du.stripColor=av});var Cu=D(ku=>{var{InvalidArgumentError:dk}=Er(),wu=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=pk(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 dk(`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?sv(this.name().replace(/^no-/,"")):sv(this.name())}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Pu=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 sv(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function pk(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}
7
+ `)}};function cv(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}_u.Help=Du;_u.stripColor=cv});var Au=D(Cu=>{var{InvalidArgumentError:bk}=Er(),Pu=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=Tk(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 bk(`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?lv(this.name().replace(/^no-/,"")):lv(this.name())}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ku=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 lv(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Tk(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}
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
10
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(s)?new Error(`${u}
11
11
  - too many short flags`):n.test(s)?new Error(`${u}
12
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}}ku.Option=wu;ku.DualOptions=Pu});var cv=D(uv=>{function mk(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 hk(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=mk(e,s),c=Math.max(e.length,s.length);(c-u)/c>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?`
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}}Cu.Option=Pu;Cu.DualOptions=ku});var pv=D(dv=>{function xk(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 Ek(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=xk(e,s),c=Math.max(e.length,s.length);(c-u)/c>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?`
14
14
  (Did you mean one of ${o.join(", ")}?)`:o.length===1?`
15
- (Did you mean ${o[0]}?)`:""}uv.suggestSimilar=hk});var mv=D(Ou=>{var fk=De("node:events").EventEmitter,Au=De("node:child_process"),ut=De("node:path"),No=De("node:fs"),N=De("node:process"),{Argument:gk,humanReadableArgName:vk}=qo(),{CommanderError:Ru}=Er(),{Help:yk,stripColor:Sk}=_u(),{Option:lv,DualOptions:bk}=Cu(),{suggestSimilar:dv}=cv(),$u=class e extends fk{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=>N.stdout.write(r),writeErr:r=>N.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>N.stdout.isTTY?N.stdout.columns:void 0,getErrHelpWidth:()=>N.stderr.isTTY?N.stderr.columns:void 0,getOutHasColors:()=>ju()??(N.stdout.isTTY&&N.stdout.hasColors?.()),getErrHasColors:()=>ju()??(N.stderr.isTTY&&N.stderr.hasColors?.()),stripColor:r=>Sk(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(/([^ ]+) *(.*)/),c=this.createCommand(s);return n&&(c.description(n),c._executableHandler=!0),i.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(i.noHelp||i.hidden),c._executableFile=i.executableFile||null,u&&c.arguments(u),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new yk,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 gk(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 Ru(t,r,o)),N.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 lv(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 c=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,c,s):i!==null&&t.variadic&&(i=t._concatValue(i,c)),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 lv)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=(c,l)=>{let p=u.exec(c);return p?p[0]:l},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){N.versions?.electron&&(r.from="electron");let n=N.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=N.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":N.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(No.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]}?)`:""}dv.suggestSimilar=Ek});var gv=D(Mu=>{var Ik=De("node:events").EventEmitter,Ru=De("node:child_process"),ut=De("node:path"),Uo=De("node:fs"),N=De("node:process"),{Argument:Dk,humanReadableArgName:_k}=No(),{CommanderError:$u}=Er(),{Help:wk,stripColor:Pk}=wu(),{Option:mv,DualOptions:kk}=Au(),{suggestSimilar:hv}=pv(),ju=class e extends Ik{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=>N.stdout.write(r),writeErr:r=>N.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>N.stdout.isTTY?N.stdout.columns:void 0,getErrHelpWidth:()=>N.stderr.isTTY?N.stderr.columns:void 0,getOutHasColors:()=>Ou()??(N.stdout.isTTY&&N.stdout.hasColors?.()),getErrHasColors:()=>Ou()??(N.stderr.isTTY&&N.stderr.hasColors?.()),stripColor:r=>Pk(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(/([^ ]+) *(.*)/),c=this.createCommand(s);return n&&(c.description(n),c._executableHandler=!0),i.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(i.noHelp||i.hidden),c._executableFile=i.executableFile||null,u&&c.arguments(u),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new wk,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 Dk(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 $u(t,r,o)),N.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 mv(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 c=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,c,s):i!==null&&t.variadic&&(i=t._concatValue(i,c)),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 mv)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=(c,l)=>{let p=u.exec(c);return p?p[0]:l},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){N.versions?.electron&&(r.from="electron");let n=N.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=N.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":N.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(Uo.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=ut.resolve(p,d);if(No.existsSync(m))return m;if(n.includes(ut.extname(d)))return;let h=n.find(g=>No.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=No.realpathSync(this._scriptPath)}catch{p=this._scriptPath}u=ut.resolve(ut.dirname(p),u)}if(u){let p=i(u,s);if(!p&&!t._executableFile&&this._scriptPath){let d=ut.basename(this._scriptPath,ut.extname(this._scriptPath));d!==this._name&&(p=i(u,`${d}-${t._name}`))}s=p||s}o=n.includes(ut.extname(s));let c;N.platform!=="win32"?o?(r.unshift(s),r=pv(N.execArgv).concat(r),c=Au.spawn(N.argv[0],r,{stdio:"inherit"})):c=Au.spawn(s,r,{stdio:"inherit"}):(this._checkForMissingExecutable(s,u,t._name),r.unshift(s),r=pv(N.execArgv).concat(r),c=Au.spawn(N.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{N.on(d,()=>{c.killed===!1&&c.exitCode===null&&c.kill(d)})});let l=this._exitCallback;c.on("close",p=>{p=p??1,l?l(new Ru(p,"commander.executeSubCommandAsync","(close)")):N.exit(p)}),c.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(!l)N.exit(1);else{let d=new Ru(1,"commander.executeSubCommandAsync","(error)");d.nestedError=p,l(d)}}),this.runningCommand=c}_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(c){return c.length>1&&c[0]==="-"}let u=null;for(;i.length;){let c=i.shift();if(c==="--"){n===o&&n.push(c),n.push(...i);break}if(u&&!s(c)){this.emit(`option:${u.name()}`,c);continue}if(u=null,s(c)){let l=this._findOption(c);if(l){if(l.required){let p=i.shift();p===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,p)}else if(l.optional){let p=null;i.length>0&&!s(i[0])&&(p=i.shift()),this.emit(`option:${l.name()}`,p)}else this.emit(`option:${l.name()}`);u=l.variadic?l:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let l=this._findOption(`-${c[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,c.slice(2)):(this.emit(`option:${l.name()}`),i.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let l=c.indexOf("="),p=this._findOption(c.slice(0,l));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,c.slice(l+1));continue}}if(s(c)&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(c)){r.push(c),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&c===this._getHelpCommand().name()){r.push(c),i.length>0&&r.push(...i);break}else if(this._defaultCommandName){o.push(c),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){n.push(c),i.length>0&&n.push(...i);break}n.push(c)}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(Uo.existsSync(m))return m;if(n.includes(ut.extname(d)))return;let h=n.find(g=>Uo.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=Uo.realpathSync(this._scriptPath)}catch{p=this._scriptPath}u=ut.resolve(ut.dirname(p),u)}if(u){let p=i(u,s);if(!p&&!t._executableFile&&this._scriptPath){let d=ut.basename(this._scriptPath,ut.extname(this._scriptPath));d!==this._name&&(p=i(u,`${d}-${t._name}`))}s=p||s}o=n.includes(ut.extname(s));let c;N.platform!=="win32"?o?(r.unshift(s),r=fv(N.execArgv).concat(r),c=Ru.spawn(N.argv[0],r,{stdio:"inherit"})):c=Ru.spawn(s,r,{stdio:"inherit"}):(this._checkForMissingExecutable(s,u,t._name),r.unshift(s),r=fv(N.execArgv).concat(r),c=Ru.spawn(N.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{N.on(d,()=>{c.killed===!1&&c.exitCode===null&&c.kill(d)})});let l=this._exitCallback;c.on("close",p=>{p=p??1,l?l(new $u(p,"commander.executeSubCommandAsync","(close)")):N.exit(p)}),c.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(!l)N.exit(1);else{let d=new $u(1,"commander.executeSubCommandAsync","(error)");d.nestedError=p,l(d)}}),this.runningCommand=c}_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(c){return c.length>1&&c[0]==="-"}let u=null;for(;i.length;){let c=i.shift();if(c==="--"){n===o&&n.push(c),n.push(...i);break}if(u&&!s(c)){this.emit(`option:${u.name()}`,c);continue}if(u=null,s(c)){let l=this._findOption(c);if(l){if(l.required){let p=i.shift();p===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,p)}else if(l.optional){let p=null;i.length>0&&!s(i[0])&&(p=i.shift()),this.emit(`option:${l.name()}`,p)}else this.emit(`option:${l.name()}`);u=l.variadic?l:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let l=this._findOption(`-${c[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,c.slice(2)):(this.emit(`option:${l.name()}`),i.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let l=c.indexOf("="),p=this._findOption(c.slice(0,l));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,c.slice(l+1));continue}}if(s(c)&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(c)){r.push(c),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&c===this._getHelpCommand().name()){r.push(c),i.length>0&&r.push(...i);break}else if(this._defaultCommandName){o.push(c),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){n.push(c),i.length>0&&n.push(...i);break}n.push(c)}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 N.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()}`,N.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new bk(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(),c=this.getOptionValue(u),l=this.options.find(d=>d.negate&&u===d.attributeName()),p=this.options.find(d=>!d.negate&&u===d.attributeName());return l&&(l.presetArg===void 0&&c===!1||l.presetArg!==void 0&&c===l.presetArg)?l:p||s},n=s=>{let u=o(s),c=u.attributeName();return this.getOptionValueSource(c)==="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=dv(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=dv(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=>vk(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=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(N.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 N.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()}`,N.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new kk(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(),c=this.getOptionValue(u),l=this.options.find(d=>d.negate&&u===d.attributeName()),p=this.options.find(d=>!d.negate&&u===d.attributeName());return l&&(l.presetArg===void 0&&c===!1||l.presetArg!==void 0&&c===l.presetArg)?l:p||s},n=s=>{let u=o(s),c=u.attributeName();return this.getOptionValueSource(c)==="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=hv(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=hv(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=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=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(N.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 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 ju(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0}Ou.Command=$u;Ou.useColor=ju});var vv=D(Re=>{var{Argument:hv}=qo(),{Command:Mu}=mv(),{CommanderError:Tk,InvalidArgumentError:fv}=Er(),{Help:xk}=_u(),{Option:gv}=Cu();Re.program=new Mu;Re.createCommand=e=>new Mu(e);Re.createOption=(e,t)=>new gv(e,t);Re.createArgument=(e,t)=>new hv(e,t);Re.Command=Mu;Re.Option=gv;Re.Argument=hv;Re.Help=xk;Re.CommanderError=Tk;Re.InvalidArgumentError=fv;Re.InvalidOptionArgumentError=fv});var ux=D(ne=>{"use strict";function nx(){return(nx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function rx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ox(e){return(ox=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Fh(e,t){return(Fh=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r})(e,t)}function b0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function ix(e,t,r){return(ix=b0()?Reflect.construct:function(o,n,i){var s=[null];s.push.apply(s,n);var u=new(Function.bind.apply(o,s));return i&&Fh(u,i.prototype),u}).apply(null,arguments)}function Bh(e){var t=typeof Map=="function"?new Map:void 0;return(Bh=function(r){if(r===null||Function.toString.call(r).indexOf("[native code]")===-1)return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ix(r,arguments,ox(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Fh(o,r)})(e)}function ax(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(ne,"__esModule",{value:!0});var Lh=(function(e){function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(ax(o),t.prototype),o}return rx(t,e),t})(Bh(TypeError)),Ot=function(e,t){return new Lh("Invalid "+e+' input: "'+t+'"')},qh=(function(e){function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(ax(o),t.prototype),o}return rx(t,e),t})(Bh(ReferenceError)),T0=["length","inspect","hasOwnProperty","toJSON","asymmetricMatch","nodeType","$$typeof","constructor","@@__IMMUTABLE_ITERABLE__@@","@@__IMMUTABLE_RECORD__@@","_isMockFunction","then","__esModule"];function ex(e,t){var r=Object.freeze?Object.freeze(e):e;return global.Proxy?new Proxy(r,{get:function(o,n){if(typeof n!="string"||T0.includes(n))return r[n];if(!r.hasOwnProperty(n))throw t.hasOwnProperty(n)?new ReferenceError("[envsafe] Env var "+String(n)+" was accessed but not validated. This var is set in the environment; please add an envsafe validator for it."):new ReferenceError('[envsafe] Env var "'+String(n)+'" not found');return r[n]}}):r}function sx(e){for(var t=e.errors,r=[],o=[],n=0,i=Object.keys(t);n<i.length;n++){var s=i[n],u=t[s];u instanceof qh?o.push(" "+s+": "+(u.message||"required")):r.push(" "+s+": "+(u.message||"invalid"))}return r.length&&r.unshift("\u274C Invalid environment variables:"),o.length&&o.unshift("\u{1F4A8} Missing environment variables:"),["========================================"].concat(r,o,["========================================"]).join(`
29
- `)}function tx(e){var t,r=sx(e);throw console.error(r),typeof window<"u"&&((t=window)!=null&&t.alert)&&window.alert(r),new TypeError(r)}function x0(e){var t=e.env,r=e.validator,o=e.key,n=t.NODE_ENV!=="production",i=r.allowEmpty,s=i!==void 0&&i;function u(d){return s?d!==void 0:d!==void 0&&d!==""}var c=u(r.input)?r.input:t[o];if(n&&!u(c)&&u(r.devDefault)&&(c=r.devDefault),!u(c)&&u(r.default)&&(c=r.default),!u(c)){var l="Missing value";throw r.allowEmpty||(l+=" or empty string"),new qh(l)}var p=r._parse(c);if(r.choices&&!r.choices.includes(p))throw new Lh('Value "'+p+'" not in choices ['+r.choices+"]");return p}var E0=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function Mt(e){return function(t){return t===void 0&&(t={}),nx({},t,{_parse:e})}}var I0=Mt((function(e){switch(e){case!0:case"true":case"t":case"1":return!0;case!1:case"false":case"f":case"0":return!1;default:throw Ot("str",e)}})),D0=Mt((function(e){if(typeof e!="string")throw Ot("str",e);return e})),_0=Mt((function(e){if(!E0.test(e))throw Ot("email",e);return e})),w0=Mt((function(e){var t=+e;if(Number.isNaN(t))throw Ot("num",e);return t})),P0=Mt((function(e){var t=+e;if(Number.isNaN(t)||""+t!=""+e||t%1!=0||t<1||t>65535)throw Ot("port",e);return t})),k0=Mt((function(e){try{return new URL(e),e}catch{throw Ot("url",e)}})),C0=Mt((function(e){try{return typeof e!="string"?e:JSON.parse(e)}catch{throw Ot("json",e)}}));ne.InvalidEnvError=Lh,ne.MissingEnvError=qh,ne.bool=I0,ne.defaultReporter=tx,ne.defaultReporterText=sx,ne.email=_0,ne.envsafe=function(e,t){var r=t===void 0?{}:t,o=r.reporter,n=o===void 0?tx:o,i=r.env,s=i===void 0?process.env:i,u=r.strict,c=u!==void 0&&u,l={},p={};for(var d in e){var m=e[d];try{var h=x0({env:s,validator:m,key:d});p[d]=h}catch(g){l[d]=g}}return Object.keys(l).length&&n({errors:l,output:p,env:s}),c?ex(p,s):p},ne.freezeObject=ex,ne.invalidEnvError=Ot,ne.json=C0,ne.makeValidator=Mt,ne.num=w0,ne.port=P0,ne.str=D0,ne.url=k0});var hx=D(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});function Nh(){return Nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Nh.apply(this,arguments)}function cx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Uh(e)}function ns(e,t){return ns=Object.setPrototypeOf||function(o,n){return o.__proto__=n,o},ns(e,t)}function A0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ts(e,t,r){return A0()?ts=Reflect.construct:ts=function(n,i,s){var u=[null];u.push.apply(u,i);var c=Function.bind.apply(n,u),l=new c;return s&&ns(l,s.prototype),l},ts.apply(null,arguments)}function R0(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rs(e){var t=typeof Map=="function"?new Map:void 0;return rs=function(o){if(o===null||!R0(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return ts(o,arguments,Uh(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ns(n,o)},rs(e)}function lx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wh=(function(e){cx(t,e);function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(lx(o),t.prototype),o}return t})(rs(TypeError)),zt=function(t,r){return new Wh("Invalid "+t+' input: "'+r+'"')},Hh=(function(e){cx(t,e);function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(lx(o),t.prototype),o}return t})(rs(ReferenceError)),$0=["length","inspect","hasOwnProperty","toJSON","asymmetricMatch","nodeType","$$typeof","constructor","@@__IMMUTABLE_ITERABLE__@@","@@__IMMUTABLE_RECORD__@@","_isMockFunction","then","__esModule"];function dx(e,t){var r=Object.freeze?Object.freeze(e):e;return global.Proxy?new Proxy(r,{get:function(n,i){if(typeof i!="string"||$0.includes(i))return r[i];var s=r.hasOwnProperty(i);if(!s)throw t.hasOwnProperty(i)?new ReferenceError("[envsafe] Env var "+String(i)+" was accessed but not validated. This var is set in the environment; please add an envsafe validator for it."):new ReferenceError('[envsafe] Env var "'+String(i)+'" not found');return r[i]}}):r}function px(e){for(var t=e.errors,r=Object.keys(t),o=[],n=[],i=0,s=r;i<s.length;i++){var u=s[i],c=t[u];c instanceof Hh?n.push(" "+u+": "+(c.message||"required")):o.push(" "+u+": "+(c.message||"invalid"))}o.length&&o.unshift("\u274C Invalid environment variables:"),n.length&&n.unshift("\u{1F4A8} Missing environment variables:");var l=["========================================"].concat(o,n,["========================================"]);return l.join(`
30
- `)}function mx(e){var t,r=px(e);throw console.error(r),typeof window<"u"&&((t=window)!=null&&t.alert)&&window.alert(r),new TypeError(r)}function j0(e){var t=e.env,r=e.validator,o=e.key,n=t.NODE_ENV!=="production",i=r.allowEmpty,s=i===void 0?!1:i;function u(d){return s?d!==void 0:d!==void 0&&d!==""}var c=u(r.input)?r.input:t[o];if(n&&!u(c)&&u(r.devDefault)&&(c=r.devDefault),!u(c)&&u(r.default)&&(c=r.default),!u(c)){var l="Missing value";throw r.allowEmpty||(l+=" or empty string"),new Hh(l)}var p=r._parse(c);if(r.choices&&!r.choices.includes(p))throw new Wh('Value "'+p+'" not in choices ['+r.choices+"]");return p}function O0(e,t){var r=t===void 0?{}:t,o=r.reporter,n=o===void 0?mx:o,i=r.env,s=i===void 0?process.env:i,u=r.strict,c=u===void 0?!1:u,l={},p={};for(var d in e){var m=e[d];try{var h=j0({env:s,validator:m,key:d});p[d]=h}catch(g){l[d]=g}}return Object.keys(l).length&&n({errors:l,output:p,env:s}),c?dx(p,s):p}var M0=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function Ft(e){return function(t){return t===void 0&&(t={}),Nh({},t,{_parse:e})}}var z0=Ft(function(e){switch(e){case!0:case"true":case"t":case"1":return!0;case!1:case"false":case"f":case"0":return!1;default:throw zt("str",e)}}),F0=Ft(function(e){if(typeof e!="string")throw zt("str",e);return e}),B0=Ft(function(e){if(!M0.test(e))throw zt("email",e);return e}),L0=Ft(function(e){var t=+e;if(Number.isNaN(t))throw zt("num",e);return t}),q0=Ft(function(e){var t=+e;if(Number.isNaN(t)||""+t!=""+e||t%1!==0||t<1||t>65535)throw zt("port",e);return t}),N0=Ft(function(e){try{return new URL(e),e}catch{throw zt("url",e)}}),U0=Ft(function(e){try{return typeof e!="string"?e:JSON.parse(e)}catch{throw zt("json",e)}});re.InvalidEnvError=Wh;re.MissingEnvError=Hh;re.bool=z0;re.defaultReporter=mx;re.defaultReporterText=px;re.email=B0;re.envsafe=O0;re.freezeObject=dx;re.invalidEnvError=zt;re.json=U0;re.makeValidator=Ft;re.num=L0;re.port=q0;re.str=F0;re.url=N0});var fx=D((JN,Vh)=>{"use strict";process.env.NODE_ENV==="production"?Vh.exports=ux():Vh.exports=hx()});var ve=D(Pe=>{"use strict";Pe.__esModule=!0;Pe.extend=ZI;Pe.indexOf=v2;Pe.escapeExpression=y2;Pe.isEmpty=S2;Pe.createFrame=b2;Pe.blockParams=T2;Pe.appendContextPath=x2;var m2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},h2=/[&<>"'`=]/g,f2=/[&<>"'`=]/;function g2(e){return m2[e]}function ZI(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 kf=Object.prototype.toString;Pe.toString=kf;var Pf=function(t){return typeof t=="function"};Pf(/x/)&&(Pe.isFunction=Pf=function(e){return typeof e=="function"&&kf.call(e)==="[object Function]"});Pe.isFunction=Pf;var KI=Array.isArray||function(e){return e&&typeof e=="object"?kf.call(e)==="[object Array]":!1};Pe.isArray=KI;function v2(e,t){for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function y2(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return f2.test(e)?e.replace(h2,g2):e}function S2(e){return!e&&e!==0?!0:!!(KI(e)&&e.length===0)}function b2(e){var t=ZI({},e);return t._parent=e,t}function T2(e,t){return e.path=t,e}function x2(e,t){return(e?e+".":"")+t}});var ze=D((ys,GI)=>{"use strict";ys.__esModule=!0;var Cf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Af(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),c=0;c<Cf.length;c++)this[Cf[c]]=u[Cf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Af);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{}}Af.prototype=new Error;ys.default=Af;GI.exports=ys.default});var JI=D((Ss,QI)=>{"use strict";Ss.__esModule=!0;var Rf=ve();Ss.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(Rf.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=Rf.createFrame(r.data);i.contextPath=Rf.appendContextPath(r.data.contextPath,r.name),r={data:i}}return n(t,r)})};QI.exports=Ss.default});var YI=D((bs,XI)=>{"use strict";bs.__esModule=!0;function E2(e){return e&&e.__esModule?e:{default:e}}var go=ve(),I2=ze(),D2=E2(I2);bs.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new D2.default("Must pass iterator to #each");var o=r.fn,n=r.inverse,i=0,s="",u=void 0,c=void 0;r.data&&r.ids&&(c=go.appendContextPath(r.data.contextPath,r.ids[0])+"."),go.isFunction(t)&&(t=t.call(this)),r.data&&(u=go.createFrame(r.data));function l(g,y,P){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!P,c&&(u.contextPath=c+g)),s=s+o(t[g],{data:u,blockParams:go.blockParams([t[g],g],[c+g,null])})}if(t&&typeof t=="object")if(go.isArray(t))for(var p=t.length;i<p;i++)i in t&&l(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++)l(i,i,i===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,i-1),g=y,i++}),g!==void 0&&l(g,i-1,!0)})();return i===0&&(s=n(this)),s})};XI.exports=bs.default});var tD=D((Ts,eD)=>{"use strict";Ts.__esModule=!0;function _2(e){return e&&e.__esModule?e:{default:e}}var w2=ze(),P2=_2(w2);Ts.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new P2.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};eD.exports=Ts.default});var iD=D((xs,oD)=>{"use strict";xs.__esModule=!0;function k2(e){return e&&e.__esModule?e:{default:e}}var nD=ve(),C2=ze(),rD=k2(C2);xs.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new rD.default("#if requires exactly one argument");return nD.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||nD.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new rD.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};oD.exports=xs.default});var sD=D((Es,aD)=>{"use strict";Es.__esModule=!0;Es.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)})};aD.exports=Es.default});var cD=D((Is,uD)=>{"use strict";Is.__esModule=!0;Is.default=function(e){e.registerHelper("lookup",function(t,r,o){return t&&o.lookupProperty(t,r)})};uD.exports=Is.default});var dD=D((Ds,lD)=>{"use strict";Ds.__esModule=!0;function A2(e){return e&&e.__esModule?e:{default:e}}var vo=ve(),R2=ze(),$2=A2(R2);Ds.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new $2.default("#with requires exactly one argument");vo.isFunction(t)&&(t=t.call(this));var o=r.fn;if(vo.isEmpty(t))return r.inverse(this);var n=r.data;return r.data&&r.ids&&(n=vo.createFrame(r.data),n.contextPath=vo.appendContextPath(r.data.contextPath,r.ids[0])),o(t,{data:n,blockParams:vo.blockParams([t],[n&&n.contextPath])})})};lD.exports=Ds.default});var $f=D(_s=>{"use strict";_s.__esModule=!0;_s.registerDefaultHelpers=K2;_s.moveHelperToHooks=G2;function dn(e){return e&&e.__esModule?e:{default:e}}var j2=JI(),O2=dn(j2),M2=YI(),z2=dn(M2),F2=tD(),B2=dn(F2),L2=iD(),q2=dn(L2),N2=sD(),U2=dn(N2),W2=cD(),H2=dn(W2),V2=dD(),Z2=dn(V2);function K2(e){O2.default(e),z2.default(e),B2.default(e),q2.default(e),U2.default(e),H2.default(e),Z2.default(e)}function G2(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var mD=D((ws,pD)=>{"use strict";ws.__esModule=!0;var Q2=ve();ws.default=function(e){e.registerDecorator("inline",function(t,r,o,n){var i=t;return r.partials||(r.partials={},i=function(s,u){var c=o.partials;o.partials=Q2.extend({},c,r.partials);var l=t(s,u);return o.partials=c,l}),r.partials[n.args[0]]=n.fn,i})};pD.exports=ws.default});var hD=D(jf=>{"use strict";jf.__esModule=!0;jf.registerDefaultDecorators=eO;function J2(e){return e&&e.__esModule?e:{default:e}}var X2=mD(),Y2=J2(X2);function eO(e){Y2.default(e)}});var Of=D((Ps,fD)=>{"use strict";Ps.__esModule=!0;var tO=ve(),sr={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=tO.indexOf(sr.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=sr.lookupLevel(t),typeof console<"u"&&sr.lookupLevel(sr.level)<=t){var r=sr.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)}}};Ps.default=sr;fD.exports=Ps.default});var gD=D(Mf=>{"use strict";Mf.__esModule=!0;Mf.createNewLookupObject=rO;var nO=ve();function rO(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return nO.extend.apply(void 0,[Object.create(null)].concat(t))}});var zf=D(yo=>{"use strict";yo.__esModule=!0;yo.createProtoAccessControl=sO;yo.resultIsAllowed=uO;yo.resetLoggedProperties=lO;function oO(e){return e&&e.__esModule?e:{default:e}}var vD=gD(),iO=Of(),aO=oO(iO),ks=Object.create(null);function sO(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:vD.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:vD.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function uO(e,t,r){return yD(typeof e=="function"?t.methods:t.properties,r)}function yD(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(cO(t),!1)}function cO(e){ks[e]!==!0&&(ks[e]=!0,aO.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 fv(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 Ou(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0}Mu.Command=ju;Mu.useColor=Ou});var bv=D(Re=>{var{Argument:vv}=No(),{Command:zu}=gv(),{CommanderError:Ck,InvalidArgumentError:yv}=Er(),{Help:Ak}=wu(),{Option:Sv}=Au();Re.program=new zu;Re.createCommand=e=>new zu(e);Re.createOption=(e,t)=>new Sv(e,t);Re.createArgument=(e,t)=>new vv(e,t);Re.Command=zu;Re.Option=Sv;Re.Argument=vv;Re.Help=Ak;Re.CommanderError=Ck;Re.InvalidArgumentError=yv;Re.InvalidOptionArgumentError=yv});var dx=D(ne=>{"use strict";function ix(){return(ix=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function ax(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sx(e){return(sx=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Lh(e,t){return(Lh=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r})(e,t)}function k0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function ux(e,t,r){return(ux=k0()?Reflect.construct:function(o,n,i){var s=[null];s.push.apply(s,n);var u=new(Function.bind.apply(o,s));return i&&Lh(u,i.prototype),u}).apply(null,arguments)}function Bh(e){var t=typeof Map=="function"?new Map:void 0;return(Bh=function(r){if(r===null||Function.toString.call(r).indexOf("[native code]")===-1)return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ux(r,arguments,sx(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Lh(o,r)})(e)}function cx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(ne,"__esModule",{value:!0});var qh=(function(e){function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(cx(o),t.prototype),o}return ax(t,e),t})(Bh(TypeError)),Ot=function(e,t){return new qh("Invalid "+e+' input: "'+t+'"')},Nh=(function(e){function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(cx(o),t.prototype),o}return ax(t,e),t})(Bh(ReferenceError)),C0=["length","inspect","hasOwnProperty","toJSON","asymmetricMatch","nodeType","$$typeof","constructor","@@__IMMUTABLE_ITERABLE__@@","@@__IMMUTABLE_RECORD__@@","_isMockFunction","then","__esModule"];function rx(e,t){var r=Object.freeze?Object.freeze(e):e;return global.Proxy?new Proxy(r,{get:function(o,n){if(typeof n!="string"||C0.includes(n))return r[n];if(!r.hasOwnProperty(n))throw t.hasOwnProperty(n)?new ReferenceError("[envsafe] Env var "+String(n)+" was accessed but not validated. This var is set in the environment; please add an envsafe validator for it."):new ReferenceError('[envsafe] Env var "'+String(n)+'" not found');return r[n]}}):r}function lx(e){for(var t=e.errors,r=[],o=[],n=0,i=Object.keys(t);n<i.length;n++){var s=i[n],u=t[s];u instanceof Nh?o.push(" "+s+": "+(u.message||"required")):r.push(" "+s+": "+(u.message||"invalid"))}return r.length&&r.unshift("\u274C Invalid environment variables:"),o.length&&o.unshift("\u{1F4A8} Missing environment variables:"),["========================================"].concat(r,o,["========================================"]).join(`
29
+ `)}function ox(e){var t,r=lx(e);throw console.error(r),typeof window<"u"&&((t=window)!=null&&t.alert)&&window.alert(r),new TypeError(r)}function A0(e){var t=e.env,r=e.validator,o=e.key,n=t.NODE_ENV!=="production",i=r.allowEmpty,s=i!==void 0&&i;function u(d){return s?d!==void 0:d!==void 0&&d!==""}var c=u(r.input)?r.input:t[o];if(n&&!u(c)&&u(r.devDefault)&&(c=r.devDefault),!u(c)&&u(r.default)&&(c=r.default),!u(c)){var l="Missing value";throw r.allowEmpty||(l+=" or empty string"),new Nh(l)}var p=r._parse(c);if(r.choices&&!r.choices.includes(p))throw new qh('Value "'+p+'" not in choices ['+r.choices+"]");return p}var R0=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function Mt(e){return function(t){return t===void 0&&(t={}),ix({},t,{_parse:e})}}var $0=Mt((function(e){switch(e){case!0:case"true":case"t":case"1":return!0;case!1:case"false":case"f":case"0":return!1;default:throw Ot("str",e)}})),j0=Mt((function(e){if(typeof e!="string")throw Ot("str",e);return e})),O0=Mt((function(e){if(!R0.test(e))throw Ot("email",e);return e})),M0=Mt((function(e){var t=+e;if(Number.isNaN(t))throw Ot("num",e);return t})),z0=Mt((function(e){var t=+e;if(Number.isNaN(t)||""+t!=""+e||t%1!=0||t<1||t>65535)throw Ot("port",e);return t})),F0=Mt((function(e){try{return new URL(e),e}catch{throw Ot("url",e)}})),L0=Mt((function(e){try{return typeof e!="string"?e:JSON.parse(e)}catch{throw Ot("json",e)}}));ne.InvalidEnvError=qh,ne.MissingEnvError=Nh,ne.bool=$0,ne.defaultReporter=ox,ne.defaultReporterText=lx,ne.email=O0,ne.envsafe=function(e,t){var r=t===void 0?{}:t,o=r.reporter,n=o===void 0?ox:o,i=r.env,s=i===void 0?process.env:i,u=r.strict,c=u!==void 0&&u,l={},p={};for(var d in e){var m=e[d];try{var h=A0({env:s,validator:m,key:d});p[d]=h}catch(g){l[d]=g}}return Object.keys(l).length&&n({errors:l,output:p,env:s}),c?rx(p,s):p},ne.freezeObject=rx,ne.invalidEnvError=Ot,ne.json=L0,ne.makeValidator=Mt,ne.num=M0,ne.port=z0,ne.str=j0,ne.url=F0});var vx=D(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});function Uh(){return Uh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Uh.apply(this,arguments)}function px(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Wh(e)}function rs(e,t){return rs=Object.setPrototypeOf||function(o,n){return o.__proto__=n,o},rs(e,t)}function B0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ns(e,t,r){return B0()?ns=Reflect.construct:ns=function(n,i,s){var u=[null];u.push.apply(u,i);var c=Function.bind.apply(n,u),l=new c;return s&&rs(l,s.prototype),l},ns.apply(null,arguments)}function q0(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function os(e){var t=typeof Map=="function"?new Map:void 0;return os=function(o){if(o===null||!q0(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return ns(o,arguments,Wh(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rs(n,o)},os(e)}function mx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hh=(function(e){px(t,e);function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(mx(o),t.prototype),o}return t})(os(TypeError)),zt=function(t,r){return new Hh("Invalid "+t+' input: "'+r+'"')},Vh=(function(e){px(t,e);function t(r){var o;return o=e.call(this,r)||this,Object.setPrototypeOf(mx(o),t.prototype),o}return t})(os(ReferenceError)),N0=["length","inspect","hasOwnProperty","toJSON","asymmetricMatch","nodeType","$$typeof","constructor","@@__IMMUTABLE_ITERABLE__@@","@@__IMMUTABLE_RECORD__@@","_isMockFunction","then","__esModule"];function hx(e,t){var r=Object.freeze?Object.freeze(e):e;return global.Proxy?new Proxy(r,{get:function(n,i){if(typeof i!="string"||N0.includes(i))return r[i];var s=r.hasOwnProperty(i);if(!s)throw t.hasOwnProperty(i)?new ReferenceError("[envsafe] Env var "+String(i)+" was accessed but not validated. This var is set in the environment; please add an envsafe validator for it."):new ReferenceError('[envsafe] Env var "'+String(i)+'" not found');return r[i]}}):r}function fx(e){for(var t=e.errors,r=Object.keys(t),o=[],n=[],i=0,s=r;i<s.length;i++){var u=s[i],c=t[u];c instanceof Vh?n.push(" "+u+": "+(c.message||"required")):o.push(" "+u+": "+(c.message||"invalid"))}o.length&&o.unshift("\u274C Invalid environment variables:"),n.length&&n.unshift("\u{1F4A8} Missing environment variables:");var l=["========================================"].concat(o,n,["========================================"]);return l.join(`
30
+ `)}function gx(e){var t,r=fx(e);throw console.error(r),typeof window<"u"&&((t=window)!=null&&t.alert)&&window.alert(r),new TypeError(r)}function U0(e){var t=e.env,r=e.validator,o=e.key,n=t.NODE_ENV!=="production",i=r.allowEmpty,s=i===void 0?!1:i;function u(d){return s?d!==void 0:d!==void 0&&d!==""}var c=u(r.input)?r.input:t[o];if(n&&!u(c)&&u(r.devDefault)&&(c=r.devDefault),!u(c)&&u(r.default)&&(c=r.default),!u(c)){var l="Missing value";throw r.allowEmpty||(l+=" or empty string"),new Vh(l)}var p=r._parse(c);if(r.choices&&!r.choices.includes(p))throw new Hh('Value "'+p+'" not in choices ['+r.choices+"]");return p}function W0(e,t){var r=t===void 0?{}:t,o=r.reporter,n=o===void 0?gx:o,i=r.env,s=i===void 0?process.env:i,u=r.strict,c=u===void 0?!1:u,l={},p={};for(var d in e){var m=e[d];try{var h=U0({env:s,validator:m,key:d});p[d]=h}catch(g){l[d]=g}}return Object.keys(l).length&&n({errors:l,output:p,env:s}),c?hx(p,s):p}var H0=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function Ft(e){return function(t){return t===void 0&&(t={}),Uh({},t,{_parse:e})}}var V0=Ft(function(e){switch(e){case!0:case"true":case"t":case"1":return!0;case!1:case"false":case"f":case"0":return!1;default:throw zt("str",e)}}),Z0=Ft(function(e){if(typeof e!="string")throw zt("str",e);return e}),K0=Ft(function(e){if(!H0.test(e))throw zt("email",e);return e}),G0=Ft(function(e){var t=+e;if(Number.isNaN(t))throw zt("num",e);return t}),Q0=Ft(function(e){var t=+e;if(Number.isNaN(t)||""+t!=""+e||t%1!==0||t<1||t>65535)throw zt("port",e);return t}),J0=Ft(function(e){try{return new URL(e),e}catch{throw zt("url",e)}}),X0=Ft(function(e){try{return typeof e!="string"?e:JSON.parse(e)}catch{throw zt("json",e)}});re.InvalidEnvError=Hh;re.MissingEnvError=Vh;re.bool=V0;re.defaultReporter=gx;re.defaultReporterText=fx;re.email=K0;re.envsafe=W0;re.freezeObject=hx;re.invalidEnvError=zt;re.json=X0;re.makeValidator=Ft;re.num=G0;re.port=Q0;re.str=Z0;re.url=J0});var yx=D((uU,Zh)=>{"use strict";process.env.NODE_ENV==="production"?Zh.exports=dx():Zh.exports=vx()});var ve=D(Pe=>{"use strict";Pe.__esModule=!0;Pe.extend=nD;Pe.indexOf=P2;Pe.escapeExpression=k2;Pe.isEmpty=C2;Pe.createFrame=A2;Pe.blockParams=R2;Pe.appendContextPath=$2;var I2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},D2=/[&<>"'`=]/g,_2=/[&<>"'`=]/;function w2(e){return I2[e]}function nD(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 Rf=Object.prototype.toString;Pe.toString=Rf;var Af=function(t){return typeof t=="function"};Af(/x/)&&(Pe.isFunction=Af=function(e){return typeof e=="function"&&Rf.call(e)==="[object Function]"});Pe.isFunction=Af;var rD=Array.isArray||function(e){return e&&typeof e=="object"?Rf.call(e)==="[object Array]":!1};Pe.isArray=rD;function P2(e,t){for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function k2(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return _2.test(e)?e.replace(D2,w2):e}function C2(e){return!e&&e!==0?!0:!!(rD(e)&&e.length===0)}function A2(e){var t=nD({},e);return t._parent=e,t}function R2(e,t){return e.path=t,e}function $2(e,t){return(e?e+".":"")+t}});var ze=D((Ss,oD)=>{"use strict";Ss.__esModule=!0;var $f=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function jf(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),c=0;c<$f.length;c++)this[$f[c]]=u[$f[c]];Error.captureStackTrace&&Error.captureStackTrace(this,jf);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{}}jf.prototype=new Error;Ss.default=jf;oD.exports=Ss.default});var aD=D((bs,iD)=>{"use strict";bs.__esModule=!0;var Of=ve();bs.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(Of.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=Of.createFrame(r.data);i.contextPath=Of.appendContextPath(r.data.contextPath,r.name),r={data:i}}return n(t,r)})};iD.exports=bs.default});var uD=D((Ts,sD)=>{"use strict";Ts.__esModule=!0;function j2(e){return e&&e.__esModule?e:{default:e}}var vo=ve(),O2=ze(),M2=j2(O2);Ts.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new M2.default("Must pass iterator to #each");var o=r.fn,n=r.inverse,i=0,s="",u=void 0,c=void 0;r.data&&r.ids&&(c=vo.appendContextPath(r.data.contextPath,r.ids[0])+"."),vo.isFunction(t)&&(t=t.call(this)),r.data&&(u=vo.createFrame(r.data));function l(g,y,P){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!P,c&&(u.contextPath=c+g)),s=s+o(t[g],{data:u,blockParams:vo.blockParams([t[g],g],[c+g,null])})}if(t&&typeof t=="object")if(vo.isArray(t))for(var p=t.length;i<p;i++)i in t&&l(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++)l(i,i,i===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,i-1),g=y,i++}),g!==void 0&&l(g,i-1,!0)})();return i===0&&(s=n(this)),s})};sD.exports=Ts.default});var lD=D((xs,cD)=>{"use strict";xs.__esModule=!0;function z2(e){return e&&e.__esModule?e:{default:e}}var F2=ze(),L2=z2(F2);xs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new L2.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};cD.exports=xs.default});var hD=D((Es,mD)=>{"use strict";Es.__esModule=!0;function B2(e){return e&&e.__esModule?e:{default:e}}var dD=ve(),q2=ze(),pD=B2(q2);Es.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new pD.default("#if requires exactly one argument");return dD.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||dD.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new pD.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};mD.exports=Es.default});var gD=D((Is,fD)=>{"use strict";Is.__esModule=!0;Is.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)})};fD.exports=Is.default});var yD=D((Ds,vD)=>{"use strict";Ds.__esModule=!0;Ds.default=function(e){e.registerHelper("lookup",function(t,r,o){return t&&o.lookupProperty(t,r)})};vD.exports=Ds.default});var bD=D((_s,SD)=>{"use strict";_s.__esModule=!0;function N2(e){return e&&e.__esModule?e:{default:e}}var yo=ve(),U2=ze(),W2=N2(U2);_s.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new W2.default("#with requires exactly one argument");yo.isFunction(t)&&(t=t.call(this));var o=r.fn;if(yo.isEmpty(t))return r.inverse(this);var n=r.data;return r.data&&r.ids&&(n=yo.createFrame(r.data),n.contextPath=yo.appendContextPath(r.data.contextPath,r.ids[0])),o(t,{data:n,blockParams:yo.blockParams([t],[n&&n.contextPath])})})};SD.exports=_s.default});var Mf=D(ws=>{"use strict";ws.__esModule=!0;ws.registerDefaultHelpers=iO;ws.moveHelperToHooks=aO;function dn(e){return e&&e.__esModule?e:{default:e}}var H2=aD(),V2=dn(H2),Z2=uD(),K2=dn(Z2),G2=lD(),Q2=dn(G2),J2=hD(),X2=dn(J2),Y2=gD(),eO=dn(Y2),tO=yD(),nO=dn(tO),rO=bD(),oO=dn(rO);function iO(e){V2.default(e),K2.default(e),Q2.default(e),X2.default(e),eO.default(e),nO.default(e),oO.default(e)}function aO(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var xD=D((Ps,TD)=>{"use strict";Ps.__esModule=!0;var sO=ve();Ps.default=function(e){e.registerDecorator("inline",function(t,r,o,n){var i=t;return r.partials||(r.partials={},i=function(s,u){var c=o.partials;o.partials=sO.extend({},c,r.partials);var l=t(s,u);return o.partials=c,l}),r.partials[n.args[0]]=n.fn,i})};TD.exports=Ps.default});var ED=D(zf=>{"use strict";zf.__esModule=!0;zf.registerDefaultDecorators=dO;function uO(e){return e&&e.__esModule?e:{default:e}}var cO=xD(),lO=uO(cO);function dO(e){lO.default(e)}});var Ff=D((ks,ID)=>{"use strict";ks.__esModule=!0;var pO=ve(),sr={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=pO.indexOf(sr.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=sr.lookupLevel(t),typeof console<"u"&&sr.lookupLevel(sr.level)<=t){var r=sr.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)}}};ks.default=sr;ID.exports=ks.default});var DD=D(Lf=>{"use strict";Lf.__esModule=!0;Lf.createNewLookupObject=hO;var mO=ve();function hO(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return mO.extend.apply(void 0,[Object.create(null)].concat(t))}});var Bf=D(So=>{"use strict";So.__esModule=!0;So.createProtoAccessControl=yO;So.resultIsAllowed=SO;So.resetLoggedProperties=TO;function fO(e){return e&&e.__esModule?e:{default:e}}var _D=DD(),gO=Ff(),vO=fO(gO),Cs=Object.create(null);function yO(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:_D.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:_D.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function SO(e,t,r){return wD(typeof e=="function"?t.methods:t.properties,r)}function wD(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(bO(t),!1)}function bO(e){Cs[e]!==!0&&(Cs[e]=!0,vO.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
31
31
  You can add a runtime option to disable the check or this warning:
32
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function lO(){Object.keys(ks).forEach(function(e){delete ks[e]})}});var As=D(nt=>{"use strict";nt.__esModule=!0;nt.HandlebarsEnvironment=Lf;function SD(e){return e&&e.__esModule?e:{default:e}}var pn=ve(),dO=ze(),Ff=SD(dO),pO=$f(),mO=hD(),hO=Of(),Cs=SD(hO),fO=zf(),gO="4.7.8";nt.VERSION=gO;var vO=8;nt.COMPILER_REVISION=vO;var yO=7;nt.LAST_COMPATIBLE_COMPILER_REVISION=yO;var SO={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"};nt.REVISION_CHANGES=SO;var Bf="[object Object]";function Lf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},pO.registerDefaultHelpers(this),mO.registerDefaultDecorators(this)}Lf.prototype={constructor:Lf,logger:Cs.default,log:Cs.default.log,registerHelper:function(t,r){if(pn.toString.call(t)===Bf){if(r)throw new Ff.default("Arg not supported with multiple helpers");pn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(pn.toString.call(t)===Bf)pn.extend(this.partials,t);else{if(typeof r>"u")throw new Ff.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(pn.toString.call(t)===Bf){if(r)throw new Ff.default("Arg not supported with multiple decorators");pn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){fO.resetLoggedProperties()}};var bO=Cs.default.log;nt.log=bO;nt.createFrame=pn.createFrame;nt.logger=Cs.default});var TD=D((Rs,bD)=>{"use strict";Rs.__esModule=!0;function qf(e){this.string=e}qf.prototype.toString=qf.prototype.toHTML=function(){return""+this.string};Rs.default=qf;bD.exports=Rs.default});var xD=D(Nf=>{"use strict";Nf.__esModule=!0;Nf.wrapHelper=TO;function TO(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 wD=D(qt=>{"use strict";qt.__esModule=!0;qt.checkRevision=wO;qt.template=PO;qt.wrapProgram=$s;qt.resolvePartial=kO;qt.invokePartial=CO;qt.noop=DD;function xO(e){return e&&e.__esModule?e:{default:e}}function EO(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 IO=ve(),yt=EO(IO),DO=ze(),St=xO(DO),bt=As(),ED=$f(),_O=xD(),ID=zf();function wO(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 PO(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,c){c.hash&&(u=yt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),s=t.VM.resolvePartial.call(this,s,u,c);var l=yt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,s,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(s,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var d=p.split(`
32
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function TO(){Object.keys(Cs).forEach(function(e){delete Cs[e]})}});var Rs=D(nt=>{"use strict";nt.__esModule=!0;nt.HandlebarsEnvironment=Uf;function PD(e){return e&&e.__esModule?e:{default:e}}var pn=ve(),xO=ze(),qf=PD(xO),EO=Mf(),IO=ED(),DO=Ff(),As=PD(DO),_O=Bf(),wO="4.7.8";nt.VERSION=wO;var PO=8;nt.COMPILER_REVISION=PO;var kO=7;nt.LAST_COMPATIBLE_COMPILER_REVISION=kO;var CO={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"};nt.REVISION_CHANGES=CO;var Nf="[object Object]";function Uf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},EO.registerDefaultHelpers(this),IO.registerDefaultDecorators(this)}Uf.prototype={constructor:Uf,logger:As.default,log:As.default.log,registerHelper:function(t,r){if(pn.toString.call(t)===Nf){if(r)throw new qf.default("Arg not supported with multiple helpers");pn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(pn.toString.call(t)===Nf)pn.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(pn.toString.call(t)===Nf){if(r)throw new qf.default("Arg not supported with multiple decorators");pn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){_O.resetLoggedProperties()}};var AO=As.default.log;nt.log=AO;nt.createFrame=pn.createFrame;nt.logger=As.default});var CD=D(($s,kD)=>{"use strict";$s.__esModule=!0;function Wf(e){this.string=e}Wf.prototype.toString=Wf.prototype.toHTML=function(){return""+this.string};$s.default=Wf;kD.exports=$s.default});var AD=D(Hf=>{"use strict";Hf.__esModule=!0;Hf.wrapHelper=RO;function RO(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 MD=D(qt=>{"use strict";qt.__esModule=!0;qt.checkRevision=FO;qt.template=LO;qt.wrapProgram=js;qt.resolvePartial=BO;qt.invokePartial=qO;qt.noop=jD;function $O(e){return e&&e.__esModule?e:{default:e}}function jO(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 OO=ve(),yt=jO(OO),MO=ze(),St=$O(MO),bt=Rs(),RD=Mf(),zO=AD(),$D=Bf();function FO(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 LO(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,c){c.hash&&(u=yt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),s=t.VM.resolvePartial.call(this,s,u,c);var l=yt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,s,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(s,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var d=p.split(`
33
33
  `),m=0,h=d.length;m<h&&!(!d[m]&&m+1===h);m++)d[m]=c.indent+d[m];p=d.join(`
34
- `)}return p}else throw new St.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(u,c,l){if(!u||!(c in u))throw new St.default('"'+c+'" not defined in '+u,{loc:l});return n.lookupProperty(u,c)},lookupProperty:function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||ID.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(u,c){for(var l=u.length,p=0;p<l;p++){var d=u[p]&&n.lookupProperty(u[p],c);if(d!=null)return u[p][c]}},lambda:function(u,c){return typeof u=="function"?u.call(c):u},escapeExpression:yt.escapeExpression,invokePartial:o,fn:function(u){var c=e[u];return c.decorator=e[u+"_d"],c},programs:[],program:function(u,c,l,p,d){var m=this.programs[u],h=this.fn(u);return c||d||p||l?m=$s(this,u,h,c,l,p,d):m||(m=this.programs[u]=$s(this,u,h)),m},data:function(u,c){for(;u&&c--;)u=u._parent;return u},mergeIfNeeded:function(u,c){var l=u||c;return u&&c&&u!==c&&(l=yt.extend({},c,u)),l},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;i._setup(u),!u.partial&&e.useData&&(c=AO(s,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=s!=u.depths[0]?[s].concat(u.depths):u.depths:l=[s]);function d(m){return""+e.main(n,m,n.helpers,n.partials,c,p,l)}return d=_D(e.main,d,n,u.depths||[],c,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);RO(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=ID.createProtoAccessControl(s);var c=s.allowCallsToHelperMissing||r;ED.moveHelperToHooks(n,"helperMissing",c),ED.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(s,u,c,l){if(e.useBlockParams&&!c)throw new St.default("must pass block params");if(e.useDepths&&!l)throw new St.default("must pass parent depths");return $s(n,s,e[s],u,0,c,l)},i}function $s(e,t,r,o,n,i,s){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=s;return s&&c!=s[0]&&!(c===e.nullContext&&s[0]===null)&&(p=[c].concat(s)),r(e,c,e.helpers,e.partials,l.data||o,i&&[l.blockParams].concat(i),p)}return u=_D(r,u,e,s,o,i),u.program=t,u.depth=s?s.length:0,u.blockParams=n||0,u}function kO(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 CO(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!==DD&&(function(){r.data=bt.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=bt.createFrame(c.data),c.data["partial-block"]=o,i(u,c)},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 DD(){return""}function AO(e,t){return(!t||!("root"in t))&&(t=t?bt.createFrame(t):{},t.root=e),t}function _D(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 RO(e,t){Object.keys(e).forEach(function(r){var o=e[r];e[r]=$O(o,t)})}function $O(e,t){var r=t.lookupProperty;return _O.wrapHelper(e,function(o){return yt.extend({lookupProperty:r},o)})}});var Uf=D((js,PD)=>{"use strict";js.__esModule=!0;js.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}};PD.exports=js.default});var $D=D((Os,RD)=>{"use strict";Os.__esModule=!0;function Hf(e){return e&&e.__esModule?e:{default:e}}function Vf(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 jO=As(),kD=Vf(jO),OO=TD(),MO=Hf(OO),zO=ze(),FO=Hf(zO),BO=ve(),Wf=Vf(BO),LO=wD(),CD=Vf(LO),qO=Uf(),NO=Hf(qO);function AD(){var e=new kD.HandlebarsEnvironment;return Wf.extend(e,kD),e.SafeString=MO.default,e.Exception=FO.default,e.Utils=Wf,e.escapeExpression=Wf.escapeExpression,e.VM=CD,e.template=function(t){return CD.template(t,e)},e}var So=AD();So.create=AD;NO.default(So);So.default=So;Os.default=So;RD.exports=Os.default});var Zf=D((Ms,OD)=>{"use strict";Ms.__esModule=!0;var jD={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&&!jD.helpers.scopedId(t)&&!t.depth}}};Ms.default=jD;OD.exports=Ms.default});var zD=D((zs,MD)=>{"use strict";zs.__esModule=!0;var UO=(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,c,l,p){var d=l.length-1;switch(c){case 1:return l[d-1];case 2:this.$=u.prepareProgram(l[d]);break;case 3:this.$=l[d];break;case 4:this.$=l[d];break;case 5:this.$=l[d];break;case 6:this.$=l[d];break;case 7:this.$=l[d];break;case 8:this.$=l[d];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[d]),strip:u.stripFlags(l[d],l[d]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[d],value:l[d],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[d-2],l[d-1],l[d],this._$);break;case 12:this.$={path:l[d-3],params:l[d-2],hash:l[d-1]};break;case 13:this.$=u.prepareBlock(l[d-3],l[d-2],l[d-1],l[d],!1,this._$);break;case 14:this.$=u.prepareBlock(l[d-3],l[d-2],l[d-1],l[d],!0,this._$);break;case 15:this.$={open:l[d-5],path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 16:this.$={path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 17:this.$={path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 18:this.$={strip:u.stripFlags(l[d-1],l[d-1]),program:l[d]};break;case 19:var m=u.prepareBlock(l[d-2],l[d-1],l[d],l[d],!1,this._$),h=u.prepareProgram([m],l[d-1].loc);h.chained=!0,this.$={strip:l[d-2].strip,program:h,chain:!0};break;case 20:this.$=l[d];break;case 21:this.$={path:l[d-1],strip:u.stripFlags(l[d-2],l[d])};break;case 22:this.$=u.prepareMustache(l[d-3],l[d-2],l[d-1],l[d-4],u.stripFlags(l[d-4],l[d]),this._$);break;case 23:this.$=u.prepareMustache(l[d-3],l[d-2],l[d-1],l[d-4],u.stripFlags(l[d-4],l[d]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[d-3],params:l[d-2],hash:l[d-1],indent:"",strip:u.stripFlags(l[d-4],l[d]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[d-2],l[d-1],l[d],this._$);break;case 26:this.$={path:l[d-3],params:l[d-2],hash:l[d-1],strip:u.stripFlags(l[d-4],l[d])};break;case 27:this.$=l[d];break;case 28:this.$=l[d];break;case 29:this.$={type:"SubExpression",path:l[d-3],params:l[d-2],hash:l[d-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[d],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[d-2]),value:l[d],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[d-1]);break;case 33:this.$=l[d];break;case 34:this.$=l[d];break;case 35:this.$={type:"StringLiteral",value:l[d],original:l[d],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[d]),original:Number(l[d]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[d]==="true",original:l[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.$=l[d];break;case 41:this.$=l[d];break;case 42:this.$=u.preparePath(!0,l[d],this._$);break;case 43:this.$=u.preparePath(!1,l[d],this._$);break;case 44:l[d-2].push({part:u.id(l[d]),original:l[d],separator:l[d-1]}),this.$=l[d-2];break;case 45:this.$=[{part:u.id(l[d]),original:l[d]}];break;case 46:this.$=[];break;case 47:l[d-1].push(l[d]);break;case 48:this.$=[];break;case 49:l[d-1].push(l[d]);break;case 50:this.$=[];break;case 51:l[d-1].push(l[d]);break;case 58:this.$=[];break;case 59:l[d-1].push(l[d]);break;case 64:this.$=[];break;case 65:l[d-1].push(l[d]);break;case 70:this.$=[];break;case 71:l[d-1].push(l[d]);break;case 78:this.$=[];break;case 79:l[d-1].push(l[d]);break;case 82:this.$=[];break;case 83:l[d-1].push(l[d]);break;case 86:this.$=[];break;case 87:l[d-1].push(l[d]);break;case 90:this.$=[];break;case 91:l[d-1].push(l[d]);break;case 94:this.$=[];break;case 95:l[d-1].push(l[d]);break;case 98:this.$=[l[d]];break;case 99:l[d-1].push(l[d]);break;case 100:this.$=[l[d]];break;case 101:l[d-1].push(l[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],c=[],l=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;c.push(P);var I=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function R(Ze){s.length=s.length-2*Ze,u.length=u.length-Ze,c.length=c.length-Ze}function q(){var Ze;return Ze=i.lexer.lex()||1,typeof Ze!="number"&&(Ze=i.symbols_[Ze]||Ze),Ze}for(var O,J,Ve,ue,ov,vu,yn={},zo,at,iv,Fo;;){if(Ve=s[s.length-1],this.defaultActions[Ve]?ue=this.defaultActions[Ve]:((O===null||typeof O>"u")&&(O=q()),ue=l[Ve]&&l[Ve][O]),typeof ue>"u"||!ue.length||!ue[0]){var yu="";if(!h){Fo=[];for(zo in l[Ve])this.terminals_[zo]&&zo>2&&Fo.push("'"+this.terminals_[zo]+"'");this.lexer.showPosition?yu="Parse error on line "+(d+1)+`:
34
+ `)}return p}else throw new St.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(u,c,l){if(!u||!(c in u))throw new St.default('"'+c+'" not defined in '+u,{loc:l});return n.lookupProperty(u,c)},lookupProperty:function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||$D.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(u,c){for(var l=u.length,p=0;p<l;p++){var d=u[p]&&n.lookupProperty(u[p],c);if(d!=null)return u[p][c]}},lambda:function(u,c){return typeof u=="function"?u.call(c):u},escapeExpression:yt.escapeExpression,invokePartial:o,fn:function(u){var c=e[u];return c.decorator=e[u+"_d"],c},programs:[],program:function(u,c,l,p,d){var m=this.programs[u],h=this.fn(u);return c||d||p||l?m=js(this,u,h,c,l,p,d):m||(m=this.programs[u]=js(this,u,h)),m},data:function(u,c){for(;u&&c--;)u=u._parent;return u},mergeIfNeeded:function(u,c){var l=u||c;return u&&c&&u!==c&&(l=yt.extend({},c,u)),l},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;i._setup(u),!u.partial&&e.useData&&(c=NO(s,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=s!=u.depths[0]?[s].concat(u.depths):u.depths:l=[s]);function d(m){return""+e.main(n,m,n.helpers,n.partials,c,p,l)}return d=OD(e.main,d,n,u.depths||[],c,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);UO(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=$D.createProtoAccessControl(s);var c=s.allowCallsToHelperMissing||r;RD.moveHelperToHooks(n,"helperMissing",c),RD.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(s,u,c,l){if(e.useBlockParams&&!c)throw new St.default("must pass block params");if(e.useDepths&&!l)throw new St.default("must pass parent depths");return js(n,s,e[s],u,0,c,l)},i}function js(e,t,r,o,n,i,s){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=s;return s&&c!=s[0]&&!(c===e.nullContext&&s[0]===null)&&(p=[c].concat(s)),r(e,c,e.helpers,e.partials,l.data||o,i&&[l.blockParams].concat(i),p)}return u=OD(r,u,e,s,o,i),u.program=t,u.depth=s?s.length:0,u.blockParams=n||0,u}function BO(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 qO(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!==jD&&(function(){r.data=bt.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=bt.createFrame(c.data),c.data["partial-block"]=o,i(u,c)},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 jD(){return""}function NO(e,t){return(!t||!("root"in t))&&(t=t?bt.createFrame(t):{},t.root=e),t}function OD(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 UO(e,t){Object.keys(e).forEach(function(r){var o=e[r];e[r]=WO(o,t)})}function WO(e,t){var r=t.lookupProperty;return zO.wrapHelper(e,function(o){return yt.extend({lookupProperty:r},o)})}});var Vf=D((Os,zD)=>{"use strict";Os.__esModule=!0;Os.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}};zD.exports=Os.default});var ND=D((Ms,qD)=>{"use strict";Ms.__esModule=!0;function Kf(e){return e&&e.__esModule?e:{default:e}}function Gf(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 HO=Rs(),FD=Gf(HO),VO=CD(),ZO=Kf(VO),KO=ze(),GO=Kf(KO),QO=ve(),Zf=Gf(QO),JO=MD(),LD=Gf(JO),XO=Vf(),YO=Kf(XO);function BD(){var e=new FD.HandlebarsEnvironment;return Zf.extend(e,FD),e.SafeString=ZO.default,e.Exception=GO.default,e.Utils=Zf,e.escapeExpression=Zf.escapeExpression,e.VM=LD,e.template=function(t){return LD.template(t,e)},e}var bo=BD();bo.create=BD;YO.default(bo);bo.default=bo;Ms.default=bo;qD.exports=Ms.default});var Qf=D((zs,WD)=>{"use strict";zs.__esModule=!0;var UD={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&&!UD.helpers.scopedId(t)&&!t.depth}}};zs.default=UD;WD.exports=zs.default});var VD=D((Fs,HD)=>{"use strict";Fs.__esModule=!0;var eM=(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,c,l,p){var d=l.length-1;switch(c){case 1:return l[d-1];case 2:this.$=u.prepareProgram(l[d]);break;case 3:this.$=l[d];break;case 4:this.$=l[d];break;case 5:this.$=l[d];break;case 6:this.$=l[d];break;case 7:this.$=l[d];break;case 8:this.$=l[d];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[d]),strip:u.stripFlags(l[d],l[d]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[d],value:l[d],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[d-2],l[d-1],l[d],this._$);break;case 12:this.$={path:l[d-3],params:l[d-2],hash:l[d-1]};break;case 13:this.$=u.prepareBlock(l[d-3],l[d-2],l[d-1],l[d],!1,this._$);break;case 14:this.$=u.prepareBlock(l[d-3],l[d-2],l[d-1],l[d],!0,this._$);break;case 15:this.$={open:l[d-5],path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 16:this.$={path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 17:this.$={path:l[d-4],params:l[d-3],hash:l[d-2],blockParams:l[d-1],strip:u.stripFlags(l[d-5],l[d])};break;case 18:this.$={strip:u.stripFlags(l[d-1],l[d-1]),program:l[d]};break;case 19:var m=u.prepareBlock(l[d-2],l[d-1],l[d],l[d],!1,this._$),h=u.prepareProgram([m],l[d-1].loc);h.chained=!0,this.$={strip:l[d-2].strip,program:h,chain:!0};break;case 20:this.$=l[d];break;case 21:this.$={path:l[d-1],strip:u.stripFlags(l[d-2],l[d])};break;case 22:this.$=u.prepareMustache(l[d-3],l[d-2],l[d-1],l[d-4],u.stripFlags(l[d-4],l[d]),this._$);break;case 23:this.$=u.prepareMustache(l[d-3],l[d-2],l[d-1],l[d-4],u.stripFlags(l[d-4],l[d]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[d-3],params:l[d-2],hash:l[d-1],indent:"",strip:u.stripFlags(l[d-4],l[d]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[d-2],l[d-1],l[d],this._$);break;case 26:this.$={path:l[d-3],params:l[d-2],hash:l[d-1],strip:u.stripFlags(l[d-4],l[d])};break;case 27:this.$=l[d];break;case 28:this.$=l[d];break;case 29:this.$={type:"SubExpression",path:l[d-3],params:l[d-2],hash:l[d-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[d],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[d-2]),value:l[d],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[d-1]);break;case 33:this.$=l[d];break;case 34:this.$=l[d];break;case 35:this.$={type:"StringLiteral",value:l[d],original:l[d],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[d]),original:Number(l[d]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[d]==="true",original:l[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.$=l[d];break;case 41:this.$=l[d];break;case 42:this.$=u.preparePath(!0,l[d],this._$);break;case 43:this.$=u.preparePath(!1,l[d],this._$);break;case 44:l[d-2].push({part:u.id(l[d]),original:l[d],separator:l[d-1]}),this.$=l[d-2];break;case 45:this.$=[{part:u.id(l[d]),original:l[d]}];break;case 46:this.$=[];break;case 47:l[d-1].push(l[d]);break;case 48:this.$=[];break;case 49:l[d-1].push(l[d]);break;case 50:this.$=[];break;case 51:l[d-1].push(l[d]);break;case 58:this.$=[];break;case 59:l[d-1].push(l[d]);break;case 64:this.$=[];break;case 65:l[d-1].push(l[d]);break;case 70:this.$=[];break;case 71:l[d-1].push(l[d]);break;case 78:this.$=[];break;case 79:l[d-1].push(l[d]);break;case 82:this.$=[];break;case 83:l[d-1].push(l[d]);break;case 86:this.$=[];break;case 87:l[d-1].push(l[d]);break;case 90:this.$=[];break;case 91:l[d-1].push(l[d]);break;case 94:this.$=[];break;case 95:l[d-1].push(l[d]);break;case 98:this.$=[l[d]];break;case 99:l[d-1].push(l[d]);break;case 100:this.$=[l[d]];break;case 101:l[d-1].push(l[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],c=[],l=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;c.push(P);var I=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function R(Ze){s.length=s.length-2*Ze,u.length=u.length-Ze,c.length=c.length-Ze}function q(){var Ze;return Ze=i.lexer.lex()||1,typeof Ze!="number"&&(Ze=i.symbols_[Ze]||Ze),Ze}for(var O,J,Ve,ue,sv,yu,yn={},Fo,at,uv,Lo;;){if(Ve=s[s.length-1],this.defaultActions[Ve]?ue=this.defaultActions[Ve]:((O===null||typeof O>"u")&&(O=q()),ue=l[Ve]&&l[Ve][O]),typeof ue>"u"||!ue.length||!ue[0]){var Su="";if(!h){Lo=[];for(Fo in l[Ve])this.terminals_[Fo]&&Fo>2&&Lo.push("'"+this.terminals_[Fo]+"'");this.lexer.showPosition?Su="Parse error on line "+(d+1)+`:
35
35
  `+this.lexer.showPosition()+`
36
- Expecting `+Fo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":yu="Parse error on line "+(d+1)+": Unexpected "+(O==1?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(yu,{text:this.lexer.match,token:this.terminals_[O]||O,line:this.lexer.yylineno,loc:P,expected:Fo})}}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+O);switch(ue[0]){case 1:s.push(O),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),s.push(ue[1]),O=null,J?(O=J,J=null):(m=this.lexer.yyleng,p=this.lexer.yytext,d=this.lexer.yylineno,P=this.lexer.yylloc,h>0&&h--);break;case 2:if(at=this.productions_[ue[1]][1],yn.$=u[u.length-at],yn._$={first_line:c[c.length-(at||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(at||1)].first_column,last_column:c[c.length-1].last_column},I&&(yn._$.range=[c[c.length-(at||1)].range[0],c[c.length-1].range[1]]),vu=this.performAction.call(yn,p,m,d,this.yy,ue[1],u,c),typeof vu<"u")return vu;at&&(s=s.slice(0,-1*at*2),u=u.slice(0,-1*at),c=c.slice(0,-1*at)),s.push(this.productions_[ue[1]][0]),u.push(yn.$),c.push(yn._$),iv=l[s[s.length-2]][s[s.length-1]],s.push(iv);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 c=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 l=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===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[l[0],l[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()+`
36
+ Expecting `+Lo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Su="Parse error on line "+(d+1)+": Unexpected "+(O==1?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Su,{text:this.lexer.match,token:this.terminals_[O]||O,line:this.lexer.yylineno,loc:P,expected:Lo})}}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+O);switch(ue[0]){case 1:s.push(O),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),s.push(ue[1]),O=null,J?(O=J,J=null):(m=this.lexer.yyleng,p=this.lexer.yytext,d=this.lexer.yylineno,P=this.lexer.yylloc,h>0&&h--);break;case 2:if(at=this.productions_[ue[1]][1],yn.$=u[u.length-at],yn._$={first_line:c[c.length-(at||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(at||1)].first_column,last_column:c[c.length-1].last_column},I&&(yn._$.range=[c[c.length-(at||1)].range[0],c[c.length-1].range[1]]),yu=this.performAction.call(yn,p,m,d,this.yy,ue[1],u,c),typeof yu<"u")return yu;at&&(s=s.slice(0,-1*at*2),u=u.slice(0,-1*at),c=c.slice(0,-1*at)),s.push(this.productions_[ue[1]][0]),u.push(yn.$),c.push(yn._$),uv=l[s[s.length-2]][s[s.length-1]],s.push(uv);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 c=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 l=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===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[l[0],l[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()+`
37
37
  `+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,s,u,c,l,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,c=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[c],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.
38
- `+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,c){function l(d,m){return s.yytext=s.yytext.substring(d,s.yyleng-m+d)}var p=c;switch(u){case 0:if(s.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=l(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})();zs.default=UO;MD.exports=zs.default});var qs=D((Ls,LD)=>{"use strict";Ls.__esModule=!0;function WO(e){return e&&e.__esModule?e:{default:e}}var HO=ze(),Kf=WO(HO);function Fs(){this.parents=[]}Fs.prototype={constructor:Fs,mutating:!1,acceptKey:function(t,r){var o=this.accept(t[r]);if(this.mutating){if(o&&!Fs.prototype[o.type])throw new Kf.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 Kf.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 Kf.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:Bs,Decorator:Bs,BlockStatement:FD,DecoratorBlock:FD,PartialStatement:BD,PartialBlockStatement:function(t){BD.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Bs,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 Bs(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function FD(e){Bs.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function BD(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}Ls.default=Fs;LD.exports=Ls.default});var ND=D((Ns,qD)=>{"use strict";Ns.__esModule=!0;function VO(e){return e&&e.__esModule?e:{default:e}}var ZO=qs(),KO=VO(ZO);function rt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}rt.prototype=new KO.default;rt.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 c=Gf(o,n,r),l=Qf(o,n,r),p=u.openStandalone&&c,d=u.closeStandalone&&l,m=u.inlineStandalone&&c&&l;u.close&&mn(o,n,!0),u.open&&Nt(o,n,!0),t&&m&&(mn(o,n),Nt(o,n)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(o[n-1].original)[1])),t&&p&&(mn((s.program||s.inverse).body),Nt(o,n)),t&&d&&(mn(o,n),Nt((s.inverse||s.program).body))}}return e};rt.prototype.BlockStatement=rt.prototype.DecoratorBlock=rt.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:Qf(t.body),closeStandalone:Gf((o||t).body)};if(e.openStrip.close&&mn(t.body,null,!0),r){var s=e.inverseStrip;s.open&&Nt(t.body,null,!0),s.close&&mn(o.body,null,!0),e.closeStrip.open&&Nt(n.body,null,!0),!this.options.ignoreStandalone&&Gf(t.body)&&Qf(o.body)&&(Nt(t.body),mn(o.body))}else e.closeStrip.open&&Nt(t.body,null,!0);return i};rt.prototype.Decorator=rt.prototype.MustacheStatement=function(e){return e.strip};rt.prototype.PartialStatement=rt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Gf(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 Qf(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 mn(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 Nt(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}}Ns.default=rt;qD.exports=Ns.default});var UD=D(Fe=>{"use strict";Fe.__esModule=!0;Fe.SourceLocation=JO;Fe.id=XO;Fe.stripFlags=YO;Fe.stripComment=eM;Fe.preparePath=tM;Fe.prepareMustache=nM;Fe.prepareRawBlock=rM;Fe.prepareBlock=oM;Fe.prepareProgram=iM;Fe.preparePartialBlock=aM;function GO(e){return e&&e.__esModule?e:{default:e}}var QO=ze(),Jf=GO(QO);function Xf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Jf.default(e.path.original+" doesn't match "+t,r)}}function JO(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 XO(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function YO(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function eM(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function tM(e,t,r){r=this.locInfo(r);for(var o=e?"@":"",n=[],i=0,s=0,u=t.length;s<u;s++){var c=t[s].part,l=t[s].original!==c;if(o+=(t[s].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(n.length>0)throw new Jf.default("Invalid path: "+o,{loc:r});c===".."&&i++}else n.push(c)}return{type:"PathExpression",data:e,depth:i,parts:n,original:o,loc:r}}function nM(e,t,r,o,n,i){var s=o.charAt(3)||o.charAt(2),u=s!=="{"&&s!=="&",c=/\*/.test(o);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:n,loc:this.locInfo(i)}}function rM(e,t,r,o){Xf(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 oM(e,t,r,o,n,i){o&&o.path&&Xf(e,o);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(s)throw new Jf.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=o.strip),c=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:c,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function iM(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 aM(e,t,r,o){return Xf(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 VD=D(bo=>{"use strict";bo.__esModule=!0;bo.parseWithoutProcessing=HD;bo.parse=hM;function sM(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 WD(e){return e&&e.__esModule?e:{default:e}}var uM=zD(),Yf=WD(uM),cM=ND(),lM=WD(cM),dM=UD(),pM=sM(dM),mM=ve();bo.parser=Yf.default;var Us={};mM.extend(Us,pM);function HD(e,t){if(e.type==="Program")return e;Yf.default.yy=Us,Us.locInfo=function(o){return new Us.SourceLocation(t&&t.srcName,o)};var r=Yf.default.parse(e);return r}function hM(e,t){var r=HD(e,t),o=new lM.default(t);return o.accept(r)}});var QD=D(Io=>{"use strict";Io.__esModule=!0;Io.Compiler=eg;Io.precompile=yM;Io.compile=SM;function KD(e){return e&&e.__esModule?e:{default:e}}var fM=ze(),xo=KD(fM),Eo=ve(),gM=Zf(),To=KD(gM),vM=[].slice;function eg(){}eg.prototype={compiler:eg,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||!GD(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=Eo.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 xo.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){ZD(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 xo.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){ZD(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 xo.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,To.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],o=To.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:vM.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var r=To.default.helpers.simpleId(t.path),o=r&&!!this.blockParamIndex(t.path.parts[0]),n=!o&&To.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&&!To.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&&Eo.indexOf(n,t);if(n&&i>=0)return[r,i]}}};function yM(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new xo.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 SM(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new xo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Eo.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),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}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,c,l){return o||(o=n()),o._child(s,u,c,l)},i}function GD(e,t){if(e===t)return!0;if(Eo.isArray(e)&&Eo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!GD(e[r],t[r]))return!1;return!0}}function ZD(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 XD=D(tg=>{var JD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");tg.encode=function(e){if(0<=e&&e<JD.length)return JD[e];throw new TypeError("Must be between 0 and 63: "+e)};tg.decode=function(e){var t=65,r=90,o=97,n=122,i=48,s=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:o<=e&&e<=n?e-o+l:i<=e&&e<=s?e-i+p:e==u?62:e==c?63:-1}});var og=D(rg=>{var YD=XD(),ng=5,e_=1<<ng,t_=e_-1,n_=e_;function bM(e){return e<0?(-e<<1)+1:(e<<1)+0}function TM(e){var t=(e&1)===1,r=e>>1;return t?-r:r}rg.encode=function(t){var r="",o,n=bM(t);do o=n&t_,n>>>=ng,n>0&&(o|=n_),r+=YD.encode(o);while(n>0);return r};rg.decode=function(t,r,o){var n=t.length,i=0,s=0,u,c;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(c=YD.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&n_),c&=t_,i=i+(c<<s),s+=ng}while(u);o.value=TM(i),o.rest=r}});var lr=D(de=>{function xM(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}de.getArg=xM;var r_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,EM=/^data:.+\,.+$/;function Do(e){var t=e.match(r_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}de.urlParse=Do;function ur(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}de.urlGenerate=ur;function ig(e){var t=e,r=Do(e);if(r){if(!r.path)return e;t=r.path}for(var o=de.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,ur(r)):t}de.normalize=ig;function o_(e,t){e===""&&(e="."),t===""&&(t=".");var r=Do(t),o=Do(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),ur(r);if(r||t.match(EM))return t;if(o&&!o.host&&!o.path)return o.host=t,ur(o);var n=t.charAt(0)==="/"?t:ig(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=n,ur(o)):n}de.join=o_;de.isAbsolute=function(e){return e.charAt(0)==="/"||r_.test(e)};function IM(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)}de.relative=IM;var i_=(function(){var e=Object.create(null);return!("__proto__"in e)})();function a_(e){return e}function DM(e){return s_(e)?"$"+e:e}de.toSetString=i_?a_:DM;function _M(e){return s_(e)?e.slice(1):e}de.fromSetString=i_?a_:_M;function s_(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 wM(e,t,r){var o=cr(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:cr(e.name,t.name)}de.compareByOriginalPositions=wM;function PM(e,t,r){var o=e.generatedLine-t.generatedLine;return o!==0||(o=e.generatedColumn-t.generatedColumn,o!==0||r)||(o=cr(e.source,t.source),o!==0)||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0)?o:cr(e.name,t.name)}de.compareByGeneratedPositionsDeflated=PM;function cr(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function kM(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=cr(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:cr(e.name,t.name)}de.compareByGeneratedPositionsInflated=kM;function CM(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}de.parseSourceMapInput=CM;function AM(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var o=Do(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=o_(ur(o),t)}return ig(t)}de.computeSourceURL=AM});var ug=D(u_=>{var ag=lr(),sg=Object.prototype.hasOwnProperty,hn=typeof Map<"u";function Tt(){this._array=[],this._set=hn?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 hn?this._set.size:Object.getOwnPropertyNames(this._set).length};Tt.prototype.add=function(t,r){var o=hn?t:ag.toSetString(t),n=hn?this.has(t):sg.call(this._set,o),i=this._array.length;(!n||r)&&this._array.push(t),n||(hn?this._set.set(t,i):this._set[o]=i)};Tt.prototype.has=function(t){if(hn)return this._set.has(t);var r=ag.toSetString(t);return sg.call(this._set,r)};Tt.prototype.indexOf=function(t){if(hn){var r=this._set.get(t);if(r>=0)return r}else{var o=ag.toSetString(t);if(sg.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()};u_.ArraySet=Tt});var d_=D(l_=>{var c_=lr();function RM(e,t){var r=e.generatedLine,o=t.generatedLine,n=e.generatedColumn,i=t.generatedColumn;return o>r||o==r&&i>=n||c_.compareByGeneratedPositionsInflated(e,t)<=0}function Ws(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ws.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Ws.prototype.add=function(t){RM(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Ws.prototype.toArray=function(){return this._sorted||(this._array.sort(c_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};l_.MappingList=Ws});var cg=D(p_=>{var _o=og(),X=lr(),Hs=ug().ArraySet,$M=d_().MappingList;function Be(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 Hs,this._names=new Hs,this._mappings=new $M,this._sourcesContents=null}Be.prototype._version=3;Be.fromSourceMap=function(t){var r=t.sourceRoot,o=new Be({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};Be.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})};Be.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))};Be.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 Hs,u=new Hs;this._mappings.unsortedForEach(function(c){if(c.source===n&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,o!=null&&(c.source=X.join(o,c.source)),i!=null&&(c.source=X.relative(i,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!s.has(p)&&s.add(p);var d=c.name;d!=null&&!u.has(d)&&u.add(d)},this),this._sources=s,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(o!=null&&(c=X.join(o,c)),i!=null&&(c=X.relative(i,c)),this.setSourceContent(c,l))},this)};Be.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}))}};Be.prototype._serializeMappings=function(){for(var t=0,r=1,o=0,n=0,i=0,s=0,u="",c,l,p,d,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(l=m[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,m[h-1]))continue;c+=","}c+=_o.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(d=this._sources.indexOf(l.source),c+=_o.encode(d-s),s=d,c+=_o.encode(l.originalLine-1-n),n=l.originalLine-1,c+=_o.encode(l.originalColumn-o),o=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=_o.encode(p-i),i=p)),u+=c}return u};Be.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)};Be.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};Be.prototype.toString=function(){return JSON.stringify(this.toJSON())};p_.SourceMapGenerator=Be});var m_=D(fn=>{fn.GREATEST_LOWER_BOUND=1;fn.LEAST_UPPER_BOUND=2;function lg(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?lg(s,t,r,o,n,i):i==fn.LEAST_UPPER_BOUND?t<o.length?t:-1:s:s-e>1?lg(e,s,r,o,n,i):i==fn.LEAST_UPPER_BOUND?s:e<0?-1:e}fn.search=function(t,r,o,n){if(r.length===0)return-1;var i=lg(-1,r.length,t,r,o,n||fn.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(r[i],r[i-1],!0)===0;)--i;return i}});var f_=D(h_=>{function dg(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function jM(e,t){return Math.round(e+Math.random()*(t-e))}function pg(e,t,r,o){if(r<o){var n=jM(r,o),i=r-1;dg(e,n,o);for(var s=e[o],u=r;u<o;u++)t(e[u],s)<=0&&(i+=1,dg(e,i,u));dg(e,i+1,u);var c=i+1;pg(e,t,r,c-1),pg(e,t,c+1,o)}}h_.quickSort=function(e,t){pg(e,t,0,e.length-1)}});var v_=D(Vs=>{var k=lr(),mg=m_(),dr=ug().ArraySet,OM=og(),wo=f_().quickSort;function Z(e,t){var r=e;return typeof e=="string"&&(r=k.parseSourceMapInput(e)),r.sections!=null?new We(r,t):new ae(r,t)}Z.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};Z.prototype._version=3;Z.prototype.__generatedMappings=null;Object.defineProperty(Z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Z.prototype.__originalMappings=null;Object.defineProperty(Z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Z.prototype._charIsMappingSeparator=function(t,r){var o=t.charAt(r);return o===";"||o===","};Z.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Z.GENERATED_ORDER=1;Z.ORIGINAL_ORDER=2;Z.GREATEST_LOWER_BOUND=1;Z.LEAST_UPPER_BOUND=2;Z.prototype.eachMapping=function(t,r,o){var n=r||null,i=o||Z.GENERATED_ORDER,s;switch(i){case Z.GENERATED_ORDER:s=this._generatedMappings;break;case Z.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;s.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=k.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,n)};Z.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,mg.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:k.getArg(s,"generatedLine",null),column:k.getArg(s,"generatedColumn",null),lastColumn:k.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var c=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==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]}return n};Vs.SourceMapConsumer=Z;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),u=k.getArg(r,"sourcesContent",null),c=k.getArg(r,"mappings"),l=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=dr.fromArray(i.map(String),!0),this._sources=dr.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(p){return k.computeSourceURL(s,p,t)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}ae.prototype=Object.create(Z.prototype);ae.prototype.consumer=Z;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=dr.fromArray(t._names.toArray(),!0),i=o._sources=dr.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(),u=o.__generatedMappings=[],c=o.__originalMappings=[],l=0,p=s.length;l<p;l++){var d=s[l],m=new g_;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)),c.push(m)),u.push(m)}return wo(o.__originalMappings,k.compareByOriginalPositions),o};ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function g_(){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,u=0,c=0,l=t.length,p=0,d={},m={},h=[],g=[],y,P,I,R,q;p<l;)if(t.charAt(p)===";")o++,p++,n=0;else if(t.charAt(p)===",")p++;else{for(y=new g_,y.generatedLine=o,R=p;R<l&&!this._charIsMappingSeparator(t,R);R++);if(P=t.slice(p,R),I=d[P],I)p+=P.length;else{for(I=[];p<R;)OM.decode(t,p,m),q=m.value,p=m.rest,I.push(q);if(I.length===2)throw new Error("Found a source, but no line and column");if(I.length===3)throw new Error("Found a source and line, but no column");d[P]=I}y.generatedColumn=n+I[0],n=y.generatedColumn,I.length>1&&(y.source=u+I[1],u+=I[1],y.originalLine=i+I[2],i=y.originalLine,y.originalLine+=1,y.originalColumn=s+I[3],s=y.originalColumn,I.length>4&&(y.name=c+I[4],c+=I[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}wo(g,k.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,wo(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 mg.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",Z.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",Z.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}};Vs.BasicSourceMapConsumer=ae;function We(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 dr,this._names=new dr;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=k.getArg(s,"offset"),c=k.getArg(u,"line"),l=k.getArg(u,"column");if(c<i.line||c===i.line&&l<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Z(k.getArg(s,"map"),t)}})}We.prototype=Object.create(Z.prototype);We.prototype.constructor=Z;We.prototype._version=3;Object.defineProperty(We.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}});We.prototype.originalPositionFor=function(t){var r={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},o=mg.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}};We.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};We.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.')};We.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}};We.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],c=n.consumer._sources.at(u.source);c=k.computeSourceURL(n.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=n.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,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:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}wo(this.__generatedMappings,k.compareByGeneratedPositionsDeflated),wo(this.__originalMappings,k.compareByOriginalPositions)};Vs.IndexedSourceMapConsumer=We});var S_=D(y_=>{var MM=cg().SourceMapGenerator,Zs=lr(),zM=/(\r?\n)/,FM=10,pr="$$$isSourceNode$$$";function ke(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[pr]=!0,o!=null&&this.add(o)}ke.fromStringWithSourceMap=function(t,r,o){var n=new ke,i=t.split(zM),s=0,u=function(){var m=g(),h=g()||"";return m+h;function g(){return s<i.length?i[s++]:void 0}},c=1,l=0,p=null;return r.eachMapping(function(m){if(p!==null)if(c<m.generatedLine)d(p,u()),c++,l=0;else{var h=i[s]||"",g=h.substr(0,m.generatedColumn-l);i[s]=h.substr(m.generatedColumn-l),l=m.generatedColumn,d(p,g),p=m;return}for(;c<m.generatedLine;)n.add(u()),c++;if(l<m.generatedColumn){var h=i[s]||"";n.add(h.substr(0,m.generatedColumn)),i[s]=h.substr(m.generatedColumn),l=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=Zs.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?Zs.join(o,m.source):m.source;n.add(new ke(m.originalLine,m.originalColumn,g,h,m.name))}}};ke.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[pr]||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};ke.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[pr]||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};ke.prototype.walk=function(t){for(var r,o=0,n=this.children.length;o<n;o++)r=this.children[o],r[pr]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};ke.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};ke.prototype.replaceRight=function(t,r){var o=this.children[this.children.length-1];return o[pr]?o.replaceRight(t,r):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,r):this.children.push("".replace(t,r)),this};ke.prototype.setSourceContent=function(t,r){this.sourceContents[Zs.toSetString(t)]=r};ke.prototype.walkSourceContents=function(t){for(var r=0,o=this.children.length;r<o;r++)this.children[r][pr]&&this.children[r].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),r=0,o=n.length;r<o;r++)t(Zs.fromSetString(n[r]),this.sourceContents[n[r]])};ke.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};ke.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},o=new MM(t),n=!1,i=null,s=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((i!==p.source||s!==p.line||u!==p.column||c!==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,c=p.name,n=!0):n&&(o.addMapping({generated:{line:r.line,column:r.column}}),i=null,n=!1);for(var d=0,m=l.length;d<m;d++)l.charCodeAt(d)===FM?(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(l,p){o.setSourceContent(l,p)}),{code:r.code,map:o}};y_.SourceNode=ke});var b_=D(Ks=>{Ks.SourceMapGenerator=cg().SourceMapGenerator;Ks.SourceMapConsumer=v_().SourceMapConsumer;Ks.SourceNode=S_().SourceNode});var I_=D((Gs,E_)=>{"use strict";Gs.__esModule=!0;var fg=ve(),gn=void 0;try{(typeof define!="function"||!define.amd)&&(T_=b_(),gn=T_.SourceNode)}catch{}var T_;gn||(gn=function(e,t,r,o){this.src="",o&&this.add(o)},gn.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 hg(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 x_(e){this.srcFile=e,this.source=[]}x_.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,`
39
- `])}),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 gn(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 gn?t:(t=hg(t,this,r),new gn(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=hg(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(hg(t[o],this));return r},generateArray:function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r}};Gs.default=x_;E_.exports=Gs.default});var k_=D((Qs,P_)=>{"use strict";Qs.__esModule=!0;function w_(e){return e&&e.__esModule?e:{default:e}}var D_=As(),BM=ze(),gg=w_(BM),LM=ve(),qM=I_(),__=w_(qM);function mr(e){this.value=e}function hr(){}hr.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=D_.COMPILER_REVISION,r=D_.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,o){return LM.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,c=void 0,l=void 0;for(c=0,l=i.length;c<l;c++)s=i[c],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 gg.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
+ `+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,c){function l(d,m){return s.yytext=s.yytext.substring(d,s.yyleng-m+d)}var p=c;switch(u){case 0:if(s.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=l(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})();Fs.default=eM;HD.exports=Fs.default});var Ns=D((qs,GD)=>{"use strict";qs.__esModule=!0;function tM(e){return e&&e.__esModule?e:{default:e}}var nM=ze(),Jf=tM(nM);function Ls(){this.parents=[]}Ls.prototype={constructor:Ls,mutating:!1,acceptKey:function(t,r){var o=this.accept(t[r]);if(this.mutating){if(o&&!Ls.prototype[o.type])throw new Jf.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 Jf.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 Jf.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:Bs,Decorator:Bs,BlockStatement:ZD,DecoratorBlock:ZD,PartialStatement:KD,PartialBlockStatement:function(t){KD.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:Bs,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 Bs(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function ZD(e){Bs.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function KD(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}qs.default=Ls;GD.exports=qs.default});var JD=D((Us,QD)=>{"use strict";Us.__esModule=!0;function rM(e){return e&&e.__esModule?e:{default:e}}var oM=Ns(),iM=rM(oM);function rt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}rt.prototype=new iM.default;rt.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 c=Xf(o,n,r),l=Yf(o,n,r),p=u.openStandalone&&c,d=u.closeStandalone&&l,m=u.inlineStandalone&&c&&l;u.close&&mn(o,n,!0),u.open&&Nt(o,n,!0),t&&m&&(mn(o,n),Nt(o,n)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(o[n-1].original)[1])),t&&p&&(mn((s.program||s.inverse).body),Nt(o,n)),t&&d&&(mn(o,n),Nt((s.inverse||s.program).body))}}return e};rt.prototype.BlockStatement=rt.prototype.DecoratorBlock=rt.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:Yf(t.body),closeStandalone:Xf((o||t).body)};if(e.openStrip.close&&mn(t.body,null,!0),r){var s=e.inverseStrip;s.open&&Nt(t.body,null,!0),s.close&&mn(o.body,null,!0),e.closeStrip.open&&Nt(n.body,null,!0),!this.options.ignoreStandalone&&Xf(t.body)&&Yf(o.body)&&(Nt(t.body),mn(o.body))}else e.closeStrip.open&&Nt(t.body,null,!0);return i};rt.prototype.Decorator=rt.prototype.MustacheStatement=function(e){return e.strip};rt.prototype.PartialStatement=rt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Xf(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 Yf(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 mn(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 Nt(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}}Us.default=rt;QD.exports=Us.default});var XD=D(Fe=>{"use strict";Fe.__esModule=!0;Fe.SourceLocation=uM;Fe.id=cM;Fe.stripFlags=lM;Fe.stripComment=dM;Fe.preparePath=pM;Fe.prepareMustache=mM;Fe.prepareRawBlock=hM;Fe.prepareBlock=fM;Fe.prepareProgram=gM;Fe.preparePartialBlock=vM;function aM(e){return e&&e.__esModule?e:{default:e}}var sM=ze(),eg=aM(sM);function tg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new eg.default(e.path.original+" doesn't match "+t,r)}}function uM(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 cM(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function lM(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function dM(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function pM(e,t,r){r=this.locInfo(r);for(var o=e?"@":"",n=[],i=0,s=0,u=t.length;s<u;s++){var c=t[s].part,l=t[s].original!==c;if(o+=(t[s].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(n.length>0)throw new eg.default("Invalid path: "+o,{loc:r});c===".."&&i++}else n.push(c)}return{type:"PathExpression",data:e,depth:i,parts:n,original:o,loc:r}}function mM(e,t,r,o,n,i){var s=o.charAt(3)||o.charAt(2),u=s!=="{"&&s!=="&",c=/\*/.test(o);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:n,loc:this.locInfo(i)}}function hM(e,t,r,o){tg(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 fM(e,t,r,o,n,i){o&&o.path&&tg(e,o);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(s)throw new eg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=o.strip),c=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:c,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function gM(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 vM(e,t,r,o){return tg(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 t_=D(To=>{"use strict";To.__esModule=!0;To.parseWithoutProcessing=e_;To.parse=DM;function yM(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 YD(e){return e&&e.__esModule?e:{default:e}}var SM=VD(),ng=YD(SM),bM=JD(),TM=YD(bM),xM=XD(),EM=yM(xM),IM=ve();To.parser=ng.default;var Ws={};IM.extend(Ws,EM);function e_(e,t){if(e.type==="Program")return e;ng.default.yy=Ws,Ws.locInfo=function(o){return new Ws.SourceLocation(t&&t.srcName,o)};var r=ng.default.parse(e);return r}function DM(e,t){var r=e_(e,t),o=new TM.default(t);return o.accept(r)}});var i_=D(Do=>{"use strict";Do.__esModule=!0;Do.Compiler=rg;Do.precompile=kM;Do.compile=CM;function r_(e){return e&&e.__esModule?e:{default:e}}var _M=ze(),Eo=r_(_M),Io=ve(),wM=Qf(),xo=r_(wM),PM=[].slice;function rg(){}rg.prototype={compiler:rg,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||!o_(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=Io.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 Eo.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){n_(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 Eo.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){n_(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 Eo.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,xo.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],o=xo.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:PM.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var r=xo.default.helpers.simpleId(t.path),o=r&&!!this.blockParamIndex(t.path.parts[0]),n=!o&&xo.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&&!xo.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&&Io.indexOf(n,t);if(n&&i>=0)return[r,i]}}};function kM(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Eo.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 CM(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Eo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Io.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),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}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,c,l){return o||(o=n()),o._child(s,u,c,l)},i}function o_(e,t){if(e===t)return!0;if(Io.isArray(e)&&Io.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!o_(e[r],t[r]))return!1;return!0}}function n_(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 s_=D(og=>{var a_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");og.encode=function(e){if(0<=e&&e<a_.length)return a_[e];throw new TypeError("Must be between 0 and 63: "+e)};og.decode=function(e){var t=65,r=90,o=97,n=122,i=48,s=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:o<=e&&e<=n?e-o+l:i<=e&&e<=s?e-i+p:e==u?62:e==c?63:-1}});var sg=D(ag=>{var u_=s_(),ig=5,c_=1<<ig,l_=c_-1,d_=c_;function AM(e){return e<0?(-e<<1)+1:(e<<1)+0}function RM(e){var t=(e&1)===1,r=e>>1;return t?-r:r}ag.encode=function(t){var r="",o,n=AM(t);do o=n&l_,n>>>=ig,n>0&&(o|=d_),r+=u_.encode(o);while(n>0);return r};ag.decode=function(t,r,o){var n=t.length,i=0,s=0,u,c;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(c=u_.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&d_),c&=l_,i=i+(c<<s),s+=ig}while(u);o.value=RM(i),o.rest=r}});var lr=D(de=>{function $M(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}de.getArg=$M;var p_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,jM=/^data:.+\,.+$/;function _o(e){var t=e.match(p_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}de.urlParse=_o;function ur(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}de.urlGenerate=ur;function ug(e){var t=e,r=_o(e);if(r){if(!r.path)return e;t=r.path}for(var o=de.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,ur(r)):t}de.normalize=ug;function m_(e,t){e===""&&(e="."),t===""&&(t=".");var r=_o(t),o=_o(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),ur(r);if(r||t.match(jM))return t;if(o&&!o.host&&!o.path)return o.host=t,ur(o);var n=t.charAt(0)==="/"?t:ug(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=n,ur(o)):n}de.join=m_;de.isAbsolute=function(e){return e.charAt(0)==="/"||p_.test(e)};function OM(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)}de.relative=OM;var h_=(function(){var e=Object.create(null);return!("__proto__"in e)})();function f_(e){return e}function MM(e){return g_(e)?"$"+e:e}de.toSetString=h_?f_:MM;function zM(e){return g_(e)?e.slice(1):e}de.fromSetString=h_?f_:zM;function g_(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 FM(e,t,r){var o=cr(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:cr(e.name,t.name)}de.compareByOriginalPositions=FM;function LM(e,t,r){var o=e.generatedLine-t.generatedLine;return o!==0||(o=e.generatedColumn-t.generatedColumn,o!==0||r)||(o=cr(e.source,t.source),o!==0)||(o=e.originalLine-t.originalLine,o!==0)||(o=e.originalColumn-t.originalColumn,o!==0)?o:cr(e.name,t.name)}de.compareByGeneratedPositionsDeflated=LM;function cr(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function BM(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=cr(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:cr(e.name,t.name)}de.compareByGeneratedPositionsInflated=BM;function qM(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}de.parseSourceMapInput=qM;function NM(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var o=_o(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=m_(ur(o),t)}return ug(t)}de.computeSourceURL=NM});var dg=D(v_=>{var cg=lr(),lg=Object.prototype.hasOwnProperty,hn=typeof Map<"u";function Tt(){this._array=[],this._set=hn?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 hn?this._set.size:Object.getOwnPropertyNames(this._set).length};Tt.prototype.add=function(t,r){var o=hn?t:cg.toSetString(t),n=hn?this.has(t):lg.call(this._set,o),i=this._array.length;(!n||r)&&this._array.push(t),n||(hn?this._set.set(t,i):this._set[o]=i)};Tt.prototype.has=function(t){if(hn)return this._set.has(t);var r=cg.toSetString(t);return lg.call(this._set,r)};Tt.prototype.indexOf=function(t){if(hn){var r=this._set.get(t);if(r>=0)return r}else{var o=cg.toSetString(t);if(lg.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()};v_.ArraySet=Tt});var b_=D(S_=>{var y_=lr();function UM(e,t){var r=e.generatedLine,o=t.generatedLine,n=e.generatedColumn,i=t.generatedColumn;return o>r||o==r&&i>=n||y_.compareByGeneratedPositionsInflated(e,t)<=0}function Hs(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Hs.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Hs.prototype.add=function(t){UM(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Hs.prototype.toArray=function(){return this._sorted||(this._array.sort(y_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};S_.MappingList=Hs});var pg=D(T_=>{var wo=sg(),X=lr(),Vs=dg().ArraySet,WM=b_().MappingList;function Le(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 Vs,this._names=new Vs,this._mappings=new WM,this._sourcesContents=null}Le.prototype._version=3;Le.fromSourceMap=function(t){var r=t.sourceRoot,o=new Le({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};Le.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})};Le.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))};Le.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 Vs,u=new Vs;this._mappings.unsortedForEach(function(c){if(c.source===n&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,o!=null&&(c.source=X.join(o,c.source)),i!=null&&(c.source=X.relative(i,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!s.has(p)&&s.add(p);var d=c.name;d!=null&&!u.has(d)&&u.add(d)},this),this._sources=s,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(o!=null&&(c=X.join(o,c)),i!=null&&(c=X.relative(i,c)),this.setSourceContent(c,l))},this)};Le.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}))}};Le.prototype._serializeMappings=function(){for(var t=0,r=1,o=0,n=0,i=0,s=0,u="",c,l,p,d,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(l=m[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,m[h-1]))continue;c+=","}c+=wo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(d=this._sources.indexOf(l.source),c+=wo.encode(d-s),s=d,c+=wo.encode(l.originalLine-1-n),n=l.originalLine-1,c+=wo.encode(l.originalColumn-o),o=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=wo.encode(p-i),i=p)),u+=c}return u};Le.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)};Le.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};Le.prototype.toString=function(){return JSON.stringify(this.toJSON())};T_.SourceMapGenerator=Le});var x_=D(fn=>{fn.GREATEST_LOWER_BOUND=1;fn.LEAST_UPPER_BOUND=2;function mg(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?mg(s,t,r,o,n,i):i==fn.LEAST_UPPER_BOUND?t<o.length?t:-1:s:s-e>1?mg(e,s,r,o,n,i):i==fn.LEAST_UPPER_BOUND?s:e<0?-1:e}fn.search=function(t,r,o,n){if(r.length===0)return-1;var i=mg(-1,r.length,t,r,o,n||fn.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(r[i],r[i-1],!0)===0;)--i;return i}});var I_=D(E_=>{function hg(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function HM(e,t){return Math.round(e+Math.random()*(t-e))}function fg(e,t,r,o){if(r<o){var n=HM(r,o),i=r-1;hg(e,n,o);for(var s=e[o],u=r;u<o;u++)t(e[u],s)<=0&&(i+=1,hg(e,i,u));hg(e,i+1,u);var c=i+1;fg(e,t,r,c-1),fg(e,t,c+1,o)}}E_.quickSort=function(e,t){fg(e,t,0,e.length-1)}});var __=D(Zs=>{var k=lr(),gg=x_(),dr=dg().ArraySet,VM=sg(),Po=I_().quickSort;function Z(e,t){var r=e;return typeof e=="string"&&(r=k.parseSourceMapInput(e)),r.sections!=null?new We(r,t):new ae(r,t)}Z.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};Z.prototype._version=3;Z.prototype.__generatedMappings=null;Object.defineProperty(Z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Z.prototype.__originalMappings=null;Object.defineProperty(Z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Z.prototype._charIsMappingSeparator=function(t,r){var o=t.charAt(r);return o===";"||o===","};Z.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Z.GENERATED_ORDER=1;Z.ORIGINAL_ORDER=2;Z.GREATEST_LOWER_BOUND=1;Z.LEAST_UPPER_BOUND=2;Z.prototype.eachMapping=function(t,r,o){var n=r||null,i=o||Z.GENERATED_ORDER,s;switch(i){case Z.GENERATED_ORDER:s=this._generatedMappings;break;case Z.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;s.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=k.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,n)};Z.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,gg.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:k.getArg(s,"generatedLine",null),column:k.getArg(s,"generatedColumn",null),lastColumn:k.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var c=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==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]}return n};Zs.SourceMapConsumer=Z;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),u=k.getArg(r,"sourcesContent",null),c=k.getArg(r,"mappings"),l=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=dr.fromArray(i.map(String),!0),this._sources=dr.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(p){return k.computeSourceURL(s,p,t)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}ae.prototype=Object.create(Z.prototype);ae.prototype.consumer=Z;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=dr.fromArray(t._names.toArray(),!0),i=o._sources=dr.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(),u=o.__generatedMappings=[],c=o.__originalMappings=[],l=0,p=s.length;l<p;l++){var d=s[l],m=new D_;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)),c.push(m)),u.push(m)}return Po(o.__originalMappings,k.compareByOriginalPositions),o};ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function D_(){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,u=0,c=0,l=t.length,p=0,d={},m={},h=[],g=[],y,P,I,R,q;p<l;)if(t.charAt(p)===";")o++,p++,n=0;else if(t.charAt(p)===",")p++;else{for(y=new D_,y.generatedLine=o,R=p;R<l&&!this._charIsMappingSeparator(t,R);R++);if(P=t.slice(p,R),I=d[P],I)p+=P.length;else{for(I=[];p<R;)VM.decode(t,p,m),q=m.value,p=m.rest,I.push(q);if(I.length===2)throw new Error("Found a source, but no line and column");if(I.length===3)throw new Error("Found a source and line, but no column");d[P]=I}y.generatedColumn=n+I[0],n=y.generatedColumn,I.length>1&&(y.source=u+I[1],u+=I[1],y.originalLine=i+I[2],i=y.originalLine,y.originalLine+=1,y.originalColumn=s+I[3],s=y.originalColumn,I.length>4&&(y.name=c+I[4],c+=I[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}Po(g,k.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Po(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 gg.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",Z.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",Z.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}};Zs.BasicSourceMapConsumer=ae;function We(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 dr,this._names=new dr;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=k.getArg(s,"offset"),c=k.getArg(u,"line"),l=k.getArg(u,"column");if(c<i.line||c===i.line&&l<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Z(k.getArg(s,"map"),t)}})}We.prototype=Object.create(Z.prototype);We.prototype.constructor=Z;We.prototype._version=3;Object.defineProperty(We.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}});We.prototype.originalPositionFor=function(t){var r={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},o=gg.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}};We.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};We.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.')};We.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}};We.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],c=n.consumer._sources.at(u.source);c=k.computeSourceURL(n.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=n.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,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:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Po(this.__generatedMappings,k.compareByGeneratedPositionsDeflated),Po(this.__originalMappings,k.compareByOriginalPositions)};Zs.IndexedSourceMapConsumer=We});var P_=D(w_=>{var ZM=pg().SourceMapGenerator,Ks=lr(),KM=/(\r?\n)/,GM=10,pr="$$$isSourceNode$$$";function ke(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[pr]=!0,o!=null&&this.add(o)}ke.fromStringWithSourceMap=function(t,r,o){var n=new ke,i=t.split(KM),s=0,u=function(){var m=g(),h=g()||"";return m+h;function g(){return s<i.length?i[s++]:void 0}},c=1,l=0,p=null;return r.eachMapping(function(m){if(p!==null)if(c<m.generatedLine)d(p,u()),c++,l=0;else{var h=i[s]||"",g=h.substr(0,m.generatedColumn-l);i[s]=h.substr(m.generatedColumn-l),l=m.generatedColumn,d(p,g),p=m;return}for(;c<m.generatedLine;)n.add(u()),c++;if(l<m.generatedColumn){var h=i[s]||"";n.add(h.substr(0,m.generatedColumn)),i[s]=h.substr(m.generatedColumn),l=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=Ks.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?Ks.join(o,m.source):m.source;n.add(new ke(m.originalLine,m.originalColumn,g,h,m.name))}}};ke.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[pr]||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};ke.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[pr]||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};ke.prototype.walk=function(t){for(var r,o=0,n=this.children.length;o<n;o++)r=this.children[o],r[pr]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};ke.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};ke.prototype.replaceRight=function(t,r){var o=this.children[this.children.length-1];return o[pr]?o.replaceRight(t,r):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,r):this.children.push("".replace(t,r)),this};ke.prototype.setSourceContent=function(t,r){this.sourceContents[Ks.toSetString(t)]=r};ke.prototype.walkSourceContents=function(t){for(var r=0,o=this.children.length;r<o;r++)this.children[r][pr]&&this.children[r].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),r=0,o=n.length;r<o;r++)t(Ks.fromSetString(n[r]),this.sourceContents[n[r]])};ke.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};ke.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},o=new ZM(t),n=!1,i=null,s=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((i!==p.source||s!==p.line||u!==p.column||c!==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,c=p.name,n=!0):n&&(o.addMapping({generated:{line:r.line,column:r.column}}),i=null,n=!1);for(var d=0,m=l.length;d<m;d++)l.charCodeAt(d)===GM?(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(l,p){o.setSourceContent(l,p)}),{code:r.code,map:o}};w_.SourceNode=ke});var k_=D(Gs=>{Gs.SourceMapGenerator=pg().SourceMapGenerator;Gs.SourceMapConsumer=__().SourceMapConsumer;Gs.SourceNode=P_().SourceNode});var $_=D((Qs,R_)=>{"use strict";Qs.__esModule=!0;var yg=ve(),gn=void 0;try{(typeof define!="function"||!define.amd)&&(C_=k_(),gn=C_.SourceNode)}catch{}var C_;gn||(gn=function(e,t,r,o){this.src="",o&&this.add(o)},gn.prototype={add:function(t){yg.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){yg.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function vg(e,t,r){if(yg.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 A_(e){this.srcFile=e,this.source=[]}A_.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,`
39
+ `])}),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 gn(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 gn?t:(t=vg(t,this,r),new gn(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=vg(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(vg(t[o],this));return r},generateArray:function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r}};Qs.default=A_;R_.exports=Qs.default});var F_=D((Js,z_)=>{"use strict";Js.__esModule=!0;function M_(e){return e&&e.__esModule?e:{default:e}}var j_=Rs(),QM=ze(),Sg=M_(QM),JM=ve(),XM=$_(),O_=M_(XM);function mr(e){this.value=e}function hr(){}hr.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=j_.COMPILER_REVISION,r=j_.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,o){return JM.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,c=void 0,l=void 0;for(c=0,l=i.length;c<l;c++)s=i[c],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 Sg.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
40
  `]),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) {
41
41
  `),this.decorators.push(`}
42
- `),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(c=0,l=h.length;c<l;c++)h[c]&&(d[c]=h[c],g[c]&&(d[c+"_d"]=g[c],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 __.default(this.options.srcName),this.decorators=new __.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(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(o+=", alias"+ ++i+"="+c,l.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(","),`) {
42
+ `),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(c=0,l=h.length;c<l;c++)h[c]&&(d[c]=h[c],g[c]&&(d[c+"_d"]=g[c],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 O_.default(this.options.srcName),this.decorators=new O_.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(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(o+=", alias"+ ++i+"="+c,l.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(","),`) {
43
43
  `,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(c){c.appendToBuffer?(s?c.prepend(" + "):s=c,u=c):(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?"":`;
44
44
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
45
45
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -48,17 +48,17 @@ Expecting `+Fo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":yu="Parse error
48
48
  }
49
49
  return undefined
50
50
  }
51
- `.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(NM(this.options.strict&&i,this,r,o,t));return}for(var u=r.length;o<u;o++)this.replaceStack(function(c){var l=s.nameLookup(c,r[o],t);return n?[" && ",l]:[" != null ? ",l," : ",c]})},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,"||"),")"],c=this.source.functionCall(u,"call",i.callParams);this.push(c)},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:hr,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 c=this.matchExistingProgram(n);if(c==null){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=i.compile(n,r,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=c.index,n.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.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 mr||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new mr(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 gg.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof mr)o=[s.value],r=["(",o],i=!0;else{n=!0;var u=this.incrStack();r=["((",this.push(u)," = ",s,")"],o=this.topStack()}var c=t.call(this,o);i||this.popStack(),n&&this.stackSlot--,this.push(r.concat(c,")"))},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 mr)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 mr)return o.value;if(!r){if(!this.stackSlot)throw new gg.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 mr?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=[],c=!o,l=void 0;c&&(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--;)l=this.popStack(),o[m]=l,this.trackIds&&(u[m]=this.popStack()),this.stringParams&&(s[m]=this.popStack(),i[m]=this.popStack());return c&&(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=hr.RESERVED_WORDS={},r=0,o=e.length;r<o;r++)t[e[r]]=!0})();hr.isValidJavaScriptVariableName=function(e){return!hr.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function NM(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}Qs.default=hr;P_.exports=Qs.default});var R_=D((Js,A_)=>{"use strict";Js.__esModule=!0;function Po(e){return e&&e.__esModule?e:{default:e}}var UM=$D(),WM=Po(UM),HM=Zf(),VM=Po(HM),vg=VD(),yg=QD(),ZM=k_(),KM=Po(ZM),GM=qs(),QM=Po(GM),JM=Uf(),XM=Po(JM),YM=WM.default.create;function C_(){var e=YM();return e.compile=function(t,r){return yg.compile(t,r,e)},e.precompile=function(t,r){return yg.precompile(t,r,e)},e.AST=VM.default,e.Compiler=yg.Compiler,e.JavaScriptCompiler=KM.default,e.Parser=vg.parser,e.parse=vg.parse,e.parseWithoutProcessing=vg.parseWithoutProcessing,e}var fr=C_();fr.create=C_;XM.default(fr);fr.Visitor=QM.default;fr.default=fr;Js.default=fr;A_.exports=Js.default});var $_=D(Xs=>{"use strict";Xs.__esModule=!0;Xs.print=r4;Xs.PrintVisitor=G;function e4(e){return e&&e.__esModule?e:{default:e}}var t4=qs(),n4=e4(t4);function r4(e){return new G().accept(e)}function G(){this.padding=0}G.prototype=new n4.default;G.prototype.pad=function(e){for(var t="",r=0,o=this.padding;r<o;r++)t+=" ";return t+=e+`
52
- `,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 z_=D((QW,M_)=>{var Ys=R_().default,O_=$_();Ys.PrintVisitor=O_.PrintVisitor;Ys.print=O_.print;M_.exports=Ys;function j_(e,t){var r=De("fs"),o=r.readFileSync(t,"utf8");e.exports=Ys.compile(o)}typeof De<"u"&&De.extensions&&(De.extensions[".handlebars"]=j_,De.extensions[".hbs"]=j_)});var tu=D((d5,U_)=>{var xg=[],N_=0,pe=(e,t)=>{N_>=t&&xg.push(e)};pe.WARN=1;pe.INFO=2;pe.DEBUG=3;pe.reset=()=>{xg=[]};pe.setDebugLevel=e=>{N_=e};pe.warn=e=>pe(e,pe.WARN);pe.info=e=>pe(e,pe.INFO);pe.debug=e=>pe(e,pe.DEBUG);pe.debugMessages=()=>xg;U_.exports=pe});var H_=D((p5,W_)=>{"use strict";W_.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 Z_=D((m5,V_)=>{"use strict";var u4=H_();V_.exports=e=>typeof e=="string"?e.replace(u4(),""):e});var G_=D((h5,Eg)=>{"use strict";var K_=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);Eg.exports=K_;Eg.exports.default=K_});var J_=D((f5,Q_)=>{"use strict";Q_.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 Y_=D((g5,Ig)=>{"use strict";var c4=Z_(),l4=G_(),d4=J_(),X_=e=>{if(typeof e!="string"||e.length===0||(e=c4(e),e.length===0))return 0;e=e.replace(d4()," ");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+=l4(o)?2:1)}return t};Ig.exports=X_;Ig.exports.default=X_});var Dg=D((v5,rw)=>{var ew=Y_();function nu(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function ot(e){let t=nu();return(""+e).replace(t,"").split(`
53
- `).reduce(function(n,i){return ew(i)>n?ew(i):n},0)}function ko(e,t){return Array(t+1).join(e)}function p4(e,t,r,o){let n=ot(e);if(t+1>=n){let i=t-n;switch(o){case"right":{e=ko(r,i)+e;break}case"center":{let s=Math.ceil(i/2),u=i-s;e=ko(r,u)+e+ko(r,s);break}default:{e=e+ko(r,i);break}}}return e}var gr={};function Co(e,t,r){t="\x1B["+t+"m",r="\x1B["+r+"m",gr[t]={set:e,to:!0},gr[r]={set:e,to:!1},gr[e]={on:t,off:r}}Co("bold",1,22);Co("italics",3,23);Co("underline",4,24);Co("inverse",7,27);Co("strikethrough",9,29);function tw(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=gr[t[0]];o&&(e[o.set]=o.to)}function m4(e){let t=nu(!0),r=t.exec(e),o={};for(;r!==null;)tw(o,r),r=t.exec(e);return o}function nw(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+=gr[n].off)}),r&&r!="\x1B[49m"&&(t+="\x1B[49m"),o&&o!="\x1B[39m"&&(t+="\x1B[39m"),t}function h4(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=gr[n].on+t)}),r&&r!="\x1B[49m"&&(t=r+t),o&&o!="\x1B[39m"&&(t=o+t),t}function f4(e,t){if(e.length===ot(e))return e.substr(0,t);for(;ot(e)>t;)e=e.slice(0,-1);return e}function g4(e,t){let r=nu(!0),o=e.split(nu()),n=0,i=0,s="",u,c={};for(;i<t;){u=r.exec(e);let l=o[n];if(n++,i+ot(l)>t&&(l=f4(l,t-i)),s+=l,i+=ot(l),i<t){if(!u)break;s+=u[0],tw(c,u)}}return nw(c,s)}function v4(e,t,r){if(r=r||"\u2026",ot(e)<=t)return e;t-=ot(r);let n=g4(e,t);n+=r;let i="\x1B]8;;\x07";return e.includes(i)&&!n.includes(i)&&(n+=i),n}function y4(){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 S4(e,t){e=e||{},t=t||y4();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 b4(e,t){let r=[],o=t.split(/(\s+)/g),n=[],i=0,s;for(let u=0;u<o.length;u+=2){let c=o[u],l=i+ot(c);i>0&&s&&(l+=s.length),l>e?(i!==0&&r.push(n.join("")),n=[c],i=ot(c)):(n.push(s||"",c),i=l),s=o[u+1]}return i&&r.push(n.join("")),r}function T4(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 x4(e,t,r=!0){let o=[];t=t.split(`
54
- `);let n=r?b4:T4;for(let i=0;i<t.length;i++)o.push.apply(o,n(e,t[i]));return o}function E4(e){let t={},r=[];for(let o=0;o<e.length;o++){let n=h4(t,e[o]);t=m4(n);let i=Object.assign({},t);r.push(nw(i,n))}return r}function I4(e,t){return["\x1B]","8",";",";",e||t,"\x07",t,"\x1B]","8",";",";","\x07"].join("")}rw.exports={strlen:ot,repeat:ko,pad:p4,truncate:v4,mergeOptions:S4,wordWrap:x4,colorizeLines:E4,hyperlink:I4}});var sw=D((y5,aw)=>{var iw={};aw.exports=iw;var ow={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(ow).forEach(function(e){var t=ow[e],r=iw[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m"})});var cw=D((S5,uw)=>{"use strict";uw.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 dw=D((b5,lw)=>{"use strict";var D4=De("os"),He=cw(),ye=process.env,vr=void 0;He("no-color")||He("no-colors")||He("color=false")?vr=!1:(He("color")||He("colors")||He("color=true")||He("color=always"))&&(vr=!0);"FORCE_COLOR"in ye&&(vr=ye.FORCE_COLOR.length===0||parseInt(ye.FORCE_COLOR,10)!==0);function _4(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function w4(e){if(vr===!1)return 0;if(He("color=16m")||He("color=full")||He("color=truecolor"))return 3;if(He("color=256"))return 2;if(e&&!e.isTTY&&vr!==!0)return 0;var t=vr?1:0;if(process.platform==="win32"){var r=D4.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 _g(e){var t=w4(e);return _4(t)}lw.exports={supportsColor:_g,stdout:_g(process.stdout),stderr:_g(process.stderr)}});var mw=D((T5,pw)=>{pw.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 fw=D((x5,hw)=>{hw.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(c){var l=Math.floor(Math.random()*c);return l}function s(c){var l=!1;return n.filter(function(p){l=p===c}),l}function u(c,l){var p="",d,m;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",c=c.split("");for(m in c)if(!s(m)){switch(p=p+c[m],d={up:0,down:0,mid:0},l.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++)l[y]&&(p=p+o[y][i(o[y].length)])}return p}return u(t,r)}});var vw=D((E5,gw)=>{gw.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 Sw=D((I5,yw)=>{yw.exports=function(e){return function(t,r,o){return r%2===0?t:e.inverse(t)}}});var Tw=D((D5,bw)=>{bw.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 Ew=D((_5,xw)=>{xw.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 kw=D((P5,Pw)=>{var L={};Pw.exports=L;L.themes={};var P4=De("util"),vn=L.styles=sw(),Dw=Object.defineProperties,k4=new RegExp(/[\r\n]+/g);L.supportsColor=dw().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 w5=L.stylize=function(t,r){if(!L.enabled)return t+"";var o=vn[r];return!o&&r in L?L[r](t):o.open+t+o.close},C4=/[|\\{}()[\]^$+*?.]/g,A4=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(C4,"\\$&")};function _w(e){var t=function r(){return $4.apply(r,arguments)};return t._styles=e,t.__proto__=R4,t}var ww=(function(){var e={};return vn.grey=vn.gray,Object.keys(vn).forEach(function(t){vn[t].closeRe=new RegExp(A4(vn[t].close),"g"),e[t]={get:function(){return _w(this._styles.concat(t))}}}),e})(),R4=Dw(function(){},ww);function $4(){var e=Array.prototype.slice.call(arguments),t=e.map(function(s){return s!=null&&s.constructor===String?s:P4.inspect(s)}).join(" ");if(!L.enabled||!t)return t;for(var r=t.indexOf(`
55
- `)!=-1,o=this._styles,n=o.length;n--;){var i=vn[o[n]];t=i.open+t.replace(i.closeRe,i.open)+i.close,r&&(t=t.replace(k4,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 j4(){var e={};return Object.keys(ww).forEach(function(t){e[t]={get:function(){return _w([t])}}}),e}var O4=function(t,r){var o=r.split("");return o=o.map(t),o.join("")};L.trap=mw();L.zalgo=fw();L.maps={};L.maps.america=vw()(L);L.maps.zebra=Sw()(L);L.maps.rainbow=Tw()(L);L.maps.random=Ew()(L);for(Iw in L.maps)(function(e){L[e]=function(t){return O4(L.maps[e],t)}})(Iw);var Iw;Dw(L,j4())});var Aw=D((k5,Cw)=>{var M4=kw();Cw.exports=M4});var Ow=D((C5,ru)=>{var{info:z4,debug:jw}=tu(),Ce=Dg(),Pg=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={};B4.forEach(function(c){wg(o,n,c,i)}),this.truncate=this.options.truncate||t.truncate;let s=this.options.style=this.options.style||{},u=t.style;wg(s,u,"padding-left",this),wg(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=Ce.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(Ce.wordWrap(this.fixedWidth,this.content,i))}return this.wrapLines(this.content.split(`
56
- `))}wrapLines(t){let r=Ce.colorizeLines(t);return this.href?r.map(o=>Ce.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($w,-1),this.height=this.heights.reduce($w,-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=Ce.truncate(this.content,10,this.truncate);t||z4(`${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(Ce.repeat(this.chars[this.y==0?"top":"mid"],o))},this):(r.push(this._topLeftChar(0)),r.push(Ce.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=Aw();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 Ao;)m=this.cells[m.y][m.x-1];m instanceof Ro||(i=this.chars.rightMid)}let s=Ce.repeat(" ",this.paddingLeft),u=r?this.chars.right:"",c=Ce.repeat(" ",this.paddingRight),l=this.lines[t],p=this.width-(this.paddingLeft+this.paddingRight);o&&(l+=this.truncate||"\u2026");let d=Ce.truncate(l,p,this.truncate);return d=Ce.pad(d,p," ",this.hAlign),d=s+d+c,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=Ce.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 Ao;)s=this.cells[s.y][s.x-1];s instanceof Ro||(o=this.chars.rightMid)}let n=t?this.chars.right:"",i=Ce.repeat(" ",this.width);return this.stylizeLine(o,i,n)}},Ao=class{constructor(){}draw(t){return typeof t=="number"&&jw(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},Ro=class{constructor(t){this.originalCell=t}init(t){let r=this.y,o=this.originalCell.y;this.cellOffset=r-o,this.offset=F4(t.rowHeights,o,this.cellOffset)}draw(t){return t=="top"?this.originalCell.draw(this.offset,this.cellOffset):t=="bottom"?this.originalCell.draw("bottom"):(jw(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+t))}mergeTableOptions(){}};function Rw(...e){return e.filter(t=>t!=null).shift()}function wg(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]=Rw(e[n],e[r],t[n],t[r])):o[r]=Rw(e[r],t[r])}function F4(e,t,r){let o=e[t];for(let n=1;n<r;n++)o+=1+e[t+n];return o}function $w(e,t){return e+t+1}var B4=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];ru.exports=Pg;ru.exports.ColSpanCell=Ao;ru.exports.RowSpanCell=Ro});var Fw=D((A5,zw)=>{var{warn:L4,debug:q4}=tu(),kg=Ow(),{ColSpanCell:N4,RowSpanCell:U4}=kg;(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 I=0;y.forEach(function(R){R.y=P,R.x=P?e(g,I):I;let q=R.rowSpan||1,O=R.colSpan||1;if(q>1)for(let J=0;J<O;J++)g[R.x+J]=q;I=R.x+O}),Object.keys(g).forEach(R=>{g[R]--,g[R]<1&&delete g[R]})})}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),I=g.y,R=g.y-1+(g.rowSpan||1),q=!(y>R||I>P),O=h.x,J=h.x-1+(h.colSpan||1),Ve=g.x,ue=g.x-1+(g.colSpan||1),ov=!(O>ue||Ve>J);return q&&ov}function i(h,g,y){let P=Math.min(h.length-1,y),I={x:g,y};for(let R=0;R<=P;R++){let q=h[R];for(let O=0;O<q.length;O++)if(n(I,q[O]))return!0}return!1}function s(h,g,y,P){for(let I=y;I<P;I++)if(i(h,I,g))return!1;return!0}function u(h){h.forEach(function(g,y){g.forEach(function(P){for(let I=1;I<P.rowSpan;I++){let R=new U4(P);R.x=P.x,R.y=P.y+I,R.colSpan=P.colSpan,l(R,h[y+I])}})})}function c(h){for(let g=h.length-1;g>=0;g--){let y=h[g];for(let P=0;P<y.length;P++){let I=y[P];for(let R=1;R<I.colSpan;R++){let q=new N4;q.x=I.x+R,q.y=I.y,y.splice(P+1,0,q)}}}}function l(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);q4(`Max rows: ${g}; Max cols: ${y}`);for(let P=0;P<g;P++)for(let I=0;I<y;I++)if(!i(h,I,P)){let R={x:I,y:P,colSpan:1,rowSpan:1};for(I++;I<y&&!i(h,I,P);)R.colSpan++,I++;let q=P+1;for(;q<g&&s(h,q,R.x,R.x+R.colSpan);)R.rowSpan++,q++;let O=new kg(R);O.x=R.x,O.y=R.y,L4(`Missing cell at ${O.y}-${O.x}.`),l(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 kg(y)})})}function m(h){let g=d(h);return t(g),p(g),u(g),c(g),g}zw.exports={makeTableLayout:m,layoutTable:t,addRowSpanCells:u,maxWidth:r,fillInTable:p,computeWidths:Mw("colSpan","desiredWidth","x",1),computeHeights:Mw("rowSpan","desiredHeight","y",1)}})();function Mw(e,t,r,o){return function(n,i){let s=[],u=[],c={};i.forEach(function(l){l.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(l,p){typeof l=="number"&&(s[p]=l)});for(let l=u.length-1;l>=0;l--){let p=u[l],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,(!c[m]||c[m]<h)&&(c[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,c);for(let l=0;l<n.length;l++)n[l]=Math.max(o,n[l]||0)}}});var Lw=D((R5,Bw)=>{var xt=tu(),W4=Dg(),Cg=Fw(),ou=class extends Array{constructor(t){super();let r=W4.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=Cg.makeTableLayout(t);o.forEach(function(i){i.forEach(function(s){s.mergeTableOptions(this.options,o)},this)},this),Cg.computeWidths(this.options.colWidths,o),Cg.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)&&Ag(s,"top",n);for(let c=0;c<u;c++)Ag(s,c,n);i+1==o.length&&Ag(s,"bottom",n)}return n.join(`
51
+ `.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(YM(this.options.strict&&i,this,r,o,t));return}for(var u=r.length;o<u;o++)this.replaceStack(function(c){var l=s.nameLookup(c,r[o],t);return n?[" && ",l]:[" != null ? ",l," : ",c]})},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,"||"),")"],c=this.source.functionCall(u,"call",i.callParams);this.push(c)},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:hr,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 c=this.matchExistingProgram(n);if(c==null){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=i.compile(n,r,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=c.index,n.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.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 mr||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new mr(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 Sg.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof mr)o=[s.value],r=["(",o],i=!0;else{n=!0;var u=this.incrStack();r=["((",this.push(u)," = ",s,")"],o=this.topStack()}var c=t.call(this,o);i||this.popStack(),n&&this.stackSlot--,this.push(r.concat(c,")"))},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 mr)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 mr)return o.value;if(!r){if(!this.stackSlot)throw new Sg.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 mr?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=[],c=!o,l=void 0;c&&(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--;)l=this.popStack(),o[m]=l,this.trackIds&&(u[m]=this.popStack()),this.stringParams&&(s[m]=this.popStack(),i[m]=this.popStack());return c&&(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=hr.RESERVED_WORDS={},r=0,o=e.length;r<o;r++)t[e[r]]=!0})();hr.isValidJavaScriptVariableName=function(e){return!hr.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function YM(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}Js.default=hr;z_.exports=Js.default});var q_=D((Xs,B_)=>{"use strict";Xs.__esModule=!0;function ko(e){return e&&e.__esModule?e:{default:e}}var e4=ND(),t4=ko(e4),n4=Qf(),r4=ko(n4),bg=t_(),Tg=i_(),o4=F_(),i4=ko(o4),a4=Ns(),s4=ko(a4),u4=Vf(),c4=ko(u4),l4=t4.default.create;function L_(){var e=l4();return e.compile=function(t,r){return Tg.compile(t,r,e)},e.precompile=function(t,r){return Tg.precompile(t,r,e)},e.AST=r4.default,e.Compiler=Tg.Compiler,e.JavaScriptCompiler=i4.default,e.Parser=bg.parser,e.parse=bg.parse,e.parseWithoutProcessing=bg.parseWithoutProcessing,e}var fr=L_();fr.create=L_;c4.default(fr);fr.Visitor=s4.default;fr.default=fr;Xs.default=fr;B_.exports=Xs.default});var N_=D(Ys=>{"use strict";Ys.__esModule=!0;Ys.print=h4;Ys.PrintVisitor=G;function d4(e){return e&&e.__esModule?e:{default:e}}var p4=Ns(),m4=d4(p4);function h4(e){return new G().accept(e)}function G(){this.padding=0}G.prototype=new m4.default;G.prototype.pad=function(e){for(var t="",r=0,o=this.padding;r<o;r++)t+=" ";return t+=e+`
52
+ `,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 V_=D((s5,H_)=>{var eu=q_().default,W_=N_();eu.PrintVisitor=W_.PrintVisitor;eu.print=W_.print;H_.exports=eu;function U_(e,t){var r=De("fs"),o=r.readFileSync(t,"utf8");e.exports=eu.compile(o)}typeof De<"u"&&De.extensions&&(De.extensions[".handlebars"]=U_,De.extensions[".hbs"]=U_)});var nu=D((x5,X_)=>{var Dg=[],J_=0,pe=(e,t)=>{J_>=t&&Dg.push(e)};pe.WARN=1;pe.INFO=2;pe.DEBUG=3;pe.reset=()=>{Dg=[]};pe.setDebugLevel=e=>{J_=e};pe.warn=e=>pe(e,pe.WARN);pe.info=e=>pe(e,pe.INFO);pe.debug=e=>pe(e,pe.DEBUG);pe.debugMessages=()=>Dg;X_.exports=pe});var ew=D((E5,Y_)=>{"use strict";Y_.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 nw=D((I5,tw)=>{"use strict";var S4=ew();tw.exports=e=>typeof e=="string"?e.replace(S4(),""):e});var ow=D((D5,_g)=>{"use strict";var rw=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);_g.exports=rw;_g.exports.default=rw});var aw=D((_5,iw)=>{"use strict";iw.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 uw=D((w5,wg)=>{"use strict";var b4=nw(),T4=ow(),x4=aw(),sw=e=>{if(typeof e!="string"||e.length===0||(e=b4(e),e.length===0))return 0;e=e.replace(x4()," ");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+=T4(o)?2:1)}return t};wg.exports=sw;wg.exports.default=sw});var Pg=D((P5,pw)=>{var cw=uw();function ru(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function ot(e){let t=ru();return(""+e).replace(t,"").split(`
53
+ `).reduce(function(n,i){return cw(i)>n?cw(i):n},0)}function Co(e,t){return Array(t+1).join(e)}function E4(e,t,r,o){let n=ot(e);if(t+1>=n){let i=t-n;switch(o){case"right":{e=Co(r,i)+e;break}case"center":{let s=Math.ceil(i/2),u=i-s;e=Co(r,u)+e+Co(r,s);break}default:{e=e+Co(r,i);break}}}return e}var gr={};function Ao(e,t,r){t="\x1B["+t+"m",r="\x1B["+r+"m",gr[t]={set:e,to:!0},gr[r]={set:e,to:!1},gr[e]={on:t,off:r}}Ao("bold",1,22);Ao("italics",3,23);Ao("underline",4,24);Ao("inverse",7,27);Ao("strikethrough",9,29);function lw(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=gr[t[0]];o&&(e[o.set]=o.to)}function I4(e){let t=ru(!0),r=t.exec(e),o={};for(;r!==null;)lw(o,r),r=t.exec(e);return o}function dw(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+=gr[n].off)}),r&&r!="\x1B[49m"&&(t+="\x1B[49m"),o&&o!="\x1B[39m"&&(t+="\x1B[39m"),t}function D4(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=gr[n].on+t)}),r&&r!="\x1B[49m"&&(t=r+t),o&&o!="\x1B[39m"&&(t=o+t),t}function _4(e,t){if(e.length===ot(e))return e.substr(0,t);for(;ot(e)>t;)e=e.slice(0,-1);return e}function w4(e,t){let r=ru(!0),o=e.split(ru()),n=0,i=0,s="",u,c={};for(;i<t;){u=r.exec(e);let l=o[n];if(n++,i+ot(l)>t&&(l=_4(l,t-i)),s+=l,i+=ot(l),i<t){if(!u)break;s+=u[0],lw(c,u)}}return dw(c,s)}function P4(e,t,r){if(r=r||"\u2026",ot(e)<=t)return e;t-=ot(r);let n=w4(e,t);n+=r;let i="\x1B]8;;\x07";return e.includes(i)&&!n.includes(i)&&(n+=i),n}function k4(){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 C4(e,t){e=e||{},t=t||k4();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 A4(e,t){let r=[],o=t.split(/(\s+)/g),n=[],i=0,s;for(let u=0;u<o.length;u+=2){let c=o[u],l=i+ot(c);i>0&&s&&(l+=s.length),l>e?(i!==0&&r.push(n.join("")),n=[c],i=ot(c)):(n.push(s||"",c),i=l),s=o[u+1]}return i&&r.push(n.join("")),r}function R4(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 $4(e,t,r=!0){let o=[];t=t.split(`
54
+ `);let n=r?A4:R4;for(let i=0;i<t.length;i++)o.push.apply(o,n(e,t[i]));return o}function j4(e){let t={},r=[];for(let o=0;o<e.length;o++){let n=D4(t,e[o]);t=I4(n);let i=Object.assign({},t);r.push(dw(i,n))}return r}function O4(e,t){return["\x1B]","8",";",";",e||t,"\x07",t,"\x1B]","8",";",";","\x07"].join("")}pw.exports={strlen:ot,repeat:Co,pad:E4,truncate:P4,mergeOptions:C4,wordWrap:$4,colorizeLines:j4,hyperlink:O4}});var gw=D((k5,fw)=>{var hw={};fw.exports=hw;var mw={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(mw).forEach(function(e){var t=mw[e],r=hw[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m"})});var yw=D((C5,vw)=>{"use strict";vw.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 bw=D((A5,Sw)=>{"use strict";var M4=De("os"),He=yw(),ye=process.env,vr=void 0;He("no-color")||He("no-colors")||He("color=false")?vr=!1:(He("color")||He("colors")||He("color=true")||He("color=always"))&&(vr=!0);"FORCE_COLOR"in ye&&(vr=ye.FORCE_COLOR.length===0||parseInt(ye.FORCE_COLOR,10)!==0);function z4(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function F4(e){if(vr===!1)return 0;if(He("color=16m")||He("color=full")||He("color=truecolor"))return 3;if(He("color=256"))return 2;if(e&&!e.isTTY&&vr!==!0)return 0;var t=vr?1:0;if(process.platform==="win32"){var r=M4.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 kg(e){var t=F4(e);return z4(t)}Sw.exports={supportsColor:kg,stdout:kg(process.stdout),stderr:kg(process.stderr)}});var xw=D((R5,Tw)=>{Tw.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 Iw=D(($5,Ew)=>{Ew.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(c){var l=Math.floor(Math.random()*c);return l}function s(c){var l=!1;return n.filter(function(p){l=p===c}),l}function u(c,l){var p="",d,m;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",c=c.split("");for(m in c)if(!s(m)){switch(p=p+c[m],d={up:0,down:0,mid:0},l.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++)l[y]&&(p=p+o[y][i(o[y].length)])}return p}return u(t,r)}});var _w=D((j5,Dw)=>{Dw.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 Pw=D((O5,ww)=>{ww.exports=function(e){return function(t,r,o){return r%2===0?t:e.inverse(t)}}});var Cw=D((M5,kw)=>{kw.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 Rw=D((z5,Aw)=>{Aw.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 Fw=D((L5,zw)=>{var B={};zw.exports=B;B.themes={};var L4=De("util"),vn=B.styles=gw(),jw=Object.defineProperties,B4=new RegExp(/[\r\n]+/g);B.supportsColor=bw().supportsColor;typeof B.enabled>"u"&&(B.enabled=B.supportsColor()!==!1);B.enable=function(){B.enabled=!0};B.disable=function(){B.enabled=!1};B.stripColors=B.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};var F5=B.stylize=function(t,r){if(!B.enabled)return t+"";var o=vn[r];return!o&&r in B?B[r](t):o.open+t+o.close},q4=/[|\\{}()[\]^$+*?.]/g,N4=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(q4,"\\$&")};function Ow(e){var t=function r(){return W4.apply(r,arguments)};return t._styles=e,t.__proto__=U4,t}var Mw=(function(){var e={};return vn.grey=vn.gray,Object.keys(vn).forEach(function(t){vn[t].closeRe=new RegExp(N4(vn[t].close),"g"),e[t]={get:function(){return Ow(this._styles.concat(t))}}}),e})(),U4=jw(function(){},Mw);function W4(){var e=Array.prototype.slice.call(arguments),t=e.map(function(s){return s!=null&&s.constructor===String?s:L4.inspect(s)}).join(" ");if(!B.enabled||!t)return t;for(var r=t.indexOf(`
55
+ `)!=-1,o=this._styles,n=o.length;n--;){var i=vn[o[n]];t=i.open+t.replace(i.closeRe,i.open)+i.close,r&&(t=t.replace(B4,function(s){return i.close+s+i.open}))}return t}B.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){B[r]=function(o){if(typeof e[r]=="object"){var n=o;for(var i in e[r])n=B[e[r][i]](n);return n}return B[e[r]](o)}})(t)};function H4(){var e={};return Object.keys(Mw).forEach(function(t){e[t]={get:function(){return Ow([t])}}}),e}var V4=function(t,r){var o=r.split("");return o=o.map(t),o.join("")};B.trap=xw();B.zalgo=Iw();B.maps={};B.maps.america=_w()(B);B.maps.zebra=Pw()(B);B.maps.rainbow=Cw()(B);B.maps.random=Rw()(B);for($w in B.maps)(function(e){B[e]=function(t){return V4(B.maps[e],t)}})($w);var $w;jw(B,H4())});var Bw=D((B5,Lw)=>{var Z4=Fw();Lw.exports=Z4});var Ww=D((q5,ou)=>{var{info:K4,debug:Uw}=nu(),Ce=Pg(),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={};Q4.forEach(function(c){Cg(o,n,c,i)}),this.truncate=this.options.truncate||t.truncate;let s=this.options.style=this.options.style||{},u=t.style;Cg(s,u,"padding-left",this),Cg(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=Ce.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(Ce.wordWrap(this.fixedWidth,this.content,i))}return this.wrapLines(this.content.split(`
56
+ `))}wrapLines(t){let r=Ce.colorizeLines(t);return this.href?r.map(o=>Ce.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(Nw,-1),this.height=this.heights.reduce(Nw,-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=Ce.truncate(this.content,10,this.truncate);t||K4(`${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(Ce.repeat(this.chars[this.y==0?"top":"mid"],o))},this):(r.push(this._topLeftChar(0)),r.push(Ce.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=Bw();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 Ro;)m=this.cells[m.y][m.x-1];m instanceof $o||(i=this.chars.rightMid)}let s=Ce.repeat(" ",this.paddingLeft),u=r?this.chars.right:"",c=Ce.repeat(" ",this.paddingRight),l=this.lines[t],p=this.width-(this.paddingLeft+this.paddingRight);o&&(l+=this.truncate||"\u2026");let d=Ce.truncate(l,p,this.truncate);return d=Ce.pad(d,p," ",this.hAlign),d=s+d+c,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=Ce.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 Ro;)s=this.cells[s.y][s.x-1];s instanceof $o||(o=this.chars.rightMid)}let n=t?this.chars.right:"",i=Ce.repeat(" ",this.width);return this.stylizeLine(o,i,n)}},Ro=class{constructor(){}draw(t){return typeof t=="number"&&Uw(`${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=G4(t.rowHeights,o,this.cellOffset)}draw(t){return t=="top"?this.originalCell.draw(this.offset,this.cellOffset):t=="bottom"?this.originalCell.draw("bottom"):(Uw(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+t))}mergeTableOptions(){}};function qw(...e){return e.filter(t=>t!=null).shift()}function Cg(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]=qw(e[n],e[r],t[n],t[r])):o[r]=qw(e[r],t[r])}function G4(e,t,r){let o=e[t];for(let n=1;n<r;n++)o+=1+e[t+n];return o}function Nw(e,t){return e+t+1}var Q4=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];ou.exports=Ag;ou.exports.ColSpanCell=Ro;ou.exports.RowSpanCell=$o});var Zw=D((N5,Vw)=>{var{warn:J4,debug:X4}=nu(),Rg=Ww(),{ColSpanCell:Y4,RowSpanCell:ez}=Rg;(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 I=0;y.forEach(function(R){R.y=P,R.x=P?e(g,I):I;let q=R.rowSpan||1,O=R.colSpan||1;if(q>1)for(let J=0;J<O;J++)g[R.x+J]=q;I=R.x+O}),Object.keys(g).forEach(R=>{g[R]--,g[R]<1&&delete g[R]})})}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),I=g.y,R=g.y-1+(g.rowSpan||1),q=!(y>R||I>P),O=h.x,J=h.x-1+(h.colSpan||1),Ve=g.x,ue=g.x-1+(g.colSpan||1),sv=!(O>ue||Ve>J);return q&&sv}function i(h,g,y){let P=Math.min(h.length-1,y),I={x:g,y};for(let R=0;R<=P;R++){let q=h[R];for(let O=0;O<q.length;O++)if(n(I,q[O]))return!0}return!1}function s(h,g,y,P){for(let I=y;I<P;I++)if(i(h,I,g))return!1;return!0}function u(h){h.forEach(function(g,y){g.forEach(function(P){for(let I=1;I<P.rowSpan;I++){let R=new ez(P);R.x=P.x,R.y=P.y+I,R.colSpan=P.colSpan,l(R,h[y+I])}})})}function c(h){for(let g=h.length-1;g>=0;g--){let y=h[g];for(let P=0;P<y.length;P++){let I=y[P];for(let R=1;R<I.colSpan;R++){let q=new Y4;q.x=I.x+R,q.y=I.y,y.splice(P+1,0,q)}}}}function l(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);X4(`Max rows: ${g}; Max cols: ${y}`);for(let P=0;P<g;P++)for(let I=0;I<y;I++)if(!i(h,I,P)){let R={x:I,y:P,colSpan:1,rowSpan:1};for(I++;I<y&&!i(h,I,P);)R.colSpan++,I++;let q=P+1;for(;q<g&&s(h,q,R.x,R.x+R.colSpan);)R.rowSpan++,q++;let O=new Rg(R);O.x=R.x,O.y=R.y,J4(`Missing cell at ${O.y}-${O.x}.`),l(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 Rg(y)})})}function m(h){let g=d(h);return t(g),p(g),u(g),c(g),g}Vw.exports={makeTableLayout:m,layoutTable:t,addRowSpanCells:u,maxWidth:r,fillInTable:p,computeWidths:Hw("colSpan","desiredWidth","x",1),computeHeights:Hw("rowSpan","desiredHeight","y",1)}})();function Hw(e,t,r,o){return function(n,i){let s=[],u=[],c={};i.forEach(function(l){l.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(l,p){typeof l=="number"&&(s[p]=l)});for(let l=u.length-1;l>=0;l--){let p=u[l],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,(!c[m]||c[m]<h)&&(c[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,c);for(let l=0;l<n.length;l++)n[l]=Math.max(o,n[l]||0)}}});var Gw=D((U5,Kw)=>{var xt=nu(),tz=Pg(),$g=Zw(),iu=class extends Array{constructor(t){super();let r=tz.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)&&jg(s,"top",n);for(let c=0;c<u;c++)jg(s,c,n);i+1==o.length&&jg(s,"bottom",n)}return n.join(`
57
57
  `)}get width(){return this.toString().split(`
58
- `)[0].length}};ou.reset=()=>xt.reset();function Ag(e,t,r){let o=[];e.forEach(function(i){o.push(i.draw(t))});let n=o.join("");n.length&&r.push(n)}Bw.exports=ou});var Nw=D(($5,qw)=>{qw.exports=Lw()});var yv=Bo(vv(),1),{program:_6,createCommand:w6,createArgument:P6,createOption:k6,CommanderError:C6,InvalidArgumentError:A6,InvalidOptionArgumentError:R6,Command:Sv,Argument:$6,Option:j6,Help:O6}=yv.default;import{createInterface as fj}from"node:readline/promises";var a={};st(a,{$brand:()=>Uo,$input:()=>nd,$output:()=>td,NEVER:()=>zu,TimePrecision:()=>ad,ZodAny:()=>Gp,ZodArray:()=>Yp,ZodBase64:()=>ga,ZodBase64URL:()=>va,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>ba,ZodBoolean:()=>Zn,ZodCIDRv4:()=>ha,ZodCIDRv6:()=>fa,ZodCUID:()=>sa,ZodCUID2:()=>ua,ZodCatch:()=>Tm,ZodCodec:()=>Pa,ZodCustom:()=>to,ZodCustomStringFormat:()=>Hn,ZodDate:()=>Qr,ZodDefault:()=>fm,ZodDiscriminatedUnion:()=>tm,ZodE164:()=>ya,ZodEmail:()=>oa,ZodEmoji:()=>ia,ZodEnum:()=>Un,ZodError:()=>QA,ZodExactOptional:()=>pm,ZodFile:()=>lm,ZodFirstPartyTypeKind:()=>$m,ZodFunction:()=>Cm,ZodGUID:()=>Hr,ZodIPv4:()=>pa,ZodIPv6:()=>ma,ZodISODate:()=>Xi,ZodISODateTime:()=>Ji,ZodISODuration:()=>ea,ZodISOTime:()=>Yi,ZodIntersection:()=>nm,ZodIssueCode:()=>XA,ZodJWT:()=>Sa,ZodKSUID:()=>da,ZodLazy:()=>wm,ZodLiteral:()=>cm,ZodMAC:()=>Np,ZodMap:()=>sm,ZodNaN:()=>Em,ZodNanoID:()=>aa,ZodNever:()=>Jp,ZodNonOptional:()=>_a,ZodNull:()=>Zp,ZodNullable:()=>hm,ZodNumber:()=>Vn,ZodNumberFormat:()=>en,ZodObject:()=>Xr,ZodOptional:()=>Da,ZodPipe:()=>wa,ZodPrefault:()=>vm,ZodPromise:()=>km,ZodReadonly:()=>Im,ZodRealError:()=>xe,ZodRecord:()=>eo,ZodSet:()=>um,ZodString:()=>Wn,ZodStringFormat:()=>H,ZodSuccess:()=>bm,ZodSymbol:()=>Hp,ZodTemplateLiteral:()=>_m,ZodTransform:()=>dm,ZodTuple:()=>om,ZodType:()=>z,ZodULID:()=>ca,ZodURL:()=>Gr,ZodUUID:()=>Je,ZodUndefined:()=>Vp,ZodUnion:()=>Yr,ZodUnknown:()=>Qp,ZodVoid:()=>Xp,ZodXID:()=>la,ZodXor:()=>em,_ZodString:()=>ra,_default:()=>gm,_function:()=>XS,any:()=>CS,array:()=>Jr,base64:()=>mS,base64url:()=>hS,bigint:()=>DS,boolean:()=>Wp,catch:()=>xm,check:()=>YS,cidrv4:()=>dS,cidrv6:()=>pS,clone:()=>me,codec:()=>GS,coerce:()=>jm,config:()=>K,core:()=>dt,cuid:()=>rS,cuid2:()=>oS,custom:()=>eb,date:()=>RS,decode:()=>Op,decodeAsync:()=>zp,describe:()=>tb,discriminatedUnion:()=>FS,e164:()=>fS,email:()=>Zy,emoji:()=>tS,encode:()=>jp,encodeAsync:()=>Mp,endsWith:()=>$n,enum:()=>Ea,exactOptional:()=>mm,file:()=>HS,flattenError:()=>Rr,float32:()=>TS,float64:()=>xS,formatError:()=>$r,fromJSONSchema:()=>ub,function:()=>XS,getErrorMap:()=>eR,globalRegistry:()=>te,gt:()=>Ge,gte:()=>he,guid:()=>Ky,hash:()=>bS,hex:()=>SS,hostname:()=>yS,httpUrl:()=>eS,includes:()=>An,instanceof:()=>rb,int:()=>na,int32:()=>ES,int64:()=>_S,intersection:()=>rm,ipv4:()=>uS,ipv6:()=>lS,iso:()=>Nn,json:()=>ib,jwt:()=>gS,keyof:()=>$S,ksuid:()=>sS,lazy:()=>Pm,length:()=>Xt,literal:()=>WS,locales:()=>qr,looseObject:()=>MS,looseRecord:()=>LS,lowercase:()=>kn,lt:()=>Ke,lte:()=>we,mac:()=>cS,map:()=>qS,maxLength:()=>Jt,maxSize:()=>Ct,meta:()=>nb,mime:()=>jn,minLength:()=>lt,minSize:()=>Qe,multipleOf:()=>kt,nan:()=>KS,nanoid:()=>nS,nativeEnum:()=>US,negative:()=>qi,never:()=>Ta,nonnegative:()=>Ui,nonoptional:()=>Sm,nonpositive:()=>Ni,normalize:()=>On,null:()=>Kp,nullable:()=>Zr,nullish:()=>VS,number:()=>Up,object:()=>jS,optional:()=>Vr,overwrite:()=>Ne,parse:()=>Cp,parseAsync:()=>Ap,partialRecord:()=>BS,pipe:()=>Kr,positive:()=>Li,prefault:()=>ym,preprocess:()=>ab,prettifyError:()=>Gu,promise:()=>JS,property:()=>Wi,readonly:()=>Dm,record:()=>am,refine:()=>Am,regex:()=>Pn,regexes:()=>je,registry:()=>Si,safeDecode:()=>Bp,safeDecodeAsync:()=>qp,safeEncode:()=>Fp,safeEncodeAsync:()=>Lp,safeParse:()=>Rp,safeParseAsync:()=>$p,set:()=>NS,setErrorMap:()=>YA,size:()=>Qt,slugify:()=>Bn,startsWith:()=>Rn,strictObject:()=>OS,string:()=>ta,stringFormat:()=>vS,stringbool:()=>ob,success:()=>ZS,superRefine:()=>Rm,symbol:()=>PS,templateLiteral:()=>QS,toJSONSchema:()=>Ki,toLowerCase:()=>zn,toUpperCase:()=>Fn,transform:()=>Ia,treeifyError:()=>Ku,trim:()=>Mn,tuple:()=>im,uint32:()=>IS,uint64:()=>wS,ulid:()=>iS,undefined:()=>kS,union:()=>xa,unknown:()=>Yt,uppercase:()=>Cn,url:()=>Yy,util:()=>T,uuid:()=>Gy,uuidv4:()=>Qy,uuidv6:()=>Jy,uuidv7:()=>Xy,void:()=>AS,xid:()=>aS,xor:()=>zS});var dt={};st(dt,{$ZodAny:()=>El,$ZodArray:()=>Pl,$ZodAsyncError:()=>qe,$ZodBase64:()=>ml,$ZodBase64URL:()=>hl,$ZodBigInt:()=>pi,$ZodBigIntFormat:()=>Sl,$ZodBoolean:()=>zr,$ZodCIDRv4:()=>ll,$ZodCIDRv6:()=>dl,$ZodCUID:()=>Xc,$ZodCUID2:()=>Yc,$ZodCatch:()=>Vl,$ZodCheck:()=>V,$ZodCheckBigIntFormat:()=>Pc,$ZodCheckEndsWith:()=>Lc,$ZodCheckGreaterThan:()=>ii,$ZodCheckIncludes:()=>Fc,$ZodCheckLengthEquals:()=>jc,$ZodCheckLessThan:()=>oi,$ZodCheckLowerCase:()=>Mc,$ZodCheckMaxLength:()=>Rc,$ZodCheckMaxSize:()=>kc,$ZodCheckMimeType:()=>Nc,$ZodCheckMinLength:()=>$c,$ZodCheckMinSize:()=>Cc,$ZodCheckMultipleOf:()=>_c,$ZodCheckNumberFormat:()=>wc,$ZodCheckOverwrite:()=>Uc,$ZodCheckProperty:()=>qc,$ZodCheckRegex:()=>Oc,$ZodCheckSizeEquals:()=>Ac,$ZodCheckStartsWith:()=>Bc,$ZodCheckStringFormat:()=>_n,$ZodCheckUpperCase:()=>zc,$ZodCodec:()=>Br,$ZodCustom:()=>ed,$ZodCustomStringFormat:()=>vl,$ZodDate:()=>wl,$ZodDefault:()=>Nl,$ZodDiscriminatedUnion:()=>Al,$ZodE164:()=>fl,$ZodEmail:()=>Kc,$ZodEmoji:()=>Qc,$ZodEncodeError:()=>It,$ZodEnum:()=>Ml,$ZodError:()=>Ar,$ZodExactOptional:()=>Ll,$ZodFile:()=>Fl,$ZodFunction:()=>Jl,$ZodGUID:()=>Vc,$ZodIPv4:()=>sl,$ZodIPv6:()=>ul,$ZodISODate:()=>ol,$ZodISODateTime:()=>rl,$ZodISODuration:()=>al,$ZodISOTime:()=>il,$ZodIntersection:()=>Rl,$ZodJWT:()=>gl,$ZodKSUID:()=>nl,$ZodLazy:()=>Yl,$ZodLiteral:()=>zl,$ZodMAC:()=>cl,$ZodMap:()=>jl,$ZodNaN:()=>Zl,$ZodNanoID:()=>Jc,$ZodNever:()=>Dl,$ZodNonOptional:()=>Wl,$ZodNull:()=>xl,$ZodNullable:()=>ql,$ZodNumber:()=>di,$ZodNumberFormat:()=>yl,$ZodObject:()=>Vv,$ZodObjectJIT:()=>kl,$ZodOptional:()=>hi,$ZodPipe:()=>Kl,$ZodPrefault:()=>Ul,$ZodPromise:()=>Xl,$ZodReadonly:()=>Gl,$ZodRealError:()=>Te,$ZodRecord:()=>$l,$ZodRegistry:()=>yi,$ZodSet:()=>Ol,$ZodString:()=>Gt,$ZodStringFormat:()=>W,$ZodSuccess:()=>Hl,$ZodSymbol:()=>bl,$ZodTemplateLiteral:()=>Ql,$ZodTransform:()=>Bl,$ZodTuple:()=>mi,$ZodType:()=>j,$ZodULID:()=>el,$ZodURL:()=>Gc,$ZodUUID:()=>Zc,$ZodUndefined:()=>Tl,$ZodUnion:()=>Fr,$ZodUnknown:()=>Il,$ZodVoid:()=>_l,$ZodXID:()=>tl,$ZodXor:()=>Cl,$brand:()=>Uo,$constructor:()=>f,$input:()=>nd,$output:()=>td,Doc:()=>Mr,JSONSchema:()=>Hy,JSONSchemaGenerator:()=>Gi,NEVER:()=>zu,TimePrecision:()=>ad,_any:()=>wd,_array:()=>jd,_base64:()=>Mi,_base64url:()=>zi,_bigint:()=>bd,_boolean:()=>yd,_catch:()=>NA,_check:()=>Wy,_cidrv4:()=>ji,_cidrv6:()=>Oi,_coercedBigint:()=>Td,_coercedBoolean:()=>Sd,_coercedDate:()=>Rd,_coercedNumber:()=>pd,_coercedString:()=>od,_cuid:()=>wi,_cuid2:()=>Pi,_custom:()=>Md,_date:()=>Ad,_decode:()=>Go,_decodeAsync:()=>Jo,_default:()=>BA,_discriminatedUnion:()=>wA,_e164:()=>Fi,_email:()=>bi,_emoji:()=>Di,_encode:()=>Ko,_encodeAsync:()=>Qo,_endsWith:()=>$n,_enum:()=>$A,_file:()=>Od,_float32:()=>hd,_float64:()=>fd,_gt:()=>Ge,_gte:()=>he,_guid:()=>Nr,_includes:()=>An,_int:()=>md,_int32:()=>gd,_int64:()=>xd,_intersection:()=>PA,_ipv4:()=>Ri,_ipv6:()=>$i,_isoDate:()=>ud,_isoDateTime:()=>sd,_isoDuration:()=>ld,_isoTime:()=>cd,_jwt:()=>Bi,_ksuid:()=>Ai,_lazy:()=>VA,_length:()=>Xt,_literal:()=>OA,_lowercase:()=>kn,_lt:()=>Ke,_lte:()=>we,_mac:()=>id,_map:()=>AA,_max:()=>we,_maxLength:()=>Jt,_maxSize:()=>Ct,_mime:()=>jn,_min:()=>he,_minLength:()=>lt,_minSize:()=>Qe,_multipleOf:()=>kt,_nan:()=>$d,_nanoid:()=>_i,_nativeEnum:()=>jA,_negative:()=>qi,_never:()=>kd,_nonnegative:()=>Ui,_nonoptional:()=>LA,_nonpositive:()=>Ni,_normalize:()=>On,_null:()=>_d,_nullable:()=>FA,_number:()=>dd,_optional:()=>zA,_overwrite:()=>Ne,_parse:()=>xn,_parseAsync:()=>En,_pipe:()=>UA,_positive:()=>Li,_promise:()=>ZA,_property:()=>Wi,_readonly:()=>WA,_record:()=>CA,_refine:()=>zd,_regex:()=>Pn,_safeDecode:()=>Yo,_safeDecodeAsync:()=>ti,_safeEncode:()=>Xo,_safeEncodeAsync:()=>ei,_safeParse:()=>In,_safeParseAsync:()=>Dn,_set:()=>RA,_size:()=>Qt,_slugify:()=>Bn,_startsWith:()=>Rn,_string:()=>rd,_stringFormat:()=>Ln,_stringbool:()=>qd,_success:()=>qA,_superRefine:()=>Fd,_symbol:()=>Id,_templateLiteral:()=>HA,_toLowerCase:()=>zn,_toUpperCase:()=>Fn,_transform:()=>MA,_trim:()=>Mn,_tuple:()=>kA,_uint32:()=>vd,_uint64:()=>Ed,_ulid:()=>ki,_undefined:()=>Dd,_union:()=>DA,_unknown:()=>Pd,_uppercase:()=>Cn,_url:()=>Ur,_uuid:()=>Ti,_uuidv4:()=>xi,_uuidv6:()=>Ei,_uuidv7:()=>Ii,_void:()=>Cd,_xid:()=>Ci,_xor:()=>_A,clone:()=>me,config:()=>K,createStandardJSONSchemaMethod:()=>qn,createToJSONSchemaMethod:()=>Nd,decode:()=>Qk,decodeAsync:()=>Xk,describe:()=>Bd,encode:()=>Gk,encodeAsync:()=>Jk,extractDefs:()=>Rt,finalize:()=>$t,flattenError:()=>Rr,formatError:()=>$r,globalConfig:()=>Ir,globalRegistry:()=>te,initializeContext:()=>At,isValidBase64:()=>pl,isValidBase64URL:()=>Nv,isValidJWT:()=>Uv,locales:()=>qr,meta:()=>Ld,parse:()=>Vo,parseAsync:()=>Zo,prettifyError:()=>Gu,process:()=>U,regexes:()=>je,registry:()=>Si,safeDecode:()=>eC,safeDecodeAsync:()=>nC,safeEncode:()=>Yk,safeEncodeAsync:()=>tC,safeParse:()=>Qu,safeParseAsync:()=>Ju,toDotPath:()=>Iv,toJSONSchema:()=>Ki,treeifyError:()=>Ku,util:()=>T,version:()=>Wc});var zu=Object.freeze({status:"aborted"});function f(e,t,r){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=s.prototype,p=Object.keys(l);for(let d=0;d<p.length;d++){let m=p[d];m in u||(u[m]=l[m].bind(u))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function s(u){var c;let l=r?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let p of l._zod.deferred)p();return l}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 Uo=Symbol("zod_brand"),qe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},It=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ir={};function K(e){return e&&Object.assign(Ir,e),Ir}var T={};st(T,{BIGINT_FORMAT_RANGES:()=>Zu,Class:()=>Bu,NUMBER_FORMAT_RANGES:()=>Vu,aborted:()=>Pt,allowsEval:()=>Nu,assert:()=>wk,assertEqual:()=>Ek,assertIs:()=>Dk,assertNever:()=>_k,assertNotEqual:()=>Ik,assignProp:()=>_t,base64ToUint8Array:()=>Tv,base64urlToUint8Array:()=>Wk,cached:()=>bn,captureStackTrace:()=>Ho,cleanEnum:()=>Uk,cleanRegex:()=>wr,clone:()=>me,cloneDef:()=>kk,createTransparentProxy:()=>Ok,defineLazy:()=>F,esc:()=>Wo,escapeRegex:()=>$e,extend:()=>Fk,finalizeIssue:()=>be,floatSafeRemainder:()=>Lu,getElementAtPath:()=>Ck,getEnumValues:()=>_r,getLengthableOrigin:()=>Cr,getParsedType:()=>jk,getSizableOrigin:()=>kr,hexToUint8Array:()=>Vk,isObject:()=>Zt,isPlainObject:()=>wt,issue:()=>Tn,joinValues:()=>v,jsonStringifyReplacer:()=>Sn,merge:()=>Lk,mergeDefs:()=>ct,normalizeParams:()=>x,nullish:()=>Dt,numKeys:()=>$k,objectClone:()=>Pk,omit:()=>zk,optionalKeys:()=>Hu,parsedType:()=>b,partial:()=>qk,pick:()=>Mk,prefixIssues:()=>_e,primitiveTypes:()=>Wu,promiseAllObject:()=>Ak,propertyKeyTypes:()=>Pr,randomString:()=>Rk,required:()=>Nk,safeExtend:()=>Bk,shallowClone:()=>Uu,slugify:()=>qu,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>xv,uint8ArrayToBase64url:()=>Hk,uint8ArrayToHex:()=>Zk,unwrapMessage:()=>Dr});function Ek(e){return e}function Ik(e){return e}function Dk(e){}function _k(e){throw new Error("Unexpected value in exhaustive check")}function wk(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 Sn(e,t){return typeof t=="bigint"?t.toString():t}function bn(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Dt(e){return e==null}function wr(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Lu(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 c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[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 bv=Symbol("evaluating");function F(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==bv)return o===void 0&&(o=bv,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Pk(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 ct(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function kk(e){return ct(e._zod.def)}function Ck(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function Ak(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 Rk(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Wo(e){return JSON.stringify(e)}function qu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Ho="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Nu=bn(()=>{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(Zt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Uu(e){return wt(e)?{...e}:Array.isArray(e)?[...e]:e}function $k(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}`)}},Pr=new Set(["string","number","symbol"]),Wu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function $e(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 Ok(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 Hu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Vu={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]},Zu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Mk(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=ct(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 me(e,i)}function zk(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=ct(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 me(e,i)}function Fk(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=ct(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _t(this,"shape",i),i}});return me(e,n)}function Bk(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=ct(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return _t(this,"shape",o),o}});return me(e,r)}function Lk(e,t){let r=ct(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 me(e,r)}function qk(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=ct(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(r)for(let l in r){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:u[l]}):u[l])}else for(let l in u)c[l]=e?new e({type:"optional",innerType:u[l]}):u[l];return _t(this,"shape",c),c},checks:[]});return me(t,s)}function Nk(e,t,r){let o=ct(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 me(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 Dr(e){return typeof e=="string"?e:e?.message}function be(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Dr(e.inst?._zod.def?.error?.(e))??Dr(t?.error?.(e))??Dr(r.customError?.(e))??Dr(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function kr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Cr(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 Tn(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function Uk(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Tv(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 xv(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Wk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Tv(t+r)}function Hk(e){return xv(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Vk(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 Zk(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Bu=class{constructor(...t){}};var Ev=(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,Sn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ar=f("$ZodError",Ev),Te=f("$ZodError",Ev,{Parent:Error});function Rr(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 $r(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 c=i.path[u];u===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return o(e),r}function Ku(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var s,u;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){r.errors.push(t(c));continue}let p=r,d=0;for(;d<l.length;){let m=l[d],h=d===l.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(c)),d++}}};return o(e),r}function Iv(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 Gu(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 ${Iv(o.path)}`);return t.join(`
59
- `)}var xn=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 qe;if(s.issues.length){let u=new(n?.Err??e)(s.issues.map(c=>be(c,i,K())));throw Ho(u,n?.callee),u}return s.value},Vo=xn(Te),En=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(c=>be(c,i,K())));throw Ho(u,n?.callee),u}return s.value},Zo=En(Te),In=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 qe;return i.issues.length?{success:!1,error:new(e??Ar)(i.issues.map(s=>be(s,n,K())))}:{success:!0,data:i.value}},Qu=In(Te),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=>be(s,n,K())))}:{success:!0,data:i.value}},Ju=Dn(Te),Ko=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return xn(e)(t,r,n)},Gk=Ko(Te),Go=e=>(t,r,o)=>xn(e)(t,r,o),Qk=Go(Te),Qo=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return En(e)(t,r,n)},Jk=Qo(Te),Jo=e=>async(t,r,o)=>En(e)(t,r,o),Xk=Jo(Te),Xo=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return In(e)(t,r,n)},Yk=Xo(Te),Yo=e=>(t,r,o)=>In(e)(t,r,o),eC=Yo(Te),ei=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dn(e)(t,r,n)},tC=ei(Te),ti=e=>async(t,r,o)=>Dn(e)(t,r,o),nC=ti(Te);var je={};st(je,{base64:()=>mc,base64url:()=>ni,bigint:()=>Sc,boolean:()=>Tc,browserEmail:()=>lC,cidrv4:()=>dc,cidrv6:()=>pc,cuid:()=>Xu,cuid2:()=>Yu,date:()=>fc,datetime:()=>vc,domain:()=>mC,duration:()=>oc,e164:()=>hc,email:()=>ac,emoji:()=>sc,extendedDuration:()=>rC,guid:()=>ic,hex:()=>hC,hostname:()=>pC,html5Email:()=>sC,idnEmail:()=>cC,integer:()=>bc,ipv4:()=>uc,ipv6:()=>cc,ksuid:()=>nc,lowercase:()=>Ic,mac:()=>lc,md5_base64:()=>gC,md5_base64url:()=>vC,md5_hex:()=>fC,nanoid:()=>rc,null:()=>xc,number:()=>ri,rfc5322Email:()=>uC,sha1_base64:()=>SC,sha1_base64url:()=>bC,sha1_hex:()=>yC,sha256_base64:()=>xC,sha256_base64url:()=>EC,sha256_hex:()=>TC,sha384_base64:()=>DC,sha384_base64url:()=>_C,sha384_hex:()=>IC,sha512_base64:()=>PC,sha512_base64url:()=>kC,sha512_hex:()=>wC,string:()=>yc,time:()=>gc,ulid:()=>ec,undefined:()=>Ec,unicodeEmail:()=>Dv,uppercase:()=>Dc,uuid:()=>Kt,uuid4:()=>oC,uuid6:()=>iC,uuid7:()=>aC,xid:()=>tc});var Xu=/^[cC][^\s-]{8,}$/,Yu=/^[0-9a-z]+$/,ec=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tc=/^[0-9a-vA-V]{20}$/,nc=/^[A-Za-z0-9]{27}$/,rc=/^[a-zA-Z0-9_-]{21}$/,oc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rC=/^[-+]?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)?)??$/,ic=/^([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})$/,Kt=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)$/,oC=Kt(4),iC=Kt(6),aC=Kt(7),ac=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sC=/^[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])?)*$/,uC=/^(([^<>()\[\]\\.,;:\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,}))$/,Dv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cC=Dv,lC=/^[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])?)*$/,dC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sc(){return new RegExp(dC,"u")}var uc=/^(?:(?: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])$/,cc=/^(([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}|:))$/,lc=e=>{let t=$e(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},dc=/^((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])$/,pc=/^(([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])$/,mc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ni=/^[A-Za-z0-9_-]*$/,pC=/^(?=.{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])?)*\.?$/,mC=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,hc=/^\+[1-9]\d{6,14}$/,_v="(?:(?:\\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])))",fc=new RegExp(`^${_v}$`);function wv(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 gc(e){return new RegExp(`^${wv(e)}$`)}function vc(e){let t=wv({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(`^${_v}T(?:${o})$`)}var yc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Sc=/^-?\d+n?$/,bc=/^-?\d+$/,ri=/^-?\d+(?:\.\d+)?$/,Tc=/^(?:true|false)$/i,xc=/^null$/i;var Ec=/^undefined$/i;var Ic=/^[^A-Z]*$/,Dc=/^[^a-z]*$/,hC=/^[0-9a-fA-F]*$/;function jr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Or(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var fC=/^[0-9a-fA-F]{32}$/,gC=jr(22,"=="),vC=Or(22),yC=/^[0-9a-fA-F]{40}$/,SC=jr(27,"="),bC=Or(27),TC=/^[0-9a-fA-F]{64}$/,xC=jr(43,"="),EC=Or(43),IC=/^[0-9a-fA-F]{96}$/,DC=jr(64,""),_C=Or(64),wC=/^[0-9a-fA-F]{128}$/,PC=jr(86,"=="),kC=Or(86);var V=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),kv={number:"number",bigint:"bigint",object:"date"},oi=f("$ZodCheckLessThan",(e,t)=>{V.init(e,t);let r=kv[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})}}),ii=f("$ZodCheckGreaterThan",(e,t)=>{V.init(e,t);let r=kv[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})}}),_c=f("$ZodCheckMultipleOf",(e,t)=>{V.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):Lu(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})}}),wc=f("$ZodCheckNumberFormat",(e,t)=>{V.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Vu[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=bc)}),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})}}),Pc=f("$ZodCheckBigIntFormat",(e,t)=>{V.init(e,t);let[r,o]=Zu[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})}}),kc=f("$ZodCheckMaxSize",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Cc=f("$ZodCheckMinSize",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ac=f("$ZodCheckSizeEquals",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(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})}}),Rc=f("$ZodCheckMaxLength",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(n);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$c=f("$ZodCheckMinLength",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(n);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),jc=f("$ZodCheckLengthEquals",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(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})}}),_n=f("$ZodCheckStringFormat",(e,t)=>{var r,o;V.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=()=>{})}),Oc=f("$ZodCheckRegex",(e,t)=>{_n.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})}}),Mc=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ic),_n.init(e,t)}),zc=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dc),_n.init(e,t)}),Fc=f("$ZodCheckIncludes",(e,t)=>{V.init(e,t);let r=$e(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})}}),Bc=f("$ZodCheckStartsWith",(e,t)=>{V.init(e,t);let r=new RegExp(`^${$e(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})}}),Lc=f("$ZodCheckEndsWith",(e,t)=>{V.init(e,t);let r=new RegExp(`.*${$e(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 Pv(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues))}var qc=f("$ZodCheckProperty",(e,t)=>{V.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=>Pv(n,r,t.property));Pv(o,r,t.property)}}),Nc=f("$ZodCheckMimeType",(e,t)=>{V.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})}}),Uc=f("$ZodCheckOverwrite",(e,t)=>{V.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Mr=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
+ `)[0].length}};iu.reset=()=>xt.reset();function jg(e,t,r){let o=[];e.forEach(function(i){o.push(i.draw(t))});let n=o.join("");n.length&&r.push(n)}Kw.exports=iu});var Jw=D((W5,Qw)=>{Qw.exports=Gw()});var Tv=Bo(bv(),1),{program:z6,createCommand:F6,createArgument:L6,createOption:B6,CommanderError:q6,InvalidArgumentError:N6,InvalidOptionArgumentError:U6,Command:xv,Argument:W6,Option:H6,Help:V6}=Tv.default;import{createInterface as Dj}from"node:readline/promises";var a={};st(a,{$brand:()=>Wo,$input:()=>rd,$output:()=>nd,NEVER:()=>Fu,TimePrecision:()=>sd,ZodAny:()=>Qp,ZodArray:()=>em,ZodBase64:()=>va,ZodBase64URL:()=>ya,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>Ta,ZodBoolean:()=>Zn,ZodCIDRv4:()=>fa,ZodCIDRv6:()=>ga,ZodCUID:()=>ua,ZodCUID2:()=>ca,ZodCatch:()=>xm,ZodCodec:()=>ka,ZodCustom:()=>to,ZodCustomStringFormat:()=>Hn,ZodDate:()=>Qr,ZodDefault:()=>gm,ZodDiscriminatedUnion:()=>nm,ZodE164:()=>Sa,ZodEmail:()=>ia,ZodEmoji:()=>aa,ZodEnum:()=>Un,ZodError:()=>iR,ZodExactOptional:()=>mm,ZodFile:()=>dm,ZodFirstPartyTypeKind:()=>jm,ZodFunction:()=>Am,ZodGUID:()=>Hr,ZodIPv4:()=>ma,ZodIPv6:()=>ha,ZodISODate:()=>Yi,ZodISODateTime:()=>Xi,ZodISODuration:()=>ta,ZodISOTime:()=>ea,ZodIntersection:()=>rm,ZodIssueCode:()=>sR,ZodJWT:()=>ba,ZodKSUID:()=>pa,ZodLazy:()=>Pm,ZodLiteral:()=>lm,ZodMAC:()=>Up,ZodMap:()=>um,ZodNaN:()=>Im,ZodNanoID:()=>sa,ZodNever:()=>Xp,ZodNonOptional:()=>wa,ZodNull:()=>Kp,ZodNullable:()=>fm,ZodNumber:()=>Vn,ZodNumberFormat:()=>en,ZodObject:()=>Xr,ZodOptional:()=>_a,ZodPipe:()=>Pa,ZodPrefault:()=>ym,ZodPromise:()=>Cm,ZodReadonly:()=>Dm,ZodRealError:()=>xe,ZodRecord:()=>eo,ZodSet:()=>cm,ZodString:()=>Wn,ZodStringFormat:()=>H,ZodSuccess:()=>Tm,ZodSymbol:()=>Vp,ZodTemplateLiteral:()=>wm,ZodTransform:()=>pm,ZodTuple:()=>im,ZodType:()=>z,ZodULID:()=>la,ZodURL:()=>Gr,ZodUUID:()=>Je,ZodUndefined:()=>Zp,ZodUnion:()=>Yr,ZodUnknown:()=>Jp,ZodVoid:()=>Yp,ZodXID:()=>da,ZodXor:()=>tm,_ZodString:()=>oa,_default:()=>vm,_function:()=>tb,any:()=>$S,array:()=>Jr,base64:()=>gS,base64url:()=>vS,bigint:()=>PS,boolean:()=>Hp,catch:()=>Em,check:()=>nb,cidrv4:()=>hS,cidrv6:()=>fS,clone:()=>me,codec:()=>XS,coerce:()=>Om,config:()=>K,core:()=>dt,cuid:()=>aS,cuid2:()=>sS,custom:()=>rb,date:()=>OS,decode:()=>Mp,decodeAsync:()=>Fp,describe:()=>ob,discriminatedUnion:()=>qS,e164:()=>yS,email:()=>Qy,emoji:()=>oS,encode:()=>Op,encodeAsync:()=>zp,endsWith:()=>$n,enum:()=>Ia,exactOptional:()=>hm,file:()=>KS,flattenError:()=>Rr,float32:()=>IS,float64:()=>DS,formatError:()=>$r,fromJSONSchema:()=>db,function:()=>tb,getErrorMap:()=>cR,globalRegistry:()=>te,gt:()=>Ge,gte:()=>he,guid:()=>Jy,hash:()=>ES,hex:()=>xS,hostname:()=>TS,httpUrl:()=>rS,includes:()=>An,instanceof:()=>ab,int:()=>ra,int32:()=>_S,int64:()=>kS,intersection:()=>om,ipv4:()=>dS,ipv6:()=>mS,iso:()=>Nn,json:()=>ub,jwt:()=>SS,keyof:()=>MS,ksuid:()=>lS,lazy:()=>km,length:()=>Xt,literal:()=>ZS,locales:()=>qr,looseObject:()=>LS,looseRecord:()=>US,lowercase:()=>kn,lt:()=>Ke,lte:()=>we,mac:()=>pS,map:()=>WS,maxLength:()=>Jt,maxSize:()=>Ct,meta:()=>ib,mime:()=>jn,minLength:()=>lt,minSize:()=>Qe,multipleOf:()=>kt,nan:()=>JS,nanoid:()=>iS,nativeEnum:()=>VS,negative:()=>Ni,never:()=>xa,nonnegative:()=>Wi,nonoptional:()=>bm,nonpositive:()=>Ui,normalize:()=>On,null:()=>Gp,nullable:()=>Zr,nullish:()=>GS,number:()=>Wp,object:()=>zS,optional:()=>Vr,overwrite:()=>Ne,parse:()=>Ap,parseAsync:()=>Rp,partialRecord:()=>NS,pipe:()=>Kr,positive:()=>qi,prefault:()=>Sm,preprocess:()=>cb,prettifyError:()=>Qu,promise:()=>eb,property:()=>Hi,readonly:()=>_m,record:()=>sm,refine:()=>Rm,regex:()=>Pn,regexes:()=>je,registry:()=>bi,safeDecode:()=>Bp,safeDecodeAsync:()=>Np,safeEncode:()=>Lp,safeEncodeAsync:()=>qp,safeParse:()=>$p,safeParseAsync:()=>jp,set:()=>HS,setErrorMap:()=>uR,size:()=>Qt,slugify:()=>Ln,startsWith:()=>Rn,strictObject:()=>FS,string:()=>na,stringFormat:()=>bS,stringbool:()=>sb,success:()=>QS,superRefine:()=>$m,symbol:()=>AS,templateLiteral:()=>YS,toJSONSchema:()=>Gi,toLowerCase:()=>zn,toUpperCase:()=>Fn,transform:()=>Da,treeifyError:()=>Gu,trim:()=>Mn,tuple:()=>am,uint32:()=>wS,uint64:()=>CS,ulid:()=>uS,undefined:()=>RS,union:()=>Ea,unknown:()=>Yt,uppercase:()=>Cn,url:()=>nS,util:()=>T,uuid:()=>Xy,uuidv4:()=>Yy,uuidv6:()=>eS,uuidv7:()=>tS,void:()=>jS,xid:()=>cS,xor:()=>BS});var dt={};st(dt,{$ZodAny:()=>Il,$ZodArray:()=>kl,$ZodAsyncError:()=>qe,$ZodBase64:()=>hl,$ZodBase64URL:()=>fl,$ZodBigInt:()=>mi,$ZodBigIntFormat:()=>bl,$ZodBoolean:()=>zr,$ZodCIDRv4:()=>dl,$ZodCIDRv6:()=>pl,$ZodCUID:()=>Yc,$ZodCUID2:()=>el,$ZodCatch:()=>Zl,$ZodCheck:()=>V,$ZodCheckBigIntFormat:()=>kc,$ZodCheckEndsWith:()=>qc,$ZodCheckGreaterThan:()=>ai,$ZodCheckIncludes:()=>Lc,$ZodCheckLengthEquals:()=>Oc,$ZodCheckLessThan:()=>ii,$ZodCheckLowerCase:()=>zc,$ZodCheckMaxLength:()=>$c,$ZodCheckMaxSize:()=>Cc,$ZodCheckMimeType:()=>Uc,$ZodCheckMinLength:()=>jc,$ZodCheckMinSize:()=>Ac,$ZodCheckMultipleOf:()=>wc,$ZodCheckNumberFormat:()=>Pc,$ZodCheckOverwrite:()=>Wc,$ZodCheckProperty:()=>Nc,$ZodCheckRegex:()=>Mc,$ZodCheckSizeEquals:()=>Rc,$ZodCheckStartsWith:()=>Bc,$ZodCheckStringFormat:()=>_n,$ZodCheckUpperCase:()=>Fc,$ZodCodec:()=>Lr,$ZodCustom:()=>td,$ZodCustomStringFormat:()=>yl,$ZodDate:()=>Pl,$ZodDefault:()=>Ul,$ZodDiscriminatedUnion:()=>Rl,$ZodE164:()=>gl,$ZodEmail:()=>Gc,$ZodEmoji:()=>Jc,$ZodEncodeError:()=>It,$ZodEnum:()=>zl,$ZodError:()=>Ar,$ZodExactOptional:()=>ql,$ZodFile:()=>Ll,$ZodFunction:()=>Xl,$ZodGUID:()=>Zc,$ZodIPv4:()=>ul,$ZodIPv6:()=>cl,$ZodISODate:()=>il,$ZodISODateTime:()=>ol,$ZodISODuration:()=>sl,$ZodISOTime:()=>al,$ZodIntersection:()=>$l,$ZodJWT:()=>vl,$ZodKSUID:()=>rl,$ZodLazy:()=>ed,$ZodLiteral:()=>Fl,$ZodMAC:()=>ll,$ZodMap:()=>Ol,$ZodNaN:()=>Kl,$ZodNanoID:()=>Xc,$ZodNever:()=>_l,$ZodNonOptional:()=>Hl,$ZodNull:()=>El,$ZodNullable:()=>Nl,$ZodNumber:()=>pi,$ZodNumberFormat:()=>Sl,$ZodObject:()=>Gv,$ZodObjectJIT:()=>Cl,$ZodOptional:()=>fi,$ZodPipe:()=>Gl,$ZodPrefault:()=>Wl,$ZodPromise:()=>Yl,$ZodReadonly:()=>Ql,$ZodRealError:()=>Te,$ZodRecord:()=>jl,$ZodRegistry:()=>Si,$ZodSet:()=>Ml,$ZodString:()=>Gt,$ZodStringFormat:()=>W,$ZodSuccess:()=>Vl,$ZodSymbol:()=>Tl,$ZodTemplateLiteral:()=>Jl,$ZodTransform:()=>Bl,$ZodTuple:()=>hi,$ZodType:()=>j,$ZodULID:()=>tl,$ZodURL:()=>Qc,$ZodUUID:()=>Kc,$ZodUndefined:()=>xl,$ZodUnion:()=>Fr,$ZodUnknown:()=>Dl,$ZodVoid:()=>wl,$ZodXID:()=>nl,$ZodXor:()=>Al,$brand:()=>Wo,$constructor:()=>f,$input:()=>rd,$output:()=>nd,Doc:()=>Mr,JSONSchema:()=>Ky,JSONSchemaGenerator:()=>Qi,NEVER:()=>Fu,TimePrecision:()=>sd,_any:()=>Pd,_array:()=>Od,_base64:()=>zi,_base64url:()=>Fi,_bigint:()=>Td,_boolean:()=>Sd,_catch:()=>JA,_check:()=>Zy,_cidrv4:()=>Oi,_cidrv6:()=>Mi,_coercedBigint:()=>xd,_coercedBoolean:()=>bd,_coercedDate:()=>$d,_coercedNumber:()=>md,_coercedString:()=>id,_cuid:()=>Pi,_cuid2:()=>ki,_custom:()=>zd,_date:()=>Rd,_decode:()=>Qo,_decodeAsync:()=>Xo,_default:()=>KA,_discriminatedUnion:()=>MA,_e164:()=>Li,_email:()=>Ti,_emoji:()=>_i,_encode:()=>Go,_encodeAsync:()=>Jo,_endsWith:()=>$n,_enum:()=>NA,_file:()=>Md,_float32:()=>fd,_float64:()=>gd,_gt:()=>Ge,_gte:()=>he,_guid:()=>Nr,_includes:()=>An,_int:()=>hd,_int32:()=>vd,_int64:()=>Ed,_intersection:()=>zA,_ipv4:()=>$i,_ipv6:()=>ji,_isoDate:()=>cd,_isoDateTime:()=>ud,_isoDuration:()=>dd,_isoTime:()=>ld,_jwt:()=>Bi,_ksuid:()=>Ri,_lazy:()=>tR,_length:()=>Xt,_literal:()=>WA,_lowercase:()=>kn,_lt:()=>Ke,_lte:()=>we,_mac:()=>ad,_map:()=>BA,_max:()=>we,_maxLength:()=>Jt,_maxSize:()=>Ct,_mime:()=>jn,_min:()=>he,_minLength:()=>lt,_minSize:()=>Qe,_multipleOf:()=>kt,_nan:()=>jd,_nanoid:()=>wi,_nativeEnum:()=>UA,_negative:()=>Ni,_never:()=>Cd,_nonnegative:()=>Wi,_nonoptional:()=>GA,_nonpositive:()=>Ui,_normalize:()=>On,_null:()=>wd,_nullable:()=>ZA,_number:()=>pd,_optional:()=>VA,_overwrite:()=>Ne,_parse:()=>xn,_parseAsync:()=>En,_pipe:()=>XA,_positive:()=>qi,_promise:()=>nR,_property:()=>Hi,_readonly:()=>YA,_record:()=>LA,_refine:()=>Fd,_regex:()=>Pn,_safeDecode:()=>ei,_safeDecodeAsync:()=>ni,_safeEncode:()=>Yo,_safeEncodeAsync:()=>ti,_safeParse:()=>In,_safeParseAsync:()=>Dn,_set:()=>qA,_size:()=>Qt,_slugify:()=>Ln,_startsWith:()=>Rn,_string:()=>od,_stringFormat:()=>Bn,_stringbool:()=>Nd,_success:()=>QA,_superRefine:()=>Ld,_symbol:()=>Dd,_templateLiteral:()=>eR,_toLowerCase:()=>zn,_toUpperCase:()=>Fn,_transform:()=>HA,_trim:()=>Mn,_tuple:()=>FA,_uint32:()=>yd,_uint64:()=>Id,_ulid:()=>Ci,_undefined:()=>_d,_union:()=>jA,_unknown:()=>kd,_uppercase:()=>Cn,_url:()=>Ur,_uuid:()=>xi,_uuidv4:()=>Ei,_uuidv6:()=>Ii,_uuidv7:()=>Di,_void:()=>Ad,_xid:()=>Ai,_xor:()=>OA,clone:()=>me,config:()=>K,createStandardJSONSchemaMethod:()=>qn,createToJSONSchemaMethod:()=>Ud,decode:()=>iC,decodeAsync:()=>sC,describe:()=>Bd,encode:()=>oC,encodeAsync:()=>aC,extractDefs:()=>Rt,finalize:()=>$t,flattenError:()=>Rr,formatError:()=>$r,globalConfig:()=>Ir,globalRegistry:()=>te,initializeContext:()=>At,isValidBase64:()=>ml,isValidBase64URL:()=>Hv,isValidJWT:()=>Vv,locales:()=>qr,meta:()=>qd,parse:()=>Zo,parseAsync:()=>Ko,prettifyError:()=>Qu,process:()=>U,regexes:()=>je,registry:()=>bi,safeDecode:()=>cC,safeDecodeAsync:()=>dC,safeEncode:()=>uC,safeEncodeAsync:()=>lC,safeParse:()=>Ju,safeParseAsync:()=>Xu,toDotPath:()=>wv,toJSONSchema:()=>Gi,treeifyError:()=>Gu,util:()=>T,version:()=>Hc});var Fu=Object.freeze({status:"aborted"});function f(e,t,r){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=s.prototype,p=Object.keys(l);for(let d=0;d<p.length;d++){let m=p[d];m in u||(u[m]=l[m].bind(u))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function s(u){var c;let l=r?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let p of l._zod.deferred)p();return l}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 Wo=Symbol("zod_brand"),qe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},It=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ir={};function K(e){return e&&Object.assign(Ir,e),Ir}var T={};st(T,{BIGINT_FORMAT_RANGES:()=>Ku,Class:()=>Bu,NUMBER_FORMAT_RANGES:()=>Zu,aborted:()=>Pt,allowsEval:()=>Uu,assert:()=>Mk,assertEqual:()=>Rk,assertIs:()=>jk,assertNever:()=>Ok,assertNotEqual:()=>$k,assignProp:()=>_t,base64ToUint8Array:()=>Iv,base64urlToUint8Array:()=>Yk,cached:()=>bn,captureStackTrace:()=>Vo,cleanEnum:()=>Xk,cleanRegex:()=>wr,clone:()=>me,cloneDef:()=>Fk,createTransparentProxy:()=>Wk,defineLazy:()=>F,esc:()=>Ho,escapeRegex:()=>$e,extend:()=>Zk,finalizeIssue:()=>be,floatSafeRemainder:()=>qu,getElementAtPath:()=>Lk,getEnumValues:()=>_r,getLengthableOrigin:()=>Cr,getParsedType:()=>Uk,getSizableOrigin:()=>kr,hexToUint8Array:()=>tC,isObject:()=>Zt,isPlainObject:()=>wt,issue:()=>Tn,joinValues:()=>v,jsonStringifyReplacer:()=>Sn,merge:()=>Gk,mergeDefs:()=>ct,normalizeParams:()=>x,nullish:()=>Dt,numKeys:()=>Nk,objectClone:()=>zk,omit:()=>Vk,optionalKeys:()=>Vu,parsedType:()=>b,partial:()=>Qk,pick:()=>Hk,prefixIssues:()=>_e,primitiveTypes:()=>Hu,promiseAllObject:()=>Bk,propertyKeyTypes:()=>Pr,randomString:()=>qk,required:()=>Jk,safeExtend:()=>Kk,shallowClone:()=>Wu,slugify:()=>Nu,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>Dv,uint8ArrayToBase64url:()=>eC,uint8ArrayToHex:()=>nC,unwrapMessage:()=>Dr});function Rk(e){return e}function $k(e){return e}function jk(e){}function Ok(e){throw new Error("Unexpected value in exhaustive check")}function Mk(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 Sn(e,t){return typeof t=="bigint"?t.toString():t}function bn(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Dt(e){return e==null}function wr(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function qu(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 c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[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 Ev=Symbol("evaluating");function F(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Ev)return o===void 0&&(o=Ev,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function zk(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 ct(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function Fk(e){return ct(e._zod.def)}function Lk(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function Bk(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 qk(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ho(e){return JSON.stringify(e)}function Nu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Vo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Uu=bn(()=>{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(Zt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Wu(e){return wt(e)?{...e}:Array.isArray(e)?[...e]:e}function Nk(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Uk=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}`)}},Pr=new Set(["string","number","symbol"]),Hu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function $e(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 Wk(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 Vu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Zu={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]},Ku={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Hk(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=ct(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 me(e,i)}function Vk(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=ct(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 me(e,i)}function Zk(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=ct(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _t(this,"shape",i),i}});return me(e,n)}function Kk(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=ct(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return _t(this,"shape",o),o}});return me(e,r)}function Gk(e,t){let r=ct(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 me(e,r)}function Qk(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=ct(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(r)for(let l in r){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:u[l]}):u[l])}else for(let l in u)c[l]=e?new e({type:"optional",innerType:u[l]}):u[l];return _t(this,"shape",c),c},checks:[]});return me(t,s)}function Jk(e,t,r){let o=ct(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 me(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 Dr(e){return typeof e=="string"?e:e?.message}function be(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Dr(e.inst?._zod.def?.error?.(e))??Dr(t?.error?.(e))??Dr(r.customError?.(e))??Dr(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function kr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Cr(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 Tn(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function Xk(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Iv(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 Dv(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Yk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Iv(t+r)}function eC(e){return Dv(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function tC(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 nC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Bu=class{constructor(...t){}};var _v=(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,Sn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ar=f("$ZodError",_v),Te=f("$ZodError",_v,{Parent:Error});function Rr(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 $r(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 c=i.path[u];u===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return o(e),r}function Gu(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var s,u;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){r.errors.push(t(c));continue}let p=r,d=0;for(;d<l.length;){let m=l[d],h=d===l.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(c)),d++}}};return o(e),r}function wv(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 Qu(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 ${wv(o.path)}`);return t.join(`
59
+ `)}var xn=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 qe;if(s.issues.length){let u=new(n?.Err??e)(s.issues.map(c=>be(c,i,K())));throw Vo(u,n?.callee),u}return s.value},Zo=xn(Te),En=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(c=>be(c,i,K())));throw Vo(u,n?.callee),u}return s.value},Ko=En(Te),In=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 qe;return i.issues.length?{success:!1,error:new(e??Ar)(i.issues.map(s=>be(s,n,K())))}:{success:!0,data:i.value}},Ju=In(Te),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=>be(s,n,K())))}:{success:!0,data:i.value}},Xu=Dn(Te),Go=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return xn(e)(t,r,n)},oC=Go(Te),Qo=e=>(t,r,o)=>xn(e)(t,r,o),iC=Qo(Te),Jo=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return En(e)(t,r,n)},aC=Jo(Te),Xo=e=>async(t,r,o)=>En(e)(t,r,o),sC=Xo(Te),Yo=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return In(e)(t,r,n)},uC=Yo(Te),ei=e=>(t,r,o)=>In(e)(t,r,o),cC=ei(Te),ti=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dn(e)(t,r,n)},lC=ti(Te),ni=e=>async(t,r,o)=>Dn(e)(t,r,o),dC=ni(Te);var je={};st(je,{base64:()=>hc,base64url:()=>ri,bigint:()=>bc,boolean:()=>xc,browserEmail:()=>SC,cidrv4:()=>pc,cidrv6:()=>mc,cuid:()=>Yu,cuid2:()=>ec,date:()=>gc,datetime:()=>yc,domain:()=>xC,duration:()=>ic,e164:()=>fc,email:()=>sc,emoji:()=>uc,extendedDuration:()=>pC,guid:()=>ac,hex:()=>EC,hostname:()=>TC,html5Email:()=>gC,idnEmail:()=>yC,integer:()=>Tc,ipv4:()=>cc,ipv6:()=>lc,ksuid:()=>rc,lowercase:()=>Dc,mac:()=>dc,md5_base64:()=>DC,md5_base64url:()=>_C,md5_hex:()=>IC,nanoid:()=>oc,null:()=>Ec,number:()=>oi,rfc5322Email:()=>vC,sha1_base64:()=>PC,sha1_base64url:()=>kC,sha1_hex:()=>wC,sha256_base64:()=>AC,sha256_base64url:()=>RC,sha256_hex:()=>CC,sha384_base64:()=>jC,sha384_base64url:()=>OC,sha384_hex:()=>$C,sha512_base64:()=>zC,sha512_base64url:()=>FC,sha512_hex:()=>MC,string:()=>Sc,time:()=>vc,ulid:()=>tc,undefined:()=>Ic,unicodeEmail:()=>Pv,uppercase:()=>_c,uuid:()=>Kt,uuid4:()=>mC,uuid6:()=>hC,uuid7:()=>fC,xid:()=>nc});var Yu=/^[cC][^\s-]{8,}$/,ec=/^[0-9a-z]+$/,tc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nc=/^[0-9a-vA-V]{20}$/,rc=/^[A-Za-z0-9]{27}$/,oc=/^[a-zA-Z0-9_-]{21}$/,ic=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,pC=/^[-+]?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)?)??$/,ac=/^([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})$/,Kt=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)$/,mC=Kt(4),hC=Kt(6),fC=Kt(7),sc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gC=/^[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])?)*$/,vC=/^(([^<>()\[\]\\.,;:\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,}))$/,Pv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,yC=Pv,SC=/^[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])?)*$/,bC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function uc(){return new RegExp(bC,"u")}var cc=/^(?:(?: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])$/,lc=/^(([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}|:))$/,dc=e=>{let t=$e(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},pc=/^((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])$/,mc=/^(([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])$/,hc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ri=/^[A-Za-z0-9_-]*$/,TC=/^(?=.{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])?)*\.?$/,xC=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fc=/^\+[1-9]\d{6,14}$/,kv="(?:(?:\\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])))",gc=new RegExp(`^${kv}$`);function Cv(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 vc(e){return new RegExp(`^${Cv(e)}$`)}function yc(e){let t=Cv({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(`^${kv}T(?:${o})$`)}var Sc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},bc=/^-?\d+n?$/,Tc=/^-?\d+$/,oi=/^-?\d+(?:\.\d+)?$/,xc=/^(?:true|false)$/i,Ec=/^null$/i;var Ic=/^undefined$/i;var Dc=/^[^A-Z]*$/,_c=/^[^a-z]*$/,EC=/^[0-9a-fA-F]*$/;function jr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Or(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var IC=/^[0-9a-fA-F]{32}$/,DC=jr(22,"=="),_C=Or(22),wC=/^[0-9a-fA-F]{40}$/,PC=jr(27,"="),kC=Or(27),CC=/^[0-9a-fA-F]{64}$/,AC=jr(43,"="),RC=Or(43),$C=/^[0-9a-fA-F]{96}$/,jC=jr(64,""),OC=Or(64),MC=/^[0-9a-fA-F]{128}$/,zC=jr(86,"=="),FC=Or(86);var V=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Rv={number:"number",bigint:"bigint",object:"date"},ii=f("$ZodCheckLessThan",(e,t)=>{V.init(e,t);let r=Rv[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})}}),ai=f("$ZodCheckGreaterThan",(e,t)=>{V.init(e,t);let r=Rv[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})}}),wc=f("$ZodCheckMultipleOf",(e,t)=>{V.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):qu(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})}}),Pc=f("$ZodCheckNumberFormat",(e,t)=>{V.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Zu[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=Tc)}),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})}}),kc=f("$ZodCheckBigIntFormat",(e,t)=>{V.init(e,t);let[r,o]=Ku[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})}}),Cc=f("$ZodCheckMaxSize",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ac=f("$ZodCheckMinSize",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Rc=f("$ZodCheckSizeEquals",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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:kr(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})}}),$c=f("$ZodCheckMaxLength",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(n);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),jc=f("$ZodCheckMinLength",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(n);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Oc=f("$ZodCheckLengthEquals",(e,t)=>{var r;V.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Dt(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=Cr(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})}}),_n=f("$ZodCheckStringFormat",(e,t)=>{var r,o;V.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=()=>{})}),Mc=f("$ZodCheckRegex",(e,t)=>{_n.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})}}),zc=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Dc),_n.init(e,t)}),Fc=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=_c),_n.init(e,t)}),Lc=f("$ZodCheckIncludes",(e,t)=>{V.init(e,t);let r=$e(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})}}),Bc=f("$ZodCheckStartsWith",(e,t)=>{V.init(e,t);let r=new RegExp(`^${$e(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})}}),qc=f("$ZodCheckEndsWith",(e,t)=>{V.init(e,t);let r=new RegExp(`.*${$e(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 Av(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues))}var Nc=f("$ZodCheckProperty",(e,t)=>{V.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=>Av(n,r,t.property));Av(o,r,t.property)}}),Uc=f("$ZodCheckMimeType",(e,t)=>{V.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})}}),Wc=f("$ZodCheckOverwrite",(e,t)=>{V.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Mr=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(`
60
60
  `).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(`
61
- `))}};var Wc={major:4,minor:3,patch:6};var j=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wc;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,c)=>{let l=Pt(s),p;for(let d of u){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(l)continue;let m=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&c?.async===!1)throw new qe;if(p||h instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(l||(l=Pt(s,m)))});else{if(s.issues.length===m)continue;l||(l=Pt(s,m))}}return p?p.then(()=>s):s},i=(s,u,c)=>{if(Pt(s))return s.aborted=!0,s;let l=n(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new qe;return l.then(p=>e._zod.parse(p,c))}return e._zod.parse(l,c)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(p=>i(p,s,u)):i(l,s,u)}let c=e._zod.parse(s,u);if(c instanceof Promise){if(u.async===!1)throw new qe;return c.then(l=>n(l,o,u))}return n(c,o,u)}}F(e,"~standard",()=>({validate:n=>{try{let i=Qu(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Ju(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Gt=f("$ZodString",(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??yc(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)=>{_n.init(e,t),Gt.init(e,t)}),Vc=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ic),W.init(e,t)}),Zc=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=Kt(o))}else t.pattern??(t.pattern=Kt());W.init(e,t)}),Kc=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ac),W.init(e,t)}),Gc=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})}}}),Qc=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=sc()),W.init(e,t)}),Jc=f("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=rc),W.init(e,t)}),Xc=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Xu),W.init(e,t)}),Yc=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Yu),W.init(e,t)}),el=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ec),W.init(e,t)}),tl=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tc),W.init(e,t)}),nl=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=nc),W.init(e,t)}),rl=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=vc(t)),W.init(e,t)}),ol=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=fc),W.init(e,t)}),il=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gc(t)),W.init(e,t)}),al=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=oc),W.init(e,t)}),sl=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=uc),W.init(e,t),e._zod.bag.format="ipv4"}),ul=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=cc),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})}}}),cl=f("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=lc(t.delimiter)),W.init(e,t),e._zod.bag.format="mac"}),ll=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=dc),W.init(e,t)}),dl=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=pc),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 pl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ml=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=mc),W.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{pl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Nv(e){if(!ni.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return pl(r)}var hl=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ni),W.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Nv(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),fl=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=hc),W.init(e,t)});function Uv(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 gl=f("$ZodJWT",(e,t)=>{W.init(e,t),e._zod.check=r=>{Uv(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),vl=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})}}),di=f("$ZodNumber",(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??ri,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}}),yl=f("$ZodNumberFormat",(e,t)=>{wc.init(e,t),di.init(e,t)}),zr=f("$ZodBoolean",(e,t)=>{j.init(e,t),e._zod.pattern=Tc,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}}),pi=f("$ZodBigInt",(e,t)=>{j.init(e,t),e._zod.pattern=Sc,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}}),Sl=f("$ZodBigIntFormat",(e,t)=>{Pc.init(e,t),pi.init(e,t)}),bl=f("$ZodSymbol",(e,t)=>{j.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}}),Tl=f("$ZodUndefined",(e,t)=>{j.init(e,t),e._zod.pattern=Ec,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}}),xl=f("$ZodNull",(e,t)=>{j.init(e,t),e._zod.pattern=xc,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}}),El=f("$ZodAny",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Il=f("$ZodUnknown",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Dl=f("$ZodNever",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),_l=f("$ZodVoid",(e,t)=>{j.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}}),wl=f("$ZodDate",(e,t)=>{j.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 Av(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var Pl=f("$ZodArray",(e,t)=>{j.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],c=t.element._zod.run({value:u,issues:[]},o);c instanceof Promise?i.push(c.then(l=>Av(l,r,s))):Av(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function li(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 Wv(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=Hu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Hv(e,t,r,o,n,i){let s=[],u=n.keySet,c=n.catchall._zod,l=c.def.type,p=c.optout==="optional";for(let d in t){if(u.has(d))continue;if(l==="never"){s.push(d);continue}let m=c.run({value:t[d],issues:[]},o);m instanceof Promise?e.push(m.then(h=>li(h,r,d,t,p))):li(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 Vv=f("$ZodObject",(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=bn(()=>Wv(t));F(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let p=u[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(let d of p.values)c[l].add(d)}}return c});let n=Zt,i=t.catchall,s;e._zod.parse=(u,c)=>{s??(s=o.value);let l=u.value;if(!n(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,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:l[m],issues:[]},c);y instanceof Promise?p.push(y.then(P=>li(P,u,m,l,g))):li(y,u,m,l,g)}return i?Hv(p,l,u,c,o.value,e):p.length?Promise.all(p).then(()=>u):u}}),kl=f("$ZodObjectJIT",(e,t)=>{Vv.init(e,t);let r=e._zod.parse,o=bn(()=>Wv(t)),n=m=>{let h=new Mr(["shape","payload","ctx"]),g=o.value,y=q=>{let O=Wo(q);return`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`};h.write("const input = payload.value;");let P=Object.create(null),I=0;for(let q of g.keys)P[q]=`key_${I++}`;h.write("const newResult = {};");for(let q of g.keys){let O=P[q],J=Wo(q),ue=m[q]?._zod?.optout==="optional";h.write(`const ${O} = ${y(q)};`),ue?h.write(`
61
+ `))}};var Hc={major:4,minor:3,patch:6};var j=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Hc;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,c)=>{let l=Pt(s),p;for(let d of u){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(l)continue;let m=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&c?.async===!1)throw new qe;if(p||h instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(l||(l=Pt(s,m)))});else{if(s.issues.length===m)continue;l||(l=Pt(s,m))}}return p?p.then(()=>s):s},i=(s,u,c)=>{if(Pt(s))return s.aborted=!0,s;let l=n(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new qe;return l.then(p=>e._zod.parse(p,c))}return e._zod.parse(l,c)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(p=>i(p,s,u)):i(l,s,u)}let c=e._zod.parse(s,u);if(c instanceof Promise){if(u.async===!1)throw new qe;return c.then(l=>n(l,o,u))}return n(c,o,u)}}F(e,"~standard",()=>({validate:n=>{try{let i=Ju(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Xu(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Gt=f("$ZodString",(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Sc(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)=>{_n.init(e,t),Gt.init(e,t)}),Zc=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ac),W.init(e,t)}),Kc=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=Kt(o))}else t.pattern??(t.pattern=Kt());W.init(e,t)}),Gc=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=sc),W.init(e,t)}),Qc=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})}}}),Jc=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=uc()),W.init(e,t)}),Xc=f("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=oc),W.init(e,t)}),Yc=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Yu),W.init(e,t)}),el=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ec),W.init(e,t)}),tl=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tc),W.init(e,t)}),nl=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nc),W.init(e,t)}),rl=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rc),W.init(e,t)}),ol=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=yc(t)),W.init(e,t)}),il=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=gc),W.init(e,t)}),al=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=vc(t)),W.init(e,t)}),sl=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ic),W.init(e,t)}),ul=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=cc),W.init(e,t),e._zod.bag.format="ipv4"}),cl=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=lc),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})}}}),ll=f("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=dc(t.delimiter)),W.init(e,t),e._zod.bag.format="mac"}),dl=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pc),W.init(e,t)}),pl=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=mc),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 ml(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var hl=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=hc),W.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ml(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Hv(e){if(!ri.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ml(r)}var fl=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ri),W.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Hv(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),gl=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fc),W.init(e,t)});function Vv(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 vl=f("$ZodJWT",(e,t)=>{W.init(e,t),e._zod.check=r=>{Vv(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),yl=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})}}),pi=f("$ZodNumber",(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??oi,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}}),Sl=f("$ZodNumberFormat",(e,t)=>{Pc.init(e,t),pi.init(e,t)}),zr=f("$ZodBoolean",(e,t)=>{j.init(e,t),e._zod.pattern=xc,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}}),mi=f("$ZodBigInt",(e,t)=>{j.init(e,t),e._zod.pattern=bc,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}}),bl=f("$ZodBigIntFormat",(e,t)=>{kc.init(e,t),mi.init(e,t)}),Tl=f("$ZodSymbol",(e,t)=>{j.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}}),xl=f("$ZodUndefined",(e,t)=>{j.init(e,t),e._zod.pattern=Ic,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}}),El=f("$ZodNull",(e,t)=>{j.init(e,t),e._zod.pattern=Ec,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}}),Il=f("$ZodAny",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Dl=f("$ZodUnknown",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),_l=f("$ZodNever",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),wl=f("$ZodVoid",(e,t)=>{j.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}}),Pl=f("$ZodDate",(e,t)=>{j.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 jv(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var kl=f("$ZodArray",(e,t)=>{j.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],c=t.element._zod.run({value:u,issues:[]},o);c instanceof Promise?i.push(c.then(l=>jv(l,r,s))):jv(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function di(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 Zv(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=Vu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Kv(e,t,r,o,n,i){let s=[],u=n.keySet,c=n.catchall._zod,l=c.def.type,p=c.optout==="optional";for(let d in t){if(u.has(d))continue;if(l==="never"){s.push(d);continue}let m=c.run({value:t[d],issues:[]},o);m instanceof Promise?e.push(m.then(h=>di(h,r,d,t,p))):di(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 Gv=f("$ZodObject",(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=bn(()=>Zv(t));F(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let p=u[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(let d of p.values)c[l].add(d)}}return c});let n=Zt,i=t.catchall,s;e._zod.parse=(u,c)=>{s??(s=o.value);let l=u.value;if(!n(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,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:l[m],issues:[]},c);y instanceof Promise?p.push(y.then(P=>di(P,u,m,l,g))):di(y,u,m,l,g)}return i?Kv(p,l,u,c,o.value,e):p.length?Promise.all(p).then(()=>u):u}}),Cl=f("$ZodObjectJIT",(e,t)=>{Gv.init(e,t);let r=e._zod.parse,o=bn(()=>Zv(t)),n=m=>{let h=new Mr(["shape","payload","ctx"]),g=o.value,y=q=>{let O=Ho(q);return`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`};h.write("const input = payload.value;");let P=Object.create(null),I=0;for(let q of g.keys)P[q]=`key_${I++}`;h.write("const newResult = {};");for(let q of g.keys){let O=P[q],J=Ho(q),ue=m[q]?._zod?.optout==="optional";h.write(`const ${O} = ${y(q)};`),ue?h.write(`
62
62
  if (${O}.issues.length) {
63
63
  if (${J} in input) {
64
64
  payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
@@ -92,9 +92,46 @@ Expecting `+Fo.join(", ")+", got '"+(this.terminals_[O]||O)+"'":yu="Parse error
92
92
  newResult[${J}] = ${O}.value;
93
93
  }
94
94
 
95
- `)}h.write("payload.value = newResult;"),h.write("return payload;");let R=h.compile();return(q,O)=>R(m,q,O)},i,s=Zt,u=!Ir.jitless,l=u&&Nu.value,p=t.catchall,d;e._zod.parse=(m,h)=>{d??(d=o.value);let g=m.value;return s(g)?u&&l&&h?.async===!1&&h.jitless!==!0?(i||(i=n(t.shape)),m=i(m,h),p?Hv([],g,m,h,d,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Rv(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=>be(s,o,K())))}),t)}var Fr=f("$ZodUnion",(e,t)=>{j.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=>wr(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 c of t.options){let l=c._zod.run({value:n.value,issues:[]},i);if(l instanceof Promise)u.push(l),s=!0;else{if(l.issues.length===0)return l;u.push(l)}}return s?Promise.all(u).then(c=>Rv(c,n,e,i)):Rv(u,n,e,i)}});function $v(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,K())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Cl=f("$ZodXor",(e,t)=>{Fr.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 c of t.options){let l=c._zod.run({value:n.value,issues:[]},i);l instanceof Promise?(u.push(l),s=!0):u.push(l)}return s?Promise.all(u).then(c=>$v(c,n,e,i)):$v(u,n,e,i)}}),Al=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Fr.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,c]of Object.entries(s)){n[u]||(n[u]=new Set);for(let l of c)n[u].add(l)}}return n});let o=bn(()=>{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 c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(n,i)=>{let s=n.value;if(!Zt(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)}}),Rl=f("$ZodIntersection",(e,t)=>{j.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(([c,l])=>jv(r,c,l)):jv(r,i,s)}});function Hc(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=Hc(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=Hc(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 jv(e,t,r){let o=new Map,n;for(let u of t.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).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=Hc(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 mi=f("$ZodTuple",(e,t)=>{j.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"),c=u===-1?0:r.length-u;if(!t.rest){let p=i.length>r.length,d=i.length<c-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 l=-1;for(let p of r){if(l++,l>=i.length&&l>=c)continue;let d=p._zod.run({value:i[l],issues:[]},n);d instanceof Promise?s.push(d.then(m=>ai(m,o,l))):ai(d,o,l)}if(t.rest){let p=i.slice(r.length);for(let d of p){l++;let m=t.rest._zod.run({value:d,issues:[]},n);m instanceof Promise?s.push(m.then(h=>ai(h,o,l))):ai(m,o,l)}}return s.length?Promise.all(s).then(()=>o):o}});function ai(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var $l=f("$ZodRecord",(e,t)=>{j.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 l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let p=t.valueType._zod.run({value:n[l],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(..._e(l,d.issues)),r.value[l]=d.value})):(p.issues.length&&r.issues.push(..._e(l,p.issues)),r.value[l]=p.value)}let c;for(let l in n)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ri.test(u)&&c.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&&(c=d)}if(c.issues.length){t.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>be(d,o,K())),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[c.value]=d.value})):(p.issues.length&&r.issues.push(..._e(u,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),jl=f("$ZodMap",(e,t)=>{j.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 c=t.keyType._zod.run({value:s,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([p,d])=>{Ov(p,d,r,s,n,e,o)})):Ov(c,l,r,s,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Ov(e,t,r,o,n,i,s){e.issues.length&&(Pr.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=>be(u,s,K()))})),t.issues.length&&(Pr.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=>be(u,s,K()))})),r.value.set(e.value,t.value)}var Ol=f("$ZodSet",(e,t)=>{j.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(c=>Mv(c,r))):Mv(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Mv(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Ml=f("$ZodEnum",(e,t)=>{j.init(e,t);let r=_r(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Pr.has(typeof n)).map(n=>typeof n=="string"?$e(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}}),zl=f("$ZodLiteral",(e,t)=>{if(j.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"?$e(o):o?$e(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}}),Fl=f("$ZodFile",(e,t)=>{j.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}}),Bl=f("$ZodTransform",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It(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 qe;return r.value=n,r}});function zv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var hi=f("$ZodOptional",(e,t)=>{j.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(`^(${wr(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=>zv(i,r.value)):zv(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Ll=f("$ZodExactOptional",(e,t)=>{hi.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)}),ql=f("$ZodNullable",(e,t)=>{j.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(`^(${wr(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)}),Nl=f("$ZodDefault",(e,t)=>{j.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=>Fv(i,t)):Fv(n,t)}});function Fv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ul=f("$ZodPrefault",(e,t)=>{j.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))}),Wl=f("$ZodNonOptional",(e,t)=>{j.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=>Bv(i,e)):Bv(n,e)}});function Bv(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 Hl=f("$ZodSuccess",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It("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)}}),Vl=f("$ZodCatch",(e,t)=>{j.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=>be(s,o,K()))},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,K()))},input:r.value}),r.issues=[]),r)}}),Zl=f("$ZodNaN",(e,t)=>{j.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)}),Kl=f("$ZodPipe",(e,t)=>{j.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=>si(s,t.in,o)):si(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>si(i,t.out,o)):si(n,t.out,o)}});function si(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Br=f("$ZodCodec",(e,t)=>{j.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=>ui(s,t,o)):ui(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>ui(s,t,o)):ui(i,t,o)}}});function ui(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=>ci(e,i,t.out,r)):ci(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>ci(e,i,t.in,r)):ci(e,n,t.in,r)}}function ci(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Gl=f("$ZodReadonly",(e,t)=>{j.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(Lv):Lv(n)}});function Lv(e){return e.value=Object.freeze(e.value),e}var Ql=f("$ZodTemplateLiteral",(e,t)=>{j.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||Wu.has(typeof o))r.push($e(`${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)}),Jl=f("$ZodFunction",(e,t)=>(j.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?Vo(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Vo(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 Zo(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Zo(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 mi({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)),Xl=f("$ZodPromise",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Yl=f("$ZodLazy",(e,t)=>{j.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)}),ed=f("$ZodCustom",(e,t)=>{V.init(e,t),j.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=>qv(i,r,o,e));qv(n,r,o,e)}});function qv(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(Tn(n))}}var qr={};st(qr,{ar:()=>Zv,az:()=>Kv,be:()=>Qv,bg:()=>Jv,ca:()=>Xv,cs:()=>Yv,da:()=>ey,de:()=>ty,en:()=>fi,eo:()=>ny,es:()=>ry,fa:()=>oy,fi:()=>iy,fr:()=>ay,frCA:()=>sy,he:()=>uy,hu:()=>cy,hy:()=>dy,id:()=>py,is:()=>my,it:()=>hy,ja:()=>fy,ka:()=>gy,kh:()=>vy,km:()=>gi,ko:()=>yy,lt:()=>by,mk:()=>Ty,ms:()=>xy,nl:()=>Ey,no:()=>Iy,ota:()=>Dy,pl:()=>wy,ps:()=>_y,pt:()=>Py,ru:()=>Cy,sl:()=>Ay,sv:()=>Ry,ta:()=>$y,th:()=>jy,tr:()=>Oy,ua:()=>My,uk:()=>vi,ur:()=>zy,uz:()=>Fy,vi:()=>By,yo:()=>Ny,zhCN:()=>Ly,zhTW:()=>qy});var AC=()=>{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 Zv(){return{localeError:AC()}}var RC=()=>{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 Kv(){return{localeError:RC()}}function Gv(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 $C=()=>{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),c=Gv(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()} ${c}`}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),c=Gv(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()} ${c}`}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 Qv(){return{localeError:$C()}}var jC=()=>{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 Jv(){return{localeError:jC()}}var OC=()=>{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 Xv(){return{localeError:OC()}}var MC=()=>{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 Yv(){return{localeError:MC()}}var zC=()=>{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 ey(){return{localeError:zC()}}var FC=()=>{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 ty(){return{localeError:FC()}}var BC=()=>{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 fi(){return{localeError:BC()}}var LC=()=>{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 ny(){return{localeError:LC()}}var qC=()=>{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 ry(){return{localeError:qC()}}var NC=()=>{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 oy(){return{localeError:NC()}}var UC=()=>{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 iy(){return{localeError:UC()}}var WC=()=>{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 ay(){return{localeError:WC()}}var HC=()=>{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 sy(){return{localeError:HC()}}var VC=()=>{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=l=>l?e[l]:void 0,o=l=>{let p=r(l);return p?p.label:l??e.unknown.label},n=l=>`\u05D4${o(l)}`,i=l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=l=>l?t[l]??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"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let p=l.expected,d=c[p??""]??o(p),m=b(l.input),h=c[m]??e[m]?.label??m;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.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(l.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(l.values[0])}`;let p=l.values.map(h=>S(h));if(l.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(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=l.inclusive?`${l.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=l.inclusive?"<=":"<",h=i(l.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.maximum.toString()}`}case"too_small":{let p=s(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let P=(l.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=l.inclusive?`${l.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=l.inclusive?">=":">",h=i(l.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.minimum.toString()}`}case"invalid_format":{let p=l;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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function uy(){return{localeError:VC()}}var ZC=()=>{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 cy(){return{localeError:ZC()}}function ly(e,t,r){return Math.abs(e)===1?t:r}function wn(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 KC=()=>{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),c=ly(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 ${wn(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}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 ${wn(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),c=ly(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 ${wn(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}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 ${wn(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 ${wn(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 ${wn(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function dy(){return{localeError:KC()}}var GC=()=>{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 py(){return{localeError:GC()}}var QC=()=>{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 my(){return{localeError:QC()}}var JC=()=>{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 hy(){return{localeError:JC()}}var XC=()=>{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 fy(){return{localeError:XC()}}var YC=()=>{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 gy(){return{localeError:YC()}}var eA=()=>{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 gi(){return{localeError:eA()}}function vy(){return gi()}var tA=()=>{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),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${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),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${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 yy(){return{localeError:tA()}}var Lr=e=>e.charAt(0).toUpperCase()+e.slice(1);function Sy(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 nA=()=>{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 c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.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,Sy(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 u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Lr(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,Sy(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 u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Lr(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`${Lr(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function by(){return{localeError:nA()}}var rA=()=>{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 Ty(){return{localeError:rA()}}var oA=()=>{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 xy(){return{localeError:oA()}}var iA=()=>{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 Ey(){return{localeError:iA()}}var aA=()=>{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 Iy(){return{localeError:aA()}}var sA=()=>{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 Dy(){return{localeError:sA()}}var uA=()=>{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 _y(){return{localeError:uA()}}var cA=()=>{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 wy(){return{localeError:cA()}}var lA=()=>{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 Py(){return{localeError:lA()}}function ky(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 dA=()=>{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),c=ky(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()} ${c}`}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),c=ky(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()} ${c}`}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 Cy(){return{localeError:dA()}}var pA=()=>{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 Ay(){return{localeError:pA()}}var mA=()=>{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 Ry(){return{localeError:mA()}}var hA=()=>{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 $y(){return{localeError:hA()}}var fA=()=>{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 jy(){return{localeError:fA()}}var gA=()=>{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 Oy(){return{localeError:gA()}}var vA=()=>{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 vi(){return{localeError:vA()}}function My(){return vi()}var yA=()=>{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 zy(){return{localeError:yA()}}var SA=()=>{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 Fy(){return{localeError:SA()}}var bA=()=>{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 By(){return{localeError:bA()}}var TA=()=>{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 Ly(){return{localeError:TA()}}var xA=()=>{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 qy(){return{localeError:xA()}}var EA=()=>{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 Ny(){return{localeError:EA()}}var Uy,td=Symbol("ZodOutput"),nd=Symbol("ZodInput"),yi=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 Si(){return new yi}(Uy=globalThis).__zod_globalRegistry??(Uy.__zod_globalRegistry=Si());var te=globalThis.__zod_globalRegistry;function rd(e,t){return new e({type:"string",...x(t)})}function od(e,t){return new e({type:"string",coerce:!0,...x(t)})}function bi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function Nr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function Ti(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function xi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function Ei(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function Ii(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 Di(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function _i(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function wi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function Pi(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function ki(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function Ci(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function Ai(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function Ri(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function $i(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function id(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...x(t)})}function ji(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function Oi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function Mi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function zi(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Fi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Bi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}var ad={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 ud(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function cd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function ld(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function dd(e,t){return new e({type:"number",checks:[],...x(t)})}function pd(e,t){return new e({type:"number",coerce:!0,checks:[],...x(t)})}function md(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function hd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(t)})}function fd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(t)})}function gd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(t)})}function vd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(t)})}function yd(e,t){return new e({type:"boolean",...x(t)})}function Sd(e,t){return new e({type:"boolean",coerce:!0,...x(t)})}function bd(e,t){return new e({type:"bigint",...x(t)})}function Td(e,t){return new e({type:"bigint",coerce:!0,...x(t)})}function xd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(t)})}function Ed(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(t)})}function Id(e,t){return new e({type:"symbol",...x(t)})}function Dd(e,t){return new e({type:"undefined",...x(t)})}function _d(e,t){return new e({type:"null",...x(t)})}function wd(e){return new e({type:"any"})}function Pd(e){return new e({type:"unknown"})}function kd(e,t){return new e({type:"never",...x(t)})}function Cd(e,t){return new e({type:"void",...x(t)})}function Ad(e,t){return new e({type:"date",...x(t)})}function Rd(e,t){return new e({type:"date",coerce:!0,...x(t)})}function $d(e,t){return new e({type:"nan",...x(t)})}function Ke(e,t){return new oi({check:"less_than",...x(t),value:e,inclusive:!1})}function we(e,t){return new oi({check:"less_than",...x(t),value:e,inclusive:!0})}function Ge(e,t){return new ii({check:"greater_than",...x(t),value:e,inclusive:!1})}function he(e,t){return new ii({check:"greater_than",...x(t),value:e,inclusive:!0})}function Li(e){return Ge(0,e)}function qi(e){return Ke(0,e)}function Ni(e){return we(0,e)}function Ui(e){return he(0,e)}function kt(e,t){return new _c({check:"multiple_of",...x(t),value:e})}function Ct(e,t){return new kc({check:"max_size",...x(t),maximum:e})}function Qe(e,t){return new Cc({check:"min_size",...x(t),minimum:e})}function Qt(e,t){return new Ac({check:"size_equals",...x(t),size:e})}function Jt(e,t){return new Rc({check:"max_length",...x(t),maximum:e})}function lt(e,t){return new $c({check:"min_length",...x(t),minimum:e})}function Xt(e,t){return new jc({check:"length_equals",...x(t),length:e})}function Pn(e,t){return new Oc({check:"string_format",format:"regex",...x(t),pattern:e})}function kn(e){return new Mc({check:"string_format",format:"lowercase",...x(e)})}function Cn(e){return new zc({check:"string_format",format:"uppercase",...x(e)})}function An(e,t){return new Fc({check:"string_format",format:"includes",...x(t),includes:e})}function Rn(e,t){return new Bc({check:"string_format",format:"starts_with",...x(t),prefix:e})}function $n(e,t){return new Lc({check:"string_format",format:"ends_with",...x(t),suffix:e})}function Wi(e,t,r){return new qc({check:"property",property:e,schema:t,...x(r)})}function jn(e,t){return new Nc({check:"mime_type",mime:e,...x(t)})}function Ne(e){return new Uc({check:"overwrite",tx:e})}function On(e){return Ne(t=>t.normalize(e))}function Mn(){return Ne(e=>e.trim())}function zn(){return Ne(e=>e.toLowerCase())}function Fn(){return Ne(e=>e.toUpperCase())}function Bn(){return Ne(e=>qu(e))}function jd(e,t,r){return new e({type:"array",element:t,...x(r)})}function DA(e,t,r){return new e({type:"union",options:t,...x(r)})}function _A(e,t,r){return new e({type:"union",options:t,inclusive:!1,...x(r)})}function wA(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...x(o)})}function PA(e,t,r){return new e({type:"intersection",left:t,right:r})}function kA(e,t,r,o){let n=r instanceof j,i=n?o:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...x(i)})}function CA(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...x(o)})}function AA(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...x(o)})}function RA(e,t,r){return new e({type:"set",valueType:t,...x(r)})}function $A(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 OA(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...x(r)})}function Od(e,t){return new e({type:"file",...x(t)})}function MA(e,t){return new e({type:"transform",transform:t})}function zA(e,t){return new e({type:"optional",innerType:t})}function FA(e,t){return new e({type:"nullable",innerType:t})}function BA(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Uu(r)}})}function LA(e,t,r){return new e({type:"nonoptional",innerType:t,...x(r)})}function qA(e,t){return new e({type:"success",innerType:t})}function NA(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function UA(e,t,r){return new e({type:"pipe",in:t,out:r})}function WA(e,t){return new e({type:"readonly",innerType:t})}function HA(e,t,r){return new e({type:"template_literal",parts:t,...x(r)})}function VA(e,t){return new e({type:"lazy",getter:t})}function ZA(e,t){return new e({type:"promise",innerType:t})}function Md(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function zd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Fd(e){let t=Wy(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Tn(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(Tn(n))}},e(r.value,r)));return t}function Wy(e,t){let r=new V({check:"custom",...x(t)});return r._zod.check=e,r}function Bd(e){let t=new V({check:"describe"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Ld(e){let t=new V({check:"meta"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,...e})}],t._zod.check=()=>{},t}function qd(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??Br,c=e.Boolean??zr,l=e.String??Gt,p=new l({type:"string",error:r.error}),d=new c({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 Ln(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 At(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 c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),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 Rt(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 c=o.get(u);if(c&&c!==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 l=`#/${u}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+p}},i=s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:c,defId:l}=n(s);u.def={...u.schema},l&&(u.defId=l);let p=u.schema;for(let d in p)delete p[d];p.$ref=c};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>
95
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");let R=h.compile();return(q,O)=>R(m,q,O)},i,s=Zt,u=!Ir.jitless,l=u&&Uu.value,p=t.catchall,d;e._zod.parse=(m,h)=>{d??(d=o.value);let g=m.value;return s(g)?u&&l&&h?.async===!1&&h.jitless!==!0?(i||(i=n(t.shape)),m=i(m,h),p?Kv([],g,m,h,d,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Ov(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=>be(s,o,K())))}),t)}var Fr=f("$ZodUnion",(e,t)=>{j.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=>wr(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 c of t.options){let l=c._zod.run({value:n.value,issues:[]},i);if(l instanceof Promise)u.push(l),s=!0;else{if(l.issues.length===0)return l;u.push(l)}}return s?Promise.all(u).then(c=>Ov(c,n,e,i)):Ov(u,n,e,i)}});function Mv(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,K())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Al=f("$ZodXor",(e,t)=>{Fr.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 c of t.options){let l=c._zod.run({value:n.value,issues:[]},i);l instanceof Promise?(u.push(l),s=!0):u.push(l)}return s?Promise.all(u).then(c=>Mv(c,n,e,i)):Mv(u,n,e,i)}}),Rl=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Fr.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,c]of Object.entries(s)){n[u]||(n[u]=new Set);for(let l of c)n[u].add(l)}}return n});let o=bn(()=>{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 c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(n,i)=>{let s=n.value;if(!Zt(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)}}),$l=f("$ZodIntersection",(e,t)=>{j.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(([c,l])=>zv(r,c,l)):zv(r,i,s)}});function Vc(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=Vc(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=Vc(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 zv(e,t,r){let o=new Map,n;for(let u of t.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).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=Vc(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 hi=f("$ZodTuple",(e,t)=>{j.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"),c=u===-1?0:r.length-u;if(!t.rest){let p=i.length>r.length,d=i.length<c-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 l=-1;for(let p of r){if(l++,l>=i.length&&l>=c)continue;let d=p._zod.run({value:i[l],issues:[]},n);d instanceof Promise?s.push(d.then(m=>si(m,o,l))):si(d,o,l)}if(t.rest){let p=i.slice(r.length);for(let d of p){l++;let m=t.rest._zod.run({value:d,issues:[]},n);m instanceof Promise?s.push(m.then(h=>si(h,o,l))):si(m,o,l)}}return s.length?Promise.all(s).then(()=>o):o}});function si(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}var jl=f("$ZodRecord",(e,t)=>{j.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 l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let p=t.valueType._zod.run({value:n[l],issues:[]},o);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&r.issues.push(..._e(l,d.issues)),r.value[l]=d.value})):(p.issues.length&&r.issues.push(..._e(l,p.issues)),r.value[l]=p.value)}let c;for(let l in n)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&oi.test(u)&&c.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&&(c=d)}if(c.issues.length){t.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>be(d,o,K())),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[c.value]=d.value})):(p.issues.length&&r.issues.push(..._e(u,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Ol=f("$ZodMap",(e,t)=>{j.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 c=t.keyType._zod.run({value:s,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([p,d])=>{Fv(p,d,r,s,n,e,o)})):Fv(c,l,r,s,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Fv(e,t,r,o,n,i,s){e.issues.length&&(Pr.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=>be(u,s,K()))})),t.issues.length&&(Pr.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=>be(u,s,K()))})),r.value.set(e.value,t.value)}var Ml=f("$ZodSet",(e,t)=>{j.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(c=>Lv(c,r))):Lv(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Lv(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var zl=f("$ZodEnum",(e,t)=>{j.init(e,t);let r=_r(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Pr.has(typeof n)).map(n=>typeof n=="string"?$e(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}}),Fl=f("$ZodLiteral",(e,t)=>{if(j.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"?$e(o):o?$e(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}}),Ll=f("$ZodFile",(e,t)=>{j.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}}),Bl=f("$ZodTransform",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It(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 qe;return r.value=n,r}});function Bv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var fi=f("$ZodOptional",(e,t)=>{j.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(`^(${wr(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=>Bv(i,r.value)):Bv(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),ql=f("$ZodExactOptional",(e,t)=>{fi.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)}),Nl=f("$ZodNullable",(e,t)=>{j.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(`^(${wr(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)}),Ul=f("$ZodDefault",(e,t)=>{j.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=>qv(i,t)):qv(n,t)}});function qv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wl=f("$ZodPrefault",(e,t)=>{j.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))}),Hl=f("$ZodNonOptional",(e,t)=>{j.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=>Nv(i,e)):Nv(n,e)}});function Nv(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 Vl=f("$ZodSuccess",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It("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)}}),Zl=f("$ZodCatch",(e,t)=>{j.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=>be(s,o,K()))},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,K()))},input:r.value}),r.issues=[]),r)}}),Kl=f("$ZodNaN",(e,t)=>{j.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)}),Gl=f("$ZodPipe",(e,t)=>{j.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=>ui(s,t.in,o)):ui(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>ui(i,t.out,o)):ui(n,t.out,o)}});function ui(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Lr=f("$ZodCodec",(e,t)=>{j.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=>ci(s,t,o)):ci(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>ci(s,t,o)):ci(i,t,o)}}});function ci(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=>li(e,i,t.out,r)):li(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>li(e,i,t.in,r)):li(e,n,t.in,r)}}function li(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Ql=f("$ZodReadonly",(e,t)=>{j.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(Uv):Uv(n)}});function Uv(e){return e.value=Object.freeze(e.value),e}var Jl=f("$ZodTemplateLiteral",(e,t)=>{j.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||Hu.has(typeof o))r.push($e(`${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)}),Xl=f("$ZodFunction",(e,t)=>(j.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?Zo(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Zo(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 Ko(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ko(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 hi({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)),Yl=f("$ZodPromise",(e,t)=>{j.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),ed=f("$ZodLazy",(e,t)=>{j.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)}),td=f("$ZodCustom",(e,t)=>{V.init(e,t),j.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=>Wv(i,r,o,e));Wv(n,r,o,e)}});function Wv(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(Tn(n))}}var qr={};st(qr,{ar:()=>Qv,az:()=>Jv,be:()=>Yv,bg:()=>ey,ca:()=>ty,cs:()=>ny,da:()=>ry,de:()=>oy,en:()=>gi,eo:()=>iy,es:()=>ay,fa:()=>sy,fi:()=>uy,fr:()=>cy,frCA:()=>ly,he:()=>dy,hu:()=>py,hy:()=>hy,id:()=>fy,is:()=>gy,it:()=>vy,ja:()=>yy,ka:()=>Sy,kh:()=>by,km:()=>vi,ko:()=>Ty,lt:()=>Ey,mk:()=>Iy,ms:()=>Dy,nl:()=>_y,no:()=>wy,ota:()=>Py,pl:()=>Cy,ps:()=>ky,pt:()=>Ay,ru:()=>$y,sl:()=>jy,sv:()=>Oy,ta:()=>My,th:()=>zy,tr:()=>Fy,ua:()=>Ly,uk:()=>yi,ur:()=>By,uz:()=>qy,vi:()=>Ny,yo:()=>Hy,zhCN:()=>Uy,zhTW:()=>Wy});var BC=()=>{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 Qv(){return{localeError:BC()}}var qC=()=>{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 Jv(){return{localeError:qC()}}function Xv(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 NC=()=>{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),c=Xv(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()} ${c}`}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),c=Xv(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()} ${c}`}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 Yv(){return{localeError:NC()}}var UC=()=>{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 ey(){return{localeError:UC()}}var WC=()=>{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 ty(){return{localeError:WC()}}var HC=()=>{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 ny(){return{localeError:HC()}}var VC=()=>{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 ry(){return{localeError:VC()}}var ZC=()=>{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 oy(){return{localeError:ZC()}}var KC=()=>{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 gi(){return{localeError:KC()}}var GC=()=>{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 iy(){return{localeError:GC()}}var QC=()=>{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 ay(){return{localeError:QC()}}var JC=()=>{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 sy(){return{localeError:JC()}}var XC=()=>{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 uy(){return{localeError:XC()}}var YC=()=>{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 cy(){return{localeError:YC()}}var eA=()=>{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 ly(){return{localeError:eA()}}var tA=()=>{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=l=>l?e[l]:void 0,o=l=>{let p=r(l);return p?p.label:l??e.unknown.label},n=l=>`\u05D4${o(l)}`,i=l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=l=>l?t[l]??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"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let p=l.expected,d=c[p??""]??o(p),m=b(l.input),h=c[m]??e[m]?.label??m;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.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(l.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(l.values[0])}`;let p=l.values.map(h=>S(h));if(l.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(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=l.inclusive?`${l.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=l.inclusive?"<=":"<",h=i(l.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.maximum.toString()}`}case"too_small":{let p=s(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let P=(l.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=l.inclusive?`${l.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=l.inclusive?">=":">",h=i(l.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${h} ${m}${l.minimum.toString()}`}case"invalid_format":{let p=l;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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function dy(){return{localeError:tA()}}var nA=()=>{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 py(){return{localeError:nA()}}function my(e,t,r){return Math.abs(e)===1?t:r}function wn(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 rA=()=>{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),c=my(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 ${wn(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}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 ${wn(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),c=my(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 ${wn(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}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 ${wn(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 ${wn(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 ${wn(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function hy(){return{localeError:rA()}}var oA=()=>{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 fy(){return{localeError:oA()}}var iA=()=>{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 gy(){return{localeError:iA()}}var aA=()=>{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 vy(){return{localeError:aA()}}var sA=()=>{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 yy(){return{localeError:sA()}}var uA=()=>{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 Sy(){return{localeError:uA()}}var cA=()=>{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 vi(){return{localeError:cA()}}function by(){return vi()}var lA=()=>{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),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${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),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${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 Ty(){return{localeError:lA()}}var Br=e=>e.charAt(0).toUpperCase()+e.slice(1);function xy(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 dA=()=>{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 c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.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,xy(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Br(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`${Br(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,xy(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Br(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`${Br(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`${Br(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Ey(){return{localeError:dA()}}var pA=()=>{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 Iy(){return{localeError:pA()}}var mA=()=>{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 Dy(){return{localeError:mA()}}var hA=()=>{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 _y(){return{localeError:hA()}}var fA=()=>{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 wy(){return{localeError:fA()}}var gA=()=>{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 Py(){return{localeError:gA()}}var vA=()=>{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 ky(){return{localeError:vA()}}var yA=()=>{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 Cy(){return{localeError:yA()}}var SA=()=>{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 Ay(){return{localeError:SA()}}function Ry(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 bA=()=>{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),c=Ry(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()} ${c}`}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),c=Ry(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()} ${c}`}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 $y(){return{localeError:bA()}}var TA=()=>{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 jy(){return{localeError:TA()}}var xA=()=>{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 Oy(){return{localeError:xA()}}var EA=()=>{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 My(){return{localeError:EA()}}var IA=()=>{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 zy(){return{localeError:IA()}}var DA=()=>{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 Fy(){return{localeError:DA()}}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 yi(){return{localeError:_A()}}function Ly(){return yi()}var wA=()=>{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 By(){return{localeError:wA()}}var PA=()=>{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 qy(){return{localeError:PA()}}var kA=()=>{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 Ny(){return{localeError:kA()}}var CA=()=>{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 Uy(){return{localeError:CA()}}var AA=()=>{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 Wy(){return{localeError:AA()}}var RA=()=>{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 Hy(){return{localeError:RA()}}var Vy,nd=Symbol("ZodOutput"),rd=Symbol("ZodInput"),Si=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 bi(){return new Si}(Vy=globalThis).__zod_globalRegistry??(Vy.__zod_globalRegistry=bi());var te=globalThis.__zod_globalRegistry;function od(e,t){return new e({type:"string",...x(t)})}function id(e,t){return new e({type:"string",coerce:!0,...x(t)})}function Ti(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function Nr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function xi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function Ei(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function Ii(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function Di(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 _i(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function wi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function Pi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function ki(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function Ci(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function Ai(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function Ri(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function $i(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function ji(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function ad(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...x(t)})}function Oi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function Mi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function zi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function Fi(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Li(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Bi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}var sd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ud(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function cd(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function ld(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function dd(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function pd(e,t){return new e({type:"number",checks:[],...x(t)})}function md(e,t){return new e({type:"number",coerce:!0,checks:[],...x(t)})}function hd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function fd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(t)})}function gd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(t)})}function vd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(t)})}function yd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(t)})}function Sd(e,t){return new e({type:"boolean",...x(t)})}function bd(e,t){return new e({type:"boolean",coerce:!0,...x(t)})}function Td(e,t){return new e({type:"bigint",...x(t)})}function xd(e,t){return new e({type:"bigint",coerce:!0,...x(t)})}function Ed(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(t)})}function Id(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(t)})}function Dd(e,t){return new e({type:"symbol",...x(t)})}function _d(e,t){return new e({type:"undefined",...x(t)})}function wd(e,t){return new e({type:"null",...x(t)})}function Pd(e){return new e({type:"any"})}function kd(e){return new e({type:"unknown"})}function Cd(e,t){return new e({type:"never",...x(t)})}function Ad(e,t){return new e({type:"void",...x(t)})}function Rd(e,t){return new e({type:"date",...x(t)})}function $d(e,t){return new e({type:"date",coerce:!0,...x(t)})}function jd(e,t){return new e({type:"nan",...x(t)})}function Ke(e,t){return new ii({check:"less_than",...x(t),value:e,inclusive:!1})}function we(e,t){return new ii({check:"less_than",...x(t),value:e,inclusive:!0})}function Ge(e,t){return new ai({check:"greater_than",...x(t),value:e,inclusive:!1})}function he(e,t){return new ai({check:"greater_than",...x(t),value:e,inclusive:!0})}function qi(e){return Ge(0,e)}function Ni(e){return Ke(0,e)}function Ui(e){return we(0,e)}function Wi(e){return he(0,e)}function kt(e,t){return new wc({check:"multiple_of",...x(t),value:e})}function Ct(e,t){return new Cc({check:"max_size",...x(t),maximum:e})}function Qe(e,t){return new Ac({check:"min_size",...x(t),minimum:e})}function Qt(e,t){return new Rc({check:"size_equals",...x(t),size:e})}function Jt(e,t){return new $c({check:"max_length",...x(t),maximum:e})}function lt(e,t){return new jc({check:"min_length",...x(t),minimum:e})}function Xt(e,t){return new Oc({check:"length_equals",...x(t),length:e})}function Pn(e,t){return new Mc({check:"string_format",format:"regex",...x(t),pattern:e})}function kn(e){return new zc({check:"string_format",format:"lowercase",...x(e)})}function Cn(e){return new Fc({check:"string_format",format:"uppercase",...x(e)})}function An(e,t){return new Lc({check:"string_format",format:"includes",...x(t),includes:e})}function Rn(e,t){return new Bc({check:"string_format",format:"starts_with",...x(t),prefix:e})}function $n(e,t){return new qc({check:"string_format",format:"ends_with",...x(t),suffix:e})}function Hi(e,t,r){return new Nc({check:"property",property:e,schema:t,...x(r)})}function jn(e,t){return new Uc({check:"mime_type",mime:e,...x(t)})}function Ne(e){return new Wc({check:"overwrite",tx:e})}function On(e){return Ne(t=>t.normalize(e))}function Mn(){return Ne(e=>e.trim())}function zn(){return Ne(e=>e.toLowerCase())}function Fn(){return Ne(e=>e.toUpperCase())}function Ln(){return Ne(e=>Nu(e))}function Od(e,t,r){return new e({type:"array",element:t,...x(r)})}function jA(e,t,r){return new e({type:"union",options:t,...x(r)})}function OA(e,t,r){return new e({type:"union",options:t,inclusive:!1,...x(r)})}function MA(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...x(o)})}function zA(e,t,r){return new e({type:"intersection",left:t,right:r})}function FA(e,t,r,o){let n=r instanceof j,i=n?o:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...x(i)})}function LA(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...x(o)})}function BA(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...x(o)})}function qA(e,t,r){return new e({type:"set",valueType:t,...x(r)})}function NA(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 UA(e,t,r){return new e({type:"enum",entries:t,...x(r)})}function WA(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...x(r)})}function Md(e,t){return new e({type:"file",...x(t)})}function HA(e,t){return new e({type:"transform",transform:t})}function VA(e,t){return new e({type:"optional",innerType:t})}function ZA(e,t){return new e({type:"nullable",innerType:t})}function KA(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Wu(r)}})}function GA(e,t,r){return new e({type:"nonoptional",innerType:t,...x(r)})}function QA(e,t){return new e({type:"success",innerType:t})}function JA(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function XA(e,t,r){return new e({type:"pipe",in:t,out:r})}function YA(e,t){return new e({type:"readonly",innerType:t})}function eR(e,t,r){return new e({type:"template_literal",parts:t,...x(r)})}function tR(e,t){return new e({type:"lazy",getter:t})}function nR(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 Fd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Ld(e){let t=Zy(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Tn(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(Tn(n))}},e(r.value,r)));return t}function Zy(e,t){let r=new V({check:"custom",...x(t)});return r._zod.check=e,r}function Bd(e){let t=new V({check:"describe"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function qd(e){let t=new V({check:"meta"});return t._zod.onattach=[r=>{let o=te.get(r)??{};te.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Nd(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??Lr,c=e.Boolean??zr,l=e.String??Gt,p=new l({type:"string",error:r.error}),d=new c({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 At(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 c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),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 Rt(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 c=o.get(u);if(c&&c!==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 l=`#/${u}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+p}},i=s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:c,defId:l}=n(s);u.def={...u.schema},l&&(u.defId=l);let p=u.schema;for(let d in p)delete p[d];p.$ref=c};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>
96
96
 
97
- 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 l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){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 $t(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 c=u.def??u.schema,l={...c},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")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),s._zod.parent===p)for(let y in c)y==="$ref"||y==="allOf"||y in l||delete c[y];if(h.$ref&&m.def)for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}let d=s._zod.parent;if(d&&d!==p){o(d);let m=e.seen.get(d);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h]}e.override({zodSchema:s,jsonSchema:c,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:qn(t,"input",e.processors),output:qn(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 Nd=(e,t={})=>r=>{let o=At({...r,processors:t});return U(e,o),Rt(o,e),$t(o,e)},qn=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=At({...n??{},target:i,io:t,processors:r});return U(e,s),Rt(s,e),$t(s,e)};var KA={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ud=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=KA[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let p=[...c];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}))])}},Wd=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:c,exclusiveMaximum:l,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 l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof s=="number"&&(n.maximum=s,typeof l=="number"&&t.target!=="draft-04"&&(l<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},Hd=(e,t,r,o)=>{r.type="boolean"},Vd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Zd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Kd=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Gd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Qd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Jd=(e,t,r,o)=>{r.not={}},Xd=(e,t,r,o)=>{},Yd=(e,t,r,o)=>{},ep=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},tp=(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},np=(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},rp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},op=(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},ip=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,i)},ap=(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")},up=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},cp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},lp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},dp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},pp=(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"]})},mp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let s=i.shape;for(let l in s)n.properties[l]=U(s[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(s)),c=new Set([...u].filter(l=>{let p=i.shape[l]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),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)},Vi=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((u,c)=>U(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},hp=(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=l=>"allOf"in l&&Object.keys(l).length===1,c=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=c},fp=(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",c=i.items.map((m,h)=>U(m,t,{...o,path:[...o.path,s,h]})),l=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=c,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),n.minItems=c.length,l||(n.maxItems=c.length)):(n.items=c,l&&(n.additionalItems=l));let{minimum:p,maximum:d}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof d=="number"&&(n.maxItems=d)},gp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)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 l=s._zod.values;if(l){let p=[...l].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p)}},vp=(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"}]},yp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Sp=(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))},bp=(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)))},Tp=(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},xp=(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},Ep=(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},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},Zi=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Dp=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},Hi={string:Ud,number:Wd,boolean:Hd,bigint:Vd,symbol:Zd,null:Kd,undefined:Gd,void:Qd,never:Jd,any:Xd,unknown:Yd,date:ep,enum:tp,literal:np,nan:rp,template_literal:op,file:ip,success:ap,custom:sp,function:up,transform:cp,map:lp,set:dp,array:pp,object:mp,union:Vi,intersection:hp,tuple:fp,record:gp,nullable:vp,nonoptional:yp,default:Sp,prefault:bp,catch:Tp,pipe:xp,readonly:Ep,promise:Ip,optional:Zi,lazy:Dp};function Ki(e,t){if("_idmap"in e){let o=e,n=At({...t,processors:Hi}),i={};for(let c of o._idmap.entries()){let[l,p]=c;U(p,n)}let s={},u={registry:o,uri:t?.uri,defs:i};n.external=u;for(let c of o._idmap.entries()){let[l,p]=c;Rt(n,p),s[l]=$t(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let r=At({...t,processors:Hi});return U(e,r),Rt(r,e),$t(r,e)}var Gi=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=At({processors:Hi,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)),Rt(this.ctx,t);let o=$t(this.ctx,t),{"~standard":n,...i}=o;return i}};var Hy={};var Wr={};st(Wr,{ZodAny:()=>Gp,ZodArray:()=>Yp,ZodBase64:()=>ga,ZodBase64URL:()=>va,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>ba,ZodBoolean:()=>Zn,ZodCIDRv4:()=>ha,ZodCIDRv6:()=>fa,ZodCUID:()=>sa,ZodCUID2:()=>ua,ZodCatch:()=>Tm,ZodCodec:()=>Pa,ZodCustom:()=>to,ZodCustomStringFormat:()=>Hn,ZodDate:()=>Qr,ZodDefault:()=>fm,ZodDiscriminatedUnion:()=>tm,ZodE164:()=>ya,ZodEmail:()=>oa,ZodEmoji:()=>ia,ZodEnum:()=>Un,ZodExactOptional:()=>pm,ZodFile:()=>lm,ZodFunction:()=>Cm,ZodGUID:()=>Hr,ZodIPv4:()=>pa,ZodIPv6:()=>ma,ZodIntersection:()=>nm,ZodJWT:()=>Sa,ZodKSUID:()=>da,ZodLazy:()=>wm,ZodLiteral:()=>cm,ZodMAC:()=>Np,ZodMap:()=>sm,ZodNaN:()=>Em,ZodNanoID:()=>aa,ZodNever:()=>Jp,ZodNonOptional:()=>_a,ZodNull:()=>Zp,ZodNullable:()=>hm,ZodNumber:()=>Vn,ZodNumberFormat:()=>en,ZodObject:()=>Xr,ZodOptional:()=>Da,ZodPipe:()=>wa,ZodPrefault:()=>vm,ZodPromise:()=>km,ZodReadonly:()=>Im,ZodRecord:()=>eo,ZodSet:()=>um,ZodString:()=>Wn,ZodStringFormat:()=>H,ZodSuccess:()=>bm,ZodSymbol:()=>Hp,ZodTemplateLiteral:()=>_m,ZodTransform:()=>dm,ZodTuple:()=>om,ZodType:()=>z,ZodULID:()=>ca,ZodURL:()=>Gr,ZodUUID:()=>Je,ZodUndefined:()=>Vp,ZodUnion:()=>Yr,ZodUnknown:()=>Qp,ZodVoid:()=>Xp,ZodXID:()=>la,ZodXor:()=>em,_ZodString:()=>ra,_default:()=>gm,_function:()=>XS,any:()=>CS,array:()=>Jr,base64:()=>mS,base64url:()=>hS,bigint:()=>DS,boolean:()=>Wp,catch:()=>xm,check:()=>YS,cidrv4:()=>dS,cidrv6:()=>pS,codec:()=>GS,cuid:()=>rS,cuid2:()=>oS,custom:()=>eb,date:()=>RS,describe:()=>tb,discriminatedUnion:()=>FS,e164:()=>fS,email:()=>Zy,emoji:()=>tS,enum:()=>Ea,exactOptional:()=>mm,file:()=>HS,float32:()=>TS,float64:()=>xS,function:()=>XS,guid:()=>Ky,hash:()=>bS,hex:()=>SS,hostname:()=>yS,httpUrl:()=>eS,instanceof:()=>rb,int:()=>na,int32:()=>ES,int64:()=>_S,intersection:()=>rm,ipv4:()=>uS,ipv6:()=>lS,json:()=>ib,jwt:()=>gS,keyof:()=>$S,ksuid:()=>sS,lazy:()=>Pm,literal:()=>WS,looseObject:()=>MS,looseRecord:()=>LS,mac:()=>cS,map:()=>qS,meta:()=>nb,nan:()=>KS,nanoid:()=>nS,nativeEnum:()=>US,never:()=>Ta,nonoptional:()=>Sm,null:()=>Kp,nullable:()=>Zr,nullish:()=>VS,number:()=>Up,object:()=>jS,optional:()=>Vr,partialRecord:()=>BS,pipe:()=>Kr,prefault:()=>ym,preprocess:()=>ab,promise:()=>JS,readonly:()=>Dm,record:()=>am,refine:()=>Am,set:()=>NS,strictObject:()=>OS,string:()=>ta,stringFormat:()=>vS,stringbool:()=>ob,success:()=>ZS,superRefine:()=>Rm,symbol:()=>PS,templateLiteral:()=>QS,transform:()=>Ia,tuple:()=>im,uint32:()=>IS,uint64:()=>wS,ulid:()=>iS,undefined:()=>kS,union:()=>xa,unknown:()=>Yt,url:()=>Yy,uuid:()=>Gy,uuidv4:()=>Qy,uuidv6:()=>Jy,uuidv7:()=>Xy,void:()=>AS,xid:()=>aS,xor:()=>zS});var Qi={};st(Qi,{endsWith:()=>$n,gt:()=>Ge,gte:()=>he,includes:()=>An,length:()=>Xt,lowercase:()=>kn,lt:()=>Ke,lte:()=>we,maxLength:()=>Jt,maxSize:()=>Ct,mime:()=>jn,minLength:()=>lt,minSize:()=>Qe,multipleOf:()=>kt,negative:()=>qi,nonnegative:()=>Ui,nonpositive:()=>Ni,normalize:()=>On,overwrite:()=>Ne,positive:()=>Li,property:()=>Wi,regex:()=>Pn,size:()=>Qt,slugify:()=>Bn,startsWith:()=>Rn,toLowerCase:()=>zn,toUpperCase:()=>Fn,trim:()=>Mn,uppercase:()=>Cn});var Nn={};st(Nn,{ZodISODate:()=>Xi,ZodISODateTime:()=>Ji,ZodISODuration:()=>ea,ZodISOTime:()=>Yi,date:()=>wp,datetime:()=>_p,duration:()=>kp,time:()=>Pp});var Ji=f("ZodISODateTime",(e,t)=>{rl.init(e,t),H.init(e,t)});function _p(e){return sd(Ji,e)}var Xi=f("ZodISODate",(e,t)=>{ol.init(e,t),H.init(e,t)});function wp(e){return ud(Xi,e)}var Yi=f("ZodISOTime",(e,t)=>{il.init(e,t),H.init(e,t)});function Pp(e){return cd(Yi,e)}var ea=f("ZodISODuration",(e,t)=>{al.init(e,t),H.init(e,t)});function kp(e){return ld(ea,e)}var Vy=(e,t)=>{Ar.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>$r(e,r)},flatten:{value:r=>Rr(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Sn,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Sn,2)}},isEmpty:{get(){return e.issues.length===0}}})},QA=f("ZodError",Vy),xe=f("ZodError",Vy,{Parent:Error});var Cp=xn(xe),Ap=En(xe),Rp=In(xe),$p=Dn(xe),jp=Ko(xe),Op=Go(xe),Mp=Qo(xe),zp=Jo(xe),Fp=Xo(xe),Bp=Yo(xe),Lp=ei(xe),qp=ti(xe);var z=f("ZodType",(e,t)=>(j.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:qn(e,"input"),output:qn(e,"output")}}),e.toJSONSchema=Nd(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)=>Cp(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Rp(e,r,o),e.parseAsync=async(r,o)=>Ap(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>$p(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>jp(e,r,o),e.decode=(r,o)=>Op(e,r,o),e.encodeAsync=async(r,o)=>Mp(e,r,o),e.decodeAsync=async(r,o)=>zp(e,r,o),e.safeEncode=(r,o)=>Fp(e,r,o),e.safeDecode=(r,o)=>Bp(e,r,o),e.safeEncodeAsync=async(r,o)=>Lp(e,r,o),e.safeDecodeAsync=async(r,o)=>qp(e,r,o),e.refine=(r,o)=>e.check(Am(r,o)),e.superRefine=r=>e.check(Rm(r)),e.overwrite=r=>e.check(Ne(r)),e.optional=()=>Vr(e),e.exactOptional=()=>mm(e),e.nullable=()=>Zr(e),e.nullish=()=>Vr(Zr(e)),e.nonoptional=r=>Sm(e,r),e.array=()=>Jr(e),e.or=r=>xa([e,r]),e.and=r=>rm(e,r),e.transform=r=>Kr(e,Ia(r)),e.default=r=>gm(e,r),e.prefault=r=>ym(e,r),e.catch=r=>xm(e,r),e.pipe=r=>Kr(e,r),e.readonly=()=>Dm(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)),ra=f("_ZodString",(e,t)=>{Gt.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ud(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(Pn(...o)),e.includes=(...o)=>e.check(An(...o)),e.startsWith=(...o)=>e.check(Rn(...o)),e.endsWith=(...o)=>e.check($n(...o)),e.min=(...o)=>e.check(lt(...o)),e.max=(...o)=>e.check(Jt(...o)),e.length=(...o)=>e.check(Xt(...o)),e.nonempty=(...o)=>e.check(lt(1,...o)),e.lowercase=o=>e.check(kn(o)),e.uppercase=o=>e.check(Cn(o)),e.trim=()=>e.check(Mn()),e.normalize=(...o)=>e.check(On(...o)),e.toLowerCase=()=>e.check(zn()),e.toUpperCase=()=>e.check(Fn()),e.slugify=()=>e.check(Bn())}),Wn=f("ZodString",(e,t)=>{Gt.init(e,t),ra.init(e,t),e.email=r=>e.check(bi(oa,r)),e.url=r=>e.check(Ur(Gr,r)),e.jwt=r=>e.check(Bi(Sa,r)),e.emoji=r=>e.check(Di(ia,r)),e.guid=r=>e.check(Nr(Hr,r)),e.uuid=r=>e.check(Ti(Je,r)),e.uuidv4=r=>e.check(xi(Je,r)),e.uuidv6=r=>e.check(Ei(Je,r)),e.uuidv7=r=>e.check(Ii(Je,r)),e.nanoid=r=>e.check(_i(aa,r)),e.guid=r=>e.check(Nr(Hr,r)),e.cuid=r=>e.check(wi(sa,r)),e.cuid2=r=>e.check(Pi(ua,r)),e.ulid=r=>e.check(ki(ca,r)),e.base64=r=>e.check(Mi(ga,r)),e.base64url=r=>e.check(zi(va,r)),e.xid=r=>e.check(Ci(la,r)),e.ksuid=r=>e.check(Ai(da,r)),e.ipv4=r=>e.check(Ri(pa,r)),e.ipv6=r=>e.check($i(ma,r)),e.cidrv4=r=>e.check(ji(ha,r)),e.cidrv6=r=>e.check(Oi(fa,r)),e.e164=r=>e.check(Fi(ya,r)),e.datetime=r=>e.check(_p(r)),e.date=r=>e.check(wp(r)),e.time=r=>e.check(Pp(r)),e.duration=r=>e.check(kp(r))});function ta(e){return rd(Wn,e)}var H=f("ZodStringFormat",(e,t)=>{W.init(e,t),ra.init(e,t)}),oa=f("ZodEmail",(e,t)=>{Kc.init(e,t),H.init(e,t)});function Zy(e){return bi(oa,e)}var Hr=f("ZodGUID",(e,t)=>{Vc.init(e,t),H.init(e,t)});function Ky(e){return Nr(Hr,e)}var Je=f("ZodUUID",(e,t)=>{Zc.init(e,t),H.init(e,t)});function Gy(e){return Ti(Je,e)}function Qy(e){return xi(Je,e)}function Jy(e){return Ei(Je,e)}function Xy(e){return Ii(Je,e)}var Gr=f("ZodURL",(e,t)=>{Gc.init(e,t),H.init(e,t)});function Yy(e){return Ur(Gr,e)}function eS(e){return Ur(Gr,{protocol:/^https?$/,hostname:je.domain,...T.normalizeParams(e)})}var ia=f("ZodEmoji",(e,t)=>{Qc.init(e,t),H.init(e,t)});function tS(e){return Di(ia,e)}var aa=f("ZodNanoID",(e,t)=>{Jc.init(e,t),H.init(e,t)});function nS(e){return _i(aa,e)}var sa=f("ZodCUID",(e,t)=>{Xc.init(e,t),H.init(e,t)});function rS(e){return wi(sa,e)}var ua=f("ZodCUID2",(e,t)=>{Yc.init(e,t),H.init(e,t)});function oS(e){return Pi(ua,e)}var ca=f("ZodULID",(e,t)=>{el.init(e,t),H.init(e,t)});function iS(e){return ki(ca,e)}var la=f("ZodXID",(e,t)=>{tl.init(e,t),H.init(e,t)});function aS(e){return Ci(la,e)}var da=f("ZodKSUID",(e,t)=>{nl.init(e,t),H.init(e,t)});function sS(e){return Ai(da,e)}var pa=f("ZodIPv4",(e,t)=>{sl.init(e,t),H.init(e,t)});function uS(e){return Ri(pa,e)}var Np=f("ZodMAC",(e,t)=>{cl.init(e,t),H.init(e,t)});function cS(e){return id(Np,e)}var ma=f("ZodIPv6",(e,t)=>{ul.init(e,t),H.init(e,t)});function lS(e){return $i(ma,e)}var ha=f("ZodCIDRv4",(e,t)=>{ll.init(e,t),H.init(e,t)});function dS(e){return ji(ha,e)}var fa=f("ZodCIDRv6",(e,t)=>{dl.init(e,t),H.init(e,t)});function pS(e){return Oi(fa,e)}var ga=f("ZodBase64",(e,t)=>{ml.init(e,t),H.init(e,t)});function mS(e){return Mi(ga,e)}var va=f("ZodBase64URL",(e,t)=>{hl.init(e,t),H.init(e,t)});function hS(e){return zi(va,e)}var ya=f("ZodE164",(e,t)=>{fl.init(e,t),H.init(e,t)});function fS(e){return Fi(ya,e)}var Sa=f("ZodJWT",(e,t)=>{gl.init(e,t),H.init(e,t)});function gS(e){return Bi(Sa,e)}var Hn=f("ZodCustomStringFormat",(e,t)=>{vl.init(e,t),H.init(e,t)});function vS(e,t,r={}){return Ln(Hn,e,t,r)}function yS(e){return Ln(Hn,"hostname",je.hostname,e)}function SS(e){return Ln(Hn,"hex",je.hex,e)}function bS(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=je[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ln(Hn,o,n,t)}var Vn=f("ZodNumber",(e,t)=>{di.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Wd(e,o,n,i),e.gt=(o,n)=>e.check(Ge(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(Ke(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(na(o)),e.safe=o=>e.check(na(o)),e.positive=o=>e.check(Ge(0,o)),e.nonnegative=o=>e.check(he(0,o)),e.negative=o=>e.check(Ke(0,o)),e.nonpositive=o=>e.check(we(0,o)),e.multipleOf=(o,n)=>e.check(kt(o,n)),e.step=(o,n)=>e.check(kt(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 Up(e){return dd(Vn,e)}var en=f("ZodNumberFormat",(e,t)=>{yl.init(e,t),Vn.init(e,t)});function na(e){return md(en,e)}function TS(e){return hd(en,e)}function xS(e){return fd(en,e)}function ES(e){return gd(en,e)}function IS(e){return vd(en,e)}var Zn=f("ZodBoolean",(e,t)=>{zr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hd(e,r,o,n)});function Wp(e){return yd(Zn,e)}var Kn=f("ZodBigInt",(e,t)=>{pi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Vd(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(Ge(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(Ke(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(Ge(BigInt(0),o)),e.negative=o=>e.check(Ke(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(kt(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function DS(e){return bd(Kn,e)}var ba=f("ZodBigIntFormat",(e,t)=>{Sl.init(e,t),Kn.init(e,t)});function _S(e){return xd(ba,e)}function wS(e){return Ed(ba,e)}var Hp=f("ZodSymbol",(e,t)=>{bl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zd(e,r,o,n)});function PS(e){return Id(Hp,e)}var Vp=f("ZodUndefined",(e,t)=>{Tl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gd(e,r,o,n)});function kS(e){return Dd(Vp,e)}var Zp=f("ZodNull",(e,t)=>{xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kd(e,r,o,n)});function Kp(e){return _d(Zp,e)}var Gp=f("ZodAny",(e,t)=>{El.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xd(e,r,o,n)});function CS(){return wd(Gp)}var Qp=f("ZodUnknown",(e,t)=>{Il.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yd(e,r,o,n)});function Yt(){return Pd(Qp)}var Jp=f("ZodNever",(e,t)=>{Dl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jd(e,r,o,n)});function Ta(e){return kd(Jp,e)}var Xp=f("ZodVoid",(e,t)=>{_l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qd(e,r,o,n)});function AS(e){return Cd(Xp,e)}var Qr=f("ZodDate",(e,t)=>{wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ep(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 RS(e){return Ad(Qr,e)}var Yp=f("ZodArray",(e,t)=>{Pl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pp(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(lt(r,o)),e.nonempty=r=>e.check(lt(1,r)),e.max=(r,o)=>e.check(Jt(r,o)),e.length=(r,o)=>e.check(Xt(r,o)),e.unwrap=()=>e.element});function Jr(e,t){return jd(Yp,e,t)}function $S(e){let t=e._zod.def.shape;return Ea(Object.keys(t))}var Xr=f("ZodObject",(e,t)=>{kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mp(e,r,o,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Ea(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Yt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Yt()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ta()}),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(Da,e,r[0]),e.required=(...r)=>T.required(_a,e,r[0])});function jS(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Xr(r)}function OS(e,t){return new Xr({type:"object",shape:e,catchall:Ta(),...T.normalizeParams(t)})}function MS(e,t){return new Xr({type:"object",shape:e,catchall:Yt(),...T.normalizeParams(t)})}var Yr=f("ZodUnion",(e,t)=>{Fr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vi(e,r,o,n),e.options=t.options});function xa(e,t){return new Yr({type:"union",options:e,...T.normalizeParams(t)})}var em=f("ZodXor",(e,t)=>{Yr.init(e,t),Cl.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vi(e,r,o,n),e.options=t.options});function zS(e,t){return new em({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var tm=f("ZodDiscriminatedUnion",(e,t)=>{Yr.init(e,t),Al.init(e,t)});function FS(e,t,r){return new tm({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var nm=f("ZodIntersection",(e,t)=>{Rl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hp(e,r,o,n)});function rm(e,t){return new nm({type:"intersection",left:e,right:t})}var om=f("ZodTuple",(e,t)=>{mi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fp(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function im(e,t,r){let o=t instanceof j,n=o?r:t,i=o?t:null;return new om({type:"tuple",items:e,rest:i,...T.normalizeParams(n)})}var eo=f("ZodRecord",(e,t)=>{$l.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});function am(e,t,r){return new eo({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function BS(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 LS(e,t,r){return new eo({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var sm=f("ZodMap",(e,t)=>{jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Qe(...r)),e.nonempty=r=>e.check(Qe(1,r)),e.max=(...r)=>e.check(Ct(...r)),e.size=(...r)=>e.check(Qt(...r))});function qS(e,t,r){return new sm({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var um=f("ZodSet",(e,t)=>{Ol.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dp(e,r,o,n),e.min=(...r)=>e.check(Qe(...r)),e.nonempty=r=>e.check(Qe(1,r)),e.max=(...r)=>e.check(Ct(...r)),e.size=(...r)=>e.check(Qt(...r))});function NS(e,t){return new um({type:"set",valueType:e,...T.normalizeParams(t)})}var Un=f("ZodEnum",(e,t)=>{Ml.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>tp(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 Un({...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 Un({...t,checks:[],...T.normalizeParams(n),entries:i})}});function Ea(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Un({type:"enum",entries:r,...T.normalizeParams(t)})}function US(e,t){return new Un({type:"enum",entries:e,...T.normalizeParams(t)})}var cm=f("ZodLiteral",(e,t)=>{zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>np(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 WS(e,t){return new cm({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var lm=f("ZodFile",(e,t)=>{Fl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ip(e,r,o,n),e.min=(r,o)=>e.check(Qe(r,o)),e.max=(r,o)=>e.check(Ct(r,o)),e.mime=(r,o)=>e.check(jn(Array.isArray(r)?r:[r],o))});function HS(e){return Od(lm,e)}var dm=f("ZodTransform",(e,t)=>{Bl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cp(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It(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 Ia(e){return new dm({type:"transform",transform:e})}var Da=f("ZodOptional",(e,t)=>{hi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vr(e){return new Da({type:"optional",innerType:e})}var pm=f("ZodExactOptional",(e,t)=>{Ll.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zi(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function mm(e){return new pm({type:"optional",innerType:e})}var hm=f("ZodNullable",(e,t)=>{ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Zr(e){return new hm({type:"nullable",innerType:e})}function VS(e){return Vr(Zr(e))}var fm=f("ZodDefault",(e,t)=>{Nl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gm(e,t){return new fm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var vm=f("ZodPrefault",(e,t)=>{Ul.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ym(e,t){return new vm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var _a=f("ZodNonOptional",(e,t)=>{Wl.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 Sm(e,t){return new _a({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var bm=f("ZodSuccess",(e,t)=>{Hl.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 ZS(e){return new bm({type:"success",innerType:e})}var Tm=f("ZodCatch",(e,t)=>{Vl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xm(e,t){return new Tm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Em=f("ZodNaN",(e,t)=>{Zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rp(e,r,o,n)});function KS(e){return $d(Em,e)}var wa=f("ZodPipe",(e,t)=>{Kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.in=t.in,e.out=t.out});function Kr(e,t){return new wa({type:"pipe",in:e,out:t})}var Pa=f("ZodCodec",(e,t)=>{wa.init(e,t),Br.init(e,t)});function GS(e,t,r){return new Pa({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Im=f("ZodReadonly",(e,t)=>{Gl.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 Dm(e){return new Im({type:"readonly",innerType:e})}var _m=f("ZodTemplateLiteral",(e,t)=>{Ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>op(e,r,o,n)});function QS(e,t){return new _m({type:"template_literal",parts:e,...T.normalizeParams(t)})}var wm=f("ZodLazy",(e,t)=>{Yl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dp(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Pm(e){return new wm({type:"lazy",getter:e})}var km=f("ZodPromise",(e,t)=>{Xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ip(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function JS(e){return new km({type:"promise",innerType:e})}var Cm=f("ZodFunction",(e,t)=>{Jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>up(e,r,o,n)});function XS(e){return new Cm({type:"function",input:Array.isArray(e?.input)?im(e?.input):e?.input??Jr(Yt()),output:e?.output??Yt()})}var to=f("ZodCustom",(e,t)=>{ed.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sp(e,r,o,n)});function YS(e){let t=new V({check:"custom"});return t._zod.check=e,t}function eb(e,t){return Md(to,e??(()=>!0),t)}function Am(e,t={}){return zd(to,e,t)}function Rm(e){return Fd(e)}var tb=Bd,nb=Ld;function rb(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 ob=(...e)=>qd({Codec:Pa,Boolean:Zn,String:Wn},...e);function ib(e){let t=Pm(()=>xa([ta(e),Up(),Wp(),Kp(),Jr(t),am(ta(),t)]));return t}function ab(e,t){return Kr(Ia(e),t)}var XA={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 YA(e){K({customError:e})}function eR(){return K().customError}var $m;$m||($m={});var _={...Wr,...Qi,iso:Nn},tR=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 nR(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 rR(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 sb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return _.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 _.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=rR(n,t),s=ce(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 _.null();if(n.length===0)return _.never();if(n.length===1)return _.literal(n[0]);if(n.every(s=>typeof s=="string"))return _.enum(n);let i=n.map(s=>_.literal(s));return i.length<2?i[0]:_.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return _.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...e,type:i};return sb(s,t)});return n.length===0?_.never():n.length===1?n[0]:_.union(n)}if(!r)return _.any();let o;switch(r){case"string":{let n=_.string();if(e.format){let i=e.format;i==="email"?n=n.check(_.email()):i==="uri"||i==="uri-reference"?n=n.check(_.url()):i==="uuid"||i==="guid"?n=n.check(_.uuid()):i==="date-time"?n=n.check(_.iso.datetime()):i==="date"?n=n.check(_.iso.date()):i==="time"?n=n.check(_.iso.time()):i==="duration"?n=n.check(_.iso.duration()):i==="ipv4"?n=n.check(_.ipv4()):i==="ipv6"?n=n.check(_.ipv6()):i==="mac"?n=n.check(_.mac()):i==="cidr"?n=n.check(_.cidrv4()):i==="cidr-v6"?n=n.check(_.cidrv6()):i==="base64"?n=n.check(_.base64()):i==="base64url"?n=n.check(_.base64url()):i==="e164"?n=n.check(_.e164()):i==="jwt"?n=n.check(_.jwt()):i==="emoji"?n=n.check(_.emoji()):i==="nanoid"?n=n.check(_.nanoid()):i==="cuid"?n=n.check(_.cuid()):i==="cuid2"?n=n.check(_.cuid2()):i==="ulid"?n=n.check(_.ulid()):i==="xid"?n=n.check(_.xid()):i==="ksuid"&&(n=n.check(_.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"?_.number().int():_.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=_.boolean();break}case"null":{o=_.null();break}case"object":{let n={},i=e.properties||{},s=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let p=ce(l,t);n[c]=s.has(c)?p:p.optional()}if(e.propertyNames){let c=ce(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?ce(e.additionalProperties,t):_.any();if(Object.keys(n).length===0){o=_.record(c,l);break}let p=_.object(n).passthrough(),d=_.looseRecord(c,l);o=_.intersection(p,d);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),p=[];for(let m of l){let h=ce(c[m],t),g=_.string().regex(new RegExp(m));p.push(_.looseRecord(g,h))}let d=[];if(Object.keys(n).length>0&&d.push(_.object(n).passthrough()),d.push(...p),d.length===0)o=_.object({}).passthrough();else if(d.length===1)o=d[0];else{let m=_.intersection(d[0],d[1]);for(let h=2;h<d.length;h++)m=_.intersection(m,d[h]);o=m}break}let u=_.object(n);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(ce(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(c=>ce(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?ce(i,t):void 0;u?o=_.tuple(s).rest(u):o=_.tuple(s),typeof e.minItems=="number"&&(o=o.check(_.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(_.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(c=>ce(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?ce(e.additionalItems,t):void 0;u?o=_.tuple(s).rest(u):o=_.tuple(s),typeof e.minItems=="number"&&(o=o.check(_.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(_.maxLength(e.maxItems)))}else if(i!==void 0){let s=ce(i,t),u=_.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=_.array(_.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 ce(e,t){if(typeof e=="boolean")return e?_.any():_.never();let r=sb(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(l=>ce(l,t)),c=_.union(u);r=o?_.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>ce(l,t)),c=_.xor(u);r=o?_.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:_.any();else{let u=o?r:ce(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=_.intersection(u,ce(e.allOf[l],t));r=u}e.nullable===!0&&t.version==="openapi-3.0"&&(r=_.nullable(r)),e.readOnly===!0&&(r=_.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))tR.has(u)||(n[u]=e[u]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function ub(e,t){if(typeof e=="boolean")return e?_.any():_.never();let r=nR(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 ce(e,n)}var jm={};st(jm,{bigint:()=>sR,boolean:()=>aR,date:()=>uR,number:()=>iR,string:()=>oR});function oR(e){return od(Wn,e)}function iR(e){return pd(Vn,e)}function aR(e){return Sd(Zn,e)}function sR(e){return Td(Kn,e)}function uR(e){return Rd(Qr,e)}K(fi());var cb=["low","medium","high","xhigh","max"],Y=a.enum(cb),ge=a.enum(["fast","default"]),lb=["append","replace"],Mm=a.enum(lb),db=["full","workspace-write","readonly"],le=a.enum(db),pb=["ask","deny"],Om=a.enum(pb),ee=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string()}),a.object({type:a.literal("image"),url:a.string().url()}),a.object({type:a.literal("localImage"),path:a.string()}),a.object({type:a.literal("localFile"),path:a.string(),name:a.string().optional(),sizeBytes:a.number().int().nonnegative().optional(),mimeType:a.string().optional()})]),zm=a.enum(["client/thread/start","client/turn/requested","client/turn/start"]),mb=a.object({model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),source:zm.optional(),seq:a.number().int().optional()}),pt=mb.extend({model:a.string().min(1),serviceTier:ge,reasoningLevel:Y,permissionMode:le,source:zm}),hb=a.discriminatedUnion("permissionMode",[a.object({permissionMode:a.literal("full"),permissionEscalation:a.null()}),a.object({permissionMode:a.literal("workspace-write"),permissionEscalation:Om}),a.object({permissionMode:a.literal("readonly"),permissionEscalation:Om})]),cR=a.object({model:a.string().min(1),serviceTier:ge,reasoningLevel:Y}),Fm=cR.and(hb),lR=a.object({providerId:a.string().min(1),model:a.string().min(1),serviceTier:ge,reasoningLevel:Y,permissionMode:le});var Bm=a.object({askUserQuestion:a.boolean(),terminals:a.boolean()});var dR=new Set([".",".."]),Lm=a.string().min(1).max(128).refine(e=>!e.includes("/")&&!e.includes("\\"),{message:"Manager template name must be a single directory name"}).refine(e=>!dR.has(e),{message:"Manager template name cannot be . or .."});var ka=500,Ca=200,Gn=64*1024,Aa=Math.ceil(Gn/3)*4,pR=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,fb=["starting","running","disconnected","exited"],qm=a.enum(fb),gb=["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"],Nm=a.enum(gb);function vb(e){let t=e.endsWith("==")?2:e.endsWith("=")?1:0;return e.length/4*3-t}var mt=a.number().int().positive().max(ka),ht=a.number().int().positive().max(Ca),tn=a.string().min(1).max(Aa).regex(pR).refine(e=>vb(e)<=Gn,{message:`Terminal data must decode to ${Gn} bytes or less`});var yb=["project","thread"],mR=a.enum(yb),Um=a.object({id:a.string().min(1),createdAt:a.number(),input:a.array(ee).min(1)});var jt=a.enum(["pending","resolving","resolved","interrupted","expired"]),bb=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()})]),Km=a.object({enabled:a.boolean().nullable()}),Gm=a.object({read:a.array(a.string()),write:a.array(a.string())}),hR=a.enum(["none","read_only","read_write"]),fR=a.enum(["none","read_only","read_write"]),gR=a.union([a.literal("none"),a.literal("all"),a.object({kind:a.literal("bundle_ids"),bundleIds:a.array(a.string())})]),Tb=a.object({preferences:hR,automations:gR,launchServices:a.boolean(),accessibility:a.boolean(),calendar:a.boolean(),reminders:a.boolean(),contacts:fR}),vR=a.object({network:Km.nullable(),fileSystem:Gm.nullable(),macos:Tb.nullable()}),no=a.object({network:Km.nullable(),fileSystem:Gm.nullable()}).strict(),Sb=no,xb=a.enum(["allow_once","allow_for_session","deny"]),yR=a.string().min(1),Eb=a.object({kind:a.literal("command"),itemId:a.string().min(1),command:a.string().min(1),cwd:a.string().nullable(),actions:a.array(bb),sessionGrant:no.nullable()}),Ib=a.object({kind:a.literal("file_change"),itemId:a.string().min(1),writeScope:yR.nullable(),sessionGrant:no.nullable()}),Ra=a.object({kind:a.literal("permission_grant"),itemId:a.string().min(1),toolName:a.string().nullable(),permissions:no}),Db=a.discriminatedUnion("kind",[Eb,Ib,Ra]),_b=a.object({kind:a.literal("approval"),subject:Db,reason:a.string().nullable(),availableDecisions:a.array(xb).min(1)}),Wm=4,Hm=4,Vm=4,Zm=4096,SR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question ids cannot be blank"}),bR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question prompts cannot be blank"}),TR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question short labels cannot be blank"}),xR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option values cannot be blank"}),ER=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option labels cannot be blank"}),IR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option descriptions cannot be blank"}),DR=a.string().min(1).max(Zm,`User question free text cannot exceed ${Zm} characters`).refine(e=>e.trim().length>0,{message:"User question free text cannot be blank"}),wb=a.object({value:xR,label:ER,description:IR.optional()}),$a=a.object({id:SR,prompt:bR,shortLabel:TR.optional(),multiSelect:a.boolean(),options:a.array(wb).max(Hm,`User questions cannot include more than ${Hm} 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"]}),ja=a.object({kind:a.literal("user_question"),questions:a.array($a).min(1).max(Wm,`User questions cannot include more than ${Wm} 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)})}),Qm=a.discriminatedUnion("kind",[_b,ja]);function ft(e){return e.kind==="approval"}function Oa(e){return e.kind==="user_question"}var Pb="Invalid discriminator value. Expected 'allow_once' | 'allow_for_session' | 'deny'",Ma=a.discriminatedUnion("decision",[a.object({decision:a.literal("allow_once"),grantedPermissions:Sb.nullable()}),a.object({decision:a.literal("allow_for_session"),grantedPermissions:Sb.nullable()}),a.object({decision:a.literal("deny")})],Pb),za=a.object({selected:a.array(a.string().min(1)).max(Vm,`User question selected choices cannot exceed ${Vm}`),freeText:DR.optional()}),Fa=a.object({kind:a.literal("user_answer"),answers:a.record(a.string().min(1),za)}),ro=a.union([Ma,Fa],Pb);function Ba(e){return"decision"in e}function Jm(e){return"kind"in e&&e.kind==="user_answer"}var Xm=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:Qm}),Ym=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:jt,payload:Qm,resolution:ro.nullable(),statusReason:a.string().nullable(),createdAt:a.number().int().nonnegative(),resolvedAt:a.number().int().nonnegative().nullable()});var kb=a.object({reasoningEffort:Y,description:a.string()}),nn=a.object({id:a.string(),model:a.string(),displayName:a.string(),description:a.string(),supportedReasoningEfforts:a.array(kb),defaultReasoningEffort:Y,isDefault:a.boolean()}),Cb=a.object({supportsArchive:a.boolean(),supportsRename:a.boolean(),supportsServiceTier:a.boolean(),supportsUserQuestion:a.boolean(),supportedPermissionModes:a.array(le).min(1)}),rn=a.object({id:a.string(),displayName:a.string(),capabilities:Cb,available:a.boolean()}),Ab=a.discriminatedUnion("type",[a.object({type:a.literal("inputText"),text:a.string()}),a.object({type:a.literal("inputImage"),imageUrl:a.string()})]),eh=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()}),Rb=a.object({contentItems:a.array(Ab),success:a.boolean()}),_R=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??""})),th=a.object({name:a.string(),description:a.string(),inputSchema:a.unknown()});var $b=["provisioning","ready","error","destroying","destroyed"],jb=a.enum($b),wR=["safe"],Ob=a.enum(wR),Mb=["unmanaged","managed-worktree"],La=a.enum(Mb),zb=["managed-worktree","unmanaged-worktree","other"],nh=a.enum(zb);function rh({environment:e}){return e.workspaceProvisionType==="managed-worktree"?"managed-worktree":e.isWorktree===!0?"unmanaged-worktree":"other"}var oh=a.object({path:a.string().min(1),isGitRepo:a.boolean(),isWorktree:a.boolean(),branchName:a.string().nullable(),defaultBranch:a.string().nullable()}),ih=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:La,branchName:a.string().nullable(),baseBranch:a.string().nullable(),defaultBranch:a.string().nullable(),mergeBaseBranch:a.string().nullable(),cleanupRequestedAt:a.number().nullable(),cleanupMode:Ob.nullable(),status:jb,createdAt:a.number(),updatedAt:a.number()});function ah(e){return e?.mergeBaseBranch??e?.baseBranch??e?.defaultBranch??void 0}var oo=a.string().regex(/^hdevt_[23456789abcdefghijkmnpqrstuvwxyz]{20}$/u),Xe=a.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);var Oe=a.lazy(()=>a.union([a.string(),a.number(),a.boolean(),a.null(),a.array(Oe),a.record(a.string(),Oe)])),qa=a.record(a.string(),Oe);var Na=["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"],PR=a.enum(Na),Fb=["user","agent","system"],io=a.enum(Fb),sh=["thread-created","boot-created-thread","tell-after-provisioning-failure","tell-after-missing-environment-attachment","resume-missing-provider-thread"],kR=a.enum(sh),Bb=[...sh,"boot-active-resume","resume-existing-provider-session"],CR=a.enum(Bb),Lb=pt,Ua=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()})]),Wa=a.object({direction:a.literal("outbound"),source:a.enum(["spawn","tell"]),initiator:io,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())})}),ao=a.object({direction:a.literal("outbound"),requestId:Xe,source:a.enum(["spawn","tell"]),initiator:io,senderThreadId:a.string().nullable(),input:a.array(ee),target:Ua,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())}),execution:Lb}),uh=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"})}),qb=["assign","release","transfer"],Nb=a.enum(qb),Ub=a.object({action:Nb,nextParentThreadId:a.string().nullable(),nextParentThreadTitle:a.string().nullable(),previousParentThreadId:a.string().nullable(),previousParentThreadTitle:a.string().nullable()}),ch=a.object({operation:a.string(),status:a.string(),message:a.string(),operationId:a.string(),metadata:a.record(a.string(),Oe).optional()}),lh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:jt,resolution:Ma.nullable().default(null),statusReason:a.string().nullable().default(null),subject:Ra}),dh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:jt,resolution:Fa.nullable().default(null),statusReason:a.string().nullable().default(null),payload:ja}),Wb=["manual-stop","host-daemon-restarted"],Hb=a.enum(Wb),ph=a.object({reason:Hb}),Ha=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()}),Vb=["active","completed","failed"],Zb=a.enum(Vb),mh=a.object({provisioningId:a.string(),status:Zb,environmentId:a.string(),entries:a.array(Ha)}),hh=a.object({text:a.string(),toolCallId:a.string().optional(),turnId:a.string().optional()}),AR=a.object({turnId:a.string().optional(),input:a.array(ee).optional()});var Kb=["thread","turn"],RR=a.enum(Kb),on=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread")}),a.object({kind:a.literal("turn"),turnId:a.string().min(1)})]),Gb=["thread","turn","thread-or-turn"],$R=a.enum(Gb),Qb={"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 fh(){return Object.entries(Qb).map(([e,t])=>({type:e,definition:t}))}function gh(e){return fh().filter(t=>t.definition.policy===e).map(t=>t.type)}function jR(){let e={};for(let t of fh())e[t.type]=t.definition.policy;return e}function OR(){let e={};for(let t of fh())t.definition.rationale&&(e[t.type]=t.definition.rationale);return e}var MR=gh("turn"),zR=gh("thread"),FR=gh("thread-or-turn"),Jb=jR(),BR=OR();function vh(e){let t=Jb[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 Za=a.enum(["pending","completed","failed","interrupted"]),Xb=a.enum(["waiting_for_approval","denied"]).nullable(),eT=a.enum(["completed","failed","interrupted"]),tT=["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"],nT=a.enum(tT),rT=a.object({category:nT,providerCode:a.string().nullable(),httpStatusCode:a.number().nullable()}),oT=a.enum(["add","delete","update"]),iT=a.object({path:a.string(),kind:oT,movePath:a.string().optional(),diff:a.string().optional()}),aT=a.enum(["pending","active","completed","failed"]),sT=a.object({step:a.string(),status:aT.optional()}),uT=a.object({type:a.literal("webSearch"),id:a.string(),queries:a.array(a.string()).min(1),resultText:a.string().nullable(),parentToolCallId:a.string().optional()}),cT=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()}),Ka=a.object({originalLength:a.number(),retainedHeadLength:a.number(),retainedTailLength:a.number(),truncatedAt:a.number()}),yh=a.object({aggregatedOutput:Ka.optional(),result:Ka.optional(),resultText:Ka.optional()}),lT=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()})]),Sh=a.object({totalTokens:a.number(),inputTokens:a.number(),cachedInputTokens:a.number(),outputTokens:a.number(),reasoningOutputTokens:a.number()}),dT=a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()}),pT=a.object({total:Sh,last:Sh,modelContextWindow:a.number().nullable()}),mT=a.enum(["deprecation","config","general"]),hT=a.object({jsonrpc:a.literal("2.0"),id:a.union([a.string(),a.number()]).optional(),method:a.string(),params:Oe.optional()}),LR=a.object({type:a.literal("provider/unhandled"),threadId:a.string(),providerThreadId:a.string(),providerId:a.string(),rawType:a.string(),rawEvent:hT,parentToolCallId:a.string().optional()}),qR=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()}),bh=a.discriminatedUnion("type",[a.object({type:a.literal("userMessage"),id:a.string(),content:a.array(lT),clientRequestId:Xe.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:Za,approvalStatus:Xb,aggregatedOutput:a.string().optional(),exitCode:a.number().optional(),durationMs:a.number().optional(),truncation:yh.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("fileChange"),id:a.string(),changes:a.array(iT),status:Za,approvalStatus:Xb,parentToolCallId:a.string().optional()}),uT,cT,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:Za,result:a.unknown().optional(),error:a.string().optional(),durationMs:a.number().optional(),truncation:yh.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()})]),fT=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:eT,error:a.object({message:a.string()}).optional()}),a.object({type:a.literal("turn/input/accepted"),threadId:a.string(),providerThreadId:a.string(),clientRequestId:Xe,scope:on}).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:bh}),a.object({type:a.literal("item/completed"),threadId:a.string(),providerThreadId:a.string(),item:bh}),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()}),qR,a.object({type:a.literal("thread/tokenUsage/updated"),threadId:a.string(),providerThreadId:a.string(),tokenUsage:pT}),a.object({type:a.literal("thread/contextWindowUsage/updated"),threadId:a.string(),providerThreadId:a.string(),contextWindowUsage:dT}),a.object({type:a.literal("turn/plan/updated"),threadId:a.string(),providerThreadId:a.string(),plan:a.array(sT),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:rT.optional()}),a.object({type:a.literal("provider/warning"),threadId:a.string(),providerThreadId:a.string(),category:mT,summary:a.string().optional(),details:a.string().optional()}),LR]),gT=a.object({scope:on}),vT=fT.and(gT),Th=fT.options.map(e=>e.shape.type.value),NR=new Set(Th),UR=a.string().refine(e=>NR.has(e),"Invalid provider event type"),WR=a.union([a.object({type:a.literal("client/thread/start"),threadId:a.string()}).merge(Wa),a.object({type:a.literal("client/turn/requested"),threadId:a.string()}).merge(ao),a.object({type:a.literal("client/turn/start"),threadId:a.string()}).merge(Wa),a.object({type:a.literal("system/error"),threadId:a.string()}).merge(uh),a.object({type:a.literal("system/manager/user_message"),threadId:a.string()}).merge(hh),a.object({type:a.literal("system/thread/interrupted"),threadId:a.string()}).merge(ph),a.object({type:a.literal("system/operation"),threadId:a.string()}).merge(ch),a.object({type:a.literal("system/permissionGrant/lifecycle"),threadId:a.string()}).merge(lh),a.object({type:a.literal("system/userQuestion/lifecycle"),threadId:a.string()}).merge(dh),a.object({type:a.literal("system/thread-provisioning"),threadId:a.string()}).merge(mh)]),yT=WR.and(gT),Yb=a.record(a.string(),a.unknown()),Va=["clientRequest","Sequence"].join(""),HR=a.unknown().superRefine((e,t)=>{let r=Yb.safeParse(e);if(!r.success)return;Object.hasOwn(r.data,Va)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy request sequence field is no longer accepted",path:[Va]});let o=Yb.safeParse(r.data.item);o.success&&o.data.type==="userMessage"&&Object.hasOwn(o.data,Va)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy user-message request sequence field is no longer accepted",path:["item",Va]})}),Qn=HR.pipe(a.union([vT,yT]).superRefine((e,t)=>{let r=vh({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}})),ST=[...Th,...Na],VR=new Set(ST),xh=a.string().refine(e=>VR.has(e),"Invalid thread event type");var bT=["requested","queued","completed","failed","cancelled"],ZR=a.enum(bT);var TT=["provision","reprovision","destroy"],KR=a.enum(TT),xT=["provision","start","stop"],GR=a.enum(xT),ET=["metadata-pending","environment-pending","environment-attached","environment-provisioning","workspace-ready"],QR=a.enum(ET),IT=["delete"],JR=a.enum(IT);var Eh=a.object({id:a.string(),name:a.string(),createdAt:a.number(),updatedAt:a.number()}),DT=["local_path"],XR=a.enum(DT),YR=a.object({id:a.string(),projectId:a.string(),isDefault:a.boolean(),createdAt:a.number(),updatedAt:a.number()}),_T=YR.extend({type:a.literal("local_path"),hostId:a.string(),path:a.string()}),Ih=_T;function Dh(e,t){return e.find(r=>r.type==="local_path"&&r.hostId===t)}var e0=/^[A-Za-z]:(?:[\\/]+)?$/u,t0=/^[A-Za-z]:(?:[\\/]+)/u,n0=/^\\\\[^\\/]+(?:[\\/]+)[^\\/]+/u,_h="Project path must be an absolute path.",r0="Project path must point to a project directory, not the filesystem root.",wT="Native Windows paths are not supported. Use a POSIX path like /home/me/repo or /mnt/c/Users/me/repo.";function PT(e){let t=e.trim();return t?e0.test(t)||t0.test(t)||n0.test(t):!1}function kT(e){let t=e.trim();return t?t.startsWith("/"):!1}function Ga(e){let t=e.trim();return t?t==="/"?t:t.replace(/\/+$/u,""):""}function wh(e){let t=Ga(e);return t?PT(t)?wT:kT(t)?t==="/"?r0:null:_h:_h}var CT=["persistent"],an=a.enum(CT),AT=["connected","disconnected"],RT=a.enum(AT),Ph=a.object({id:a.string(),name:a.string(),type:an,status:RT,lastSeenAt:a.number().nullable(),createdAt:a.number(),updatedAt:a.number()});var sn=["created","provisioning","idle","active","error"],Jn=a.enum(sn);var $T=[...sn,"host-reconnecting","waiting-for-host"],jT=a.enum($T),OT=a.object({displayStatus:jT,hostReconnectGraceExpiresAt:a.number().nullable()}),MT=["standard","manager"],so=a.enum(MT),zT=["clean","untracked","dirty_uncommitted","committed_unmerged","dirty_and_committed_unmerged"],FT=a.enum(zT),BT=a.enum(["M","A","D","R","C","U","??","?"]),LT=a.object({path:a.string(),status:BT,insertions:a.number().nullable(),deletions:a.number().nullable()}),qT=a.object({sha:a.string(),shortSha:a.string(),subject:a.string(),authorName:a.string(),authoredAt:a.number()}),kh=a.object({insertions:a.number(),deletions:a.number(),files:a.array(LT)}),NT=kh.extend({hasUncommittedChanges:a.boolean(),state:FT}),UT=a.object({currentBranch:a.string().nullable(),defaultBranch:a.string()}),WT=kh.extend({mergeBaseBranch:a.string(),baseRef:a.string().nullable(),aheadCount:a.number(),behindCount:a.number(),hasCommittedUnmergedChanges:a.boolean(),commits:a.array(qT)}),uo=a.object({workingTree:NT,branch:UT,mergeBase:WT.nullable()}),Qa=a.object({id:a.string(),content:a.array(ee).min(1),model:a.string().min(1),reasoningLevel:Y,permissionMode:le,serviceTier:ge,createdAt:a.number(),updatedAt:a.number()}),HT=a.object({id:a.string(),projectId:a.string(),environmentId:a.string().nullable(),automationId:a.string().nullable(),providerId:a.string(),type:so,title:a.string().nullable(),titleFallback:a.string().nullable(),status:Jn,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()}),Ja=HT.extend({runtime:OT}),Xa=Ja.extend({hasPendingInteraction:a.boolean(),environmentHostId:a.string().nullable(),environmentBranchName:a.string().nullable(),environmentWorkspaceDisplayKind:nh});var Ch=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)})]),Ah=a.object({diff:a.string(),truncated:a.boolean(),shortstat:a.string(),files:a.string(),mergeBaseRef:a.string().nullable()});var VT=a.object({id:a.string(),scope:on,threadId:a.string(),seq:a.number(),type:xh,data:a.record(a.string(),a.unknown()),createdAt:a.number()}),o0=new Set(["client/turn/requested"]),i0={kind:"new-turn"},a0=ao.extend({senderThreadId:a.string().nullable().default(null),target:Ua.default(i0),execution:pt});function s0(e){return a0.parse(e.data)}function u0(e){let{scope:t,threadId:r,type:o,...n}=e;return n}function c0(e){let{scope:t,turnId:r,...o}=e;return o}function ZT(e){let t=on.safeParse(e.scope);if(!t.success)throw new Error("Stored thread event is missing valid scope");let r=t.data,o=o0.has(e.type)?s0(e):e.data;return Qn.parse({...c0(o),...e.providerThreadId!=null?{providerThreadId:e.providerThreadId}:{},scope:r,threadId:e.threadId,type:e.type})}function Rh(e){let{event:t,...r}=e;return{...r,type:t.type,data:u0(t)}}function KT(e){return Rh({id:e.id,scope:e.scope,threadId:e.threadId,seq:e.seq,createdAt:e.createdAt,event:ZT({type:e.type,data:e.data,threadId:e.threadId,scope:e.scope})})}function $h(e){let t=VT.parse(e);return KT(t)}var l0=VT.transform(e=>KT(e));var jh=a.object({id:a.string(),text:a.string(),startedAt:a.number(),updatedAt:a.number()});var GT=a.enum(["pending","in_progress","completed"]),QT=a.object({id:a.string(),text:a.string(),status:GT}),Oh=a.object({sourceSeq:a.number().int().nonnegative(),updatedAt:a.number(),items:a.array(QT)});var Mh=["thread","project","environment","host","system"],zh=a.enum(Mh);var Ya=["environment-created","environment-deleted","metadata-changed","status-changed","work-status-changed","git-refs-changed","thread-storage-changed"];var JT=a.object({type:a.literal("subscribe"),entity:zh,id:a.string().optional()}),XT=a.object({type:a.literal("unsubscribe"),entity:zh,id:a.string().optional()}),d0=a.discriminatedUnion("type",[JT,XT]);var Xn=Bo(fx(),1);var co={dataDir:{prod:".bb",dev:".bb-dev"},logLevel:{prod:"info",dev:"debug"},secretToken:{dev:"dev-secret"},serverPort:{prod:38886,dev:3334},hostDaemonPort:{prod:38887,dev:3002},appPort:{dev:5173},devEnvPort:9112,serverUrl:{prod:"http://localhost:38886",dev:"http://localhost:3334"},inferenceModel:"codex/gpt-5.4-mini",transcriptionModel:"codex/gpt-4o-mini-transcribe"};var os=(0,Xn.envsafe)({BB_SERVER_URL:(0,Xn.url)({desc:"URL of the bb server",default:co.serverUrl.prod,devDefault:co.serverUrl.dev}),BB_HOST_DAEMON_PORT:(0,Xn.port)({desc:"Port of the local host daemon",default:co.hostDaemonPort.prod,devDefault:co.hostDaemonPort.dev})});var W0=a.string().trim().min(1);function vx(e){let t=new URL(e);return t.hostname==="localhost"&&(t.hostname="127.0.0.1"),t.href.replace(/\/$/u,"")}var H0=a.object({hostId:a.string().min(1),hostKey:W0,hostType:an,serverUrl:a.string().trim().url().transform(vx)}).strict();var V0=(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},yx=(e,t,r)=>(t=encodeURIComponent(t),V0(e,t,r));var Sx=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),as=(e,t)=>{for(let[r,o]of Object.entries(t)){let n=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(n,o?`/${o}`:"")}return e},bx=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},Tx=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},Zh=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function is(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Kh(e,t){if(!is(e)&&!is(t))return t;let r={...e};for(let o in t){let n=t[o];is(r[o])&&is(n)?r[o]=Kh(r[o],n):r[o]=n}return r}var xx=(e,t)=>new Proxy(()=>{},{get(o,n){if(!(typeof n!="string"||n==="then"))return xx(e,[...t,n])},apply(o,n,i){return e({path:t,args:i})}}),K0=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[c,l]of Object.entries(e.form))if(Array.isArray(l))for(let p of l)u.append(c,p);else u.append(c,l);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[c,l]of Object.entries(e.cookie))u.push(yx(c,l,{path:"/"}));o.Cookie=u.join(",")}this.cType&&(o["Content-Type"]=this.cType);let n=new Headers(o??void 0),i=this.url;i=Zh(i),i=as(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})}},Yn=(e,t)=>xx(function r(o){let n=t?.buildSearchParams??bx,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 c=i.join("/"),l=Sx(e,c);if(u==="url"){let d=l;return o.args[0]&&(o.args[0].param&&(d=as(l,o.args[0].param)),o.args[0].query&&(d=d+"?"+n(o.args[0].query).toString())),d=Zh(d),new URL(d)}if(u==="ws"){let d=Tx(o.args[0]&&o.args[0].param?as(l,o.args[0].param):l,"ws"),m=new URL(d),h=o.args[0]?.query;return h&&Object.entries(h).forEach(([y,P])=>{Array.isArray(P)?P.forEach(I=>m.searchParams.append(y,I)):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 K0(l,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 Ex=["vscode","cursor","sublime-text","zed","windsurf","antigravity","finder","terminal","iterm2","ghostty","xcode"],Qh=a.enum(Ex),Ix=["editor","file-browser","terminal"],Dx=a.enum(Ix),_x=a.object({id:Qh,kind:Dx,label:a.string().min(1)}),G0=a.object({targets:a.array(_x)}),Q0=a.string().min(1),J0=a.number().int().positive().nullable(),X0=a.object({lineNumber:J0,path:Q0,targetId:Qh}),Y0=a.object({path:a.string().nullable()}),wx=200,e$=a.object({paths:a.array(a.string().min(1)).min(1).max(wx).transform(e=>Array.from(new Set(e)))}),t$=a.object({existence:a.record(a.string(),a.boolean())}),Px=a.enum(["darwin","linux","wsl","unknown"]),n$=a.object({hostId:a.string().min(1),connected:a.boolean(),protocolVersion:a.number().int().positive(),serverUrl:a.string(),supportsNativeFolderPicker:a.boolean(),platform:Px}),r$=a.string().min(1);function Jh(e){let t=e.replace(/\/$/,"");return Yn(t)}var o$=a.record(a.string(),a.unknown()),kx=a.object({jsonrpc:a.literal("2.0"),method:a.string(),params:o$.optional()}).passthrough(),PU=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(),kU=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(),CU=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(),AU=a.object({jsonrpc:a.literal("2.0"),method:a.literal("error"),params:a.object({message:a.string().optional()}).passthrough().optional()}).passthrough();var i$=3,a$=/^cap_[0-9a-z]+_[0-9a-z]{8}$/u;var s$=a.enum(["thread-start","turn-start"]),u$=a.enum(["live-dev-capture","corpus-fixture"]),MU=a.object({headSha:a.string().nullable(),isClean:a.boolean(),statusLines:a.array(a.string())}).strict(),c$=a.custom(e=>kx.safeParse(e).success,"Invalid JSON-RPC envelope"),l$=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:c$,sourceThreadId:a.string().optional()}),d$=a.object({turnId:a.string().min(1),userInput:a.array(ee).min(1),createdAt:a.number().int().nonnegative()}).strict(),p$=a.object({rawProviderEvents:a.number().int().nonnegative(),droppedRecords:a.number().int().nonnegative()}).strict(),ss=a.object({schemaVersion:a.literal(i$),captureId:a.string().regex(a$),capturedAt:a.number().int().nonnegative(),completedAt:a.number().int().nonnegative().nullable(),source:u$,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:s$,turns:a.array(d$).min(1),userInputPreview:a.string(),execution:pt,eventCounts:p$,errorMessage:a.string().nullable()}).strict(),us=ss.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}),Xh=us.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),Cx=a.object({captures:a.array(us)}),Ax=ss.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),Rx=a.object({captures:a.array(Xh)}),un=a.union([a.literal(.5),a.literal(1),a.literal(2),a.literal(5),a.literal(10)]),$x=a.object({speed:un}).strict(),jx=a.object({commandId:a.string(),replayThreadId:a.string(),projectId:a.string()}),zU=a.object({ordinal:a.number().int().positive(),relativeMs:a.number().int().nonnegative(),entry:l$});var Yh=17,Ox=256,Mx=1e4,ls=["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_branches","host.read_file","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"],m$=a.enum(ls),h$=new Set(ls);function zx(e){return h$.has(e)}var ef=Fm,er=a.object({workspacePath:a.string().min(1),workspaceProvisionType:La}),Bt=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),f$=a.object({threadId:a.string().min(1)}),Fx=a.object({workspaceContext:er,projectId:a.string().min(1),providerId:a.string().min(1),options:ef,instructions:a.string().min(1),dynamicTools:a.array(th),disallowedTools:a.array(a.string()).optional(),instructionMode:Mm}),g$=Fx.extend({providerThreadId:a.string().min(1)}),v$=g$.omit({options:!0}),Bx=a.object({environmentId:a.string().min(1)}),lo=Bx.extend({workspaceContext:er}),y$=Bt.extend({workspaceContext:er}),Lx=Bt.merge(Fx).extend({type:a.literal("thread.start"),requestId:Xe,input:a.array(ee).min(1),threadStoragePath:a.string().min(1).optional()}).strict(),qx=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()})]),Nx=Bt.extend({type:a.literal("turn.submit"),requestId:Xe,input:a.array(ee).min(1),options:ef,resumeContext:v$,target:qx}).strict(),Ux=Bt.extend({type:a.literal("thread.stop")}),Wx=Bt.extend({type:a.literal("thread.rename"),title:a.string().min(1)}),S$=y$.extend({type:a.literal("thread.archive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),b$=f$.extend({type:a.literal("thread.unarchive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),T$=Bt.extend({type:a.literal("thread.deleted")}),Hx=a.object({type:a.literal("replay.capture_list")}),Vx=a.object({type:a.literal("replay.capture_get"),captureId:a.string().min(1)}),x$=a.object({type:a.literal("replay.capture_delete"),captureId:a.string().min(1)}),Zx=Bt.extend({type:a.literal("replay.run"),captureId:a.string().min(1),requestId:Xe,speed:un}).strict(),E$=Bt.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}),Kx=a.object({type:a.literal("codex.inference.complete"),model:a.string().min(1),prompt:a.string().min(1),outputSchema:qa,timeoutMs:a.number().int().positive()}).strict(),Gx=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(),Qx=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"})}),Jx=a.object({type:a.literal("host.list_files"),path:a.string().min(1),query:a.string().max(Ox).optional(),limit:a.number().int().positive().max(Mx)}),Xx=a.object({type:a.literal("host.list_branches"),path:a.string().min(1)}),Yx=a.object({type:a.literal("provider.list")}),eE=a.object({type:a.literal("provider.list_models"),providerId:a.string().min(1)}),I$=a.object({threadId:a.string().min(1),provisioningId:a.string().min(1)}).strict(),tE=Bx.extend({type:a.literal("environment.provision"),initiator:I$.nullable()}),D$=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)})]),_$=tE.extend({workspaceProvisionType:a.literal("unmanaged"),path:a.string().min(1),checkout:D$.optional()}),w$=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()}),P$=tE.merge(w$).extend({workspaceProvisionType:a.literal("managed-worktree")}),nE=a.discriminatedUnion("workspaceProvisionType",[_$,P$]),rE=lo.extend({type:a.literal("environment.destroy")}),oE=lo.extend({type:a.literal("workspace.status"),mergeBaseBranch:a.string().min(1).optional()}),iE=lo.extend({type:a.literal("workspace.diff"),target:Ch,maxDiffBytes:a.number().int().positive(),maxFileListBytes:a.number().int().positive()}),aE=lo.extend({type:a.literal("workspace.commit"),message:a.string().min(1)}),sE=lo.extend({type:a.literal("workspace.squash_merge"),targetBranch:a.string().min(1),commitMessage:a.string().min(1)}),k$=a.discriminatedUnion("type",[Lx,Nx,Ux,Wx,S$,b$,T$,Hx,Vx,x$,Zx,E$,Kx,Gx,Jx,Xx,Qx,Yx,eE,rE,oE,iE,aE,sE]),uE=a.union([k$,nE]);var C$=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),A$=a.object({files:a.array(a.object({path:a.string(),name:a.string()})),truncated:a.boolean()}),cE={"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":Cx,"replay.capture_get":ss,"replay.capture_delete":a.object({}),"replay.run":a.object({}),"interactive.resolve":a.object({}),"codex.inference.complete":a.object({model:a.string().min(1),value:qa}),"codex.voice.transcribe":a.object({model:a.string().min(1),text:a.string()}),"host.list_files":A$,"host.list_branches":a.object({branches:a.array(a.string()),current:a.string().nullable(),defaultBranch:a.string().nullable()}),"host.read_file":C$,"provider.list":a.object({providers:a.array(rn)}),"provider.list_models":a.object({models:a.array(nn),selectedOnlyModels:a.array(nn)}),"environment.provision":oh.extend({transcript:a.array(Ha)}),"environment.destroy":a.object({}),"workspace.status":a.object({workspaceStatus:uo}),"workspace.diff":a.object({diff:Ah}),"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)})},tf=a.object({id:a.string().min(1),cursor:a.number().int().nonnegative(),command:uE}),cs=a.object({sessionId:a.string().min(1),commandId:a.string().min(1),completedAt:a.number().int().nonnegative()});function R$(e,t){return[cs.extend({type:a.literal(e),ok:a.literal(!0),result:t}),cs.extend({type:a.literal(e),ok:a.literal(!1),errorCode:a.string().min(1),errorMessage:a.string().min(1)})]}function $$(e){return a.discriminatedUnion("ok",R$(e,cE[e]))}var j$=cs.extend({type:a.string().min(1),ok:a.literal(!1),errorCode:a.literal("unknown_command"),errorMessage:a.string().min(1)}),O$=cs.extend({type:a.string().min(1),ok:a.boolean()}),M$=new Map(ls.map(e=>[e,$$(e)])),z$=a.custom(e=>{let t=O$.safeParse(e);if(!t.success)return!1;if(!zx(t.data.type))return j$.safeParse(e).success;let r=M$.get(t.data.type);return r?r.safeParse(e).success:!1});var lE=a.string().regex(/^\d+$/);var dE=a.object({threadId:a.string().min(1)}),pE=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),F$=a.object({hostId:a.string().min(1),instanceId:a.string().min(1),hostName:a.string().min(1),hostType:an,dataDir:a.string().min(1),protocolVersion:a.literal(Yh),activeThreads:a.array(dE)}),B$=a.object({hostId:a.string().min(1),hostName:a.string().min(1),hostType:an}).strict(),L$=a.object({hostId:a.string().min(1),hostKey:a.string().min(1)}).strict(),q$=a.object({sessionId:a.string().min(1),heartbeatIntervalMs:a.number().int().positive(),leaseTimeoutMs:a.number().int().positive(),trackedThreadTargets:a.array(pE)}).strict(),N$=a.object({sessionId:a.string().min(1),limit:lE,waitMs:lE}),U$=a.object({sessionId:a.string().min(1),threadId:a.string().min(1),projectId:a.string().min(1),path:a.string().min(1)}),W$=a.object({commands:a.array(tf)}),mE=a.object({producerEventId:oo,threadId:a.string().min(1),event:Qn}).strict(),H$=a.object({sessionId:a.string().min(1),events:a.array(mE)}),hE=a.enum(["thread_not_owned_by_host"]),fE=a.object({producerEventId:oo,threadId:a.string().min(1),reason:hE}).strict(),V$=a.object({acceptedEvents:a.array(a.object({producerEventId:oo,threadId:a.string().min(1),sequence:a.number().int().nonnegative()}).strict()),rejectedEvents:a.array(fE)}).strict(),Z$=a.object({ok:a.literal(!0)}).strict(),gE=a.enum(Ya).extract(["work-status-changed","git-refs-changed","thread-storage-changed"]),vE=a.object({environmentId:a.string().min(1),change:gE}),K$=a.object({sessionId:a.string().min(1),...vE.shape}),ZU=a.object({bufferDepth:a.number().int().nonnegative(),lastCommandCursor:a.number().int().nonnegative().nullable()}),yE=a.enum(["replaced","expired","daemon-disconnect"]),Ye=a.string().min(1),po=a.string().min(1),SE=a.enum(["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"]),nf=a.object({seq:a.number().int().nonnegative(),dataBase64:tn}).strict(),G$=a.object({type:a.literal("terminal.open"),requestId:po,terminalId:Ye,threadId:a.string().min(1),environmentId:a.string().min(1),workspaceContext:er,cols:mt,rows:ht}).strict(),Q$=a.object({type:a.literal("terminal.attach"),requestId:po,terminalId:Ye,sinceSeq:a.number().int().nonnegative()}).strict(),J$=a.object({type:a.literal("terminal.input"),terminalId:Ye,dataBase64:tn}).strict(),X$=a.object({type:a.literal("terminal.resize"),terminalId:Ye,cols:mt,rows:ht}).strict(),Y$=a.object({type:a.literal("terminal.close"),terminalId:Ye,reason:SE}).strict(),ej=a.discriminatedUnion("type",[a.object({type:a.literal("commands-available")}).strict(),a.object({type:a.literal("session-close"),reason:yE}).strict(),G$,Q$,J$,X$,Y$]),tj=a.object({type:a.literal("heartbeat")}).strict(),nj=a.object({type:a.literal("terminal.opened"),requestId:po,terminalId:Ye,shell:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:mt,rows:ht}).strict(),rj=a.object({type:a.literal("terminal.output"),terminalId:Ye,chunk:nf}).strict(),oj=a.object({type:a.literal("terminal.replay"),requestId:po,terminalId:Ye,chunks:a.array(nf),nextSeq:a.number().int().nonnegative()}).strict(),ij=a.object({type:a.literal("terminal.exited"),terminalId:Ye,exitCode:a.number().int().nullable(),closeReason:SE}).strict(),aj=a.object({type:a.literal("terminal.error"),requestId:po,terminalId:Ye,code:a.string().min(1),message:a.string().min(1)}).strict(),sj=a.discriminatedUnion("type",[tj,nj,rj,oj,ij,aj]),uj=eh.pick({threadId:!0,providerThreadId:!0,turnId:!0,callId:!0,tool:!0,arguments:!0}).extend({sessionId:a.string().min(1)});var cj=a.object({sessionId:a.string().min(1),interaction:Xm}),lj=a.discriminatedUnion("outcome",[a.object({outcome:a.literal("created"),interactionId:a.string().min(1),status:jt}),a.object({outcome:a.literal("existing"),interactionId:a.string().min(1),status:jt}),a.object({outcome:a.literal("rejected"),reason:a.string().min(1)})]),dj=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)}),pj=a.object({ok:a.literal(!0),interactionIds:a.array(a.string().min(1))});var mj=/^[a-zA-Z0-9_-]+$/;function Me(e,t){if(!mj.test(e))throw new Error(`Invalid ID from ${t}: "${e}". IDs must contain only letters, digits, hyphens, and underscores.`);return e}function et(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function bE(){return os.BB_SERVER_URL}function TE(){return`http://${Gh}:${os.BB_HOST_DAEMON_PORT}`}function xE(e){let t=et(e);if(t)return Me(t,"--project flag");let r=et(process.env.BB_PROJECT_ID);if(r)return Me(r,"BB_PROJECT_ID")}function tt(e){let t=et(e);if(t)return Me(t,"--thread flag");let r=et(process.env.BB_THREAD_ID);if(r)return Me(r,"BB_THREAD_ID")}function EE(e){let t=et(e);if(t)return Me(t,"--environment flag")}function IE(e){let t=xE(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 hj(e){let t=et(e);if(t)return{id:Me(t,"--project flag"),source:"arg"};let r=et(process.env.BB_PROJECT_ID);if(r)return{id:Me(r,"BB_PROJECT_ID"),source:"env"}}function tr(e){let t=hj(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 rf(e){let t=et(e);if(t)return{id:Me(t,"<threadId> argument"),source:"arg"};let r=et(process.env.BB_THREAD_ID);if(r)return{id:Me(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId> or set BB_THREAD_ID.")}function Ue(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(e)return{id:Me(e,"<threadId> argument"),source:"arg"};if(t.self){let o=tt();if(!o)throw new Error("--self requires BB_THREAD_ID to be set.");return{id:o,source:"self"}}let r=et(process.env.BB_THREAD_ID);if(r)return{id:Me(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId>, use --self, or set BB_THREAD_ID.")}function nr(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(t.self){let r=tt();if(!r)throw new Error("--self requires BB_THREAD_ID to be set.");return r}if(e)return Me(e,"<threadId> argument");throw new Error("Provide a thread ID or use --self to target the current thread.")}function ds(){return{projectId:xE(),threadId:tt(),serverUrl:os.BB_SERVER_URL}}var gj=["low","medium","high","xhigh","max"];function A(e,t){return e.json?(console.log(JSON.stringify(t,null,2)),!0):!1}function oe(e,t,r,o){o.json||e.source==="env"&&console.error(`${t} ${e.id} (from ${r})`)}function of(e){let t=[...e.action==="commit"?["committed"]:[e.merged?"merged":"noop"]];console.log(`${e.message} [${t.join(", ")}]`)}async function cn(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=fj({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 af(e){return e instanceof Error?e.message:String(e)}function rr(e){if(e===void 0)return;let t=Y.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid reasoning level '${e}'. Expected ${sf(gj)}.`)}function gt(e,t){return new Error(`${e}: ${af(t)}`)}function sf(e){return e.map(t=>`'${t}'`).join(" or ")}var vt=class extends Error{exitCode;constructor(t,r){super(t),this.name="CliExitError",this.exitCode=r}};function C(e){return async(...t)=>{try{await e(...t)}catch(r){if(vj(r))throw r;if(r instanceof vt){console.error(`Error: ${r.message}`),process.exit(r.exitCode);return}console.error(`Error: ${af(r)}`),process.exit(1)}}}function vj(e){return e instanceof Error&&e.message.startsWith("process.exit:")}var yj=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"]),uf=a.object({code:a.string().min(1),message:a.string(),retryable:a.boolean().optional()});var DE=["pending","completed","error","interrupted"],mo=a.enum(DE),_E=["waiting_for_approval","denied"],ps=a.enum(_E).nullable(),cf=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()})]),ho=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()}),wE=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())}),PE=["message","steer"],kE=["pending","accepted"],CE=a.object({kind:a.enum(PE),status:a.enum(kE)}),AE=ho.extend({kind:a.literal("conversation"),text:a.string(),attachments:wE.nullable()}),RE=AE.extend({role:a.literal("user"),initiator:io,senderThreadId:a.string().nullable(),turnRequest:CE}),$E=AE.extend({role:a.literal("assistant"),turnRequest:a.null()}),lf=a.discriminatedUnion("role",[RE,$E]),jE=["generic","compaction","manager-assignment","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"],Sj=a.enum(jE),bj=a.enum(["generic","compaction","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"]),OE=["assign","release","transfer"],ME=a.enum(OE),zE=a.object({action:ME,previousManagerThreadId:a.string().nullable(),previousManagerThreadTitle:a.string().nullable(),nextManagerThreadId:a.string().nullable(),nextManagerThreadTitle:a.string().nullable()}),df=ho.extend({kind:a.literal("system"),title:a.string(),detail:a.string().nullable(),status:mo.nullable()}),FE=df.extend({systemKind:a.enum(["debug","error","reconnect"])}),BE=df.extend({systemKind:a.literal("operation"),operationKind:bj,completedAt:a.number().nullable()}),LE=df.extend({systemKind:a.literal("operation"),operationKind:a.literal("manager-assignment"),status:mo,managerAssignment:zE,completedAt:a.number().nullable()}),qE=a.discriminatedUnion("operationKind",[BE,LE]),pf=a.union([FE,qE]),NE=a.object({added:a.number().int().nonnegative(),removed:a.number().int().nonnegative()}),UE=a.object({path:a.string(),kind:a.string().nullable(),movePath:a.string().nullable(),diff:a.string().nullable(),diffStats:NE}),Lt=ho.extend({kind:a.literal("work"),status:mo}),WE=Lt.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(cf)}),HE=Lt.extend({workKind:a.literal("tool"),callId:a.string(),toolName:a.string(),toolArgs:a.record(a.string(),Oe).nullable(),output:a.string(),completedAt:a.number().nullable(),approvalStatus:ps,activityIntents:a.array(cf)}),VE=Lt.extend({workKind:a.literal("file-change"),callId:a.string(),change:UE,stdout:a.string().nullable(),stderr:a.string().nullable(),approvalStatus:ps}),ZE=Lt.extend({workKind:a.literal("web-search"),callId:a.string(),queries:a.array(a.string()),completedAt:a.number().nullable()}),KE=Lt.extend({workKind:a.literal("web-fetch"),callId:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),completedAt:a.number().nullable()}),Tj=["waiting","denied"],xj=["pending","resolving","granted","denied","interrupted","expired"],GE=["pending","resolving","answered","interrupted","expired"],QE=["turn","session"],JE=a.enum(QE),Ej=a.object({itemId:a.string(),toolName:a.string().nullable()}),XE=Lt.extend({workKind:a.literal("approval"),interactionId:a.string(),target:Ej}),Ij=XE.extend({approvalKind:a.literal("file-edit"),lifecycle:a.enum(Tj)}),Dj=XE.extend({approvalKind:a.literal("permission-grant"),lifecycle:a.enum(xj),grantScope:JE.nullable(),statusReason:a.string().nullable()}),YE=a.discriminatedUnion("approvalKind",[Ij,Dj]),eI=Lt.extend({workKind:a.literal("question"),interactionId:a.string(),lifecycle:a.enum(GE),questions:a.array($a),answers:a.record(a.string(),za).nullable(),statusReason:a.string().nullable()}),_j=Lt.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(()=>or))}),mf=a.union([WE,HE,VE,ZE,KE,YE,eI,_j]),tI=a.lazy(()=>ho.extend({kind:a.literal("turn"),turnId:a.string().min(1),status:mo,summaryCount:a.number().int().nonnegative(),completedAt:a.number().nullable(),children:a.array(or).nullable()})),wj=a.union([lf,mf,pf]),or=a.lazy(()=>a.union([lf,mf,pf,tI]));var rI=a.enum(["auto","start","steer"]),oI=200,ff=256,iI=100,aI=200,sI=100;function uI(e){return e.value.split(",").every(r=>r.length>0&&e.allowedValues.includes(r))}var cI=a.object({usedTokens:a.number(),modelContextWindow:a.number(),estimated:a.boolean()}),Pj=/[\u0000-\u001f\u007f\\:~^?*\[]/u,kj=/[ \t]/u,Cj=new Set(["AUTO_MERGE","BISECT_HEAD","CHERRY_PICK_HEAD","FETCH_HEAD","HEAD","MERGE_HEAD","ORIG_HEAD","REVERT_HEAD"]);function Aj(e){let t=e.split("/");return e.length>0&&e.trim().length>0&&!e.startsWith("-")&&!e.startsWith("/")&&e!=="@"&&!Cj.has(e)&&!Pj.test(e)&&!kj.test(e)&&!e.includes("..")&&!e.includes("@{")&&!e.includes("//")&&!e.endsWith("/")&&!e.endsWith(".")&&t.every(r=>r.length>0&&!r.startsWith(".")&&!r.endsWith(".lock"))}var gf=a.string().refine(Aj,{message:"Invalid git branch name"}),lI=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:gf}),a.object({kind:a.literal("new")})]),dI=a.object({type:a.literal("unmanaged"),path:a.string().min(1).nullable(),branch:lI.optional()}),pI=a.discriminatedUnion("kind",[a.object({kind:a.literal("named"),name:gf}),a.object({kind:a.literal("default")})]),mI=a.object({type:a.literal("managed-worktree"),baseBranch:pI}),hI=a.discriminatedUnion("type",[dI,mI]),fI=a.object({type:a.literal("reuse"),environmentId:a.string().min(1)}),gI=a.object({type:a.literal("host"),hostId:a.string().min(1),workspace:hI}),vf=a.discriminatedUnion("type",[fI,gI]),yf=a.enum(["app","cli"]),Rj=a.object({projectId:a.string().min(1),providerId:a.string().min(1).optional(),origin:yf,title:a.string().min(1).optional(),input:a.array(ee).min(1),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:vf,parentThreadId:a.string().min(1).optional()}),$j=a.object({providerId:a.string().min(1),title:a.string().min(1).optional(),input:a.array(ee).min(1),model:a.string().min(1),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:vf,parentThreadId:a.string().min(1).optional()}),hs=a.string().min(1).max(oI),vI=a.string().min(1).max(iI),jj=a.string().min(1).max(aI),yI=a.string().min(1).max(sI),SI=a.object({triggerType:a.literal("schedule"),cron:vI,timezone:yI}),bI=a.object({actionType:a.literal("scheduled-thread"),threadRequest:$j}),Sf=a.discriminatedUnion("triggerType",[SI]),fs=a.discriminatedUnion("actionType",[bI]),bf=a.string().min(1),Oj=a.object({isValid:a.boolean(),validationIssues:a.array(bf)}),Mj=a.object({id:a.string().min(1),projectId:a.string().min(1),name:hs,enabled:a.boolean(),trigger:Sf,action:fs,autoArchive:a.boolean(),nextRunAt:a.number().nullable(),lastRunAt:a.number().nullable(),runCount:a.number().int().nonnegative(),isValid:a.boolean(),validationIssues:a.array(bf),createdAt:a.number(),updatedAt:a.number()}),zj=a.object({name:hs,enabled:a.boolean().optional(),trigger:Sf,action:fs,autoArchive:a.boolean().optional()}),TI=a.object({enabled:a.boolean()}).strict(),xI=a.object({name:hs,trigger:Sf,action:fs,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"),Fj=a.union([TI,xI]),Bj=a.object({input:a.array(ee).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),mode:rI,senderThreadId:a.string().min(1).optional()}),EI=a.enum(["auto","steer"]),Lj=a.object({input:a.array(ee).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional()}),qj=a.object({mode:EI}),Nj=a.object({ok:a.literal(!0),queuedMessage:Qa}),Uj=a.array(Xa),II=Ja,DI=a.enum(["environment","host"]),Wj=a.object({include:a.string().min(1).refine(e=>uI({allowedValues:DI.options,value:e}),{message:"Invalid include"}).optional()}),Hj=II.extend({environment:ih.nullable().optional(),host:Ph.nullable().optional()}),_I=a.array(Ym);var wI=a.array(Qa),Vj=a.object({nonDeletedAssignedChildCount:a.number().int().nonnegative()}),Zj=a.object({managerChildThreadsConfirmed:a.boolean()}),Kj=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"),Gj=a.object({mergeBaseBranch:a.string().min(1).nullable()}),PI=a.string().trim().min(1).transform(Ga).superRefine((e,t)=>{let r=wh(e);r&&t.addIssue({code:a.ZodIssueCode.custom,message:r})}),Qj=a.object({hostId:a.string().min(1),type:a.literal("local_path"),path:PI}).strict(),kI=Qj,Jj=a.object({name:a.string().min(1),source:kI}),Xj=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent").optional()}).strict(),Yj=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent"),joinMode:a.literal("local")}).strict(),e1=a.union([Yj,Xj]),t1=a.object({expiresAt:a.number().int().positive(),hostId:a.string().min(1),joinCode:a.string().min(1),joinCommand:a.string().min(1)}),n1=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),r1=a.object({type:a.literal("host"),hostId:a.string().min(1)}),o1=a.discriminatedUnion("type",[r1]),i1=a.object({name:a.string().min(1).optional(),providerId:a.string().min(1).optional(),origin:yf,templateName:Lm.optional(),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:o1}),CI=a.enum(["threads"]),a1=a.object({include:a.string().min(1).refine(e=>uI({allowedValues:CI.options,value:e}),{message:"Invalid include"}).optional()}),s1=a.object({query:a.string().min(1).max(ff).optional(),limit:a.string().regex(/^\d+$/).optional(),environmentId:a.preprocess(e=>e===""?null:e,a.string().min(1).nullable())}),u1=a.object({hostId:a.string().min(1)}),c1=a.object({branches:a.array(a.string()),current:a.string().nullable(),defaultBranch:a.string().nullable()}),l1=a.object({path:a.string().min(1)}),d1=a.object({threadType:so}),p1=a.object({limit:a.string().regex(/^\d+$/)}).partial(),AI=a.array(Um),RI=a.object({providers:a.array(rn),models:a.array(nn),selectedOnlyModels:a.array(nn)}),m1=a.object({defaultExecutionOptions:pt.nullable(),queuedMessages:wI,executionOptions:RI,pendingInteractions:_I,promptHistory:AI}),hf=a.string("A merge base branch is required").min(1,"A merge base branch is required"),h1=a.object({mergeBaseBranch:hf.optional()}),f1=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted")}),a.object({target:a.literal("branch_committed"),mergeBaseBranch:hf}),a.object({target:a.literal("all"),mergeBaseBranch:hf}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),ms=a.enum(["old","new"]),nI=a.string().regex(/^[0-9a-f]{4,40}$/iu),g1=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted"),path:a.string().min(1),side:ms}),a.object({target:a.literal("branch_committed"),mergeBaseRef:nI,path:a.string().min(1),side:ms}),a.object({target:a.literal("all"),mergeBaseRef:nI,path:a.string().min(1),side:ms}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu),path:a.string().min(1),side:ms})]),v1=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),y1=a.object({projectId:a.string().min(1),type:so.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()}),gs=a.enum(["conversation","standard"]),$I=a.object({anchorSeq:a.number().int().positive(),anchorId:a.string().min(1)}).strict(),jI=a.object({kind:a.enum(["latest","older"]),segmentLimit:a.number().int().positive(),returnedSegmentCount:a.number().int().nonnegative(),hasOlderRows:a.boolean(),olderCursor:$I.nullable()}).strict(),S1=a.object({managerTimelineView:gs,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"]})}),b1=a.object({turnId:a.string().min(1),sourceSeqStart:a.string().regex(/^\d+$/),sourceSeqEnd:a.string().regex(/^\d+$/),managerTimelineView:gs.optional()}),T1=a.object({afterSeq:a.string().regex(/^\d+$/),limit:a.string().regex(/^\d+$/)}).partial(),x1=a.object({type:a.string().min(1),afterSeq:a.string().regex(/^\d+$/).optional(),waitMs:a.string().regex(/^\d+$/).optional()}),E1=a.object({query:a.string().min(1).max(ff),limit:a.string().regex(/^\d+$/)}).partial(),I1=a.object({path:a.string().min(1)}),D1=a.object({path:a.string().min(1)}),_1=a.object({providerId:a.string().min(1),hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),w1=a.object({hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),P1=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),k1=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"),C1=a.enum(["commit","squash_merge"]),OI=a.object({mergeBaseBranch:a.string().min(1)}).strict(),A1=a.discriminatedUnion("action",[a.object({action:a.literal("commit")}).strict(),a.object({action:a.literal("squash_merge"),options:OI}).strict()]),MI=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)}),zI=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)}),R1=a.discriminatedUnion("action",[MI,zI]),FI=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()})]),$1=uf.extend({details:FI.optional()}),fo=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:mt,rows:ht,status:qm,exitCode:a.number().int().nullable(),closeReason:Nm.nullable(),createdAt:a.number().int().nonnegative(),updatedAt:a.number().int().nonnegative(),lastUserInputAt:a.number().int().nonnegative().nullable()}),j1=a.object({sessions:a.array(fo)}),O1=a.object({cols:mt,rows:ht}).strict(),M1=a.object({mode:a.enum(["force","if-clean"]),reason:a.literal("user")}).strict(),z1=a.object({title:a.string().trim().min(1).max(200)}).strict(),BI=a.object({seq:a.number().int().nonnegative(),dataBase64:tn}).strict(),F1=a.discriminatedUnion("type",[a.object({type:a.literal("input"),dataBase64:tn}).strict(),a.object({type:a.literal("resize"),cols:mt,rows:ht}).strict(),a.object({type:a.literal("close"),reason:a.literal("user")}).strict(),a.object({type:a.literal("ping")}).strict()]),B1=a.discriminatedUnion("type",[a.object({type:a.literal("attached"),session:fo,nextSeq:a.number().int().nonnegative()}).strict(),a.object({type:a.literal("output"),chunk:BI}).strict(),a.object({type:a.literal("session-updated"),session:fo}).strict(),a.object({type:a.literal("exited"),session:fo}).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()]),L1=a.object({turnId:a.string().min(1),sourceSeqStart:a.number().int().nonnegative(),sourceSeqEnd:a.number().int().nonnegative(),managerTimelineView:gs.optional()}),q1=a.object({rows:a.array(or)}),N1=a.object({rows:a.array(or),activeThinking:jh.nullable(),pendingTodos:Oh.nullable(),contextWindowUsage:cI.optional(),timelinePage:jI}),U1=a.object({text:a.string()}),LI=a.object({path:a.string(),name:a.string()}),W1=a.object({files:a.array(LI),truncated:a.boolean()}),H1=W1.extend({storageRootPath:a.string()}),qI=Eh.extend({sources:a.array(Ih)}),V1=qI.extend({threads:a.array(Xa)}),Z1=a.object({featureFlags:Bm,hostDaemonPort:a.number().nullable(),voiceTranscriptionEnabled:a.boolean()}),K1=a.object({ok:a.literal(!0)}),G1=a.object({workspace:uo.nullable()}),Q1=a.object({type:a.enum(["localImage","localFile"]),path:a.string(),name:a.string(),mimeType:a.string().optional(),sizeBytes:a.number()});function NI(e,t){return Yn(`${e}/api/v1`,t)}function Tf(e,t){return{api:{v1:NI(e,t)}}}function ie(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function xf({environment:e,isLocalHost:t,hostName:r}){let o=e.isWorktree?"worktree":"direct",n=rh({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 J1(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 ln(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,...J1("macos"in e?e.macos:null)]}function X1(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 ie(t)}})}function UI(e,t){if(t===null)return null;let r=ln(t);return r.length>0?`${e}: ${r.join(", ")}`:null}function Ef(e){if(!ft(e.payload))return e.payload.questions.map(t=>t.prompt);switch(e.payload.subject.kind){case"command":{let t=X1(e.payload.subject.actions).map(o=>`Action: ${o}`),r=UI("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=UI("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=ln(e.payload.subject.permissions);return[...e.payload.subject.toolName?[`Tool: ${e.payload.subject.toolName}`]:[],...t.map(r=>`Permission: ${r}`)]}default:return ie(e.payload.subject)}}function Y1(e){return{network:e.network?.enabled===!0?{enabled:!0}:null,fileSystem:e.fileSystem?{read:e.fileSystem.read,write:e.fileSystem.write}:null}}function If(e){switch(e){case"allow_once":return"approved";case"allow_for_session":return"approved for this session";case"deny":return"denied";default:return ie(e)}}function e2(e,t){return ft(e.payload)?e.payload.subject.kind==="permission_grant"?Y1(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 vs(e,t){return t==="deny"?{decision:t}:{decision:t,grantedPermissions:e2(e,t)}}function Df({question:e,value:t}){return e.options?.find(r=>r.value===t)?.label??t}function _f(e){let{interaction:t,surface:r}=e;if(!ft(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 ie(t.payload.subject)}if(r==="app"){let o=ln(t.payload.subject.permissions);return o.length>0?o.join(" . "):"Review requested permissions"}return t.payload.subject.toolName??"Permission request"}function t2(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function WI(e){return t2(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=WI(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 n2=75e3,r2=new Set(["arrayBuffer","blob","bytes","formData","json","text"]);function o2(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 ${o2(t)}.`),this.name="CliRequestTimeoutError"}};function $(e){return Tf(e,{fetch:i2({timeoutMs:n2})})}function i2(e){return u2(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 HI({context:i,response:s})}catch(s){throw wf(i,s)?new ar(e.timeoutMs):s}}}async function a2(e){try{return await e.read()}catch(t){throw wf(e.context,t)?new ar(e.context.timeoutMs):t}}function HI(e){let{context:t,response:r}=e,o;return new Proxy(r,{get(n,i){if(r2.has(i)){let s=Reflect.get(n,i,n);if(typeof s=="function")return()=>a2({context:t,read:s.bind(n)})}switch(i){case"body":return n.body===null?null:(o??=s2({context:t,stream:n.body}),o);case"clone":return()=>HI({context:t,response:n.clone()});default:{let s=Reflect.get(n,i,n);return typeof s=="function"?s.bind(n):s}}}})}function s2(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(wf(e.context,n)){o.error(new ar(e.context.timeoutMs));return}o.error(n)}},cancel(o){return r().cancel(o)}})}function wf(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 u2(e){if(!Number.isFinite(e)||e<0)throw new RangeError("CLI request timeout must be a non-negative finite number.")}function c2(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 l2={legacyKeys:["detail"]};async function d2(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,l2)??r}catch{return r}}async function w(e){let r=await(await p2(e)).text();return JSON.parse(r)}async function p2(e){let t;try{t=await e}catch(r){throw c2(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 d2(t);throw new Error(`HTTP ${t.status}: ${r}`)}return t}function VI(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.environments[":id"].$get({param:{id:o}}));A(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(C(async(o,n)=>{let i=$(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}}));A(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(C(async(o,n)=>{let i=$(t()),s;try{s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"commit"}}))}catch(u){throw gt(`Failed to commit in environment ${o}`,u)}A(n,s)||of(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"squash_merge",options:{mergeBaseBranch:n.mergeBaseBranch}}}));A(n,s)||of(s)}))}var Tg=Bo(z_(),1);var Sg=[{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:"bbGuideEnvironments",body:`Environment commands
97
+ 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 l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){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 $t(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 c=u.def??u.schema,l={...c},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")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),s._zod.parent===p)for(let y in c)y==="$ref"||y==="allOf"||y in l||delete c[y];if(h.$ref&&m.def)for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}let d=s._zod.parent;if(d&&d!==p){o(d);let m=e.seen.get(d);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h]}e.override({zodSchema:s,jsonSchema:c,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:qn(t,"input",e.processors),output:qn(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 Ud=(e,t={})=>r=>{let o=At({...r,processors:t});return U(e,o),Rt(o,e),$t(o,e)},qn=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=At({...n??{},target:i,io:t,processors:r});return U(e,s),Rt(s,e),$t(s,e)};var rR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Wd=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=rR[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let p=[...c];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}))])}},Hd=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:c,exclusiveMaximum:l,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 l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof s=="number"&&(n.maximum=s,typeof l=="number"&&t.target!=="draft-04"&&(l<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},Vd=(e,t,r,o)=>{r.type="boolean"},Zd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Kd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Gd=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Qd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Jd=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Xd=(e,t,r,o)=>{r.not={}},Yd=(e,t,r,o)=>{},ep=(e,t,r,o)=>{},tp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},np=(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},rp=(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},op=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ip=(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},ap=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,i)},sp=(e,t,r,o)=>{r.type="boolean"},up=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},cp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},lp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},dp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},pp=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},mp=(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"]})},hp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let s=i.shape;for(let l in s)n.properties[l]=U(s[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(s)),c=new Set([...u].filter(l=>{let p=i.shape[l]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),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)},Zi=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((u,c)=>U(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},fp=(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=l=>"allOf"in l&&Object.keys(l).length===1,c=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=c},gp=(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",c=i.items.map((m,h)=>U(m,t,{...o,path:[...o.path,s,h]})),l=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=c,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),n.minItems=c.length,l||(n.maxItems=c.length)):(n.items=c,l&&(n.additionalItems=l));let{minimum:p,maximum:d}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof d=="number"&&(n.maxItems=d)},vp=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)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 l=s._zod.values;if(l){let p=[...l].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p)}},yp=(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"}]},Sp=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},bp=(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))},Tp=(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)))},xp=(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},Ep=(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},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.readOnly=!0},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},Ki=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},_p=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},Vi={string:Wd,number:Hd,boolean:Vd,bigint:Zd,symbol:Kd,null:Gd,undefined:Qd,void:Jd,never:Xd,any:Yd,unknown:ep,date:tp,enum:np,literal:rp,nan:op,template_literal:ip,file:ap,success:sp,custom:up,function:cp,transform:lp,map:dp,set:pp,array:mp,object:hp,union:Zi,intersection:fp,tuple:gp,record:vp,nullable:yp,nonoptional:Sp,default:bp,prefault:Tp,catch:xp,pipe:Ep,readonly:Ip,promise:Dp,optional:Ki,lazy:_p};function Gi(e,t){if("_idmap"in e){let o=e,n=At({...t,processors:Vi}),i={};for(let c of o._idmap.entries()){let[l,p]=c;U(p,n)}let s={},u={registry:o,uri:t?.uri,defs:i};n.external=u;for(let c of o._idmap.entries()){let[l,p]=c;Rt(n,p),s[l]=$t(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let r=At({...t,processors:Vi});return U(e,r),Rt(r,e),$t(r,e)}var Qi=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=At({processors:Vi,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)),Rt(this.ctx,t);let o=$t(this.ctx,t),{"~standard":n,...i}=o;return i}};var Ky={};var Wr={};st(Wr,{ZodAny:()=>Qp,ZodArray:()=>em,ZodBase64:()=>va,ZodBase64URL:()=>ya,ZodBigInt:()=>Kn,ZodBigIntFormat:()=>Ta,ZodBoolean:()=>Zn,ZodCIDRv4:()=>fa,ZodCIDRv6:()=>ga,ZodCUID:()=>ua,ZodCUID2:()=>ca,ZodCatch:()=>xm,ZodCodec:()=>ka,ZodCustom:()=>to,ZodCustomStringFormat:()=>Hn,ZodDate:()=>Qr,ZodDefault:()=>gm,ZodDiscriminatedUnion:()=>nm,ZodE164:()=>Sa,ZodEmail:()=>ia,ZodEmoji:()=>aa,ZodEnum:()=>Un,ZodExactOptional:()=>mm,ZodFile:()=>dm,ZodFunction:()=>Am,ZodGUID:()=>Hr,ZodIPv4:()=>ma,ZodIPv6:()=>ha,ZodIntersection:()=>rm,ZodJWT:()=>ba,ZodKSUID:()=>pa,ZodLazy:()=>Pm,ZodLiteral:()=>lm,ZodMAC:()=>Up,ZodMap:()=>um,ZodNaN:()=>Im,ZodNanoID:()=>sa,ZodNever:()=>Xp,ZodNonOptional:()=>wa,ZodNull:()=>Kp,ZodNullable:()=>fm,ZodNumber:()=>Vn,ZodNumberFormat:()=>en,ZodObject:()=>Xr,ZodOptional:()=>_a,ZodPipe:()=>Pa,ZodPrefault:()=>ym,ZodPromise:()=>Cm,ZodReadonly:()=>Dm,ZodRecord:()=>eo,ZodSet:()=>cm,ZodString:()=>Wn,ZodStringFormat:()=>H,ZodSuccess:()=>Tm,ZodSymbol:()=>Vp,ZodTemplateLiteral:()=>wm,ZodTransform:()=>pm,ZodTuple:()=>im,ZodType:()=>z,ZodULID:()=>la,ZodURL:()=>Gr,ZodUUID:()=>Je,ZodUndefined:()=>Zp,ZodUnion:()=>Yr,ZodUnknown:()=>Jp,ZodVoid:()=>Yp,ZodXID:()=>da,ZodXor:()=>tm,_ZodString:()=>oa,_default:()=>vm,_function:()=>tb,any:()=>$S,array:()=>Jr,base64:()=>gS,base64url:()=>vS,bigint:()=>PS,boolean:()=>Hp,catch:()=>Em,check:()=>nb,cidrv4:()=>hS,cidrv6:()=>fS,codec:()=>XS,cuid:()=>aS,cuid2:()=>sS,custom:()=>rb,date:()=>OS,describe:()=>ob,discriminatedUnion:()=>qS,e164:()=>yS,email:()=>Qy,emoji:()=>oS,enum:()=>Ia,exactOptional:()=>hm,file:()=>KS,float32:()=>IS,float64:()=>DS,function:()=>tb,guid:()=>Jy,hash:()=>ES,hex:()=>xS,hostname:()=>TS,httpUrl:()=>rS,instanceof:()=>ab,int:()=>ra,int32:()=>_S,int64:()=>kS,intersection:()=>om,ipv4:()=>dS,ipv6:()=>mS,json:()=>ub,jwt:()=>SS,keyof:()=>MS,ksuid:()=>lS,lazy:()=>km,literal:()=>ZS,looseObject:()=>LS,looseRecord:()=>US,mac:()=>pS,map:()=>WS,meta:()=>ib,nan:()=>JS,nanoid:()=>iS,nativeEnum:()=>VS,never:()=>xa,nonoptional:()=>bm,null:()=>Gp,nullable:()=>Zr,nullish:()=>GS,number:()=>Wp,object:()=>zS,optional:()=>Vr,partialRecord:()=>NS,pipe:()=>Kr,prefault:()=>Sm,preprocess:()=>cb,promise:()=>eb,readonly:()=>_m,record:()=>sm,refine:()=>Rm,set:()=>HS,strictObject:()=>FS,string:()=>na,stringFormat:()=>bS,stringbool:()=>sb,success:()=>QS,superRefine:()=>$m,symbol:()=>AS,templateLiteral:()=>YS,transform:()=>Da,tuple:()=>am,uint32:()=>wS,uint64:()=>CS,ulid:()=>uS,undefined:()=>RS,union:()=>Ea,unknown:()=>Yt,url:()=>nS,uuid:()=>Xy,uuidv4:()=>Yy,uuidv6:()=>eS,uuidv7:()=>tS,void:()=>jS,xid:()=>cS,xor:()=>BS});var Ji={};st(Ji,{endsWith:()=>$n,gt:()=>Ge,gte:()=>he,includes:()=>An,length:()=>Xt,lowercase:()=>kn,lt:()=>Ke,lte:()=>we,maxLength:()=>Jt,maxSize:()=>Ct,mime:()=>jn,minLength:()=>lt,minSize:()=>Qe,multipleOf:()=>kt,negative:()=>Ni,nonnegative:()=>Wi,nonpositive:()=>Ui,normalize:()=>On,overwrite:()=>Ne,positive:()=>qi,property:()=>Hi,regex:()=>Pn,size:()=>Qt,slugify:()=>Ln,startsWith:()=>Rn,toLowerCase:()=>zn,toUpperCase:()=>Fn,trim:()=>Mn,uppercase:()=>Cn});var Nn={};st(Nn,{ZodISODate:()=>Yi,ZodISODateTime:()=>Xi,ZodISODuration:()=>ta,ZodISOTime:()=>ea,date:()=>Pp,datetime:()=>wp,duration:()=>Cp,time:()=>kp});var Xi=f("ZodISODateTime",(e,t)=>{ol.init(e,t),H.init(e,t)});function wp(e){return ud(Xi,e)}var Yi=f("ZodISODate",(e,t)=>{il.init(e,t),H.init(e,t)});function Pp(e){return cd(Yi,e)}var ea=f("ZodISOTime",(e,t)=>{al.init(e,t),H.init(e,t)});function kp(e){return ld(ea,e)}var ta=f("ZodISODuration",(e,t)=>{sl.init(e,t),H.init(e,t)});function Cp(e){return dd(ta,e)}var Gy=(e,t)=>{Ar.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>$r(e,r)},flatten:{value:r=>Rr(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Sn,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Sn,2)}},isEmpty:{get(){return e.issues.length===0}}})},iR=f("ZodError",Gy),xe=f("ZodError",Gy,{Parent:Error});var Ap=xn(xe),Rp=En(xe),$p=In(xe),jp=Dn(xe),Op=Go(xe),Mp=Qo(xe),zp=Jo(xe),Fp=Xo(xe),Lp=Yo(xe),Bp=ei(xe),qp=ti(xe),Np=ni(xe);var z=f("ZodType",(e,t)=>(j.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:qn(e,"input"),output:qn(e,"output")}}),e.toJSONSchema=Ud(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)=>Ap(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>$p(e,r,o),e.parseAsync=async(r,o)=>Rp(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>jp(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Op(e,r,o),e.decode=(r,o)=>Mp(e,r,o),e.encodeAsync=async(r,o)=>zp(e,r,o),e.decodeAsync=async(r,o)=>Fp(e,r,o),e.safeEncode=(r,o)=>Lp(e,r,o),e.safeDecode=(r,o)=>Bp(e,r,o),e.safeEncodeAsync=async(r,o)=>qp(e,r,o),e.safeDecodeAsync=async(r,o)=>Np(e,r,o),e.refine=(r,o)=>e.check(Rm(r,o)),e.superRefine=r=>e.check($m(r)),e.overwrite=r=>e.check(Ne(r)),e.optional=()=>Vr(e),e.exactOptional=()=>hm(e),e.nullable=()=>Zr(e),e.nullish=()=>Vr(Zr(e)),e.nonoptional=r=>bm(e,r),e.array=()=>Jr(e),e.or=r=>Ea([e,r]),e.and=r=>om(e,r),e.transform=r=>Kr(e,Da(r)),e.default=r=>vm(e,r),e.prefault=r=>Sm(e,r),e.catch=r=>Em(e,r),e.pipe=r=>Kr(e,r),e.readonly=()=>_m(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)),oa=f("_ZodString",(e,t)=>{Gt.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Wd(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(Pn(...o)),e.includes=(...o)=>e.check(An(...o)),e.startsWith=(...o)=>e.check(Rn(...o)),e.endsWith=(...o)=>e.check($n(...o)),e.min=(...o)=>e.check(lt(...o)),e.max=(...o)=>e.check(Jt(...o)),e.length=(...o)=>e.check(Xt(...o)),e.nonempty=(...o)=>e.check(lt(1,...o)),e.lowercase=o=>e.check(kn(o)),e.uppercase=o=>e.check(Cn(o)),e.trim=()=>e.check(Mn()),e.normalize=(...o)=>e.check(On(...o)),e.toLowerCase=()=>e.check(zn()),e.toUpperCase=()=>e.check(Fn()),e.slugify=()=>e.check(Ln())}),Wn=f("ZodString",(e,t)=>{Gt.init(e,t),oa.init(e,t),e.email=r=>e.check(Ti(ia,r)),e.url=r=>e.check(Ur(Gr,r)),e.jwt=r=>e.check(Bi(ba,r)),e.emoji=r=>e.check(_i(aa,r)),e.guid=r=>e.check(Nr(Hr,r)),e.uuid=r=>e.check(xi(Je,r)),e.uuidv4=r=>e.check(Ei(Je,r)),e.uuidv6=r=>e.check(Ii(Je,r)),e.uuidv7=r=>e.check(Di(Je,r)),e.nanoid=r=>e.check(wi(sa,r)),e.guid=r=>e.check(Nr(Hr,r)),e.cuid=r=>e.check(Pi(ua,r)),e.cuid2=r=>e.check(ki(ca,r)),e.ulid=r=>e.check(Ci(la,r)),e.base64=r=>e.check(zi(va,r)),e.base64url=r=>e.check(Fi(ya,r)),e.xid=r=>e.check(Ai(da,r)),e.ksuid=r=>e.check(Ri(pa,r)),e.ipv4=r=>e.check($i(ma,r)),e.ipv6=r=>e.check(ji(ha,r)),e.cidrv4=r=>e.check(Oi(fa,r)),e.cidrv6=r=>e.check(Mi(ga,r)),e.e164=r=>e.check(Li(Sa,r)),e.datetime=r=>e.check(wp(r)),e.date=r=>e.check(Pp(r)),e.time=r=>e.check(kp(r)),e.duration=r=>e.check(Cp(r))});function na(e){return od(Wn,e)}var H=f("ZodStringFormat",(e,t)=>{W.init(e,t),oa.init(e,t)}),ia=f("ZodEmail",(e,t)=>{Gc.init(e,t),H.init(e,t)});function Qy(e){return Ti(ia,e)}var Hr=f("ZodGUID",(e,t)=>{Zc.init(e,t),H.init(e,t)});function Jy(e){return Nr(Hr,e)}var Je=f("ZodUUID",(e,t)=>{Kc.init(e,t),H.init(e,t)});function Xy(e){return xi(Je,e)}function Yy(e){return Ei(Je,e)}function eS(e){return Ii(Je,e)}function tS(e){return Di(Je,e)}var Gr=f("ZodURL",(e,t)=>{Qc.init(e,t),H.init(e,t)});function nS(e){return Ur(Gr,e)}function rS(e){return Ur(Gr,{protocol:/^https?$/,hostname:je.domain,...T.normalizeParams(e)})}var aa=f("ZodEmoji",(e,t)=>{Jc.init(e,t),H.init(e,t)});function oS(e){return _i(aa,e)}var sa=f("ZodNanoID",(e,t)=>{Xc.init(e,t),H.init(e,t)});function iS(e){return wi(sa,e)}var ua=f("ZodCUID",(e,t)=>{Yc.init(e,t),H.init(e,t)});function aS(e){return Pi(ua,e)}var ca=f("ZodCUID2",(e,t)=>{el.init(e,t),H.init(e,t)});function sS(e){return ki(ca,e)}var la=f("ZodULID",(e,t)=>{tl.init(e,t),H.init(e,t)});function uS(e){return Ci(la,e)}var da=f("ZodXID",(e,t)=>{nl.init(e,t),H.init(e,t)});function cS(e){return Ai(da,e)}var pa=f("ZodKSUID",(e,t)=>{rl.init(e,t),H.init(e,t)});function lS(e){return Ri(pa,e)}var ma=f("ZodIPv4",(e,t)=>{ul.init(e,t),H.init(e,t)});function dS(e){return $i(ma,e)}var Up=f("ZodMAC",(e,t)=>{ll.init(e,t),H.init(e,t)});function pS(e){return ad(Up,e)}var ha=f("ZodIPv6",(e,t)=>{cl.init(e,t),H.init(e,t)});function mS(e){return ji(ha,e)}var fa=f("ZodCIDRv4",(e,t)=>{dl.init(e,t),H.init(e,t)});function hS(e){return Oi(fa,e)}var ga=f("ZodCIDRv6",(e,t)=>{pl.init(e,t),H.init(e,t)});function fS(e){return Mi(ga,e)}var va=f("ZodBase64",(e,t)=>{hl.init(e,t),H.init(e,t)});function gS(e){return zi(va,e)}var ya=f("ZodBase64URL",(e,t)=>{fl.init(e,t),H.init(e,t)});function vS(e){return Fi(ya,e)}var Sa=f("ZodE164",(e,t)=>{gl.init(e,t),H.init(e,t)});function yS(e){return Li(Sa,e)}var ba=f("ZodJWT",(e,t)=>{vl.init(e,t),H.init(e,t)});function SS(e){return Bi(ba,e)}var Hn=f("ZodCustomStringFormat",(e,t)=>{yl.init(e,t),H.init(e,t)});function bS(e,t,r={}){return Bn(Hn,e,t,r)}function TS(e){return Bn(Hn,"hostname",je.hostname,e)}function xS(e){return Bn(Hn,"hex",je.hex,e)}function ES(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=je[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Bn(Hn,o,n,t)}var Vn=f("ZodNumber",(e,t)=>{pi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Hd(e,o,n,i),e.gt=(o,n)=>e.check(Ge(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(Ke(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(ra(o)),e.safe=o=>e.check(ra(o)),e.positive=o=>e.check(Ge(0,o)),e.nonnegative=o=>e.check(he(0,o)),e.negative=o=>e.check(Ke(0,o)),e.nonpositive=o=>e.check(we(0,o)),e.multipleOf=(o,n)=>e.check(kt(o,n)),e.step=(o,n)=>e.check(kt(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 Wp(e){return pd(Vn,e)}var en=f("ZodNumberFormat",(e,t)=>{Sl.init(e,t),Vn.init(e,t)});function ra(e){return hd(en,e)}function IS(e){return fd(en,e)}function DS(e){return gd(en,e)}function _S(e){return vd(en,e)}function wS(e){return yd(en,e)}var Zn=f("ZodBoolean",(e,t)=>{zr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vd(e,r,o,n)});function Hp(e){return Sd(Zn,e)}var Kn=f("ZodBigInt",(e,t)=>{mi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Zd(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(Ge(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(Ke(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(Ge(BigInt(0),o)),e.negative=o=>e.check(Ke(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(kt(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function PS(e){return Td(Kn,e)}var Ta=f("ZodBigIntFormat",(e,t)=>{bl.init(e,t),Kn.init(e,t)});function kS(e){return Ed(Ta,e)}function CS(e){return Id(Ta,e)}var Vp=f("ZodSymbol",(e,t)=>{Tl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kd(e,r,o,n)});function AS(e){return Dd(Vp,e)}var Zp=f("ZodUndefined",(e,t)=>{xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qd(e,r,o,n)});function RS(e){return _d(Zp,e)}var Kp=f("ZodNull",(e,t)=>{El.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gd(e,r,o,n)});function Gp(e){return wd(Kp,e)}var Qp=f("ZodAny",(e,t)=>{Il.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yd(e,r,o,n)});function $S(){return Pd(Qp)}var Jp=f("ZodUnknown",(e,t)=>{Dl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ep(e,r,o,n)});function Yt(){return kd(Jp)}var Xp=f("ZodNever",(e,t)=>{_l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xd(e,r,o,n)});function xa(e){return Cd(Xp,e)}var Yp=f("ZodVoid",(e,t)=>{wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jd(e,r,o,n)});function jS(e){return Ad(Yp,e)}var Qr=f("ZodDate",(e,t)=>{Pl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>tp(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 OS(e){return Rd(Qr,e)}var em=f("ZodArray",(e,t)=>{kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mp(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(lt(r,o)),e.nonempty=r=>e.check(lt(1,r)),e.max=(r,o)=>e.check(Jt(r,o)),e.length=(r,o)=>e.check(Xt(r,o)),e.unwrap=()=>e.element});function Jr(e,t){return Od(em,e,t)}function MS(e){let t=e._zod.def.shape;return Ia(Object.keys(t))}var Xr=f("ZodObject",(e,t)=>{Cl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hp(e,r,o,n),T.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Ia(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Yt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Yt()}),e.strict=()=>e.clone({...e._zod.def,catchall:xa()}),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(_a,e,r[0]),e.required=(...r)=>T.required(wa,e,r[0])});function zS(e,t){let r={type:"object",shape:e??{},...T.normalizeParams(t)};return new Xr(r)}function FS(e,t){return new Xr({type:"object",shape:e,catchall:xa(),...T.normalizeParams(t)})}function LS(e,t){return new Xr({type:"object",shape:e,catchall:Yt(),...T.normalizeParams(t)})}var Yr=f("ZodUnion",(e,t)=>{Fr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zi(e,r,o,n),e.options=t.options});function Ea(e,t){return new Yr({type:"union",options:e,...T.normalizeParams(t)})}var tm=f("ZodXor",(e,t)=>{Yr.init(e,t),Al.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zi(e,r,o,n),e.options=t.options});function BS(e,t){return new tm({type:"union",options:e,inclusive:!1,...T.normalizeParams(t)})}var nm=f("ZodDiscriminatedUnion",(e,t)=>{Yr.init(e,t),Rl.init(e,t)});function qS(e,t,r){return new nm({type:"union",options:t,discriminator:e,...T.normalizeParams(r)})}var rm=f("ZodIntersection",(e,t)=>{$l.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fp(e,r,o,n)});function om(e,t){return new rm({type:"intersection",left:e,right:t})}var im=f("ZodTuple",(e,t)=>{hi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gp(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function am(e,t,r){let o=t instanceof j,n=o?r:t,i=o?t:null;return new im({type:"tuple",items:e,rest:i,...T.normalizeParams(n)})}var eo=f("ZodRecord",(e,t)=>{jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function sm(e,t,r){return new eo({type:"record",keyType:e,valueType:t,...T.normalizeParams(r)})}function NS(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 US(e,t,r){return new eo({type:"record",keyType:e,valueType:t,mode:"loose",...T.normalizeParams(r)})}var um=f("ZodMap",(e,t)=>{Ol.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dp(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Qe(...r)),e.nonempty=r=>e.check(Qe(1,r)),e.max=(...r)=>e.check(Ct(...r)),e.size=(...r)=>e.check(Qt(...r))});function WS(e,t,r){return new um({type:"map",keyType:e,valueType:t,...T.normalizeParams(r)})}var cm=f("ZodSet",(e,t)=>{Ml.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pp(e,r,o,n),e.min=(...r)=>e.check(Qe(...r)),e.nonempty=r=>e.check(Qe(1,r)),e.max=(...r)=>e.check(Ct(...r)),e.size=(...r)=>e.check(Qt(...r))});function HS(e,t){return new cm({type:"set",valueType:e,...T.normalizeParams(t)})}var Un=f("ZodEnum",(e,t)=>{zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(o,n,i)=>np(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 Un({...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 Un({...t,checks:[],...T.normalizeParams(n),entries:i})}});function Ia(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Un({type:"enum",entries:r,...T.normalizeParams(t)})}function VS(e,t){return new Un({type:"enum",entries:e,...T.normalizeParams(t)})}var lm=f("ZodLiteral",(e,t)=>{Fl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rp(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 ZS(e,t){return new lm({type:"literal",values:Array.isArray(e)?e:[e],...T.normalizeParams(t)})}var dm=f("ZodFile",(e,t)=>{Ll.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ap(e,r,o,n),e.min=(r,o)=>e.check(Qe(r,o)),e.max=(r,o)=>e.check(Ct(r,o)),e.mime=(r,o)=>e.check(jn(Array.isArray(r)?r:[r],o))});function KS(e){return Md(dm,e)}var pm=f("ZodTransform",(e,t)=>{Bl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lp(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new It(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 Da(e){return new pm({type:"transform",transform:e})}var _a=f("ZodOptional",(e,t)=>{fi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ki(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vr(e){return new _a({type:"optional",innerType:e})}var mm=f("ZodExactOptional",(e,t)=>{ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ki(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function hm(e){return new mm({type:"optional",innerType:e})}var fm=f("ZodNullable",(e,t)=>{Nl.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 Zr(e){return new fm({type:"nullable",innerType:e})}function GS(e){return Vr(Zr(e))}var gm=f("ZodDefault",(e,t)=>{Ul.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vm(e,t){return new gm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var ym=f("ZodPrefault",(e,t)=>{Wl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Sm(e,t){return new ym({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():T.shallowClone(t)}})}var wa=f("ZodNonOptional",(e,t)=>{Hl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function bm(e,t){return new wa({type:"nonoptional",innerType:e,...T.normalizeParams(t)})}var Tm=f("ZodSuccess",(e,t)=>{Vl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function QS(e){return new Tm({type:"success",innerType:e})}var xm=f("ZodCatch",(e,t)=>{Zl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Em(e,t){return new xm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Im=f("ZodNaN",(e,t)=>{Kl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>op(e,r,o,n)});function JS(e){return jd(Im,e)}var Pa=f("ZodPipe",(e,t)=>{Gl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ep(e,r,o,n),e.in=t.in,e.out=t.out});function Kr(e,t){return new Pa({type:"pipe",in:e,out:t})}var ka=f("ZodCodec",(e,t)=>{Pa.init(e,t),Lr.init(e,t)});function XS(e,t,r){return new ka({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Dm=f("ZodReadonly",(e,t)=>{Ql.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ip(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function _m(e){return new Dm({type:"readonly",innerType:e})}var wm=f("ZodTemplateLiteral",(e,t)=>{Jl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ip(e,r,o,n)});function YS(e,t){return new wm({type:"template_literal",parts:e,...T.normalizeParams(t)})}var Pm=f("ZodLazy",(e,t)=>{ed.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_p(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function km(e){return new Pm({type:"lazy",getter:e})}var Cm=f("ZodPromise",(e,t)=>{Yl.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 eb(e){return new Cm({type:"promise",innerType:e})}var Am=f("ZodFunction",(e,t)=>{Xl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cp(e,r,o,n)});function tb(e){return new Am({type:"function",input:Array.isArray(e?.input)?am(e?.input):e?.input??Jr(Yt()),output:e?.output??Yt()})}var to=f("ZodCustom",(e,t)=>{td.init(e,t),z.init(e,t),e._zod.processJSONSchema=(r,o,n)=>up(e,r,o,n)});function nb(e){let t=new V({check:"custom"});return t._zod.check=e,t}function rb(e,t){return zd(to,e??(()=>!0),t)}function Rm(e,t={}){return Fd(to,e,t)}function $m(e){return Ld(e)}var ob=Bd,ib=qd;function ab(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)=>Nd({Codec:ka,Boolean:Zn,String:Wn},...e);function ub(e){let t=km(()=>Ea([na(e),Wp(),Hp(),Gp(),Jr(t),sm(na(),t)]));return t}function cb(e,t){return Kr(Da(e),t)}var sR={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 uR(e){K({customError:e})}function cR(){return K().customError}var jm;jm||(jm={});var _={...Wr,...Ji,iso:Nn},lR=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 dR(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 pR(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 lb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return _.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 _.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=pR(n,t),s=ce(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 _.null();if(n.length===0)return _.never();if(n.length===1)return _.literal(n[0]);if(n.every(s=>typeof s=="string"))return _.enum(n);let i=n.map(s=>_.literal(s));return i.length<2?i[0]:_.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return _.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...e,type:i};return lb(s,t)});return n.length===0?_.never():n.length===1?n[0]:_.union(n)}if(!r)return _.any();let o;switch(r){case"string":{let n=_.string();if(e.format){let i=e.format;i==="email"?n=n.check(_.email()):i==="uri"||i==="uri-reference"?n=n.check(_.url()):i==="uuid"||i==="guid"?n=n.check(_.uuid()):i==="date-time"?n=n.check(_.iso.datetime()):i==="date"?n=n.check(_.iso.date()):i==="time"?n=n.check(_.iso.time()):i==="duration"?n=n.check(_.iso.duration()):i==="ipv4"?n=n.check(_.ipv4()):i==="ipv6"?n=n.check(_.ipv6()):i==="mac"?n=n.check(_.mac()):i==="cidr"?n=n.check(_.cidrv4()):i==="cidr-v6"?n=n.check(_.cidrv6()):i==="base64"?n=n.check(_.base64()):i==="base64url"?n=n.check(_.base64url()):i==="e164"?n=n.check(_.e164()):i==="jwt"?n=n.check(_.jwt()):i==="emoji"?n=n.check(_.emoji()):i==="nanoid"?n=n.check(_.nanoid()):i==="cuid"?n=n.check(_.cuid()):i==="cuid2"?n=n.check(_.cuid2()):i==="ulid"?n=n.check(_.ulid()):i==="xid"?n=n.check(_.xid()):i==="ksuid"&&(n=n.check(_.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"?_.number().int():_.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=_.boolean();break}case"null":{o=_.null();break}case"object":{let n={},i=e.properties||{},s=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let p=ce(l,t);n[c]=s.has(c)?p:p.optional()}if(e.propertyNames){let c=ce(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?ce(e.additionalProperties,t):_.any();if(Object.keys(n).length===0){o=_.record(c,l);break}let p=_.object(n).passthrough(),d=_.looseRecord(c,l);o=_.intersection(p,d);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),p=[];for(let m of l){let h=ce(c[m],t),g=_.string().regex(new RegExp(m));p.push(_.looseRecord(g,h))}let d=[];if(Object.keys(n).length>0&&d.push(_.object(n).passthrough()),d.push(...p),d.length===0)o=_.object({}).passthrough();else if(d.length===1)o=d[0];else{let m=_.intersection(d[0],d[1]);for(let h=2;h<d.length;h++)m=_.intersection(m,d[h]);o=m}break}let u=_.object(n);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(ce(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(c=>ce(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?ce(i,t):void 0;u?o=_.tuple(s).rest(u):o=_.tuple(s),typeof e.minItems=="number"&&(o=o.check(_.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(_.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(c=>ce(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?ce(e.additionalItems,t):void 0;u?o=_.tuple(s).rest(u):o=_.tuple(s),typeof e.minItems=="number"&&(o=o.check(_.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(_.maxLength(e.maxItems)))}else if(i!==void 0){let s=ce(i,t),u=_.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=_.array(_.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 ce(e,t){if(typeof e=="boolean")return e?_.any():_.never();let r=lb(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(l=>ce(l,t)),c=_.union(u);r=o?_.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>ce(l,t)),c=_.xor(u);r=o?_.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:_.any();else{let u=o?r:ce(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=_.intersection(u,ce(e.allOf[l],t));r=u}e.nullable===!0&&t.version==="openapi-3.0"&&(r=_.nullable(r)),e.readOnly===!0&&(r=_.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))lR.has(u)||(n[u]=e[u]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function db(e,t){if(typeof e=="boolean")return e?_.any():_.never();let r=dR(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 ce(e,n)}var Om={};st(Om,{bigint:()=>gR,boolean:()=>fR,date:()=>vR,number:()=>hR,string:()=>mR});function mR(e){return id(Wn,e)}function hR(e){return md(Vn,e)}function fR(e){return bd(Zn,e)}function gR(e){return xd(Kn,e)}function vR(e){return $d(Qr,e)}K(gi());var pb=["low","medium","high","xhigh","max"],Y=a.enum(pb),ge=a.enum(["fast","default"]),mb=["append","replace"],zm=a.enum(mb),hb=["full","workspace-write","readonly"],le=a.enum(hb),fb=["ask","deny"],Mm=a.enum(fb),ee=a.discriminatedUnion("type",[a.object({type:a.literal("text"),text:a.string()}),a.object({type:a.literal("image"),url:a.string().url()}),a.object({type:a.literal("localImage"),path:a.string()}),a.object({type:a.literal("localFile"),path:a.string(),name:a.string().optional(),sizeBytes:a.number().int().nonnegative().optional(),mimeType:a.string().optional()})]),Fm=a.enum(["client/thread/start","client/turn/requested","client/turn/start"]),gb=a.object({model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),source:Fm.optional(),seq:a.number().int().optional()}),pt=gb.extend({model:a.string().min(1),serviceTier:ge,reasoningLevel:Y,permissionMode:le,source:Fm}),vb=a.discriminatedUnion("permissionMode",[a.object({permissionMode:a.literal("full"),permissionEscalation:a.null()}),a.object({permissionMode:a.literal("workspace-write"),permissionEscalation:Mm}),a.object({permissionMode:a.literal("readonly"),permissionEscalation:Mm})]),yR=a.object({model:a.string().min(1),serviceTier:ge,reasoningLevel:Y}),Lm=yR.and(vb),SR=a.object({providerId:a.string().min(1),model:a.string().min(1),serviceTier:ge,reasoningLevel:Y,permissionMode:le});var Bm=a.object({askUserQuestion:a.boolean(),terminals:a.boolean()});var bR=new Set([".",".."]),qm=a.string().min(1).max(128).refine(e=>!e.includes("/")&&!e.includes("\\"),{message:"Manager template name must be a single directory name"}).refine(e=>!bR.has(e),{message:"Manager template name cannot be . or .."});var Ca=500,Aa=200,Gn=64*1024,Ra=Math.ceil(Gn/3)*4,TR=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,yb=["starting","running","disconnected","exited"],Nm=a.enum(yb),Sb=["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"],Um=a.enum(Sb);function bb(e){let t=e.endsWith("==")?2:e.endsWith("=")?1:0;return e.length/4*3-t}var mt=a.number().int().positive().max(Ca),ht=a.number().int().positive().max(Aa),tn=a.string().min(1).max(Ra).regex(TR).refine(e=>bb(e)<=Gn,{message:`Terminal data must decode to ${Gn} bytes or less`});var Tb=["project","thread"],xR=a.enum(Tb),Wm=a.object({id:a.string().min(1),createdAt:a.number(),input:a.array(ee).min(1)});var jt=a.enum(["pending","resolving","resolved","interrupted","expired"]),Eb=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()})]),Gm=a.object({enabled:a.boolean().nullable()}),Qm=a.object({read:a.array(a.string()),write:a.array(a.string())}),ER=a.enum(["none","read_only","read_write"]),IR=a.enum(["none","read_only","read_write"]),DR=a.union([a.literal("none"),a.literal("all"),a.object({kind:a.literal("bundle_ids"),bundleIds:a.array(a.string())})]),Ib=a.object({preferences:ER,automations:DR,launchServices:a.boolean(),accessibility:a.boolean(),calendar:a.boolean(),reminders:a.boolean(),contacts:IR}),_R=a.object({network:Gm.nullable(),fileSystem:Qm.nullable(),macos:Ib.nullable()}),no=a.object({network:Gm.nullable(),fileSystem:Qm.nullable()}).strict(),xb=no,Db=a.enum(["allow_once","allow_for_session","deny"]),wR=a.string().min(1),_b=a.object({kind:a.literal("command"),itemId:a.string().min(1),command:a.string().min(1),cwd:a.string().nullable(),actions:a.array(Eb),sessionGrant:no.nullable()}),wb=a.object({kind:a.literal("file_change"),itemId:a.string().min(1),writeScope:wR.nullable(),sessionGrant:no.nullable()}),$a=a.object({kind:a.literal("permission_grant"),itemId:a.string().min(1),toolName:a.string().nullable(),permissions:no}),Pb=a.discriminatedUnion("kind",[_b,wb,$a]),kb=a.object({kind:a.literal("approval"),subject:Pb,reason:a.string().nullable(),availableDecisions:a.array(Db).min(1)}),Hm=4,Vm=4,Zm=4,Km=4096,PR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question ids cannot be blank"}),kR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question prompts cannot be blank"}),CR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question short labels cannot be blank"}),AR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option values cannot be blank"}),RR=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option labels cannot be blank"}),$R=a.string().min(1).refine(e=>e.trim().length>0,{message:"User question option descriptions cannot be blank"}),jR=a.string().min(1).max(Km,`User question free text cannot exceed ${Km} characters`).refine(e=>e.trim().length>0,{message:"User question free text cannot be blank"}),Cb=a.object({value:AR,label:RR,description:$R.optional()}),ja=a.object({id:PR,prompt:kR,shortLabel:CR.optional(),multiSelect:a.boolean(),options:a.array(Cb).max(Vm,`User questions cannot include more than ${Vm} 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"]}),Oa=a.object({kind:a.literal("user_question"),questions:a.array(ja).min(1).max(Hm,`User questions cannot include more than ${Hm} 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)})}),Jm=a.discriminatedUnion("kind",[kb,Oa]);function ft(e){return e.kind==="approval"}function Ma(e){return e.kind==="user_question"}var Ab="Invalid discriminator value. Expected 'allow_once' | 'allow_for_session' | 'deny'",za=a.discriminatedUnion("decision",[a.object({decision:a.literal("allow_once"),grantedPermissions:xb.nullable()}),a.object({decision:a.literal("allow_for_session"),grantedPermissions:xb.nullable()}),a.object({decision:a.literal("deny")})],Ab),Fa=a.object({selected:a.array(a.string().min(1)).max(Zm,`User question selected choices cannot exceed ${Zm}`),freeText:jR.optional()}),La=a.object({kind:a.literal("user_answer"),answers:a.record(a.string().min(1),Fa)}),ro=a.union([za,La],Ab);function Ba(e){return"decision"in e}function Xm(e){return"kind"in e&&e.kind==="user_answer"}var Ym=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:Jm}),eh=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:jt,payload:Jm,resolution:ro.nullable(),statusReason:a.string().nullable(),createdAt:a.number().int().nonnegative(),resolvedAt:a.number().int().nonnegative().nullable()});var Rb=a.object({reasoningEffort:Y,description:a.string()}),nn=a.object({id:a.string(),model:a.string(),displayName:a.string(),description:a.string(),supportedReasoningEfforts:a.array(Rb),defaultReasoningEffort:Y,isDefault:a.boolean()}),$b=a.object({supportsArchive:a.boolean(),supportsRename:a.boolean(),supportsServiceTier:a.boolean(),supportsUserQuestion:a.boolean(),supportedPermissionModes:a.array(le).min(1)}),rn=a.object({id:a.string(),displayName:a.string(),capabilities:$b,available:a.boolean()}),jb=a.discriminatedUnion("type",[a.object({type:a.literal("inputText"),text:a.string()}),a.object({type:a.literal("inputImage"),imageUrl:a.string()})]),th=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()}),Ob=a.object({contentItems:a.array(jb),success:a.boolean()}),OR=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??""})),nh=a.object({name:a.string(),description:a.string(),inputSchema:a.unknown()});var Mb=["provisioning","ready","error","destroying","destroyed"],zb=a.enum(Mb),MR=["safe"],Fb=a.enum(MR),Lb=["unmanaged","managed-worktree"],qa=a.enum(Lb),Bb=["managed-worktree","unmanaged-worktree","other"],rh=a.enum(Bb);function oh({environment:e}){return e.workspaceProvisionType==="managed-worktree"?"managed-worktree":e.isWorktree===!0?"unmanaged-worktree":"other"}var ih=a.object({path:a.string().min(1),isGitRepo:a.boolean(),isWorktree:a.boolean(),branchName:a.string().nullable(),defaultBranch:a.string().nullable()}),ah=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:Fb.nullable(),status:zb,createdAt:a.number(),updatedAt:a.number()});function sh(e){return e?.mergeBaseBranch??e?.baseBranch??e?.defaultBranch??void 0}var oo=a.string().regex(/^hdevt_[23456789abcdefghijkmnpqrstuvwxyz]{20}$/u),Xe=a.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);var Oe=a.lazy(()=>a.union([a.string(),a.number(),a.boolean(),a.null(),a.array(Oe),a.record(a.string(),Oe)])),Na=a.record(a.string(),Oe);var Ua=["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"],zR=a.enum(Ua),qb=["user","agent","system"],io=a.enum(qb),uh=["thread-created","boot-created-thread","tell-after-provisioning-failure","tell-after-missing-environment-attachment","resume-missing-provider-thread"],FR=a.enum(uh),Nb=[...uh,"boot-active-resume","resume-existing-provider-session"],LR=a.enum(Nb),Ub=pt,Wa=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()})]),Ha=a.object({direction:a.literal("outbound"),source:a.enum(["spawn","tell"]),initiator:io,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())})}),ao=a.object({direction:a.literal("outbound"),requestId:Xe,source:a.enum(["spawn","tell"]),initiator:io,senderThreadId:a.string().nullable(),input:a.array(ee),target:Wa,request:a.object({method:a.enum(["thread/start","turn/start"]),params:a.record(a.string(),a.unknown())}),execution:Ub}),ch=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"})}),Wb=["assign","release","transfer"],Hb=a.enum(Wb),Vb=a.object({action:Hb,nextParentThreadId:a.string().nullable(),nextParentThreadTitle:a.string().nullable(),previousParentThreadId:a.string().nullable(),previousParentThreadTitle:a.string().nullable()}),lh=a.object({operation:a.string(),status:a.string(),message:a.string(),operationId:a.string(),metadata:a.record(a.string(),Oe).optional()}),dh=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:jt,resolution:za.nullable().default(null),statusReason:a.string().nullable().default(null),subject:$a}),ph=a.object({interactionId:a.string(),providerId:a.string(),providerRequestId:a.string(),status:jt,resolution:La.nullable().default(null),statusReason:a.string().nullable().default(null),payload:Oa}),Zb=["manual-stop","host-daemon-restarted"],Kb=a.enum(Zb),mh=a.object({reason:Kb}),Va=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()}),Gb=["active","completed","failed"],Qb=a.enum(Gb),hh=a.object({provisioningId:a.string(),status:Qb,environmentId:a.string(),entries:a.array(Va)}),fh=a.object({text:a.string(),toolCallId:a.string().optional(),turnId:a.string().optional()}),BR=a.object({turnId:a.string().optional(),input:a.array(ee).optional()});var Jb=["thread","turn"],qR=a.enum(Jb),on=a.discriminatedUnion("kind",[a.object({kind:a.literal("thread")}),a.object({kind:a.literal("turn"),turnId:a.string().min(1)})]),Xb=["thread","turn","thread-or-turn"],NR=a.enum(Xb),Yb={"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 gh(){return Object.entries(Yb).map(([e,t])=>({type:e,definition:t}))}function vh(e){return gh().filter(t=>t.definition.policy===e).map(t=>t.type)}function UR(){let e={};for(let t of gh())e[t.type]=t.definition.policy;return e}function WR(){let e={};for(let t of gh())t.definition.rationale&&(e[t.type]=t.definition.rationale);return e}var HR=vh("turn"),VR=vh("thread"),ZR=vh("thread-or-turn"),eT=UR(),KR=WR();function yh(e){let t=eT[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 Ka=a.enum(["pending","completed","failed","interrupted"]),tT=a.enum(["waiting_for_approval","denied"]).nullable(),rT=a.enum(["completed","failed","interrupted"]),oT=["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"],iT=a.enum(oT),aT=a.object({category:iT,providerCode:a.string().nullable(),httpStatusCode:a.number().nullable()}),sT=a.enum(["add","delete","update"]),uT=a.object({path:a.string(),kind:sT,movePath:a.string().optional(),diff:a.string().optional()}),cT=a.enum(["pending","active","completed","failed"]),lT=a.object({step:a.string(),status:cT.optional()}),dT=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()}),Ga=a.object({originalLength:a.number(),retainedHeadLength:a.number(),retainedTailLength:a.number(),truncatedAt:a.number()}),Sh=a.object({aggregatedOutput:Ga.optional(),result:Ga.optional(),resultText:Ga.optional()}),mT=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()})]),bh=a.object({totalTokens:a.number(),inputTokens:a.number(),cachedInputTokens:a.number(),outputTokens:a.number(),reasoningOutputTokens:a.number()}),hT=a.object({usedTokens:a.number().nullable(),modelContextWindow:a.number().nullable(),estimated:a.boolean()}),fT=a.object({total:bh,last:bh,modelContextWindow:a.number().nullable()}),gT=a.enum(["deprecation","config","general"]),vT=a.object({jsonrpc:a.literal("2.0"),id:a.union([a.string(),a.number()]).optional(),method:a.string(),params:Oe.optional()}),GR=a.object({type:a.literal("provider/unhandled"),threadId:a.string(),providerThreadId:a.string(),providerId:a.string(),rawType:a.string(),rawEvent:vT,parentToolCallId:a.string().optional()}),QR=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()}),Th=a.discriminatedUnion("type",[a.object({type:a.literal("userMessage"),id:a.string(),content:a.array(mT),clientRequestId:Xe.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:Ka,approvalStatus:tT,aggregatedOutput:a.string().optional(),exitCode:a.number().optional(),durationMs:a.number().optional(),truncation:Sh.optional(),parentToolCallId:a.string().optional()}),a.object({type:a.literal("fileChange"),id:a.string(),changes:a.array(uT),status:Ka,approvalStatus:tT,parentToolCallId:a.string().optional()}),dT,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:Ka,result:a.unknown().optional(),error:a.string().optional(),durationMs:a.number().optional(),truncation:Sh.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()})]),yT=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:rT,error:a.object({message:a.string()}).optional()}),a.object({type:a.literal("turn/input/accepted"),threadId:a.string(),providerThreadId:a.string(),clientRequestId:Xe,scope:on}).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:Th}),a.object({type:a.literal("item/completed"),threadId:a.string(),providerThreadId:a.string(),item:Th}),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()}),QR,a.object({type:a.literal("thread/tokenUsage/updated"),threadId:a.string(),providerThreadId:a.string(),tokenUsage:fT}),a.object({type:a.literal("thread/contextWindowUsage/updated"),threadId:a.string(),providerThreadId:a.string(),contextWindowUsage:hT}),a.object({type:a.literal("turn/plan/updated"),threadId:a.string(),providerThreadId:a.string(),plan:a.array(lT),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:aT.optional()}),a.object({type:a.literal("provider/warning"),threadId:a.string(),providerThreadId:a.string(),category:gT,summary:a.string().optional(),details:a.string().optional()}),GR]),ST=a.object({scope:on}),bT=yT.and(ST),xh=yT.options.map(e=>e.shape.type.value),JR=new Set(xh),XR=a.string().refine(e=>JR.has(e),"Invalid provider event type"),YR=a.union([a.object({type:a.literal("client/thread/start"),threadId:a.string()}).merge(Ha),a.object({type:a.literal("client/turn/requested"),threadId:a.string()}).merge(ao),a.object({type:a.literal("client/turn/start"),threadId:a.string()}).merge(Ha),a.object({type:a.literal("system/error"),threadId:a.string()}).merge(ch),a.object({type:a.literal("system/manager/user_message"),threadId:a.string()}).merge(fh),a.object({type:a.literal("system/thread/interrupted"),threadId:a.string()}).merge(mh),a.object({type:a.literal("system/operation"),threadId:a.string()}).merge(lh),a.object({type:a.literal("system/permissionGrant/lifecycle"),threadId:a.string()}).merge(dh),a.object({type:a.literal("system/userQuestion/lifecycle"),threadId:a.string()}).merge(ph),a.object({type:a.literal("system/thread-provisioning"),threadId:a.string()}).merge(hh)]),TT=YR.and(ST),nT=a.record(a.string(),a.unknown()),Za=["clientRequest","Sequence"].join(""),e0=a.unknown().superRefine((e,t)=>{let r=nT.safeParse(e);if(!r.success)return;Object.hasOwn(r.data,Za)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy request sequence field is no longer accepted",path:[Za]});let o=nT.safeParse(r.data.item);o.success&&o.data.type==="userMessage"&&Object.hasOwn(o.data,Za)&&t.addIssue({code:a.ZodIssueCode.custom,message:"legacy user-message request sequence field is no longer accepted",path:["item",Za]})}),Qn=e0.pipe(a.union([bT,TT]).superRefine((e,t)=>{let r=yh({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}})),xT=[...xh,...Ua],t0=new Set(xT),Eh=a.string().refine(e=>t0.has(e),"Invalid thread event type");var ET=["requested","queued","completed","failed","cancelled"],n0=a.enum(ET);var IT=["provision","reprovision","destroy"],r0=a.enum(IT),DT=["provision","start","stop"],o0=a.enum(DT),_T=["metadata-pending","environment-pending","environment-attached","environment-provisioning","workspace-ready"],i0=a.enum(_T),wT=["delete"],a0=a.enum(wT);var Ih=a.object({id:a.string(),name:a.string(),createdAt:a.number(),updatedAt:a.number()}),PT=["local_path"],s0=a.enum(PT),u0=a.object({id:a.string(),projectId:a.string(),isDefault:a.boolean(),createdAt:a.number(),updatedAt:a.number()}),kT=u0.extend({type:a.literal("local_path"),hostId:a.string(),path:a.string()}),Dh=kT;function _h(e,t){return e.find(r=>r.type==="local_path"&&r.hostId===t)}var c0=/^[A-Za-z]:(?:[\\/]+)?$/u,l0=/^[A-Za-z]:(?:[\\/]+)/u,d0=/^\\\\[^\\/]+(?:[\\/]+)[^\\/]+/u,wh="Project path must be an absolute path.",p0="Project path must point to a project directory, not the filesystem root.",CT="Native Windows paths are not supported. Use a POSIX path like /home/me/repo or /mnt/c/Users/me/repo.";function AT(e){let t=e.trim();return t?c0.test(t)||l0.test(t)||d0.test(t):!1}function RT(e){let t=e.trim();return t?t.startsWith("/"):!1}function Qa(e){let t=e.trim();return t?t==="/"?t:t.replace(/\/+$/u,""):""}function Ph(e){let t=Qa(e);return t?AT(t)?CT:RT(t)?t==="/"?p0:null:wh:wh}var $T=["persistent"],an=a.enum($T),jT=["connected","disconnected"],OT=a.enum(jT),kh=a.object({id:a.string(),name:a.string(),type:an,status:OT,lastSeenAt:a.number().nullable(),createdAt:a.number(),updatedAt:a.number()});var sn=["created","provisioning","idle","active","error"],Jn=a.enum(sn);var MT=[...sn,"host-reconnecting","waiting-for-host"],zT=a.enum(MT),FT=a.object({displayStatus:zT,hostReconnectGraceExpiresAt:a.number().nullable()}),LT=["standard","manager"],so=a.enum(LT),BT=["clean","untracked","dirty_uncommitted","committed_unmerged","dirty_and_committed_unmerged"],qT=a.enum(BT),NT=a.enum(["M","A","D","R","C","U","??","?"]),UT=a.object({path:a.string(),status:NT,insertions:a.number().nullable(),deletions:a.number().nullable()}),WT=a.object({sha:a.string(),shortSha:a.string(),subject:a.string(),authorName:a.string(),authoredAt:a.number()}),Ch=a.object({insertions:a.number(),deletions:a.number(),files:a.array(UT)}),HT=Ch.extend({hasUncommittedChanges:a.boolean(),state:qT}),VT=a.object({currentBranch:a.string().nullable(),defaultBranch:a.string()}),ZT=Ch.extend({mergeBaseBranch:a.string(),baseRef:a.string().nullable(),aheadCount:a.number(),behindCount:a.number(),hasCommittedUnmergedChanges:a.boolean(),commits:a.array(WT)}),uo=a.object({workingTree:HT,branch:VT,mergeBase:ZT.nullable()}),Ja=a.object({id:a.string(),content:a.array(ee).min(1),model:a.string().min(1),reasoningLevel:Y,permissionMode:le,serviceTier:ge,createdAt:a.number(),updatedAt:a.number()}),KT=a.object({id:a.string(),projectId:a.string(),environmentId:a.string().nullable(),automationId:a.string().nullable(),providerId:a.string(),type:so,title:a.string().nullable(),titleFallback:a.string().nullable(),status:Jn,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()}),Xa=KT.extend({runtime:FT}),Ya=Xa.extend({hasPendingInteraction:a.boolean(),environmentHostId:a.string().nullable(),environmentBranchName:a.string().nullable(),environmentWorkspaceDisplayKind:rh});var Ah=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)})]),Rh=a.object({diff:a.string(),truncated:a.boolean(),shortstat:a.string(),files:a.string(),mergeBaseRef:a.string().nullable()});var GT=a.object({id:a.string(),scope:on,threadId:a.string(),seq:a.number(),type:Eh,data:a.record(a.string(),a.unknown()),createdAt:a.number()}),m0=new Set(["client/turn/requested"]),h0={kind:"new-turn"},f0=ao.extend({senderThreadId:a.string().nullable().default(null),target:Wa.default(h0),execution:pt});function g0(e){return f0.parse(e.data)}function v0(e){let{scope:t,threadId:r,type:o,...n}=e;return n}function y0(e){let{scope:t,turnId:r,...o}=e;return o}function QT(e){let t=on.safeParse(e.scope);if(!t.success)throw new Error("Stored thread event is missing valid scope");let r=t.data,o=m0.has(e.type)?g0(e):e.data;return Qn.parse({...y0(o),...e.providerThreadId!=null?{providerThreadId:e.providerThreadId}:{},scope:r,threadId:e.threadId,type:e.type})}function $h(e){let{event:t,...r}=e;return{...r,type:t.type,data:v0(t)}}function JT(e){return $h({id:e.id,scope:e.scope,threadId:e.threadId,seq:e.seq,createdAt:e.createdAt,event:QT({type:e.type,data:e.data,threadId:e.threadId,scope:e.scope})})}function jh(e){let t=GT.parse(e);return JT(t)}var S0=GT.transform(e=>JT(e));var Oh=a.object({id:a.string(),text:a.string(),startedAt:a.number(),updatedAt:a.number()});var XT=a.enum(["pending","in_progress","completed"]),YT=a.object({id:a.string(),text:a.string(),status:XT}),Mh=a.object({sourceSeq:a.number().int().nonnegative(),updatedAt:a.number(),items:a.array(YT)});var zh=["thread","project","environment","host","system"],Fh=a.enum(zh);var es=["environment-created","environment-deleted","metadata-changed","status-changed","work-status-changed","git-refs-changed","thread-storage-changed"];var ex=a.object({type:a.literal("subscribe"),entity:Fh,id:a.string().optional()}),tx=a.object({type:a.literal("unsubscribe"),entity:Fh,id:a.string().optional()}),b0=a.discriminatedUnion("type",[ex,tx]);var Xn=Bo(yx(),1);var co={dataDir:{prod:".bb",dev:".bb-dev"},logLevel:{prod:"info",dev:"debug"},secretToken:{dev:"dev-secret"},serverPort:{prod:38886,dev:3334},hostDaemonPort:{prod:38887,dev:3002},appPort:{dev:5173},devEnvPort:9112,serverUrl:{prod:"http://localhost:38886",dev:"http://localhost:3334"},inferenceModel:"codex/gpt-5.4-mini",transcriptionModel:"codex/gpt-4o-mini-transcribe"};var is=(0,Xn.envsafe)({BB_SERVER_URL:(0,Xn.url)({desc:"URL of the bb server",default:co.serverUrl.prod,devDefault:co.serverUrl.dev}),BB_HOST_DAEMON_PORT:(0,Xn.port)({desc:"Port of the local host daemon",default:co.hostDaemonPort.prod,devDefault:co.hostDaemonPort.dev})});var Y0=a.string().trim().min(1);function bx(e){let t=new URL(e);return t.hostname==="localhost"&&(t.hostname="127.0.0.1"),t.href.replace(/\/$/u,"")}var e$=a.object({hostId:a.string().min(1),hostKey:Y0,hostType:an,serverUrl:a.string().trim().url().transform(bx)}).strict();var t$=(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},Tx=(e,t,r)=>(t=encodeURIComponent(t),t$(e,t,r));var xx=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),ss=(e,t)=>{for(let[r,o]of Object.entries(t)){let n=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(n,o?`/${o}`:"")}return e},Ex=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},Ix=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},Kh=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function as(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Gh(e,t){if(!as(e)&&!as(t))return t;let r={...e};for(let o in t){let n=t[o];as(r[o])&&as(n)?r[o]=Gh(r[o],n):r[o]=n}return r}var Dx=(e,t)=>new Proxy(()=>{},{get(o,n){if(!(typeof n!="string"||n==="then"))return Dx(e,[...t,n])},apply(o,n,i){return e({path:t,args:i})}}),r$=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[c,l]of Object.entries(e.form))if(Array.isArray(l))for(let p of l)u.append(c,p);else u.append(c,l);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[c,l]of Object.entries(e.cookie))u.push(Tx(c,l,{path:"/"}));o.Cookie=u.join(",")}this.cType&&(o["Content-Type"]=this.cType);let n=new Headers(o??void 0),i=this.url;i=Kh(i),i=ss(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})}},Yn=(e,t)=>Dx(function r(o){let n=t?.buildSearchParams??Ex,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 c=i.join("/"),l=xx(e,c);if(u==="url"){let d=l;return o.args[0]&&(o.args[0].param&&(d=ss(l,o.args[0].param)),o.args[0].query&&(d=d+"?"+n(o.args[0].query).toString())),d=Kh(d),new URL(d)}if(u==="ws"){let d=Ix(o.args[0]&&o.args[0].param?ss(l,o.args[0].param):l,"ws"),m=new URL(d),h=o.args[0]?.query;return h&&Object.entries(h).forEach(([y,P])=>{Array.isArray(P)?P.forEach(I=>m.searchParams.append(y,I)):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 r$(l,u,{buildSearchParams:n});if(u){t??={};let d=Gh(t,{...o.args[1]});return p.fetch(o.args[0],d)}return p},[]);var Qh="127.0.0.1";var _x=["vscode","cursor","sublime-text","zed","windsurf","antigravity","finder","terminal","iterm2","ghostty","xcode"],Jh=a.enum(_x),wx=["editor","file-browser","terminal"],Px=a.enum(wx),kx=a.object({id:Jh,kind:Px,label:a.string().min(1)}),o$=a.object({targets:a.array(kx)}),i$=a.string().min(1),a$=a.number().int().positive().nullable(),s$=a.object({lineNumber:a$,path:i$,targetId:Jh}),u$=a.object({path:a.string().nullable()}),Cx=200,c$=a.object({paths:a.array(a.string().min(1)).min(1).max(Cx).transform(e=>Array.from(new Set(e)))}),l$=a.object({existence:a.record(a.string(),a.boolean())}),Ax=a.enum(["darwin","linux","wsl","unknown"]),d$=a.object({hostId:a.string().min(1),connected:a.boolean(),protocolVersion:a.number().int().positive(),serverUrl:a.string(),supportsNativeFolderPicker:a.boolean(),platform:Ax}),p$=a.string().min(1);function Xh(e){let t=e.replace(/\/$/,"");return Yn(t)}var m$=a.record(a.string(),a.unknown()),Rx=a.object({jsonrpc:a.literal("2.0"),method:a.string(),params:m$.optional()}).passthrough(),LU=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(),BU=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(),qU=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(),NU=a.object({jsonrpc:a.literal("2.0"),method:a.literal("error"),params:a.object({message:a.string().optional()}).passthrough().optional()}).passthrough();var h$=3,f$=/^cap_[0-9a-z]+_[0-9a-z]{8}$/u;var g$=a.enum(["thread-start","turn-start"]),v$=a.enum(["live-dev-capture","corpus-fixture"]),ZU=a.object({headSha:a.string().nullable(),isClean:a.boolean(),statusLines:a.array(a.string())}).strict(),y$=a.custom(e=>Rx.safeParse(e).success,"Invalid JSON-RPC envelope"),S$=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:y$,sourceThreadId:a.string().optional()}),b$=a.object({turnId:a.string().min(1),userInput:a.array(ee).min(1),createdAt:a.number().int().nonnegative()}).strict(),T$=a.object({rawProviderEvents:a.number().int().nonnegative(),droppedRecords:a.number().int().nonnegative()}).strict(),us=a.object({schemaVersion:a.literal(h$),captureId:a.string().regex(f$),capturedAt:a.number().int().nonnegative(),completedAt:a.number().int().nonnegative().nullable(),source:v$,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:g$,turns:a.array(b$).min(1),userInputPreview:a.string(),execution:pt,eventCounts:T$,errorMessage:a.string().nullable()}).strict(),cs=us.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=cs.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),$x=a.object({captures:a.array(cs)}),jx=us.extend({hostId:a.string().min(1),projectName:a.string().nullable()}),Ox=a.object({captures:a.array(Yh)}),un=a.union([a.literal(.5),a.literal(1),a.literal(2),a.literal(5),a.literal(10)]),Mx=a.object({speed:un}).strict(),zx=a.object({commandId:a.string(),replayThreadId:a.string(),projectId:a.string()}),KU=a.object({ordinal:a.number().int().positive(),relativeMs:a.number().int().nonnegative(),entry:S$});var ef=18,tf=256,nf=1e4,ds=["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.read_file","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"],x$=a.enum(ds),E$=new Set(ds);function Fx(e){return E$.has(e)}var rf=Lm,er=a.object({workspacePath:a.string().min(1),workspaceProvisionType:qa}),Lt=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),I$=a.object({threadId:a.string().min(1)}),Lx=a.object({workspaceContext:er,projectId:a.string().min(1),providerId:a.string().min(1),options:rf,instructions:a.string().min(1),dynamicTools:a.array(nh),disallowedTools:a.array(a.string()).optional(),instructionMode:zm}),D$=Lx.extend({providerThreadId:a.string().min(1)}),_$=D$.omit({options:!0}),Bx=a.object({environmentId:a.string().min(1)}),lo=Bx.extend({workspaceContext:er}),w$=Lt.extend({workspaceContext:er}),qx=Lt.merge(Lx).extend({type:a.literal("thread.start"),requestId:Xe,input:a.array(ee).min(1),threadStoragePath:a.string().min(1).optional()}).strict(),Nx=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()})]),Ux=Lt.extend({type:a.literal("turn.submit"),requestId:Xe,input:a.array(ee).min(1),options:rf,resumeContext:_$,target:Nx}).strict(),Wx=Lt.extend({type:a.literal("thread.stop")}),Hx=Lt.extend({type:a.literal("thread.rename"),title:a.string().min(1)}),P$=w$.extend({type:a.literal("thread.archive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),k$=I$.extend({type:a.literal("thread.unarchive"),providerId:a.string().min(1),providerThreadId:a.string().min(1)}),C$=Lt.extend({type:a.literal("thread.deleted")}),Vx=a.object({type:a.literal("replay.capture_list")}),Zx=a.object({type:a.literal("replay.capture_get"),captureId:a.string().min(1)}),A$=a.object({type:a.literal("replay.capture_delete"),captureId:a.string().min(1)}),Kx=Lt.extend({type:a.literal("replay.run"),captureId:a.string().min(1),requestId:Xe,speed:un}).strict(),R$=Lt.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}),Gx=a.object({type:a.literal("codex.inference.complete"),model:a.string().min(1),prompt:a.string().min(1),outputSchema:Na,timeoutMs:a.number().int().positive()}).strict(),Qx=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(),Jx=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"})}),Xx=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)}),Yx=a.enum(["file","directory"]),eE=a.object({kind:Yx,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),tE=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"}),nE=a.object({type:a.literal("host.list_branches"),path:a.string().min(1)}),rE=a.object({type:a.literal("provider.list")}),oE=a.object({type:a.literal("provider.list_models"),providerId:a.string().min(1)}),$$=a.object({threadId:a.string().min(1),provisioningId:a.string().min(1)}).strict(),iE=Bx.extend({type:a.literal("environment.provision"),initiator:$$.nullable()}),j$=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)})]),O$=iE.extend({workspaceProvisionType:a.literal("unmanaged"),path:a.string().min(1),checkout:j$.optional()}),M$=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()}),z$=iE.merge(M$).extend({workspaceProvisionType:a.literal("managed-worktree")}),aE=a.discriminatedUnion("workspaceProvisionType",[O$,z$]),sE=lo.extend({type:a.literal("environment.destroy")}),uE=lo.extend({type:a.literal("workspace.status"),mergeBaseBranch:a.string().min(1).optional()}),cE=lo.extend({type:a.literal("workspace.diff"),target:Ah,maxDiffBytes:a.number().int().positive(),maxFileListBytes:a.number().int().positive()}),lE=lo.extend({type:a.literal("workspace.commit"),message:a.string().min(1)}),dE=lo.extend({type:a.literal("workspace.squash_merge"),targetBranch:a.string().min(1),commitMessage:a.string().min(1)}),F$=a.discriminatedUnion("type",[qx,Ux,Wx,Hx,P$,k$,C$,Vx,Zx,A$,Kx,R$,Gx,Qx,Xx,tE,nE,Jx,rE,oE,sE,uE,cE,lE,dE]),pE=a.union([F$,aE]);var L$=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),B$=a.object({files:a.array(a.object({path:a.string(),name:a.string()})),truncated:a.boolean()}),q$=a.object({paths:a.array(eE),truncated:a.boolean()}),mE={"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":$x,"replay.capture_get":us,"replay.capture_delete":a.object({}),"replay.run":a.object({}),"interactive.resolve":a.object({}),"codex.inference.complete":a.object({model:a.string().min(1),value:Na}),"codex.voice.transcribe":a.object({model:a.string().min(1),text:a.string()}),"host.list_files":B$,"host.list_paths":q$,"host.list_branches":a.object({branches:a.array(a.string()),current:a.string().nullable(),defaultBranch:a.string().nullable()}),"host.read_file":L$,"provider.list":a.object({providers:a.array(rn)}),"provider.list_models":a.object({models:a.array(nn),selectedOnlyModels:a.array(nn)}),"environment.provision":ih.extend({transcript:a.array(Va)}),"environment.destroy":a.object({}),"workspace.status":a.object({workspaceStatus:uo}),"workspace.diff":a.object({diff:Rh}),"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)})},of=a.object({id:a.string().min(1),cursor:a.number().int().nonnegative(),command:pE}),ls=a.object({sessionId:a.string().min(1),commandId:a.string().min(1),completedAt:a.number().int().nonnegative()});function N$(e,t){return[ls.extend({type:a.literal(e),ok:a.literal(!0),result:t}),ls.extend({type:a.literal(e),ok:a.literal(!1),errorCode:a.string().min(1),errorMessage:a.string().min(1)})]}function U$(e){return a.discriminatedUnion("ok",N$(e,mE[e]))}var W$=ls.extend({type:a.string().min(1),ok:a.literal(!1),errorCode:a.literal("unknown_command"),errorMessage:a.string().min(1)}),H$=ls.extend({type:a.string().min(1),ok:a.boolean()}),V$=new Map(ds.map(e=>[e,U$(e)])),Z$=a.custom(e=>{let t=H$.safeParse(e);if(!t.success)return!1;if(!Fx(t.data.type))return W$.safeParse(e).success;let r=V$.get(t.data.type);return r?r.safeParse(e).success:!1});var hE=a.string().regex(/^\d+$/);var fE=a.object({threadId:a.string().min(1)}),gE=a.object({environmentId:a.string().min(1),threadId:a.string().min(1)}),K$=a.object({hostId:a.string().min(1),instanceId:a.string().min(1),hostName:a.string().min(1),hostType:an,dataDir:a.string().min(1),protocolVersion:a.literal(ef),activeThreads:a.array(fE)}),G$=a.object({hostId:a.string().min(1),hostName:a.string().min(1),hostType:an}).strict(),Q$=a.object({hostId:a.string().min(1),hostKey:a.string().min(1)}).strict(),J$=a.object({sessionId:a.string().min(1),heartbeatIntervalMs:a.number().int().positive(),leaseTimeoutMs:a.number().int().positive(),trackedThreadTargets:a.array(gE)}).strict(),X$=a.object({sessionId:a.string().min(1),limit:hE,waitMs:hE}),Y$=a.object({sessionId:a.string().min(1),threadId:a.string().min(1),projectId:a.string().min(1),path:a.string().min(1)}),ej=a.object({commands:a.array(of)}),vE=a.object({producerEventId:oo,threadId:a.string().min(1),event:Qn}).strict(),tj=a.object({sessionId:a.string().min(1),events:a.array(vE)}),yE=a.enum(["thread_not_owned_by_host"]),SE=a.object({producerEventId:oo,threadId:a.string().min(1),reason:yE}).strict(),nj=a.object({acceptedEvents:a.array(a.object({producerEventId:oo,threadId:a.string().min(1),sequence:a.number().int().nonnegative()}).strict()),rejectedEvents:a.array(SE)}).strict(),rj=a.object({ok:a.literal(!0)}).strict(),bE=a.enum(es).extract(["work-status-changed","git-refs-changed","thread-storage-changed"]),TE=a.object({environmentId:a.string().min(1),change:bE}),oj=a.object({sessionId:a.string().min(1),...TE.shape}),o8=a.object({bufferDepth:a.number().int().nonnegative(),lastCommandCursor:a.number().int().nonnegative().nullable()}),xE=a.enum(["replaced","expired","daemon-disconnect"]),Ye=a.string().min(1),po=a.string().min(1),EE=a.enum(["user","process-exit","daemon-disconnect","environment-destroyed","thread-archived","thread-deleted","open-timeout"]),af=a.object({seq:a.number().int().nonnegative(),dataBase64:tn}).strict(),ij=a.object({type:a.literal("terminal.open"),requestId:po,terminalId:Ye,threadId:a.string().min(1),environmentId:a.string().min(1),workspaceContext:er,cols:mt,rows:ht}).strict(),aj=a.object({type:a.literal("terminal.attach"),requestId:po,terminalId:Ye,sinceSeq:a.number().int().nonnegative()}).strict(),sj=a.object({type:a.literal("terminal.input"),terminalId:Ye,dataBase64:tn}).strict(),uj=a.object({type:a.literal("terminal.resize"),terminalId:Ye,cols:mt,rows:ht}).strict(),cj=a.object({type:a.literal("terminal.close"),terminalId:Ye,reason:EE}).strict(),lj=a.discriminatedUnion("type",[a.object({type:a.literal("commands-available")}).strict(),a.object({type:a.literal("session-close"),reason:xE}).strict(),ij,aj,sj,uj,cj]),dj=a.object({type:a.literal("heartbeat")}).strict(),pj=a.object({type:a.literal("terminal.opened"),requestId:po,terminalId:Ye,shell:a.string().min(1),title:a.string().min(1),initialCwd:a.string().min(1),currentCwd:a.string().min(1).nullable(),cols:mt,rows:ht}).strict(),mj=a.object({type:a.literal("terminal.output"),terminalId:Ye,chunk:af}).strict(),hj=a.object({type:a.literal("terminal.replay"),requestId:po,terminalId:Ye,chunks:a.array(af),nextSeq:a.number().int().nonnegative()}).strict(),fj=a.object({type:a.literal("terminal.exited"),terminalId:Ye,exitCode:a.number().int().nullable(),closeReason:EE}).strict(),gj=a.object({type:a.literal("terminal.error"),requestId:po,terminalId:Ye,code:a.string().min(1),message:a.string().min(1)}).strict(),vj=a.discriminatedUnion("type",[dj,pj,mj,hj,fj,gj]),yj=th.pick({threadId:!0,providerThreadId:!0,turnId:!0,callId:!0,tool:!0,arguments:!0}).extend({sessionId:a.string().min(1)});var Sj=a.object({sessionId:a.string().min(1),interaction:Ym}),bj=a.discriminatedUnion("outcome",[a.object({outcome:a.literal("created"),interactionId:a.string().min(1),status:jt}),a.object({outcome:a.literal("existing"),interactionId:a.string().min(1),status:jt}),a.object({outcome:a.literal("rejected"),reason:a.string().min(1)})]),Tj=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)}),xj=a.object({ok:a.literal(!0),interactionIds:a.array(a.string().min(1))});var Ej=/^[a-zA-Z0-9_-]+$/;function Me(e,t){if(!Ej.test(e))throw new Error(`Invalid ID from ${t}: "${e}". IDs must contain only letters, digits, hyphens, and underscores.`);return e}function et(e){if(e===void 0)return;let t=e.trim();return t.length>0?t:void 0}function IE(){return is.BB_SERVER_URL}function DE(){return`http://${Qh}:${is.BB_HOST_DAEMON_PORT}`}function _E(e){let t=et(e);if(t)return Me(t,"--project flag");let r=et(process.env.BB_PROJECT_ID);if(r)return Me(r,"BB_PROJECT_ID")}function tt(e){let t=et(e);if(t)return Me(t,"--thread flag");let r=et(process.env.BB_THREAD_ID);if(r)return Me(r,"BB_THREAD_ID")}function wE(e){let t=et(e);if(t)return Me(t,"--environment flag")}function PE(e){let t=_E(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 Ij(e){let t=et(e);if(t)return{id:Me(t,"--project flag"),source:"arg"};let r=et(process.env.BB_PROJECT_ID);if(r)return{id:Me(r,"BB_PROJECT_ID"),source:"env"}}function tr(e){let t=Ij(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 sf(e){let t=et(e);if(t)return{id:Me(t,"<threadId> argument"),source:"arg"};let r=et(process.env.BB_THREAD_ID);if(r)return{id:Me(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId> or set BB_THREAD_ID.")}function Ue(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(e)return{id:Me(e,"<threadId> argument"),source:"arg"};if(t.self){let o=tt();if(!o)throw new Error("--self requires BB_THREAD_ID to be set.");return{id:o,source:"self"}}let r=et(process.env.BB_THREAD_ID);if(r)return{id:Me(r,"BB_THREAD_ID"),source:"env"};throw new Error("Missing thread context. Pass <threadId>, use --self, or set BB_THREAD_ID.")}function nr(e,t){if(t.self&&e)throw new Error("Cannot combine a thread ID argument with --self.");if(t.self){let r=tt();if(!r)throw new Error("--self requires BB_THREAD_ID to be set.");return r}if(e)return Me(e,"<threadId> argument");throw new Error("Provide a thread ID or use --self to target the current thread.")}function ps(){return{projectId:_E(),threadId:tt(),serverUrl:is.BB_SERVER_URL}}var _j=["low","medium","high","xhigh","max"];function A(e,t){return e.json?(console.log(JSON.stringify(t,null,2)),!0):!1}function oe(e,t,r,o){o.json||e.source==="env"&&console.error(`${t} ${e.id} (from ${r})`)}function uf(e){let t=[...e.action==="commit"?["committed"]:[e.merged?"merged":"noop"]];console.log(`${e.message} [${t.join(", ")}]`)}async function cn(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=Dj({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 cf(e){return e instanceof Error?e.message:String(e)}function rr(e){if(e===void 0)return;let t=Y.safeParse(e);if(t.success)return t.data;throw new Error(`Invalid reasoning level '${e}'. Expected ${lf(_j)}.`)}function gt(e,t){return new Error(`${e}: ${cf(t)}`)}function lf(e){return e.map(t=>`'${t}'`).join(" or ")}var vt=class extends Error{exitCode;constructor(t,r){super(t),this.name="CliExitError",this.exitCode=r}};function C(e){return async(...t)=>{try{await e(...t)}catch(r){if(wj(r))throw r;if(r instanceof vt){console.error(`Error: ${r.message}`),process.exit(r.exitCode);return}console.error(`Error: ${cf(r)}`),process.exit(1)}}}function wj(e){return e instanceof Error&&e.message.startsWith("process.exit:")}var Pj=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"]),df=a.object({code:a.string().min(1),message:a.string(),retryable:a.boolean().optional()});var kE=["pending","completed","error","interrupted"],mo=a.enum(kE),CE=["waiting_for_approval","denied"],ms=a.enum(CE).nullable(),pf=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()})]),ho=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()}),AE=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())}),RE=["message","steer"],$E=["pending","accepted"],jE=a.object({kind:a.enum(RE),status:a.enum($E)}),OE=ho.extend({kind:a.literal("conversation"),text:a.string(),attachments:AE.nullable()}),ME=OE.extend({role:a.literal("user"),initiator:io,senderThreadId:a.string().nullable(),turnRequest:jE}),zE=OE.extend({role:a.literal("assistant"),turnRequest:a.null()}),mf=a.discriminatedUnion("role",[ME,zE]),FE=["generic","compaction","manager-assignment","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"],kj=a.enum(FE),Cj=a.enum(["generic","compaction","thread-provisioning","thread-interrupted","provider-unhandled","warning","deprecation"]),LE=["assign","release","transfer"],BE=a.enum(LE),qE=a.object({action:BE,previousManagerThreadId:a.string().nullable(),previousManagerThreadTitle:a.string().nullable(),nextManagerThreadId:a.string().nullable(),nextManagerThreadTitle:a.string().nullable()}),hf=ho.extend({kind:a.literal("system"),title:a.string(),detail:a.string().nullable(),status:mo.nullable()}),NE=hf.extend({systemKind:a.enum(["debug","error","reconnect"])}),UE=hf.extend({systemKind:a.literal("operation"),operationKind:Cj,completedAt:a.number().nullable()}),WE=hf.extend({systemKind:a.literal("operation"),operationKind:a.literal("manager-assignment"),status:mo,managerAssignment:qE,completedAt:a.number().nullable()}),HE=a.discriminatedUnion("operationKind",[UE,WE]),ff=a.union([NE,HE]),VE=a.object({added:a.number().int().nonnegative(),removed:a.number().int().nonnegative()}),ZE=a.object({path:a.string(),kind:a.string().nullable(),movePath:a.string().nullable(),diff:a.string().nullable(),diffStats:VE}),Bt=ho.extend({kind:a.literal("work"),status:mo}),KE=Bt.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:ms,activityIntents:a.array(pf)}),GE=Bt.extend({workKind:a.literal("tool"),callId:a.string(),toolName:a.string(),toolArgs:a.record(a.string(),Oe).nullable(),output:a.string(),completedAt:a.number().nullable(),approvalStatus:ms,activityIntents:a.array(pf)}),QE=Bt.extend({workKind:a.literal("file-change"),callId:a.string(),change:ZE,stdout:a.string().nullable(),stderr:a.string().nullable(),approvalStatus:ms}),JE=Bt.extend({workKind:a.literal("web-search"),callId:a.string(),queries:a.array(a.string()),completedAt:a.number().nullable()}),XE=Bt.extend({workKind:a.literal("web-fetch"),callId:a.string(),url:a.string(),prompt:a.string().nullable(),pattern:a.string().nullable(),completedAt:a.number().nullable()}),Aj=["waiting","denied"],Rj=["pending","resolving","granted","denied","interrupted","expired"],YE=["pending","resolving","answered","interrupted","expired"],eI=["turn","session"],tI=a.enum(eI),$j=a.object({itemId:a.string(),toolName:a.string().nullable()}),nI=Bt.extend({workKind:a.literal("approval"),interactionId:a.string(),target:$j}),jj=nI.extend({approvalKind:a.literal("file-edit"),lifecycle:a.enum(Aj)}),Oj=nI.extend({approvalKind:a.literal("permission-grant"),lifecycle:a.enum(Rj),grantScope:tI.nullable(),statusReason:a.string().nullable()}),rI=a.discriminatedUnion("approvalKind",[jj,Oj]),oI=Bt.extend({workKind:a.literal("question"),interactionId:a.string(),lifecycle:a.enum(YE),questions:a.array(ja),answers:a.record(a.string(),Fa).nullable(),statusReason:a.string().nullable()}),Mj=Bt.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(()=>or))}),gf=a.union([KE,GE,QE,JE,XE,rI,oI,Mj]),iI=a.lazy(()=>ho.extend({kind:a.literal("turn"),turnId:a.string().min(1),status:mo,summaryCount:a.number().int().nonnegative(),completedAt:a.number().nullable(),children:a.array(or).nullable()})),zj=a.union([mf,gf,ff]),or=a.lazy(()=>a.union([mf,gf,ff,iI]));var sI=a.enum(["auto","start","steer"]),uI=200,yf=256,cI=100,lI=200,dI=100;function pI(e){return e.value.split(",").every(r=>r.length>0&&e.allowedValues.includes(r))}var mI=a.object({usedTokens:a.number(),modelContextWindow:a.number(),estimated:a.boolean()}),Fj=/[\u0000-\u001f\u007f\\:~^?*\[]/u,Lj=/[ \t]/u,Bj=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!=="@"&&!Bj.has(e)&&!Fj.test(e)&&!Lj.test(e)&&!e.includes("..")&&!e.includes("@{")&&!e.includes("//")&&!e.endsWith("/")&&!e.endsWith(".")&&t.every(r=>r.length>0&&!r.startsWith(".")&&!r.endsWith(".lock"))}var Sf=a.string().refine(qj,{message:"Invalid git branch name"}),hI=a.discriminatedUnion("kind",[a.object({kind:a.literal("existing"),name:Sf}),a.object({kind:a.literal("new")})]),fI=a.object({type:a.literal("unmanaged"),path:a.string().min(1).nullable(),branch:hI.optional()}),gI=a.discriminatedUnion("kind",[a.object({kind:a.literal("named"),name:Sf}),a.object({kind:a.literal("default")})]),vI=a.object({type:a.literal("managed-worktree"),baseBranch:gI}),yI=a.discriminatedUnion("type",[fI,vI]),SI=a.object({type:a.literal("reuse"),environmentId:a.string().min(1)}),bI=a.object({type:a.literal("host"),hostId:a.string().min(1),workspace:yI}),bf=a.discriminatedUnion("type",[SI,bI]),Tf=a.enum(["app","cli"]),Nj=a.object({projectId:a.string().min(1),providerId:a.string().min(1).optional(),origin:Tf,title:a.string().min(1).optional(),input:a.array(ee).min(1),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:bf,parentThreadId:a.string().min(1).optional()}),Uj=a.object({providerId:a.string().min(1),title:a.string().min(1).optional(),input:a.array(ee).min(1),model:a.string().min(1),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:bf,parentThreadId:a.string().min(1).optional()}),fs=a.string().min(1).max(uI),TI=a.string().min(1).max(cI),Wj=a.string().min(1).max(lI),xI=a.string().min(1).max(dI),EI=a.object({triggerType:a.literal("schedule"),cron:TI,timezone:xI}),II=a.object({actionType:a.literal("scheduled-thread"),threadRequest:Uj}),xf=a.discriminatedUnion("triggerType",[EI]),gs=a.discriminatedUnion("actionType",[II]),Ef=a.string().min(1),Hj=a.object({isValid:a.boolean(),validationIssues:a.array(Ef)}),Vj=a.object({id:a.string().min(1),projectId:a.string().min(1),name:fs,enabled:a.boolean(),trigger:xf,action:gs,autoArchive:a.boolean(),nextRunAt:a.number().nullable(),lastRunAt:a.number().nullable(),runCount:a.number().int().nonnegative(),isValid:a.boolean(),validationIssues:a.array(Ef),createdAt:a.number(),updatedAt:a.number()}),Zj=a.object({name:fs,enabled:a.boolean().optional(),trigger:xf,action:gs,autoArchive:a.boolean().optional()}),DI=a.object({enabled:a.boolean()}).strict(),_I=a.object({name:fs,trigger:xf,action:gs,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"),Kj=a.union([DI,_I]),Gj=a.object({input:a.array(ee).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),mode:sI,senderThreadId:a.string().min(1).optional()}),wI=a.enum(["auto","steer"]),Qj=a.object({input:a.array(ee).min(1),model:a.string().optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional()}),Jj=a.object({mode:wI}),Xj=a.object({ok:a.literal(!0),queuedMessage:Ja}),Yj=a.array(Ya),PI=Xa,kI=a.enum(["environment","host"]),e1=a.object({include:a.string().min(1).refine(e=>pI({allowedValues:kI.options,value:e}),{message:"Invalid include"}).optional()}),t1=PI.extend({environment:ah.nullable().optional(),host:kh.nullable().optional()}),CI=a.array(eh);var AI=a.array(Ja),n1=a.object({nonDeletedAssignedChildCount:a.number().int().nonnegative()}),r1=a.object({managerChildThreadsConfirmed:a.boolean()}),o1=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"),i1=a.object({mergeBaseBranch:a.string().min(1).nullable()}),RI=a.string().trim().min(1).transform(Qa).superRefine((e,t)=>{let r=Ph(e);r&&t.addIssue({code:a.ZodIssueCode.custom,message:r})}),a1=a.object({hostId:a.string().min(1),type:a.literal("local_path"),path:RI}).strict(),$I=a1,s1=a.object({name:a.string().min(1),source:$I}),u1=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent").optional()}).strict(),c1=a.object({hostId:a.string().min(1).optional(),hostType:a.literal("persistent"),joinMode:a.literal("local")}).strict(),l1=a.union([c1,u1]),d1=a.object({expiresAt:a.number().int().positive(),hostId:a.string().min(1),joinCode:a.string().min(1),joinCommand:a.string().min(1)}),p1=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),m1=a.object({type:a.literal("host"),hostId:a.string().min(1)}),h1=a.discriminatedUnion("type",[m1]),f1=a.object({name:a.string().min(1).optional(),providerId:a.string().min(1).optional(),origin:Tf,templateName:qm.optional(),model:a.string().min(1).optional(),serviceTier:ge.optional(),reasoningLevel:Y.optional(),permissionMode:le.optional(),environment:h1}),jI=a.enum(["threads"]),g1=a.object({include:a.string().min(1).refine(e=>pI({allowedValues:jI.options,value:e}),{message:"Invalid include"}).optional()}),OI=a.object({query:a.string().min(1).max(yf).optional(),limit:a.string().regex(/^\d+$/).optional(),environmentId:a.preprocess(e=>e===""?null:e,a.string().min(1).nullable())}),go=a.enum(["true","false"]),v1=OI.extend({includeFiles:go,includeDirectories:go}),y1=a.object({hostId:a.string().min(1)}),S1=a.object({branches:a.array(a.string()),current:a.string().nullable(),defaultBranch:a.string().nullable()}),b1=a.object({path:a.string().min(1)}),T1=a.object({threadType:so}),x1=a.object({limit:a.string().regex(/^\d+$/)}).partial(),MI=a.array(Wm),zI=a.object({providers:a.array(rn),models:a.array(nn),selectedOnlyModels:a.array(nn)}),E1=a.object({defaultExecutionOptions:pt.nullable(),queuedMessages:AI,executionOptions:zI,pendingInteractions:CI,promptHistory:MI}),vf=a.string("A merge base branch is required").min(1,"A merge base branch is required"),I1=a.object({mergeBaseBranch:vf.optional()}),D1=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted")}),a.object({target:a.literal("branch_committed"),mergeBaseBranch:vf}),a.object({target:a.literal("all"),mergeBaseBranch:vf}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu)})]),hs=a.enum(["old","new"]),aI=a.string().regex(/^[0-9a-f]{4,40}$/iu),_1=a.discriminatedUnion("target",[a.object({target:a.literal("uncommitted"),path:a.string().min(1),side:hs}),a.object({target:a.literal("branch_committed"),mergeBaseRef:aI,path:a.string().min(1),side:hs}),a.object({target:a.literal("all"),mergeBaseRef:aI,path:a.string().min(1),side:hs}),a.object({target:a.literal("commit"),sha:a.string().regex(/^[0-9a-f]{4,40}$/iu),path:a.string().min(1),side:hs})]),w1=a.object({path:a.string(),content:a.string(),contentEncoding:a.enum(["base64","utf8"]),mimeType:a.string().optional(),sizeBytes:a.number().int().nonnegative()}),P1=a.object({projectId:a.string().min(1),type:so.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()}),vs=a.enum(["conversation","standard"]),FI=a.object({anchorSeq:a.number().int().positive(),anchorId:a.string().min(1)}).strict(),LI=a.object({kind:a.enum(["latest","older"]),segmentLimit:a.number().int().positive(),returnedSegmentCount:a.number().int().nonnegative(),hasOlderRows:a.boolean(),olderCursor:FI.nullable()}).strict(),k1=a.object({managerTimelineView:vs,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"]})}),C1=a.object({turnId:a.string().min(1),sourceSeqStart:a.string().regex(/^\d+$/),sourceSeqEnd:a.string().regex(/^\d+$/),managerTimelineView:vs.optional()}),A1=a.object({afterSeq:a.string().regex(/^\d+$/),limit:a.string().regex(/^\d+$/)}).partial(),R1=a.object({type:a.string().min(1),afterSeq:a.string().regex(/^\d+$/).optional(),waitMs:a.string().regex(/^\d+$/).optional()}),BI=a.object({query:a.string().min(1).max(yf),limit:a.string().regex(/^\d+$/)}).partial(),$1=BI.extend({includeFiles:go,includeDirectories:go}),j1=a.object({path:a.string().min(1)}),O1=a.object({path:a.string().min(1)}),M1=a.object({providerId:a.string().min(1),hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),z1=a.object({hostId:a.string().min(1),environmentId:a.string().min(1)}).partial(),F1=a.object({name:a.string().min(1)}).partial().refine(e=>e.name!==void 0,"At least one field must be provided"),L1=a.object({type:a.literal("local_path"),path:RI.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"),B1=a.enum(["commit","squash_merge"]),qI=a.object({mergeBaseBranch:a.string().min(1)}).strict(),q1=a.discriminatedUnion("action",[a.object({action:a.literal("commit")}).strict(),a.object({action:a.literal("squash_merge"),options:qI}).strict()]),NI=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)}),UI=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)}),N1=a.discriminatedUnion("action",[NI,UI]),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()})]),U1=df.extend({details:WI.optional()}),fo=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:mt,rows:ht,status:Nm,exitCode:a.number().int().nullable(),closeReason:Um.nullable(),createdAt:a.number().int().nonnegative(),updatedAt:a.number().int().nonnegative(),lastUserInputAt:a.number().int().nonnegative().nullable()}),W1=a.object({sessions:a.array(fo)}),H1=a.object({cols:mt,rows:ht}).strict(),V1=a.object({mode:a.enum(["force","if-clean"]),reason:a.literal("user")}).strict(),Z1=a.object({title:a.string().trim().min(1).max(200)}).strict(),HI=a.object({seq:a.number().int().nonnegative(),dataBase64:tn}).strict(),K1=a.discriminatedUnion("type",[a.object({type:a.literal("input"),dataBase64:tn}).strict(),a.object({type:a.literal("resize"),cols:mt,rows:ht}).strict(),a.object({type:a.literal("close"),reason:a.literal("user")}).strict(),a.object({type:a.literal("ping")}).strict()]),G1=a.discriminatedUnion("type",[a.object({type:a.literal("attached"),session:fo,nextSeq:a.number().int().nonnegative()}).strict(),a.object({type:a.literal("output"),chunk:HI}).strict(),a.object({type:a.literal("session-updated"),session:fo}).strict(),a.object({type:a.literal("exited"),session:fo}).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()]),Q1=a.object({turnId:a.string().min(1),sourceSeqStart:a.number().int().nonnegative(),sourceSeqEnd:a.number().int().nonnegative(),managerTimelineView:vs.optional()}),J1=a.object({rows:a.array(or)}),X1=a.object({rows:a.array(or),activeThinking:Oh.nullable(),pendingTodos:Mh.nullable(),contextWindowUsage:mI.optional(),timelinePage:LI}),Y1=a.object({text:a.string()}),VI=a.object({path:a.string(),name:a.string()}),ZI=a.enum(["file","directory"]),KI=a.object({kind:ZI,path:a.string(),name:a.string(),score:a.number(),positions:a.array(a.number().int().nonnegative())}),e2=a.object({files:a.array(VI),truncated:a.boolean()}),GI=a.object({paths:a.array(KI),truncated:a.boolean()}),t2=e2.extend({storageRootPath:a.string()}),n2=GI.extend({storageRootPath:a.string()}),QI=Ih.extend({sources:a.array(Dh)}),r2=QI.extend({threads:a.array(Ya)}),o2=a.object({featureFlags:Bm,hostDaemonPort:a.number().nullable(),voiceTranscriptionEnabled:a.boolean()}),i2=a.object({ok:a.literal(!0)}),a2=a.object({workspace:uo.nullable()}),s2=a.object({type:a.enum(["localImage","localFile"]),path:a.string(),name:a.string(),mimeType:a.string().optional(),sizeBytes:a.number()});function JI(e,t){return Yn(`${e}/api/v1`,t)}function If(e,t){return{api:{v1:JI(e,t)}}}function ie(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function Df({environment:e,isLocalHost:t,hostName:r}){let o=e.isWorktree?"worktree":"direct",n=oh({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 u2(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 ln(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,...u2("macos"in e?e.macos:null)]}function c2(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 ie(t)}})}function XI(e,t){if(t===null)return null;let r=ln(t);return r.length>0?`${e}: ${r.join(", ")}`:null}function _f(e){if(!ft(e.payload))return e.payload.questions.map(t=>t.prompt);switch(e.payload.subject.kind){case"command":{let t=c2(e.payload.subject.actions).map(o=>`Action: ${o}`),r=XI("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=XI("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=ln(e.payload.subject.permissions);return[...e.payload.subject.toolName?[`Tool: ${e.payload.subject.toolName}`]:[],...t.map(r=>`Permission: ${r}`)]}default:return ie(e.payload.subject)}}function l2(e){return{network:e.network?.enabled===!0?{enabled:!0}:null,fileSystem:e.fileSystem?{read:e.fileSystem.read,write:e.fileSystem.write}:null}}function wf(e){switch(e){case"allow_once":return"approved";case"allow_for_session":return"approved for this session";case"deny":return"denied";default:return ie(e)}}function d2(e,t){return ft(e.payload)?e.payload.subject.kind==="permission_grant"?l2(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 ys(e,t){return t==="deny"?{decision:t}:{decision:t,grantedPermissions:d2(e,t)}}function Pf({question:e,value:t}){return e.options?.find(r=>r.value===t)?.label??t}function kf(e){let{interaction:t,surface:r}=e;if(!ft(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 ie(t.payload.subject)}if(r==="app"){let o=ln(t.payload.subject.permissions);return o.length>0?o.join(" . "):"Review requested permissions"}return t.payload.subject.toolName??"Permission request"}function p2(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function YI(e){return p2(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=YI(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 m2=75e3,h2=new Set(["arrayBuffer","blob","bytes","formData","json","text"]);function f2(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 ${f2(t)}.`),this.name="CliRequestTimeoutError"}};function $(e){return If(e,{fetch:g2({timeoutMs:m2})})}function g2(e){return S2(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 eD({context:i,response:s})}catch(s){throw Cf(i,s)?new ar(e.timeoutMs):s}}}async function v2(e){try{return await e.read()}catch(t){throw Cf(e.context,t)?new ar(e.context.timeoutMs):t}}function eD(e){let{context:t,response:r}=e,o;return new Proxy(r,{get(n,i){if(h2.has(i)){let s=Reflect.get(n,i,n);if(typeof s=="function")return()=>v2({context:t,read:s.bind(n)})}switch(i){case"body":return n.body===null?null:(o??=y2({context:t,stream:n.body}),o);case"clone":return()=>eD({context:t,response:n.clone()});default:{let s=Reflect.get(n,i,n);return typeof s=="function"?s.bind(n):s}}}})}function y2(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(Cf(e.context,n)){o.error(new ar(e.context.timeoutMs));return}o.error(n)}},cancel(o){return r().cancel(o)}})}function Cf(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 S2(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 T2={legacyKeys:["detail"]};async function x2(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,T2)??r}catch{return r}}async function w(e){let r=await(await E2(e)).text();return JSON.parse(r)}async function E2(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 x2(t);throw new Error(`HTTP ${t.status}: ${r}`)}return t}function tD(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.environments[":id"].$get({param:{id:o}}));A(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(C(async(o,n)=>{let i=$(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}}));A(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(C(async(o,n)=>{let i=$(t()),s;try{s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"commit"}}))}catch(u){throw gt(`Failed to commit in environment ${o}`,u)}A(n,s)||uf(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.environments[":id"].actions.$post({param:{id:o},json:{action:"squash_merge",options:{mergeBaseBranch:n.mergeBaseBranch}}}));A(n,s)||uf(s)}))}var Ig=Bo(V_(),1);var xg=[{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
98
+
99
+ Use \`ASYNC.md\` in thread storage when the system should wake a manager thread
100
+ later for reminders, recurring check-ins, or follow-up work.
101
+
102
+ \`ASYNC.md\` is Markdown with YAML frontmatter:
103
+
104
+ \`\`\`yaml
105
+ ---
106
+ timezone: America/Los_Angeles
107
+ schedules:
108
+ - name: daily-recap
109
+ cron: "0 8 * * 1-5"
110
+ - name: deploy-check
111
+ cron: "0 */2 * * *"
112
+ timezone: UTC
113
+ ---
114
+ \`\`\`
115
+
116
+ Each schedule has a matching \`## <name>\` section in the body with instructions
117
+ for your future self. The top-level \`timezone\` defaults to UTC; each schedule
118
+ can override it.
119
+
120
+ For one-off reminders like "in 10 minutes", encode the next daily occurrence
121
+ and note in the body to remove the schedule after it fires once.
122
+
123
+ Keep schedule \`name\` values stable. The server syncs entries by name, so
124
+ renaming one creates a new schedule rather than editing it.
125
+
126
+ Constraints:
127
+
128
+ - No more than 20 schedules.
129
+ - No interval shorter than 5 minutes.
130
+ - The cron month field must stay \`*\`.
131
+
132
+ When a scheduled nudge arrives, read the matching section in \`ASYNC.md\` and
133
+ decide whether there is real work to do. Only message the user when the nudge
134
+ produced something useful. Remove schedules that are no longer needed.`,fileName:"bb-guide-async.md",kind:"instruction",title:"bb Guide - Async",summary:"Scheduled nudge reference for ASYNC.md.",intent:"Explain how to define scheduled nudges for manager threads.",editingNotes:"Keep this as the canonical ASYNC.md syntax reference. Manager prompts should point here instead of inlining schedule syntax.",variables:{}},{id:"bbGuideEnvironments",body:`Environment commands
98
135
 
99
136
  Environments determine where threads run. Multiple threads can share an environment
100
137
  (e.g., a coding thread and a review thread in the same worktree).
@@ -188,7 +225,8 @@ Run \`bb guide <chapter>\` for command details:
188
225
  providers Discovering providers and models
189
226
  projects Project CRUD and sources
190
227
  hosts Listing and understanding hosts
191
- styling How to style STATUS.html to match the bb UI`,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
228
+ styling How to style STATUS.html to match the bb UI
229
+ 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
192
230
 
193
231
  A project maps to a code repository. All threads belong to a project.
194
232
 
@@ -611,7 +649,7 @@ Call the \`result\` tool with:
611
649
  - title: short, clear, 4-5 words maximum, Title Case
612
650
 
613
651
  Task:
614
- {{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, an agent orchestration tool.\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\n## The system\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\nA few well-known files live 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.md`** \u2014 a concise, current view of your work. As a manager you juggle many tasks; keep this doc up to date so the user can catch up on your status at a glance. If you want a richer status surface, write to `STATUS.html` instead \u2014 the UI renders it in an unsandboxed iframe, so you can include external resources (Tailwind CDN, fonts, images, stylesheets). One or the other, not both.\n- **`ASYNC.md`** \u2014 scheduled nudges. When you need the system to wake you up later (reminders, recurring check-ins), define cron schedules here and it will nudge you on that cadence.\n\nUnless otherwise specified, make `STATUS.html` styled like bb and use Tailwind. For `STATUS.html` styling \u2014 the bb design tokens, fonts, light/dark variables, Tailwind setup, and a starter `<style>` snippet so your HTML matches the rest of the app \u2014 run `bb guide styling`.\n\nBeyond these, the 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\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\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](/Users/sawyerhood/.bb/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 hatch\n\nWhen you receive `[bb system] Welcome!`, inspect `PREFERENCES.md` in your thread storage. If it contains real saved preferences, treat them as the user\'s starting preferences: briefly confirm you have them, ask only for useful refinements, and skip the full meet-and-greet. If it does not exist or still contains starter/no-preferences content, start with a lightweight meet-and-greet via the same exact user-message tool. Your first message should feel like meeting a new team member. Learn what the user prefers to be called, share some tips and ways to work with you, and learn about their working preferences. Create or replace `PREFERENCES.md` with what you learn.\n\n`STATUS.md`, `STATUS.html`, and `ASYNC.md` may also already exist from user templates. Preserve any seeded structure and keep the files current as you work.\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.\n\nDelegation means creating a BB child thread with `bb thread spawn`. If a spawn fails, tell the user and retry \u2014 do not fall back to doing the work in the manager thread. Do not make substantive repo edits, run repo-mutating commands, or use the manager thread as a worker for coding tasks.\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.\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\nStructure `ASYNC.md` as markdown with YAML frontmatter:\n\n```yaml\n---\ntimezone: America/Los_Angeles\nschedules:\n - name: daily-recap\n cron: "0 8 * * 1-5"\n - name: deploy-check\n cron: "0 */2 * * *"\n timezone: UTC\n---\n```\n\nEach schedule has a matching `## <name>` section in the body with instructions for your future self. The top-level `timezone` defaults to UTC; each schedule can override it.\n\nFor one-off reminders like "in 10 minutes", encode the next daily occurrence and note in the body to remove the schedule after it fires once.\n\nKeep schedule `name` values stable \u2014 the server syncs entries by name, so renaming one creates a new schedule rather than editing it. No more than 20 schedules, no interval shorter than 5 minutes, and the month field must stay `*`.\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- Thread storage: `{{threadStoragePath}}`\n- Local timezone: `{{localTimezone}}`\n\n`PREFERENCES.md` contents:\n\n```md\n{{managerPreferencesContent}}\n```',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 four blocks \u2014 system, communicate, hatch, work. State each rule once in its strongest positive form. Do not add defensive restatements or negative-example lists.",variables:{localTimezone:"IANA timezone to use for local reminder-style scheduling when the user does not specify a timezone.",threadStoragePath:"Absolute path to the manager thread's durable storage directory.",managerPreferencesContent:"Current contents of PREFERENCES.md, or a marker when it does not exist.",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]
652
+ {{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.md`/`STATUS.html`** \u2014 a concise, current view of your work. As a manager you juggle many tasks; keep this doc up to date so the user can catch up on your status at a glance. If you want a richer status surface, write to `STATUS.html` instead \u2014 the UI renders it in an unsandboxed iframe, so you can include external resources (Tailwind CDN, fonts, images, stylesheets). One or the other, not both.\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\nUnless otherwise specified, make `STATUS.html` styled like bb and use Tailwind. For `STATUS.html` styling \u2014 the bb design tokens, fonts, light/dark variables, Tailwind setup, and a starter `<style>` snippet so your HTML matches the rest of the app \u2014 run `bb guide styling`.\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 user-message 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](/Users/sawyerhood/.bb/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.\n\nDelegation means creating a BB child thread with `bb thread spawn`. If a spawn fails, tell the user and retry \u2014 do not fall back to doing the work in the manager thread. Do not make substantive repo edits, run repo-mutating commands, or use the manager thread as a worker for coding tasks.\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\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- Thread storage: `{{threadStoragePath}}`\n- Local timezone: `{{localTimezone}}`\n\n`PREFERENCES.md` contents:\n\n```md\n{{managerPreferencesContent}}\n```',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.",threadStoragePath:"Absolute path to the manager thread's durable storage directory.",managerPreferencesContent:"Current contents of PREFERENCES.md, or a marker when it does not exist.",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]
615
653
 
616
654
  Managed thread complete: {{threadId}}{{titleSuffix}}
617
655
  Review that thread's result and decide whether to update the user or delegate a follow-up.
@@ -624,7 +662,114 @@ Inspect the managed thread directly before taking action; do not reapply its edi
624
662
  Managed thread interrupted: {{threadId}}{{titleSuffix}}
625
663
  Inspect the managed thread directly before taking action. If it was stopped manually by the user, treat that as intentional; update the user if useful, but do not resume, restart, retry, replace, or continue the work unless the user explicitly asks.
626
664
  Otherwise decide whether to resume it, redirect it, or update the user.
627
- Do not reapply its edits into the manager checkout unless the user explicitly asked for that.`,fileName:"system-message-managed-thread-interrupted.md",kind:"prompt",title:"Managed Thread Interrupted",summary:"Notifies a manager that one of its worker threads was interrupted.",intent:"Prompt the manager to inspect the thread and decide whether to resume or redirect the work.",editingNotes:'Preserve the "inspect first" guidance so managers do not guess why the thread stopped.',variables:{threadId:"The interrupted worker thread's ID.",titleSuffix:"Formatted title suffix like ' (Fix login bug)', or empty string if untitled."}},{id:"systemMessageManagerWelcome",body:"[bb system]\n\nWelcome!\nStart with a short meet-and-greet using the exact user-message tool available to you: `mcp__bb-bridge__message_user` when present, otherwise `message_user`.",fileName:"system-message-manager-welcome.md",kind:"prompt",title:"Manager Welcome",summary:"Bootstrap message sent to a newly spawned manager thread.",intent:"Kick off the manager's first turn with a minimal message.",editingNotes:"Keep this minimal. The manager's developer instructions carry the real context.",variables:{}},{id:"systemMessageScheduledNudge",body:`[bb system]
665
+ Do not reapply its edits into the manager checkout unless the user explicitly asked for that.`,fileName:"system-message-managed-thread-interrupted.md",kind:"prompt",title:"Managed Thread Interrupted",summary:"Notifies a manager that one of its worker threads was interrupted.",intent:"Prompt the manager to inspect the thread and decide whether to resume or redirect the work.",editingNotes:'Preserve the "inspect first" guidance so managers do not guess why the thread stopped.',variables:{threadId:"The interrupted worker thread's ID.",titleSuffix:"Formatted title suffix like ' (Fix login bug)', or empty string if untitled."}},{id:"systemMessageManagerWelcome",body:`[bb system]
666
+
667
+ Welcome. You just came online inside bb. You are a manager helping your user get things done.
668
+
669
+ First, inspect \`PREFERENCES.md\` in your thread storage.
670
+
671
+ If it contains real saved preferences, treat them as the user's starting
672
+ preferences. Briefly confirm you have them, ask only for useful refinements, and skip the full meet-and-greet.
673
+
674
+ If \`PREFERENCES.md\` does not exist or still contains starter/no-preferences
675
+ content, do the first-boot conversation. Do not interrogate. Do not sound like a
676
+ form. Just talk.
677
+
678
+ Use the exact user-message tool available to you:
679
+ \`mcp__bb-bridge__message_user\` when present, otherwise \`message_user\`. You need
680
+ to call this tool to send messages to the user.
681
+
682
+ Your first user-facing message must anchor two things up front: **scope** (what
683
+ you should be working on) and **landing mode** (how worker output reaches the
684
+ codebase). Ask both \u2014 either in the same message, or in a tight follow-up you
685
+ explicitly promise.
686
+
687
+ For scope, surface these three common shapes (verbatim or paraphrased) and make
688
+ clear the user can name something else entirely:
689
+
690
+ - Manage an individual feature or workstream.
691
+ - Manage all coding agents across this repo.
692
+ - Manage a specific process (code review, async triage, releases, ...).
693
+
694
+ For landing mode, ask whether the user wants a PR opened per worker or worker
695
+ branches merged directly into a local branch. Note that the choice is editable
696
+ later. Record the answer in \`PREFERENCES.md\` under the existing
697
+ **Landing changes** bullet \u2014 it already documents the two modes
698
+ (\`Open PRs\` and \`No PRs \u2014 local merge, push on request\`).
699
+
700
+ Start with something in this spirit:
701
+
702
+ > Hey. I just came online as your bb manager. Two questions to start.
703
+ >
704
+ > What's the scope? Common shapes:
705
+ > - a feature or workstream you want me to drive
706
+ > - all the coding-agent work across this repo
707
+ > - a specific process (review, triage, releases)
708
+ >
709
+ > Or something else \u2014 tell me what fits.
710
+ >
711
+ > And when workers finish: open a PR per worker, or merge into a local branch? Easy to change later.
712
+
713
+ After scope and landing mode are settled, figure out together:
714
+
715
+ 1. What the user wants to be called.
716
+ 2. How they want you to refer to yourself, if they care.
717
+ 3. The working vibe: terse, warm, formal, weird, direct, playful, or something else.
718
+ 4. Update cadence, boundaries, and anything they do not want you to do.
719
+ 5. Any stable workflow preferences worth remembering.
720
+
721
+ Create, replace, or update \`PREFERENCES.md\` with what you learn. If the user gives you a
722
+ name, vibe, or other identity details for yourself, record those too.
723
+
724
+ \`STATUS.md\`, \`STATUS.html\`, and \`ASYNC.md\` may also already exist from user
725
+ templates. Preserve any seeded structure and keep the files current as you work.
726
+
727
+ Depending on user preferences you might want to update the STATUS.html file to match their landing mode.
728
+
729
+ If there is no \`PREFERENCES.md\` fill out this template with what you learn and save it:
730
+
731
+ \`\`\`
732
+ # User Preferences
733
+
734
+ This file is the manager's durable memory of how the user wants to be worked with. Edit it as you learn \u2014 keep it current.
735
+
736
+ ## Identity
737
+
738
+ - Preferred name: _(fill this out)_
739
+
740
+ ## Workflow
741
+
742
+ - Base branch: main (default) or something else? _(fill this out)_
743
+ - **Delegator workflow**: never do substantive work in the manager thread. Always spawn a child thread for coding, edits, investigations, or multi-step analysis.
744
+ - **Fresh base branch before every spawn**: before every \`bb thread spawn\`, ensure the local base branch (default \`main\`) is current with origin so workers start from the latest base.
745
+
746
+ ## Delivery
747
+ - Ask the user to choose how they want worker output to be delivered:
748
+ - Open PRs (default)
749
+ **or**
750
+ - No PRs \u2014 Ask the user for confirmation before pushing/merging worker branches into a local branch.
751
+ **or**
752
+ - Merge into a local branch (like a staging area) automatically without PRs, and push to origin on user go-ahead.
753
+
754
+ ## Keeping the user updated
755
+ Adjust \`STATUS.html\` to match the chosen mode (see next bullet).
756
+ - **STATUS.html mode**: if the user opens PRs, \`STATUS.html\` 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). Snippet patterns for both modes live in the HTML comment block at the bottom of \`STATUS.html\` \u2014 copy/paste as needed.
757
+ - **STATUS.html refresh**: keep \`STATUS.html\` current with the state of the world
758
+ - after any state-affecting action (worker spawn, branch ready, PR opened, merge, close, push).
759
+ - **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.
760
+ - **STATUS.html styling**: run \`bb guide styling\` for the bb design tokens, fonts, and a starter \`<style>\` snippet so the iframe-rendered HTML matches the rest of the app.
761
+ - Also keep running tasks and any user action items in STATUS.html
762
+
763
+ ## Open questions to resolve when natural
764
+
765
+ - Preferred name / how to address the user
766
+ - Worker defaults (provider / reasoning level / permission mode / preferred model) \u2014 ask the user when it comes up; do not assume a default.
767
+ - Anything else the user wants surfaced in \`STATUS.html\` (extra sections, custom info, integrations) \u2014 ask once when natural and update the template accordingly.
768
+ - Update verbosity preference (terse vs detailed)
769
+ - Any specific area of the codebase that's currently the focus
770
+ \`\`\`
771
+
772
+ When finished you can ask the user if it wants to save these preferences as defaults for future managers. If they say yes save to <dataDir>/manager-templates/default/PREFERENCES.md.`,fileName:"system-message-manager-welcome.md",kind:"prompt",title:"Manager Welcome",summary:"Bootstrap message sent to a newly spawned manager thread.",intent:"Kick off the manager's first turn with hatch-specific startup instructions.",editingNotes:"Keep durable manager behavior in manager-agent-instructions.md. Keep first-turn startup behavior here.",variables:{}},{id:"systemMessageScheduledNudge",body:`[bb system]
628
773
 
629
774
  Scheduled nudge: {{name}}. Check ASYNC.md.`,fileName:"system-message-scheduled-nudge.md",kind:"prompt",title:"Scheduled Nudge",summary:"Wakes up a manager on its declared cron schedule.",intent:"Prompt the manager to read the matching ASYNC.md section and decide if there's real work to do.",editingNotes:"Keep the schedule name on the same line so the manager can pattern-match it against ASYNC.md.",variables:{name:"The schedule name as declared in the manager's ASYNC.md frontmatter."}},{id:"systemMessageThreadOwnershipAssigned",body:`[bb system]
630
775
 
@@ -648,25 +793,25 @@ Git reported: {{errorMessage}}.
648
793
  {{/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}}.
649
794
  {{#if conflictFiles}}
650
795
  Conflicted files: {{conflictFiles}}.
651
- {{/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 o4(e){return Sg.some(t=>t.id===e)}function i4(){let e=Sg.map(t=>{if(!o4(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 bg=i4();var F_=!1;function a4(){if(!F_){for(let e of Object.values(bg))Tg.default.registerPartial(e.id,e.body);F_=!0}}var B_=new Map;function s4(e){let t=B_.get(e);if(t)return t;let r=Tg.default.compile(bg[e].body,{noEscape:!0});return B_.set(e,r),r}function eu(e,t){return a4(),s4(e)(t).trim()}var L_={threads:"bbGuideThreads",environments:"bbGuideEnvironments",managers:"bbGuideManagers",providers:"bbGuideProviders",projects:"bbGuideProjects",hosts:"bbGuideHosts",styling:"bbGuideStyling"};function q_(e){e.command("guide [chapter]").description("Show the BB system overview and CLI guide").option("--json","Print machine-readable JSON output").action(C(async(t,r)=>{if(t){let n=L_[t];if(!n){let s=Object.keys(L_).join(", ");throw new Error(`Unknown guide chapter '${t}'. Available: ${s}.`)}let i=eu(n,{});if(A(r,{chapter:t,content:i}))return;console.log(i);return}let o=eu("bbGuideOverview",{});A(r,{overview:o})||console.log(o)}))}var Uw=Bo(Nw(),1),H4={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 Se(e,t){let r=new Uw.default({...H4,head:e.head,colWidths:e.colWidths});for(let n of t)r.push(n);let o=r.toString();return e.trimTrailingWhitespace?o.split(`
796
+ {{/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 f4(e){return xg.some(t=>t.id===e)}function g4(){let e=xg.map(t=>{if(!f4(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 Eg=g4();var Z_=!1;function v4(){if(!Z_){for(let e of Object.values(Eg))Ig.default.registerPartial(e.id,e.body);Z_=!0}}var K_=new Map;function y4(e){let t=K_.get(e);if(t)return t;let r=Ig.default.compile(Eg[e].body,{noEscape:!0});return K_.set(e,r),r}function tu(e,t){return v4(),y4(e)(t).trim()}var G_={threads:"bbGuideThreads",environments:"bbGuideEnvironments",managers:"bbGuideManagers",providers:"bbGuideProviders",projects:"bbGuideProjects",hosts:"bbGuideHosts",styling:"bbGuideStyling",async:"bbGuideAsync"};function Q_(e){e.command("guide [chapter]").description("Show the BB system overview and CLI guide").option("--json","Print machine-readable JSON output").action(C(async(t,r)=>{if(t){let n=G_[t];if(!n){let s=Object.keys(G_).join(", ");throw new Error(`Unknown guide chapter '${t}'. Available: ${s}.`)}let i=tu(n,{});if(A(r,{chapter:t,content:i}))return;console.log(i);return}let o=tu("bbGuideOverview",{});A(r,{overview:o})||console.log(o)}))}var Xw=Bo(Jw(),1),nz={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 Se(e,t){let r=new Xw.default({...nz,head:e.head,colWidths:e.colWidths});for(let n of t)r.push(n);let o=r.toString();return e.trimTrailingWhitespace?o.split(`
652
797
  `).map(n=>n.trimEnd()).join(`
653
- `):o}function Ww(e,t){e.command("host").description("Inspect available hosts").command("list").description("List persistent hosts").option("--json","Print machine-readable JSON output").action(C(async o=>{let n=$(t()),i=await w(n.api.v1.hosts.$get());if(!A(o,i)){if(i.length===0){console.log("No hosts found");return}V4(i)}}))}function V4(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=Se({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 Jh(TE()).status.$get();return t.ok?(yr=(await t.json()).hostId,yr):(yr=null,null)}catch{return yr=null,null}}var Rg=2,$g=3,Hw=4,jg=30,Og=250,Z4=["fast","default"],iu="Permission mode: full, workspace-write, or readonly",Vw="Permission mode: full, workspace-write, or readonly (managed threads deny escalations)";function Ut(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 ie(e)}}function Zw(e){if(e===void 0)return jg;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 Kw(e){if(e===void 0)return Og;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 Gw(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 ${sf(Z4)}.`)}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 Xw(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>",Vw).option("--host <id>","Host ID (defaults to local host)").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=tr(o??n.project),u=s.id;oe(s,"Project","BB_PROJECT_ID",n);let c=rr(n.reasoningLevel),l=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 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},...c?{reasoningLevel:c}:{},...l?{permissionMode:l}:{}}}));A(n,d)||(console.log(`Manager hired: ${d.id}`),Jw(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(C(async(o,n)=>{let i=$(t()),s=tr(o??n.project),u=s.id;oe(s,"Project","BB_PROJECT_ID",n);let c=await w(i.api.v1.threads.$get({query:{projectId:u,type:"manager"}}));if(!A(n,c)){if(c.length===0){console.log("No managers hired");return}Yw(c)}})),r.command("status <id>").description("Show manager status and managed threads").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=o,u=await Qw(i,s),c=await G4(i,u.projectId,s);A(n,{manager:u,managedThreads:c})||(Jw(u),Q4(c))})),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(C(async(o,n)=>{let i=$(t()),s=o,u=await Qw(i,s);if(!n.yes&&!await cn(`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}})),!A(n,{ok:!0,managerId:s})&&console.log(`Manager ${s} deleted`)}))}async function K4(e,t){return w(e.api.v1.threads[":id"].$get({param:{id:t}}))}async function Qw(e,t){let r=await K4(e,t);if(r.type!=="manager")throw new Error(`Thread ${t} is not a manager`);return r}async function G4(e,t,r){return w(e.api.v1.threads.$get({query:{projectId:t,parentThreadId:r}}))}function Jw(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 Yw(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=Se({head:["ID","Status","Title"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function Q4(e){if(console.log("Managed threads:"),e.length===0){console.log(" None");return}Yw(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 eP(e){if(e.path)return{hostId:await J4(e.host),path:e.path,type:"local_path"};throw new Error("Provide --path.")}function X4(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 Y4(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 ez(e){return{isDefault:!0,type:"local_path"}}function tP(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 nP(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(C(async n=>{let i=$(t()),s=await w(i.api.v1.projects.$get());if(A(n,s))return;if(s.length===0){console.log("No projects found");return}let u=await Ee();tz(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(C(async n=>{let i=$(t()),s=await eP({host:n.host,path:n.root}),u=await w(i.api.v1.projects.$post({json:{name:n.name,source:s}}));if(A(n,u))return;console.log(`Project created: ${u.id}`);let c=await Ee();Mg(u,c)})),r.command("show <id>").description("Show project details").option("--json","Print machine-readable JSON output").action(C(async(n,i)=>{let s=$(t()),u=await w(s.api.v1.projects[":id"].$get({param:{id:n}}));if(A(i,u))return;let c=await Ee();Mg(u,c)})),r.command("update <id>").description("Update a project").option("--name <name>","Set the project name").option("--json","Print machine-readable JSON output").action(C(async(n,i)=>{let s=$(t());if(!i.name)throw new Error("No changes requested. Provide --name.");let u={name:i.name},c=await w(s.api.v1.projects[":id"].$patch({param:{id:n},json:u}));if(A(i,c))return;console.log(`Project ${c.id} updated`);let l=await Ee();Mg(c,l)})),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(C(async(n,i)=>{let s=$(t());if(!i.yes&&!await cn(`Delete project ${n} and all its threads?`)){console.log("Aborted.");return}await w(s.api.v1.projects[":id"].$delete({param:{id:n}})),!A(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(C(async(n,i)=>{let s=$(t()),u=await eP({host:i.host,path:i.path}),c=await w(s.api.v1.projects[":id"].sources.$post({param:{id:n},json:u})),l=i.default?await w(s.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:c.id},json:ez(c)})):c;if(A(i,l))return;console.log(`Project source added: ${l.id}`);let p=await Ee();tP(l,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(C(async(n,i,s)=>{let u=$(t()),c=await w(u.api.v1.projects[":id"].$get({param:{id:n}})),l=X4(c,i),p=Y4(l,s),d=await w(u.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:i},json:p}));if(A(s,d))return;console.log(`Project source updated: ${d.id}`);let m=await Ee();tP(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(C(async(n,i,s)=>{let u=$(t());if(!s.yes&&!await cn(`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}})),!A(s,{ok:!0,projectId:n,sourceId:i})&&console.log(`Project source ${i} deleted`)}))}function Mg(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 tz(e,t){let r=e.map(u=>{let c=t?Dh(u.sources,t):void 0;return[u.id,u.name,c?.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=Se({head:["ID","Name","Local Path"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}function rP(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(C(async o=>{let n=$(t()),i=await w(n.api.v1.system.providers.$get({query:{}}));if(!A(o,i)){if(i.length===0){console.log("No providers available");return}rz(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.system["execution-options"].$get({query:{...o?{providerId:o}:{}}})),u=nz({models:s.models,selectedOnlyModels:s.selectedOnlyModels,selectedModel:n.selectedModel});if(!A(n,u)){if(u.length===0){console.log("No models available");return}oz(u,o)}}))}function nz(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 rz(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=Se({head:["ID","Name"],colWidths:[r,o]},t);console.log(""),console.log(n),console.log("")}function oz(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=Se({head:["Model","Name","Default"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}var oP=1;function iz(e){if(e===void 0)return oP;let t=Number(e),r=un.safeParse(t);if(!r.success)throw new Error("Replay speed must be one of: 0.5, 1, 2, 5, 10");return r.data}function az(e){return new Date(e).toISOString()}var sz="http://localhost:5173/development-only/replay";function uz(e){if(e.length===0){console.log("No replay captures found.");return}console.log(Se({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),az(t.capturedAt)])))}function cz(e){console.log(`Replay thread: ${e.replayThreadId}`),console.log(`Project: ${e.projectId}`),console.log(`Command: ${e.commandId}`)}function iP(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(C(async o=>{let n=$(t()),i=await w(n.api.v1["development-only"].replay.captures.$get());A(o,i)||uz(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(oP)).action(C(async(o,n)=>{let i=$(t()),s=iz(n.speed),u=await w(i.api.v1["development-only"].replay.captures[":id"].runs.$post({param:{id:o},json:{speed:s}}));A(n,u)||cz(u)})),r.command("delete <captureId>").description("Delete a dev replay capture").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1["development-only"].replay.captures[":id"].$delete({param:{id:o}}));A(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(C(async o=>{let n={url:sz};A(o,n)||console.log(n.url)}))}async function lz(e){try{return await w(e.client.api.v1.hosts[":id"].$get({param:{id:e.hostId}}))}catch{return null}}async function au(e){try{let[t,r]=await Promise.all([w(e.client.api.v1.environments[":id"].$get({param:{id:e.environmentId}})),Ee()]),o=await lz({client:e.client,hostId:t.hostId}),n=t.hostId===r;return{display:xf({environment:t,isLocalHost:n,hostName:o?.name}),hostId:t.hostId,hostName:o?.name??null,isLocalHost:n}}catch{return null}}function su(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 uu(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 dz={in_progress:"[>]",pending:"[ ]",completed:"[x]"},aP={in_progress:0,pending:1,completed:2};function pz(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 cu(e){if(!e||e.items.length===0)return;let t=pz(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)=>aP[n.status]-aP[i.status]);for(let n of o)console.log(` ${dz[n.status]} ${n.text}`)}async function zg(e){try{return await e()}catch{return null}}function mz(e){return zg(()=>w(e.client.api.v1.projects[":id"].$get({param:{id:e.projectId}})))}function hz(e){return zg(()=>w(e.client.api.v1.threads[":id"].$get({param:{id:e.threadId}})))}function fz(e){return zg(()=>w(e.client.api.v1.threads.$get({query:{projectId:e.projectId,parentThreadId:e.parentThreadId}})))}function sP(e,t){e.command("status").description("Show current context").option("--json","Print machine-readable JSON output").action(C(async r=>{let o=ds(),n={project:null,thread:null,managedThreads:null,pendingTodos:null},i=!1;if(o.projectId||o.threadId){let s=$(t()),[u,c]=await Promise.all([o.projectId?mz({client:s,projectId:o.projectId}):Promise.resolve(null),o.threadId?hz({client:s,threadId:o.threadId}):Promise.resolve(null)]);if(u&&(n.project={id:u.id,name:u.name},i=!0),c){let l=null;if(c.environmentId&&(l=await au({client:s,environmentId:c.environmentId})),n.pendingTodos=await uu({client:s,threadId:c.id}),n.thread={id:c.id,type:c.type,status:c.status,title:c.title??null,parentThreadId:c.parentThreadId??null,environment:l},i=!0,c.type==="manager"){let p=await fz({client:s,projectId:c.projectId,parentThreadId:c.id});p&&(n.managedThreads=p.map(d=>({id:d.id,status:d.status,title:d.title??null})))}}}if(!A(r,n)){if(i&&n.project?console.log(`Project: ${n.project.name} (${n.project.id})`):o.projectId?console.log(`Project: ${o.projectId}`):console.log("Project: (not set)"),console.log(""),i&&n.thread){if(console.log(`Thread: ${n.thread.id}`),console.log(` Type: ${n.thread.type}`),console.log(` Status: ${n.thread.status}`),n.thread.title&&console.log(` Title: ${n.thread.title}`),n.thread.parentThreadId&&console.log(` Parent: ${n.thread.parentThreadId}`),n.thread.environment&&su(n.thread.environment),n.managedThreads&&n.managedThreads.length>0){console.log(""),console.log(`Managed threads: ${n.managedThreads.length}`);for(let s of n.managedThreads){let u=s.title?`"${s.title}"`:"";console.log(` ${s.id} ${s.status} ${u}`)}}cu(n.pendingTodos)}else o.threadId?console.log(`Thread: ${o.threadId}`):console.log("Thread: (not set)");!o.projectId&&!o.threadId&&(console.log(""),console.log("Tip: run bb guide for help getting started."))}}))}function uP(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(C(async(r,o)=>{let n=$(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=nr(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}));A(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(C(async(r,o)=>{let n=nr(r,o),i=$(t());try{await w(i.api.v1.threads[":id"].archive.$post({param:{id:n}}))}catch(s){throw gt(`Failed to archive thread ${n}`,s)}A(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(C(async(r,o)=>{let n=$(t()),i=nr(r,o);await w(n.api.v1.threads[":id"].unarchive.$post({param:{id:i}})),!A(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(C(async(r,o)=>{let n=$(t());try{let i=await w(n.api.v1.threads[":id"].$get({param:{id:r}}));if(!o.yes&&!await cn(`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 gt(`Failed to delete thread ${r}`,i)}A(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>",iu).option("--mode <mode>","Message mode (e.g. steer)").action(C(async(r,o,n)=>{let i=await gz({getUrl:t,threadId:r,message:o,mode:yz(n.mode),model:n.model,permissionMode:Sr(n.permissionMode),reasoningLevel:rr(n.reasoningLevel),senderThreadId:vz(r)});A(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(C(async(r,o)=>{let n=$(t()),i=nr(r,o),s=await w(n.api.v1.threads[":id"].$get({param:{id:i}})),u=Sz(i,s.status);if(u)throw new Error(u);await w(n.api.v1.threads[":id"].stop.$post({param:{id:i}})),!A(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} stopped`)}))}async function gz(e){let t=$(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 vz(e){let t=tt();if(!(!t||t===e))return t}function yz(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 Sz(e,t){switch(t){case"created":case"provisioning":case"active":return;case"idle":return`Thread ${e} is already idle.`;case"error":return`Thread ${e} is in status error. Do not stop it to force idle; inspect it with 'bb thread show ${e}' and recover by sending a follow-up.`;default:return ie(t)}}function bz(e){if(e===void 0)return"session";if(e==="turn"||e==="session")return e;throw new Error("Invalid --scope. Expected 'turn' or 'session'.")}function $o(e){if(Oa(e.payload))return"question";if(!ft(e.payload))return ie(e.payload);switch(e.payload.subject.kind){case"command":return"command";case"file_change":return"file-change";case"permission_grant":return"permission";default:return ie(e.payload.subject)}}function Tz(e){return ft(e.payload)&&(e.resolution===null||Ba(e.resolution))}function dP(e){return Oa(e.payload)&&(e.resolution===null||Jm(e.resolution))}function Bg(e){if(Tz(e))return e;throw new Error(`Interaction ${e.id} is ${$o(e)} and cannot be resolved with this command.`)}function xz(e){if(dP(e))return e;throw new Error(`Interaction ${e.id} is ${$o(e)} and cannot be answered with this command.`)}function Ez(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=>Df({question:t,value:i})),...r.freeText?[r.freeText]:[]];console.log(` ${t.shortLabel??t.prompt}: ${n.join(", ")}`)}}}function Iz(e){switch(e.payload.subject.kind){case"command":case"file_change":for(let t of Ef(e))console.log(` ${t}`);break;case"permission_grant":e.payload.subject.toolName&&console.log(` Tool: ${e.payload.subject.toolName}`),Dz(e.payload.subject.permissions);break;default:ie(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 Dz(e){let t=ln(e);if(t.length!==0){console.log(" Permissions:");for(let r of t)console.log(` - ${r}`)}}function _z(e){if(console.log(`Interaction: ${e.id}`),console.log(` Thread: ${e.threadId}`),console.log(` Kind: ${$o(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"),dP(e)){Ez(e);return}Iz(Bg(e))}async function pP(e){let t=$(e.getUrl());return w(t.api.v1.threads[":id"].interactions[":interactionId"].$get({param:{id:e.threadId,interactionId:e.interactionId}}))}function cP(e,t=[]){return[...t,e]}function wz(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 Pz({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 kz({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 Cz(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 Az(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 Rz({choiceValues:e,interaction:t,textValues:r}){let o=xz(t),n=new Map(o.payload.questions.map(s=>[s.id,s])),i={};for(let s of e){let u=wz({rawValue:s}),c=Pz({entry:u,interaction:o,questionById:n}),l=n.get(c);if(!l)throw new Error(`Answer references unknown question '${c}'.`);let p=i[c]??{selected:[]};Cz(l,p,u.value),p.selected=[...p.selected,u.value],i[c]=p}for(let s of r){let u=kz({interaction:o,questionById:n,rawValue:s}),c=n.get(u.questionId);if(!c)throw new Error(`Answer references unknown question '${u.questionId}'.`);let l=i[u.questionId]??{selected:[]};l.freeText=Az(c,l,u.value),i[u.questionId]=l}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 lu(e){let t=await pP({getUrl:e.getUrl,interactionId:e.interactionId,threadId:e.threadId}),r=e.buildResolution(t),o=$(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 gt(`Failed to ${e.failureAction} interaction ${e.interactionId}`,i)});if(e.json){A({json:e.json},n);return}console.log(e.successMessage({interaction:t,resolution:r,updated:n}))}function $z(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 lP(e,t){let r=Bg(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=$z(r,t);return vs(r,o)}function jz(e,t){let r=Bg(e);if(r.payload.subject.kind!=="permission_grant")throw new Error(`Interaction ${e.id} is ${$o(e)} and cannot be granted with this command.`);return vs(r,t==="session"?"allow_for_session":"allow_once")}function Oz(e){if(!Ba(e))throw new Error("Expected an approval resolution");return If(e.decision)}function Fg(e){let t=e.updated.resolution??e.resolution,r=Oz(t);return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (${r}); delivering to provider`:`Interaction ${e.interactionId} ${r}`}function Mz(e){return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (answered); delivering to provider`:`Interaction ${e.interactionId} answered`}function mP(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(C(async(o,n)=>{let i=Ue(o,n),s=$(t());oe(i,"Thread","BB_THREAD_ID",n);let u=await w(s.api.v1.threads[":id"].interactions.$get({param:{id:i.id}}));if(A(n,u))return;if(u.length===0){console.log("No interactions found");return}let c=Se({head:["ID","Kind","Status","Summary"],colWidths:[20,12,12,70],trimTrailingWhitespace:!0},u.map(l=>[l.id,$o(l),l.status,_f({interaction:l,surface:"cli"})]));console.log(""),console.log(c),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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i);let u=await pP({getUrl:t,interactionId:o,threadId:s.id});A(i,u)||_z(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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await lu({buildResolution:u=>lP(u,"approve"),failureAction:"approve",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:c})=>Fg({interactionId:o,resolution:u,updated:c})})})),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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i);let u=bz(i.scope);await lu({buildResolution:c=>jz(c,u),failureAction:"grant",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:c,updated:l})=>Fg({interactionId:o,resolution:c,updated:l})})})),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",cP,[]).option("--text <questionId=text>","Provide a free-text answer",cP,[]).action(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await lu({buildResolution:u=>Rz({choiceValues:i.choice??[],interaction:u,textValues:i.text??[]}),failureAction:"answer",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({updated:u})=>Mz({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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await lu({buildResolution:u=>lP(u,"deny"),failureAction:"deny",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:c})=>Fg({interactionId:o,resolution:u,updated:c})})}))}function hP(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(C(async r=>{let o=$(t()),n=tr(r.project);oe(n,"Project","BB_PROJECT_ID",r);let i=n.id,s=tt(r.parentThread),u={projectId:i,...s?{parentThreadId:s}:{},...r.archived?{archived:"true"}:{}},c=await w(o.api.v1.threads.$get({query:u}));if(!A(r,c)){if(c.length===0){console.log("No threads found");return}zz(c)}}))}function zz(e){let t=e.map(s=>[s.id,s.projectId,s.archivedAt!==null?`${Ut(s.status)} (archived)`:Ut(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=Se({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 fP(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 fP(t);case"full":return t}}function Fz(e){return(e??"").toLowerCase().replaceAll(/[^a-z0-9]/gu,"")}function Bz(e){let t=e.diff;if(!t)return!1;for(let r of t.split(`
654
- `))if(!(r.startsWith("+++ ")||r.startsWith("--- "))&&(r.startsWith("+")||r.startsWith("-")))return!0;return!1}function Tr(e){if(e.movePath)return Bz(e)?"edited":"renamed";let t=Fz(e.kind);return t.includes("add")||t.includes("create")?"created":t.includes("delete")||t.includes("remove")?"deleted":"edited"}function gP(e){switch(e){case"created":return"Created";case"deleted":return"Deleted";case"renamed":return"Renamed";case"edited":return"Edited"}}function Lg(e){switch(e){case"created":return"Creating";case"deleted":return"Deleting";case"renamed":return"Renaming";case"edited":return"Editing"}}function vP(e){switch(e){case"created":return"create";case"deleted":return"delete";case"renamed":return"rename";case"edited":return"edit"}}function qg({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 jo(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`:Lz(t)}function Lz(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 qz=new Intl.NumberFormat("en-US");function Ng(e){return qz.format(e)}function Ug(e){let{added:t,removed:r,hideZero:o=!1}=e,n=`+${Ng(t)}`,i=`-${Ng(r)}`;if(!o)return`${n} ${i}`;let s=[];return t>0&&s.push(n),r>0&&s.push(i),s.join(" ")}function Nz(e){return e.activityIntents.find(t=>t.type!=="unknown")??null}function Ie(e){return Nz(e)!==null}function Uz(e){return e.path??e.name}function Wz(e,t){return br({path:Uz(e),mode:t})}function yP({intent:e,pathMode:t,pending:r}){return Hz(du({intent:e,pathMode:t,pending:r}))}function du({intent:e,pathMode:t,pending:r}){return Vz({intent:e,pathMode:t,pending:r})}function Hz({content:e,prefix:t}){return t?`${t} ${e}`:e}function Vz({intent:e,pathMode:t,pending:r}){switch(e.type){case"read":return{prefix:r?"Reading":"Read",content:Wz(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 Oo(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 Zz(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function Kz(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 SP(e,t,r,o){for(let n of e.activityIntents)switch(n.type){case"read":{let i=Kz(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 pu(e){return e.change.movePath??e.change.path}function Gz(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,c=new Set,l=new Set;for(let p of e)switch(p.workKind){case"command":Ie(p)?SP(p,n,i,o):n.commands+=1;break;case"tool":Ie(p)?SP(p,n,i,o):n.tools+=1;break;case"file-change":switch(Tr(p.change)){case"created":s.add(pu(p));break;case"deleted":u.add(pu(p));break;case"edited":c.add(pu(p));break;case"renamed":l.add(pu(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=c.size,n.renamedFiles=l.size,n.fileChanges=n.createdFiles+n.deletedFiles+n.editedFiles+n.renamedFiles,n}function Qz(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 B(r)}}).filter(r=>r!==null);return t.length===0?null:t.join(", ")}function Jz(e){let t=null,r=0,o=0,n=0;for(let u of e){let c;switch(u.workKind){case"command":if(u.approvalStatus===null)return null;c=u.approvalStatus,r+=1;break;case"file-change":if(u.approvalStatus===null)return null;c=u.approvalStatus,o+=1;break;case"tool":if(u.approvalStatus===null)return null;c=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=c;else if(t!==c)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(u=>u!==null).join(", ");return t==="denied"?`Denied ${s}`:`Waiting for approval on ${s}`}function Xz(e){switch(e.workKind){case"command":return Ie(e)?"exploration":"commands";case"tool":return Ie(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 Yz(e){let t=[];for(let r of e){let o=Xz(r);o&&!t.includes(o)&&t.push(o)}return t}var eF={created:"Creating",deleted:"Deleting",edited:"Editing",renamed:"Renaming"},tF={created:"Created",deleted:"Deleted",edited:"Edited",renamed:"Renamed"};function EP(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?eF[i]:tF[i]} ${se(s,"file")}`}let o=r.reduce((i,s)=>i+s.count,0);return`${t?"Editing":"Edited"} ${se(o,"file")}`}function nF(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 EP(t,!1);case"webResearch":return IP(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 B(e)}}function rF(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 EP(t,!0);case"webResearch":return IP(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 B(e)}}function oF(e){return e.map((t,r)=>r===0?t:Zz(t)).join(", ")}function IP(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 mu(e,t={active:!1}){let r=Jz(e.children);if(r!==null)return bP(r);let o=Gz(e.children),n=t.active,i=Qz(o),s=Yz(e.children).map(u=>n?rF(u,o,i):nF(u,o,i)).filter(u=>u!==null);return s.length===0?{verb:n?"Working":"Worked",rest:""}:bP(oF(s))}function Wg(e,t={active:!1}){let{verb:r,rest:o}=mu(e,t);return o.length===0?r:`${r} ${o}`}function bP(e){let t=e.indexOf(" ");return t===-1?{verb:e,rest:""}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function iF(e,t){return e==="error"||t==="error"?"error":e==="pending"||t==="pending"?"pending":e==="interrupted"||t==="interrupted"?"interrupted":"completed"}function DP(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 c of e)r=Math.min(r,c.sourceSeqStart),o=Math.max(o,c.sourceSeqEnd),n=Math.min(n,c.startedAt),i=Math.max(i,c.createdAt),u=iF(u,c.status),s!==c.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 aF(e){return e.kind==="work"&&e.workKind!=="approval"&&e.workKind!=="question"}function _P(e){return!(e.kind!=="conversation"||e.role==="user"&&e.turnRequest.status==="pending")}function sF(e){switch(e.workKind){case"command":case"tool":return Ie(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 wP(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=Ie(o),i=[];for(let s of o.activityIntents){if(s.type==="unknown"){i.push(s);continue}let u=Oo(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 uF(e){let t=wP(e);return{...DP(t),kind:"step-summary",children:t}}function cF(e){let t=wP(e);return{...DP(t),kind:"bundle-summary",children:t}}function TP(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[uF(e)]}function xP(e){if(e.length===0)return[];let t=[];for(let o of e){let n=sF(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(cF(o.rows));return r}function PP(){return new WeakMap}function lF(e,t){if(e.workKind!=="delegation")return e;let r=e.status!=="pending";return{...e,childRows:Mo(e.childRows,{cache:t,closedScope:r})}}function dF(e,t){switch(e.kind){case"conversation":case"system":return e;case"work":return lF(e,t);case"turn":return{...e,children:e.children?Mo(e.children,{cache:t,closedScope:!0}):null};default:return B(e)}}function Mo(e,t={}){let r=t.cache;if(r){let u=r.get(e);if(u)return u}let o=r??PP(),n=e.map(u=>dF(u,o)),i=[],s=[];for(let u of n){if(aF(u)){s.push(u);continue}if(_P(u)){i.push(...TP(s)),s=[],i.push(u);continue}i.push(...xP(s)),s=[],i.push(u)}return t.closedScope?i.push(...TP(s)):i.push(...xP(s)),r&&r.set(e,i),i}function Hg(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 kP(e){return e.replace(/[\r\n]+/gu," ")}function E(e,t={}){return{text:kP(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText!==void 0?{plainText:kP(t.plainText)}:{},...t.link!==void 0?{link:t.link}:{}}}function Q(e){return e.filter(t=>t!==null)}function AP(e){return e!==null&&e>1e3?e:null}function Wt(e,t,r={}){if(t!==null){let o=t-e;if(AP(o)===null)return null}return{kind:"duration",startedAt:e,completedAt:t,em:r.em??!1}}function pF(e,t){return t===null?null:{kind:"duration",startedAt:e,completedAt:t,em:!0}}function Ae(e,t){return{kind:"status",status:e,durationMs:AP(t)}}function mF(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 hu(e){let{added:t,removed:r}=e.diffStats;return t===0&&r===0?null:{kind:"diff-stats",added:t,removed:r}}function RP(e){switch(e.kind){case"duration":return e.completedAt===null?"":`(${jo(e.completedAt-e.startedAt)})`;case"status":return e.durationMs!==null?`(${jo(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 Ug({added:e.added,removed:e.removed,hideZero:!0});default:return B(e)}}function $P(e,t){let r=e.map(n=>n.plainText??n.text).filter(n=>n.length>0).join(" "),o=t.map(RP).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:$P(e,t)}}function Vg({approvalStatus:e,status:t}){return e==="waiting_for_approval"?"waiting":e==="denied"?"denied":t}function hF(e){let t=fF(e);if(t!==null)return t;let r=Vg({approvalStatus:e.approvalStatus,status:e.status}),o=e.workKind==="command",n=o?e.command:Hg(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:Q([Wt(e.startedAt,e.completedAt)])});case"pending":return M({segments:[E(o?"Running":"Running tool:",{shimmer:!0}),E(n,{em:!0,truncate:!0})],decorations:Q([Wt(e.startedAt,e.completedAt)])});case"completed":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[Ae("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:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(r)}}function fF(e){if(!Ie(e))return null;let t=e.activityIntents.filter(l=>l.type!=="unknown");if(t.length!==1)return null;let r=t[0];if(!r)return null;let o=Vg({approvalStatus:e.approvalStatus,status:e.status}),n=o==="pending",i=du({intent:r,pathMode:"compact",pending:n}),s=du({intent:r,pathMode:"full",pending:n});if(o==="denied"){let l=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return M({segments:[E("Permission denied:"),E(l,{em:!0,truncate:!0,plainText:p})]})}if(o==="waiting"){let l=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(l,{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 c=o==="error"?[Ae("error",null)]:o==="interrupted"?[Ae("interrupted",null)]:[];return M({segments:u,decorations:c})}function gF(e){let t=Vg({approvalStatus:e.approvalStatus,status:e.status}),r=Tr(e.change),o=qg({change:e.change,mode:"compact"}),n=qg({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:Q([hu(e.change)]),action:i});case"denied":return M({segments:[E("Permission denied:"),s],decorations:Q([hu(e.change)]),action:i});case"pending":return M({segments:[E(Lg(r),{shimmer:!0}),s],decorations:Q([hu(e.change)]),action:i});case"completed":return M({segments:[E(gP(r)),s],decorations:Q([hu(e.change)]),action:i});case"error":return M({segments:[E(`Failed to ${vP(r)}`),s],decorations:[Ae("error",null)],action:i});case"interrupted":return M({segments:[E(`Interrupted while ${Lg(r).toLowerCase()}`),s],action:i});default:return B(t)}}function vF(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:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Ran web search:"),r],decorations:[Ae("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted web search:"),r],decorations:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(e.status)}}function yF(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:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Fetched:"),t],decorations:[Ae("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted fetch:"),t],decorations:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return B(e.status)}}function SF(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 bF(e){let t=e.description??(e.output.trim()||e.toolName),r=SF(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:Q([Wt(e.startedAt,e.completedAt)])})}function TF(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 xF(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:Q([E(t!==null?"Permission grant interrupted:":"Permission grant interrupted"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});case"expired":return M({segments:Q([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 EF(e){switch(e.approvalKind){case"file-edit":return TF(e);case"permission-grant":return xF(e);default:return B(e)}}function IF(e){return e.questions[0]?.prompt??null}function DF(e){let t=IF(e),r=t?E(t,{em:!0,truncate:!0}):null;switch(e.lifecycle){case"pending":return M({segments:Q([E("Waiting for answer",{shimmer:!0}),r])});case"resolving":return M({segments:Q([E("Delivering answer",{shimmer:!0}),r])});case"answered":return M({segments:Q([E("Answered"),r])});case"interrupted":return M({segments:Q([E("Asked"),r]),decorations:[Ae("interrupted",null)]});case"expired":return M({segments:Q([E("Asked"),r]),decorations:[Ae("expired",null)]});default:return B(e.lifecycle)}}function _F(e,t){let r=(()=>{switch(e.workKind){case"command":case"tool":return hF(e);case"file-change":return gF(e);case"web-search":return vF(e);case"web-fetch":return yF(e);case"delegation":return bF(e);case"approval":return EF(e);case"question":return DF(e);default:return B(e)}})();return t.workStyle==="default"||r.tone==="destructive"?r:{...r,tone:"summary"}}function wF(e,t){let r=e.kind==="bundle-summary"&&t.isActiveLatestBundle===!0,{verb:o,rest:n}=mu(e,{active:r}),i=Q([mF(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 PF(e){let t=e.status==="pending",r=t?Wt(e.startedAt,e.completedAt,{em:!0}):pF(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 CP(e,t){return e===null?null:E(t??e,{em:!0,truncate:!0,link:{kind:"thread",threadId:e}})}function kF(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 CF(e){let t=e.managerAssignment,r=CP(t.previousManagerThreadId,t.previousManagerThreadTitle),o=CP(t.nextManagerThreadId,t.nextManagerThreadTitle),n=e.status==="pending",i=kF(e.status),s=(()=>{switch(t.action){case"assign":return Q([E(i.assign,{shimmer:n}),o]);case"release":return Q([E(i.release,{shimmer:n}),r]);case"transfer":return Q([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[Ae("error",null)];case"interrupted":return[Ae("interrupted",null)];case"pending":case"completed":return[];default:return B(e.status)}})();return M({segments:s,decorations:u,tone:e.status==="error"?"destructive":"default"})}function AF(e){let t=e.systemKind==="error"||e.status==="error";if(e.systemKind==="operation"&&e.operationKind==="manager-assignment")return CF(e);let r=e.systemKind==="operation"&&e.operationKind==="compaction",o=r&&(e.status==="pending"||e.status==="completed")?Q([Wt(e.startedAt,e.completedAt)]):[],n=r&&e.status==="pending"?`${e.title}\u2026`:e.title;return M({segments:[E(n,{em:t,shimmer:e.status==="pending",truncate:!0})],decorations:o,tone:t?"destructive":"default"})}function RF(e){return M({segments:[E(e.role==="user"?"User":"Assistant",{em:!1})]})}function $F(e){return e.kind==="conversation"&&e.role==="user"}function jP(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t];if(r&&!$F(r))return r}return null}function fu(e){let t=jP(e);return t?.kind==="bundle-summary"?t.id:null}function gu(e,t){switch(e.kind){case"conversation":return RF(e);case"system":return AF(e);case"work":return _F(e,t);case"bundle-summary":case"step-summary":return wF(e,t);case"turn":return PF(e);default:return B(e)}}var jF={summaryStyle:"bundle",workStyle:"default"};function BP(e,t){return{...jF,isActiveLatestBundle:e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId}}var OP=3,Zg=100;function Et(e,t){return t?`\x1B[2m${e}\x1B[22m`:e}function OF(e,t){return t?`\x1B[32m${e}\x1B[39m`:e}function Kg(e,t){return t?`\x1B[33m${e}\x1B[39m`:e}function LP(e,t){return t?`\x1B[31m${e}\x1B[39m`:e}function MF(e,t){return t?`\x1B[36m${e}\x1B[39m`:e}function zF(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 it(e,t){return t.depth===0?zF(e,t.color):Et(`\u2500\u2500 ${e}`,t.color)}function Gg(e,t){return{...e,depth:e.depth+1,activeLatestBundleId:t?fu(t):null}}function Ht(e,t){return e.split(`
798
+ `):o}function Yw(e,t){e.command("host").description("Inspect available hosts").command("list").description("List persistent hosts").option("--json","Print machine-readable JSON output").action(C(async o=>{let n=$(t()),i=await w(n.api.v1.hosts.$get());if(!A(o,i)){if(i.length===0){console.log("No hosts found");return}rz(i)}}))}function rz(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=Se({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 Xh(DE()).status.$get();return t.ok?(yr=(await t.json()).hostId,yr):(yr=null,null)}catch{return yr=null,null}}var Og=2,Mg=3,eP=4,zg=30,Fg=250,oz=["fast","default"],au="Permission mode: full, workspace-write, or readonly",tP="Permission mode: full, workspace-write, or readonly (managed threads deny escalations)";function Ut(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 ie(e)}}function nP(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 rP(e){if(e===void 0)return Fg;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 oP(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 ${lf(oz)}.`)}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 sP(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>",tP).option("--host <id>","Host ID (defaults to local host)").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=tr(o??n.project),u=s.id;oe(s,"Project","BB_PROJECT_ID",n);let c=rr(n.reasoningLevel),l=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 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},...c?{reasoningLevel:c}:{},...l?{permissionMode:l}:{}}}));A(n,d)||(console.log(`Manager hired: ${d.id}`),aP(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(C(async(o,n)=>{let i=$(t()),s=tr(o??n.project),u=s.id;oe(s,"Project","BB_PROJECT_ID",n);let c=await w(i.api.v1.threads.$get({query:{projectId:u,type:"manager"}}));if(!A(n,c)){if(c.length===0){console.log("No managers hired");return}uP(c)}})),r.command("status <id>").description("Show manager status and managed threads").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=o,u=await iP(i,s),c=await az(i,u.projectId,s);A(n,{manager:u,managedThreads:c})||(aP(u),sz(c))})),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(C(async(o,n)=>{let i=$(t()),s=o,u=await iP(i,s);if(!n.yes&&!await cn(`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}})),!A(n,{ok:!0,managerId:s})&&console.log(`Manager ${s} deleted`)}))}async function iz(e,t){return w(e.api.v1.threads[":id"].$get({param:{id:t}}))}async function iP(e,t){let r=await iz(e,t);if(r.type!=="manager")throw new Error(`Thread ${t} is not a manager`);return r}async function az(e,t,r){return w(e.api.v1.threads.$get({query:{projectId:t,parentThreadId:r}}))}function aP(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 uP(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=Se({head:["ID","Status","Title"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function sz(e){if(console.log("Managed threads:"),e.length===0){console.log(" None");return}uP(e)}async function uz(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 cP(e){if(e.path)return{hostId:await uz(e.host),path:e.path,type:"local_path"};throw new Error("Provide --path.")}function cz(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 lz(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 dz(e){return{isDefault:!0,type:"local_path"}}function lP(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 dP(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(C(async n=>{let i=$(t()),s=await w(i.api.v1.projects.$get());if(A(n,s))return;if(s.length===0){console.log("No projects found");return}let u=await Ee();pz(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(C(async n=>{let i=$(t()),s=await cP({host:n.host,path:n.root}),u=await w(i.api.v1.projects.$post({json:{name:n.name,source:s}}));if(A(n,u))return;console.log(`Project created: ${u.id}`);let c=await Ee();Lg(u,c)})),r.command("show <id>").description("Show project details").option("--json","Print machine-readable JSON output").action(C(async(n,i)=>{let s=$(t()),u=await w(s.api.v1.projects[":id"].$get({param:{id:n}}));if(A(i,u))return;let c=await Ee();Lg(u,c)})),r.command("update <id>").description("Update a project").option("--name <name>","Set the project name").option("--json","Print machine-readable JSON output").action(C(async(n,i)=>{let s=$(t());if(!i.name)throw new Error("No changes requested. Provide --name.");let u={name:i.name},c=await w(s.api.v1.projects[":id"].$patch({param:{id:n},json:u}));if(A(i,c))return;console.log(`Project ${c.id} updated`);let l=await Ee();Lg(c,l)})),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(C(async(n,i)=>{let s=$(t());if(!i.yes&&!await cn(`Delete project ${n} and all its threads?`)){console.log("Aborted.");return}await w(s.api.v1.projects[":id"].$delete({param:{id:n}})),!A(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(C(async(n,i)=>{let s=$(t()),u=await cP({host:i.host,path:i.path}),c=await w(s.api.v1.projects[":id"].sources.$post({param:{id:n},json:u})),l=i.default?await w(s.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:c.id},json:dz(c)})):c;if(A(i,l))return;console.log(`Project source added: ${l.id}`);let p=await Ee();lP(l,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(C(async(n,i,s)=>{let u=$(t()),c=await w(u.api.v1.projects[":id"].$get({param:{id:n}})),l=cz(c,i),p=lz(l,s),d=await w(u.api.v1.projects[":id"].sources[":sourceId"].$patch({param:{id:n,sourceId:i},json:p}));if(A(s,d))return;console.log(`Project source updated: ${d.id}`);let m=await Ee();lP(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(C(async(n,i,s)=>{let u=$(t());if(!s.yes&&!await cn(`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}})),!A(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 pz(e,t){let r=e.map(u=>{let c=t?_h(u.sources,t):void 0;return[u.id,u.name,c?.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=Se({head:["ID","Name","Local Path"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}function pP(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(C(async o=>{let n=$(t()),i=await w(n.api.v1.system.providers.$get({query:{}}));if(!A(o,i)){if(i.length===0){console.log("No providers available");return}hz(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(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1.system["execution-options"].$get({query:{...o?{providerId:o}:{}}})),u=mz({models:s.models,selectedOnlyModels:s.selectedOnlyModels,selectedModel:n.selectedModel});if(!A(n,u)){if(u.length===0){console.log("No models available");return}fz(u,o)}}))}function mz(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 hz(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=Se({head:["ID","Name"],colWidths:[r,o]},t);console.log(""),console.log(n),console.log("")}function fz(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=Se({head:["Model","Name","Default"],colWidths:[o,n,i],trimTrailingWhitespace:!0},r);console.log(""),console.log(s),console.log("")}var mP=1;function gz(e){if(e===void 0)return mP;let t=Number(e),r=un.safeParse(t);if(!r.success)throw new Error("Replay speed must be one of: 0.5, 1, 2, 5, 10");return r.data}function vz(e){return new Date(e).toISOString()}var yz="http://localhost:5173/development-only/replay";function Sz(e){if(e.length===0){console.log("No replay captures found.");return}console.log(Se({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),vz(t.capturedAt)])))}function bz(e){console.log(`Replay thread: ${e.replayThreadId}`),console.log(`Project: ${e.projectId}`),console.log(`Command: ${e.commandId}`)}function hP(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(C(async o=>{let n=$(t()),i=await w(n.api.v1["development-only"].replay.captures.$get());A(o,i)||Sz(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(mP)).action(C(async(o,n)=>{let i=$(t()),s=gz(n.speed),u=await w(i.api.v1["development-only"].replay.captures[":id"].runs.$post({param:{id:o},json:{speed:s}}));A(n,u)||bz(u)})),r.command("delete <captureId>").description("Delete a dev replay capture").option("--json","Print machine-readable JSON output").action(C(async(o,n)=>{let i=$(t()),s=await w(i.api.v1["development-only"].replay.captures[":id"].$delete({param:{id:o}}));A(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(C(async o=>{let n={url:yz};A(o,n)||console.log(n.url)}))}async function Tz(e){try{return await w(e.client.api.v1.hosts[":id"].$get({param:{id:e.hostId}}))}catch{return null}}async function su(e){try{let[t,r]=await Promise.all([w(e.client.api.v1.environments[":id"].$get({param:{id:e.environmentId}})),Ee()]),o=await Tz({client:e.client,hostId:t.hostId}),n=t.hostId===r;return{display:Df({environment:t,isLocalHost:n,hostName:o?.name}),hostId:t.hostId,hostName:o?.name??null,isLocalHost:n}}catch{return null}}function uu(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 cu(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 xz={in_progress:"[>]",pending:"[ ]",completed:"[x]"},fP={in_progress:0,pending:1,completed:2};function Ez(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 lu(e){if(!e||e.items.length===0)return;let t=Ez(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)=>fP[n.status]-fP[i.status]);for(let n of o)console.log(` ${xz[n.status]} ${n.text}`)}async function Bg(e){try{return await e()}catch{return null}}function Iz(e){return Bg(()=>w(e.client.api.v1.projects[":id"].$get({param:{id:e.projectId}})))}function Dz(e){return Bg(()=>w(e.client.api.v1.threads[":id"].$get({param:{id:e.threadId}})))}function _z(e){return Bg(()=>w(e.client.api.v1.threads.$get({query:{projectId:e.projectId,parentThreadId:e.parentThreadId}})))}function gP(e,t){e.command("status").description("Show current context").option("--json","Print machine-readable JSON output").action(C(async r=>{let o=ps(),n={project:null,thread:null,managedThreads:null,pendingTodos:null},i=!1;if(o.projectId||o.threadId){let s=$(t()),[u,c]=await Promise.all([o.projectId?Iz({client:s,projectId:o.projectId}):Promise.resolve(null),o.threadId?Dz({client:s,threadId:o.threadId}):Promise.resolve(null)]);if(u&&(n.project={id:u.id,name:u.name},i=!0),c){let l=null;if(c.environmentId&&(l=await su({client:s,environmentId:c.environmentId})),n.pendingTodos=await cu({client:s,threadId:c.id}),n.thread={id:c.id,type:c.type,status:c.status,title:c.title??null,parentThreadId:c.parentThreadId??null,environment:l},i=!0,c.type==="manager"){let p=await _z({client:s,projectId:c.projectId,parentThreadId:c.id});p&&(n.managedThreads=p.map(d=>({id:d.id,status:d.status,title:d.title??null})))}}}if(!A(r,n)){if(i&&n.project?console.log(`Project: ${n.project.name} (${n.project.id})`):o.projectId?console.log(`Project: ${o.projectId}`):console.log("Project: (not set)"),console.log(""),i&&n.thread){if(console.log(`Thread: ${n.thread.id}`),console.log(` Type: ${n.thread.type}`),console.log(` Status: ${n.thread.status}`),n.thread.title&&console.log(` Title: ${n.thread.title}`),n.thread.parentThreadId&&console.log(` Parent: ${n.thread.parentThreadId}`),n.thread.environment&&uu(n.thread.environment),n.managedThreads&&n.managedThreads.length>0){console.log(""),console.log(`Managed threads: ${n.managedThreads.length}`);for(let s of n.managedThreads){let u=s.title?`"${s.title}"`:"";console.log(` ${s.id} ${s.status} ${u}`)}}lu(n.pendingTodos)}else o.threadId?console.log(`Thread: ${o.threadId}`):console.log("Thread: (not set)");!o.projectId&&!o.threadId&&(console.log(""),console.log("Tip: run bb guide for help getting started."))}}))}function vP(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(C(async(r,o)=>{let n=$(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=nr(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}));A(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(C(async(r,o)=>{let n=nr(r,o),i=$(t());try{await w(i.api.v1.threads[":id"].archive.$post({param:{id:n}}))}catch(s){throw gt(`Failed to archive thread ${n}`,s)}A(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(C(async(r,o)=>{let n=$(t()),i=nr(r,o);await w(n.api.v1.threads[":id"].unarchive.$post({param:{id:i}})),!A(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(C(async(r,o)=>{let n=$(t());try{let i=await w(n.api.v1.threads[":id"].$get({param:{id:r}}));if(!o.yes&&!await cn(`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 gt(`Failed to delete thread ${r}`,i)}A(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>",au).option("--mode <mode>","Message mode (e.g. steer)").action(C(async(r,o,n)=>{let i=await wz({getUrl:t,threadId:r,message:o,mode:kz(n.mode),model:n.model,permissionMode:Sr(n.permissionMode),reasoningLevel:rr(n.reasoningLevel),senderThreadId:Pz(r)});A(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(C(async(r,o)=>{let n=$(t()),i=nr(r,o),s=await w(n.api.v1.threads[":id"].$get({param:{id:i}})),u=Cz(i,s.status);if(u)throw new Error(u);await w(n.api.v1.threads[":id"].stop.$post({param:{id:i}})),!A(o,{ok:!0,threadId:i})&&console.log(`Thread ${i} stopped`)}))}async function wz(e){let t=$(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 Pz(e){let t=tt();if(!(!t||t===e))return t}function kz(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 Cz(e,t){switch(t){case"created":case"provisioning":case"active":return;case"idle":return`Thread ${e} is already idle.`;case"error":return`Thread ${e} is in status error. Do not stop it to force idle; inspect it with 'bb thread show ${e}' and recover by sending a follow-up.`;default:return ie(t)}}function Az(e){if(e===void 0)return"session";if(e==="turn"||e==="session")return e;throw new Error("Invalid --scope. Expected 'turn' or 'session'.")}function jo(e){if(Ma(e.payload))return"question";if(!ft(e.payload))return ie(e.payload);switch(e.payload.subject.kind){case"command":return"command";case"file_change":return"file-change";case"permission_grant":return"permission";default:return ie(e.payload.subject)}}function Rz(e){return ft(e.payload)&&(e.resolution===null||Ba(e.resolution))}function bP(e){return Ma(e.payload)&&(e.resolution===null||Xm(e.resolution))}function Ng(e){if(Rz(e))return e;throw new Error(`Interaction ${e.id} is ${jo(e)} and cannot be resolved with this command.`)}function $z(e){if(bP(e))return e;throw new Error(`Interaction ${e.id} is ${jo(e)} and cannot be answered with this command.`)}function jz(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=>Pf({question:t,value:i})),...r.freeText?[r.freeText]:[]];console.log(` ${t.shortLabel??t.prompt}: ${n.join(", ")}`)}}}function Oz(e){switch(e.payload.subject.kind){case"command":case"file_change":for(let t of _f(e))console.log(` ${t}`);break;case"permission_grant":e.payload.subject.toolName&&console.log(` Tool: ${e.payload.subject.toolName}`),Mz(e.payload.subject.permissions);break;default:ie(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 Mz(e){let t=ln(e);if(t.length!==0){console.log(" Permissions:");for(let r of t)console.log(` - ${r}`)}}function zz(e){if(console.log(`Interaction: ${e.id}`),console.log(` Thread: ${e.threadId}`),console.log(` Kind: ${jo(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"),bP(e)){jz(e);return}Oz(Ng(e))}async function TP(e){let t=$(e.getUrl());return w(t.api.v1.threads[":id"].interactions[":interactionId"].$get({param:{id:e.threadId,interactionId:e.interactionId}}))}function yP(e,t=[]){return[...t,e]}function Fz(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 Lz({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 Bz({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 qz(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 Nz(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 Uz({choiceValues:e,interaction:t,textValues:r}){let o=$z(t),n=new Map(o.payload.questions.map(s=>[s.id,s])),i={};for(let s of e){let u=Fz({rawValue:s}),c=Lz({entry:u,interaction:o,questionById:n}),l=n.get(c);if(!l)throw new Error(`Answer references unknown question '${c}'.`);let p=i[c]??{selected:[]};qz(l,p,u.value),p.selected=[...p.selected,u.value],i[c]=p}for(let s of r){let u=Bz({interaction:o,questionById:n,rawValue:s}),c=n.get(u.questionId);if(!c)throw new Error(`Answer references unknown question '${u.questionId}'.`);let l=i[u.questionId]??{selected:[]};l.freeText=Nz(c,l,u.value),i[u.questionId]=l}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 du(e){let t=await TP({getUrl:e.getUrl,interactionId:e.interactionId,threadId:e.threadId}),r=e.buildResolution(t),o=$(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 gt(`Failed to ${e.failureAction} interaction ${e.interactionId}`,i)});if(e.json){A({json:e.json},n);return}console.log(e.successMessage({interaction:t,resolution:r,updated:n}))}function Wz(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 SP(e,t){let r=Ng(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=Wz(r,t);return ys(r,o)}function Hz(e,t){let r=Ng(e);if(r.payload.subject.kind!=="permission_grant")throw new Error(`Interaction ${e.id} is ${jo(e)} and cannot be granted with this command.`);return ys(r,t==="session"?"allow_for_session":"allow_once")}function Vz(e){if(!Ba(e))throw new Error("Expected an approval resolution");return wf(e.decision)}function qg(e){let t=e.updated.resolution??e.resolution,r=Vz(t);return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (${r}); delivering to provider`:`Interaction ${e.interactionId} ${r}`}function Zz(e){return e.updated.status==="resolving"?`Interaction ${e.interactionId} submitted (answered); delivering to provider`:`Interaction ${e.interactionId} answered`}function xP(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(C(async(o,n)=>{let i=Ue(o,n),s=$(t());oe(i,"Thread","BB_THREAD_ID",n);let u=await w(s.api.v1.threads[":id"].interactions.$get({param:{id:i.id}}));if(A(n,u))return;if(u.length===0){console.log("No interactions found");return}let c=Se({head:["ID","Kind","Status","Summary"],colWidths:[20,12,12,70],trimTrailingWhitespace:!0},u.map(l=>[l.id,jo(l),l.status,kf({interaction:l,surface:"cli"})]));console.log(""),console.log(c),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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i);let u=await TP({getUrl:t,interactionId:o,threadId:s.id});A(i,u)||zz(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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await du({buildResolution:u=>SP(u,"approve"),failureAction:"approve",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:c})=>qg({interactionId:o,resolution:u,updated:c})})})),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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i);let u=Az(i.scope);await du({buildResolution:c=>Hz(c,u),failureAction:"grant",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:c,updated:l})=>qg({interactionId:o,resolution:c,updated:l})})})),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",yP,[]).option("--text <questionId=text>","Provide a free-text answer",yP,[]).action(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await du({buildResolution:u=>Uz({choiceValues:i.choice??[],interaction:u,textValues:i.text??[]}),failureAction:"answer",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({updated:u})=>Zz({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(C(async(o,n,i)=>{let s=Ue(n,i);oe(s,"Thread","BB_THREAD_ID",i),await du({buildResolution:u=>SP(u,"deny"),failureAction:"deny",getUrl:t,interactionId:o,json:i.json,threadId:s.id,successMessage:({resolution:u,updated:c})=>qg({interactionId:o,resolution:u,updated:c})})}))}function EP(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(C(async r=>{let o=$(t()),n=tr(r.project);oe(n,"Project","BB_PROJECT_ID",r);let i=n.id,s=tt(r.parentThread),u={projectId:i,...s?{parentThreadId:s}:{},...r.archived?{archived:"true"}:{}},c=await w(o.api.v1.threads.$get({query:u}));if(!A(r,c)){if(c.length===0){console.log("No threads found");return}Kz(c)}}))}function Kz(e){let t=e.map(s=>[s.id,s.projectId,s.archivedAt!==null?`${Ut(s.status)} (archived)`:Ut(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=Se({head:["ID","Project","Status"],colWidths:[r,o,n]},t);console.log(""),console.log(i),console.log("")}function L(e,t){throw new Error(t??`Unexpected value: ${String(e)}`)}function IP(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 IP(t);case"full":return t}}function Gz(e){return(e??"").toLowerCase().replaceAll(/[^a-z0-9]/gu,"")}function Qz(e){let t=e.diff;if(!t)return!1;for(let r of t.split(`
799
+ `))if(!(r.startsWith("+++ ")||r.startsWith("--- "))&&(r.startsWith("+")||r.startsWith("-")))return!0;return!1}function Tr(e){if(e.movePath)return Qz(e)?"edited":"renamed";let t=Gz(e.kind);return t.includes("add")||t.includes("create")?"created":t.includes("delete")||t.includes("remove")?"deleted":"edited"}function DP(e){switch(e){case"created":return"Created";case"deleted":return"Deleted";case"renamed":return"Renamed";case"edited":return"Edited"}}function Ug(e){switch(e){case"created":return"Creating";case"deleted":return"Deleting";case"renamed":return"Renaming";case"edited":return"Editing"}}function _P(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=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 Oo(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`:Jz(t)}function Jz(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 Xz=new Intl.NumberFormat("en-US");function Hg(e){return Xz.format(e)}function Vg(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 Yz(e){return e.activityIntents.find(t=>t.type!=="unknown")??null}function Ie(e){return Yz(e)!==null}function eF(e){return e.path??e.name}function tF(e,t){return br({path:eF(e),mode:t})}function wP({intent:e,pathMode:t,pending:r}){return nF(pu({intent:e,pathMode:t,pending:r}))}function pu({intent:e,pathMode:t,pending:r}){return rF({intent:e,pathMode:t,pending:r})}function nF({content:e,prefix:t}){return t?`${t} ${e}`:e}function rF({intent:e,pathMode:t,pending:r}){switch(e.type){case"read":return{prefix:r?"Reading":"Read",content:tF(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 L(e)}}function Mo(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 L(e)}}function oF(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function iF(e){switch(e.type){case"read":return e.path??e.name;case"list_files":case"search":case"unknown":return null;default:return L(e)}}function PP(e,t,r,o){for(let n of e.activityIntents)switch(n.type){case"read":{let i=iF(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:L(n)}}function mu(e){return e.change.movePath??e.change.path}function aF(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,c=new Set,l=new Set;for(let p of e)switch(p.workKind){case"command":Ie(p)?PP(p,n,i,o):n.commands+=1;break;case"tool":Ie(p)?PP(p,n,i,o):n.tools+=1;break;case"file-change":switch(Tr(p.change)){case"created":s.add(mu(p));break;case"deleted":u.add(mu(p));break;case"edited":c.add(mu(p));break;case"renamed":l.add(mu(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:L(p)}return n.files=i.size,n.createdFiles=s.size,n.deletedFiles=u.size,n.editedFiles=c.size,n.renamedFiles=l.size,n.fileChanges=n.createdFiles+n.deletedFiles+n.editedFiles+n.renamedFiles,n}function sF(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 L(r)}}).filter(r=>r!==null);return t.length===0?null:t.join(", ")}function uF(e){let t=null,r=0,o=0,n=0;for(let u of e){let c;switch(u.workKind){case"command":if(u.approvalStatus===null)return null;c=u.approvalStatus,r+=1;break;case"file-change":if(u.approvalStatus===null)return null;c=u.approvalStatus,o+=1;break;case"tool":if(u.approvalStatus===null)return null;c=u.approvalStatus,n+=1;break;case"approval":case"question":case"delegation":case"web-fetch":case"web-search":return null;default:L(u)}if(t===null)t=c;else if(t!==c)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(u=>u!==null).join(", ");return t==="denied"?`Denied ${s}`:`Waiting for approval on ${s}`}function cF(e){switch(e.workKind){case"command":return Ie(e)?"exploration":"commands";case"tool":return Ie(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 L(e)}}function lF(e){let t=[];for(let r of e){let o=cF(r);o&&!t.includes(o)&&t.push(o)}return t}var dF={created:"Creating",deleted:"Deleting",edited:"Editing",renamed:"Renaming"},pF={created:"Created",deleted:"Deleted",edited:"Edited",renamed:"Renamed"};function RP(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?dF[i]:pF[i]} ${se(s,"file")}`}let o=r.reduce((i,s)=>i+s.count,0);return`${t?"Editing":"Edited"} ${se(o,"file")}`}function mF(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 RP(t,!1);case"webResearch":return $P(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 L(e)}}function hF(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 RP(t,!0);case"webResearch":return $P(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 L(e)}}function fF(e){return e.map((t,r)=>r===0?t:oF(t)).join(", ")}function $P(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 hu(e,t={active:!1}){let r=uF(e.children);if(r!==null)return kP(r);let o=aF(e.children),n=t.active,i=sF(o),s=lF(e.children).map(u=>n?hF(u,o,i):mF(u,o,i)).filter(u=>u!==null);return s.length===0?{verb:n?"Working":"Worked",rest:""}:kP(fF(s))}function Zg(e,t={active:!1}){let{verb:r,rest:o}=hu(e,t);return o.length===0?r:`${r} ${o}`}function kP(e){let t=e.indexOf(" ");return t===-1?{verb:e,rest:""}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function gF(e,t){return e==="error"||t==="error"?"error":e==="pending"||t==="pending"?"pending":e==="interrupted"||t==="interrupted"?"interrupted":"completed"}function jP(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 c of e)r=Math.min(r,c.sourceSeqStart),o=Math.max(o,c.sourceSeqEnd),n=Math.min(n,c.startedAt),i=Math.max(i,c.createdAt),u=gF(u,c.status),s!==c.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 vF(e){return e.kind==="work"&&e.workKind!=="approval"&&e.workKind!=="question"}function OP(e){return!(e.kind!=="conversation"||e.role==="user"&&e.turnRequest.status==="pending")}function yF(e){switch(e.workKind){case"command":case"tool":return Ie(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 L(e)}}function MP(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=Ie(o),i=[];for(let s of o.activityIntents){if(s.type==="unknown"){i.push(s);continue}let u=Mo(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 SF(e){let t=MP(e);return{...jP(t),kind:"step-summary",children:t}}function bF(e){let t=MP(e);return{...jP(t),kind:"bundle-summary",children:t}}function CP(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[SF(e)]}function AP(e){if(e.length===0)return[];let t=[];for(let o of e){let n=yF(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(bF(o.rows));return r}function zP(){return new WeakMap}function TF(e,t){if(e.workKind!=="delegation")return e;let r=e.status!=="pending";return{...e,childRows:zo(e.childRows,{cache:t,closedScope:r})}}function xF(e,t){switch(e.kind){case"conversation":case"system":return e;case"work":return TF(e,t);case"turn":return{...e,children:e.children?zo(e.children,{cache:t,closedScope:!0}):null};default:return L(e)}}function zo(e,t={}){let r=t.cache;if(r){let u=r.get(e);if(u)return u}let o=r??zP(),n=e.map(u=>xF(u,o)),i=[],s=[];for(let u of n){if(vF(u)){s.push(u);continue}if(OP(u)){i.push(...CP(s)),s=[],i.push(u);continue}i.push(...AP(s)),s=[],i.push(u)}return t.closedScope?i.push(...CP(s)):i.push(...AP(s)),r&&r.set(e,i),i}function Kg(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 FP(e){return e.replace(/[\r\n]+/gu," ")}function E(e,t={}){return{text:FP(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText!==void 0?{plainText:FP(t.plainText)}:{},...t.link!==void 0?{link:t.link}:{}}}function Q(e){return e.filter(t=>t!==null)}function BP(e){return e!==null&&e>1e3?e:null}function Wt(e,t,r={}){if(t!==null){let o=t-e;if(BP(o)===null)return null}return{kind:"duration",startedAt:e,completedAt:t,em:r.em??!1}}function EF(e,t){return t===null?null:{kind:"duration",startedAt:e,completedAt:t,em:!0}}function Ae(e,t){return{kind:"status",status:e,durationMs:BP(t)}}function IF(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 fu(e){let{added:t,removed:r}=e.diffStats;return t===0&&r===0?null:{kind:"diff-stats",added:t,removed:r}}function qP(e){switch(e.kind){case"duration":return e.completedAt===null?"":`(${Oo(e.completedAt-e.startedAt)})`;case"status":return e.durationMs!==null?`(${Oo(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 Vg({added:e.added,removed:e.removed,hideZero:!0});default:return L(e)}}function NP(e,t){let r=e.map(n=>n.plainText??n.text).filter(n=>n.length>0).join(" "),o=t.map(qP).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:NP(e,t)}}function Gg({approvalStatus:e,status:t}){return e==="waiting_for_approval"?"waiting":e==="denied"?"denied":t}function DF(e){let t=_F(e);if(t!==null)return t;let r=Gg({approvalStatus:e.approvalStatus,status:e.status}),o=e.workKind==="command",n=o?e.command:Kg(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:Q([Wt(e.startedAt,e.completedAt)])});case"pending":return M({segments:[E(o?"Running":"Running tool:",{shimmer:!0}),E(n,{em:!0,truncate:!0})],decorations:Q([Wt(e.startedAt,e.completedAt)])});case"completed":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E(o?"Ran":"Ran tool:"),E(n,{em:!0,truncate:!0})],decorations:[Ae("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:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return L(r)}}function _F(e){if(!Ie(e))return null;let t=e.activityIntents.filter(l=>l.type!=="unknown");if(t.length!==1)return null;let r=t[0];if(!r)return null;let o=Gg({approvalStatus:e.approvalStatus,status:e.status}),n=o==="pending",i=pu({intent:r,pathMode:"compact",pending:n}),s=pu({intent:r,pathMode:"full",pending:n});if(o==="denied"){let l=i.prefix?`${i.prefix} ${i.content}`:i.content,p=s.prefix?`${s.prefix} ${s.content}`:s.content;return M({segments:[E("Permission denied:"),E(l,{em:!0,truncate:!0,plainText:p})]})}if(o==="waiting"){let l=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(l,{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 c=o==="error"?[Ae("error",null)]:o==="interrupted"?[Ae("interrupted",null)]:[];return M({segments:u,decorations:c})}function wF(e){let t=Gg({approvalStatus:e.approvalStatus,status:e.status}),r=Tr(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:Q([fu(e.change)]),action:i});case"denied":return M({segments:[E("Permission denied:"),s],decorations:Q([fu(e.change)]),action:i});case"pending":return M({segments:[E(Ug(r),{shimmer:!0}),s],decorations:Q([fu(e.change)]),action:i});case"completed":return M({segments:[E(DP(r)),s],decorations:Q([fu(e.change)]),action:i});case"error":return M({segments:[E(`Failed to ${_P(r)}`),s],decorations:[Ae("error",null)],action:i});case"interrupted":return M({segments:[E(`Interrupted while ${Ug(r).toLowerCase()}`),s],action:i});default:return L(t)}}function PF(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:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Ran web search:"),r],decorations:[Ae("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted web search:"),r],decorations:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return L(e.status)}}function kF(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:Q([Wt(e.startedAt,e.completedAt)])});case"error":return M({segments:[E("Fetched:"),t],decorations:[Ae("error",e.completedAt!==null?e.completedAt-e.startedAt:null)]});case"interrupted":return M({segments:[E("Interrupted fetch:"),t],decorations:[Ae("interrupted",e.completedAt!==null?e.completedAt-e.startedAt:null)]});default:return L(e.status)}}function CF(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 L(e)}}function AF(e){let t=e.description??(e.output.trim()||e.toolName),r=CF(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:Q([Wt(e.startedAt,e.completedAt)])})}function RF(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 L(e.lifecycle)}}function $F(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:Q([E(t!==null?"Permission grant interrupted:":"Permission grant interrupted"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});case"expired":return M({segments:Q([E(t!==null?"Permission grant expired:":"Permission grant expired"),t!==null?E(t,{em:!0,truncate:!0}):null,o])});default:return L(e.lifecycle)}}function jF(e){switch(e.approvalKind){case"file-edit":return RF(e);case"permission-grant":return $F(e);default:return L(e)}}function OF(e){return e.questions[0]?.prompt??null}function MF(e){let t=OF(e),r=t?E(t,{em:!0,truncate:!0}):null;switch(e.lifecycle){case"pending":return M({segments:Q([E("Waiting for answer",{shimmer:!0}),r])});case"resolving":return M({segments:Q([E("Delivering answer",{shimmer:!0}),r])});case"answered":return M({segments:Q([E("Answered"),r])});case"interrupted":return M({segments:Q([E("Asked"),r]),decorations:[Ae("interrupted",null)]});case"expired":return M({segments:Q([E("Asked"),r]),decorations:[Ae("expired",null)]});default:return L(e.lifecycle)}}function zF(e,t){let r=(()=>{switch(e.workKind){case"command":case"tool":return DF(e);case"file-change":return wF(e);case"web-search":return PF(e);case"web-fetch":return kF(e);case"delegation":return AF(e);case"approval":return jF(e);case"question":return MF(e);default:return L(e)}})();return t.workStyle==="default"||r.tone==="destructive"?r:{...r,tone:"summary"}}function FF(e,t){let r=e.kind==="bundle-summary"&&t.isActiveLatestBundle===!0,{verb:o,rest:n}=hu(e,{active:r}),i=Q([IF(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 LF(e){let t=e.status==="pending",r=t?Wt(e.startedAt,e.completedAt,{em:!0}):EF(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 LP(e,t){return e===null?null:E(t??e,{em:!0,truncate:!0,link:{kind:"thread",threadId:e}})}function BF(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 L(e)}}function qF(e){let t=e.managerAssignment,r=LP(t.previousManagerThreadId,t.previousManagerThreadTitle),o=LP(t.nextManagerThreadId,t.nextManagerThreadTitle),n=e.status==="pending",i=BF(e.status),s=(()=>{switch(t.action){case"assign":return Q([E(i.assign,{shimmer:n}),o]);case"release":return Q([E(i.release,{shimmer:n}),r]);case"transfer":return Q([E(i.transferFrom,{shimmer:n}),r,o!==null?E(i.transferTo,{shimmer:n}):null,o]);default:return L(t.action)}})(),u=(()=>{switch(e.status){case"error":return[Ae("error",null)];case"interrupted":return[Ae("interrupted",null)];case"pending":case"completed":return[];default:return L(e.status)}})();return M({segments:s,decorations:u,tone:e.status==="error"?"destructive":"default"})}function NF(e){let t=e.systemKind==="error"||e.status==="error";if(e.systemKind==="operation"&&e.operationKind==="manager-assignment")return qF(e);let r=e.systemKind==="operation"&&e.operationKind==="compaction",o=r&&(e.status==="pending"||e.status==="completed")?Q([Wt(e.startedAt,e.completedAt)]):[],n=r&&e.status==="pending"?`${e.title}\u2026`:e.title;return M({segments:[E(n,{em:t,shimmer:e.status==="pending",truncate:!0})],decorations:o,tone:t?"destructive":"default"})}function UF(e){return M({segments:[E(e.role==="user"?"User":"Assistant",{em:!1})]})}function WF(e){return e.kind==="conversation"&&e.role==="user"}function UP(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t];if(r&&!WF(r))return r}return null}function gu(e){let t=UP(e);return t?.kind==="bundle-summary"?t.id:null}function vu(e,t){switch(e.kind){case"conversation":return UF(e);case"system":return NF(e);case"work":return zF(e,t);case"bundle-summary":case"step-summary":return FF(e,t);case"turn":return LF(e);default:return L(e)}}var HF={summaryStyle:"bundle",workStyle:"default"};function KP(e,t){return{...HF,isActiveLatestBundle:e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId}}var WP=3,Qg=100;function Et(e,t){return t?`\x1B[2m${e}\x1B[22m`:e}function VF(e,t){return t?`\x1B[32m${e}\x1B[39m`:e}function Jg(e,t){return t?`\x1B[33m${e}\x1B[39m`:e}function GP(e,t){return t?`\x1B[31m${e}\x1B[39m`:e}function ZF(e,t){return t?`\x1B[36m${e}\x1B[39m`:e}function KF(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 it(e,t){return t.depth===0?KF(e,t.color):Et(`\u2500\u2500 ${e}`,t.color)}function Xg(e,t){return{...e,depth:e.depth+1,activeLatestBundleId:t?gu(t):null}}function Ht(e,t){return e.split(`
655
800
  `).map(r=>r.length===0?"":`${t}${r}`).join(`
656
- `)}function MP(e){return/^\s*/u.exec(e)?.[0].length??0}function FF(e){if(e.length<=Zg)return e;let t=e.length-Zg;return`${e.slice(0,Zg)}... [truncated ${t} chars]`}function BF(e){return`${" ".repeat(e.indent)}... [truncated ${e.skippedLineCount} lines]`}function LF(e,t){let r=e.filter(n=>n.length>0).map(MP);if(r.length>0)return Math.min(...r);let o=t.filter(n=>n.length>0).map(MP);return o.length>0?Math.min(...o):0}function qF(e){let t=e.flatMap(n=>n.split(`
657
- `)),r=t.slice(0,OP).map(FF),o=t.slice(OP);return o.length===0?r:[...r,BF({skippedLineCount:o.length,indent:LF(o,r)})]}function qP(e,t){return t.truncateForAudit?qF(e):[...e]}function NF(e,t){switch(e){case"pending":return Kg("running",t);case"completed":return OF("completed",t);case"error":return LP("error",t);case"interrupted":return Kg("interrupted",t);default:return B(e)}}function zP(e,t){return(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="denied"?LP("denied",t):(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="waiting_for_approval"?Kg("waiting",t):NF(e.status,t)}function NP(e,t){return gu(e,BP(e,t)).plain}function FP(e,t){return Et(Ht(e.trim()," "),t)}function UF(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 WF(e,t){let r=[];switch(e.workKind){case"command":r.push(` $ ${MF(e.command,t.color)}`),t.verbose&&e.output.trim()&&!Ie(e)&&r.push(FP(e.output,t.color));let o=UF(e,t.color);return o&&r.push(o),r;case"tool":return e.approvalStatus!==null&&r.push(` ${zP(e,t.color)}`),t.verbose&&e.output.trim()&&!Ie(e)&&r.push(FP(e.output,t.color)),r;case"file-change":return e.approvalStatus!==null&&r.push(` ${zP(e,t.color)}`),t.verbose&&e.change.diff&&r.push(Et(Ht(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(Ht(Qg(e.childRows,Gg(t,e.childRows))," ")),r;default:return B(e)}}function UP(e,t){let r=[it(NP(e,t),t)],o=WF(e,t);return r.push(...e.workKind==="delegation"?o:qP(o,t)),r.join(`
658
- `)}function HF(e){let t=null,r=[];for(let o of e.activityIntents){if(o.type==="unknown")continue;let n=Oo(o);n!==null&&n===t||(r.push(yP({intent:o,pathMode:"full",pending:e.status==="pending"})),t=n)}return r}function VF(e,t){let r=[],o=Gg(t,null);for(let n of e.children){if((n.workKind==="command"||n.workKind==="tool")&&Ie(n)){r.push(...HF(n).map(i=>it(i,o)));continue}if(n.workKind==="web-search"||n.workKind==="web-fetch"){r.push(it(NP(n,o),o));continue}r.push(UP(n,o))}return r}function ZF(e,t){let r=e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId,o=[it(Wg(e,{active:r}),t)];if(t.verbose||e.kind==="bundle-summary"){let n=VF(e,t);n.length>0&&o.push(Ht(n.join(`
801
+ `)}function HP(e){return/^\s*/u.exec(e)?.[0].length??0}function GF(e){if(e.length<=Qg)return e;let t=e.length-Qg;return`${e.slice(0,Qg)}... [truncated ${t} chars]`}function QF(e){return`${" ".repeat(e.indent)}... [truncated ${e.skippedLineCount} lines]`}function JF(e,t){let r=e.filter(n=>n.length>0).map(HP);if(r.length>0)return Math.min(...r);let o=t.filter(n=>n.length>0).map(HP);return o.length>0?Math.min(...o):0}function XF(e){let t=e.flatMap(n=>n.split(`
802
+ `)),r=t.slice(0,WP).map(GF),o=t.slice(WP);return o.length===0?r:[...r,QF({skippedLineCount:o.length,indent:JF(o,r)})]}function QP(e,t){return t.truncateForAudit?XF(e):[...e]}function YF(e,t){switch(e){case"pending":return Jg("running",t);case"completed":return VF("completed",t);case"error":return GP("error",t);case"interrupted":return Jg("interrupted",t);default:return L(e)}}function VP(e,t){return(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="denied"?GP("denied",t):(e.workKind==="command"||e.workKind==="tool"||e.workKind==="file-change")&&e.approvalStatus==="waiting_for_approval"?Jg("waiting",t):YF(e.status,t)}function JP(e,t){return vu(e,KP(e,t)).plain}function ZP(e,t){return Et(Ht(e.trim()," "),t)}function e6(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 t6(e,t){let r=[];switch(e.workKind){case"command":r.push(` $ ${ZF(e.command,t.color)}`),t.verbose&&e.output.trim()&&!Ie(e)&&r.push(ZP(e.output,t.color));let o=e6(e,t.color);return o&&r.push(o),r;case"tool":return e.approvalStatus!==null&&r.push(` ${VP(e,t.color)}`),t.verbose&&e.output.trim()&&!Ie(e)&&r.push(ZP(e.output,t.color)),r;case"file-change":return e.approvalStatus!==null&&r.push(` ${VP(e,t.color)}`),t.verbose&&e.change.diff&&r.push(Et(Ht(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(Ht(Yg(e.childRows,Xg(t,e.childRows))," ")),r;default:return L(e)}}function XP(e,t){let r=[it(JP(e,t),t)],o=t6(e,t);return r.push(...e.workKind==="delegation"?o:QP(o,t)),r.join(`
803
+ `)}function n6(e){let t=null,r=[];for(let o of e.activityIntents){if(o.type==="unknown")continue;let n=Mo(o);n!==null&&n===t||(r.push(wP({intent:o,pathMode:"full",pending:e.status==="pending"})),t=n)}return r}function r6(e,t){let r=[],o=Xg(t,null);for(let n of e.children){if((n.workKind==="command"||n.workKind==="tool")&&Ie(n)){r.push(...n6(n).map(i=>it(i,o)));continue}if(n.workKind==="web-search"||n.workKind==="web-fetch"){r.push(it(JP(n,o),o));continue}r.push(XP(n,o))}return r}function o6(e,t){let r=e.kind==="bundle-summary"&&e.id===t.activeLatestBundleId,o=[it(Zg(e,{active:r}),t)];if(t.verbose||e.kind==="bundle-summary"){let n=r6(e,t);n.length>0&&o.push(Ht(n.join(`
659
804
  `)," "))}return o.join(`
660
- `)}function KF(e,t){return gu(e,BP(e,t)).plain}function GF(e){return e.role!=="user"||e.turnRequest.kind!=="steer"?null:e.turnRequest.status==="pending"?"steer pending":"steer"}function QF(e,t){switch(e.kind){case"conversation":return[it(e.role==="user"?"User":"Assistant",t),qP(e.text.split(`
805
+ `)}function i6(e,t){return vu(e,KP(e,t)).plain}function a6(e){return e.role!=="user"||e.turnRequest.kind!=="steer"?null:e.turnRequest.status==="pending"?"steer pending":"steer"}function s6(e,t){switch(e.kind){case"conversation":return[it(e.role==="user"?"User":"Assistant",t),QP(e.text.split(`
661
806
  `),t).join(`
662
- `),GF(e)].filter(r=>r!==null).join(`
663
- `);case"work":return UP(e,t);case"system":return e.systemKind==="reconnect"?it(e.title,t):e.systemKind==="error"?[it("Error",t),Et(Ht(e.title," "),t.color),e.detail?Et(Ht(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
807
+ `),a6(e)].filter(r=>r!==null).join(`
808
+ `);case"work":return XP(e,t);case"system":return e.systemKind==="reconnect"?it(e.title,t):e.systemKind==="error"?[it("Error",t),Et(Ht(e.title," "),t.color),e.detail?Et(Ht(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
664
809
  `):[it(e.title,t),e.detail?Et(Ht(e.detail," "),t.color):""].filter(r=>r.length>0).join(`
665
- `);case"bundle-summary":case"step-summary":return ZF(e,t);case"turn":{let r=KF(e,t);return!e.children||e.children.length===0?it(r,t):[it(r,t),Ht(Qg(e.children,Gg(t,null))," ")].join(`
666
- `)}default:return B(e)}}function Qg(e,t){return e.map(r=>QF(r,t)).join(`
810
+ `);case"bundle-summary":case"step-summary":return o6(e,t);case"turn":{let r=i6(e,t);return!e.children||e.children.length===0?it(r,t):[it(r,t),Ht(Yg(e.children,Xg(t,null))," ")].join(`
811
+ `)}default:return L(e)}}function Yg(e,t){return e.map(r=>s6(r,t)).join(`
667
812
 
668
- `)}function Jg(e,t){let r=Mo(e);return Qg(r,{verbose:t?.verbose??!1,color:t?.color??!1,depth:0,truncateForAudit:t?.truncateForAudit??!1,activeLatestBundleId:fu(r)})}var WP=["thread/started","thread/identity","thread/contextWindowUsage/updated","thread/tokenUsage/updated","turn/plan/updated"],_H=new Set(WP);var OK=a.object({content:a.string(),status:a.string()}).passthrough(),MK=a.object({todos:a.array(a.unknown())});async function l6(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 JP(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(C(async(r,o)=>{let n=Ue(r,o),i=$(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let u=await w(i.api.v1.threads[":id"].$get({param:{id:s}})),c={thread:u},l,p=async()=>u.environmentId?(l!==void 0||(l=await w(i.api.v1.environments[":id"].$get({param:{id:u.environmentId}}))),l):null,d=async I=>{let R=await p(),q=I??ah(R);if(!q)throw new Error("Thread environment does not have a merge base branch");return q},m;if(o.workStatus&&u.environmentId){let I=await d();m=await l6({client:i,environmentId:u.environmentId,mergeBaseBranch:I})}let h;if(o.gitDiff&&u.environmentId){let I=(o.diffTarget??"all").trim(),R=(()=>{switch(I){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.")}})(),q=R.target==="branch_committed"||R.target==="all"?{...R,mergeBaseBranch:await d(R.mergeBaseBranch)}:R;h=await w(i.api.v1.environments[":id"].diff.$get({param:{id:u.environmentId},query:q}))}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 au({client:i,environmentId:u.environmentId}):null,P=await uu({client:i,threadId:s});if(o.json){let I={...c,environment:await p(),pendingTodos:P};m!==void 0&&(I.workStatus=m.available?m.status:null),h!==void 0&&(I.gitDiff=h),g!==void 0&&(I.mergeBaseBranches=g),A(o,I);return}if(d6(c,y),cu(P),m!==void 0)if(m.available){let I=m.status;console.log(""),console.log("Work status:"),console.log(` State: ${I.workingTree.state}`),I.branch.currentBranch&&console.log(` Branch: ${I.branch.currentBranch}`),console.log(` Changed files: ${I.workingTree.files.length}`),console.log(` Insertions: +${I.workingTree.insertions}`),console.log(` Deletions: -${I.workingTree.deletions}`),I.mergeBase&&(console.log(` Merge base: ${I.mergeBase.mergeBaseBranch}`),console.log(` Ahead: ${I.mergeBase.aheadCount} Behind: ${I.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:
669
- ${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 I of g)console.log(` ${I}`)}})),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(C(async(r,o)=>{let n=Ue(r,o),i=$(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let u=p6(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 c=await w(i.api.v1.threads[":id"].timeline.$get({param:{id:s},query:u==="verbose"?{includeNestedRows:"true"}:{}})),l=process.stdout.isTTY===!0&&!process.env.NO_COLOR,p=Jg(c.rows,{verbose:u==="verbose",color:l});console.log(p)})),e.command("output <id>").description("Get the final output of a thread").option("--json","Print machine-readable JSON output").action(C(async(r,o)=>{let n=$(t()),i=await w(n.api.v1.threads[":id"].output.$get({param:{id:r}}));A(o,i)||(i.output?console.log(i.output):console.log("(no output)"))}))}function d6(e,t){let{thread:r}=e;console.log(`Thread: ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${Ut(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?su(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 p6(e){if(e.json)return"json";let t=(e.format??"minimal").trim().toLowerCase();return t==="json"?"json":t==="verbose"?"verbose":"minimal"}function m6(e){return e.includes("/")||e.startsWith(".")||e.startsWith("~")}function rv(e){if(!e)throw new Error("Cannot reach local host daemon. Is it running?");return e}function h6(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:rv(e.hostId),workspace:{type:"managed-worktree",baseBranch:n}};throw new Error(`Unknown environment kind '${r}'. Supported: worktree.`)}return t?m6(t)?{type:"host",hostId:rv(e.hostId),workspace:{type:"unmanaged",path:t}}:{type:"reuse",environmentId:t}:{type:"host",hostId:rv(e.hostId),workspace:{type:"unmanaged",path:null}}}function XP(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>",iu).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(C(async r=>{let o=$(t());if(r.parentThread&&r.contextParentThread===!1)throw new Error("Cannot combine --parent-thread with --no-context-parent-thread.");let n=IE(r.project),i=EE(r.environment),s=r.host??null;s||(s=await Ee());let u=h6({environmentValue:i,newEnvironmentKind:r.newEnvironment,hostId:s,baseBranch:r.baseBranch}),c=rr(r.reasoningLevel),l=Gw(r.serviceTier),p=Sr(r.permissionMode),d=r.parentThread??(r.contextParentThread===!1?void 0:tt()),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}],...c?{reasoningLevel:c}:{},...r.title?{title:r.title}:{},...l?{serviceTier:l}:{},...p?{permissionMode:p}:{},environment:u,...d?{parentThreadId:d}:{}}}))}catch(h){throw gt("Failed to create thread",h)}A(r,m)||(console.log(`Thread spawned: ${m.id}`),m.parentThreadId&&m.parentThreadId===tt()&&console.log("You will be notified when this thread is done."),f6(m))}))}function f6(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Project: ${e.projectId}`),console.log(` Status: ${Ut(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 ek(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: ${jg})`).option("--poll-interval <ms>",`Polling interval in milliseconds (default: ${Og})`).option("--json","Print machine-readable JSON output").action(C(async(r,o)=>{let n=$(t()),i=rf(r),s=i.id;oe(i,"Thread","BB_THREAD_ID",o);let u=g6(o),c=Zw(o.timeout),l=Kw(o.pollInterval),p=Date.now()+c*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(A(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} reached status ${u.status}.`);return}let m=v6(s,d.status,u.status);if(m)throw new vt(m,Hw);if(Date.now()>=p)throw new vt(`Timed out waiting for thread ${s} to reach status ${u.status}.`,Rg);await YP(l)}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 vt(`Timed out waiting for thread ${s} event ${u.eventType}.`,Rg);await YP(l);continue}else if(!g.ok){let I=await g.text();throw new Error(`Wait request failed with ${y}: ${I}`)}let P=$h(await g.json());if(A(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} observed event ${u.eventType} at seq ${P.seq}.`);return}}))}function g6(e){let t=!!e.status,r=!!e.event;if(t===r)throw new vt("Provide exactly one of --status or --event.",$g);if(e.status){let o=Jn.safeParse(e.status);if(!o.success)throw new vt(`Invalid thread status '${e.status}'. Expected one of ${sn.join(", ")}.`,$g);return{kind:"status",status:o.data}}return{kind:"event",eventType:e.event??""}}function v6(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 ie(t)}}async function YP(e){await new Promise(t=>setTimeout(t,e))}function tk(e,t){let r=e.command("thread").description("Manage threads");ek(r,t),XP(r,t),hP(r,t),JP(r,t),uP(r,t),mP(r,t)}var Le=new Sv;Le.name("bb").description("BB CLI - manage your AI coding agents").version("0.0.1");Le.addHelpText("after",()=>{let e=ds(),t=e.projectId??"<unset>",r=e.threadId??"<unset>";return`
813
+ `)}function ev(e,t){let r=zo(e);return Yg(r,{verbose:t?.verbose??!1,color:t?.color??!1,depth:0,truncateForAudit:t?.truncateForAudit??!1,activeLatestBundleId:gu(r)})}var YP=["thread/started","thread/identity","thread/contextWindowUsage/updated","thread/tokenUsage/updated","turn/plan/updated"],z7=new Set(YP);var VK=a.object({content:a.string(),status:a.string()}).passthrough(),ZK=a.object({todos:a.array(a.unknown())});async function T6(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 ak(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(C(async(r,o)=>{let n=Ue(r,o),i=$(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let u=await w(i.api.v1.threads[":id"].$get({param:{id:s}})),c={thread:u},l,p=async()=>u.environmentId?(l!==void 0||(l=await w(i.api.v1.environments[":id"].$get({param:{id:u.environmentId}}))),l):null,d=async I=>{let R=await p(),q=I??sh(R);if(!q)throw new Error("Thread environment does not have a merge base branch");return q},m;if(o.workStatus&&u.environmentId){let I=await d();m=await T6({client:i,environmentId:u.environmentId,mergeBaseBranch:I})}let h;if(o.gitDiff&&u.environmentId){let I=(o.diffTarget??"all").trim(),R=(()=>{switch(I){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.")}})(),q=R.target==="branch_committed"||R.target==="all"?{...R,mergeBaseBranch:await d(R.mergeBaseBranch)}:R;h=await w(i.api.v1.environments[":id"].diff.$get({param:{id:u.environmentId},query:q}))}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 su({client:i,environmentId:u.environmentId}):null,P=await cu({client:i,threadId:s});if(o.json){let I={...c,environment:await p(),pendingTodos:P};m!==void 0&&(I.workStatus=m.available?m.status:null),h!==void 0&&(I.gitDiff=h),g!==void 0&&(I.mergeBaseBranches=g),A(o,I);return}if(x6(c,y),lu(P),m!==void 0)if(m.available){let I=m.status;console.log(""),console.log("Work status:"),console.log(` State: ${I.workingTree.state}`),I.branch.currentBranch&&console.log(` Branch: ${I.branch.currentBranch}`),console.log(` Changed files: ${I.workingTree.files.length}`),console.log(` Insertions: +${I.workingTree.insertions}`),console.log(` Deletions: -${I.workingTree.deletions}`),I.mergeBase&&(console.log(` Merge base: ${I.mergeBase.mergeBaseBranch}`),console.log(` Ahead: ${I.mergeBase.aheadCount} Behind: ${I.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:
814
+ ${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 I of g)console.log(` ${I}`)}})),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(C(async(r,o)=>{let n=Ue(r,o),i=$(t()),s=n.id;oe(n,"Thread","BB_THREAD_ID",o);let u=E6(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 c=await w(i.api.v1.threads[":id"].timeline.$get({param:{id:s},query:u==="verbose"?{includeNestedRows:"true"}:{}})),l=process.stdout.isTTY===!0&&!process.env.NO_COLOR,p=ev(c.rows,{verbose:u==="verbose",color:l});console.log(p)})),e.command("output <id>").description("Get the final output of a thread").option("--json","Print machine-readable JSON output").action(C(async(r,o)=>{let n=$(t()),i=await w(n.api.v1.threads[":id"].output.$get({param:{id:r}}));A(o,i)||(i.output?console.log(i.output):console.log("(no output)"))}))}function x6(e,t){let{thread:r}=e;console.log(`Thread: ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${Ut(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?uu(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 E6(e){if(e.json)return"json";let t=(e.format??"minimal").trim().toLowerCase();return t==="json"?"json":t==="verbose"?"verbose":"minimal"}function I6(e){return e.includes("/")||e.startsWith(".")||e.startsWith("~")}function av(e){if(!e)throw new Error("Cannot reach local host daemon. Is it running?");return e}function D6(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:av(e.hostId),workspace:{type:"managed-worktree",baseBranch:n}};throw new Error(`Unknown environment kind '${r}'. Supported: worktree.`)}return t?I6(t)?{type:"host",hostId:av(e.hostId),workspace:{type:"unmanaged",path:t}}:{type:"reuse",environmentId:t}:{type:"host",hostId:av(e.hostId),workspace:{type:"unmanaged",path:null}}}function sk(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>",au).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(C(async r=>{let o=$(t());if(r.parentThread&&r.contextParentThread===!1)throw new Error("Cannot combine --parent-thread with --no-context-parent-thread.");let n=PE(r.project),i=wE(r.environment),s=r.host??null;s||(s=await Ee());let u=D6({environmentValue:i,newEnvironmentKind:r.newEnvironment,hostId:s,baseBranch:r.baseBranch}),c=rr(r.reasoningLevel),l=oP(r.serviceTier),p=Sr(r.permissionMode),d=r.parentThread??(r.contextParentThread===!1?void 0:tt()),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}],...c?{reasoningLevel:c}:{},...r.title?{title:r.title}:{},...l?{serviceTier:l}:{},...p?{permissionMode:p}:{},environment:u,...d?{parentThreadId:d}:{}}}))}catch(h){throw gt("Failed to create thread",h)}A(r,m)||(console.log(`Thread spawned: ${m.id}`),m.parentThreadId&&m.parentThreadId===tt()&&console.log("You will be notified when this thread is done."),_6(m))}))}function _6(e){console.log(""),console.log(` ID: ${e.id}`),console.log(` Project: ${e.projectId}`),console.log(` Status: ${Ut(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 ck(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: ${Fg})`).option("--json","Print machine-readable JSON output").action(C(async(r,o)=>{let n=$(t()),i=sf(r),s=i.id;oe(i,"Thread","BB_THREAD_ID",o);let u=w6(o),c=nP(o.timeout),l=rP(o.pollInterval),p=Date.now()+c*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(A(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} reached status ${u.status}.`);return}let m=P6(s,d.status,u.status);if(m)throw new vt(m,eP);if(Date.now()>=p)throw new vt(`Timed out waiting for thread ${s} to reach status ${u.status}.`,Og);await uk(l)}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 vt(`Timed out waiting for thread ${s} event ${u.eventType}.`,Og);await uk(l);continue}else if(!g.ok){let I=await g.text();throw new Error(`Wait request failed with ${y}: ${I}`)}let P=jh(await g.json());if(A(o,{threadId:s,matched:!0,target:u}))return;console.log(`Thread ${s} observed event ${u.eventType} at seq ${P.seq}.`);return}}))}function w6(e){let t=!!e.status,r=!!e.event;if(t===r)throw new vt("Provide exactly one of --status or --event.",Mg);if(e.status){let o=Jn.safeParse(e.status);if(!o.success)throw new vt(`Invalid thread status '${e.status}'. Expected one of ${sn.join(", ")}.`,Mg);return{kind:"status",status:o.data}}return{kind:"event",eventType:e.event??""}}function P6(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 ie(t)}}async function uk(e){await new Promise(t=>setTimeout(t,e))}function lk(e,t){let r=e.command("thread").description("Manage threads");ck(r,t),sk(r,t),EP(r,t),ak(r,t),vP(r,t),xP(r,t)}var Be=new xv;Be.name("bb").description("BB CLI - manage your AI coding agents").version("0.0.1");Be.addHelpText("after",()=>{let e=ps(),t=e.projectId??"<unset>",r=e.threadId??"<unset>";return`
670
815
 
671
816
  Current context:
672
817
  BB_PROJECT_ID: ${t}
@@ -678,4 +823,4 @@ Quick start:
678
823
  bb project list
679
824
  bb thread show
680
825
  bb thread spawn --provider codex --prompt "..."
681
- `});function Vt(){return bE()}sP(Le,Vt);nP(Le,Vt);Ww(Le,Vt);rP(Le,Vt);Xw(Le,Vt);tk(Le,Vt);iP(Le,Vt);VI(Le,Vt);q_(Le);Le.parseAsync(process.argv).catch(e=>{console.error(e.message),process.exit(1)});
826
+ `});function Vt(){return IE()}gP(Be,Vt);dP(Be,Vt);Yw(Be,Vt);pP(Be,Vt);sP(Be,Vt);lk(Be,Vt);hP(Be,Vt);tD(Be,Vt);Q_(Be);Be.parseAsync(process.argv).catch(e=>{console.error(e.message),process.exit(1)});