openspecui 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (614) hide show
  1. package/dist/cli.mjs +4579 -0
  2. package/dist/index.mjs +3 -0
  3. package/dist/open-CmiqsyCQ.mjs +473 -0
  4. package/dist/src-Bmm_kaB8.mjs +13749 -0
  5. package/package.json +37 -7
  6. package/web/assets/index-BhzIZ_eQ.js +150 -0
  7. package/web/assets/index-D6x5Q1lW.css +1 -0
  8. package/web/dist/assets/abap-BdImnpbu.js +1 -0
  9. package/web/dist/assets/actionscript-3-CfeIJUat.js +1 -0
  10. package/web/dist/assets/ada-bCR0ucgS.js +1 -0
  11. package/web/dist/assets/andromeeda-C-Jbm3Hp.js +1 -0
  12. package/web/dist/assets/angular-html-CU67Zn6k.js +1 -0
  13. package/web/dist/assets/angular-ts-BwZT4LLn.js +1 -0
  14. package/web/dist/assets/apache-Pmp26Uib.js +1 -0
  15. package/web/dist/assets/apex-DDbsPZ6N.js +1 -0
  16. package/web/dist/assets/apl-dKokRX4l.js +1 -0
  17. package/web/dist/assets/applescript-Co6uUVPk.js +1 -0
  18. package/web/dist/assets/ara-BRHolxvo.js +1 -0
  19. package/web/dist/assets/asciidoc-Dv7Oe6Be.js +1 -0
  20. package/web/dist/assets/asm-D_Q5rh1f.js +1 -0
  21. package/web/dist/assets/astro-CbQHKStN.js +1 -0
  22. package/web/dist/assets/aurora-x-D-2ljcwZ.js +1 -0
  23. package/web/dist/assets/awk-DMzUqQB5.js +1 -0
  24. package/web/dist/assets/ayu-dark-Cv9koXgw.js +1 -0
  25. package/web/dist/assets/ballerina-BFfxhgS-.js +1 -0
  26. package/web/dist/assets/bat-BkioyH1T.js +1 -0
  27. package/web/dist/assets/beancount-k_qm7-4y.js +1 -0
  28. package/web/dist/assets/berry-uYugtg8r.js +1 -0
  29. package/web/dist/assets/bibtex-CHM0blh-.js +1 -0
  30. package/web/dist/assets/bicep-Bmn6On1c.js +1 -0
  31. package/web/dist/assets/blade-DVc8C-J4.js +1 -0
  32. package/web/dist/assets/bsl-BO_Y6i37.js +1 -0
  33. package/web/dist/assets/c-BIGW1oBm.js +1 -0
  34. package/web/dist/assets/cadence-Bv_4Rxtq.js +1 -0
  35. package/web/dist/assets/cairo-KRGpt6FW.js +1 -0
  36. package/web/dist/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  37. package/web/dist/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  38. package/web/dist/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  39. package/web/dist/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  40. package/web/dist/assets/clarity-D53aC0YG.js +1 -0
  41. package/web/dist/assets/clojure-P80f7IUj.js +1 -0
  42. package/web/dist/assets/cmake-D1j8_8rp.js +1 -0
  43. package/web/dist/assets/cobol-nwyudZeR.js +1 -0
  44. package/web/dist/assets/codeowners-Bp6g37R7.js +1 -0
  45. package/web/dist/assets/codeql-DsOJ9woJ.js +1 -0
  46. package/web/dist/assets/coffee-Ch7k5sss.js +1 -0
  47. package/web/dist/assets/common-lisp-Cg-RD9OK.js +1 -0
  48. package/web/dist/assets/coq-DkFqJrB1.js +1 -0
  49. package/web/dist/assets/cpp-CofmeUqb.js +1 -0
  50. package/web/dist/assets/crystal-tKQVLTB8.js +1 -0
  51. package/web/dist/assets/csharp-K5feNrxe.js +1 -0
  52. package/web/dist/assets/css-DPfMkruS.js +1 -0
  53. package/web/dist/assets/csv-fuZLfV_i.js +1 -0
  54. package/web/dist/assets/cue-D82EKSYY.js +1 -0
  55. package/web/dist/assets/cypher-COkxafJQ.js +1 -0
  56. package/web/dist/assets/d-85-TOEBH.js +1 -0
  57. package/web/dist/assets/dark-plus-C3mMm8J8.js +1 -0
  58. package/web/dist/assets/dart-CF10PKvl.js +1 -0
  59. package/web/dist/assets/dax-CEL-wOlO.js +1 -0
  60. package/web/dist/assets/desktop-BmXAJ9_W.js +1 -0
  61. package/web/dist/assets/diff-D97Zzqfu.js +1 -0
  62. package/web/dist/assets/docker-BcOcwvcX.js +1 -0
  63. package/web/dist/assets/dotenv-Da5cRb03.js +1 -0
  64. package/web/dist/assets/dracula-BzJJZx-M.js +1 -0
  65. package/web/dist/assets/dracula-soft-BXkSAIEj.js +1 -0
  66. package/web/dist/assets/dream-maker-BtqSS_iP.js +1 -0
  67. package/web/dist/assets/edge-BkV0erSs.js +1 -0
  68. package/web/dist/assets/elixir-CDX3lj18.js +1 -0
  69. package/web/dist/assets/elm-DbKCFpqz.js +1 -0
  70. package/web/dist/assets/emacs-lisp-C9XAeP06.js +1 -0
  71. package/web/dist/assets/erb-BOJIQeun.js +1 -0
  72. package/web/dist/assets/erlang-DsQrWhSR.js +1 -0
  73. package/web/dist/assets/everforest-dark-BgDCqdQA.js +1 -0
  74. package/web/dist/assets/everforest-light-C8M2exoo.js +1 -0
  75. package/web/dist/assets/fennel-BYunw83y.js +1 -0
  76. package/web/dist/assets/fish-BvzEVeQv.js +1 -0
  77. package/web/dist/assets/fluent-C4IJs8-o.js +1 -0
  78. package/web/dist/assets/fortran-fixed-form-BZjJHVRy.js +1 -0
  79. package/web/dist/assets/fortran-free-form-D22FLkUw.js +1 -0
  80. package/web/dist/assets/fsharp-CXgrBDvD.js +1 -0
  81. package/web/dist/assets/gdresource-B7Tvp0Sc.js +1 -0
  82. package/web/dist/assets/gdscript-DTMYz4Jt.js +1 -0
  83. package/web/dist/assets/gdshader-DkwncUOv.js +1 -0
  84. package/web/dist/assets/genie-D0YGMca9.js +1 -0
  85. package/web/dist/assets/gherkin-DyxjwDmM.js +1 -0
  86. package/web/dist/assets/git-commit-F4YmCXRG.js +1 -0
  87. package/web/dist/assets/git-rebase-r7XF79zn.js +1 -0
  88. package/web/dist/assets/github-dark-DHJKELXO.js +1 -0
  89. package/web/dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
  90. package/web/dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  91. package/web/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  92. package/web/dist/assets/github-light-DAi9KRSo.js +1 -0
  93. package/web/dist/assets/github-light-default-D7oLnXFd.js +1 -0
  94. package/web/dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  95. package/web/dist/assets/gleam-BspZqrRM.js +1 -0
  96. package/web/dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
  97. package/web/dist/assets/glimmer-ts-U6CK756n.js +1 -0
  98. package/web/dist/assets/glsl-DplSGwfg.js +1 -0
  99. package/web/dist/assets/gnuplot-DdkO51Og.js +1 -0
  100. package/web/dist/assets/go-Dn2_MT6a.js +1 -0
  101. package/web/dist/assets/graphql-ChdNCCLP.js +1 -0
  102. package/web/dist/assets/groovy-gcz8RCvz.js +1 -0
  103. package/web/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  104. package/web/dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  105. package/web/dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  106. package/web/dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  107. package/web/dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  108. package/web/dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  109. package/web/dist/assets/hack-CaT9iCJl.js +1 -0
  110. package/web/dist/assets/haml-B8DHNrY2.js +1 -0
  111. package/web/dist/assets/handlebars-BL8al0AC.js +1 -0
  112. package/web/dist/assets/haskell-Df6bDoY_.js +1 -0
  113. package/web/dist/assets/haxe-CzTSHFRz.js +1 -0
  114. package/web/dist/assets/hcl-BWvSN4gD.js +1 -0
  115. package/web/dist/assets/hjson-D5-asLiD.js +1 -0
  116. package/web/dist/assets/hlsl-D3lLCCz7.js +1 -0
  117. package/web/dist/assets/houston-DnULxvSX.js +1 -0
  118. package/web/dist/assets/html-GMplVEZG.js +1 -0
  119. package/web/dist/assets/html-derivative-BFtXZ54Q.js +1 -0
  120. package/web/dist/assets/http-jrhK8wxY.js +1 -0
  121. package/web/dist/assets/hurl-irOxFIW8.js +1 -0
  122. package/web/dist/assets/hxml-Bvhsp5Yf.js +1 -0
  123. package/web/dist/assets/hy-DFXneXwc.js +1 -0
  124. package/web/dist/assets/imba-DGztddWO.js +1 -0
  125. package/web/dist/assets/index-BNmb5C1F.css +1 -0
  126. package/web/dist/assets/index-BhzIZ_eQ.js +150 -0
  127. package/web/dist/assets/index-BxBbLX3V.js +170 -0
  128. package/web/dist/assets/index-C4c5ARU5.css +1 -0
  129. package/web/dist/assets/index-CqKOZnDE.css +1 -0
  130. package/web/dist/assets/index-D6x5Q1lW.css +1 -0
  131. package/web/dist/assets/index-Om_P2_SF.js +155 -0
  132. package/web/dist/assets/index-l4gcUD8y.js +382 -0
  133. package/web/dist/assets/ini-BEwlwnbL.js +1 -0
  134. package/web/dist/assets/java-CylS5w8V.js +1 -0
  135. package/web/dist/assets/javascript-wDzz0qaB.js +1 -0
  136. package/web/dist/assets/jinja-4LBKfQ-Z.js +1 -0
  137. package/web/dist/assets/jison-wvAkD_A8.js +1 -0
  138. package/web/dist/assets/json-Cp-IABpG.js +1 -0
  139. package/web/dist/assets/json5-C9tS-k6U.js +1 -0
  140. package/web/dist/assets/jsonc-Des-eS-w.js +1 -0
  141. package/web/dist/assets/jsonl-DcaNXYhu.js +1 -0
  142. package/web/dist/assets/jsonnet-DFQXde-d.js +1 -0
  143. package/web/dist/assets/jssm-C2t-YnRu.js +1 -0
  144. package/web/dist/assets/jsx-g9-lgVsj.js +1 -0
  145. package/web/dist/assets/julia-C8NyazO9.js +1 -0
  146. package/web/dist/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  147. package/web/dist/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  148. package/web/dist/assets/kanagawa-wave-DWedfzmr.js +1 -0
  149. package/web/dist/assets/kdl-DV7GczEv.js +1 -0
  150. package/web/dist/assets/kotlin-BdnUsdx6.js +1 -0
  151. package/web/dist/assets/kusto-BvAqAH-y.js +1 -0
  152. package/web/dist/assets/laserwave-DUszq2jm.js +1 -0
  153. package/web/dist/assets/latex-BdAV_C_H.js +1 -0
  154. package/web/dist/assets/lean-Bc6EcWN3.js +1 -0
  155. package/web/dist/assets/less-B1dDrJ26.js +1 -0
  156. package/web/dist/assets/light-plus-B7mTdjB0.js +1 -0
  157. package/web/dist/assets/liquid-DYVedYrR.js +1 -0
  158. package/web/dist/assets/llvm-BtvRca6l.js +1 -0
  159. package/web/dist/assets/log-2UxHyX5q.js +1 -0
  160. package/web/dist/assets/logo-BtOb2qkB.js +1 -0
  161. package/web/dist/assets/lua-BbnMAYS6.js +1 -0
  162. package/web/dist/assets/luau-CXu1NL6O.js +1 -0
  163. package/web/dist/assets/make-CHLpvVh8.js +1 -0
  164. package/web/dist/assets/markdown-Cvjx9yec.js +1 -0
  165. package/web/dist/assets/marko-CPi9NSCl.js +1 -0
  166. package/web/dist/assets/material-theme-D5KoaKCx.js +1 -0
  167. package/web/dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
  168. package/web/dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  169. package/web/dist/assets/material-theme-ocean-CyktbL80.js +1 -0
  170. package/web/dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  171. package/web/dist/assets/matlab-D7o27uSR.js +1 -0
  172. package/web/dist/assets/mdc-DUICxH0z.js +1 -0
  173. package/web/dist/assets/mdx-Cmh6b_Ma.js +1 -0
  174. package/web/dist/assets/mermaid-DKYwYmdq.js +1 -0
  175. package/web/dist/assets/min-dark-CafNBF8u.js +1 -0
  176. package/web/dist/assets/min-light-CTRr51gU.js +1 -0
  177. package/web/dist/assets/mipsasm-CKIfxQSi.js +1 -0
  178. package/web/dist/assets/mojo-1DNp92w6.js +1 -0
  179. package/web/dist/assets/monokai-D4h5O-jR.js +1 -0
  180. package/web/dist/assets/move-Bu9oaDYs.js +1 -0
  181. package/web/dist/assets/narrat-DRg8JJMk.js +1 -0
  182. package/web/dist/assets/nextflow-BrzmwbiE.js +1 -0
  183. package/web/dist/assets/nginx-DknmC5AR.js +1 -0
  184. package/web/dist/assets/night-owl-C39BiMTA.js +1 -0
  185. package/web/dist/assets/nim-CVrawwO9.js +1 -0
  186. package/web/dist/assets/nix-c8nO5XWb.js +1 -0
  187. package/web/dist/assets/nord-Ddv68eIx.js +1 -0
  188. package/web/dist/assets/nushell-C-sUppwS.js +1 -0
  189. package/web/dist/assets/objective-c-DXmwc3jG.js +1 -0
  190. package/web/dist/assets/objective-cpp-CLxacb5B.js +1 -0
  191. package/web/dist/assets/ocaml-C0hk2d4L.js +1 -0
  192. package/web/dist/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  193. package/web/dist/assets/one-light-PoHY5YXO.js +1 -0
  194. package/web/dist/assets/openscad-C4EeE6gA.js +1 -0
  195. package/web/dist/assets/pascal-D93ZcfNL.js +1 -0
  196. package/web/dist/assets/perl-C0TMdlhV.js +1 -0
  197. package/web/dist/assets/php-CDn_0X-4.js +1 -0
  198. package/web/dist/assets/pkl-u5AG7uiY.js +1 -0
  199. package/web/dist/assets/plastic-3e1v2bzS.js +1 -0
  200. package/web/dist/assets/plsql-ChMvpjG-.js +1 -0
  201. package/web/dist/assets/po-BTJTHyun.js +1 -0
  202. package/web/dist/assets/poimandres-CS3Unz2-.js +1 -0
  203. package/web/dist/assets/polar-C0HS_06l.js +1 -0
  204. package/web/dist/assets/postcss-CXtECtnM.js +1 -0
  205. package/web/dist/assets/powerquery-CEu0bR-o.js +1 -0
  206. package/web/dist/assets/powershell-Dpen1YoG.js +1 -0
  207. package/web/dist/assets/prisma-Dd19v3D-.js +1 -0
  208. package/web/dist/assets/prolog-CbFg5uaA.js +1 -0
  209. package/web/dist/assets/proto-DyJlTyXw.js +1 -0
  210. package/web/dist/assets/pug-CGlum2m_.js +1 -0
  211. package/web/dist/assets/puppet-BMWR74SV.js +1 -0
  212. package/web/dist/assets/purescript-CklMAg4u.js +1 -0
  213. package/web/dist/assets/python-B6aJPvgy.js +1 -0
  214. package/web/dist/assets/qml-3beO22l8.js +1 -0
  215. package/web/dist/assets/qmldir-C8lEn-DE.js +1 -0
  216. package/web/dist/assets/qss-IeuSbFQv.js +1 -0
  217. package/web/dist/assets/r-DiinP2Uv.js +1 -0
  218. package/web/dist/assets/racket-BqYA7rlc.js +1 -0
  219. package/web/dist/assets/raku-DXvB9xmW.js +1 -0
  220. package/web/dist/assets/razor-CE9lU5zL.js +1 -0
  221. package/web/dist/assets/red-bN70gL4F.js +1 -0
  222. package/web/dist/assets/reg-C-SQnVFl.js +1 -0
  223. package/web/dist/assets/regexp-CDVJQ6XC.js +1 -0
  224. package/web/dist/assets/rel-C3B-1QV4.js +1 -0
  225. package/web/dist/assets/riscv-BM1_JUlF.js +1 -0
  226. package/web/dist/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  227. package/web/dist/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  228. package/web/dist/assets/rose-pine-qdsjHGoJ.js +1 -0
  229. package/web/dist/assets/rosmsg-BJDFO7_C.js +1 -0
  230. package/web/dist/assets/rst-B0xPkSld.js +1 -0
  231. package/web/dist/assets/ruby-BvKwtOVI.js +1 -0
  232. package/web/dist/assets/rust-B1yitclQ.js +1 -0
  233. package/web/dist/assets/sas-cz2c8ADy.js +1 -0
  234. package/web/dist/assets/sass-Cj5Yp3dK.js +1 -0
  235. package/web/dist/assets/scala-C151Ov-r.js +1 -0
  236. package/web/dist/assets/scheme-C98Dy4si.js +1 -0
  237. package/web/dist/assets/scss-OYdSNvt2.js +1 -0
  238. package/web/dist/assets/sdbl-DVxCFoDh.js +1 -0
  239. package/web/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
  240. package/web/dist/assets/shellscript-Yzrsuije.js +1 -0
  241. package/web/dist/assets/shellsession-BADoaaVG.js +1 -0
  242. package/web/dist/assets/slack-dark-BthQWCQV.js +1 -0
  243. package/web/dist/assets/slack-ochin-DqwNpetd.js +1 -0
  244. package/web/dist/assets/smalltalk-BERRCDM3.js +1 -0
  245. package/web/dist/assets/snazzy-light-Bw305WKR.js +1 -0
  246. package/web/dist/assets/solarized-dark-DXbdFlpD.js +1 -0
  247. package/web/dist/assets/solarized-light-L9t79GZl.js +1 -0
  248. package/web/dist/assets/solidity-rGO070M0.js +1 -0
  249. package/web/dist/assets/soy-Brmx7dQM.js +1 -0
  250. package/web/dist/assets/sparql-rVzFXLq3.js +1 -0
  251. package/web/dist/assets/splunk-BtCnVYZw.js +1 -0
  252. package/web/dist/assets/sql-BLtJtn59.js +1 -0
  253. package/web/dist/assets/ssh-config-_ykCGR6B.js +1 -0
  254. package/web/dist/assets/stata-BH5u7GGu.js +1 -0
  255. package/web/dist/assets/stylus-BEDo0Tqx.js +1 -0
  256. package/web/dist/assets/svelte-3Dk4HxPD.js +1 -0
  257. package/web/dist/assets/swift-Dg5xB15N.js +1 -0
  258. package/web/dist/assets/synthwave-84-CbfX1IO0.js +1 -0
  259. package/web/dist/assets/system-verilog-CnnmHF94.js +1 -0
  260. package/web/dist/assets/systemd-4A_iFExJ.js +1 -0
  261. package/web/dist/assets/talonscript-CkByrt1z.js +1 -0
  262. package/web/dist/assets/tasl-QIJgUcNo.js +1 -0
  263. package/web/dist/assets/tcl-dwOrl1Do.js +1 -0
  264. package/web/dist/assets/templ-W15q3VgB.js +1 -0
  265. package/web/dist/assets/terraform-BETggiCN.js +1 -0
  266. package/web/dist/assets/tex-CxkMU7Pf.js +1 -0
  267. package/web/dist/assets/tokyo-night-hegEt444.js +1 -0
  268. package/web/dist/assets/toml-vGWfd6FD.js +1 -0
  269. package/web/dist/assets/ts-tags-zn1MmPIZ.js +1 -0
  270. package/web/dist/assets/tsv-B_m7g4N7.js +1 -0
  271. package/web/dist/assets/tsx-COt5Ahok.js +1 -0
  272. package/web/dist/assets/turtle-BsS91CYL.js +1 -0
  273. package/web/dist/assets/twig-CO9l9SDP.js +1 -0
  274. package/web/dist/assets/typescript-BPQ3VLAy.js +1 -0
  275. package/web/dist/assets/typespec-BGHnOYBU.js +1 -0
  276. package/web/dist/assets/typst-DHCkPAjA.js +1 -0
  277. package/web/dist/assets/v-BcVCzyr7.js +1 -0
  278. package/web/dist/assets/vala-CsfeWuGM.js +1 -0
  279. package/web/dist/assets/vb-D17OF-Vu.js +1 -0
  280. package/web/dist/assets/verilog-BQ8w6xss.js +1 -0
  281. package/web/dist/assets/vesper-DU1UobuO.js +1 -0
  282. package/web/dist/assets/vhdl-CeAyd5Ju.js +1 -0
  283. package/web/dist/assets/viml-CJc9bBzg.js +1 -0
  284. package/web/dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
  285. package/web/dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
  286. package/web/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
  287. package/web/dist/assets/vue-DnHKYNfI.js +1 -0
  288. package/web/dist/assets/vue-html-CChd_i61.js +1 -0
  289. package/web/dist/assets/vue-vine-8moa0y9V.js +1 -0
  290. package/web/dist/assets/vyper-CDx5xZoG.js +1 -0
  291. package/web/dist/assets/wasm-CG6Dc4jp.js +1 -0
  292. package/web/dist/assets/wasm-MzD3tlZU.js +1 -0
  293. package/web/dist/assets/wenyan-BV7otONQ.js +1 -0
  294. package/web/dist/assets/wgsl-Dx-B1_4e.js +1 -0
  295. package/web/dist/assets/wikitext-BhOHFoWU.js +1 -0
  296. package/web/dist/assets/wit-5i3qLPDT.js +1 -0
  297. package/web/dist/assets/wolfram-lXgVvXCa.js +1 -0
  298. package/web/dist/assets/xml-sdJ4AIDG.js +1 -0
  299. package/web/dist/assets/xsl-CtQFsRM5.js +1 -0
  300. package/web/dist/assets/yaml-Buea-lGh.js +1 -0
  301. package/web/dist/assets/zenscript-DVFEvuxE.js +1 -0
  302. package/web/dist/assets/zig-VOosw3JB.js +1 -0
  303. package/web/dist/index.html +14 -0
  304. package/web/index.html +14 -0
  305. package/.gitmodules +0 -3
  306. package/CHAT.md +0 -3
  307. package/references/openspec/.changeset/README.md +0 -6
  308. package/references/openspec/.changeset/config.json +0 -12
  309. package/references/openspec/.coderabbit.yaml +0 -11
  310. package/references/openspec/.devcontainer/README.md +0 -92
  311. package/references/openspec/.devcontainer/devcontainer.json +0 -68
  312. package/references/openspec/.github/CODEOWNERS +0 -2
  313. package/references/openspec/.github/workflows/ci.yml +0 -222
  314. package/references/openspec/.github/workflows/release-prepare.yml +0 -50
  315. package/references/openspec/AGENTS.md +0 -18
  316. package/references/openspec/CHANGELOG.md +0 -205
  317. package/references/openspec/LICENSE +0 -22
  318. package/references/openspec/README.md +0 -374
  319. package/references/openspec/assets/openspec_dashboard.png +0 -0
  320. package/references/openspec/assets/openspec_pixel_dark.svg +0 -89
  321. package/references/openspec/assets/openspec_pixel_light.svg +0 -89
  322. package/references/openspec/bin/openspec.js +0 -3
  323. package/references/openspec/build.js +0 -31
  324. package/references/openspec/openspec/AGENTS.md +0 -454
  325. package/references/openspec/openspec/changes/IMPLEMENTATION_ORDER.md +0 -68
  326. package/references/openspec/openspec/changes/add-antigravity-support/proposal.md +0 -11
  327. package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-init/spec.md +0 -9
  328. package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-update/spec.md +0 -8
  329. package/references/openspec/openspec/changes/add-antigravity-support/tasks.md +0 -12
  330. package/references/openspec/openspec/changes/add-scaffold-command/proposal.md +0 -11
  331. package/references/openspec/openspec/changes/add-scaffold-command/specs/cli-scaffold/spec.md +0 -36
  332. package/references/openspec/openspec/changes/add-scaffold-command/tasks.md +0 -12
  333. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/design.md +0 -86
  334. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/proposal.md +0 -29
  335. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/specs/cli-update/spec.md +0 -59
  336. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/tasks.md +0 -20
  337. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/proposal.md +0 -20
  338. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/specs/cli-list/spec.md +0 -69
  339. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/tasks.md +0 -26
  340. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/design.md +0 -64
  341. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/proposal.md +0 -18
  342. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/tasks.md +0 -25
  343. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/design.md +0 -104
  344. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/proposal.md +0 -30
  345. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/specs/cli-init/spec.md +0 -148
  346. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/tasks.md +0 -38
  347. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/proposal.md +0 -24
  348. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/specs/openspec-conventions/spec.md +0 -120
  349. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/tasks.md +0 -38
  350. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/proposal.md +0 -13
  351. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/specs/openspec-docs/README.md +0 -472
  352. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/tasks.md +0 -9
  353. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/proposal.md +0 -15
  354. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/specs/cli-archive/spec.md +0 -111
  355. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/tasks.md +0 -44
  356. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/proposal.md +0 -19
  357. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/specs/cli-diff/spec.md +0 -77
  358. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/tasks.md +0 -23
  359. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/design.md +0 -56
  360. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/proposal.md +0 -17
  361. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-change/spec.md +0 -48
  362. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-list/spec.md +0 -12
  363. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/tasks.md +0 -34
  364. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/proposal.md +0 -20
  365. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-change/spec.md +0 -23
  366. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-show/spec.md +0 -83
  367. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-spec/spec.md +0 -23
  368. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/tasks.md +0 -142
  369. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/proposal.md +0 -13
  370. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/specs/cli-archive/spec.md +0 -191
  371. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/tasks.md +0 -57
  372. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/design.md +0 -45
  373. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/proposal.md +0 -19
  374. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/specs/cli-spec/spec.md +0 -43
  375. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/tasks.md +0 -22
  376. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/design.md +0 -104
  377. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/proposal.md +0 -22
  378. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-archive/spec.md +0 -18
  379. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-diff/spec.md +0 -12
  380. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/tasks.md +0 -59
  381. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/proposal.md +0 -93
  382. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-archive/spec.md +0 -48
  383. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-diff/spec.md +0 -45
  384. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/openspec-conventions/spec.md +0 -101
  385. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/tasks.md +0 -55
  386. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/design.md +0 -19
  387. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/proposal.md +0 -67
  388. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/cli-list/spec.md +0 -57
  389. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/openspec-conventions/spec.md +0 -23
  390. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/tasks.md +0 -27
  391. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/proposal.md +0 -20
  392. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-change/spec.md +0 -22
  393. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-spec/spec.md +0 -23
  394. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-validate/spec.md +0 -149
  395. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/tasks.md +0 -81
  396. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/proposal.md +0 -40
  397. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/specs/cli-update/spec.md +0 -23
  398. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/tasks.md +0 -21
  399. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/proposal.md +0 -25
  400. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/specs/cli-validate/spec.md +0 -55
  401. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/tasks.md +0 -21
  402. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/proposal.md +0 -36
  403. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/specs/openspec-conventions/spec.md +0 -192
  404. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/tasks.md +0 -19
  405. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/proposal.md +0 -38
  406. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/specs/cli-view/spec.md +0 -109
  407. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/tasks.md +0 -47
  408. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/proposal.md +0 -28
  409. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-init/spec.md +0 -71
  410. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-update/spec.md +0 -41
  411. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/tasks.md +0 -17
  412. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/proposal.md +0 -35
  413. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/specs/cli-init/spec.md +0 -45
  414. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/tasks.md +0 -16
  415. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/proposal.md +0 -119
  416. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-init/spec.md +0 -21
  417. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-update/spec.md +0 -22
  418. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/tasks.md +0 -20
  419. package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/proposal.md +0 -19
  420. package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/tasks.md +0 -9
  421. package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/proposal.md +0 -78
  422. package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/tasks.md +0 -25
  423. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/proposal.md +0 -13
  424. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/specs/cli-init/spec.md +0 -92
  425. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/tasks.md +0 -12
  426. package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/proposal.md +0 -81
  427. package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/tasks.md +0 -37
  428. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/proposal.md +0 -25
  429. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/specs/cli-view/spec.md +0 -9
  430. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/tasks.md +0 -8
  431. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/proposal.md +0 -29
  432. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-init/spec.md +0 -40
  433. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-update/spec.md +0 -22
  434. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/openspec-conventions/spec.md +0 -27
  435. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/tasks.md +0 -22
  436. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/design.md +0 -130
  437. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/proposal.md +0 -117
  438. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/tasks.md +0 -69
  439. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/proposal.md +0 -19
  440. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/specs/cli-validate/spec.md +0 -9
  441. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/tasks.md +0 -11
  442. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/proposal.md +0 -25
  443. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-init/spec.md +0 -56
  444. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-update/spec.md +0 -41
  445. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/tasks.md +0 -19
  446. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/proposal.md +0 -25
  447. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-init/spec.md +0 -48
  448. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-update/spec.md +0 -48
  449. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/tasks.md +0 -30
  450. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/proposal.md +0 -17
  451. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-init/spec.md +0 -43
  452. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-update/spec.md +0 -27
  453. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/tasks.md +0 -15
  454. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/proposal.md +0 -12
  455. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/specs/cli-init/spec.md +0 -39
  456. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/tasks.md +0 -17
  457. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/proposal.md +0 -17
  458. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-init/spec.md +0 -42
  459. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-update/spec.md +0 -27
  460. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/tasks.md +0 -17
  461. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/proposal.md +0 -12
  462. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/specs/cli-validate/spec.md +0 -39
  463. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/tasks.md +0 -12
  464. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/proposal.md +0 -12
  465. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/specs/docs-agent-instructions/spec.md +0 -33
  466. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/tasks.md +0 -11
  467. package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/proposal.md +0 -13
  468. package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/tasks.md +0 -15
  469. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/proposal.md +0 -14
  470. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/specs/cli-init/spec.md +0 -10
  471. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/tasks.md +0 -8
  472. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/proposal.md +0 -15
  473. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-init/spec.md +0 -32
  474. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-update/spec.md +0 -10
  475. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/tasks.md +0 -11
  476. package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/proposal.md +0 -49
  477. package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/tasks.md +0 -12
  478. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/proposal.md +0 -17
  479. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/specs/cli-update/spec.md +0 -32
  480. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/tasks.md +0 -15
  481. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/proposal.md +0 -15
  482. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/specs/cli-init/spec.md +0 -97
  483. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/tasks.md +0 -19
  484. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/proposal.md +0 -13
  485. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/specs/cli-init/spec.md +0 -67
  486. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/tasks.md +0 -7
  487. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/proposal.md +0 -12
  488. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-init/spec.md +0 -54
  489. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-update/spec.md +0 -54
  490. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/tasks.md +0 -11
  491. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/proposal.md +0 -13
  492. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/specs/cli-init/spec.md +0 -11
  493. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/tasks.md +0 -13
  494. package/references/openspec/openspec/changes/make-validation-scope-aware/proposal.md +0 -12
  495. package/references/openspec/openspec/changes/make-validation-scope-aware/specs/cli-validate/spec.md +0 -25
  496. package/references/openspec/openspec/changes/make-validation-scope-aware/tasks.md +0 -16
  497. package/references/openspec/openspec/project.md +0 -53
  498. package/references/openspec/openspec/specs/cli-archive/spec.md +0 -210
  499. package/references/openspec/openspec/specs/cli-change/spec.md +0 -91
  500. package/references/openspec/openspec/specs/cli-init/spec.md +0 -311
  501. package/references/openspec/openspec/specs/cli-list/spec.md +0 -103
  502. package/references/openspec/openspec/specs/cli-show/spec.md +0 -85
  503. package/references/openspec/openspec/specs/cli-spec/spec.md +0 -87
  504. package/references/openspec/openspec/specs/cli-update/spec.md +0 -190
  505. package/references/openspec/openspec/specs/cli-validate/spec.md +0 -218
  506. package/references/openspec/openspec/specs/cli-view/spec.md +0 -105
  507. package/references/openspec/openspec/specs/docs-agent-instructions/spec.md +0 -38
  508. package/references/openspec/openspec/specs/openspec-conventions/spec.md +0 -474
  509. package/references/openspec/openspec-parallel-merge-plan.md +0 -98
  510. package/references/openspec/package.json +0 -73
  511. package/references/openspec/pnpm-lock.yaml +0 -2324
  512. package/references/openspec/scripts/pack-version-check.mjs +0 -111
  513. package/references/openspec/src/cli/index.ts +0 -253
  514. package/references/openspec/src/commands/change.ts +0 -291
  515. package/references/openspec/src/commands/show.ts +0 -139
  516. package/references/openspec/src/commands/spec.ts +0 -250
  517. package/references/openspec/src/commands/validate.ts +0 -305
  518. package/references/openspec/src/core/archive.ts +0 -606
  519. package/references/openspec/src/core/config.ts +0 -41
  520. package/references/openspec/src/core/configurators/agents.ts +0 -23
  521. package/references/openspec/src/core/configurators/base.ts +0 -6
  522. package/references/openspec/src/core/configurators/claude.ts +0 -23
  523. package/references/openspec/src/core/configurators/cline.ts +0 -23
  524. package/references/openspec/src/core/configurators/codebuddy.ts +0 -24
  525. package/references/openspec/src/core/configurators/costrict.ts +0 -23
  526. package/references/openspec/src/core/configurators/iflow.ts +0 -23
  527. package/references/openspec/src/core/configurators/qoder.ts +0 -53
  528. package/references/openspec/src/core/configurators/qwen.ts +0 -47
  529. package/references/openspec/src/core/configurators/registry.ts +0 -49
  530. package/references/openspec/src/core/configurators/slash/amazon-q.ts +0 -51
  531. package/references/openspec/src/core/configurators/slash/antigravity.ts +0 -28
  532. package/references/openspec/src/core/configurators/slash/auggie.ts +0 -37
  533. package/references/openspec/src/core/configurators/slash/base.ts +0 -95
  534. package/references/openspec/src/core/configurators/slash/claude.ts +0 -42
  535. package/references/openspec/src/core/configurators/slash/cline.ts +0 -27
  536. package/references/openspec/src/core/configurators/slash/codebuddy.ts +0 -43
  537. package/references/openspec/src/core/configurators/slash/codex.ts +0 -126
  538. package/references/openspec/src/core/configurators/slash/costrict.ts +0 -36
  539. package/references/openspec/src/core/configurators/slash/crush.ts +0 -42
  540. package/references/openspec/src/core/configurators/slash/cursor.ts +0 -42
  541. package/references/openspec/src/core/configurators/slash/factory.ts +0 -41
  542. package/references/openspec/src/core/configurators/slash/gemini.ts +0 -27
  543. package/references/openspec/src/core/configurators/slash/github-copilot.ts +0 -39
  544. package/references/openspec/src/core/configurators/slash/iflow.ts +0 -42
  545. package/references/openspec/src/core/configurators/slash/kilocode.ts +0 -21
  546. package/references/openspec/src/core/configurators/slash/opencode.ts +0 -83
  547. package/references/openspec/src/core/configurators/slash/qoder.ts +0 -84
  548. package/references/openspec/src/core/configurators/slash/qwen.ts +0 -55
  549. package/references/openspec/src/core/configurators/slash/registry.ts +0 -81
  550. package/references/openspec/src/core/configurators/slash/roocode.ts +0 -27
  551. package/references/openspec/src/core/configurators/slash/toml-base.ts +0 -66
  552. package/references/openspec/src/core/configurators/slash/windsurf.ts +0 -27
  553. package/references/openspec/src/core/converters/json-converter.ts +0 -61
  554. package/references/openspec/src/core/index.ts +0 -2
  555. package/references/openspec/src/core/init.ts +0 -986
  556. package/references/openspec/src/core/list.ts +0 -104
  557. package/references/openspec/src/core/parsers/change-parser.ts +0 -234
  558. package/references/openspec/src/core/parsers/markdown-parser.ts +0 -237
  559. package/references/openspec/src/core/parsers/requirement-blocks.ts +0 -234
  560. package/references/openspec/src/core/schemas/base.schema.ts +0 -20
  561. package/references/openspec/src/core/schemas/change.schema.ts +0 -42
  562. package/references/openspec/src/core/schemas/index.ts +0 -20
  563. package/references/openspec/src/core/schemas/spec.schema.ts +0 -17
  564. package/references/openspec/src/core/styles/palette.ts +0 -8
  565. package/references/openspec/src/core/templates/agents-root-stub.ts +0 -16
  566. package/references/openspec/src/core/templates/agents-template.ts +0 -457
  567. package/references/openspec/src/core/templates/claude-template.ts +0 -1
  568. package/references/openspec/src/core/templates/cline-template.ts +0 -1
  569. package/references/openspec/src/core/templates/costrict-template.ts +0 -1
  570. package/references/openspec/src/core/templates/index.ts +0 -50
  571. package/references/openspec/src/core/templates/project-template.ts +0 -38
  572. package/references/openspec/src/core/templates/slash-command-templates.ts +0 -60
  573. package/references/openspec/src/core/update.ts +0 -129
  574. package/references/openspec/src/core/validation/constants.ts +0 -48
  575. package/references/openspec/src/core/validation/types.ts +0 -19
  576. package/references/openspec/src/core/validation/validator.ts +0 -448
  577. package/references/openspec/src/core/view.ts +0 -189
  578. package/references/openspec/src/index.ts +0 -2
  579. package/references/openspec/src/utils/file-system.ts +0 -187
  580. package/references/openspec/src/utils/index.ts +0 -2
  581. package/references/openspec/src/utils/interactive.ts +0 -7
  582. package/references/openspec/src/utils/item-discovery.ts +0 -45
  583. package/references/openspec/src/utils/match.ts +0 -26
  584. package/references/openspec/src/utils/task-progress.ts +0 -43
  585. package/references/openspec/test/cli-e2e/basic.test.ts +0 -156
  586. package/references/openspec/test/commands/change.interactive-show.test.ts +0 -45
  587. package/references/openspec/test/commands/change.interactive-validate.test.ts +0 -48
  588. package/references/openspec/test/commands/show.test.ts +0 -123
  589. package/references/openspec/test/commands/spec.interactive-show.test.ts +0 -44
  590. package/references/openspec/test/commands/spec.interactive-validate.test.ts +0 -44
  591. package/references/openspec/test/commands/spec.test.ts +0 -324
  592. package/references/openspec/test/commands/validate.enriched-output.test.ts +0 -49
  593. package/references/openspec/test/commands/validate.test.ts +0 -133
  594. package/references/openspec/test/core/archive.test.ts +0 -680
  595. package/references/openspec/test/core/commands/change-command.list.test.ts +0 -76
  596. package/references/openspec/test/core/commands/change-command.show-validate.test.ts +0 -111
  597. package/references/openspec/test/core/converters/json-converter.test.ts +0 -184
  598. package/references/openspec/test/core/init.test.ts +0 -1710
  599. package/references/openspec/test/core/list.test.ts +0 -165
  600. package/references/openspec/test/core/parsers/change-parser.test.ts +0 -52
  601. package/references/openspec/test/core/parsers/markdown-parser.test.ts +0 -291
  602. package/references/openspec/test/core/update.test.ts +0 -1642
  603. package/references/openspec/test/core/validation.enriched-messages.test.ts +0 -74
  604. package/references/openspec/test/core/validation.test.ts +0 -489
  605. package/references/openspec/test/core/view.test.ts +0 -79
  606. package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/proposal.md +0 -7
  607. package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/specs/alpha/spec.md +0 -8
  608. package/references/openspec/test/fixtures/tmp-init/openspec/specs/alpha/spec.md +0 -12
  609. package/references/openspec/test/helpers/run-cli.ts +0 -139
  610. package/references/openspec/test/utils/file-system.test.ts +0 -211
  611. package/references/openspec/test/utils/marker-updates.test.ts +0 -287
  612. package/references/openspec/tsconfig.json +0 -21
  613. package/references/openspec/vitest.config.ts +0 -25
  614. package/references/openspec/vitest.setup.ts +0 -6
@@ -0,0 +1,170 @@
1
+ var Mp=a=>{throw TypeError(a)};var Tf=(a,l,s)=>l.has(a)||Mp("Cannot "+s);var R=(a,l,s)=>(Tf(a,l,"read from private field"),s?s.call(a):l.get(a)),lt=(a,l,s)=>l.has(a)?Mp("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(a):l.set(a,s),I=(a,l,s,r)=>(Tf(a,l,"write to private field"),r?r.call(a,s):l.set(a,s),s),mt=(a,l,s)=>(Tf(a,l,"access private method"),s);var Ou=(a,l,s,r)=>({set _(c){I(a,l,c,s)},get _(){return R(a,l,r)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function dS(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Rf={exports:{}},Ds={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var jp;function hS(){if(jp)return Ds;jp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:f}}return Ds.Fragment=l,Ds.jsx=s,Ds.jsxs=s,Ds}var Cp;function mS(){return Cp||(Cp=1,Rf.exports=hS()),Rf.exports}var x=mS(),Ef={exports:{}},qs={},Of={exports:{}},Mf={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ap;function yS(){return Ap||(Ap=1,(function(a){function l(q,J){var it=q.length;q.push(J);t:for(;0<it;){var _t=it-1>>>1,Nt=q[_t];if(0<c(Nt,J))q[_t]=J,q[it]=Nt,it=_t;else break t}}function s(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var J=q[0],it=q.pop();if(it!==J){q[0]=it;t:for(var _t=0,Nt=q.length,O=Nt>>>1;_t<O;){var Y=2*(_t+1)-1,$=q[Y],tt=Y+1,ut=q[tt];if(0>c($,it))tt<Nt&&0>c(ut,$)?(q[_t]=ut,q[tt]=it,_t=tt):(q[_t]=$,q[Y]=it,_t=Y);else if(tt<Nt&&0>c(ut,it))q[_t]=ut,q[tt]=it,_t=tt;else break t}}return J}function c(q,J){var it=q.sortIndex-J.sortIndex;return it!==0?it:q.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();a.unstable_now=function(){return d.now()-h}}var y=[],p=[],_=1,v=null,b=3,S=!1,M=!1,j=!1,A=!1,U=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function B(q){for(var J=s(p);J!==null;){if(J.callback===null)r(p);else if(J.startTime<=q)r(p),J.sortIndex=J.expirationTime,l(y,J);else break;J=s(p)}}function Z(q){if(j=!1,B(q),!M)if(s(y)!==null)M=!0,K||(K=!0,ot());else{var J=s(p);J!==null&&le(Z,J.startTime-q)}}var K=!1,H=-1,k=5,nt=-1;function X(){return A?!0:!(a.unstable_now()-nt<k)}function F(){if(A=!1,K){var q=a.unstable_now();nt=q;var J=!0;try{t:{M=!1,j&&(j=!1,V(H),H=-1),S=!0;var it=b;try{e:{for(B(q),v=s(y);v!==null&&!(v.expirationTime>q&&X());){var _t=v.callback;if(typeof _t=="function"){v.callback=null,b=v.priorityLevel;var Nt=_t(v.expirationTime<=q);if(q=a.unstable_now(),typeof Nt=="function"){v.callback=Nt,B(q),J=!0;break e}v===s(y)&&r(y),B(q)}else r(y);v=s(y)}if(v!==null)J=!0;else{var O=s(p);O!==null&&le(Z,O.startTime-q),J=!1}}break t}finally{v=null,b=it,S=!1}J=void 0}}finally{J?ot():K=!1}}}var ot;if(typeof P=="function")ot=function(){P(F)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,kt=Mt.port2;Mt.port1.onmessage=F,ot=function(){kt.postMessage(null)}}else ot=function(){U(F,0)};function le(q,J){H=U(function(){q(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(q){q.callback=null},a.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<q?Math.floor(1e3/q):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(q){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var it=b;b=J;try{return q()}finally{b=it}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(q,J){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var it=b;b=q;try{return J()}finally{b=it}},a.unstable_scheduleCallback=function(q,J,it){var _t=a.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?_t+it:_t):it=_t,q){case 1:var Nt=-1;break;case 2:Nt=250;break;case 5:Nt=1073741823;break;case 4:Nt=1e4;break;default:Nt=5e3}return Nt=it+Nt,q={id:_++,callback:J,priorityLevel:q,startTime:it,expirationTime:Nt,sortIndex:-1},it>_t?(q.sortIndex=it,l(p,q),s(y)===null&&q===s(p)&&(j?(V(H),H=-1):j=!0,le(Z,it-_t))):(q.sortIndex=Nt,l(y,q),M||S||(M=!0,K||(K=!0,ot()))),q},a.unstable_shouldYield=X,a.unstable_wrapCallback=function(q){var J=b;return function(){var it=b;b=J;try{return q.apply(this,arguments)}finally{b=it}}}})(Mf)),Mf}var wp;function pS(){return wp||(wp=1,Of.exports=yS()),Of.exports}var jf={exports:{}},ft={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Np;function vS(){if(Np)return ft;Np=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function U(O,Y,$){this.props=O,this.context=Y,this.refs=A,this.updater=$||M}U.prototype.isReactComponent={},U.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},U.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function V(){}V.prototype=U.prototype;function P(O,Y,$){this.props=O,this.context=Y,this.refs=A,this.updater=$||M}var B=P.prototype=new V;B.constructor=P,j(B,U.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function nt(O,Y,$){var tt=$.ref;return{$$typeof:a,type:O,key:Y,ref:tt!==void 0?tt:null,props:$}}function X(O,Y){return nt(O.type,Y,O.props)}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===a}function ot(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return Y[$]})}var Mt=/\/+/g;function kt(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?ot(""+O.key):Y.toString(36)}function le(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(K,K):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function q(O,Y,$,tt,ut){var ct=typeof O;(ct==="undefined"||ct==="boolean")&&(O=null);var yt=!1;if(O===null)yt=!0;else switch(ct){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(O.$$typeof){case a:case l:yt=!0;break;case _:return yt=O._init,q(yt(O._payload),Y,$,tt,ut)}}if(yt)return ut=ut(O),yt=tt===""?"."+kt(O,0):tt,Z(ut)?($="",yt!=null&&($=yt.replace(Mt,"$&/")+"/"),q(ut,Y,$,"",function(Sn){return Sn})):ut!=null&&(F(ut)&&(ut=X(ut,$+(ut.key==null||O&&O.key===ut.key?"":(""+ut.key).replace(Mt,"$&/")+"/")+yt)),Y.push(ut)),1;yt=0;var Zt=tt===""?".":tt+":";if(Z(O))for(var zt=0;zt<O.length;zt++)tt=O[zt],ct=Zt+kt(tt,zt),yt+=q(tt,Y,$,ct,ut);else if(zt=S(O),typeof zt=="function")for(O=zt.call(O),zt=0;!(tt=O.next()).done;)tt=tt.value,ct=Zt+kt(tt,zt++),yt+=q(tt,Y,$,ct,ut);else if(ct==="object"){if(typeof O.then=="function")return q(le(O),Y,$,tt,ut);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return yt}function J(O,Y,$){if(O==null)return O;var tt=[],ut=0;return q(O,tt,"","",function(ct){return Y.call($,ct,ut++)}),tt}function it(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}var _t=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Nt={map:J,forEach:function(O,Y,$){J(O,function(){Y.apply(this,arguments)},$)},count:function(O){var Y=0;return J(O,function(){Y++}),Y},toArray:function(O){return J(O,function(Y){return Y})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ft.Activity=v,ft.Children=Nt,ft.Component=U,ft.Fragment=s,ft.Profiler=c,ft.PureComponent=P,ft.StrictMode=r,ft.Suspense=y,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ft.__COMPILER_RUNTIME={__proto__:null,c:function(O){return H.H.useMemoCache(O)}},ft.cache=function(O){return function(){return O.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(O,Y,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var tt=j({},O.props),ut=O.key;if(Y!=null)for(ct in Y.key!==void 0&&(ut=""+Y.key),Y)!k.call(Y,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&Y.ref===void 0||(tt[ct]=Y[ct]);var ct=arguments.length-2;if(ct===1)tt.children=$;else if(1<ct){for(var yt=Array(ct),Zt=0;Zt<ct;Zt++)yt[Zt]=arguments[Zt+2];tt.children=yt}return nt(O.type,ut,tt)},ft.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},ft.createElement=function(O,Y,$){var tt,ut={},ct=null;if(Y!=null)for(tt in Y.key!==void 0&&(ct=""+Y.key),Y)k.call(Y,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ut[tt]=Y[tt]);var yt=arguments.length-2;if(yt===1)ut.children=$;else if(1<yt){for(var Zt=Array(yt),zt=0;zt<yt;zt++)Zt[zt]=arguments[zt+2];ut.children=Zt}if(O&&O.defaultProps)for(tt in yt=O.defaultProps,yt)ut[tt]===void 0&&(ut[tt]=yt[tt]);return nt(O,ct,ut)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(O){return{$$typeof:h,render:O}},ft.isValidElement=F,ft.lazy=function(O){return{$$typeof:_,_payload:{_status:-1,_result:O},_init:it}},ft.memo=function(O,Y){return{$$typeof:p,type:O,compare:Y===void 0?null:Y}},ft.startTransition=function(O){var Y=H.T,$={};H.T=$;try{var tt=O(),ut=H.S;ut!==null&&ut($,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(K,_t)}catch(ct){_t(ct)}finally{Y!==null&&$.types!==null&&(Y.types=$.types),H.T=Y}},ft.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ft.use=function(O){return H.H.use(O)},ft.useActionState=function(O,Y,$){return H.H.useActionState(O,Y,$)},ft.useCallback=function(O,Y){return H.H.useCallback(O,Y)},ft.useContext=function(O){return H.H.useContext(O)},ft.useDebugValue=function(){},ft.useDeferredValue=function(O,Y){return H.H.useDeferredValue(O,Y)},ft.useEffect=function(O,Y){return H.H.useEffect(O,Y)},ft.useEffectEvent=function(O){return H.H.useEffectEvent(O)},ft.useId=function(){return H.H.useId()},ft.useImperativeHandle=function(O,Y,$){return H.H.useImperativeHandle(O,Y,$)},ft.useInsertionEffect=function(O,Y){return H.H.useInsertionEffect(O,Y)},ft.useLayoutEffect=function(O,Y){return H.H.useLayoutEffect(O,Y)},ft.useMemo=function(O,Y){return H.H.useMemo(O,Y)},ft.useOptimistic=function(O,Y){return H.H.useOptimistic(O,Y)},ft.useReducer=function(O,Y,$){return H.H.useReducer(O,Y,$)},ft.useRef=function(O){return H.H.useRef(O)},ft.useState=function(O){return H.H.useState(O)},ft.useSyncExternalStore=function(O,Y,$){return H.H.useSyncExternalStore(O,Y,$)},ft.useTransition=function(){return H.H.useTransition()},ft.version="19.2.0",ft}var zp;function nr(){return zp||(zp=1,jf.exports=vS()),jf.exports}var Cf={exports:{}},de={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Dp;function gS(){if(Dp)return de;Dp=1;var a=nr();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)p+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,_){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:p,implementation:_}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,de.createPortal=function(y,p){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(y,p,null,_)},de.flushSync=function(y){var p=d.T,_=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=p,r.p=_,r.d.f()}},de.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},de.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},de.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var _=p.as,v=h(_,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;_==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:S}):_==="script"&&r.d.X(y,{crossOrigin:v,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},de.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var _=h(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},de.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var _=p.as,v=h(_,p.crossOrigin);r.d.L(y,_,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},de.preloadModule=function(y,p){if(typeof y=="string")if(p){var _=h(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},de.requestFormReset=function(y){r.d.r(y)},de.unstable_batchedUpdates=function(y,p){return y(p)},de.useFormState=function(y,p,_){return d.H.useFormState(y,p,_)},de.useFormStatus=function(){return d.H.useHostTransitionStatus()},de.version="19.2.0",de}var qp;function Hv(){if(qp)return Cf.exports;qp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Cf.exports=gS(),Cf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Up;function bS(){if(Up)return qs;Up=1;var a=pS(),l=nr(),s=Hv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(i=u.return,i!==null){n=i;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return y(u),t;if(o===i)return y(u),e;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=u,i=o;else{for(var m=!1,g=u.child;g;){if(g===n){m=!0,n=u,i=o;break}if(g===i){m=!0,i=u,n=o;break}g=g.sibling}if(!m){for(g=o.child;g;){if(g===n){m=!0,n=o,i=u;break}if(g===i){m=!0,i=o,n=u;break}g=g.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function _(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=_(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),P=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ot(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var Mt=Symbol.for("react.client.reference");function kt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case U:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case K:return"SuspenseList";case nt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case P:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case B:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:kt(t.type)||"Memo";case k:e=t._payload,t=t._init;try{return kt(t(e))}catch{}}return null}var le=Array.isArray,q=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},_t=[],Nt=-1;function O(t){return{current:t}}function Y(t){0>Nt||(t.current=_t[Nt],_t[Nt]=null,Nt--)}function $(t,e){Nt++,_t[Nt]=t.current,t.current=e}var tt=O(null),ut=O(null),ct=O(null),yt=O(null);function Zt(t,e){switch($(ct,e),$(ut,t),$(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Fy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Fy(e),t=$y(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(tt),$(tt,t)}function zt(){Y(tt),Y(ut),Y(ct)}function Sn(t){t.memoizedState!==null&&$(yt,t);var e=tt.current,n=$y(e,t.type);e!==n&&($(ut,t),$(tt,n))}function $n(t){ut.current===t&&(Y(tt),Y(ut)),yt.current===t&&(Y(yt),As._currentValue=it)}var tn,sr;function xn(t){if(tn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);tn=e&&e[1]||"",sr=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+tn+t+sr}var wi=!1;function Ql(t,e){if(!t||wi)return"";wi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(D){var z=D}Reflect.construct(t,[],G)}else{try{G.call()}catch(D){z=D}t.call(G.prototype)}}else{try{throw Error()}catch(D){z=D}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),m=o[0],g=o[1];if(m&&g){var T=m.split(`
44
+ `),N=g.split(`
45
+ `);for(u=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;if(i===T.length||u===N.length)for(i=T.length-1,u=N.length-1;1<=i&&0<=u&&T[i]!==N[u];)u--;for(;1<=i&&0<=u;i--,u--)if(T[i]!==N[u]){if(i!==1||u!==1)do if(i--,u--,0>u||T[i]!==N[u]){var L=`
46
+ `+T[i].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=i&&0<=u);break}}}finally{wi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?xn(n):""}function uc(t,e){switch(t.tag){case 26:case 27:case 5:return xn(t.type);case 16:return xn("Lazy");case 13:return t.child!==e&&e!==null?xn("Suspense Fallback"):xn("Suspense");case 19:return xn("SuspenseList");case 0:case 15:return Ql(t.type,!1);case 11:return Ql(t.type.render,!1);case 1:return Ql(t.type,!0);case 31:return xn("Activity");default:return""}}function rr(t){try{var e="",n=null;do e+=uc(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Wn=Object.prototype.hasOwnProperty,In=a.unstable_scheduleCallback,Ni=a.unstable_cancelCallback,ur=a.unstable_shouldYield,jt=a.unstable_requestPaint,Et=a.unstable_now,je=a.unstable_getCurrentPriorityLevel,Gl=a.unstable_ImmediatePriority,Cd=a.unstable_UserBlockingPriority,cr=a.unstable_NormalPriority,kg=a.unstable_LowPriority,Ad=a.unstable_IdlePriority,Zg=a.log,Jg=a.unstable_setDisableYieldValue,Yl=null,Ce=null;function ta(t){if(typeof Zg=="function"&&Jg(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Yl,t)}catch{}}var Ae=Math.clz32?Math.clz32:Wg,Fg=Math.log,$g=Math.LN2;function Wg(t){return t>>>=0,t===0?32:31-(Fg(t)/$g|0)|0}var or=256,fr=262144,dr=4194304;function Ya(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function hr(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var u=0,o=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var g=i&134217727;return g!==0?(i=g&~o,i!==0?u=Ya(i):(m&=g,m!==0?u=Ya(m):n||(n=g&~t,n!==0&&(u=Ya(n))))):(g=i&~o,g!==0?u=Ya(g):m!==0?u=Ya(m):n||(n=i&~t,n!==0&&(u=Ya(n)))),u===0?0:e!==0&&e!==u&&(e&o)===0&&(o=u&-u,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:u}function Kl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ig(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wd(){var t=dr;return dr<<=1,(dr&62914560)===0&&(dr=4194304),t}function cc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Pl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function t0(t,e,n,i,u,o){var m=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=m&~n;0<n;){var L=31-Ae(n),G=1<<L;g[L]=0,T[L]=-1;var z=N[L];if(z!==null)for(N[L]=null,L=0;L<z.length;L++){var D=z[L];D!==null&&(D.lane&=-536870913)}n&=~G}i!==0&&Nd(t,i,0),o!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=o&~(m&~e))}function Nd(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Ae(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function zd(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Ae(n),u=1<<i;u&e|t[i]&e&&(t[i]|=e),n&=~u}}function Dd(t,e){var n=e&-e;return n=(n&42)!==0?1:oc(n),(n&(t.suspendedLanes|e))!==0?0:n}function oc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function fc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qd(){var t=J.p;return t!==0?t:(t=window.event,t===void 0?32:Sp(t.type))}function Ud(t,e){var n=J.p;try{return J.p=t,e()}finally{J.p=n}}var ea=Math.random().toString(36).slice(2),se="__reactFiber$"+ea,ve="__reactProps$"+ea,zi="__reactContainer$"+ea,dc="__reactEvents$"+ea,e0="__reactListeners$"+ea,n0="__reactHandles$"+ea,Ld="__reactResources$"+ea,Vl="__reactMarker$"+ea;function hc(t){delete t[se],delete t[ve],delete t[dc],delete t[e0],delete t[n0]}function Di(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[zi]||n[se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ip(t);t!==null;){if(n=t[se])return n;t=ip(t)}return e}t=n,n=t.parentNode}return null}function qi(t){if(t=t[se]||t[zi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Xl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ui(t){var e=t[Ld];return e||(e=t[Ld]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ee(t){t[Vl]=!0}var Hd=new Set,Bd={};function Ka(t,e){Li(t,e),Li(t+"Capture",e)}function Li(t,e){for(Bd[t]=e,t=0;t<e.length;t++)Hd.add(e[t])}var a0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qd={},Gd={};function i0(t){return Wn.call(Gd,t)?!0:Wn.call(Qd,t)?!1:a0.test(t)?Gd[t]=!0:(Qd[t]=!0,!1)}function mr(t,e,n){if(i0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function yr(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function _n(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function Qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Yd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function l0(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,o=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function mc(t){if(!t._valueTracker){var e=Yd(t)?"checked":"value";t._valueTracker=l0(t,e,""+t[e])}}function Kd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Yd(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function pr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var s0=/[\n"\\]/g;function Ge(t){return t.replace(s0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yc(t,e,n,i,u,o,m,g){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Qe(e)):t.value!==""+Qe(e)&&(t.value=""+Qe(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?pc(t,m,Qe(e)):n!=null?pc(t,m,Qe(n)):i!=null&&t.removeAttribute("value"),u==null&&o!=null&&(t.defaultChecked=!!o),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Qe(g):t.removeAttribute("name")}function Pd(t,e,n,i,u,o,m,g){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){mc(t);return}n=n!=null?""+Qe(n):"",e=e!=null?""+Qe(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=g?t.checked:!!i,t.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),mc(t)}function pc(t,e,n){e==="number"&&pr(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Hi(t,e,n,i){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Qe(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,i&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Vd(t,e,n){if(e!=null&&(e=""+Qe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Qe(n):""}function Xd(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(le(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Qe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),mc(t)}function Bi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var r0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kd(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||r0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Zd(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var u in e)i=e[u],e.hasOwnProperty(u)&&n[u]!==i&&kd(t,u,i)}else for(var o in e)e.hasOwnProperty(o)&&kd(t,o,e[o])}function vc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var u0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),c0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vr(t){return c0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Tn(){}var gc=null;function bc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qi=null,Gi=null;function Jd(t){var e=qi(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(yc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ge(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var u=i[ve]||null;if(!u)throw Error(r(90));yc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Kd(i)}break t;case"textarea":Vd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Hi(t,!!n.multiple,e,!1)}}}var Sc=!1;function Fd(t,e,n){if(Sc)return t(e,n);Sc=!0;try{var i=t(e);return i}finally{if(Sc=!1,(Qi!==null||Gi!==null)&&(iu(),Qi&&(e=Qi,t=Gi,Gi=Qi=null,Jd(e),t)))for(e=0;e<t.length;e++)Jd(t[e])}}function kl(t,e){var n=t.stateNode;if(n===null)return null;var i=n[ve]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(Rn)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){xc=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{xc=!1}var na=null,_c=null,gr=null;function $d(){if(gr)return gr;var t,e=_c,n=e.length,i,u="value"in na?na.value:na.textContent,o=u.length;for(t=0;t<n&&e[t]===u[t];t++);var m=n-t;for(i=1;i<=m&&e[n-i]===u[o-i];i++);return gr=u.slice(t,1<i?1-i:void 0)}function br(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Sr(){return!0}function Wd(){return!1}function ge(t){function e(n,i,u,o,m){this._reactName=n,this._targetInst=u,this.type=i,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(o):o[g]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Sr:Wd,this.isPropagationStopped=Wd,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Sr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sr)},persist:function(){},isPersistent:Sr}),e}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xr=ge(Pa),Jl=v({},Pa,{view:0,detail:0}),o0=ge(Jl),Tc,Rc,Fl,_r=v({},Jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fl&&(Fl&&t.type==="mousemove"?(Tc=t.screenX-Fl.screenX,Rc=t.screenY-Fl.screenY):Rc=Tc=0,Fl=t),Tc)},movementY:function(t){return"movementY"in t?t.movementY:Rc}}),Id=ge(_r),f0=v({},_r,{dataTransfer:0}),d0=ge(f0),h0=v({},Jl,{relatedTarget:0}),Ec=ge(h0),m0=v({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),y0=ge(m0),p0=v({},Pa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),v0=ge(p0),g0=v({},Pa,{data:0}),th=ge(g0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},x0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=x0[t])?!!e[t]:!1}function Oc(){return _0}var T0=v({},Jl,{key:function(t){if(t.key){var e=b0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=br(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?S0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(t){return t.type==="keypress"?br(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?br(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),R0=ge(T0),E0=v({},_r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eh=ge(E0),O0=v({},Jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),M0=ge(O0),j0=v({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),C0=ge(j0),A0=v({},_r,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),w0=ge(A0),N0=v({},Pa,{newState:0,oldState:0}),z0=ge(N0),D0=[9,13,27,32],Mc=Rn&&"CompositionEvent"in window,$l=null;Rn&&"documentMode"in document&&($l=document.documentMode);var q0=Rn&&"TextEvent"in window&&!$l,nh=Rn&&(!Mc||$l&&8<$l&&11>=$l),ah=" ",ih=!1;function lh(t,e){switch(t){case"keyup":return D0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Yi=!1;function U0(t,e){switch(t){case"compositionend":return sh(e);case"keypress":return e.which!==32?null:(ih=!0,ah);case"textInput":return t=e.data,t===ah&&ih?null:t;default:return null}}function L0(t,e){if(Yi)return t==="compositionend"||!Mc&&lh(t,e)?(t=$d(),gr=_c=na=null,Yi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return nh&&e.locale!=="ko"?null:e.data;default:return null}}var H0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!H0[t.type]:e==="textarea"}function uh(t,e,n,i){Qi?Gi?Gi.push(i):Gi=[i]:Qi=i,e=fu(e,"onChange"),0<e.length&&(n=new xr("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Wl=null,Il=null;function B0(t){Py(t,0)}function Tr(t){var e=Xl(t);if(Kd(e))return t}function ch(t,e){if(t==="change")return e}var oh=!1;if(Rn){var jc;if(Rn){var Cc="oninput"in document;if(!Cc){var fh=document.createElement("div");fh.setAttribute("oninput","return;"),Cc=typeof fh.oninput=="function"}jc=Cc}else jc=!1;oh=jc&&(!document.documentMode||9<document.documentMode)}function dh(){Wl&&(Wl.detachEvent("onpropertychange",hh),Il=Wl=null)}function hh(t){if(t.propertyName==="value"&&Tr(Il)){var e=[];uh(e,Il,t,bc(t)),Fd(B0,e)}}function Q0(t,e,n){t==="focusin"?(dh(),Wl=e,Il=n,Wl.attachEvent("onpropertychange",hh)):t==="focusout"&&dh()}function G0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Tr(Il)}function Y0(t,e){if(t==="click")return Tr(e)}function K0(t,e){if(t==="input"||t==="change")return Tr(e)}function P0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var we=typeof Object.is=="function"?Object.is:P0;function ts(t,e){if(we(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var u=n[i];if(!Wn.call(e,u)||!we(t[u],e[u]))return!1}return!0}function mh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yh(t,e){var n=mh(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=mh(n)}}function ph(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ph(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=pr(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=pr(t.document)}return e}function Ac(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var V0=Rn&&"documentMode"in document&&11>=document.documentMode,Ki=null,wc=null,es=null,Nc=!1;function gh(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nc||Ki==null||Ki!==pr(i)||(i=Ki,"selectionStart"in i&&Ac(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),es&&ts(es,i)||(es=i,i=fu(wc,"onSelect"),0<i.length&&(e=new xr("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ki)))}function Va(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Pi={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionrun:Va("Transition","TransitionRun"),transitionstart:Va("Transition","TransitionStart"),transitioncancel:Va("Transition","TransitionCancel"),transitionend:Va("Transition","TransitionEnd")},zc={},bh={};Rn&&(bh=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function Xa(t){if(zc[t])return zc[t];if(!Pi[t])return t;var e=Pi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in bh)return zc[t]=e[n];return t}var Sh=Xa("animationend"),xh=Xa("animationiteration"),_h=Xa("animationstart"),X0=Xa("transitionrun"),k0=Xa("transitionstart"),Z0=Xa("transitioncancel"),Th=Xa("transitionend"),Rh=new Map,Dc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Dc.push("scrollEnd");function en(t,e){Rh.set(t,e),Ka(e,[t])}var Rr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ye=[],Vi=0,qc=0;function Er(){for(var t=Vi,e=qc=Vi=0;e<t;){var n=Ye[e];Ye[e++]=null;var i=Ye[e];Ye[e++]=null;var u=Ye[e];Ye[e++]=null;var o=Ye[e];if(Ye[e++]=null,i!==null&&u!==null){var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}o!==0&&Eh(n,u,o)}}function Or(t,e,n,i){Ye[Vi++]=t,Ye[Vi++]=e,Ye[Vi++]=n,Ye[Vi++]=i,qc|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Uc(t,e,n,i){return Or(t,e,n,i),Mr(t)}function ka(t,e){return Or(t,null,null,e),Mr(t)}function Eh(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var u=!1,o=t.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(u=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,u&&e!==null&&(u=31-Ae(n),t=o.hiddenUpdates,i=t[u],i===null?t[u]=[e]:i.push(e),e.lane=n|536870912),o):null}function Mr(t){if(50<Ts)throw Ts=0,Xo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xi={};function J0(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,i){return new J0(t,e,n,i)}function Lc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function En(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Oh(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function jr(t,e,n,i,u,o){var m=0;if(i=t,typeof t=="function")Lc(t)&&(m=1);else if(typeof t=="string")m=tS(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case nt:return t=Ne(31,n,e,u),t.elementType=nt,t.lanes=o,t;case j:return Za(n.children,u,o,e);case A:m=8,u|=24;break;case U:return t=Ne(12,n,e,u|2),t.elementType=U,t.lanes=o,t;case Z:return t=Ne(13,n,e,u),t.elementType=Z,t.lanes=o,t;case K:return t=Ne(19,n,e,u),t.elementType=K,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:m=10;break t;case V:m=9;break t;case B:m=11;break t;case H:m=14;break t;case k:m=16,i=null;break t}m=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Ne(m,n,e,u),e.elementType=t,e.type=i,e.lanes=o,e}function Za(t,e,n,i){return t=Ne(7,t,i,e),t.lanes=n,t}function Hc(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function Mh(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function Bc(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var jh=new WeakMap;function Ke(t,e){if(typeof t=="object"&&t!==null){var n=jh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:rr(e)},jh.set(t,e),e)}return{value:t,source:e,stack:rr(e)}}var ki=[],Zi=0,Cr=null,ns=0,Pe=[],Ve=0,aa=null,cn=1,on="";function On(t,e){ki[Zi++]=ns,ki[Zi++]=Cr,Cr=t,ns=e}function Ch(t,e,n){Pe[Ve++]=cn,Pe[Ve++]=on,Pe[Ve++]=aa,aa=t;var i=cn;t=on;var u=32-Ae(i)-1;i&=~(1<<u),n+=1;var o=32-Ae(e)+u;if(30<o){var m=u-u%5;o=(i&(1<<m)-1).toString(32),i>>=m,u-=m,cn=1<<32-Ae(e)+u|n<<u|i,on=o+t}else cn=1<<o|n<<u|i,on=t}function Qc(t){t.return!==null&&(On(t,1),Ch(t,1,0))}function Gc(t){for(;t===Cr;)Cr=ki[--Zi],ki[Zi]=null,ns=ki[--Zi],ki[Zi]=null;for(;t===aa;)aa=Pe[--Ve],Pe[Ve]=null,on=Pe[--Ve],Pe[Ve]=null,cn=Pe[--Ve],Pe[Ve]=null}function Ah(t,e){Pe[Ve++]=cn,Pe[Ve++]=on,Pe[Ve++]=aa,cn=e.id,on=e.overflow,aa=t}var re=null,Ht=null,St=!1,ia=null,Xe=!1,Yc=Error(r(519));function la(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw as(Ke(e,t)),Yc}function wh(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[se]=t,e[ve]=i,n){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(n=0;n<Es.length;n++)vt(Es[n],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),Pd(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),Xd(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||Zy(e.textContent,n)?(i.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),i.onScroll!=null&&vt("scroll",e),i.onScrollEnd!=null&&vt("scrollend",e),i.onClick!=null&&(e.onclick=Tn),e=!0):e=!1,e||la(t,!0)}function Nh(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:re=re.return}}function Ji(t){if(t!==re)return!1;if(!St)return Nh(t),St=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||uf(t.type,t.memoizedProps)),n=!n),n&&Ht&&la(t),Nh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ht=ap(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ht=ap(t)}else e===27?(e=Ht,ba(t.type)?(t=hf,hf=null,Ht=t):Ht=e):Ht=re?Ze(t.stateNode.nextSibling):null;return!0}function Ja(){Ht=re=null,St=!1}function Kc(){var t=ia;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),ia=null),t}function as(t){ia===null?ia=[t]:ia.push(t)}var Pc=O(null),Fa=null,Mn=null;function sa(t,e,n){$(Pc,e._currentValue),e._currentValue=n}function jn(t){t._currentValue=Pc.current,Y(Pc)}function Vc(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Xc(t,e,n,i){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var o=u.dependencies;if(o!==null){var m=u.child;o=o.firstContext;t:for(;o!==null;){var g=o;o=u;for(var T=0;T<e.length;T++)if(g.context===e[T]){o.lanes|=n,g=o.alternate,g!==null&&(g.lanes|=n),Vc(o.return,n,t),i||(m=null);break t}o=g.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Vc(m,n,t),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===t){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Fi(t,e,n,i){t=null;for(var u=e,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var g=u.type;we(u.pendingProps.value,m.value)||(t!==null?t.push(g):t=[g])}}else if(u===yt.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(As):t=[As])}u=u.return}t!==null&&Xc(e,t,n,i),e.flags|=262144}function Ar(t){for(t=t.firstContext;t!==null;){if(!we(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function $a(t){Fa=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return zh(Fa,t)}function wr(t,e){return Fa===null&&$a(t),zh(t,e)}function zh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Mn===null){if(t===null)throw Error(r(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Mn=Mn.next=e;return n}var F0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$0=a.unstable_scheduleCallback,W0=a.unstable_NormalPriority,Jt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kc(){return{controller:new F0,data:new Map,refCount:0}}function is(t){t.refCount--,t.refCount===0&&$0(W0,function(){t.controller.abort()})}var ls=null,Zc=0,$i=0,Wi=null;function I0(t,e){if(ls===null){var n=ls=[];Zc=0,$i=Wo(),Wi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Zc++,e.then(Dh,Dh),e}function Dh(){if(--Zc===0&&ls!==null){Wi!==null&&(Wi.status="fulfilled");var t=ls;ls=null,$i=0,Wi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function tb(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(i.status="rejected",i.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),i}var qh=q.S;q.S=function(t,e){gy=Et(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&I0(t,e),qh!==null&&qh(t,e)};var Wa=O(null);function Jc(){var t=Wa.current;return t!==null?t:Lt.pooledCache}function Nr(t,e){e===null?$(Wa,Wa.current):$(Wa,e.pool)}function Uh(){var t=Jc();return t===null?null:{parent:Jt._currentValue,pool:t}}var Ii=Error(r(460)),Fc=Error(r(474)),zr=Error(r(542)),Dr={then:function(){}};function Lh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Hh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Tn,Tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qh(t),t;default:if(typeof e.status=="string")e.then(Tn,Tn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=i}},function(i){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qh(t),t}throw ti=e,Ii}}function Ia(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ti=n,Ii):n}}var ti=null;function Bh(){if(ti===null)throw Error(r(459));var t=ti;return ti=null,t}function Qh(t){if(t===Ii||t===zr)throw Error(r(483))}var tl=null,ss=0;function qr(t){var e=ss;return ss+=1,tl===null&&(tl=[]),Hh(tl,t,e)}function rs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ur(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Gh(t){function e(C,E){if(t){var w=C.deletions;w===null?(C.deletions=[E],C.flags|=16):w.push(E)}}function n(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function i(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function u(C,E){return C=En(C,E),C.index=0,C.sibling=null,C}function o(C,E,w){return C.index=w,t?(w=C.alternate,w!==null?(w=w.index,w<E?(C.flags|=67108866,E):w):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function m(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function g(C,E,w,Q){return E===null||E.tag!==6?(E=Hc(w,C.mode,Q),E.return=C,E):(E=u(E,w),E.return=C,E)}function T(C,E,w,Q){var st=w.type;return st===j?L(C,E,w.props.children,Q,w.key):E!==null&&(E.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===k&&Ia(st)===E.type)?(E=u(E,w.props),rs(E,w),E.return=C,E):(E=jr(w.type,w.key,w.props,null,C.mode,Q),rs(E,w),E.return=C,E)}function N(C,E,w,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==w.containerInfo||E.stateNode.implementation!==w.implementation?(E=Bc(w,C.mode,Q),E.return=C,E):(E=u(E,w.children||[]),E.return=C,E)}function L(C,E,w,Q,st){return E===null||E.tag!==7?(E=Za(w,C.mode,Q,st),E.return=C,E):(E=u(E,w),E.return=C,E)}function G(C,E,w){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Hc(""+E,C.mode,w),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case S:return w=jr(E.type,E.key,E.props,null,C.mode,w),rs(w,E),w.return=C,w;case M:return E=Bc(E,C.mode,w),E.return=C,E;case k:return E=Ia(E),G(C,E,w)}if(le(E)||ot(E))return E=Za(E,C.mode,w,null),E.return=C,E;if(typeof E.then=="function")return G(C,qr(E),w);if(E.$$typeof===P)return G(C,wr(C,E),w);Ur(C,E)}return null}function z(C,E,w,Q){var st=E!==null?E.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return st!==null?null:g(C,E,""+w,Q);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case S:return w.key===st?T(C,E,w,Q):null;case M:return w.key===st?N(C,E,w,Q):null;case k:return w=Ia(w),z(C,E,w,Q)}if(le(w)||ot(w))return st!==null?null:L(C,E,w,Q,null);if(typeof w.then=="function")return z(C,E,qr(w),Q);if(w.$$typeof===P)return z(C,E,wr(C,w),Q);Ur(C,w)}return null}function D(C,E,w,Q,st){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(w)||null,g(E,C,""+Q,st);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return C=C.get(Q.key===null?w:Q.key)||null,T(E,C,Q,st);case M:return C=C.get(Q.key===null?w:Q.key)||null,N(E,C,Q,st);case k:return Q=Ia(Q),D(C,E,w,Q,st)}if(le(Q)||ot(Q))return C=C.get(w)||null,L(E,C,Q,st,null);if(typeof Q.then=="function")return D(C,E,w,qr(Q),st);if(Q.$$typeof===P)return D(C,E,w,wr(E,Q),st);Ur(E,Q)}return null}function et(C,E,w,Q){for(var st=null,Tt=null,at=E,ht=E=0,bt=null;at!==null&&ht<w.length;ht++){at.index>ht?(bt=at,at=null):bt=at.sibling;var Rt=z(C,at,w[ht],Q);if(Rt===null){at===null&&(at=bt);break}t&&at&&Rt.alternate===null&&e(C,at),E=o(Rt,E,ht),Tt===null?st=Rt:Tt.sibling=Rt,Tt=Rt,at=bt}if(ht===w.length)return n(C,at),St&&On(C,ht),st;if(at===null){for(;ht<w.length;ht++)at=G(C,w[ht],Q),at!==null&&(E=o(at,E,ht),Tt===null?st=at:Tt.sibling=at,Tt=at);return St&&On(C,ht),st}for(at=i(at);ht<w.length;ht++)bt=D(at,C,ht,w[ht],Q),bt!==null&&(t&&bt.alternate!==null&&at.delete(bt.key===null?ht:bt.key),E=o(bt,E,ht),Tt===null?st=bt:Tt.sibling=bt,Tt=bt);return t&&at.forEach(function(Ra){return e(C,Ra)}),St&&On(C,ht),st}function rt(C,E,w,Q){if(w==null)throw Error(r(151));for(var st=null,Tt=null,at=E,ht=E=0,bt=null,Rt=w.next();at!==null&&!Rt.done;ht++,Rt=w.next()){at.index>ht?(bt=at,at=null):bt=at.sibling;var Ra=z(C,at,Rt.value,Q);if(Ra===null){at===null&&(at=bt);break}t&&at&&Ra.alternate===null&&e(C,at),E=o(Ra,E,ht),Tt===null?st=Ra:Tt.sibling=Ra,Tt=Ra,at=bt}if(Rt.done)return n(C,at),St&&On(C,ht),st;if(at===null){for(;!Rt.done;ht++,Rt=w.next())Rt=G(C,Rt.value,Q),Rt!==null&&(E=o(Rt,E,ht),Tt===null?st=Rt:Tt.sibling=Rt,Tt=Rt);return St&&On(C,ht),st}for(at=i(at);!Rt.done;ht++,Rt=w.next())Rt=D(at,C,ht,Rt.value,Q),Rt!==null&&(t&&Rt.alternate!==null&&at.delete(Rt.key===null?ht:Rt.key),E=o(Rt,E,ht),Tt===null?st=Rt:Tt.sibling=Rt,Tt=Rt);return t&&at.forEach(function(fS){return e(C,fS)}),St&&On(C,ht),st}function Ut(C,E,w,Q){if(typeof w=="object"&&w!==null&&w.type===j&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case S:t:{for(var st=w.key;E!==null;){if(E.key===st){if(st=w.type,st===j){if(E.tag===7){n(C,E.sibling),Q=u(E,w.props.children),Q.return=C,C=Q;break t}}else if(E.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===k&&Ia(st)===E.type){n(C,E.sibling),Q=u(E,w.props),rs(Q,w),Q.return=C,C=Q;break t}n(C,E);break}else e(C,E);E=E.sibling}w.type===j?(Q=Za(w.props.children,C.mode,Q,w.key),Q.return=C,C=Q):(Q=jr(w.type,w.key,w.props,null,C.mode,Q),rs(Q,w),Q.return=C,C=Q)}return m(C);case M:t:{for(st=w.key;E!==null;){if(E.key===st)if(E.tag===4&&E.stateNode.containerInfo===w.containerInfo&&E.stateNode.implementation===w.implementation){n(C,E.sibling),Q=u(E,w.children||[]),Q.return=C,C=Q;break t}else{n(C,E);break}else e(C,E);E=E.sibling}Q=Bc(w,C.mode,Q),Q.return=C,C=Q}return m(C);case k:return w=Ia(w),Ut(C,E,w,Q)}if(le(w))return et(C,E,w,Q);if(ot(w)){if(st=ot(w),typeof st!="function")throw Error(r(150));return w=st.call(w),rt(C,E,w,Q)}if(typeof w.then=="function")return Ut(C,E,qr(w),Q);if(w.$$typeof===P)return Ut(C,E,wr(C,w),Q);Ur(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,E!==null&&E.tag===6?(n(C,E.sibling),Q=u(E,w),Q.return=C,C=Q):(n(C,E),Q=Hc(w,C.mode,Q),Q.return=C,C=Q),m(C)):n(C,E)}return function(C,E,w,Q){try{ss=0;var st=Ut(C,E,w,Q);return tl=null,st}catch(at){if(at===Ii||at===zr)throw at;var Tt=Ne(29,at,null,C.mode);return Tt.lanes=Q,Tt.return=C,Tt}finally{}}}var ei=Gh(!0),Yh=Gh(!1),ra=!1;function $c(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ua(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ca(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Ot&2)!==0){var u=i.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),i.pending=e,e=Mr(t),Eh(t,null,n),e}return Or(t,i,e,n),Mr(t)}function us(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,zd(t,n)}}function Ic(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var u=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?u=o=e:o=o.next=e}else u=o=e;n={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var to=!1;function cs(){if(to){var t=Wi;if(t!==null)throw t}}function os(t,e,n,i){to=!1;var u=t.updateQueue;ra=!1;var o=u.firstBaseUpdate,m=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var T=g,N=T.next;T.next=null,m===null?o=N:m.next=N,m=T;var L=t.alternate;L!==null&&(L=L.updateQueue,g=L.lastBaseUpdate,g!==m&&(g===null?L.firstBaseUpdate=N:g.next=N,L.lastBaseUpdate=T))}if(o!==null){var G=u.baseState;m=0,L=N=T=null,g=o;do{var z=g.lane&-536870913,D=z!==g.lane;if(D?(gt&z)===z:(i&z)===z){z!==0&&z===$i&&(to=!0),L!==null&&(L=L.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var et=t,rt=g;z=e;var Ut=n;switch(rt.tag){case 1:if(et=rt.payload,typeof et=="function"){G=et.call(Ut,G,z);break t}G=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=rt.payload,z=typeof et=="function"?et.call(Ut,G,z):et,z==null)break t;G=v({},G,z);break t;case 2:ra=!0}}z=g.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=u.callbacks,D===null?u.callbacks=[z]:D.push(z))}else D={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},L===null?(N=L=D,T=G):L=L.next=D,m|=z;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;D=g,g=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);L===null&&(T=G),u.baseState=T,u.firstBaseUpdate=N,u.lastBaseUpdate=L,o===null&&(u.shared.lanes=0),ma|=m,t.lanes=m,t.memoizedState=G}}function Kh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Ph(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Kh(n[t],e)}var el=O(null),Lr=O(0);function Vh(t,e){t=Ln,$(Lr,t),$(el,e),Ln=t|e.baseLanes}function eo(){$(Lr,Ln),$(el,el.current)}function no(){Ln=Lr.current,Y(el),Y(Lr)}var ze=O(null),ke=null;function oa(t){var e=t.alternate;$(Pt,Pt.current&1),$(ze,t),ke===null&&(e===null||el.current!==null||e.memoizedState!==null)&&(ke=t)}function ao(t){$(Pt,Pt.current),$(ze,t),ke===null&&(ke=t)}function Xh(t){t.tag===22?($(Pt,Pt.current),$(ze,t),ke===null&&(ke=t)):fa()}function fa(){$(Pt,Pt.current),$(ze,ze.current)}function De(t){Y(ze),ke===t&&(ke=null),Y(Pt)}var Pt=O(0);function Hr(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ff(n)||df(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cn=0,dt=null,Dt=null,Ft=null,Br=!1,nl=!1,ni=!1,Qr=0,fs=0,al=null,eb=0;function Gt(){throw Error(r(321))}function io(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!we(t[n],e[n]))return!1;return!0}function lo(t,e,n,i,u,o){return Cn=o,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,q.H=t===null||t.memoizedState===null?Cm:xo,ni=!1,o=n(i,u),ni=!1,nl&&(o=Zh(e,n,i,u)),kh(t),o}function kh(t){q.H=ms;var e=Dt!==null&&Dt.next!==null;if(Cn=0,Ft=Dt=dt=null,Br=!1,fs=0,al=null,e)throw Error(r(300));t===null||$t||(t=t.dependencies,t!==null&&Ar(t)&&($t=!0))}function Zh(t,e,n,i){dt=t;var u=0;do{if(nl&&(al=null),fs=0,nl=!1,25<=u)throw Error(r(301));if(u+=1,Ft=Dt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}q.H=Am,o=e(n,i)}while(nl);return o}function nb(){var t=q.H,e=t.useState()[0];return e=typeof e.then=="function"?ds(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(dt.flags|=1024),e}function so(){var t=Qr!==0;return Qr=0,t}function ro(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function uo(t){if(Br){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Br=!1}Cn=0,Ft=Dt=dt=null,nl=!1,fs=Qr=0,al=null}function he(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Vt(){if(Dt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Ft===null?dt.memoizedState:Ft.next;if(e!==null)Ft=e,Dt=t;else{if(t===null)throw dt.alternate===null?Error(r(467)):Error(r(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function Gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(t){var e=fs;return fs+=1,al===null&&(al=[]),t=Hh(al,t,e),e=dt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,q.H=e===null||e.memoizedState===null?Cm:xo),t}function Yr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ds(t);if(t.$$typeof===P)return ue(t)}throw Error(r(438,String(t)))}function co(t){var e=null,n=dt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=dt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Gr(),dt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=X;return e.index++,n}function An(t,e){return typeof e=="function"?e(t):e}function Kr(t){var e=Vt();return oo(e,Dt,t)}function oo(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=t.baseQueue,o=i.pending;if(o!==null){if(u!==null){var m=u.next;u.next=o.next,o.next=m}e.baseQueue=u=o,i.pending=null}if(o=t.baseState,u===null)t.memoizedState=o;else{e=u.next;var g=m=null,T=null,N=e,L=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(gt&G)===G:(Cn&G)===G){var z=N.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===$i&&(L=!0);else if((Cn&z)===z){N=N.next,z===$i&&(L=!0);continue}else G={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=G,m=o):T=T.next=G,dt.lanes|=z,ma|=z;G=N.action,ni&&n(o,G),o=N.hasEagerState?N.eagerState:n(o,G)}else z={lane:G,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=z,m=o):T=T.next=z,dt.lanes|=G,ma|=G;N=N.next}while(N!==null&&N!==e);if(T===null?m=o:T.next=g,!we(o,t.memoizedState)&&($t=!0,L&&(n=Wi,n!==null)))throw n;t.memoizedState=o,t.baseState=m,t.baseQueue=T,i.lastRenderedState=o}return u===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function fo(t){var e=Vt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,u=n.pending,o=e.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do o=t(o,m.action),m=m.next;while(m!==u);we(o,e.memoizedState)||($t=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Jh(t,e,n){var i=dt,u=Vt(),o=St;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=e();var m=!we((Dt||u).memoizedState,n);if(m&&(u.memoizedState=n,$t=!0),u=u.queue,yo(Wh.bind(null,i,u,t),[t]),u.getSnapshot!==e||m||Ft!==null&&Ft.memoizedState.tag&1){if(i.flags|=2048,il(9,{destroy:void 0},$h.bind(null,i,u,n,e),null),Lt===null)throw Error(r(349));o||(Cn&127)!==0||Fh(i,e,n)}return n}function Fh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=dt.updateQueue,e===null?(e=Gr(),dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function $h(t,e,n,i){e.value=n,e.getSnapshot=i,Ih(e)&&tm(t)}function Wh(t,e,n){return n(function(){Ih(e)&&tm(t)})}function Ih(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!we(t,n)}catch{return!0}}function tm(t){var e=ka(t,2);e!==null&&Te(e,t,2)}function ho(t){var e=he();if(typeof t=="function"){var n=t;if(t=n(),ni){ta(!0);try{n()}finally{ta(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:t},e}function em(t,e,n,i){return t.baseState=n,oo(t,Dt,typeof i=="function"?i:An)}function ab(t,e,n,i,u){if(Xr(t))throw Error(r(485));if(t=e.action,t!==null){var o={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};q.T!==null?n(!0):o.isTransition=!1,i(o),n=e.pending,n===null?(o.next=e.pending=o,nm(e,o)):(o.next=n.next,e.pending=n.next=o)}}function nm(t,e){var n=e.action,i=e.payload,u=t.state;if(e.isTransition){var o=q.T,m={};q.T=m;try{var g=n(u,i),T=q.S;T!==null&&T(m,g),am(t,e,g)}catch(N){mo(t,e,N)}finally{o!==null&&m.types!==null&&(o.types=m.types),q.T=o}}else try{o=n(u,i),am(t,e,o)}catch(N){mo(t,e,N)}}function am(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){im(t,e,i)},function(i){return mo(t,e,i)}):im(t,e,n)}function im(t,e,n){e.status="fulfilled",e.value=n,lm(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,nm(t,n)))}function mo(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,lm(e),e=e.next;while(e!==i)}t.action=null}function lm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function sm(t,e){return e}function rm(t,e){if(St){var n=Lt.formState;if(n!==null){t:{var i=dt;if(St){if(Ht){e:{for(var u=Ht,o=Xe;u.nodeType!==8;){if(!o){u=null;break e}if(u=Ze(u.nextSibling),u===null){u=null;break e}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){Ht=Ze(u.nextSibling),i=u.data==="F!";break t}}la(i)}i=!1}i&&(e=n[0])}}return n=he(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sm,lastRenderedState:e},n.queue=i,n=Om.bind(null,dt,i),i.dispatch=n,i=ho(!1),o=So.bind(null,dt,!1,i.queue),i=he(),u={state:e,dispatch:null,action:t,pending:null},i.queue=u,n=ab.bind(null,dt,u,o,n),u.dispatch=n,i.memoizedState=t,[e,n,!1]}function um(t){var e=Vt();return cm(e,Dt,t)}function cm(t,e,n){if(e=oo(t,e,sm)[0],t=Kr(An)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ds(e)}catch(m){throw m===Ii?zr:m}else i=e;e=Vt();var u=e.queue,o=u.dispatch;return n!==e.memoizedState&&(dt.flags|=2048,il(9,{destroy:void 0},ib.bind(null,u,n),null)),[i,o,t]}function ib(t,e){t.action=e}function om(t){var e=Vt(),n=Dt;if(n!==null)return cm(e,n,t);Vt(),e=e.memoizedState,n=Vt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function il(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=dt.updateQueue,e===null&&(e=Gr(),dt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function fm(){return Vt().memoizedState}function Pr(t,e,n,i){var u=he();dt.flags|=t,u.memoizedState=il(1|e,{destroy:void 0},n,i===void 0?null:i)}function Vr(t,e,n,i){var u=Vt();i=i===void 0?null:i;var o=u.memoizedState.inst;Dt!==null&&i!==null&&io(i,Dt.memoizedState.deps)?u.memoizedState=il(e,o,n,i):(dt.flags|=t,u.memoizedState=il(1|e,o,n,i))}function dm(t,e){Pr(8390656,8,t,e)}function yo(t,e){Vr(2048,8,t,e)}function lb(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=Gr(),dt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function hm(t){var e=Vt().memoizedState;return lb({ref:e,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function mm(t,e){return Vr(4,2,t,e)}function ym(t,e){return Vr(4,4,t,e)}function pm(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function vm(t,e,n){n=n!=null?n.concat([t]):null,Vr(4,4,pm.bind(null,e,t),n)}function po(){}function gm(t,e){var n=Vt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&io(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function bm(t,e){var n=Vt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&io(e,i[1]))return i[0];if(i=t(),ni){ta(!0);try{t()}finally{ta(!1)}}return n.memoizedState=[i,e],i}function vo(t,e,n){return n===void 0||(Cn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Sy(),dt.lanes|=t,ma|=t,n)}function Sm(t,e,n,i){return we(n,e)?n:el.current!==null?(t=vo(t,n,i),we(t,e)||($t=!0),t):(Cn&42)===0||(Cn&1073741824)!==0&&(gt&261930)===0?($t=!0,t.memoizedState=n):(t=Sy(),dt.lanes|=t,ma|=t,e)}function xm(t,e,n,i,u){var o=J.p;J.p=o!==0&&8>o?o:8;var m=q.T,g={};q.T=g,So(t,!1,e,n);try{var T=u(),N=q.S;if(N!==null&&N(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=tb(T,i);hs(t,e,L,Le(t))}else hs(t,e,i,Le(t))}catch(G){hs(t,e,{then:function(){},status:"rejected",reason:G},Le())}finally{J.p=o,m!==null&&g.types!==null&&(m.types=g.types),q.T=m}}function sb(){}function go(t,e,n,i){if(t.tag!==5)throw Error(r(476));var u=_m(t).queue;xm(t,u,e,it,n===null?sb:function(){return Tm(t),n(i)})}function _m(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Tm(t){var e=_m(t);e.next===null&&(e=t.alternate.memoizedState),hs(t,e.next.queue,{},Le())}function bo(){return ue(As)}function Rm(){return Vt().memoizedState}function Em(){return Vt().memoizedState}function rb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Le();t=ua(n);var i=ca(e,t,n);i!==null&&(Te(i,e,n),us(i,e,n)),e={cache:kc()},t.payload=e;return}e=e.return}}function ub(t,e,n){var i=Le();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xr(t)?Mm(e,n):(n=Uc(t,e,n,i),n!==null&&(Te(n,t,i),jm(n,e,i)))}function Om(t,e,n){var i=Le();hs(t,e,n,i)}function hs(t,e,n,i){var u={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xr(t))Mm(e,u);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var m=e.lastRenderedState,g=o(m,n);if(u.hasEagerState=!0,u.eagerState=g,we(g,m))return Or(t,e,u,0),Lt===null&&Er(),!1}catch{}finally{}if(n=Uc(t,e,u,i),n!==null)return Te(n,t,i),jm(n,e,i),!0}return!1}function So(t,e,n,i){if(i={lane:2,revertLane:Wo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Xr(t)){if(e)throw Error(r(479))}else e=Uc(t,n,i,2),e!==null&&Te(e,t,2)}function Xr(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function Mm(t,e){nl=Br=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function jm(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,zd(t,n)}}var ms={readContext:ue,use:Yr,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};ms.useEffectEvent=Gt;var Cm={readContext:ue,use:Yr,useCallback:function(t,e){return he().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:dm,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Pr(4194308,4,pm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Pr(4194308,4,t,e)},useInsertionEffect:function(t,e){Pr(4,2,t,e)},useMemo:function(t,e){var n=he();e=e===void 0?null:e;var i=t();if(ni){ta(!0);try{t()}finally{ta(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=he();if(n!==void 0){var u=n(e);if(ni){ta(!0);try{n(e)}finally{ta(!1)}}}else u=e;return i.memoizedState=i.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},i.queue=t,t=t.dispatch=ub.bind(null,dt,t),[i.memoizedState,t]},useRef:function(t){var e=he();return t={current:t},e.memoizedState=t},useState:function(t){t=ho(t);var e=t.queue,n=Om.bind(null,dt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:po,useDeferredValue:function(t,e){var n=he();return vo(n,t,e)},useTransition:function(){var t=ho(!1);return t=xm.bind(null,dt,t.queue,!0,!1),he().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=dt,u=he();if(St){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Lt===null)throw Error(r(349));(gt&127)!==0||Fh(i,e,n)}u.memoizedState=n;var o={value:n,getSnapshot:e};return u.queue=o,dm(Wh.bind(null,i,o,t),[t]),i.flags|=2048,il(9,{destroy:void 0},$h.bind(null,i,o,n,e),null),n},useId:function(){var t=he(),e=Lt.identifierPrefix;if(St){var n=on,i=cn;n=(i&~(1<<32-Ae(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Qr++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=eb++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bo,useFormState:rm,useActionState:rm,useOptimistic:function(t){var e=he();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=So.bind(null,dt,!0,n),n.dispatch=e,[t,e]},useMemoCache:co,useCacheRefresh:function(){return he().memoizedState=rb.bind(null,dt)},useEffectEvent:function(t){var e=he(),n={impl:t};return e.memoizedState=n,function(){if((Ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},xo={readContext:ue,use:Yr,useCallback:gm,useContext:ue,useEffect:yo,useImperativeHandle:vm,useInsertionEffect:mm,useLayoutEffect:ym,useMemo:bm,useReducer:Kr,useRef:fm,useState:function(){return Kr(An)},useDebugValue:po,useDeferredValue:function(t,e){var n=Vt();return Sm(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Kr(An)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:ds(t),e]},useSyncExternalStore:Jh,useId:Rm,useHostTransitionStatus:bo,useFormState:um,useActionState:um,useOptimistic:function(t,e){var n=Vt();return em(n,Dt,t,e)},useMemoCache:co,useCacheRefresh:Em};xo.useEffectEvent=hm;var Am={readContext:ue,use:Yr,useCallback:gm,useContext:ue,useEffect:yo,useImperativeHandle:vm,useInsertionEffect:mm,useLayoutEffect:ym,useMemo:bm,useReducer:fo,useRef:fm,useState:function(){return fo(An)},useDebugValue:po,useDeferredValue:function(t,e){var n=Vt();return Dt===null?vo(n,t,e):Sm(n,Dt.memoizedState,t,e)},useTransition:function(){var t=fo(An)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:ds(t),e]},useSyncExternalStore:Jh,useId:Rm,useHostTransitionStatus:bo,useFormState:om,useActionState:om,useOptimistic:function(t,e){var n=Vt();return Dt!==null?em(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:co,useCacheRefresh:Em};Am.useEffectEvent=hm;function _o(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var To={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Le(),u=ua(i);u.payload=e,n!=null&&(u.callback=n),e=ca(t,u,i),e!==null&&(Te(e,t,i),us(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Le(),u=ua(i);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=ca(t,u,i),e!==null&&(Te(e,t,i),us(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Le(),i=ua(n);i.tag=2,e!=null&&(i.callback=e),e=ca(t,i,n),e!==null&&(Te(e,t,n),us(e,t,n))}};function wm(t,e,n,i,u,o,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,m):e.prototype&&e.prototype.isPureReactComponent?!ts(n,i)||!ts(u,o):!0}function Nm(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&To.enqueueReplaceState(e,e.state,null)}function ai(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function zm(t){Rr(t)}function Dm(t){console.error(t)}function qm(t){Rr(t)}function kr(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Um(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ro(t,e,n){return n=ua(n),n.tag=3,n.payload={element:null},n.callback=function(){kr(t,e)},n}function Lm(t){return t=ua(t),t.tag=3,t}function Hm(t,e,n,i){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var o=i.value;t.payload=function(){return u(o)},t.callback=function(){Um(e,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Um(e,n,i),typeof u!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function cb(t,e,n,i,u){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Fi(e,n,u,!0),n=ze.current,n!==null){switch(n.tag){case 31:case 13:return ke===null?lu():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,i===Dr?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Jo(t,i,u)),!1;case 22:return n.flags|=65536,i===Dr?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Jo(t,i,u)),!1}throw Error(r(435,n.tag))}return Jo(t,i,u),lu(),!1}if(St)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,i!==Yc&&(t=Error(r(422),{cause:i}),as(Ke(t,n)))):(i!==Yc&&(e=Error(r(423),{cause:i}),as(Ke(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,i=Ke(i,n),u=Ro(t.stateNode,i,u),Ic(t,u),Yt!==4&&(Yt=2)),!1;var o=Error(r(520),{cause:i});if(o=Ke(o,n),_s===null?_s=[o]:_s.push(o),Yt!==4&&(Yt=2),e===null)return!0;i=Ke(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Ro(n.stateNode,i,t),Ic(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ya===null||!ya.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Lm(u),Hm(u,t,n,i),Ic(n,u),!1}n=n.return}while(n!==null);return!1}var Eo=Error(r(461)),$t=!1;function ce(t,e,n,i){e.child=t===null?Yh(e,null,n,i):ei(e,t.child,n,i)}function Bm(t,e,n,i,u){n=n.render;var o=e.ref;if("ref"in i){var m={};for(var g in i)g!=="ref"&&(m[g]=i[g])}else m=i;return $a(e),i=lo(t,e,n,m,o,u),g=so(),t!==null&&!$t?(ro(t,e,u),wn(t,e,u)):(St&&g&&Qc(e),e.flags|=1,ce(t,e,i,u),e.child)}function Qm(t,e,n,i,u){if(t===null){var o=n.type;return typeof o=="function"&&!Lc(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Gm(t,e,o,i,u)):(t=jr(n.type,null,i,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!zo(t,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:ts,n(m,i)&&t.ref===e.ref)return wn(t,e,u)}return e.flags|=1,t=En(o,i),t.ref=e.ref,t.return=e,e.child=t}function Gm(t,e,n,i,u){if(t!==null){var o=t.memoizedProps;if(ts(o,i)&&t.ref===e.ref)if($t=!1,e.pendingProps=i=o,zo(t,u))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,wn(t,e,u)}return Oo(t,e,n,i,u)}function Ym(t,e,n,i){var u=i.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(i=e.child=t.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~o}else i=0,e.child=null;return Km(t,e,o,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Nr(e,o!==null?o.cachePool:null),o!==null?Vh(e,o):eo(),Xh(e);else return i=e.lanes=536870912,Km(t,e,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Nr(e,o.cachePool),Vh(e,o),fa(),e.memoizedState=null):(t!==null&&Nr(e,null),eo(),fa());return ce(t,e,u,n),e.child}function ys(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Km(t,e,n,i,u){var o=Jc();return o=o===null?null:{parent:Jt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&Nr(e,null),eo(),Xh(e),t!==null&&Fi(t,e,i,!0),e.childLanes=u,null}function Zr(t,e){return e=Fr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Pm(t,e,n){return ei(e,t.child,null,n),t=Zr(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function ob(t,e,n){var i=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(i.mode==="hidden")return t=Zr(e,i),e.lanes=536870912,ys(null,t);if(ao(e),(t=Ht)?(t=np(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:aa!==null?{id:cn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Mh(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw la(e);return e.lanes=536870912,null}return Zr(e,i)}var o=t.memoizedState;if(o!==null){var m=o.dehydrated;if(ao(e),u)if(e.flags&256)e.flags&=-257,e=Pm(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if($t||Fi(t,e,n,!1),u=(n&t.childLanes)!==0,$t||u){if(i=Lt,i!==null&&(m=Dd(i,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,ka(t,m),Te(i,t,m),Eo;lu(),e=Pm(t,e,n)}else t=o.treeContext,Ht=Ze(m.nextSibling),re=e,St=!0,ia=null,Xe=!1,t!==null&&Ah(e,t),e=Zr(e,i),e.flags|=4096;return e}return t=En(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Jr(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Oo(t,e,n,i,u){return $a(e),n=lo(t,e,n,i,void 0,u),i=so(),t!==null&&!$t?(ro(t,e,u),wn(t,e,u)):(St&&i&&Qc(e),e.flags|=1,ce(t,e,n,u),e.child)}function Vm(t,e,n,i,u,o){return $a(e),e.updateQueue=null,n=Zh(e,i,n,u),kh(t),i=so(),t!==null&&!$t?(ro(t,e,o),wn(t,e,o)):(St&&i&&Qc(e),e.flags|=1,ce(t,e,n,o),e.child)}function Xm(t,e,n,i,u){if($a(e),e.stateNode===null){var o=Xi,m=n.contextType;typeof m=="object"&&m!==null&&(o=ue(m)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=To,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},$c(e),m=n.contextType,o.context=typeof m=="object"&&m!==null?ue(m):Xi,o.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(_o(e,n,m,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&To.enqueueReplaceState(o,o.state,null),os(e,i,o,u),cs(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var g=e.memoizedProps,T=ai(n,g);o.props=T;var N=o.context,L=n.contextType;m=Xi,typeof L=="object"&&L!==null&&(m=ue(L));var G=n.getDerivedStateFromProps;L=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,L||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(g||N!==m)&&Nm(e,o,i,m),ra=!1;var z=e.memoizedState;o.state=z,os(e,i,o,u),cs(),N=e.memoizedState,g||z!==N||ra?(typeof G=="function"&&(_o(e,n,G,i),N=e.memoizedState),(T=ra||wm(e,n,T,i,z,N,m))?(L||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=N),o.props=i,o.state=N,o.context=m,i=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,Wc(t,e),m=e.memoizedProps,L=ai(n,m),o.props=L,G=e.pendingProps,z=o.context,N=n.contextType,T=Xi,typeof N=="object"&&N!==null&&(T=ue(N)),g=n.getDerivedStateFromProps,(N=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==G||z!==T)&&Nm(e,o,i,T),ra=!1,z=e.memoizedState,o.state=z,os(e,i,o,u),cs();var D=e.memoizedState;m!==G||z!==D||ra||t!==null&&t.dependencies!==null&&Ar(t.dependencies)?(typeof g=="function"&&(_o(e,n,g,i),D=e.memoizedState),(L=ra||wm(e,n,L,i,z,D,T)||t!==null&&t.dependencies!==null&&Ar(t.dependencies))?(N||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,D,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,D,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=D),o.props=i,o.state=D,o.context=T,i=L):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,Jr(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=ei(e,t.child,null,u),e.child=ei(e,null,n,u)):ce(t,e,n,u),e.memoizedState=o.state,t=e.child):t=wn(t,e,u),t}function km(t,e,n,i){return Ja(),e.flags|=256,ce(t,e,n,i),e.child}var Mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jo(t){return{baseLanes:t,cachePool:Uh()}}function Co(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ue),t}function Zm(t,e,n){var i=e.pendingProps,u=!1,o=(e.flags&128)!==0,m;if((m=o)||(m=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),m&&(u=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(u?oa(e):fa(),(t=Ht)?(t=np(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:aa!==null?{id:cn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Mh(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw la(e);return df(t)?e.lanes=32:e.lanes=536870912,null}var g=i.children;return i=i.fallback,u?(fa(),u=e.mode,g=Fr({mode:"hidden",children:g},u),i=Za(i,u,n,null),g.return=e,i.return=e,g.sibling=i,e.child=g,i=e.child,i.memoizedState=jo(n),i.childLanes=Co(t,m,n),e.memoizedState=Mo,ys(null,i)):(oa(e),Ao(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(o)e.flags&256?(oa(e),e.flags&=-257,e=wo(t,e,n)):e.memoizedState!==null?(fa(),e.child=t.child,e.flags|=128,e=null):(fa(),g=i.fallback,u=e.mode,i=Fr({mode:"visible",children:i.children},u),g=Za(g,u,n,null),g.flags|=2,i.return=e,g.return=e,i.sibling=g,e.child=i,ei(e,t.child,null,n),i=e.child,i.memoizedState=jo(n),i.childLanes=Co(t,m,n),e.memoizedState=Mo,e=ys(null,i));else if(oa(e),df(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var N=m.dgst;m=N,i=Error(r(419)),i.stack="",i.digest=m,as({value:i,source:null,stack:null}),e=wo(t,e,n)}else if($t||Fi(t,e,n,!1),m=(n&t.childLanes)!==0,$t||m){if(m=Lt,m!==null&&(i=Dd(m,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,ka(t,i),Te(m,t,i),Eo;ff(g)||lu(),e=wo(t,e,n)}else ff(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ht=Ze(g.nextSibling),re=e,St=!0,ia=null,Xe=!1,t!==null&&Ah(e,t),e=Ao(e,i.children),e.flags|=4096);return e}return u?(fa(),g=i.fallback,u=e.mode,T=t.child,N=T.sibling,i=En(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,N!==null?g=En(N,g):(g=Za(g,u,n,null),g.flags|=2),g.return=e,i.return=e,i.sibling=g,e.child=i,ys(null,i),i=e.child,g=t.child.memoizedState,g===null?g=jo(n):(u=g.cachePool,u!==null?(T=Jt._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Uh(),g={baseLanes:g.baseLanes|n,cachePool:u}),i.memoizedState=g,i.childLanes=Co(t,m,n),e.memoizedState=Mo,ys(t.child,i)):(oa(e),n=t.child,t=n.sibling,n=En(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=n,e.memoizedState=null,n)}function Ao(t,e){return e=Fr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Fr(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function wo(t,e,n){return ei(e,t.child,null,n),t=Ao(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Jm(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Vc(t.return,e,n)}function No(t,e,n,i,u,o){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:u,treeForkCount:o}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=u,m.treeForkCount=o)}function Fm(t,e,n){var i=e.pendingProps,u=i.revealOrder,o=i.tail;i=i.children;var m=Pt.current,g=(m&2)!==0;if(g?(m=m&1|2,e.flags|=128):m&=1,$(Pt,m),ce(t,e,i,n),i=St?ns:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Jm(t,n,e);else if(t.tag===19)Jm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&Hr(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),No(e,!1,u,n,o,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Hr(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}No(e,!0,n,null,o,i);break;case"together":No(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function wn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ma|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Fi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=En(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=En(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ar(t)))}function fb(t,e,n){switch(e.tag){case 3:Zt(e,e.stateNode.containerInfo),sa(e,Jt,t.memoizedState.cache),Ja();break;case 27:case 5:Sn(e);break;case 4:Zt(e,e.stateNode.containerInfo);break;case 10:sa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ao(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(oa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Zm(t,e,n):(oa(e),t=wn(t,e,n),t!==null?t.sibling:null);oa(e);break;case 19:var u=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Fi(t,e,n,!1),i=(n&e.childLanes)!==0),u){if(i)return Fm(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(Pt,Pt.current),i)break;return null;case 22:return e.lanes=0,Ym(t,e,n,e.pendingProps);case 24:sa(e,Jt,t.memoizedState.cache)}return wn(t,e,n)}function $m(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!zo(t,n)&&(e.flags&128)===0)return $t=!1,fb(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,St&&(e.flags&1048576)!==0&&Ch(e,ns,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=Ia(e.elementType),e.type=t,typeof t=="function")Lc(t)?(i=ai(t,i),e.tag=1,e=Xm(null,e,t,i,n)):(e.tag=0,e=Oo(null,e,t,i,n));else{if(t!=null){var u=t.$$typeof;if(u===B){e.tag=11,e=Bm(null,e,t,i,n);break t}else if(u===H){e.tag=14,e=Qm(null,e,t,i,n);break t}}throw e=kt(t)||t,Error(r(306,e,""))}}return e;case 0:return Oo(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,u=ai(i,e.pendingProps),Xm(t,e,i,u,n);case 3:t:{if(Zt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var o=e.memoizedState;u=o.element,Wc(t,e),os(e,i,null,n);var m=e.memoizedState;if(i=m.cache,sa(e,Jt,i),i!==o.cache&&Xc(e,[Jt],n,!0),cs(),i=m.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=km(t,e,i,n);break t}else if(i!==u){u=Ke(Error(r(424)),e),as(u),e=km(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ht=Ze(t.firstChild),re=e,St=!0,ia=null,Xe=!0,n=Yh(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ja(),i===u){e=wn(t,e,n);break t}ce(t,e,i,n)}e=e.child}return e;case 26:return Jr(t,e),t===null?(n=up(e.type,null,e.pendingProps,null))?e.memoizedState=n:St||(n=e.type,t=e.pendingProps,i=du(ct.current).createElement(n),i[se]=e,i[ve]=t,oe(i,n,t),ee(i),e.stateNode=i):e.memoizedState=up(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Sn(e),t===null&&St&&(i=e.stateNode=lp(e.type,e.pendingProps,ct.current),re=e,Xe=!0,u=Ht,ba(e.type)?(hf=u,Ht=Ze(i.firstChild)):Ht=u),ce(t,e,e.pendingProps.children,n),Jr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((u=i=Ht)&&(i=Gb(i,e.type,e.pendingProps,Xe),i!==null?(e.stateNode=i,re=e,Ht=Ze(i.firstChild),Xe=!1,u=!0):u=!1),u||la(e)),Sn(e),u=e.type,o=e.pendingProps,m=t!==null?t.memoizedProps:null,i=o.children,uf(u,o)?i=null:m!==null&&uf(u,m)&&(e.flags|=32),e.memoizedState!==null&&(u=lo(t,e,nb,null,null,n),As._currentValue=u),Jr(t,e),ce(t,e,i,n),e.child;case 6:return t===null&&St&&((t=n=Ht)&&(n=Yb(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Ht=null,t=!0):t=!1),t||la(e)),null;case 13:return Zm(t,e,n);case 4:return Zt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ei(e,null,i,n):ce(t,e,i,n),e.child;case 11:return Bm(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,sa(e,e.type,i.value),ce(t,e,i.children,n),e.child;case 9:return u=e.type._context,i=e.pendingProps.children,$a(e),u=ue(u),i=i(u),e.flags|=1,ce(t,e,i,n),e.child;case 14:return Qm(t,e,e.type,e.pendingProps,n);case 15:return Gm(t,e,e.type,e.pendingProps,n);case 19:return Fm(t,e,n);case 31:return ob(t,e,n);case 22:return Ym(t,e,n,e.pendingProps);case 24:return $a(e),i=ue(Jt),t===null?(u=Jc(),u===null&&(u=Lt,o=kc(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),e.memoizedState={parent:i,cache:u},$c(e),sa(e,Jt,u)):((t.lanes&n)!==0&&(Wc(t,e),os(e,null,null,n),cs()),u=t.memoizedState,o=e.memoizedState,u.parent!==i?(u={parent:i,cache:i},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),sa(e,Jt,i)):(i=o.cache,sa(e,Jt,i),i!==u.cache&&Xc(e,[Jt],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Nn(t){t.flags|=4}function Do(t,e,n,i,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Ry())t.flags|=8192;else throw ti=Dr,Fc}else t.flags&=-16777217}function Wm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!hp(e))if(Ry())t.flags|=8192;else throw ti=Dr,Fc}function $r(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?wd():536870912,t.lanes|=e,ul|=e)}function ps(t,e){if(!St)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function db(t,e,n){var i=e.pendingProps;switch(Gc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),jn(Jt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ji(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Kc())),Bt(e),null;case 26:var u=e.type,o=e.memoizedState;return t===null?(Nn(e),o!==null?(Bt(e),Wm(e,o)):(Bt(e),Do(e,u,null,i,n))):o?o!==t.memoizedState?(Nn(e),Bt(e),Wm(e,o)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&Nn(e),Bt(e),Do(e,u,t,i,n)),null;case 27:if($n(e),n=ct.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Nn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}t=tt.current,Ji(e)?wh(e):(t=lp(u,i,n),e.stateNode=t,Nn(e))}return Bt(e),null;case 5:if($n(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Nn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}if(o=tt.current,Ji(e))wh(e);else{var m=du(ct.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?m.createElement(u,{is:i.is}):m.createElement(u)}}o[se]=e,o[ve]=i;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=o;t:switch(oe(o,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&Nn(e)}}return Bt(e),Do(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Nn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=ct.current,Ji(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,u=re,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}t[se]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Zy(t.nodeValue,n)),t||la(e,!0)}else t=du(t).createTextNode(i),t[se]=e,e.stateNode=t}return Bt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Ji(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[se]=e}else Ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else n=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Bt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ji(e),i!==null&&i.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[se]=e}else Ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),u=!1}else u=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==u&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),$r(e,e.updateQueue),Bt(e),null);case 4:return zt(),t===null&&nf(e.stateNode.containerInfo),Bt(e),null;case 10:return jn(e.type),Bt(e),null;case 19:if(Y(Pt),i=e.memoizedState,i===null)return Bt(e),null;if(u=(e.flags&128)!==0,o=i.rendering,o===null)if(u)ps(i,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=Hr(t),o!==null){for(e.flags|=128,ps(i,!1),t=o.updateQueue,e.updateQueue=t,$r(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Oh(n,t),n=n.sibling;return $(Pt,Pt.current&1|2),St&&On(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Et()>nu&&(e.flags|=128,u=!0,ps(i,!1),e.lanes=4194304)}else{if(!u)if(t=Hr(o),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,$r(e,t),ps(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!St)return Bt(e),null}else 2*Et()-i.renderingStartTime>nu&&n!==536870912&&(e.flags|=128,u=!0,ps(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Et(),t.sibling=null,n=Pt.current,$(Pt,u?n&1|2:n&1),St&&On(e,i.treeForkCount),t):(Bt(e),null);case 22:case 23:return De(e),no(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),n=e.updateQueue,n!==null&&$r(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&Y(Wa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),jn(Jt),Bt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function hb(t,e){switch(Gc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return jn(Jt),zt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $n(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(r(340));Ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Pt),null;case 4:return zt(),null;case 10:return jn(e.type),null;case 22:case 23:return De(e),no(),t!==null&&Y(Wa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return jn(Jt),null;case 25:return null;default:return null}}function Im(t,e){switch(Gc(e),e.tag){case 3:jn(Jt),zt();break;case 26:case 27:case 5:$n(e);break;case 4:zt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:Y(Pt);break;case 10:jn(e.type);break;case 22:case 23:De(e),no(),t!==null&&Y(Wa);break;case 24:jn(Jt)}}function vs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&t)===t){i=void 0;var o=n.create,m=n.inst;i=o(),m.destroy=i}n=n.next}while(n!==u)}}catch(g){wt(e,e.return,g)}}function da(t,e,n){try{var i=e.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var o=u.next;i=o;do{if((i.tag&t)===t){var m=i.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,u=e;var T=n,N=g;try{N()}catch(L){wt(u,T,L)}}}i=i.next}while(i!==o)}}catch(L){wt(e,e.return,L)}}function ty(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Ph(e,n)}catch(i){wt(t,t.return,i)}}}function ey(t,e,n){n.props=ai(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){wt(t,e,i)}}function gs(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(u){wt(t,e,u)}}function fn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(u){wt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){wt(t,e,u)}else n.current=null}function ny(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){wt(t,t.return,u)}}function qo(t,e,n){try{var i=t.stateNode;qb(i,t.type,n,e),i[ve]=e}catch(u){wt(t,t.return,u)}}function ay(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ba(t.type)||t.tag===4}function Uo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ay(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ba(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lo(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Tn));else if(i!==4&&(i===27&&ba(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Lo(t,e,n),t=t.sibling;t!==null;)Lo(t,e,n),t=t.sibling}function Wr(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&ba(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Wr(t,e,n),t=t.sibling;t!==null;)Wr(t,e,n),t=t.sibling}function iy(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);oe(e,i,n),e[se]=t,e[ve]=n}catch(o){wt(t,t.return,o)}}var zn=!1,Wt=!1,Ho=!1,ly=typeof WeakSet=="function"?WeakSet:Set,ne=null;function mb(t,e){if(t=t.containerInfo,sf=bu,t=vh(t),Ac(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var u=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var m=0,g=-1,T=-1,N=0,L=0,G=t,z=null;e:for(;;){for(var D;G!==n||u!==0&&G.nodeType!==3||(g=m+u),G!==o||i!==0&&G.nodeType!==3||(T=m+i),G.nodeType===3&&(m+=G.nodeValue.length),(D=G.firstChild)!==null;)z=G,G=D;for(;;){if(G===t)break e;if(z===n&&++N===u&&(g=m),z===o&&++L===i&&(T=m),(D=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=D}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(rf={focusedElem:t,selectionRange:n},bu=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,u=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var et=ai(n.type,u);t=i.getSnapshotBeforeUpdate(et,o),i.__reactInternalSnapshotBeforeUpdate=t}catch(rt){wt(n,n.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)of(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":of(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function sy(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:qn(t,n),i&4&&vs(5,n);break;case 1:if(qn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(m){wt(n,n.return,m)}else{var u=ai(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){wt(n,n.return,m)}}i&64&&ty(n),i&512&&gs(n,n.return);break;case 3:if(qn(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Ph(t,e)}catch(m){wt(n,n.return,m)}}break;case 27:e===null&&i&4&&iy(n);case 26:case 5:qn(t,n),e===null&&i&4&&ny(n),i&512&&gs(n,n.return);break;case 12:qn(t,n);break;case 31:qn(t,n),i&4&&cy(t,n);break;case 13:qn(t,n),i&4&&oy(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Tb.bind(null,n),Kb(t,n))));break;case 22:if(i=n.memoizedState!==null||zn,!i){e=e!==null&&e.memoizedState!==null||Wt,u=zn;var o=Wt;zn=i,(Wt=e)&&!o?Un(t,n,(n.subtreeFlags&8772)!==0):qn(t,n),zn=u,Wt=o}break;case 30:break;default:qn(t,n)}}function ry(t){var e=t.alternate;e!==null&&(t.alternate=null,ry(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,be=!1;function Dn(t,e,n){for(n=n.child;n!==null;)uy(t,e,n),n=n.sibling}function uy(t,e,n){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Yl,n)}catch{}switch(n.tag){case 26:Wt||fn(n,e),Dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||fn(n,e);var i=Qt,u=be;ba(n.type)&&(Qt=n.stateNode,be=!1),Dn(t,e,n),Ms(n.stateNode),Qt=i,be=u;break;case 5:Wt||fn(n,e);case 6:if(i=Qt,u=be,Qt=null,Dn(t,e,n),Qt=i,be=u,Qt!==null)if(be)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(n.stateNode)}catch(o){wt(n,e,o)}else try{Qt.removeChild(n.stateNode)}catch(o){wt(n,e,o)}break;case 18:Qt!==null&&(be?(t=Qt,tp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),pl(t)):tp(Qt,n.stateNode));break;case 4:i=Qt,u=be,Qt=n.stateNode.containerInfo,be=!0,Dn(t,e,n),Qt=i,be=u;break;case 0:case 11:case 14:case 15:da(2,n,e),Wt||da(4,n,e),Dn(t,e,n);break;case 1:Wt||(fn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&ey(n,e,i)),Dn(t,e,n);break;case 21:Dn(t,e,n);break;case 22:Wt=(i=Wt)||n.memoizedState!==null,Dn(t,e,n),Wt=i;break;default:Dn(t,e,n)}}function cy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pl(t)}catch(n){wt(e,e.return,n)}}}function oy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pl(t)}catch(n){wt(e,e.return,n)}}function yb(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ly),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ly),e;default:throw Error(r(435,t.tag))}}function Ir(t,e){var n=yb(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var u=Rb.bind(null,t,i);i.then(u,u)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var u=n[i],o=t,m=e,g=m;t:for(;g!==null;){switch(g.tag){case 27:if(ba(g.type)){Qt=g.stateNode,be=!1;break t}break;case 5:Qt=g.stateNode,be=!1;break t;case 3:case 4:Qt=g.stateNode.containerInfo,be=!0;break t}g=g.return}if(Qt===null)throw Error(r(160));uy(o,m,u),Qt=null,be=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)fy(e,t),e=e.sibling}var nn=null;function fy(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),xe(t),i&4&&(da(3,t,t.return),vs(3,t),da(5,t,t.return));break;case 1:Se(e,t),xe(t),i&512&&(Wt||n===null||fn(n,n.return)),i&64&&zn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var u=nn;if(Se(e,t),xe(t),i&512&&(Wt||n===null||fn(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(i){case"title":o=u.getElementsByTagName("title")[0],(!o||o[Vl]||o[se]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(i),u.head.insertBefore(o,u.querySelector("head > title"))),oe(o,i,n),o[se]=t,ee(o),i=o;break t;case"link":var m=fp("link","href",u).get(i+(n.href||""));if(m){for(var g=0;g<m.length;g++)if(o=m[g],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(g,1);break e}}o=u.createElement(i),oe(o,i,n),u.head.appendChild(o);break;case"meta":if(m=fp("meta","content",u).get(i+(n.content||""))){for(g=0;g<m.length;g++)if(o=m[g],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(g,1);break e}}o=u.createElement(i),oe(o,i,n),u.head.appendChild(o);break;default:throw Error(r(468,i))}o[se]=t,ee(o),i=o}t.stateNode=i}else dp(u,t.type,t.stateNode);else t.stateNode=op(u,i,t.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?dp(u,t.type,t.stateNode):op(u,i,t.memoizedProps)):i===null&&t.stateNode!==null&&qo(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),xe(t),i&512&&(Wt||n===null||fn(n,n.return)),n!==null&&i&4&&qo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),xe(t),i&512&&(Wt||n===null||fn(n,n.return)),t.flags&32){u=t.stateNode;try{Bi(u,"")}catch(et){wt(t,t.return,et)}}i&4&&t.stateNode!=null&&(u=t.memoizedProps,qo(t,u,n!==null?n.memoizedProps:u)),i&1024&&(Ho=!0);break;case 6:if(Se(e,t),xe(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(et){wt(t,t.return,et)}}break;case 3:if(yu=null,u=nn,nn=hu(e.containerInfo),Se(e,t),nn=u,xe(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{pl(e.containerInfo)}catch(et){wt(t,t.return,et)}Ho&&(Ho=!1,dy(t));break;case 4:i=nn,nn=hu(t.stateNode.containerInfo),Se(e,t),xe(t),nn=i;break;case 12:Se(e,t),xe(t);break;case 31:Se(e,t),xe(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Ir(t,i)));break;case 13:Se(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=Et()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Ir(t,i)));break;case 22:u=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=zn,L=Wt;if(zn=N||u,Wt=L||T,Se(e,t),Wt=L,zn=N,xe(t),i&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||T||zn||Wt||ii(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,u)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=T.stateNode;var G=T.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;g.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(et){wt(T,T.return,et)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(et){wt(T,T.return,et)}}}else if(e.tag===18){if(n===null){T=e;try{var D=T.stateNode;u?ep(D,!0):ep(T.stateNode,!1)}catch(et){wt(T,T.return,et)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ir(t,n))));break;case 19:Se(e,t),xe(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Ir(t,i)));break;case 30:break;case 21:break;default:Se(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(ay(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var u=n.stateNode,o=Uo(t);Wr(t,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(Bi(m,""),n.flags&=-33);var g=Uo(t);Wr(t,g,m);break;case 3:case 4:var T=n.stateNode.containerInfo,N=Uo(t);Lo(t,N,T);break;default:throw Error(r(161))}}catch(L){wt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function dy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;dy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function qn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)sy(t,e.alternate,e),e=e.sibling}function ii(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:da(4,e,e.return),ii(e);break;case 1:fn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&ey(e,e.return,n),ii(e);break;case 27:Ms(e.stateNode);case 26:case 5:fn(e,e.return),ii(e);break;case 22:e.memoizedState===null&&ii(e);break;case 30:ii(e);break;default:ii(e)}t=t.sibling}}function Un(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,u=t,o=e,m=o.flags;switch(o.tag){case 0:case 11:case 15:Un(u,o,n),vs(4,o);break;case 1:if(Un(u,o,n),i=o,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(N){wt(i,i.return,N)}if(i=o,u=i.updateQueue,u!==null){var g=i.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Kh(T[u],g)}catch(N){wt(i,i.return,N)}}n&&m&64&&ty(o),gs(o,o.return);break;case 27:iy(o);case 26:case 5:Un(u,o,n),n&&i===null&&m&4&&ny(o),gs(o,o.return);break;case 12:Un(u,o,n);break;case 31:Un(u,o,n),n&&m&4&&cy(u,o);break;case 13:Un(u,o,n),n&&m&4&&oy(u,o);break;case 22:o.memoizedState===null&&Un(u,o,n),gs(o,o.return);break;case 30:break;default:Un(u,o,n)}e=e.sibling}}function Bo(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&is(n))}function Qo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&is(t))}function an(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hy(t,e,n,i),e=e.sibling}function hy(t,e,n,i){var u=e.flags;switch(e.tag){case 0:case 11:case 15:an(t,e,n,i),u&2048&&vs(9,e);break;case 1:an(t,e,n,i);break;case 3:an(t,e,n,i),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&is(t)));break;case 12:if(u&2048){an(t,e,n,i),t=e.stateNode;try{var o=e.memoizedProps,m=o.id,g=o.onPostCommit;typeof g=="function"&&g(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){wt(e,e.return,T)}}else an(t,e,n,i);break;case 31:an(t,e,n,i);break;case 13:an(t,e,n,i);break;case 23:break;case 22:o=e.stateNode,m=e.alternate,e.memoizedState!==null?o._visibility&2?an(t,e,n,i):bs(t,e):o._visibility&2?an(t,e,n,i):(o._visibility|=2,ll(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Bo(m,e);break;case 24:an(t,e,n,i),u&2048&&Qo(e.alternate,e);break;default:an(t,e,n,i)}}function ll(t,e,n,i,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,m=e,g=n,T=i,N=m.flags;switch(m.tag){case 0:case 11:case 15:ll(o,m,g,T,u),vs(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?ll(o,m,g,T,u):bs(o,m):(L._visibility|=2,ll(o,m,g,T,u)),u&&N&2048&&Bo(m.alternate,m);break;case 24:ll(o,m,g,T,u),u&&N&2048&&Qo(m.alternate,m);break;default:ll(o,m,g,T,u)}e=e.sibling}}function bs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,u=i.flags;switch(i.tag){case 22:bs(n,i),u&2048&&Bo(i.alternate,i);break;case 24:bs(n,i),u&2048&&Qo(i.alternate,i);break;default:bs(n,i)}e=e.sibling}}var Ss=8192;function sl(t,e,n){if(t.subtreeFlags&Ss)for(t=t.child;t!==null;)my(t,e,n),t=t.sibling}function my(t,e,n){switch(t.tag){case 26:sl(t,e,n),t.flags&Ss&&t.memoizedState!==null&&eS(n,nn,t.memoizedState,t.memoizedProps);break;case 5:sl(t,e,n);break;case 3:case 4:var i=nn;nn=hu(t.stateNode.containerInfo),sl(t,e,n),nn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Ss,Ss=16777216,sl(t,e,n),Ss=i):sl(t,e,n));break;default:sl(t,e,n)}}function yy(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function xs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ne=i,vy(i,t)}yy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)py(t),t=t.sibling}function py(t){switch(t.tag){case 0:case 11:case 15:xs(t),t.flags&2048&&da(9,t,t.return);break;case 3:xs(t);break;case 12:xs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,tu(t)):xs(t);break;default:xs(t)}}function tu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ne=i,vy(i,t)}yy(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:da(8,e,e.return),tu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,tu(e));break;default:tu(e)}t=t.sibling}}function vy(t,e){for(;ne!==null;){var n=ne;switch(n.tag){case 0:case 11:case 15:da(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:is(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ne=i;else t:for(n=t;ne!==null;){i=ne;var u=i.sibling,o=i.return;if(ry(i),i===n){ne=null;break t}if(u!==null){u.return=o,ne=u;break t}ne=o}}}var pb={getCacheForType:function(t){var e=ue(Jt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(Jt).controller.signal}},vb=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Lt=null,pt=null,gt=0,At=0,qe=null,ha=!1,rl=!1,Go=!1,Ln=0,Yt=0,ma=0,li=0,Yo=0,Ue=0,ul=0,_s=null,_e=null,Ko=!1,eu=0,gy=0,nu=1/0,au=null,ya=null,It=0,pa=null,cl=null,Hn=0,Po=0,Vo=null,by=null,Ts=0,Xo=null;function Le(){return(Ot&2)!==0&&gt!==0?gt&-gt:q.T!==null?Wo():qd()}function Sy(){if(Ue===0)if((gt&536870912)===0||St){var t=fr;fr<<=1,(fr&3932160)===0&&(fr=262144),Ue=t}else Ue=536870912;return t=ze.current,t!==null&&(t.flags|=32),Ue}function Te(t,e,n){(t===Lt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ol(t,0),va(t,gt,Ue,!1)),Pl(t,n),((Ot&2)===0||t!==Lt)&&(t===Lt&&((Ot&2)===0&&(li|=n),Yt===4&&va(t,gt,Ue,!1)),dn(t))}function xy(t,e,n){if((Ot&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Kl(t,e),u=i?Sb(t,e):Zo(t,e,!0),o=i;do{if(u===0){rl&&!i&&va(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!gb(n)){u=Zo(t,e,!1),o=!1;continue}if(u===2){if(o=e,t.errorRecoveryDisabledLanes&o)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var g=t;u=_s;var T=g.current.memoizedState.isDehydrated;if(T&&(ol(g,m).flags|=256),m=Zo(g,m,!1),m!==2){if(Go&&!T){g.errorRecoveryDisabledLanes|=o,li|=o,u=4;break t}o=_e,_e=u,o!==null&&(_e===null?_e=o:_e.push.apply(_e,o))}u=m}if(o=!1,u!==2)continue}}if(u===1){ol(t,0),va(t,e,0,!0);break}t:{switch(i=t,o=u,o){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:va(i,e,Ue,!ha);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=eu+300-Et(),10<u)){if(va(i,e,Ue,!ha),hr(i,0,!0)!==0)break t;Hn=e,i.timeoutHandle=Wy(_y.bind(null,i,n,_e,au,Ko,e,Ue,li,ul,ha,o,"Throttled",-0,0),u);break t}_y(i,n,_e,au,Ko,e,Ue,li,ul,ha,o,null,-0,0)}}break}while(!0);dn(t)}function _y(t,e,n,i,u,o,m,g,T,N,L,G,z,D){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},my(e,o,G);var et=(o&62914560)===o?eu-Et():(o&4194048)===o?gy-Et():0;if(et=nS(G,et),et!==null){Hn=o,t.cancelPendingCommit=et(Ay.bind(null,t,e,o,n,i,u,m,g,T,L,G,null,z,D)),va(t,o,m,!N);return}}Ay(t,e,o,n,i,u,m,g,T)}function gb(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var u=n[i],o=u.getSnapshot;u=u.value;try{if(!we(o(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function va(t,e,n,i){e&=~Yo,e&=~li,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var u=e;0<u;){var o=31-Ae(u),m=1<<o;i[o]=-1,u&=~m}n!==0&&Nd(t,n,e)}function iu(){return(Ot&6)===0?(Rs(0),!1):!0}function ko(){if(pt!==null){if(At===0)var t=pt.return;else t=pt,Mn=Fa=null,uo(t),tl=null,ss=0,t=pt;for(;t!==null;)Im(t.alternate,t),t=t.return;pt=null}}function ol(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hb(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Hn=0,ko(),Lt=t,pt=n=En(t.current,null),gt=e,At=0,qe=null,ha=!1,rl=Kl(t,e),Go=!1,ul=Ue=Yo=li=ma=Yt=0,_e=_s=null,Ko=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var u=31-Ae(i),o=1<<u;e|=t[u],i&=~o}return Ln=e,Er(),n}function Ty(t,e){dt=null,q.H=ms,e===Ii||e===zr?(e=Bh(),At=3):e===Fc?(e=Bh(),At=4):At=e===Eo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,qe=e,pt===null&&(Yt=1,kr(t,Ke(e,t.current)))}function Ry(){var t=ze.current;return t===null?!0:(gt&4194048)===gt?ke===null:(gt&62914560)===gt||(gt&536870912)!==0?t===ke:!1}function Ey(){var t=q.H;return q.H=ms,t===null?ms:t}function Oy(){var t=q.A;return q.A=pb,t}function lu(){Yt=4,ha||(gt&4194048)!==gt&&ze.current!==null||(rl=!0),(ma&134217727)===0&&(li&134217727)===0||Lt===null||va(Lt,gt,Ue,!1)}function Zo(t,e,n){var i=Ot;Ot|=2;var u=Ey(),o=Oy();(Lt!==t||gt!==e)&&(au=null,ol(t,e)),e=!1;var m=Yt;t:do try{if(At!==0&&pt!==null){var g=pt,T=qe;switch(At){case 8:ko(),m=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var N=At;if(At=0,qe=null,fl(t,g,T,N),n&&rl){m=0;break t}break;default:N=At,At=0,qe=null,fl(t,g,T,N)}}bb(),m=Yt;break}catch(L){Ty(t,L)}while(!0);return e&&t.shellSuspendCounter++,Mn=Fa=null,Ot=i,q.H=u,q.A=o,pt===null&&(Lt=null,gt=0,Er()),m}function bb(){for(;pt!==null;)My(pt)}function Sb(t,e){var n=Ot;Ot|=2;var i=Ey(),u=Oy();Lt!==t||gt!==e?(au=null,nu=Et()+500,ol(t,e)):rl=Kl(t,e);t:do try{if(At!==0&&pt!==null){e=pt;var o=qe;e:switch(At){case 1:At=0,qe=null,fl(t,e,o,1);break;case 2:case 9:if(Lh(o)){At=0,qe=null,jy(e);break}e=function(){At!==2&&At!==9||Lt!==t||(At=7),dn(t)},o.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Lh(o)?(At=0,qe=null,jy(e)):(At=0,qe=null,fl(t,e,o,7));break;case 5:var m=null;switch(pt.tag){case 26:m=pt.memoizedState;case 5:case 27:var g=pt;if(m?hp(m):g.stateNode.complete){At=0,qe=null;var T=g.sibling;if(T!==null)pt=T;else{var N=g.return;N!==null?(pt=N,su(N)):pt=null}break e}}At=0,qe=null,fl(t,e,o,5);break;case 6:At=0,qe=null,fl(t,e,o,6);break;case 8:ko(),Yt=6;break t;default:throw Error(r(462))}}xb();break}catch(L){Ty(t,L)}while(!0);return Mn=Fa=null,q.H=i,q.A=u,Ot=n,pt!==null?0:(Lt=null,gt=0,Er(),Yt)}function xb(){for(;pt!==null&&!ur();)My(pt)}function My(t){var e=$m(t.alternate,t,Ln);t.memoizedProps=t.pendingProps,e===null?su(t):pt=e}function jy(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Vm(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=Vm(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:uo(e);default:Im(n,e),e=pt=Oh(e,Ln),e=$m(n,e,Ln)}t.memoizedProps=t.pendingProps,e===null?su(t):pt=e}function fl(t,e,n,i){Mn=Fa=null,uo(e),tl=null,ss=0;var u=e.return;try{if(cb(t,u,e,n,gt)){Yt=1,kr(t,Ke(n,t.current)),pt=null;return}}catch(o){if(u!==null)throw pt=u,o;Yt=1,kr(t,Ke(n,t.current)),pt=null;return}e.flags&32768?(St||i===1?t=!0:rl||(gt&536870912)!==0?t=!1:(ha=t=!0,(i===2||i===9||i===3||i===6)&&(i=ze.current,i!==null&&i.tag===13&&(i.flags|=16384))),Cy(e,t)):su(e)}function su(t){var e=t;do{if((e.flags&32768)!==0){Cy(e,ha);return}t=e.return;var n=db(e.alternate,e,Ln);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Cy(t,e){do{var n=hb(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Yt=6,pt=null}function Ay(t,e,n,i,u,o,m,g,T){t.cancelPendingCommit=null;do ru();while(It!==0);if((Ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(o=e.lanes|e.childLanes,o|=qc,t0(t,n,o,m,g,T),t===Lt&&(pt=Lt=null,gt=0),cl=e,pa=t,Hn=n,Po=o,Vo=u,by=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Eb(cr,function(){return qy(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=q.T,q.T=null,u=J.p,J.p=2,m=Ot,Ot|=4;try{mb(t,e,n)}finally{Ot=m,J.p=u,q.T=i}}It=1,wy(),Ny(),zy()}}function wy(){if(It===1){It=0;var t=pa,e=cl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var i=J.p;J.p=2;var u=Ot;Ot|=4;try{fy(e,t);var o=rf,m=vh(t.containerInfo),g=o.focusedElem,T=o.selectionRange;if(m!==g&&g&&g.ownerDocument&&ph(g.ownerDocument.documentElement,g)){if(T!==null&&Ac(g)){var N=T.start,L=T.end;if(L===void 0&&(L=N),"selectionStart"in g)g.selectionStart=N,g.selectionEnd=Math.min(L,g.value.length);else{var G=g.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var D=z.getSelection(),et=g.textContent.length,rt=Math.min(T.start,et),Ut=T.end===void 0?rt:Math.min(T.end,et);!D.extend&&rt>Ut&&(m=Ut,Ut=rt,rt=m);var C=yh(g,rt),E=yh(g,Ut);if(C&&E&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var w=G.createRange();w.setStart(C.node,C.offset),D.removeAllRanges(),rt>Ut?(D.addRange(w),D.extend(E.node,E.offset)):(w.setEnd(E.node,E.offset),D.addRange(w))}}}}for(G=[],D=g;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<G.length;g++){var Q=G[g];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}bu=!!sf,rf=sf=null}finally{Ot=u,J.p=i,q.T=n}}t.current=e,It=2}}function Ny(){if(It===2){It=0;var t=pa,e=cl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var i=J.p;J.p=2;var u=Ot;Ot|=4;try{sy(t,e.alternate,e)}finally{Ot=u,J.p=i,q.T=n}}It=3}}function zy(){if(It===4||It===3){It=0,jt();var t=pa,e=cl,n=Hn,i=by;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,cl=pa=null,Dy(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ya=null),fc(n),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Yl,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=q.T,u=J.p,J.p=2,q.T=null;try{for(var o=t.onRecoverableError,m=0;m<i.length;m++){var g=i[m];o(g.value,{componentStack:g.stack})}}finally{q.T=e,J.p=u}}(Hn&3)!==0&&ru(),dn(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Xo?Ts++:(Ts=0,Xo=t):Ts=0,Rs(0)}}function Dy(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,is(e)))}function ru(){return wy(),Ny(),zy(),qy()}function qy(){if(It!==5)return!1;var t=pa,e=Po;Po=0;var n=fc(Hn),i=q.T,u=J.p;try{J.p=32>n?32:n,q.T=null,n=Vo,Vo=null;var o=pa,m=Hn;if(It=0,cl=pa=null,Hn=0,(Ot&6)!==0)throw Error(r(331));var g=Ot;if(Ot|=4,py(o.current),hy(o,o.current,m,n),Ot=g,Rs(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Yl,o)}catch{}return!0}finally{J.p=u,q.T=i,Dy(t,e)}}function Uy(t,e,n){e=Ke(n,e),e=Ro(t.stateNode,e,2),t=ca(t,e,2),t!==null&&(Pl(t,2),dn(t))}function wt(t,e,n){if(t.tag===3)Uy(t,t,n);else for(;e!==null;){if(e.tag===3){Uy(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ya===null||!ya.has(i))){t=Ke(n,t),n=Lm(2),i=ca(e,n,2),i!==null&&(Hm(n,i,e,t),Pl(i,2),dn(i));break}}e=e.return}}function Jo(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new vb;var u=new Set;i.set(e,u)}else u=i.get(e),u===void 0&&(u=new Set,i.set(e,u));u.has(n)||(Go=!0,u.add(n),t=_b.bind(null,t,e,n),e.then(t,t))}function _b(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(gt&n)===n&&(Yt===4||Yt===3&&(gt&62914560)===gt&&300>Et()-eu?(Ot&2)===0&&ol(t,0):Yo|=n,ul===gt&&(ul=0)),dn(t)}function Ly(t,e){e===0&&(e=wd()),t=ka(t,e),t!==null&&(Pl(t,e),dn(t))}function Tb(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ly(t,n)}function Rb(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),Ly(t,n)}function Eb(t,e){return In(t,e)}var uu=null,dl=null,Fo=!1,cu=!1,$o=!1,ga=0;function dn(t){t!==dl&&t.next===null&&(dl===null?uu=dl=t:dl=dl.next=t),cu=!0,Fo||(Fo=!0,Mb())}function Rs(t,e){if(!$o&&cu){$o=!0;do for(var n=!1,i=uu;i!==null;){if(t!==0){var u=i.pendingLanes;if(u===0)var o=0;else{var m=i.suspendedLanes,g=i.pingedLanes;o=(1<<31-Ae(42|t)+1)-1,o&=u&~(m&~g),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Gy(i,o))}else o=gt,o=hr(i,i===Lt?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Kl(i,o)||(n=!0,Gy(i,o));i=i.next}while(n);$o=!1}}function Ob(){Hy()}function Hy(){cu=Fo=!1;var t=0;ga!==0&&Lb()&&(t=ga);for(var e=Et(),n=null,i=uu;i!==null;){var u=i.next,o=By(i,e);o===0?(i.next=null,n===null?uu=u:n.next=u,u===null&&(dl=n)):(n=i,(t!==0||(o&3)!==0)&&(cu=!0)),i=u}It!==0&&It!==5||Rs(t),ga!==0&&(ga=0)}function By(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,u=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var m=31-Ae(o),g=1<<m,T=u[m];T===-1?((g&n)===0||(g&i)!==0)&&(u[m]=Ig(g,e)):T<=e&&(t.expiredLanes|=g),o&=~g}if(e=Lt,n=gt,n=hr(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Ni(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Kl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Ni(i),fc(n)){case 2:case 8:n=Cd;break;case 32:n=cr;break;case 268435456:n=Ad;break;default:n=cr}return i=Qy.bind(null,t),n=In(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Ni(i),t.callbackPriority=2,t.callbackNode=null,2}function Qy(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(ru()&&t.callbackNode!==n)return null;var i=gt;return i=hr(t,t===Lt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(xy(t,i,e),By(t,Et()),t.callbackNode!=null&&t.callbackNode===n?Qy.bind(null,t):null)}function Gy(t,e){if(ru())return null;xy(t,e,!0)}function Mb(){Bb(function(){(Ot&6)!==0?In(Gl,Ob):Hy()})}function Wo(){if(ga===0){var t=$i;t===0&&(t=or,or<<=1,(or&261888)===0&&(or=256)),ga=t}return ga}function Yy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vr(""+t)}function Ky(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function jb(t,e,n,i,u){if(e==="submit"&&n&&n.stateNode===u){var o=Yy((u[ve]||null).action),m=i.submitter;m&&(e=(e=m[ve]||null)?Yy(e.formAction):m.getAttribute("formAction"),e!==null&&(o=e,m=null));var g=new xr("action","action",null,i,u);t.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ga!==0){var T=m?Ky(u,m):new FormData(u);go(n,{pending:!0,data:T,method:u.method,action:o},null,T)}}else typeof o=="function"&&(g.preventDefault(),T=m?Ky(u,m):new FormData(u),go(n,{pending:!0,data:T,method:u.method,action:o},o,T))},currentTarget:u}]})}}for(var Io=0;Io<Dc.length;Io++){var tf=Dc[Io],Cb=tf.toLowerCase(),Ab=tf[0].toUpperCase()+tf.slice(1);en(Cb,"on"+Ab)}en(Sh,"onAnimationEnd"),en(xh,"onAnimationIteration"),en(_h,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(X0,"onTransitionRun"),en(k0,"onTransitionStart"),en(Z0,"onTransitionCancel"),en(Th,"onTransitionEnd"),Li("onMouseEnter",["mouseout","mouseover"]),Li("onMouseLeave",["mouseout","mouseover"]),Li("onPointerEnter",["pointerout","pointerover"]),Li("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es));function Py(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],u=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var m=i.length-1;0<=m;m--){var g=i[m],T=g.instance,N=g.currentTarget;if(g=g.listener,T!==o&&u.isPropagationStopped())break t;o=g,u.currentTarget=N;try{o(u)}catch(L){Rr(L)}u.currentTarget=null,o=T}else for(m=0;m<i.length;m++){if(g=i[m],T=g.instance,N=g.currentTarget,g=g.listener,T!==o&&u.isPropagationStopped())break t;o=g,u.currentTarget=N;try{o(u)}catch(L){Rr(L)}u.currentTarget=null,o=T}}}}function vt(t,e){var n=e[dc];n===void 0&&(n=e[dc]=new Set);var i=t+"__bubble";n.has(i)||(Vy(e,t,2,!1),n.add(i))}function ef(t,e,n){var i=0;e&&(i|=4),Vy(n,t,i,e)}var ou="_reactListening"+Math.random().toString(36).slice(2);function nf(t){if(!t[ou]){t[ou]=!0,Hd.forEach(function(n){n!=="selectionchange"&&(wb.has(n)||ef(n,!1,t),ef(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ou]||(e[ou]=!0,ef("selectionchange",!1,e))}}function Vy(t,e,n,i){switch(Sp(e)){case 2:var u=lS;break;case 8:u=sS;break;default:u=gf}n=u.bind(null,e,n,t),u=void 0,!xc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),i?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function af(t,e,n,i,u){var o=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var g=i.stateNode.containerInfo;if(g===u)break;if(m===4)for(m=i.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;g!==null;){if(m=Di(g),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){i=o=m;continue t}g=g.parentNode}}i=i.return}Fd(function(){var N=o,L=bc(n),G=[];t:{var z=Rh.get(t);if(z!==void 0){var D=xr,et=t;switch(t){case"keypress":if(br(n)===0)break t;case"keydown":case"keyup":D=R0;break;case"focusin":et="focus",D=Ec;break;case"focusout":et="blur",D=Ec;break;case"beforeblur":case"afterblur":D=Ec;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=d0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=M0;break;case Sh:case xh:case _h:D=y0;break;case Th:D=C0;break;case"scroll":case"scrollend":D=o0;break;case"wheel":D=w0;break;case"copy":case"cut":case"paste":D=v0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=eh;break;case"toggle":case"beforetoggle":D=z0}var rt=(e&4)!==0,Ut=!rt&&(t==="scroll"||t==="scrollend"),C=rt?z!==null?z+"Capture":null:z;rt=[];for(var E=N,w;E!==null;){var Q=E;if(w=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||w===null||C===null||(Q=kl(E,C),Q!=null&&rt.push(Os(E,Q,w))),Ut)break;E=E.return}0<rt.length&&(z=new D(z,et,null,n,L),G.push({event:z,listeners:rt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==gc&&(et=n.relatedTarget||n.fromElement)&&(Di(et)||et[zi]))break t;if((D||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,D?(et=n.relatedTarget||n.toElement,D=N,et=et?Di(et):null,et!==null&&(Ut=f(et),rt=et.tag,et!==Ut||rt!==5&&rt!==27&&rt!==6)&&(et=null)):(D=null,et=N),D!==et)){if(rt=Id,Q="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(rt=eh,Q="onPointerLeave",C="onPointerEnter",E="pointer"),Ut=D==null?z:Xl(D),w=et==null?z:Xl(et),z=new rt(Q,E+"leave",D,n,L),z.target=Ut,z.relatedTarget=w,Q=null,Di(L)===N&&(rt=new rt(C,E+"enter",et,n,L),rt.target=w,rt.relatedTarget=Ut,Q=rt),Ut=Q,D&&et)e:{for(rt=Nb,C=D,E=et,w=0,Q=C;Q;Q=rt(Q))w++;Q=0;for(var st=E;st;st=rt(st))Q++;for(;0<w-Q;)C=rt(C),w--;for(;0<Q-w;)E=rt(E),Q--;for(;w--;){if(C===E||E!==null&&C===E.alternate){rt=C;break e}C=rt(C),E=rt(E)}rt=null}else rt=null;D!==null&&Xy(G,z,D,rt,!1),et!==null&&Ut!==null&&Xy(G,Ut,et,rt,!0)}}t:{if(z=N?Xl(N):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var Tt=ch;else if(rh(z))if(oh)Tt=K0;else{Tt=G0;var at=Q0}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&vc(N.elementType)&&(Tt=ch):Tt=Y0;if(Tt&&(Tt=Tt(t,N))){uh(G,Tt,n,L);break t}at&&at(t,z,N),t==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&pc(z,"number",z.value)}switch(at=N?Xl(N):window,t){case"focusin":(rh(at)||at.contentEditable==="true")&&(Ki=at,wc=N,es=null);break;case"focusout":es=wc=Ki=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,gh(G,n,L);break;case"selectionchange":if(V0)break;case"keydown":case"keyup":gh(G,n,L)}var ht;if(Mc)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Yi?lh(t,n)&&(bt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(bt="onCompositionStart");bt&&(nh&&n.locale!=="ko"&&(Yi||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Yi&&(ht=$d()):(na=L,_c="value"in na?na.value:na.textContent,Yi=!0)),at=fu(N,bt),0<at.length&&(bt=new th(bt,t,null,n,L),G.push({event:bt,listeners:at}),ht?bt.data=ht:(ht=sh(n),ht!==null&&(bt.data=ht)))),(ht=q0?U0(t,n):L0(t,n))&&(bt=fu(N,"onBeforeInput"),0<bt.length&&(at=new th("onBeforeInput","beforeinput",null,n,L),G.push({event:at,listeners:bt}),at.data=ht)),jb(G,t,N,n,L)}Py(G,e)})}function Os(t,e,n){return{instance:t,listener:e,currentTarget:n}}function fu(t,e){for(var n=e+"Capture",i=[];t!==null;){var u=t,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=kl(t,n),u!=null&&i.unshift(Os(t,u,o)),u=kl(t,e),u!=null&&i.push(Os(t,u,o))),t.tag===3)return i;t=t.return}return[]}function Nb(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Xy(t,e,n,i,u){for(var o=e._reactName,m=[];n!==null&&n!==i;){var g=n,T=g.alternate,N=g.stateNode;if(g=g.tag,T!==null&&T===i)break;g!==5&&g!==26&&g!==27||N===null||(T=N,u?(N=kl(n,o),N!=null&&m.unshift(Os(n,N,T))):u||(N=kl(n,o),N!=null&&m.push(Os(n,N,T)))),n=n.return}m.length!==0&&t.push({event:e,listeners:m})}var zb=/\r\n?/g,Db=/\u0000|\uFFFD/g;function ky(t){return(typeof t=="string"?t:""+t).replace(zb,`
49
+ `).replace(Db,"")}function Zy(t,e){return e=ky(e),ky(t)===e}function qt(t,e,n,i,u,o){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Bi(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Bi(t,""+i);break;case"className":yr(t,"class",i);break;case"tabIndex":yr(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":yr(t,n,i);break;case"style":Zd(t,i,o);break;case"data":if(e!=="object"){yr(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=vr(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&qt(t,e,"name",u.name,u,null),qt(t,e,"formEncType",u.formEncType,u,null),qt(t,e,"formMethod",u.formMethod,u,null),qt(t,e,"formTarget",u.formTarget,u,null)):(qt(t,e,"encType",u.encType,u,null),qt(t,e,"method",u.method,u,null),qt(t,e,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=vr(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Tn);break;case"onScroll":i!=null&&vt("scroll",t);break;case"onScrollEnd":i!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=vr(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":vt("beforetoggle",t),vt("toggle",t),mr(t,"popover",i);break;case"xlinkActuate":_n(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":_n(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":_n(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":_n(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":_n(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":_n(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":_n(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":_n(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":_n(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":mr(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=u0.get(n)||n,mr(t,n,i))}}function lf(t,e,n,i,u,o){switch(n){case"style":Zd(t,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Bi(t,i):(typeof i=="number"||typeof i=="bigint")&&Bi(t,""+i);break;case"onScroll":i!=null&&vt("scroll",t);break;case"onScrollEnd":i!=null&&vt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bd.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),o=t[ve]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,u),typeof i=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,u);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):mr(t,n,i)}}}function oe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var i=!1,u=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:qt(t,e,o,m,n,null)}}u&&qt(t,e,"srcSet",n.srcSet,n,null),i&&qt(t,e,"src",n.src,n,null);return;case"input":vt("invalid",t);var g=o=m=u=null,T=null,N=null;for(i in n)if(n.hasOwnProperty(i)){var L=n[i];if(L!=null)switch(i){case"name":u=L;break;case"type":m=L;break;case"checked":T=L;break;case"defaultChecked":N=L;break;case"value":o=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,e));break;default:qt(t,e,i,L,n,null)}}Pd(t,o,g,T,N,m,u,!1);return;case"select":vt("invalid",t),i=m=o=null;for(u in n)if(n.hasOwnProperty(u)&&(g=n[u],g!=null))switch(u){case"value":o=g;break;case"defaultValue":m=g;break;case"multiple":i=g;default:qt(t,e,u,g,n,null)}e=o,n=m,t.multiple=!!i,e!=null?Hi(t,!!i,e,!1):n!=null&&Hi(t,!!i,n,!0);return;case"textarea":vt("invalid",t),o=u=i=null;for(m in n)if(n.hasOwnProperty(m)&&(g=n[m],g!=null))switch(m){case"value":i=g;break;case"defaultValue":u=g;break;case"children":o=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:qt(t,e,m,g,n,null)}Xd(t,i,u,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(i=n[T],i!=null))switch(T){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:qt(t,e,T,i,n,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(i=0;i<Es.length;i++)vt(Es[i],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(i=n[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:qt(t,e,N,i,n,null)}return;default:if(vc(e)){for(L in n)n.hasOwnProperty(L)&&(i=n[L],i!==void 0&&lf(t,e,L,i,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(i=n[g],i!=null&&qt(t,e,g,i,n,null))}function qb(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,m=null,g=null,T=null,N=null,L=null;for(D in n){var G=n[D];if(n.hasOwnProperty(D)&&G!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":T=G;default:i.hasOwnProperty(D)||qt(t,e,D,null,i,G)}}for(var z in i){var D=i[z];if(G=n[z],i.hasOwnProperty(z)&&(D!=null||G!=null))switch(z){case"type":o=D;break;case"name":u=D;break;case"checked":N=D;break;case"defaultChecked":L=D;break;case"value":m=D;break;case"defaultValue":g=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:D!==G&&qt(t,e,z,D,i,G)}}yc(t,m,g,T,N,L,o,u);return;case"select":D=m=g=z=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":D=T;default:i.hasOwnProperty(o)||qt(t,e,o,null,i,T)}for(u in i)if(o=i[u],T=n[u],i.hasOwnProperty(u)&&(o!=null||T!=null))switch(u){case"value":z=o;break;case"defaultValue":g=o;break;case"multiple":m=o;default:o!==T&&qt(t,e,u,o,i,T)}e=g,n=m,i=D,z!=null?Hi(t,!!n,z,!1):!!i!=!!n&&(e!=null?Hi(t,!!n,e,!0):Hi(t,!!n,n?[]:"",!1));return;case"textarea":D=z=null;for(g in n)if(u=n[g],n.hasOwnProperty(g)&&u!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:qt(t,e,g,null,i,u)}for(m in i)if(u=i[m],o=n[m],i.hasOwnProperty(m)&&(u!=null||o!=null))switch(m){case"value":z=u;break;case"defaultValue":D=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==o&&qt(t,e,m,u,i,o)}Vd(t,z,D);return;case"option":for(var et in n)if(z=n[et],n.hasOwnProperty(et)&&z!=null&&!i.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:qt(t,e,et,null,i,z)}for(T in i)if(z=i[T],D=n[T],i.hasOwnProperty(T)&&z!==D&&(z!=null||D!=null))switch(T){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:qt(t,e,T,z,i,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var rt in n)z=n[rt],n.hasOwnProperty(rt)&&z!=null&&!i.hasOwnProperty(rt)&&qt(t,e,rt,null,i,z);for(N in i)if(z=i[N],D=n[N],i.hasOwnProperty(N)&&z!==D&&(z!=null||D!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:qt(t,e,N,z,i,D)}return;default:if(vc(e)){for(var Ut in n)z=n[Ut],n.hasOwnProperty(Ut)&&z!==void 0&&!i.hasOwnProperty(Ut)&&lf(t,e,Ut,void 0,i,z);for(L in i)z=i[L],D=n[L],!i.hasOwnProperty(L)||z===D||z===void 0&&D===void 0||lf(t,e,L,z,i,D);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!i.hasOwnProperty(C)&&qt(t,e,C,null,i,z);for(G in i)z=i[G],D=n[G],!i.hasOwnProperty(G)||z===D||z==null&&D==null||qt(t,e,G,z,i,D)}function Jy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ub(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var u=n[i],o=u.transferSize,m=u.initiatorType,g=u.duration;if(o&&g&&Jy(m)){for(m=0,g=u.responseEnd,i+=1;i<n.length;i++){var T=n[i],N=T.startTime;if(N>g)break;var L=T.transferSize,G=T.initiatorType;L&&Jy(G)&&(T=T.responseEnd,m+=L*(T<g?1:(g-N)/(T-N)))}if(--i,e+=8*(o+m)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var sf=null,rf=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function Fy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $y(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function uf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var cf=null;function Lb(){var t=window.event;return t&&t.type==="popstate"?t===cf?!1:(cf=t,!0):(cf=null,!1)}var Wy=typeof setTimeout=="function"?setTimeout:void 0,Hb=typeof clearTimeout=="function"?clearTimeout:void 0,Iy=typeof Promise=="function"?Promise:void 0,Bb=typeof queueMicrotask=="function"?queueMicrotask:typeof Iy<"u"?function(t){return Iy.resolve(null).then(t).catch(Qb)}:Wy;function Qb(t){setTimeout(function(){throw t})}function ba(t){return t==="head"}function tp(t,e){var n=e,i=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(u),pl(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ms(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ms(n);for(var o=n.firstChild;o;){var m=o.nextSibling,g=o.nodeName;o[Vl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&Ms(t.ownerDocument.body);n=u}while(n);pl(e)}function ep(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function of(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":of(n),hc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gb(t,e,n,i){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[Vl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function Yb(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ze(t.nextSibling),t===null))return null;return t}function np(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function ff(t){return t.data==="$?"||t.data==="$~"}function df(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Kb(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var hf=null;function ap(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ze(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function ip(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function lp(t,e,n){switch(e=du(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ms(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hc(t)}var Je=new Map,sp=new Set;function hu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Bn=J.d;J.d={f:Pb,r:Vb,D:Xb,C:kb,L:Zb,m:Jb,X:$b,S:Fb,M:Wb};function Pb(){var t=Bn.f(),e=iu();return t||e}function Vb(t){var e=qi(t);e!==null&&e.tag===5&&e.type==="form"?Tm(e):Bn.r(t)}var hl=typeof document>"u"?null:document;function rp(t,e,n){var i=hl;if(i&&typeof e=="string"&&e){var u=Ge(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),sp.has(u)||(sp.add(u),t={rel:t,crossOrigin:n,href:e},i.querySelector(u)===null&&(e=i.createElement("link"),oe(e,"link",t),ee(e),i.head.appendChild(e)))}}function Xb(t){Bn.D(t),rp("dns-prefetch",t,null)}function kb(t,e){Bn.C(t,e),rp("preconnect",t,e)}function Zb(t,e,n){Bn.L(t,e,n);var i=hl;if(i&&t&&e){var u='link[rel="preload"][as="'+Ge(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ge(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ge(n.imageSizes)+'"]')):u+='[href="'+Ge(t)+'"]';var o=u;switch(e){case"style":o=ml(t);break;case"script":o=yl(t)}Je.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Je.set(o,t),i.querySelector(u)!==null||e==="style"&&i.querySelector(js(o))||e==="script"&&i.querySelector(Cs(o))||(e=i.createElement("link"),oe(e,"link",t),ee(e),i.head.appendChild(e)))}}function Jb(t,e){Bn.m(t,e);var n=hl;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ge(i)+'"][href="'+Ge(t)+'"]',o=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=yl(t)}if(!Je.has(o)&&(t=v({rel:"modulepreload",href:t},e),Je.set(o,t),n.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Cs(o)))return}i=n.createElement("link"),oe(i,"link",t),ee(i),n.head.appendChild(i)}}}function Fb(t,e,n){Bn.S(t,e,n);var i=hl;if(i&&t){var u=Ui(i).hoistableStyles,o=ml(t);e=e||"default";var m=u.get(o);if(!m){var g={loading:0,preload:null};if(m=i.querySelector(js(o)))g.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Je.get(o))&&mf(t,n);var T=m=i.createElement("link");ee(T),oe(T,"link",t),T._p=new Promise(function(N,L){T.onload=N,T.onerror=L}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,mu(m,e,i)}m={type:"stylesheet",instance:m,count:1,state:g},u.set(o,m)}}}function $b(t,e){Bn.X(t,e);var n=hl;if(n&&t){var i=Ui(n).hoistableScripts,u=yl(t),o=i.get(u);o||(o=n.querySelector(Cs(u)),o||(t=v({src:t,async:!0},e),(e=Je.get(u))&&yf(t,e),o=n.createElement("script"),ee(o),oe(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(u,o))}}function Wb(t,e){Bn.M(t,e);var n=hl;if(n&&t){var i=Ui(n).hoistableScripts,u=yl(t),o=i.get(u);o||(o=n.querySelector(Cs(u)),o||(t=v({src:t,async:!0,type:"module"},e),(e=Je.get(u))&&yf(t,e),o=n.createElement("script"),ee(o),oe(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(u,o))}}function up(t,e,n,i){var u=(u=ct.current)?hu(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ui(u).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var o=Ui(u).hoistableStyles,m=o.get(t);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,m),(o=u.querySelector(js(t)))&&!o._p&&(m.instance=o,m.state.loading=5),Je.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Je.set(t,n),o||Ib(u,t,n,m.state))),e&&i===null)throw Error(r(528,""));return m}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=yl(n),n=Ui(u).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ml(t){return'href="'+Ge(t)+'"'}function js(t){return'link[rel="stylesheet"]['+t+"]"}function cp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Ib(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),oe(e,"link",n),ee(e),t.head.appendChild(e))}function yl(t){return'[src="'+Ge(t)+'"]'}function Cs(t){return"script[async]"+t}function op(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ge(n.href)+'"]');if(i)return e.instance=i,ee(i),i;var u=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),ee(i),oe(i,"style",u),mu(i,n.precedence,t),e.instance=i;case"stylesheet":u=ml(n.href);var o=t.querySelector(js(u));if(o)return e.state.loading|=4,e.instance=o,ee(o),o;i=cp(n),(u=Je.get(u))&&mf(i,u),o=(t.ownerDocument||t).createElement("link"),ee(o);var m=o;return m._p=new Promise(function(g,T){m.onload=g,m.onerror=T}),oe(o,"link",i),e.state.loading|=4,mu(o,n.precedence,t),e.instance=o;case"script":return o=yl(n.src),(u=t.querySelector(Cs(o)))?(e.instance=u,ee(u),u):(i=n,(u=Je.get(o))&&(i=v({},n),yf(i,u)),t=t.ownerDocument||t,u=t.createElement("script"),ee(u),oe(u,"link",i),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,mu(i,n.precedence,t));return e.instance}function mu(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,o=u,m=0;m<i.length;m++){var g=i[m];if(g.dataset.precedence===e)o=g;else if(o!==u)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function mf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var yu=null;function fp(t,e,n){if(yu===null){var i=new Map,u=yu=new Map;u.set(n,i)}else u=yu,i=u.get(n),i||(i=new Map,u.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var o=n[u];if(!(o[Vl]||o[se]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(e)||"";m=t+m;var g=i.get(m);g?g.push(o):i.set(m,[o])}}return i}function dp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function tS(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function hp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function eS(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=ml(i.href),o=e.querySelector(js(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=pu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,ee(o);return}o=e.ownerDocument||e,i=cp(i),(u=Je.get(u))&&mf(i,u),o=o.createElement("link"),ee(o);var m=o;m._p=new Promise(function(g,T){m.onload=g,m.onerror=T}),oe(o,"link",i),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=pu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var pf=0;function nS(t,e){return t.stylesheets&&t.count===0&&gu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&pf===0&&(pf=62500*Ub());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>pf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function gu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,e.forEach(aS,t),vu=null,pu.call(t))}function aS(t,e){if(!(e.state.loading&4)){var n=vu.get(t);if(n)var i=n.get(null);else{n=new Map,vu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var m=u[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}u=e.instance,m=u.getAttribute("data-precedence"),o=n.get(m)||i,o===i&&n.set(null,u),n.set(m,u),this.count++,i=pu.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),o?o.parentNode.insertBefore(u,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var As={$$typeof:P,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function iS(t,e,n,i,u,o,m,g,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cc(0),this.hiddenUpdates=cc(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function mp(t,e,n,i,u,o,m,g,T,N,L,G){return t=new iS(t,e,n,m,T,N,L,G,g),e=1,o===!0&&(e|=24),o=Ne(3,null,null,e),t.current=o,o.stateNode=t,e=kc(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:e},$c(o),t}function yp(t){return t?(t=Xi,t):Xi}function pp(t,e,n,i,u,o){u=yp(u),i.context===null?i.context=u:i.pendingContext=u,i=ua(e),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=ca(t,i,e),n!==null&&(Te(n,t,e),us(n,t,e))}function vp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vf(t,e){vp(t,e),(t=t.alternate)&&vp(t,e)}function gp(t){if(t.tag===13||t.tag===31){var e=ka(t,67108864);e!==null&&Te(e,t,67108864),vf(t,67108864)}}function bp(t){if(t.tag===13||t.tag===31){var e=Le();e=oc(e);var n=ka(t,e);n!==null&&Te(n,t,e),vf(t,e)}}var bu=!0;function lS(t,e,n,i){var u=q.T;q.T=null;var o=J.p;try{J.p=2,gf(t,e,n,i)}finally{J.p=o,q.T=u}}function sS(t,e,n,i){var u=q.T;q.T=null;var o=J.p;try{J.p=8,gf(t,e,n,i)}finally{J.p=o,q.T=u}}function gf(t,e,n,i){if(bu){var u=bf(i);if(u===null)af(t,e,i,Su,n),xp(t,i);else if(uS(u,t,e,n,i))i.stopPropagation();else if(xp(t,i),e&4&&-1<rS.indexOf(t)){for(;u!==null;){var o=qi(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Ya(o.pendingLanes);if(m!==0){var g=o;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var T=1<<31-Ae(m);g.entanglements[1]|=T,m&=~T}dn(o),(Ot&6)===0&&(nu=Et()+500,Rs(0))}}break;case 31:case 13:g=ka(o,2),g!==null&&Te(g,o,2),iu(),vf(o,2)}if(o=bf(i),o===null&&af(t,e,i,Su,n),o===u)break;u=o}u!==null&&i.stopPropagation()}else af(t,e,i,null,n)}}function bf(t){return t=bc(t),Sf(t)}var Su=null;function Sf(t){if(Su=null,t=Di(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=h(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Su=t,null}function Sp(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case Gl:return 2;case Cd:return 8;case cr:case kg:return 32;case Ad:return 268435456;default:return 32}default:return 32}}var xf=!1,Sa=null,xa=null,_a=null,ws=new Map,Ns=new Map,Ta=[],rS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xp(t,e){switch(t){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":ws.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(e.pointerId)}}function zs(t,e,n,i,u,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[u]},e!==null&&(e=qi(e),e!==null&&gp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function uS(t,e,n,i,u){switch(e){case"focusin":return Sa=zs(Sa,t,e,n,i,u),!0;case"dragenter":return xa=zs(xa,t,e,n,i,u),!0;case"mouseover":return _a=zs(_a,t,e,n,i,u),!0;case"pointerover":var o=u.pointerId;return ws.set(o,zs(ws.get(o)||null,t,e,n,i,u)),!0;case"gotpointercapture":return o=u.pointerId,Ns.set(o,zs(Ns.get(o)||null,t,e,n,i,u)),!0}return!1}function _p(t){var e=Di(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Ud(t.priority,function(){bp(n)});return}}else if(e===31){if(e=h(n),e!==null){t.blockedOn=e,Ud(t.priority,function(){bp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bf(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);gc=i,n.target.dispatchEvent(i),gc=null}else return e=qi(n),e!==null&&gp(e),t.blockedOn=n,!1;e.shift()}return!0}function Tp(t,e,n){xu(t)&&n.delete(e)}function cS(){xf=!1,Sa!==null&&xu(Sa)&&(Sa=null),xa!==null&&xu(xa)&&(xa=null),_a!==null&&xu(_a)&&(_a=null),ws.forEach(Tp),Ns.forEach(Tp)}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,xf||(xf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,cS)))}var Tu=null;function Rp(t){Tu!==t&&(Tu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Tu===t&&(Tu=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],u=t[e+2];if(typeof i!="function"){if(Sf(i||n)===null)continue;break}var o=qi(n);o!==null&&(t.splice(e,3),e-=3,go(o,{pending:!0,data:u,method:n.method,action:i},i,u))}}))}function pl(t){function e(T){return _u(T,t)}Sa!==null&&_u(Sa,t),xa!==null&&_u(xa,t),_a!==null&&_u(_a,t),ws.forEach(e),Ns.forEach(e);for(var n=0;n<Ta.length;n++){var i=Ta[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ta.length&&(n=Ta[0],n.blockedOn===null);)_p(n),n.blockedOn===null&&Ta.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var u=n[i],o=n[i+1],m=u[ve]||null;if(typeof o=="function")m||Rp(n);else if(m){var g=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[ve]||null)g=m.formAction;else if(Sf(u)!==null)continue}else g=m.action;typeof g=="function"?n[i+1]=g:(n.splice(i,3),i-=3),Rp(n)}}}function Ep(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function _f(t){this._internalRoot=t}Ru.prototype.render=_f.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=Le();pp(n,i,t,e,null,null)},Ru.prototype.unmount=_f.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;pp(t.current,2,null,t,null,null),iu(),e[zi]=null}};function Ru(t){this._internalRoot=t}Ru.prototype.unstable_scheduleHydration=function(t){if(t){var e=qd();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ta.length&&e!==0&&e<Ta[n].priority;n++);Ta.splice(n,0,t),n===0&&_p(t)}};var Op=l.version;if(Op!=="19.2.0")throw Error(r(527,Op,"19.2.0"));J.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?_(t):null,t=t===null?null:t.stateNode,t};var oS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{Yl=Eu.inject(oS),Ce=Eu}catch{}}return qs.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",u=zm,o=Dm,m=qm;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=mp(t,1,!1,null,null,n,i,null,u,o,m,Ep),t[zi]=e.current,nf(t),new _f(e)},qs.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,u="",o=zm,m=Dm,g=qm,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=mp(t,1,!0,e,n??null,i,u,T,o,m,g,Ep),e.context=yp(null),n=e.current,i=Le(),i=oc(i),u=ua(i),u.callback=null,ca(n,u,i),n=i,e.current.lanes=n,Pl(e,n),dn(e),t[zi]=e.current,nf(t),new Ru(e)},qs.version="19.2.0",qs}var Lp;function SS(){if(Lp)return Ef.exports;Lp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Ef.exports=bS(),Ef.exports}var xS=SS(),Hl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_S={setTimeout:(a,l)=>setTimeout(a,l),clearTimeout:a=>clearTimeout(a),setInterval:(a,l)=>setInterval(a,l),clearInterval:a=>clearInterval(a)},Oa,hd,Mv,TS=(Mv=class{constructor(){lt(this,Oa,_S);lt(this,hd,!1)}setTimeoutProvider(a){I(this,Oa,a)}setTimeout(a,l){return R(this,Oa).setTimeout(a,l)}clearTimeout(a){R(this,Oa).clearTimeout(a)}setInterval(a,l){return R(this,Oa).setInterval(a,l)}clearInterval(a){R(this,Oa).clearInterval(a)}},Oa=new WeakMap,hd=new WeakMap,Mv),ui=new TS;function RS(a){setTimeout(a,0)}var _i=typeof window>"u"||"Deno"in globalThis;function pe(){}function ES(a,l){return typeof a=="function"?a(l):a}function kf(a){return typeof a=="number"&&a>=0&&a!==1/0}function Bv(a,l){return Math.max(a+(l||0)-Date.now(),0)}function Ua(a,l){return typeof a=="function"?a(l):a}function We(a,l){return typeof a=="function"?a(l):a}function Hp(a,l){const{type:s="all",exact:r,fetchStatus:c,predicate:f,queryKey:d,stale:h}=a;if(d){if(r){if(l.queryHash!==md(d,l.options))return!1}else if(!Xs(l.queryKey,d))return!1}if(s!=="all"){const y=l.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof h=="boolean"&&l.isStale()!==h||c&&c!==l.state.fetchStatus||f&&!f(l))}function Bp(a,l){const{exact:s,status:r,predicate:c,mutationKey:f}=a;if(f){if(!l.options.mutationKey)return!1;if(s){if(Ti(l.options.mutationKey)!==Ti(f))return!1}else if(!Xs(l.options.mutationKey,f))return!1}return!(r&&l.state.status!==r||c&&!c(l))}function md(a,l){return((l==null?void 0:l.queryKeyHashFn)||Ti)(a)}function Ti(a){return JSON.stringify(a,(l,s)=>Zf(s)?Object.keys(s).sort().reduce((r,c)=>(r[c]=s[c],r),{}):s)}function Xs(a,l){return a===l?!0:typeof a!=typeof l?!1:a&&l&&typeof a=="object"&&typeof l=="object"?Object.keys(l).every(s=>Xs(a[s],l[s])):!1}var OS=Object.prototype.hasOwnProperty;function Qv(a,l){if(a===l)return a;const s=Qp(a)&&Qp(l);if(!s&&!(Zf(a)&&Zf(l)))return l;const c=(s?a:Object.keys(a)).length,f=s?l:Object.keys(l),d=f.length,h=s?new Array(d):{};let y=0;for(let p=0;p<d;p++){const _=s?p:f[p],v=a[_],b=l[_];if(v===b){h[_]=v,(s?p<c:OS.call(a,_))&&y++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){h[_]=b;continue}const S=Qv(v,b);h[_]=S,S===v&&y++}return c===d&&y===c?a:h}function Qu(a,l){if(!l||Object.keys(a).length!==Object.keys(l).length)return!1;for(const s in a)if(a[s]!==l[s])return!1;return!0}function Qp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Zf(a){if(!Gp(a))return!1;const l=a.constructor;if(l===void 0)return!0;const s=l.prototype;return!(!Gp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Gp(a){return Object.prototype.toString.call(a)==="[object Object]"}function MS(a){return new Promise(l=>{ui.setTimeout(l,a)})}function Jf(a,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,l):s.structuralSharing!==!1?Qv(a,l):l}function jS(a,l,s=0){const r=[...a,l];return s&&r.length>s?r.slice(1):r}function CS(a,l,s=0){const r=[l,...a];return s&&r.length>s?r.slice(0,-1):r}var Jn=Symbol();function Gv(a,l){return!a.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!a.queryFn||a.queryFn===Jn?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Yv(a,l){return typeof a=="function"?a(...l):!!a}var ci,Ma,Rl,jv,AS=(jv=class extends Hl{constructor(){super();lt(this,ci);lt(this,Ma);lt(this,Rl);I(this,Rl,l=>{if(!_i&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){R(this,Ma)||this.setEventListener(R(this,Rl))}onUnsubscribe(){var l;this.hasListeners()||((l=R(this,Ma))==null||l.call(this),I(this,Ma,void 0))}setEventListener(l){var s;I(this,Rl,l),(s=R(this,Ma))==null||s.call(this),I(this,Ma,l(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(l){R(this,ci)!==l&&(I(this,ci,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof R(this,ci)=="boolean"?R(this,ci):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},ci=new WeakMap,Ma=new WeakMap,Rl=new WeakMap,jv),yd=new AS;function Ff(){let a,l;const s=new Promise((c,f)=>{a=c,l=f});s.status="pending",s.catch(()=>{});function r(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{r({status:"fulfilled",value:c}),a(c)},s.reject=c=>{r({status:"rejected",reason:c}),l(c)},s}var wS=RS;function NS(){let a=[],l=0,s=h=>{h()},r=h=>{h()},c=wS;const f=h=>{l?a.push(h):c(()=>{s(h)})},d=()=>{const h=a;a=[],h.length&&c(()=>{r(()=>{h.forEach(y=>{s(y)})})})};return{batch:h=>{let y;l++;try{y=h()}finally{l--,l||d()}return y},batchCalls:h=>(...y)=>{f(()=>{h(...y)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{r=h},setScheduler:h=>{c=h}}}var te=NS(),El,ja,Ol,Cv,zS=(Cv=class extends Hl{constructor(){super();lt(this,El,!0);lt(this,ja);lt(this,Ol);I(this,Ol,l=>{if(!_i&&window.addEventListener){const s=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,ja)||this.setEventListener(R(this,Ol))}onUnsubscribe(){var l;this.hasListeners()||((l=R(this,ja))==null||l.call(this),I(this,ja,void 0))}setEventListener(l){var s;I(this,Ol,l),(s=R(this,ja))==null||s.call(this),I(this,ja,l(this.setOnline.bind(this)))}setOnline(l){R(this,El)!==l&&(I(this,El,l),this.listeners.forEach(r=>{r(l)}))}isOnline(){return R(this,El)}},El=new WeakMap,ja=new WeakMap,Ol=new WeakMap,Cv),Gu=new zS;function DS(a){return Math.min(1e3*2**a,3e4)}function Kv(a){return(a??"online")==="online"?Gu.isOnline():!0}var $f=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function Pv(a){let l=!1,s=0,r;const c=Ff(),f=()=>c.status!=="pending",d=j=>{var A;if(!f()){const U=new $f(j);b(U),(A=a.onCancel)==null||A.call(a,U)}},h=()=>{l=!0},y=()=>{l=!1},p=()=>yd.isFocused()&&(a.networkMode==="always"||Gu.isOnline())&&a.canRun(),_=()=>Kv(a.networkMode)&&a.canRun(),v=j=>{f()||(r==null||r(),c.resolve(j))},b=j=>{f()||(r==null||r(),c.reject(j))},S=()=>new Promise(j=>{var A;r=U=>{(f()||p())&&j(U)},(A=a.onPause)==null||A.call(a)}).then(()=>{var j;r=void 0,f()||(j=a.onContinue)==null||j.call(a)}),M=()=>{if(f())return;let j;const A=s===0?a.initialPromise:void 0;try{j=A??a.fn()}catch(U){j=Promise.reject(U)}Promise.resolve(j).then(v).catch(U=>{var K;if(f())return;const V=a.retry??(_i?0:3),P=a.retryDelay??DS,B=typeof P=="function"?P(s,U):P,Z=V===!0||typeof V=="number"&&s<V||typeof V=="function"&&V(s,U);if(l||!Z){b(U);return}s++,(K=a.onFail)==null||K.call(a,s,U),MS(B).then(()=>p()?void 0:S()).then(()=>{l?b(U):M()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(r==null||r(),c),cancelRetry:h,continueRetry:y,canStart:_,start:()=>(_()?M():S().then(M),c)}}var oi,Av,Vv=(Av=class{constructor(){lt(this,oi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kf(this.gcTime)&&I(this,oi,ui.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(_i?1/0:300*1e3))}clearGcTimeout(){R(this,oi)&&(ui.clearTimeout(R(this,oi)),I(this,oi,void 0))}},oi=new WeakMap,Av),fi,Ml,$e,di,ae,$s,hi,ln,Yn,wv,qS=(wv=class extends Vv{constructor(l){super();lt(this,ln);lt(this,fi);lt(this,Ml);lt(this,$e);lt(this,di);lt(this,ae);lt(this,$s);lt(this,hi);I(this,hi,!1),I(this,$s,l.defaultOptions),this.setOptions(l.options),this.observers=[],I(this,di,l.client),I(this,$e,R(this,di).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,I(this,fi,Kp(this.options)),this.state=l.state??R(this,fi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=R(this,ae))==null?void 0:l.promise}setOptions(l){if(this.options={...R(this,$s),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Kp(this.options);s.data!==void 0&&(this.setState(Yp(s.data,s.dataUpdatedAt)),I(this,fi,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,$e).remove(this)}setData(l,s){const r=Jf(this.state.data,l,this.options);return mt(this,ln,Yn).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(l,s){mt(this,ln,Yn).call(this,{type:"setState",state:l,setStateOptions:s})}cancel(l){var r,c;const s=(r=R(this,ae))==null?void 0:r.promise;return(c=R(this,ae))==null||c.cancel(l),s?s.then(pe).catch(pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,fi))}isActive(){return this.observers.some(l=>We(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Jn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Ua(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Bv(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(r=>r.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=R(this,ae))==null||s.continue()}onOnline(){var s;const l=this.observers.find(r=>r.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=R(this,ae))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),R(this,$e).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(R(this,ae)&&(R(this,hi)?R(this,ae).cancel({revert:!0}):R(this,ae).cancelRetry()),this.scheduleGc()),R(this,$e).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||mt(this,ln,Yn).call(this,{type:"invalidate"})}async fetch(l,s){var y,p,_,v,b,S,M,j,A,U,V,P;if(this.state.fetchStatus!=="idle"&&((y=R(this,ae))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(R(this,ae))return R(this,ae).continueRetry(),R(this,ae).promise}if(l&&this.setOptions(l),!this.options.queryFn){const B=this.observers.find(Z=>Z.options.queryFn);B&&this.setOptions(B.options)}const r=new AbortController,c=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(I(this,hi,!0),r.signal)})},f=()=>{const B=Gv(this.options,s),K=(()=>{const H={client:R(this,di),queryKey:this.queryKey,meta:this.meta};return c(H),H})();return I(this,hi,!1),this.options.persister?this.options.persister(B,K,this):B(K)},h=(()=>{const B={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:R(this,di),state:this.state,fetchFn:f};return c(B),B})();(p=this.options.behavior)==null||p.onFetch(h,this),I(this,Ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((_=h.fetchOptions)==null?void 0:_.meta))&&mt(this,ln,Yn).call(this,{type:"fetch",meta:(v=h.fetchOptions)==null?void 0:v.meta}),I(this,ae,Pv({initialPromise:s==null?void 0:s.initialPromise,fn:h.fetchFn,onCancel:B=>{B instanceof $f&&B.revert&&this.setState({...R(this,Ml),fetchStatus:"idle"}),r.abort()},onFail:(B,Z)=>{mt(this,ln,Yn).call(this,{type:"failed",failureCount:B,error:Z})},onPause:()=>{mt(this,ln,Yn).call(this,{type:"pause"})},onContinue:()=>{mt(this,ln,Yn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const B=await R(this,ae).start();if(B===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(B),(S=(b=R(this,$e).config).onSuccess)==null||S.call(b,B,this),(j=(M=R(this,$e).config).onSettled)==null||j.call(M,B,this.state.error,this),B}catch(B){if(B instanceof $f){if(B.silent)return R(this,ae).promise;if(B.revert){if(this.state.data===void 0)throw B;return this.state.data}}throw mt(this,ln,Yn).call(this,{type:"error",error:B}),(U=(A=R(this,$e).config).onError)==null||U.call(A,B,this),(P=(V=R(this,$e).config).onSettled)==null||P.call(V,this.state.data,B,this),B}finally{this.scheduleGc()}}},fi=new WeakMap,Ml=new WeakMap,$e=new WeakMap,di=new WeakMap,ae=new WeakMap,$s=new WeakMap,hi=new WeakMap,ln=new WeakSet,Yn=function(l){const s=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Xv(r.data,this.options),fetchMeta:l.meta??null};case"success":const c={...r,...Yp(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return I(this,Ml,l.manual?c:void 0),c;case"error":const f=l.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...l.state}}};this.state=s(this.state),te.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,$e).notify({query:this,type:"updated",action:l})})},wv);function Xv(a,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kv(l.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Yp(a,l){return{data:a,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Kp(a){const l=typeof a.initialData=="function"?a.initialData():a.initialData,s=l!==void 0,r=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Re,xt,Ws,me,mi,jl,Kn,Ca,Is,Cl,Al,yi,pi,Aa,wl,Ct,Bs,Wf,If,td,ed,nd,ad,id,kv,Nv,US=(Nv=class extends Hl{constructor(l,s){super();lt(this,Ct);lt(this,Re);lt(this,xt);lt(this,Ws);lt(this,me);lt(this,mi);lt(this,jl);lt(this,Kn);lt(this,Ca);lt(this,Is);lt(this,Cl);lt(this,Al);lt(this,yi);lt(this,pi);lt(this,Aa);lt(this,wl,new Set);this.options=s,I(this,Re,l),I(this,Ca,null),I(this,Kn,Ff()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,xt).addObserver(this),Pp(R(this,xt),this.options)?mt(this,Ct,Bs).call(this):this.updateResult(),mt(this,Ct,ed).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ld(R(this,xt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ld(R(this,xt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,mt(this,Ct,nd).call(this),mt(this,Ct,ad).call(this),R(this,xt).removeObserver(this)}setOptions(l){const s=this.options,r=R(this,xt);if(this.options=R(this,Re).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof We(this.options.enabled,R(this,xt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");mt(this,Ct,id).call(this),R(this,xt).setOptions(this.options),s._defaulted&&!Qu(this.options,s)&&R(this,Re).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,xt),observer:this});const c=this.hasListeners();c&&Vp(R(this,xt),r,this.options,s)&&mt(this,Ct,Bs).call(this),this.updateResult(),c&&(R(this,xt)!==r||We(this.options.enabled,R(this,xt))!==We(s.enabled,R(this,xt))||Ua(this.options.staleTime,R(this,xt))!==Ua(s.staleTime,R(this,xt)))&&mt(this,Ct,Wf).call(this);const f=mt(this,Ct,If).call(this);c&&(R(this,xt)!==r||We(this.options.enabled,R(this,xt))!==We(s.enabled,R(this,xt))||f!==R(this,Aa))&&mt(this,Ct,td).call(this,f)}getOptimisticResult(l){const s=R(this,Re).getQueryCache().build(R(this,Re),l),r=this.createResult(s,l);return HS(this,r)&&(I(this,me,r),I(this,jl,this.options),I(this,mi,R(this,xt).state)),r}getCurrentResult(){return R(this,me)}trackResult(l,s){return new Proxy(l,{get:(r,c)=>(this.trackProp(c),s==null||s(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Kn).status==="pending"&&R(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,c))})}trackProp(l){R(this,wl).add(l)}getCurrentQuery(){return R(this,xt)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=R(this,Re).defaultQueryOptions(l),r=R(this,Re).getQueryCache().build(R(this,Re),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(l){return mt(this,Ct,Bs).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,me)))}createResult(l,s){var nt;const r=R(this,xt),c=this.options,f=R(this,me),d=R(this,mi),h=R(this,jl),p=l!==r?l.state:R(this,Ws),{state:_}=l;let v={..._},b=!1,S;if(s._optimisticResults){const X=this.hasListeners(),F=!X&&Pp(l,s),ot=X&&Vp(l,r,s,c);(F||ot)&&(v={...v,...Xv(_.data,l.options)}),s._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:M,errorUpdatedAt:j,status:A}=v;S=v.data;let U=!1;if(s.placeholderData!==void 0&&S===void 0&&A==="pending"){let X;f!=null&&f.isPlaceholderData&&s.placeholderData===(h==null?void 0:h.placeholderData)?(X=f.data,U=!0):X=typeof s.placeholderData=="function"?s.placeholderData((nt=R(this,Al))==null?void 0:nt.state.data,R(this,Al)):s.placeholderData,X!==void 0&&(A="success",S=Jf(f==null?void 0:f.data,X,s),b=!0)}if(s.select&&S!==void 0&&!U)if(f&&S===(d==null?void 0:d.data)&&s.select===R(this,Is))S=R(this,Cl);else try{I(this,Is,s.select),S=s.select(S),S=Jf(f==null?void 0:f.data,S,s),I(this,Cl,S),I(this,Ca,null)}catch(X){I(this,Ca,X)}R(this,Ca)&&(M=R(this,Ca),S=R(this,Cl),j=Date.now(),A="error");const V=v.fetchStatus==="fetching",P=A==="pending",B=A==="error",Z=P&&V,K=S!==void 0,k={status:A,fetchStatus:v.fetchStatus,isPending:P,isSuccess:A==="success",isError:B,isInitialLoading:Z,isLoading:Z,data:S,dataUpdatedAt:v.dataUpdatedAt,error:M,errorUpdatedAt:j,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:V,isRefetching:V&&!P,isLoadingError:B&&!K,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:B&&K,isStale:pd(l,s),refetch:this.refetch,promise:R(this,Kn),isEnabled:We(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const X=Mt=>{k.status==="error"?Mt.reject(k.error):k.data!==void 0&&Mt.resolve(k.data)},F=()=>{const Mt=I(this,Kn,k.promise=Ff());X(Mt)},ot=R(this,Kn);switch(ot.status){case"pending":l.queryHash===r.queryHash&&X(ot);break;case"fulfilled":(k.status==="error"||k.data!==ot.value)&&F();break;case"rejected":(k.status!=="error"||k.error!==ot.reason)&&F();break}}return k}updateResult(){const l=R(this,me),s=this.createResult(R(this,xt),this.options);if(I(this,mi,R(this,xt).state),I(this,jl,this.options),R(this,mi).data!==void 0&&I(this,Al,R(this,xt)),Qu(s,l))return;I(this,me,s);const r=()=>{if(!l)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!R(this,wl).size)return!0;const d=new Set(f??R(this,wl));return this.options.throwOnError&&d.add("error"),Object.keys(R(this,me)).some(h=>{const y=h;return R(this,me)[y]!==l[y]&&d.has(y)})};mt(this,Ct,kv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&mt(this,Ct,ed).call(this)}},Re=new WeakMap,xt=new WeakMap,Ws=new WeakMap,me=new WeakMap,mi=new WeakMap,jl=new WeakMap,Kn=new WeakMap,Ca=new WeakMap,Is=new WeakMap,Cl=new WeakMap,Al=new WeakMap,yi=new WeakMap,pi=new WeakMap,Aa=new WeakMap,wl=new WeakMap,Ct=new WeakSet,Bs=function(l){mt(this,Ct,id).call(this);let s=R(this,xt).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(pe)),s},Wf=function(){mt(this,Ct,nd).call(this);const l=Ua(this.options.staleTime,R(this,xt));if(_i||R(this,me).isStale||!kf(l))return;const r=Bv(R(this,me).dataUpdatedAt,l)+1;I(this,yi,ui.setTimeout(()=>{R(this,me).isStale||this.updateResult()},r))},If=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,xt)):this.options.refetchInterval)??!1},td=function(l){mt(this,Ct,ad).call(this),I(this,Aa,l),!(_i||We(this.options.enabled,R(this,xt))===!1||!kf(R(this,Aa))||R(this,Aa)===0)&&I(this,pi,ui.setInterval(()=>{(this.options.refetchIntervalInBackground||yd.isFocused())&&mt(this,Ct,Bs).call(this)},R(this,Aa)))},ed=function(){mt(this,Ct,Wf).call(this),mt(this,Ct,td).call(this,mt(this,Ct,If).call(this))},nd=function(){R(this,yi)&&(ui.clearTimeout(R(this,yi)),I(this,yi,void 0))},ad=function(){R(this,pi)&&(ui.clearInterval(R(this,pi)),I(this,pi,void 0))},id=function(){const l=R(this,Re).getQueryCache().build(R(this,Re),this.options);if(l===R(this,xt))return;const s=R(this,xt);I(this,xt,l),I(this,Ws,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},kv=function(l){te.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(R(this,me))}),R(this,Re).getQueryCache().notify({query:R(this,xt),type:"observerResultsUpdated"})})},Nv);function LS(a,l){return We(l.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&l.retryOnMount===!1)}function Pp(a,l){return LS(a,l)||a.state.data!==void 0&&ld(a,l,l.refetchOnMount)}function ld(a,l,s){if(We(l.enabled,a)!==!1&&Ua(l.staleTime,a)!=="static"){const r=typeof s=="function"?s(a):s;return r==="always"||r!==!1&&pd(a,l)}return!1}function Vp(a,l,s,r){return(a!==l||We(r.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&pd(a,s)}function pd(a,l){return We(l.enabled,a)!==!1&&a.isStaleByTime(Ua(l.staleTime,a))}function HS(a,l){return!Qu(a.getCurrentResult(),l)}function Xp(a){return{onFetch:(l,s)=>{var _,v,b,S,M;const r=l.options,c=(b=(v=(_=l.fetchOptions)==null?void 0:_.meta)==null?void 0:v.fetchMore)==null?void 0:b.direction,f=((S=l.state.data)==null?void 0:S.pages)||[],d=((M=l.state.data)==null?void 0:M.pageParams)||[];let h={pages:[],pageParams:[]},y=0;const p=async()=>{let j=!1;const A=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(l.signal.aborted?j=!0:l.signal.addEventListener("abort",()=>{j=!0}),l.signal)})},U=Gv(l.options,l.fetchOptions),V=async(P,B,Z)=>{if(j)return Promise.reject();if(B==null&&P.pages.length)return Promise.resolve(P);const H=(()=>{const F={client:l.client,queryKey:l.queryKey,pageParam:B,direction:Z?"backward":"forward",meta:l.options.meta};return A(F),F})(),k=await U(H),{maxPages:nt}=l.options,X=Z?CS:jS;return{pages:X(P.pages,k,nt),pageParams:X(P.pageParams,B,nt)}};if(c&&f.length){const P=c==="backward",B=P?BS:kp,Z={pages:f,pageParams:d},K=B(r,Z);h=await V(Z,K,P)}else{const P=a??f.length;do{const B=y===0?d[0]??r.initialPageParam:kp(r,h);if(y>0&&B==null)break;h=await V(h,B),y++}while(y<P)}return h};l.options.persister?l.fetchFn=()=>{var j,A;return(A=(j=l.options).persister)==null?void 0:A.call(j,p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=p}}}function kp(a,{pages:l,pageParams:s}){const r=l.length-1;return l.length>0?a.getNextPageParam(l[r],l,s[r],s):void 0}function BS(a,{pages:l,pageParams:s}){var r;return l.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,l[0],l,s[0],s):void 0}var tr,hn,ye,vi,mn,Ea,zv,QS=(zv=class extends Vv{constructor(l){super();lt(this,mn);lt(this,tr);lt(this,hn);lt(this,ye);lt(this,vi);I(this,tr,l.client),this.mutationId=l.mutationId,I(this,ye,l.mutationCache),I(this,hn,[]),this.state=l.state||Zv(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){R(this,hn).includes(l)||(R(this,hn).push(l),this.clearGcTimeout(),R(this,ye).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){I(this,hn,R(this,hn).filter(s=>s!==l)),this.scheduleGc(),R(this,ye).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){R(this,hn).length||(this.state.status==="pending"?this.scheduleGc():R(this,ye).remove(this))}continue(){var l;return((l=R(this,vi))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var d,h,y,p,_,v,b,S,M,j,A,U,V,P,B,Z,K,H,k,nt;const s=()=>{mt(this,mn,Ea).call(this,{type:"continue"})},r={client:R(this,tr),meta:this.options.meta,mutationKey:this.options.mutationKey};I(this,vi,Pv({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:(X,F)=>{mt(this,mn,Ea).call(this,{type:"failed",failureCount:X,error:F})},onPause:()=>{mt(this,mn,Ea).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,ye).canRun(this)}));const c=this.state.status==="pending",f=!R(this,vi).canStart();try{if(c)s();else{mt(this,mn,Ea).call(this,{type:"pending",variables:l,isPaused:f}),await((h=(d=R(this,ye).config).onMutate)==null?void 0:h.call(d,l,this,r));const F=await((p=(y=this.options).onMutate)==null?void 0:p.call(y,l,r));F!==this.state.context&&mt(this,mn,Ea).call(this,{type:"pending",context:F,variables:l,isPaused:f})}const X=await R(this,vi).start();return await((v=(_=R(this,ye).config).onSuccess)==null?void 0:v.call(_,X,l,this.state.context,this,r)),await((S=(b=this.options).onSuccess)==null?void 0:S.call(b,X,l,this.state.context,r)),await((j=(M=R(this,ye).config).onSettled)==null?void 0:j.call(M,X,null,this.state.variables,this.state.context,this,r)),await((U=(A=this.options).onSettled)==null?void 0:U.call(A,X,null,l,this.state.context,r)),mt(this,mn,Ea).call(this,{type:"success",data:X}),X}catch(X){try{throw await((P=(V=R(this,ye).config).onError)==null?void 0:P.call(V,X,l,this.state.context,this,r)),await((Z=(B=this.options).onError)==null?void 0:Z.call(B,X,l,this.state.context,r)),await((H=(K=R(this,ye).config).onSettled)==null?void 0:H.call(K,void 0,X,this.state.variables,this.state.context,this,r)),await((nt=(k=this.options).onSettled)==null?void 0:nt.call(k,void 0,X,l,this.state.context,r)),X}finally{mt(this,mn,Ea).call(this,{type:"error",error:X})}}finally{R(this,ye).runNext(this)}}},tr=new WeakMap,hn=new WeakMap,ye=new WeakMap,vi=new WeakMap,mn=new WeakSet,Ea=function(l){const s=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),te.batch(()=>{R(this,hn).forEach(r=>{r.onMutationUpdate(l)}),R(this,ye).notify({mutation:this,type:"updated",action:l})})},zv);function Zv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pn,sn,er,Dv,GS=(Dv=class extends Hl{constructor(l={}){super();lt(this,Pn);lt(this,sn);lt(this,er);this.config=l,I(this,Pn,new Set),I(this,sn,new Map),I(this,er,0)}build(l,s,r){const c=new QS({client:l,mutationCache:this,mutationId:++Ou(this,er)._,options:l.defaultMutationOptions(s),state:r});return this.add(c),c}add(l){R(this,Pn).add(l);const s=Mu(l);if(typeof s=="string"){const r=R(this,sn).get(s);r?r.push(l):R(this,sn).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(R(this,Pn).delete(l)){const s=Mu(l);if(typeof s=="string"){const r=R(this,sn).get(s);if(r)if(r.length>1){const c=r.indexOf(l);c!==-1&&r.splice(c,1)}else r[0]===l&&R(this,sn).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Mu(l);if(typeof s=="string"){const r=R(this,sn).get(s),c=r==null?void 0:r.find(f=>f.state.status==="pending");return!c||c===l}else return!0}runNext(l){var r;const s=Mu(l);if(typeof s=="string"){const c=(r=R(this,sn).get(s))==null?void 0:r.find(f=>f!==l&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){te.batch(()=>{R(this,Pn).forEach(l=>{this.notify({type:"removed",mutation:l})}),R(this,Pn).clear(),R(this,sn).clear()})}getAll(){return Array.from(R(this,Pn))}find(l){const s={exact:!0,...l};return this.getAll().find(r=>Bp(s,r))}findAll(l={}){return this.getAll().filter(s=>Bp(l,s))}notify(l){te.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return te.batch(()=>Promise.all(l.map(s=>s.continue().catch(pe))))}},Pn=new WeakMap,sn=new WeakMap,er=new WeakMap,Dv);function Mu(a){var l;return(l=a.options.scope)==null?void 0:l.id}var Vn,wa,Ee,Xn,Zn,qu,sd,qv,YS=(qv=class extends Hl{constructor(s,r){super();lt(this,Zn);lt(this,Vn);lt(this,wa);lt(this,Ee);lt(this,Xn);I(this,Vn,s),this.setOptions(r),this.bindMethods(),mt(this,Zn,qu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var c;const r=this.options;this.options=R(this,Vn).defaultMutationOptions(s),Qu(this.options,r)||R(this,Vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,Ee),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ti(r.mutationKey)!==Ti(this.options.mutationKey)?this.reset():((c=R(this,Ee))==null?void 0:c.state.status)==="pending"&&R(this,Ee).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=R(this,Ee))==null||s.removeObserver(this)}onMutationUpdate(s){mt(this,Zn,qu).call(this),mt(this,Zn,sd).call(this,s)}getCurrentResult(){return R(this,wa)}reset(){var s;(s=R(this,Ee))==null||s.removeObserver(this),I(this,Ee,void 0),mt(this,Zn,qu).call(this),mt(this,Zn,sd).call(this)}mutate(s,r){var c;return I(this,Xn,r),(c=R(this,Ee))==null||c.removeObserver(this),I(this,Ee,R(this,Vn).getMutationCache().build(R(this,Vn),this.options)),R(this,Ee).addObserver(this),R(this,Ee).execute(s)}},Vn=new WeakMap,wa=new WeakMap,Ee=new WeakMap,Xn=new WeakMap,Zn=new WeakSet,qu=function(){var r;const s=((r=R(this,Ee))==null?void 0:r.state)??Zv();I(this,wa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},sd=function(s){te.batch(()=>{var r,c,f,d,h,y,p,_;if(R(this,Xn)&&this.hasListeners()){const v=R(this,wa).variables,b=R(this,wa).context,S={client:R(this,Vn),meta:this.options.meta,mutationKey:this.options.mutationKey};(s==null?void 0:s.type)==="success"?((c=(r=R(this,Xn)).onSuccess)==null||c.call(r,s.data,v,b,S),(d=(f=R(this,Xn)).onSettled)==null||d.call(f,s.data,null,v,b,S)):(s==null?void 0:s.type)==="error"&&((y=(h=R(this,Xn)).onError)==null||y.call(h,s.error,v,b,S),(_=(p=R(this,Xn)).onSettled)==null||_.call(p,void 0,s.error,v,b,S))}this.listeners.forEach(v=>{v(R(this,wa))})})},qv),yn,Uv,KS=(Uv=class extends Hl{constructor(l={}){super();lt(this,yn);this.config=l,I(this,yn,new Map)}build(l,s,r){const c=s.queryKey,f=s.queryHash??md(c,s);let d=this.get(f);return d||(d=new qS({client:l,queryKey:c,queryHash:f,options:l.defaultQueryOptions(s),state:r,defaultOptions:l.getQueryDefaults(c)}),this.add(d)),d}add(l){R(this,yn).has(l.queryHash)||(R(this,yn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=R(this,yn).get(l.queryHash);s&&(l.destroy(),s===l&&R(this,yn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){te.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return R(this,yn).get(l)}getAll(){return[...R(this,yn).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(r=>Hp(s,r))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(r=>Hp(l,r)):s}notify(l){te.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){te.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){te.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},yn=new WeakMap,Uv),Kt,Na,za,Nl,zl,Da,Dl,ql,Lv,PS=(Lv=class{constructor(a={}){lt(this,Kt);lt(this,Na);lt(this,za);lt(this,Nl);lt(this,zl);lt(this,Da);lt(this,Dl);lt(this,ql);I(this,Kt,a.queryCache||new KS),I(this,Na,a.mutationCache||new GS),I(this,za,a.defaultOptions||{}),I(this,Nl,new Map),I(this,zl,new Map),I(this,Da,0)}mount(){Ou(this,Da)._++,R(this,Da)===1&&(I(this,Dl,yd.subscribe(async a=>{a&&(await this.resumePausedMutations(),R(this,Kt).onFocus())})),I(this,ql,Gu.subscribe(async a=>{a&&(await this.resumePausedMutations(),R(this,Kt).onOnline())})))}unmount(){var a,l;Ou(this,Da)._--,R(this,Da)===0&&((a=R(this,Dl))==null||a.call(this),I(this,Dl,void 0),(l=R(this,ql))==null||l.call(this),I(this,ql,void 0))}isFetching(a){return R(this,Kt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return R(this,Na).findAll({...a,status:"pending"}).length}getQueryData(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=R(this,Kt).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(a){const l=this.defaultQueryOptions(a),s=R(this,Kt).build(this,l),r=s.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Ua(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(r))}getQueriesData(a){return R(this,Kt).findAll(a).map(({queryKey:l,state:s})=>{const r=s.data;return[l,r]})}setQueryData(a,l,s){const r=this.defaultQueryOptions({queryKey:a}),c=R(this,Kt).get(r.queryHash),f=c==null?void 0:c.state.data,d=ES(l,f);if(d!==void 0)return R(this,Kt).build(this,r).setData(d,{...s,manual:!0})}setQueriesData(a,l,s){return te.batch(()=>R(this,Kt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,l,s)]))}getQueryState(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=R(this,Kt).get(l.queryHash))==null?void 0:s.state}removeQueries(a){const l=R(this,Kt);te.batch(()=>{l.findAll(a).forEach(s=>{l.remove(s)})})}resetQueries(a,l){const s=R(this,Kt);return te.batch(()=>(s.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},l)))}cancelQueries(a,l={}){const s={revert:!0,...l},r=te.batch(()=>R(this,Kt).findAll(a).map(c=>c.cancel(s)));return Promise.all(r).then(pe).catch(pe)}invalidateQueries(a,l={}){return te.batch(()=>(R(this,Kt).findAll(a).forEach(s=>{s.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},l)))}refetchQueries(a,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},r=te.batch(()=>R(this,Kt).findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,s);return s.throwOnError||(f=f.catch(pe)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(pe)}fetchQuery(a){const l=this.defaultQueryOptions(a);l.retry===void 0&&(l.retry=!1);const s=R(this,Kt).build(this,l);return s.isStaleByTime(Ua(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(pe).catch(pe)}fetchInfiniteQuery(a){return a.behavior=Xp(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(pe).catch(pe)}ensureInfiniteQueryData(a){return a.behavior=Xp(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Gu.isOnline()?R(this,Na).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Kt)}getMutationCache(){return R(this,Na)}getDefaultOptions(){return R(this,za)}setDefaultOptions(a){I(this,za,a)}setQueryDefaults(a,l){R(this,Nl).set(Ti(a),{queryKey:a,defaultOptions:l})}getQueryDefaults(a){const l=[...R(this,Nl).values()],s={};return l.forEach(r=>{Xs(a,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(a,l){R(this,zl).set(Ti(a),{mutationKey:a,defaultOptions:l})}getMutationDefaults(a){const l=[...R(this,zl).values()],s={};return l.forEach(r=>{Xs(a,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const l={...R(this,za).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return l.queryHash||(l.queryHash=md(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Jn&&(l.enabled=!1),l}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...R(this,za).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){R(this,Kt).clear(),R(this,Na).clear()}},Kt=new WeakMap,Na=new WeakMap,za=new WeakMap,Nl=new WeakMap,zl=new WeakMap,Da=new WeakMap,Dl=new WeakMap,ql=new WeakMap,Lv),W=nr();const ks=dS(W);var Jv=W.createContext(void 0),Iu=a=>{const l=W.useContext(Jv);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},VS=({client:a,children:l})=>(W.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),x.jsx(Jv.Provider,{value:a,children:l})),Fv=W.createContext(!1),XS=()=>W.useContext(Fv);Fv.Provider;function kS(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var ZS=W.createContext(kS()),JS=()=>W.useContext(ZS),FS=(a,l)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(l.isReset()||(a.retryOnMount=!1))},$S=a=>{W.useEffect(()=>{a.clearReset()},[a])},WS=({result:a,errorResetBoundary:l,throwOnError:s,query:r,suspense:c})=>a.isError&&!l.isReset()&&!a.isFetching&&r&&(c&&a.data===void 0||Yv(s,[a.error,r])),IS=a=>{if(a.suspense){const s=c=>c==="static"?c:Math.max(c??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...c)=>s(r(...c)):s(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},t1=(a,l)=>a.isLoading&&a.isFetching&&!l,e1=(a,l)=>(a==null?void 0:a.suspense)&&l.isPending,Zp=(a,l,s)=>l.fetchOptimistic(a).catch(()=>{s.clearReset()});function n1(a,l,s){var v,b,S,M,j;const r=XS(),c=JS(),f=Iu(),d=f.defaultQueryOptions(a);(b=(v=f.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,d),d._optimisticResults=r?"isRestoring":"optimistic",IS(d),FS(d,c),$S(c);const h=!f.getQueryCache().get(d.queryHash),[y]=W.useState(()=>new l(f,d)),p=y.getOptimisticResult(d),_=!r&&a.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(A=>{const U=_?y.subscribe(te.batchCalls(A)):pe;return y.updateResult(),U},[y,_]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),W.useEffect(()=>{y.setOptions(d)},[d,y]),e1(d,p))throw Zp(d,y,c);if(WS({result:p,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;if((M=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||M.call(S,d,p),d.experimental_prefetchInRender&&!_i&&t1(p,r)){const A=h?Zp(d,y,c):(j=f.getQueryCache().get(d.queryHash))==null?void 0:j.promise;A==null||A.catch(pe).finally(()=>{y.updateResult()})}return d.notifyOnChangeProps?p:y.trackResult(p)}function pn(a,l){return n1(a,US)}function rd(a,l){const s=Iu(),[r]=W.useState(()=>new YS(s,a));W.useEffect(()=>{r.setOptions(a)},[r,a]);const c=W.useSyncExternalStore(W.useCallback(d=>r.subscribe(te.batchCalls(d)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=W.useCallback((d,h)=>{r.mutate(d,h).catch(pe)},[r]);if(c.error&&Yv(r.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const ud=new WeakMap,a1=new WeakMap,Yu={current:[]};let Af=!1,Gs=0;const Qs=new Set,ju=new Map;function $v(a){for(const l of a){if(Yu.current.includes(l))continue;Yu.current.push(l),l.recompute();const s=a1.get(l);if(s)for(const r of s){const c=ud.get(r);c!=null&&c.length&&$v(c)}}}function i1(a){const l={prevVal:a.prevState,currentVal:a.state};for(const s of a.listeners)s(l)}function l1(a){const l={prevVal:a.prevState,currentVal:a.state};for(const s of a.listeners)s(l)}function Wv(a){if(Gs>0&&!ju.has(a)&&ju.set(a,a.prevState),Qs.add(a),!(Gs>0)&&!Af)try{for(Af=!0;Qs.size>0;){const l=Array.from(Qs);Qs.clear();for(const s of l){const r=ju.get(s)??s.prevState;s.prevState=r,i1(s)}for(const s of l){const r=ud.get(s);r&&(Yu.current.push(s),$v(r))}for(const s of l){const r=ud.get(s);if(r)for(const c of r)l1(c)}}}finally{Af=!1,Yu.current=[],ju.clear()}}function Ys(a){Gs++;try{a()}finally{if(Gs--,Gs===0){const l=Qs.values().next().value;l&&Wv(l)}}}function s1(a){return typeof a=="function"}class r1{constructor(l,s){this.listeners=new Set,this.subscribe=r=>{var c,f;this.listeners.add(r);const d=(f=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:f.call(c,r,this);return()=>{this.listeners.delete(r),d==null||d()}},this.prevState=l,this.state=l,this.options=s}setState(l){var s,r,c;this.prevState=this.state,(s=this.options)!=null&&s.updateFn?this.state=this.options.updateFn(this.prevState)(l):s1(l)?this.state=l(this.prevState):this.state=l,(c=(r=this.options)==null?void 0:r.onUpdate)==null||c.call(r),Wv(this)}}const La="__TSR_index",Jp="popstate",Fp="beforeunload";function u1(a){let l=a.getLocation();const s=new Set,r=d=>{l=a.getLocation(),s.forEach(h=>h({location:l,action:d}))},c=d=>{a.notifyOnIndexChange??!0?r(d):l=a.getLocation()},f=async({task:d,navigateOpts:h,...y})=>{var b,S;if((h==null?void 0:h.ignoreBlocker)??!1){d();return}const _=((b=a.getBlockers)==null?void 0:b.call(a))??[],v=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&_.length&&v)for(const M of _){const j=Ku(y.path,y.state);if(await M.blockerFn({currentLocation:l,nextLocation:j,action:y.type})){(S=a.onBlocked)==null||S.call(a);return}}d()};return{get location(){return l},get length(){return a.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,h,y)=>{const p=l.state[La];h=$p(p+1,h),f({task:()=>{a.pushState(d,h),r({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:d,state:h})},replace:(d,h,y)=>{const p=l.state[La];h=$p(p,h),f({task:()=>{a.replaceState(d,h),r({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:d,state:h})},go:(d,h)=>{f({task:()=>{a.go(d),c({type:"GO",index:d})},navigateOpts:h,type:"GO"})},back:d=>{f({task:()=>{a.back((d==null?void 0:d.ignoreBlocker)??!1),c({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{a.forward((d==null?void 0:d.ignoreBlocker)??!1),c({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>l.state[La]!==0,createHref:d=>a.createHref(d),block:d=>{var y;if(!a.setBlockers)return()=>{};const h=((y=a.getBlockers)==null?void 0:y.call(a))??[];return a.setBlockers([...h,d]),()=>{var _,v;const p=((_=a.getBlockers)==null?void 0:_.call(a))??[];(v=a.setBlockers)==null||v.call(a,p.filter(b=>b!==d))}},flush:()=>{var d;return(d=a.flush)==null?void 0:d.call(a)},destroy:()=>{var d;return(d=a.destroy)==null?void 0:d.call(a)},notify:r}}function $p(a,l){l||(l={});const s=vd();return{...l,key:s,__TSR_key:s,[La]:a}}function c1(a){var k,nt;const l=typeof document<"u"?window:void 0,s=l.history.pushState,r=l.history.replaceState;let c=[];const f=()=>c,d=X=>c=X,h=(X=>X),y=(()=>Ku(`${l.location.pathname}${l.location.search}${l.location.hash}`,l.history.state));if(!((k=l.history.state)!=null&&k.__TSR_key)&&!((nt=l.history.state)!=null&&nt.key)){const X=vd();l.history.replaceState({[La]:0,key:X,__TSR_key:X},"")}let p=y(),_,v=!1,b=!1,S=!1,M=!1;const j=()=>p;let A,U;const V=()=>{A&&(H._ignoreSubscribers=!0,(A.isPush?l.history.pushState:l.history.replaceState)(A.state,"",A.href),H._ignoreSubscribers=!1,A=void 0,U=void 0,_=void 0)},P=(X,F,ot)=>{const Mt=h(F);U||(_=p),p=Ku(F,ot),A={href:Mt,state:ot,isPush:(A==null?void 0:A.isPush)||X==="push"},U||(U=Promise.resolve().then(()=>V()))},B=X=>{p=y(),H.notify({type:X})},Z=async()=>{if(b){b=!1;return}const X=y(),F=X.state[La]-p.state[La],ot=F===1,Mt=F===-1,kt=!ot&&!Mt||v;v=!1;const le=kt?"GO":Mt?"BACK":"FORWARD",q=kt?{type:"GO",index:F}:{type:Mt?"BACK":"FORWARD"};if(S)S=!1;else{const J=f();if(typeof document<"u"&&J.length){for(const it of J)if(await it.blockerFn({currentLocation:p,nextLocation:X,action:le})){b=!0,l.history.go(1),H.notify(q);return}}}p=y(),H.notify(q)},K=X=>{if(M){M=!1;return}let F=!1;const ot=f();if(typeof document<"u"&&ot.length)for(const Mt of ot){const kt=Mt.enableBeforeUnload??!0;if(kt===!0){F=!0;break}if(typeof kt=="function"&&kt()===!0){F=!0;break}}if(F)return X.preventDefault(),X.returnValue=""},H=u1({getLocation:j,getLength:()=>l.history.length,pushState:(X,F)=>P("push",X,F),replaceState:(X,F)=>P("replace",X,F),back:X=>(X&&(S=!0),M=!0,l.history.back()),forward:X=>{X&&(S=!0),M=!0,l.history.forward()},go:X=>{v=!0,l.history.go(X)},createHref:X=>h(X),flush:V,destroy:()=>{l.history.pushState=s,l.history.replaceState=r,l.removeEventListener(Fp,K,{capture:!0}),l.removeEventListener(Jp,Z)},onBlocked:()=>{_&&p!==_&&(p=_)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return l.addEventListener(Fp,K,{capture:!0}),l.addEventListener(Jp,Z),l.history.pushState=function(...X){const F=s.apply(l.history,X);return H._ignoreSubscribers||B("PUSH"),F},l.history.replaceState=function(...X){const F=r.apply(l.history,X);return H._ignoreSubscribers||B("REPLACE"),F},H}function Ku(a,l){const s=a.indexOf("#"),r=a.indexOf("?"),c=vd();return{href:a,pathname:a.substring(0,s>0?r>0?Math.min(s,r):s:r>0?r:a.length),hash:s>-1?a.substring(s):"",search:r>-1?a.slice(r,s===-1?void 0:s):"",state:l||{[La]:0,key:c,__TSR_key:c}}}function vd(){return(Math.random()+1).toString(36).substring(7)}function Pu(a){return a[a.length-1]}function o1(a){return typeof a=="function"}function gi(a,l){return o1(a)?a(l):a}const f1=Object.prototype.hasOwnProperty;function Fe(a,l){if(a===l)return a;const s=l,r=tv(a)&&tv(s);if(!r&&!(Vu(a)&&Vu(s)))return s;const c=r?a:Wp(a);if(!c)return s;const f=r?s:Wp(s);if(!f)return s;const d=c.length,h=f.length,y=r?new Array(h):{};let p=0;for(let _=0;_<h;_++){const v=r?_:f[_],b=a[v],S=s[v];if(b===S){y[v]=b,(r?_<d:f1.call(a,v))&&p++;continue}if(b===null||S===null||typeof b!="object"||typeof S!="object"){y[v]=S;continue}const M=Fe(b,S);y[v]=M,M===b&&p++}return d===h&&p===d?a:y}function Wp(a){const l=[],s=Object.getOwnPropertyNames(a);for(const c of s){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;l.push(c)}const r=Object.getOwnPropertySymbols(a);for(const c of r){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;l.push(c)}return l}function Vu(a){if(!Ip(a))return!1;const l=a.constructor;if(typeof l>"u")return!0;const s=l.prototype;return!(!Ip(s)||!s.hasOwnProperty("isPrototypeOf"))}function Ip(a){return Object.prototype.toString.call(a)==="[object Object]"}function tv(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function bi(a,l,s){if(a===l)return!0;if(typeof a!=typeof l)return!1;if(Array.isArray(a)&&Array.isArray(l)){if(a.length!==l.length)return!1;for(let r=0,c=a.length;r<c;r++)if(!bi(a[r],l[r],s))return!1;return!0}if(Vu(a)&&Vu(l)){const r=(s==null?void 0:s.ignoreUndefined)??!0;if(s!=null&&s.partial){for(const d in l)if((!r||l[d]!==void 0)&&!bi(a[d],l[d],s))return!1;return!0}let c=0;if(!r)c=Object.keys(a).length;else for(const d in a)a[d]!==void 0&&c++;let f=0;for(const d in l)if((!r||l[d]!==void 0)&&(f++,f>c||!bi(a[d],l[d],s)))return!1;return c===f}return!1}function Ul(a){let l,s;const r=new Promise((c,f)=>{l=c,s=f});return r.status="pending",r.resolve=c=>{r.status="resolved",r.value=c,l(c),a==null||a(c)},r.reject=c=>{r.status="rejected",s(c)},r}function Ha(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function ev(a){try{return decodeURI(a)}catch{return a.replaceAll(/%[0-9A-F]{2}/gi,l=>{try{return decodeURI(l)}catch{return l}})}}function nv(a,l){if(!a)return a;const s=/%25|%5C/gi;let r=0,c="",f;for(;(f=s.exec(a))!==null;)c+=ev(a.slice(r,f.index))+f[0],r=s.lastIndex;return c+ev(r?a.slice(r):a)}var d1="Invariant failed";function Fn(a,l){if(!a)throw new Error(d1)}function Xu(a){const l=new Map;let s,r;const c=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,s=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const d=l.get(f);if(d)return c(d),d.value},set(f,d){if(l.size>=a&&s){const y=s;l.delete(y.key),y.next&&(s=y.next,y.next.prev=void 0),y===r&&(r=void 0)}const h=l.get(f);if(h)h.value=d,c(h);else{const y={key:f,value:d,prev:r};r&&(r.next=y),r=y,s||(s=y),l.set(f,y)}},clear(){l.clear(),s=void 0,r=void 0}}}const Ll=0,Ri=1,Ei=2,Zs=3,h1=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,m1=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,y1=/^([^{]*)\{\$\}([^}]*)$/;function gd(a,l,s=new Uint16Array(6)){const r=a.indexOf("/",l),c=r===-1?a.length:r,f=a.substring(l,c);if(!f||!f.includes("$"))return s[0]=Ll,s[1]=l,s[2]=l,s[3]=c,s[4]=c,s[5]=c,s;if(f==="$"){const p=a.length;return s[0]=Ei,s[1]=l,s[2]=l,s[3]=p,s[4]=p,s[5]=p,s}if(f.charCodeAt(0)===36)return s[0]=Ri,s[1]=l,s[2]=l+1,s[3]=c,s[4]=c,s[5]=c,s;const d=f.match(y1);if(d){const _=d[1].length;return s[0]=Ei,s[1]=l+_,s[2]=l+_+1,s[3]=l+_+2,s[4]=l+_+3,s[5]=a.length,s}const h=f.match(m1);if(h){const p=h[1],_=h[2],v=h[3],b=p.length;return s[0]=Zs,s[1]=l+b,s[2]=l+b+3,s[3]=l+b+3+_.length,s[4]=c-v.length,s[5]=c,s}const y=f.match(h1);if(y){const p=y[1],_=y[2],v=y[3],b=p.length;return s[0]=Ri,s[1]=l+b,s[2]=l+b+2,s[3]=l+b+2+_.length,s[4]=c-v.length,s[5]=c,s}return s[0]=Ll,s[1]=l,s[2]=l,s[3]=c,s[4]=c,s[5]=c,s}function tc(a,l,s,r,c,f,d){var y,p,_,v,b;d==null||d(s);let h=r;{const S=s.fullPath??s.from,M=S.length,j=((y=s.options)==null?void 0:y.caseSensitive)??a;for(;h<M;){const A=gd(S,h,l);let U;const V=h,P=A[5];switch(h=P+1,f++,A[0]){case Ll:{const Z=S.substring(A[2],A[3]);if(j){const K=(p=c.static)==null?void 0:p.get(Z);if(K)U=K;else{c.static??(c.static=new Map);const H=Js(s.fullPath??s.from);H.parent=c,H.depth=f,U=H,c.static.set(Z,H)}}else{const K=Z.toLowerCase(),H=(_=c.staticInsensitive)==null?void 0:_.get(K);if(H)U=H;else{c.staticInsensitive??(c.staticInsensitive=new Map);const k=Js(s.fullPath??s.from);k.parent=c,k.depth=f,U=k,c.staticInsensitive.set(K,k)}}break}case Ri:{const Z=S.substring(V,A[1]),K=S.substring(A[4],P),H=j&&!!(Z||K),k=Z?H?Z:Z.toLowerCase():void 0,nt=K?H?K:K.toLowerCase():void 0,X=(v=c.dynamic)==null?void 0:v.find(F=>F.caseSensitive===H&&F.prefix===k&&F.suffix===nt);if(X)U=X;else{const F=Nf(Ri,s.fullPath??s.from,H,k,nt);U=F,F.depth=f,F.parent=c,c.dynamic??(c.dynamic=[]),c.dynamic.push(F)}break}case Zs:{const Z=S.substring(V,A[1]),K=S.substring(A[4],P),H=j&&!!(Z||K),k=Z?H?Z:Z.toLowerCase():void 0,nt=K?H?K:K.toLowerCase():void 0,X=(b=c.optional)==null?void 0:b.find(F=>F.caseSensitive===H&&F.prefix===k&&F.suffix===nt);if(X)U=X;else{const F=Nf(Zs,s.fullPath??s.from,H,k,nt);U=F,F.parent=c,F.depth=f,c.optional??(c.optional=[]),c.optional.push(F)}break}case Ei:{const Z=S.substring(V,A[1]),K=S.substring(A[4],P),H=j&&!!(Z||K),k=Z?H?Z:Z.toLowerCase():void 0,nt=K?H?K:K.toLowerCase():void 0,X=Nf(Ei,s.fullPath??s.from,H,k,nt);U=X,X.parent=c,X.depth=f,c.wildcard??(c.wildcard=[]),c.wildcard.push(X)}}c=U}if((s.path||!s.children)&&!s.isRoot){const A=S.endsWith("/");A||(c.notFound=s),(!c.route||!c.isIndex&&A)&&(c.route=s),c.isIndex||(c.isIndex=A)}}if(s.children)for(const S of s.children)tc(a,l,S,h,c,f,d)}function wf(a,l){if(a.prefix&&l.prefix&&a.prefix!==l.prefix){if(a.prefix.startsWith(l.prefix))return-1;if(l.prefix.startsWith(a.prefix))return 1}if(a.suffix&&l.suffix&&a.suffix!==l.suffix){if(a.suffix.endsWith(l.suffix))return-1;if(l.suffix.endsWith(a.suffix))return 1}return a.prefix&&!l.prefix?-1:!a.prefix&&l.prefix?1:a.suffix&&!l.suffix?-1:!a.suffix&&l.suffix?1:a.caseSensitive&&!l.caseSensitive?-1:!a.caseSensitive&&l.caseSensitive?1:0}function ri(a){var l,s,r;if(a.static)for(const c of a.static.values())ri(c);if(a.staticInsensitive)for(const c of a.staticInsensitive.values())ri(c);if((l=a.dynamic)!=null&&l.length){a.dynamic.sort(wf);for(const c of a.dynamic)ri(c)}if((s=a.optional)!=null&&s.length){a.optional.sort(wf);for(const c of a.optional)ri(c)}if((r=a.wildcard)!=null&&r.length){a.wildcard.sort(wf);for(const c of a.wildcard)ri(c)}}function Js(a){return{kind:Ll,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,isIndex:!1,notFound:null}}function Nf(a,l,s,r,c){return{kind:a,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,isIndex:!1,notFound:null,caseSensitive:s,prefix:r,suffix:c}}function p1(a,l){const s=Js("/"),r=new Uint16Array(6);for(const c of a)tc(!1,r,c,1,s,0);ri(s),l.masksTree=s,l.flatCache=Xu(1e3)}function v1(a,l){a||(a="/");const s=l.flatCache.get(a);if(s)return s;const r=bd(a,l.masksTree);return l.flatCache.set(a,r),r}function g1(a,l,s,r,c){a||(a="/"),r||(r="/");const f=l?`case\0${a}`:a;let d=c.singleCache.get(f);if(!d){d=Js("/");const h=new Uint16Array(6);tc(l,h,{from:a},1,d,0),c.singleCache.set(f,d)}return bd(r,d,s)}function b1(a,l,s=!1){const r=s?a:`nofuzz\0${a}`,c=l.matchCache.get(r);if(c!==void 0)return c;a||(a="/");const f=bd(a,l.segmentTree,s);return f&&(f.branch=T1(f.route)),l.matchCache.set(r,f),f}function S1(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function x1(a,l=!1,s){const r=Js(a.fullPath),c=new Uint16Array(6),f={},d={};let h=0;return tc(l,c,a,1,r,0,p=>{if(s==null||s(p,h),Fn(!(p.id in f),`Duplicate routes found with id: ${String(p.id)}`),f[p.id]=p,h!==0&&p.path){const _=S1(p.fullPath);(!d[_]||p.fullPath.endsWith("/"))&&(d[_]=p)}h++}),ri(r),{processedTree:{segmentTree:r,singleCache:Xu(1e3),matchCache:Xu(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function bd(a,l,s=!1){const r=a.split("/"),c=E1(a,r,l,s);if(!c)return null;const f=_1(a,r,c),d="**"in c;return d&&(f["**"]=c["**"]),{route:d?c.node.notFound??c.node.route:c.node.route,params:f}}function _1(a,l,s){var d,h,y,p,_,v;const r=R1(s.node);let c=null;const f={};for(let b=0,S=0,M=0;S<r.length;b++,S++,M++){const j=r[S],A=l[b],U=M;if(A&&(M+=A.length),j.kind===Ri){c??(c=s.node.fullPath.split("/"));const V=c[S],P=((d=j.prefix)==null?void 0:d.length)??0;if(V.charCodeAt(P)===123){const Z=((h=j.suffix)==null?void 0:h.length)??0,K=V.substring(P+2,V.length-Z-1),H=A.substring(P,A.length-Z);f[K]=decodeURIComponent(H)}else{const Z=V.substring(1);f[Z]=decodeURIComponent(A)}}else if(j.kind===Zs){if(s.skipped&1<<S){b--;continue}c??(c=s.node.fullPath.split("/"));const V=c[S],P=((y=j.prefix)==null?void 0:y.length)??0,B=((p=j.suffix)==null?void 0:p.length)??0,Z=V.substring(P+3,V.length-B-1),K=j.suffix||j.prefix?A.substring(P,A.length-B):A;K&&(f[Z]=decodeURIComponent(K))}else if(j.kind===Ei){const V=j,P=a.substring(U+(((_=V.prefix)==null?void 0:_.length)??0),a.length-(((v=V.suffix)==null?void 0:v.length)??0)),B=decodeURIComponent(P);f["*"]=B,f._splat=B;break}}return f}function T1(a){const l=[a];for(;a.parentRoute;)a=a.parentRoute,l.push(a);return l.reverse(),l}function R1(a){const l=Array(a.depth+1);do l[a.depth]=a,a=a.parent;while(a);return l}function E1(a,l,s,r){const c=!Pu(l),f=c&&a!=="/",d=l.length-(c?1:0),h=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let y=null,p=null,_=null;for(;h.length;){const v=h.pop();let{node:b,index:S,skipped:M,depth:j,statics:A,dynamics:U,optionals:V}=v;r&&b.notFound&&zf(p,v)&&(p=v);const P=S===d;if(P){if(b.route&&(!f||b.isIndex)&&(zf(_,v)&&(_=v),A===d&&b.isIndex))return _;if(!b.optional&&!b.wildcard)continue}const B=P?void 0:l[S];let Z;if(b.wildcard&&zf(y,v))for(const K of b.wildcard){const{prefix:H,suffix:k}=K;if(!(H&&(P||!(K.caseSensitive?B:Z??(Z=B.toLowerCase())).startsWith(H)))){if(k){if(P)continue;const nt=l.slice(S).join("/").slice(-k.length);if((K.caseSensitive?nt:nt.toLowerCase())!==k)continue}y={node:K,index:S,skipped:M,depth:j,statics:A,dynamics:U,optionals:V};break}}if(b.optional){const K=M|1<<j,H=j+1;for(let k=b.optional.length-1;k>=0;k--){const nt=b.optional[k];h.push({node:nt,index:S,skipped:K,depth:H,statics:A,dynamics:U,optionals:V})}if(!P)for(let k=b.optional.length-1;k>=0;k--){const nt=b.optional[k],{prefix:X,suffix:F}=nt;if(X||F){const ot=nt.caseSensitive?B:Z??(Z=B.toLowerCase());if(X&&!ot.startsWith(X)||F&&!ot.endsWith(F))continue}h.push({node:nt,index:S+1,skipped:M,depth:H,statics:A,dynamics:U,optionals:V+1})}}if(!P&&b.dynamic&&B)for(let K=b.dynamic.length-1;K>=0;K--){const H=b.dynamic[K],{prefix:k,suffix:nt}=H;if(k||nt){const X=H.caseSensitive?B:Z??(Z=B.toLowerCase());if(k&&!X.startsWith(k)||nt&&!X.endsWith(nt))continue}h.push({node:H,index:S+1,skipped:M,depth:j+1,statics:A,dynamics:U+1,optionals:V})}if(!P&&b.staticInsensitive){const K=b.staticInsensitive.get(Z??(Z=B.toLowerCase()));K&&h.push({node:K,index:S+1,skipped:M,depth:j+1,statics:A+1,dynamics:U,optionals:V})}if(!P&&b.static){const K=b.static.get(B);K&&h.push({node:K,index:S+1,skipped:M,depth:j+1,statics:A+1,dynamics:U,optionals:V})}}if(_)return _;if(y)return y;if(r&&p){let v=p.index;for(let S=0;S<p.index;S++)v+=l[S].length;const b=v===a.length?"/":a.slice(v);return{node:p.node,skipped:p.skipped,"**":decodeURIComponent(b)}}return null}function zf(a,l){return a?l.statics>a.statics||l.statics===a.statics&&(l.dynamics>a.dynamics||l.dynamics===a.dynamics&&(l.optionals>a.optionals||l.optionals===a.optionals&&(l.node.isIndex>a.node.isIndex||l.node.isIndex===a.node.isIndex&&l.depth>a.depth))):!0}function Uu(a){return Sd(a.filter(l=>l!==void 0).join("/"))}function Sd(a){return a.replace(/\/{2,}/g,"/")}function Iv(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Si(a){const l=a.length;return l>1&&a[l-1]==="/"?a.replace(/\/{1,}$/,""):a}function Lu(a){return Si(Iv(a))}function ku(a,l){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${l}/`?a.slice(0,-1):a}function O1(a,l,s){return ku(a,s)===ku(l,s)}function M1({base:a,to:l,trailingSlash:s="never",cache:r}){const c=l.startsWith("/"),f=!c&&l===".";let d;if(r){d=c?l:f?a:a+"\0"+l;const v=r.get(d);if(v)return v}let h;if(f)h=a.split("/");else if(c)h=l.split("/");else{for(h=a.split("/");h.length>1&&Pu(h)==="";)h.pop();const v=l.split("/");for(let b=0,S=v.length;b<S;b++){const M=v[b];M===""?b?b===S-1&&h.push(M):h=[M]:M===".."?h.pop():M==="."||h.push(M)}}h.length>1&&(Pu(h)===""?s==="never"&&h.pop():s==="always"&&h.push(""));let y,p="";for(let v=0;v<h.length;v++){v>0&&(p+="/");const b=h[v];if(!b)continue;y=gd(b,0,y);const S=y[0];if(S===Ll){p+=b;continue}const M=y[5],j=b.substring(0,y[1]),A=b.substring(y[4],M),U=b.substring(y[2],y[3]);S===Ri?p+=j||A?`${j}{$${U}}${A}`:`$${U}`:S===Ei?p+=j||A?`${j}{$}${A}`:"$":p+=`${j}{-$${U}}${A}`}p=Sd(p);const _=p||"/";return d&&r&&r.set(d,_),_}function Df(a,l,s){const r=l[a];return typeof r!="string"?r:a==="_splat"?encodeURI(r):j1(r,s)}function qf({path:a,params:l,decodeCharMap:s}){let r=!1;const c={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:c,isMissingParams:r};const f=a.length;let d=0,h,y="";for(;d<f;){const _=d;h=gd(a,_,h);const v=h[5];if(d=v+1,_===v)continue;const b=h[0];if(b===Ll){y+="/"+a.substring(_,v);continue}if(b===Ei){const S=l._splat;c._splat=S,c["*"]=S;const M=a.substring(_,h[1]),j=a.substring(h[4],v);if(!S){r=!0,(M||j)&&(y+="/"+M+j);continue}const A=Df("_splat",l,s);y+="/"+M+A+j;continue}if(b===Ri){const S=a.substring(h[2],h[3]);!r&&!(S in l)&&(r=!0),c[S]=l[S];const M=a.substring(_,h[1]),j=a.substring(h[4],v),A=Df(S,l,s)??"undefined";y+="/"+M+A+j;continue}if(b===Zs){const S=a.substring(h[2],h[3]),M=l[S];if(M==null)continue;c[S]=M;const j=a.substring(_,h[1]),A=a.substring(h[4],v),U=Df(S,l,s)??"";y+="/"+j+U+A;continue}}return a.endsWith("/")&&(y+="/"),{usedParams:c,interpolatedPath:y||"/",isMissingParams:r}}function j1(a,l){let s=encodeURIComponent(a);if(l)for(const[r,c]of l)s=s.replaceAll(r,c);return s}function Ie(a){return!!(a!=null&&a.isNotFound)}function C1(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Zu="tsr-scroll-restoration-v1_3",A1=(a,l)=>{let s;return(...r)=>{s||(s=setTimeout(()=>{a(...r),s=null},l))}};function w1(){const a=C1();if(!a)return null;const l=a.getItem(Zu);let s=l?JSON.parse(l):{};return{state:s,set:r=>(s=gi(r,s)||s,a.setItem(Zu,JSON.stringify(s)))}}const Cu=w1(),cd=a=>a.state.__TSR_key||a.href;function N1(a){const l=[];let s;for(;s=a.parentNode;)l.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,a)+1})`),a=s;return`${l.reverse().join(" > ")}`.toLowerCase()}let Ju=!1;function tg({storageKey:a,key:l,behavior:s,shouldScrollRestoration:r,scrollToTopSelectors:c,location:f}){var p,_;let d;try{d=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(v){console.error(v);return}const h=l||((p=window.history.state)==null?void 0:p.__TSR_key),y=d[h];Ju=!0;t:{if(r&&y&&Object.keys(y).length>0){for(const S in y){const M=y[S];if(S==="window")window.scrollTo({top:M.scrollY,left:M.scrollX,behavior:s});else if(S){const j=document.querySelector(S);j&&(j.scrollLeft=M.scrollX,j.scrollTop=M.scrollY)}}break t}const v=(f??window.location).hash.split("#",2)[1];if(v){const S=((_=window.history.state)==null?void 0:_.__hashScrollIntoViewOptions)??!0;if(S){const M=document.getElementById(v);M&&M.scrollIntoView(S)}break t}const b={top:0,left:0,behavior:s};if(window.scrollTo(b),c)for(const S of c){if(S==="window")continue;const M=typeof S=="function"?S():document.querySelector(S);M&&M.scrollTo(b)}}Ju=!1}function z1(a,l){if(!Cu&&!a.isServer||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isServer||a.isScrollRestorationSetup||!Cu))return;a.isScrollRestorationSetup=!0,Ju=!1;const r=a.options.getScrollRestorationKey||cd;window.history.scrollRestoration="manual";const c=f=>{if(Ju||!a.isScrollRestoring)return;let d="";if(f.target===document||f.target===window)d="window";else{const y=f.target.getAttribute("data-scroll-restoration-id");y?d=`[data-scroll-restoration-id="${y}"]`:d=N1(f.target)}const h=r(a.state.location);Cu.set(y=>{const p=y[h]||(y[h]={}),_=p[d]||(p[d]={});if(d==="window")_.scrollX=window.scrollX||0,_.scrollY=window.scrollY||0;else if(d){const v=document.querySelector(d);v&&(_.scrollX=v.scrollLeft||0,_.scrollY=v.scrollTop||0)}return y})};typeof document<"u"&&document.addEventListener("scroll",A1(c,100),!0),a.subscribe("onRendered",f=>{const d=r(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(tg({storageKey:Zu,key:d,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&Cu.set(h=>(h[d]||(h[d]={}),h)))})}function D1(a){if(typeof document<"u"&&document.querySelector){const l=a.state.location.state.__hashScrollIntoViewOptions??!0;if(l&&a.state.location.hash!==""){const s=document.getElementById(a.state.location.hash);s&&s.scrollIntoView(l)}}}function q1(a,l=String){const s=new URLSearchParams;for(const r in a){const c=a[r];c!==void 0&&s.set(r,l(c))}return s.toString()}function Uf(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function U1(a){const l=new URLSearchParams(a),s={};for(const[r,c]of l.entries()){const f=s[r];f==null?s[r]=Uf(c):Array.isArray(f)?f.push(Uf(c)):s[r]=[f,Uf(c)]}return s}const L1=B1(JSON.parse),H1=Q1(JSON.stringify,JSON.parse);function B1(a){return l=>{l[0]==="?"&&(l=l.substring(1));const s=U1(l);for(const r in s){const c=s[r];if(typeof c=="string")try{s[r]=a(c)}catch{}}return s}}function Q1(a,l){const s=typeof l=="function";function r(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(s&&typeof c=="string")try{return l(c),a(c)}catch{}return c}return c=>{const f=q1(c,r);return f?`?${f}`:""}}const He="__root__";function G1(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const l=new Headers(a.headers);a.href&&l.get("Location")===null&&l.set("Location",a.href);const s=new Response(null,{status:a.statusCode,headers:l});if(s.options=a,a.throw)throw s;return s}function rn(a){return a instanceof Response&&!!a.options}const Hu=a=>{var l;if(!a.rendered)return a.rendered=!0,(l=a.onReady)==null?void 0:l.call(a)},ec=(a,l)=>!!(a.preload&&!a.router.state.matches.some(s=>s.id===l)),eg=(a,l)=>{var c;const s=a.router.routesById[l.routeId??""]??a.router.routeTree;!s.options.notFoundComponent&&((c=a.router.options)!=null&&c.defaultNotFoundComponent)&&(s.options.notFoundComponent=a.router.options.defaultNotFoundComponent),Fn(s.options.notFoundComponent);const r=a.matches.find(f=>f.routeId===s.id);Fn(r,"Could not find match for route: "+s.id),a.updateMatch(r.id,f=>({...f,status:"notFound",error:l,isFetching:!1})),l.routerCode==="BEFORE_LOAD"&&s.parentRoute&&(l.routeId=s.parentRoute.id,eg(a,l))},qa=(a,l,s)=>{var r,c,f;if(!(!rn(s)&&!Ie(s))){if(rn(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(l){(r=l._nonReactive.beforeLoadPromise)==null||r.resolve(),(c=l._nonReactive.loaderPromise)==null||c.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loaderPromise=void 0;const d=rn(s)?"redirected":"notFound";l._nonReactive.error=s,a.updateMatch(l.id,h=>({...h,status:d,isFetching:!1,error:s})),Ie(s)&&!s.routeId&&(s.routeId=l.routeId),(f=l._nonReactive.loadPromise)==null||f.resolve()}throw rn(s)?(a.rendered=!0,s.options._fromLocation=a.location,s.redirectHandled=!0,s=a.router.resolveRedirect(s),s):(eg(a,s),s)}},ng=(a,l)=>{const s=a.router.getMatch(l);return!!(!a.router.isServer&&s._nonReactive.dehydrated||a.router.isServer&&s.ssr===!1)},Us=(a,l,s,r)=>{var h,y;const{id:c,routeId:f}=a.matches[l],d=a.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=r,a.firstBadMatchIndex??(a.firstBadMatchIndex=l),qa(a,a.router.getMatch(c),s);try{(y=(h=d.options).onError)==null||y.call(h,s)}catch(p){s=p,qa(a,a.router.getMatch(c),s)}a.updateMatch(c,p=>{var _,v;return(_=p._nonReactive.beforeLoadPromise)==null||_.resolve(),p._nonReactive.beforeLoadPromise=void 0,(v=p._nonReactive.loadPromise)==null||v.resolve(),{...p,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Y1=(a,l,s,r)=>{var S;const c=a.router.getMatch(l),f=(S=a.matches[s-1])==null?void 0:S.id,d=f?a.router.getMatch(f):void 0;if(a.router.isShell()){c.ssr=r.id===He;return}if((d==null?void 0:d.ssr)===!1){c.ssr=!1;return}const h=M=>M===!0&&(d==null?void 0:d.ssr)==="data-only"?"data-only":M,y=a.router.options.defaultSsr??!0;if(r.options.ssr===void 0){c.ssr=h(y);return}if(typeof r.options.ssr!="function"){c.ssr=h(r.options.ssr);return}const{search:p,params:_}=c,v={search:Au(p,c.searchError),params:Au(_,c.paramsError),location:a.location,matches:a.matches.map(M=>({index:M.index,pathname:M.pathname,fullPath:M.fullPath,staticData:M.staticData,id:M.id,routeId:M.routeId,search:Au(M.search,M.searchError),params:Au(M.params,M.paramsError),ssr:M.ssr}))},b=r.options.ssr(v);if(Ha(b))return b.then(M=>{c.ssr=h(M??y)});c.ssr=h(b??y)},ag=(a,l,s,r)=>{var d;if(r._nonReactive.pendingTimeout!==void 0)return;const c=s.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!a.router.isServer&&!ec(a,l)&&(s.options.loader||s.options.beforeLoad||sg(s))&&typeof c=="number"&&c!==1/0&&(s.options.pendingComponent??((d=a.router.options)==null?void 0:d.defaultPendingComponent)))){const h=setTimeout(()=>{Hu(a)},c);r._nonReactive.pendingTimeout=h}},K1=(a,l,s)=>{const r=a.router.getMatch(l);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ag(a,l,s,r);const c=()=>{const f=a.router.getMatch(l);f.preload&&(f.status==="redirected"||f.status==="notFound")&&qa(a,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(c):c()},P1=(a,l,s,r)=>{var H;const c=a.router.getMatch(l),f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Ul(()=>{f==null||f.resolve()});const{paramsError:d,searchError:h}=c;d&&Us(a,s,d,"PARSE_PARAMS"),h&&Us(a,s,h,"VALIDATE_SEARCH"),ag(a,l,r,c);const y=new AbortController,p=(H=a.matches[s-1])==null?void 0:H.id,_=p?a.router.getMatch(p):void 0,b={...(_==null?void 0:_.context)??a.router.options.context??void 0,...c.__routeContext};let S=!1;const M=()=>{S||(S=!0,a.updateMatch(l,k=>({...k,isFetching:"beforeLoad",fetchCount:k.fetchCount+1,abortController:y,context:b})))},j=()=>{var k;(k=c._nonReactive.beforeLoadPromise)==null||k.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(l,nt=>({...nt,isFetching:!1}))};if(!r.options.beforeLoad){Ys(()=>{M(),j()});return}c._nonReactive.beforeLoadPromise=Ul();const{search:A,params:U,cause:V}=c,P=ec(a,l),B={search:A,abortController:y,params:U,preload:P,context:b,location:a.location,navigate:k=>a.router.navigate({...k,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:P?"preload":V,matches:a.matches,...a.router.options.additionalContext},Z=k=>{if(k===void 0){Ys(()=>{M(),j()});return}(rn(k)||Ie(k))&&(M(),Us(a,s,k,"BEFORE_LOAD")),Ys(()=>{M(),a.updateMatch(l,nt=>({...nt,__beforeLoadContext:k,context:{...nt.context,...k}})),j()})};let K;try{if(K=r.options.beforeLoad(B),Ha(K))return M(),K.catch(k=>{Us(a,s,k,"BEFORE_LOAD")}).then(Z)}catch(k){M(),Us(a,s,k,"BEFORE_LOAD")}Z(K)},V1=(a,l)=>{const{id:s,routeId:r}=a.matches[l],c=a.router.looseRoutesById[r],f=()=>{if(a.router.isServer){const y=Y1(a,s,l,c);if(Ha(y))return y.then(h)}return h()},d=()=>P1(a,s,l,c),h=()=>{if(ng(a,s))return;const y=K1(a,s,c);return Ha(y)?y.then(d):d()};return f()},Ks=(a,l,s)=>{var f,d,h,y,p,_;const r=a.router.getMatch(l);if(!r||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const c={matches:a.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(d=(f=s.options).head)==null?void 0:d.call(f,c),(y=(h=s.options).scripts)==null?void 0:y.call(h,c),(_=(p=s.options).headers)==null?void 0:_.call(p,c)]).then(([v,b,S])=>{const M=v==null?void 0:v.meta,j=v==null?void 0:v.links,A=v==null?void 0:v.scripts,U=v==null?void 0:v.styles;return{meta:M,links:j,headScripts:A,headers:S,scripts:b,styles:U}})},ig=(a,l,s,r)=>{const c=a.matchPromises[s-1],{params:f,loaderDeps:d,abortController:h,cause:y}=a.router.getMatch(l);let p=a.router.options.context??{};for(let v=0;v<=s;v++){const b=a.matches[v];if(!b)continue;const S=a.router.getMatch(b.id);S&&(p={...p,...S.__routeContext??{},...S.__beforeLoadContext??{}})}const _=ec(a,l);return{params:f,deps:d,preload:!!_,parentMatchPromise:c,abortController:h,context:p,location:a.location,navigate:v=>a.router.navigate({...v,_fromLocation:a.location}),cause:_?"preload":y,route:r,...a.router.options.additionalContext}},av=async(a,l,s,r)=>{var c,f,d,h,y,p;try{const _=a.router.getMatch(l);try{(!a.router.isServer||_.ssr===!0)&&lg(r);const v=(f=(c=r.options).loader)==null?void 0:f.call(c,ig(a,l,s,r)),b=r.options.loader&&Ha(v);if(!!(b||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||_._nonReactive.minPendingPromise)&&a.updateMatch(l,U=>({...U,isFetching:"loader"})),r.options.loader){const U=b?await v:v;qa(a,a.router.getMatch(l),U),U!==void 0&&a.updateMatch(l,V=>({...V,loaderData:U}))}r._lazyPromise&&await r._lazyPromise;const M=Ks(a,l,r),j=M?await M:void 0,A=_._nonReactive.minPendingPromise;A&&await A,r._componentsPromise&&await r._componentsPromise,a.updateMatch(l,U=>({...U,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...j}))}catch(v){let b=v;const S=_._nonReactive.minPendingPromise;S&&await S,Ie(v)&&await((h=(d=r.options.notFoundComponent)==null?void 0:d.preload)==null?void 0:h.call(d)),qa(a,a.router.getMatch(l),v);try{(p=(y=r.options).onError)==null||p.call(y,v)}catch(A){b=A,qa(a,a.router.getMatch(l),A)}const M=Ks(a,l,r),j=M?await M:void 0;a.updateMatch(l,A=>({...A,error:b,status:"error",isFetching:!1,...j}))}}catch(_){const v=a.router.getMatch(l);if(v){const b=Ks(a,l,r);if(b){const S=await b;a.updateMatch(l,M=>({...M,...S}))}v._nonReactive.loaderPromise=void 0}qa(a,v,_)}},X1=async(a,l)=>{var p,_;const{id:s,routeId:r}=a.matches[l];let c=!1,f=!1;const d=a.router.looseRoutesById[r];if(ng(a,s)){if(a.router.isServer){const v=Ks(a,s,d);if(v){const b=await v;a.updateMatch(s,S=>({...S,...b}))}return a.router.getMatch(s)}}else{const v=a.router.getMatch(s);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!a.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const b=a.router.getMatch(s),S=b._nonReactive.error||b.error;S&&qa(a,b,S)}else{const b=Date.now()-v.updatedAt,S=ec(a,s),M=S?d.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??a.router.options.defaultStaleTime??0,j=d.options.shouldReload,A=typeof j=="function"?j(ig(a,s,l,d)):j,U=!!S&&!a.router.state.matches.some(Z=>Z.id===s),V=a.router.getMatch(s);V._nonReactive.loaderPromise=Ul(),U!==V.preload&&a.updateMatch(s,Z=>({...Z,preload:U}));const{status:P,invalid:B}=V;if(c=P==="success"&&(B||(A??b>M)),!(S&&d.options.preload===!1))if(c&&!a.sync)f=!0,(async()=>{var Z,K;try{await av(a,s,l,d);const H=a.router.getMatch(s);(Z=H._nonReactive.loaderPromise)==null||Z.resolve(),(K=H._nonReactive.loadPromise)==null||K.resolve(),H._nonReactive.loaderPromise=void 0}catch(H){rn(H)&&await a.router.navigate(H.options)}})();else if(P!=="success"||c&&a.sync)await av(a,s,l,d);else{const Z=Ks(a,s,d);if(Z){const K=await Z;a.updateMatch(s,H=>({...H,...K}))}}}}const h=a.router.getMatch(s);f||((p=h._nonReactive.loaderPromise)==null||p.resolve(),(_=h._nonReactive.loadPromise)==null||_.resolve()),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,f||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const y=f?h.isFetching:!1;return y!==h.isFetching||h.invalid!==!1?(a.updateMatch(s,v=>({...v,isFetching:y,invalid:!1})),a.router.getMatch(s)):h};async function iv(a){const l=Object.assign(a,{matchPromises:[]});!l.router.isServer&&l.router.state.matches.some(s=>s._forcePending)&&Hu(l);try{for(let c=0;c<l.matches.length;c++){const f=V1(l,c);Ha(f)&&await f}const s=l.firstBadMatchIndex??l.matches.length;for(let c=0;c<s;c++)l.matchPromises.push(X1(l,c));await Promise.all(l.matchPromises);const r=Hu(l);Ha(r)&&await r}catch(s){if(Ie(s)&&!l.preload){const r=Hu(l);throw Ha(r)&&await r,s}if(rn(s))throw s}return l.matches}async function lg(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(l=>{const{id:s,...r}=l.options;Object.assign(a.options,r),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const l=()=>{var r;const s=[];for(const c of rg){const f=(r=a.options[c])==null?void 0:r.preload;f&&s.push(f())}if(s.length)return Promise.all(s).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(l):l()}return a._componentsPromise}function Au(a,l){return l?{status:"error",error:l}:{status:"success",value:a}}function sg(a){var l;for(const s of rg)if((l=a.options[s])!=null&&l.preload)return!0;return!1}const rg=["component","errorComponent","pendingComponent","notFoundComponent"];function k1(a){return{input:({url:l})=>{for(const s of a)l=ug(s,l);return l},output:({url:l})=>{for(let s=a.length-1;s>=0;s--)l=cg(a[s],l);return l}}}function Z1(a){const l=Lu(a.basepath),s=`/${l}`,r=`${s}/`,c=a.caseSensitive?s:s.toLowerCase(),f=a.caseSensitive?r:r.toLowerCase();return{input:({url:d})=>{const h=a.caseSensitive?d.pathname:d.pathname.toLowerCase();return h===c?d.pathname="/":h.startsWith(f)&&(d.pathname=d.pathname.slice(s.length)),d},output:({url:d})=>(d.pathname=Uu(["/",l,d.pathname]),d)}}function ug(a,l){var r;const s=(r=a==null?void 0:a.input)==null?void 0:r.call(a,{url:l});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return l}function cg(a,l){var r;const s=(r=a==null?void 0:a.output)==null?void 0:r.call(a,{url:l});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return l}function xi(a){const l=a.resolvedLocation,s=a.location,r=(l==null?void 0:l.pathname)!==s.pathname,c=(l==null?void 0:l.href)!==s.href,f=(l==null?void 0:l.hash)!==s.hash;return{fromLocation:l,toLocation:s,pathChanged:r,hrefChanged:c,hashChanged:f}}class J1{constructor(l){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=s=>s(),this.update=s=>{var b;s.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,c=this.basepath??(r==null?void 0:r.basepath)??"/",f=this.basepath===void 0,d=r==null?void 0:r.rewrite;this.options={...r,...s},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(S=>[encodeURIComponent(S),S])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=c1())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&window.origin)&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new r1($1(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),z1(this));let h=!1;const y=this.options.basepath??"/",p=this.options.rewrite;if(f||c!==y||d!==p){this.basepath=y;const S=[];Lu(y)!==""&&S.push(Z1({basepath:y})),p&&S.push(p),this.rewrite=S.length===0?void 0:S.length===1?S[0]:k1(S),this.history&&this.updateLatestLocation(),h=!0}h&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:s,routesByPath:r,processedTree:c}=x1(this.routeTree,this.options.caseSensitive,(d,h)=>{d.init({originalIndex:h})});this.options.routeMasks&&p1(this.options.routeMasks,c),this.routesById=s,this.routesByPath=r,this.processedTree=c;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(s,r)=>{const c={eventType:s,fn:r};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=s=>{this.subscribers.forEach(r=>{r.eventType===s.type&&r.fn(s)})},this.parseLocation=(s,r)=>{const c=({href:y,state:p})=>{const _=new URL(y,this.origin),v=ug(this.rewrite,_),b=this.options.parseSearch(v.search),S=this.options.stringifySearch(b);v.search=S;const M=v.href.replace(v.origin,""),{pathname:j,hash:A}=v;return{href:M,publicHref:y,url:v.href,pathname:nv(j),searchStr:S,search:Fe(r==null?void 0:r.search,b),hash:A.split("#").reverse()[0]??"",state:Fe(r==null?void 0:r.state,p)}},f=c(s),{__tempLocation:d,__tempKey:h}=f.state;if(d&&(!h||h===this.tempLocationKey)){const y=c(d);return y.state.key=f.state.key,y.state.__TSR_key=f.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:f}}return f},this.resolvePathCache=Xu(1e3),this.resolvePathWithBase=(s,r)=>M1({base:s,to:Sd(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,r,c)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:r},c):this.matchRoutesInternal(s,r),this.getMatchedRoutes=s=>W1({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const r=this.getMatch(s);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(f=>f.status==="pending"),r=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...r]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=s=>{const r=(f={})=>{var X,F;const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,h=this.matchRoutes(d,{_buildLocation:!0}),y=Pu(h);f.from;const p=f.unsafeRelative==="path"?d.pathname:f.from??y.fullPath,_=this.resolvePathWithBase(p,"."),v=y.search,b={...y.params},S=f.to?this.resolvePathWithBase(_,`${f.to}`):this.resolvePathWithBase(_,"."),M=f.params===!1||f.params===null?{}:(f.params??!0)===!0?b:Object.assign(b,gi(f.params,b)),j=qf({path:S,params:M}).interpolatedPath,A=this.matchRoutes(j,void 0,{_buildLocation:!0}).map(ot=>this.looseRoutesById[ot.routeId]);if(Object.keys(M).length>0)for(const ot of A){const Mt=((X=ot.options.params)==null?void 0:X.stringify)??ot.options.stringifyParams;Mt&&Object.assign(M,Mt(M))}const U=s.leaveParams?S:nv(qf({path:S,params:M,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let V=v;if(s._includeValidateSearch&&((F=this.options.search)!=null&&F.strict)){const ot={};A.forEach(Mt=>{if(Mt.options.validateSearch)try{Object.assign(ot,od(Mt.options.validateSearch,{...ot,...V}))}catch{}}),V=ot}V=I1({search:V,dest:f,destRoutes:A,_includeValidateSearch:s._includeValidateSearch}),V=Fe(v,V);const P=this.options.stringifySearch(V),B=f.hash===!0?d.hash:f.hash?gi(f.hash,d.hash):void 0,Z=B?`#${B}`:"";let K=f.state===!0?d.state:f.state?gi(f.state,d.state):{};K=Fe(d.state,K);const H=`${U}${P}${Z}`,k=new URL(H,this.origin),nt=cg(this.rewrite,k);return{publicHref:nt.pathname+nt.search+nt.hash,href:H,url:nt.href,pathname:U,search:V,searchStr:P,state:K,hash:B??"",unmaskOnReload:f.unmaskOnReload}},c=(f={},d)=>{const h=r(f);let y=d?r(d):void 0;if(!y){const p={};if(this.options.routeMasks){const _=v1(h.pathname,this.processedTree);if(_){Object.assign(p,_.params);const{from:v,...b}=_.route;d={from:s.from,...b,params:p},y=r(d)}}}return y&&(h.maskedLocation=y),h};return s.mask?c(s,{from:s.from,...s.mask}):c(s)},this.commitLocation=({viewTransition:s,ignoreBlocker:r,...c})=>{const f=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(_=>{c.state[_]=this.latestLocation.state[_]});const p=bi(c.state,this.latestLocation.state);return y.forEach(_=>{delete c.state[_]}),p},d=Si(this.latestLocation.href)===Si(c.href),h=this.commitLocationPromise;if(this.commitLocationPromise=Ul(()=>{h==null||h.resolve()}),d&&f())this.load();else{let{maskedLocation:y,hashScrollIntoView:p,..._}=c;y&&(_={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{..._,search:_.searchStr,state:{..._.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(_.unmaskOnReload??this.options.unmaskOnReload??!1)&&(_.state.__tempKey=this.tempLocationKey)),_.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[c.replace?"replace":"push"](_.publicHref,_.state,{ignoreBlocker:r})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:r,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:d,href:h,...y}={})=>{if(h){const v=this.history.location.state.__TSR_index,b=Ku(h,{__TSR_index:s?v:v+1});y.to=b.pathname,y.search=this.options.parseSearch(b.search),y.hash=b.hash.slice(1)}const p=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const _=this.commitLocation({...p,viewTransition:f,replace:s,resetScroll:r,hashScrollIntoView:c,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),_},this.navigate=async({to:s,reloadDocument:r,href:c,...f})=>{var d;if(!r&&c)try{new URL(`${c}`),r=!0}catch{}if(r){if(c||(c=this.buildLocation({to:s,...f}).url),!f.ignoreBlocker){const h=this.history,y=((d=h.getBlockers)==null?void 0:d.call(h))??[];for(const p of y)if(p!=null&&p.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...f,href:c,to:s,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),c=f=>{try{return encodeURI(decodeURI(f))}catch{return f}};if(Lu(c(this.latestLocation.href))!==Lu(c(r.href))){let f=r.url;throw this.origin&&f.startsWith(this.origin)&&(f=f.replace(this.origin,"")||"/"),G1({href:f})}}const s=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:r.cachedMatches.filter(c=>!s.some(f=>f.id===c.id))}))},this.load=async s=>{let r,c,f;for(f=new Promise(h=>{this.startTransition(async()=>{var y;try{this.beforeLoad();const p=this.latestLocation,_=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...xi({resolvedLocation:_,location:p})}),this.emit({type:"onBeforeLoad",...xi({resolvedLocation:_,location:p})}),await iv({router:this,sync:s==null?void 0:s.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],b=[],S=[];Ys(()=>{this.__store.setState(M=>{const j=M.matches,A=M.pendingMatches||M.matches;return v=j.filter(U=>!A.some(V=>V.id===U.id)),b=A.filter(U=>!j.some(V=>V.id===U.id)),S=A.filter(U=>j.some(V=>V.id===U.id)),{...M,isLoading:!1,loadedAt:Date.now(),matches:A,pendingMatches:void 0,cachedMatches:[...M.cachedMatches,...v.filter(U=>U.status!=="error"&&U.status!=="notFound")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[b,"onEnter"],[S,"onStay"]].forEach(([M,j])=>{M.forEach(A=>{var U,V;(V=(U=this.looseRoutesById[A.routeId].options)[j])==null||V.call(U,A)})})})})}})}catch(p){rn(p)?(r=p,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Ie(p)&&(c=p),this.__store.setState(_=>({..._,statusCode:r?r.status:c?404:_.matches.some(v=>v.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===f&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.__store.state.matches.some(h=>h.status==="error")&&(d=500),d!==void 0&&this.__store.setState(h=>({...h,statusCode:d}))},this.startViewTransition=s=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.state.resolvedLocation,h=typeof r.types=="function"?r.types(xi({resolvedLocation:d,location:f})):r.types;if(h===!1){s();return}c={update:s,types:h}}else c=s;document.startViewTransition(c)}else s()},this.updateMatch=(s,r)=>{this.startTransition(()=>{var f;const c=(f=this.state.pendingMatches)!=null&&f.some(d=>d.id===s)?"pendingMatches":this.state.matches.some(d=>d.id===s)?"matches":this.state.cachedMatches.some(d=>d.id===s)?"cachedMatches":"";c&&this.__store.setState(d=>{var h;return{...d,[c]:(h=d[c])==null?void 0:h.map(y=>y.id===s?r(y):y)}})})},this.getMatch=s=>{var c;const r=f=>f.id===s;return this.state.cachedMatches.find(r)??((c=this.state.pendingMatches)==null?void 0:c.find(r))??this.state.matches.find(r)},this.invalidate=s=>{const r=c=>{var f;return((f=s==null?void 0:s.filter)==null?void 0:f.call(s,c))??!0?{...c,invalid:!0,...s!=null&&s.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c};return this.__store.setState(c=>{var f;return{...c,matches:c.matches.map(r),cachedMatches:c.cachedMatches.map(r),pendingMatches:(f=c.pendingMatches)==null?void 0:f.map(r)}}),this.shouldViewTransition=!1,this.load({sync:s==null?void 0:s.sync})},this.resolveRedirect=s=>{if(!s.options.href){const r=this.buildLocation(s.options);let c=r.url;this.origin&&c.startsWith(this.origin)&&(c=c.replace(this.origin,"")||"/"),s.options.href=r.href,s.headers.set("Location",c)}return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const r=s==null?void 0:s.filter;r!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(f=>!r(f))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=r=>{const c=this.looseRoutesById[r.routeId];if(!c.options.loader)return!0;const f=(r.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=f};this.clearCache({filter:s})},this.loadRouteChunk=lg,this.preloadRoute=async s=>{const r=this.buildLocation(s);let c=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(h=>h.id)),d=new Set([...f,...this.state.cachedMatches.map(h=>h.id)]);Ys(()=>{c.forEach(h=>{d.has(h.id)||this.__store.setState(y=>({...y,cachedMatches:[...y.cachedMatches,h]}))})});try{return c=await iv({router:this,matches:c,location:r,preload:!0,updateMatch:(h,y)=>{f.has(h)?c=c.map(p=>p.id===h?y(p):p):this.updateMatch(h,y)}}),c}catch(h){if(rn(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:r});Ie(h)||console.error(h);return}},this.matchRoute=(s,r)=>{const c={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(c);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const h=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,y=g1(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,h.pathname,this.processedTree);return!y||s.params&&!bi(y.params,s.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?bi(h.search,f.search,{partial:!0})?y.params:!1:y.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??H1,parseSearch:l.parseSearch??L1}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(l,s){const r=this.getMatchedRoutes(l.pathname),{foundRoute:c,routeParams:f}=r;let{matchedRoutes:d}=r,h=!1;(c?c.path!=="/"&&f["**"]:Si(l.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:h=!0);const y=(()=>{if(h){if(this.options.notFoundMode!=="root")for(let v=d.length-1;v>=0;v--){const b=d[v];if(b.children)return b.id}return He}})(),p=[],_=v=>(v==null?void 0:v.id)?v.context??this.options.context??void 0:this.options.context??void 0;return d.forEach((v,b)=>{var Mt,kt,le;const S=p[b-1],[M,j,A]=(()=>{const q=(S==null?void 0:S.search)??l.search,J=(S==null?void 0:S._strictSearch)??void 0;try{const it=od(v.options.validateSearch,{...q})??void 0;return[{...q,...it},{...J,...it},void 0]}catch(it){let _t=it;if(it instanceof Fu||(_t=new Fu(it.message,{cause:it})),s!=null&&s.throwOnError)throw _t;return[q,{},_t]}})(),U=((kt=(Mt=v.options).loaderDeps)==null?void 0:kt.call(Mt,{search:M}))??"",V=U?JSON.stringify(U):"",{interpolatedPath:P,usedParams:B}=qf({path:v.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),Z=v.id+P+V,K=this.getMatch(Z),H=this.state.matches.find(q=>q.routeId===v.id),k=(K==null?void 0:K._strictParams)??B;let nt;if(!K){const q=((le=v.options.params)==null?void 0:le.parse)??v.options.parseParams;if(q)try{Object.assign(k,q(k))}catch(J){if(Ie(J)||rn(J)?nt=J:nt=new F1(J.message,{cause:J}),s!=null&&s.throwOnError)throw nt}}Object.assign(f,k);const X=H?"stay":"enter";let F;if(K)F={...K,cause:X,params:H?Fe(H.params,f):f,_strictParams:k,search:Fe(H?H.search:K.search,M),_strictSearch:j};else{const q=v.options.loader||v.options.beforeLoad||v.lazyFn||sg(v)?"pending":"success";F={id:Z,index:b,routeId:v.id,params:H?Fe(H.params,f):f,_strictParams:k,pathname:P,updatedAt:Date.now(),search:H?Fe(H.search,M):M,_strictSearch:j,searchError:void 0,status:q,isFetching:!1,error:void 0,paramsError:nt,__routeContext:void 0,_nonReactive:{loadPromise:Ul()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:H?Fe(H.loaderDeps,U):U,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}s!=null&&s.preload||(F.globalNotFound=y===v.id),F.searchError=A;const ot=_(S);F.context={...ot,...F.__routeContext,...F.__beforeLoadContext},p.push(F)}),p.forEach((v,b)=>{const S=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)&&(s==null?void 0:s._buildLocation)!==!0){const j=p[b-1],A=_(j);if(S.options.context){const U={deps:v.loaderDeps,params:v.params,context:A??{},location:l,navigate:V=>this.navigate({...V,_fromLocation:l}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:p};v.__routeContext=S.options.context(U)??void 0}v.context={...A,...v.__routeContext,...v.__beforeLoadContext}}}),p}}class Fu extends Error{}class F1 extends Error{}function $1(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function od(a,l){if(a==null)return{};if("~standard"in a){const s=a["~standard"].validate(l);if(s instanceof Promise)throw new Fu("Async validation not supported");if(s.issues)throw new Fu(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in a?a.parse(l):typeof a=="function"?a(l):{}}function W1({pathname:a,routesById:l,processedTree:s}){const r={},c=Si(a);let f;const d=b1(c,s,!0);return d&&(f=d.route,Object.assign(r,d.params)),{matchedRoutes:(d==null?void 0:d.branch)||[l[He]],routeParams:r,foundRoute:f}}function I1({search:a,dest:l,destRoutes:s,_includeValidateSearch:r}){const c=s.reduce((h,y)=>{var _;const p=[];if("search"in y.options)(_=y.options.search)!=null&&_.middlewares&&p.push(...y.options.search.middlewares);else if(y.options.preSearchFilters||y.options.postSearchFilters){const v=({search:b,next:S})=>{let M=b;"preSearchFilters"in y.options&&y.options.preSearchFilters&&(M=y.options.preSearchFilters.reduce((A,U)=>U(A),b));const j=S(M);return"postSearchFilters"in y.options&&y.options.postSearchFilters?y.options.postSearchFilters.reduce((A,U)=>U(A),j):j};p.push(v)}if(r&&y.options.validateSearch){const v=({search:b,next:S})=>{const M=S(b);try{return{...M,...od(y.options.validateSearch,M)??void 0}}catch{return M}};p.push(v)}return h.concat(p)},[])??[],f=({search:h})=>l.search?l.search===!0?h:gi(l.search,h):{};c.push(f);const d=(h,y)=>{if(h>=c.length)return y;const p=c[h];return p({search:y,next:v=>d(h+1,v)})};return d(0,a)}const tx="Error preloading route! ☝️";class og{constructor(l){if(this.init=s=>{var p,_;this.originalIndex=s.originalIndex;const r=this.options,c=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(_=(p=this.options).getParentRoute)==null?void 0:_.call(p),c?this._path=He:this.parentRoute||Fn(!1);let f=c?He:r==null?void 0:r.path;f&&f!=="/"&&(f=Iv(f));const d=(r==null?void 0:r.id)||f;let h=c?He:Uu([this.parentRoute.id===He?"":this.parentRoute.id,d]);f===He&&(f="/"),h!==He&&(h=Uu(["/",h]));const y=h===He?"/":Uu([this.parentRoute.fullPath,f]);this._path=f,this._id=h,this._fullPath=y,this._to=y},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.options=l||{},this.isRoot=!(l!=null&&l.getParentRoute),l!=null&&l.id&&(l!=null&&l.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class ex extends og{constructor(l){super(l)}}function xd(a){const l=a.errorComponent??nc;return x.jsx(nx,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:s,reset:r})=>s?W.createElement(l,{error:s,reset:r}):a.children})}class nx extends W.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(l){return{resetKey:l.getResetKey()}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidUpdate(l,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(l,s){this.props.onCatch&&this.props.onCatch(l,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function nc({error:a}){const[l,s]=W.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(r=>!r),children:l?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),l?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?x.jsx("code",{children:a.message}):null})}):null]})}function ax({children:a,fallback:l=null}){return ix()?x.jsx(ks.Fragment,{children:a}):x.jsx(ks.Fragment,{children:l})}function ix(){return ks.useSyncExternalStore(lx,()=>!0,()=>!1)}function lx(){return()=>{}}var Lf={exports:{}},Hf={},Bf={exports:{}},Qf={};/**
50
+ * @license React
51
+ * use-sync-external-store-shim.production.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var lv;function sx(){if(lv)return Qf;lv=1;var a=nr();function l(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var s=typeof Object.is=="function"?Object.is:l,r=a.useState,c=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function h(v,b){var S=b(),M=r({inst:{value:S,getSnapshot:b}}),j=M[0].inst,A=M[1];return f(function(){j.value=S,j.getSnapshot=b,y(j)&&A({inst:j})},[v,S,b]),c(function(){return y(j)&&A({inst:j}),v(function(){y(j)&&A({inst:j})})},[v]),d(S),S}function y(v){var b=v.getSnapshot;v=v.value;try{var S=b();return!s(v,S)}catch{return!0}}function p(v,b){return b()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Qf.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:_,Qf}var sv;function rx(){return sv||(sv=1,Bf.exports=sx()),Bf.exports}/**
58
+ * @license React
59
+ * use-sync-external-store-shim/with-selector.production.js
60
+ *
61
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var rv;function ux(){if(rv)return Hf;rv=1;var a=nr(),l=rx();function s(p,_){return p===_&&(p!==0||1/p===1/_)||p!==p&&_!==_}var r=typeof Object.is=="function"?Object.is:s,c=l.useSyncExternalStore,f=a.useRef,d=a.useEffect,h=a.useMemo,y=a.useDebugValue;return Hf.useSyncExternalStoreWithSelector=function(p,_,v,b,S){var M=f(null);if(M.current===null){var j={hasValue:!1,value:null};M.current=j}else j=M.current;M=h(function(){function U(K){if(!V){if(V=!0,P=K,K=b(K),S!==void 0&&j.hasValue){var H=j.value;if(S(H,K))return B=H}return B=K}if(H=B,r(P,K))return H;var k=b(K);return S!==void 0&&S(H,k)?(P=K,H):(P=K,B=k)}var V=!1,P,B,Z=v===void 0?null:v;return[function(){return U(_())},Z===null?void 0:function(){return U(Z())}]},[_,v,b,S]);var A=c(p,M[0],M[1]);return d(function(){j.hasValue=!0,j.value=A},[A]),y(A),A},Hf}var uv;function cx(){return uv||(uv=1,Lf.exports=ux()),Lf.exports}var ox=cx();function fx(a,l=r=>r,s={}){const r=s.equal??dx;return ox.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,l,r)}function dx(a,l){if(Object.is(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;if(a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(const[r,c]of a)if(!l.has(r)||!Object.is(c,l.get(r)))return!1;return!0}if(a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(const r of a)if(!l.has(r))return!1;return!0}if(a instanceof Date&&l instanceof Date)return a.getTime()===l.getTime();const s=cv(a);if(s.length!==cv(l).length)return!1;for(let r=0;r<s.length;r++)if(!Object.prototype.hasOwnProperty.call(l,s[r])||!Object.is(a[s[r]],l[s[r]]))return!1;return!0}function cv(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const Gf=W.createContext(null);function fg(){return typeof document>"u"?Gf:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Gf,Gf)}function Be(a){const l=W.useContext(fg());return a==null||a.warn,l}function Me(a){const l=Be({warn:(a==null?void 0:a.router)===void 0}),s=(a==null?void 0:a.router)||l,r=W.useRef(void 0);return fx(s.__store,c=>{if(a!=null&&a.select){if(a.structuralSharing??s.options.defaultStructuralSharing){const f=Fe(r.current,a.select(c));return r.current=f,f}return a.select(c)}return c})}const ac=W.createContext(void 0),hx=W.createContext(void 0);function vn(a){const l=W.useContext(a.from?hx:ac);return Me({select:r=>{const c=r.matches.find(f=>a.from?a.from===f.routeId:f.id===l);if(Fn(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function _d(a){return vn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:l=>a.select?a.select(l.loaderData):l.loaderData})}function Td(a){const{select:l,...s}=a;return vn({...s,select:r=>l?l(r.loaderDeps):r.loaderDeps})}function ar(a){return vn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:l=>{const s=a.strict===!1?l.params:l._strictParams;return a.select?a.select(s):s}})}function Rd(a){return vn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:l=>a.select?a.select(l.search):l.search})}const wu=typeof window<"u"?W.useLayoutEffect:W.useEffect;function Yf(a){const l=W.useRef({value:a,prev:null}),s=l.current.value;return a!==s&&(l.current={value:a,prev:s}),l.current.prev}function mx(a,l,s={},r={}){W.useEffect(()=>{if(!a.current||r.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{l(f)},s);return c.observe(a.current),()=>{c.disconnect()}},[l,s,r.disabled,a])}function yx(a){const l=W.useRef(null);return W.useImperativeHandle(a,()=>l.current,[]),l}function ir(a){const l=Be();return W.useCallback(s=>l.navigate({...s,from:s.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,l])}var px=Hv();function vx(a,l){const s=Be(),[r,c]=W.useState(!1),f=W.useRef(!1),d=yx(l),{activeProps:h,inactiveProps:y,activeOptions:p,to:_,preload:v,preloadDelay:b,hashScrollIntoView:S,replace:M,startTransition:j,resetScroll:A,viewTransition:U,children:V,target:P,disabled:B,style:Z,className:K,onClick:H,onFocus:k,onMouseEnter:nt,onMouseLeave:X,onTouchStart:F,ignoreBlocker:ot,params:Mt,search:kt,hash:le,state:q,mask:J,reloadDocument:it,unsafeRelative:_t,from:Nt,_fromLocation:O,...Y}=a,$=Me({select:jt=>jt.location.search,structuralSharing:!0}),tt=a.from,ut=W.useMemo(()=>({...a,from:tt}),[s,$,tt,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),ct=W.useMemo(()=>s.buildLocation({...ut}),[s,ut]),yt=W.useMemo(()=>{if(B)return;let jt=ct.maskedLocation?ct.maskedLocation.url:ct.url,Et=!1;return s.origin&&(jt.startsWith(s.origin)?jt=s.history.createHref(jt.replace(s.origin,""))||"/":Et=!0),{href:jt,external:Et}},[B,ct.maskedLocation,ct.url,s.origin,s.history]),Zt=W.useMemo(()=>{if(yt!=null&&yt.external)return yt.href;try{return new URL(_),_}catch{}},[_,yt]),zt=a.reloadDocument||Zt?!1:v??s.options.defaultPreload,Sn=b??s.options.defaultPreloadDelay??0,$n=Me({select:jt=>{if(Zt)return!1;if(p!=null&&p.exact){if(!O1(jt.location.pathname,ct.pathname,s.basepath))return!1}else{const Et=ku(jt.location.pathname,s.basepath),je=ku(ct.pathname,s.basepath);if(!(Et.startsWith(je)&&(Et.length===je.length||Et[je.length]==="/")))return!1}return((p==null?void 0:p.includeSearch)??!0)&&!bi(jt.location.search,ct.search,{partial:!(p!=null&&p.exact),ignoreUndefined:!(p!=null&&p.explicitUndefined)})?!1:p!=null&&p.includeHash?jt.location.hash===ct.hash:!0}}),tn=W.useCallback(()=>{s.preloadRoute({...ut}).catch(jt=>{console.warn(jt),console.warn(tx)})},[s,ut]),sr=W.useCallback(jt=>{jt!=null&&jt.isIntersecting&&tn()},[tn]);mx(d,sr,_x,{disabled:!!B||zt!=="viewport"}),W.useEffect(()=>{f.current||!B&&zt==="render"&&(tn(),f.current=!0)},[B,tn,zt]);const xn=jt=>{const Et=jt.currentTarget.getAttribute("target"),je=P!==void 0?P:Et;if(!B&&!Tx(jt)&&!jt.defaultPrevented&&(!je||je==="_self")&&jt.button===0){jt.preventDefault(),px.flushSync(()=>{c(!0)});const Gl=s.subscribe("onResolved",()=>{Gl(),c(!1)});s.navigate({...ut,replace:M,resetScroll:A,hashScrollIntoView:S,startTransition:j,viewTransition:U,ignoreBlocker:ot})}};if(Zt)return{...Y,ref:d,href:Zt,...V&&{children:V},...P&&{target:P},...B&&{disabled:B},...Z&&{style:Z},...K&&{className:K},...H&&{onClick:H},...k&&{onFocus:k},...nt&&{onMouseEnter:nt},...X&&{onMouseLeave:X},...F&&{onTouchStart:F}};const wi=jt=>{B||zt&&tn()},Ql=wi,uc=jt=>{if(!(B||!zt))if(!Sn)tn();else{const Et=jt.target;if(Ls.has(Et))return;const je=setTimeout(()=>{Ls.delete(Et),tn()},Sn);Ls.set(Et,je)}},rr=jt=>{if(B||!zt||!Sn)return;const Et=jt.target,je=Ls.get(Et);je&&(clearTimeout(je),Ls.delete(Et))},Wn=$n?gi(h,{})??gx:Kf,In=$n?Kf:gi(y,{})??Kf,Ni=[K,Wn.className,In.className].filter(Boolean).join(" "),ur=(Z||Wn.style||In.style)&&{...Z,...Wn.style,...In.style};return{...Y,...Wn,...In,href:yt==null?void 0:yt.href,ref:d,onClick:Hs([H,xn]),onFocus:Hs([k,wi]),onMouseEnter:Hs([nt,uc]),onMouseLeave:Hs([X,rr]),onTouchStart:Hs([F,Ql]),disabled:!!B,target:P,...ur&&{style:ur},...Ni&&{className:Ni},...B&&bx,...$n&&Sx,...r&&xx}}const Kf={},gx={className:"active"},bx={role:"link","aria-disabled":!0},Sx={"data-status":"active","aria-current":"page"},xx={"data-transitioning":"transitioning"},Ls=new WeakMap,_x={rootMargin:"100px"},Hs=a=>l=>{for(const s of a)if(s){if(l.defaultPrevented)return;s(l)}},Oe=W.forwardRef((a,l)=>{const{_asChild:s,...r}=a,{type:c,ref:f,...d}=vx(r,l),h=typeof r.children=="function"?r.children({isActive:d["data-status"]==="active"}):r.children;return s===void 0&&delete d.disabled,W.createElement(s||"a",{...d,ref:f},h)});function Tx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}class Rx extends og{constructor(l){super(l),this.useMatch=s=>vn({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>vn({...s,from:this.id,select:r=>s!=null&&s.select?s.select(r.context):r.context}),this.useSearch=s=>Rd({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>ar({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Td({...s,from:this.id}),this.useLoaderData=s=>_d({...s,from:this.id}),this.useNavigate=()=>ir({from:this.fullPath}),this.Link=ks.forwardRef((s,r)=>x.jsx(Oe,{ref:r,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function Mi(a){return new Rx(a)}class Ex extends ex{constructor(l){super(l),this.useMatch=s=>vn({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>vn({...s,from:this.id,select:r=>s!=null&&s.select?s.select(r.context):r.context}),this.useSearch=s=>Rd({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>ar({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Td({...s,from:this.id}),this.useLoaderData=s=>_d({...s,from:this.id}),this.useNavigate=()=>ir({from:this.fullPath}),this.Link=ks.forwardRef((s,r)=>x.jsx(Oe,{ref:r,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function Ox(a){return new Ex(a)}function ov(a){return typeof a=="object"?new fv(a,{silent:!0}).createRoute(a):new fv(a,{silent:!0}).createRoute}class fv{constructor(l,s){this.path=l,this.createRoute=r=>{this.silent;const c=Mi(r);return c.isRoot=!1,c},this.silent=s==null?void 0:s.silent}}class dv{constructor(l){this.useMatch=s=>vn({select:s==null?void 0:s.select,from:this.options.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>vn({from:this.options.id,select:r=>s!=null&&s.select?s.select(r.context):r.context}),this.useSearch=s=>Rd({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.options.id}),this.useParams=s=>ar({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>Td({...s,from:this.options.id}),this.useLoaderData=s=>_d({...s,from:this.options.id}),this.useNavigate=()=>{const s=Be();return ir({from:s.routesById[this.options.id].fullPath})},this.options=l,this.$$typeof=Symbol.for("react.memo")}}function hv(a){return typeof a=="object"?new dv(a):l=>new dv({id:a,...l})}function Mx(){const a=Be(),l=W.useRef({router:a,mounted:!1}),[s,r]=W.useState(!1),{hasPendingMatches:c,isLoading:f}=Me({select:v=>({isLoading:v.isLoading,hasPendingMatches:v.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),d=Yf(f),h=f||s||c,y=Yf(h),p=f||c,_=Yf(p);return a.startTransition=v=>{r(!0),W.startTransition(()=>{v(),r(!1)})},W.useEffect(()=>{const v=a.history.subscribe(a.load),b=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Si(a.latestLocation.href)!==Si(b.href)&&a.commitLocation({...b,replace:!0}),()=>{v()}},[a,a.history]),wu(()=>{if(typeof window<"u"&&a.ssr||l.current.router===a&&l.current.mounted)return;l.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(b){console.error(b)}})()},[a]),wu(()=>{d&&!f&&a.emit({type:"onLoad",...xi(a.state)})},[d,a,f]),wu(()=>{_&&!p&&a.emit({type:"onBeforeRouteMount",...xi(a.state)})},[p,_,a]),wu(()=>{if(y&&!h){const v=xi(a.state);a.emit({type:"onResolved",...v}),a.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),v.hrefChanged&&D1(a)}},[h,y,a]),null}function jx(a){const l=Me({select:s=>`not-found-${s.location.pathname}-${s.status}`});return x.jsx(xd,{getResetKey:()=>l,onCatch:(s,r)=>{var c;if(Ie(s))(c=a.onCatch)==null||c.call(a,s,r);else throw s},errorComponent:({error:s})=>{var r;if(Ie(s))return(r=a.fallback)==null?void 0:r.call(a,s);throw s},children:a.children})}function Cx(){return x.jsx("p",{children:"Not Found"})}function Tl(a){return x.jsx(x.Fragment,{children:a.children})}function dg(a,l,s){return l.options.notFoundComponent?x.jsx(l.options.notFoundComponent,{...s}):a.options.defaultNotFoundComponent?x.jsx(a.options.defaultNotFoundComponent,{...s}):x.jsx(Cx,{})}function Ax({children:a}){var s;const l=Be();return l.isServer?x.jsx("script",{nonce:(s=l.options.ssr)==null?void 0:s.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:a+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function wx(){const a=Be();if(!a.isScrollRestoring||!a.isServer||typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return null;const s=(a.options.getScrollRestorationKey||cd)(a.latestLocation),r=s!==cd(a.latestLocation)?s:void 0,c={storageKey:Zu,shouldScrollRestoration:!0};return r&&(c.key=r),x.jsx(Ax,{children:`(${tg.toString()})(${JSON.stringify(c)})`})}const hg=W.memo(function({matchId:l}){var U,V;const s=Be(),r=Me({select:P=>{const B=P.matches.find(Z=>Z.id===l);return Fn(B),{routeId:B.routeId,ssr:B.ssr,_displayPending:B._displayPending}},structuralSharing:!0}),c=s.routesById[r.routeId],f=c.options.pendingComponent??s.options.defaultPendingComponent,d=f?x.jsx(f,{}):null,h=c.options.errorComponent??s.options.defaultErrorComponent,y=c.options.onCatch??s.options.defaultOnCatch,p=c.isRoot?c.options.notFoundComponent??((U=s.options.notFoundRoute)==null?void 0:U.options.component):c.options.notFoundComponent,_=r.ssr===!1||r.ssr==="data-only",v=(!c.isRoot||c.options.wrapInSuspense||_)&&(c.options.wrapInSuspense??f??(((V=c.options.errorComponent)==null?void 0:V.preload)||_))?W.Suspense:Tl,b=h?xd:Tl,S=p?jx:Tl,M=Me({select:P=>P.loadedAt}),j=Me({select:P=>{var Z;const B=P.matches.findIndex(K=>K.id===l);return(Z=P.matches[B-1])==null?void 0:Z.routeId}}),A=c.isRoot?c.options.shellComponent??Tl:Tl;return x.jsxs(A,{children:[x.jsx(ac.Provider,{value:l,children:x.jsx(v,{fallback:d,children:x.jsx(b,{getResetKey:()=>M,errorComponent:h||nc,onCatch:(P,B)=>{if(Ie(P))throw P;y==null||y(P,B)},children:x.jsx(S,{fallback:P=>{if(!p||P.routeId&&P.routeId!==r.routeId||!P.routeId&&!c.isRoot)throw P;return W.createElement(p,P)},children:_||r._displayPending?x.jsx(ax,{fallback:d,children:x.jsx(mv,{matchId:l})}):x.jsx(mv,{matchId:l})})})})}),j===He&&s.options.scrollRestoration?x.jsxs(x.Fragment,{children:[x.jsx(Nx,{}),x.jsx(wx,{})]}):null]})});function Nx(){const a=Be(),l=W.useRef(void 0);return x.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(l.current===void 0||l.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...xi(a.state)}),l.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const mv=W.memo(function({matchId:l}){var y,p,_,v;const s=Be(),{match:r,key:c,routeId:f}=Me({select:b=>{const S=b.matches.find(V=>V.id===l),M=S.routeId,j=s.routesById[M].options.remountDeps??s.options.defaultRemountDeps,A=j==null?void 0:j({routeId:M,loaderDeps:S.loaderDeps,params:S._strictParams,search:S._strictSearch});return{key:A?JSON.stringify(A):void 0,routeId:M,match:{id:S.id,status:S.status,error:S.error,_forcePending:S._forcePending,_displayPending:S._displayPending}}},structuralSharing:!0}),d=s.routesById[f],h=W.useMemo(()=>{const b=d.options.component??s.options.defaultComponent;return b?x.jsx(b,{},c):x.jsx(mg,{})},[c,d.options.component,s.options.defaultComponent]);if(r._displayPending)throw(y=s.getMatch(r.id))==null?void 0:y._nonReactive.displayPendingPromise;if(r._forcePending)throw(p=s.getMatch(r.id))==null?void 0:p._nonReactive.minPendingPromise;if(r.status==="pending"){const b=d.options.pendingMinMs??s.options.defaultPendingMinMs;if(b){const S=s.getMatch(r.id);if(S&&!S._nonReactive.minPendingPromise&&!s.isServer){const M=Ul();S._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),S._nonReactive.minPendingPromise=void 0},b)}}throw(_=s.getMatch(r.id))==null?void 0:_._nonReactive.loadPromise}if(r.status==="notFound")return Fn(Ie(r.error)),dg(s,d,r.error);if(r.status==="redirected")throw Fn(rn(r.error)),(v=s.getMatch(r.id))==null?void 0:v._nonReactive.loadPromise;if(r.status==="error"){if(s.isServer){const b=(d.options.errorComponent??s.options.defaultErrorComponent)||nc;return x.jsx(b,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return h}),mg=W.memo(function(){const l=Be(),s=W.useContext(ac),r=Me({select:p=>{var _;return(_=p.matches.find(v=>v.id===s))==null?void 0:_.routeId}}),c=l.routesById[r],f=Me({select:p=>{const v=p.matches.find(b=>b.id===s);return Fn(v),v.globalNotFound}}),d=Me({select:p=>{var b;const _=p.matches,v=_.findIndex(S=>S.id===s);return(b=_[v+1])==null?void 0:b.id}}),h=l.options.defaultPendingComponent?x.jsx(l.options.defaultPendingComponent,{}):null;if(f)return dg(l,c,void 0);if(!d)return null;const y=x.jsx(hg,{matchId:d});return r===He?x.jsx(W.Suspense,{fallback:h,children:y}):y});function zx(){const a=Be(),s=a.routesById[He].options.pendingComponent??a.options.defaultPendingComponent,r=s?x.jsx(s,{}):null,c=a.isServer||typeof document<"u"&&a.ssr?Tl:W.Suspense,f=x.jsxs(c,{fallback:r,children:[!a.isServer&&x.jsx(Mx,{}),x.jsx(Dx,{})]});return a.options.InnerWrap?x.jsx(a.options.InnerWrap,{children:f}):f}function Dx(){const a=Be(),l=Me({select:c=>{var f;return(f=c.matches[0])==null?void 0:f.id}}),s=Me({select:c=>c.loadedAt}),r=l?x.jsx(hg,{matchId:l}):null;return x.jsx(ac.Provider,{value:l,children:a.options.disableGlobalCatchBoundary?r:x.jsx(xd,{getResetKey:()=>s,errorComponent:nc,onCatch:c=>{c.message||c.toString()},children:r})})}const qx=a=>new Ux(a);class Ux extends J1{constructor(l){super(l)}}typeof globalThis<"u"?(globalThis.createFileRoute=ov,globalThis.createLazyFileRoute=hv):typeof window<"u"&&(window.createFileRoute=ov,window.createLazyFileRoute=hv);function Lx({router:a,children:l,...s}){Object.keys(s).length>0&&a.update({...a.options,...s,context:{...a.options.context,...s.context}});const r=fg(),c=x.jsx(r.Provider,{value:a,children:l});return a.options.Wrap?x.jsx(a.options.Wrap,{children:c}):c}function Hx({router:a,...l}){return x.jsx(Lx,{router:a,...l,children:x.jsx(zx,{})})}var Bx=Object.create,yg=Object.defineProperty,Qx=Object.getOwnPropertyDescriptor,pg=Object.getOwnPropertyNames,Gx=Object.getPrototypeOf,Yx=Object.prototype.hasOwnProperty,bn=(a,l)=>function(){return l||(0,a[pg(a)[0]])((l={exports:{}}).exports,l),l.exports},Kx=(a,l,s,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(var c=pg(l),f=0,d=c.length,h;f<d;f++)h=c[f],!Yx.call(a,h)&&h!==s&&yg(a,h,{get:(y=>l[y]).bind(null,h),enumerable:!(r=Qx(l,h))||r.enumerable});return a},Xt=(a,l,s)=>(s=a!=null?Bx(Gx(a)):{},Kx(yg(s,"default",{value:a,enumerable:!0}),a)),vg=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,l){function s(r){"@babel/helpers - typeof";return l.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l.exports.__esModule=!0,l.exports.default=l.exports,s(r)}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),Px=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,l){var s=vg().default;function r(c,f){if(s(c)!="object"||!c)return c;var d=c[Symbol.toPrimitive];if(d!==void 0){var h=d.call(c,f||"default");if(s(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),Vx=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,l){var s=vg().default,r=Px();function c(f){var d=r(f,"string");return s(d)=="symbol"?d:d+""}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}}),ji=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,l){var s=Vx();function r(c,f,d){return(f=s(f))in c?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d,c}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),un=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,l){var s=ji();function r(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);d&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(f,p).enumerable})),h.push.apply(h,y)}return h}function c(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?r(Object(h),!0).forEach(function(y){s(f,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(h,y))})}return f}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}});function Ci(a){const l={subscribe(s){let r=null,c=!1,f=!1,d=!1;function h(){if(r===null){d=!0;return}f||(f=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=a({next(y){var p;c||(p=s.next)===null||p===void 0||p.call(s,y)},error(y){var p;c||(c=!0,(p=s.error)===null||p===void 0||p.call(s,y),h())},complete(){var y;c||(c=!0,(y=s.complete)===null||y===void 0||y.call(s),h())}}),d&&h(),{unsubscribe:h}},pipe(...s){return s.reduce(Xx,l)}};return l}function Xx(a,l){return l(a)}function kx(a){const l=new AbortController;return new Promise((r,c)=>{let f=!1;function d(){f||(f=!0,h.unsubscribe())}l.signal.addEventListener("abort",()=>{c(l.signal.reason)});const h=a.subscribe({next(y){f=!0,r(y),d()},error(y){c(y)},complete(){l.abort(),d()}})})}function Zx(a){return l=>{let s=0,r=null;const c=[];function f(){r||(r=l.subscribe({next(h){for(const p of c){var y;(y=p.next)===null||y===void 0||y.call(p,h)}},error(h){for(const p of c){var y;(y=p.error)===null||y===void 0||y.call(p,h)}},complete(){for(const y of c){var h;(h=y.complete)===null||h===void 0||h.call(y)}}}))}function d(){if(s===0&&r){const h=r;r=null,h.unsubscribe()}}return Ci(h=>(s++,c.push(h),f(),{unsubscribe(){s--,d();const y=c.findIndex(p=>p===h);y>-1&&c.splice(y,1)}}))}}function gg(a){let l=a;const s=[],r=d=>{l!==void 0&&d.next(l),s.push(d)},c=d=>{s.splice(s.indexOf(d),1)},f=Ci(d=>(r(d),()=>{c(d)}));return f.next=d=>{if(l!==d){l=d;for(const h of s)h.next(d)}},f.get=()=>l,f}function bg(a){return Ci(l=>{function s(c=0,f=a.op){const d=a.links[c];if(!d)throw new Error("No more links to execute - did you forget to add an ending link?");return d({op:f,next(y){return s(c+1,y)}})}return s().subscribe(l)})}function yv(a){return Array.isArray(a)?a:[a]}function Jx(a){return l=>{const s=yv(a.true).map(c=>c(l)),r=yv(a.false).map(c=>c(l));return c=>Ci(f=>{const d=a.condition(c.op)?s:r;return bg({op:c.op,links:d}).subscribe(f)})}}function Ba(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}function Fx(a){return typeof a=="function"}const $x=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Wx(a){return $x&&Ba(a)&&Symbol.asyncIterator in a}const fd=a=>a();function pv(a=0){return new Promise(l=>setTimeout(l,a))}var Ix=Object.create,Sg=Object.defineProperty,t_=Object.getOwnPropertyDescriptor,xg=Object.getOwnPropertyNames,e_=Object.getPrototypeOf,n_=Object.prototype.hasOwnProperty,lr=(a,l)=>function(){return l||(0,a[xg(a)[0]])((l={exports:{}}).exports,l),l.exports},a_=(a,l,s,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(var c=xg(l),f=0,d=c.length,h;f<d;f++)h=c[f],!n_.call(a,h)&&h!==s&&Sg(a,h,{get:(y=>l[y]).bind(null,h),enumerable:!(r=t_(l,h))||r.enumerable});return a},ic=(a,l,s)=>(s=a!=null?Ix(e_(a)):{},a_(Sg(s,"default",{value:a,enumerable:!0}),a));const _g=()=>{},vv=a=>{Object.freeze&&Object.freeze(a)};function Tg(a,l,s){var r;const c=l.join(".");return(r=s[c])!==null&&r!==void 0||(s[c]=new Proxy(_g,{get(f,d){if(!(typeof d!="string"||d==="then"))return Tg(a,[...l,d],s)},apply(f,d,h){const y=l[l.length-1];let p={args:h,path:l};return y==="call"?p={args:h.length>=2?[h[1]]:[],path:l.slice(0,-1)}:y==="apply"&&(p={args:h.length>=2?h[1]:[],path:l.slice(0,-1)}),vv(p.args),vv(p.path),a(p)}})),s[c]}const Rg=a=>Tg(a,[],Object.create(null)),i_=a=>new Proxy(_g,{get(l,s){if(s!=="then")return a(s)}});var Eg=lr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,l){function s(r){"@babel/helpers - typeof";return l.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l.exports.__esModule=!0,l.exports.default=l.exports,s(r)}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),l_=lr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,l){var s=Eg().default;function r(c,f){if(s(c)!="object"||!c)return c;var d=c[Symbol.toPrimitive];if(d!==void 0){var h=d.call(c,f||"default");if(s(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),s_=lr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,l){var s=Eg().default,r=l_();function c(f){var d=r(f,"string");return s(d)=="symbol"?d:d+""}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}}),Og=lr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,l){var s=s_();function r(c,f,d){return(f=s(f))in c?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d,c}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),Ed=lr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,l){var s=Og();function r(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);d&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(f,p).enumerable})),h.push.apply(h,y)}return h}function c(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?r(Object(h),!0).forEach(function(y){s(f,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(h,y))})}return f}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}});ic(Ed());var gv=ic(Og()),r_=class extends Error{};function u_(a){if(a instanceof Error)return a;const l=typeof a;if(!(l==="undefined"||l==="function"||a===null)){if(l!=="object")return new Error(String(a));if(Ba(a))return Object.assign(new r_,a)}}var bv=class extends Error{constructor(a){var l,s,r;const c=u_(a.cause),f=(l=(s=a.message)!==null&&s!==void 0?s:c==null?void 0:c.message)!==null&&l!==void 0?l:a.code;super(f,{cause:c}),(0,gv.default)(this,"cause",void 0),(0,gv.default)(this,"code",void 0),this.code=a.code,this.name="TRPCError",(r=this.cause)!==null&&r!==void 0||(this.cause=c)}},Nu=ic(Ed());function c_(a,l){if("error"in a){const r=l.deserialize(a.error);return{ok:!1,error:(0,Nu.default)((0,Nu.default)({},a),{},{error:r})}}return{ok:!0,result:(0,Nu.default)((0,Nu.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:l.deserialize(a.result.data)})}}var Pf=class extends Error{constructor(){super("Unable to transform response from server")}};function Mg(a,l){let s;try{s=c_(a,l)}catch{throw new Pf}if(!s.ok&&(!Ba(s.error.error)||typeof s.error.error.code!="number"))throw new Pf;if(s.ok&&!Ba(s.result))throw new Pf;return s}ic(Ed());function o_(a){return typeof a=="function"}async function f_(a,l){const{_def:s}=a;let r=s.procedures[l];for(;!r;){const c=Object.keys(s.lazy).find(d=>l.startsWith(d));if(!c)return null;await s.lazy[c].load(),r=s.procedures[l]}return r}async function d_(a){const{type:l,path:s}=a,r=await f_(a.router,s);if(!r||!o_(r)||r._def.type!==l&&!a.allowMethodOverride)throw new bv({code:"NOT_FOUND",message:`No "${l}"-procedure on path "${s}"`});/* istanbul ignore if -- @preserve */if(r._def.type!==l&&a.allowMethodOverride&&r._def.type==="subscription")throw new bv({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return r(a)}var zu=Xt(ji()),vl=Xt(un());function h_(a){return a instanceof kn}function m_(a){return Ba(a)&&Ba(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function y_(a,l){return typeof a=="string"?a:Ba(a)&&typeof a.message=="string"?a.message:l}var kn=class Bu extends Error{constructor(l,s){var r,c;const f=s==null?void 0:s.cause;super(l,{cause:f}),(0,zu.default)(this,"cause",void 0),(0,zu.default)(this,"shape",void 0),(0,zu.default)(this,"data",void 0),(0,zu.default)(this,"meta",void 0),this.meta=s==null?void 0:s.meta,this.cause=f,this.shape=s==null||(r=s.result)===null||r===void 0?void 0:r.error,this.data=s==null||(c=s.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Bu.prototype)}static from(l,s={}){const r=l;return h_(r)?(s.meta&&(r.meta=(0,vl.default)((0,vl.default)({},r.meta),s.meta)),r):m_(r)?new Bu(r.error.message,(0,vl.default)((0,vl.default)({},s),{},{result:r})):new Bu(y_(r,"Unknown error"),(0,vl.default)((0,vl.default)({},s),{},{cause:r}))}};function jg(a){const l=a;return l?"input"in l?l:{input:l,output:l}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const Sv=a=>typeof a=="function";function p_(a){if(a)return a;if(typeof window<"u"&&Sv(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Sv(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Ps=Xt(un());function v_(a){return{url:a.url.toString(),fetch:a.fetch,transformer:jg(a.transformer),methodOverride:a.methodOverride}}function g_(a){const l={};for(let s=0;s<a.length;s++){const r=a[s];l[s]=r}return l}const b_={query:"GET",mutation:"POST",subscription:"PATCH"};function Cg(a){return"input"in a?a.transformer.input.serialize(a.input):g_(a.inputs.map(l=>a.transformer.input.serialize(l)))}const Ag=a=>{const l=a.url.split("?");let r=l[0].replace(/\/$/,"")+"/"+a.path;const c=[];if(l[1]&&c.push(l[1]),"inputs"in a&&c.push("batch=1"),a.type==="query"||a.type==="subscription"){const f=Cg(a);f!==void 0&&a.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return c.length&&(r+="?"+c.join("&")),r},S_=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const l=Cg(a);return l!==void 0?JSON.stringify(l):void 0},x_=a=>E_((0,Ps.default)((0,Ps.default)({},a),{},{contentTypeHeader:"application/json",getUrl:Ag,getBody:S_}));var __=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const T_=a=>{var l;if(a!=null&&a.aborted)throw(l=a.throwIfAborted)===null||l===void 0||l.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new __};async function R_(a){var l;T_(a.signal);const s=a.getUrl(a),r=a.getBody(a),c=(l=a.methodOverride)!==null&&l!==void 0?l:b_[a.type],f=await(async()=>{const h=await a.headers();return Symbol.iterator in h?Object.fromEntries(h):h})(),d=(0,Ps.default)((0,Ps.default)((0,Ps.default)({},a.contentTypeHeader&&c!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),f);return p_(a.fetch)(s,{method:c,signal:a.signal,body:r,headers:d})}async function E_(a){const l={},s=await R_(a);l.response=s;const r=await s.json();return l.responseJSON=r,{json:r,meta:l}}Xt(un());const xv=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function _v(a){let l=null,s=null;const r=()=>{clearTimeout(s),s=null,l=null};function c(h){const y=[[]];let p=0;for(;;){const b=h[p];if(!b)break;const S=y[y.length-1];if(b.aborted){var _;(_=b.reject)===null||_===void 0||_.call(b,new Error("Aborted")),p++;continue}if(a.validate(S.concat(b).map(j=>j.key))){S.push(b),p++;continue}if(S.length===0){var v;(v=b.reject)===null||v===void 0||v.call(b,new Error("Input is too big for a single dispatch")),p++;continue}y.push([])}return y}function f(){const h=c(l);r();for(const y of h){if(!y.length)continue;const p={items:y};for(const v of y)v.batch=p;a.fetch(p.items.map(v=>v.key)).then(async v=>{await Promise.all(v.map(async(S,M)=>{const j=p.items[M];try{var A;const V=await Promise.resolve(S);(A=j.resolve)===null||A===void 0||A.call(j,V)}catch(V){var U;(U=j.reject)===null||U===void 0||U.call(j,V)}j.batch=null,j.reject=null,j.resolve=null}));for(const S of p.items){var b;(b=S.reject)===null||b===void 0||b.call(S,new Error("Missing result")),S.batch=null}}).catch(v=>{for(const S of p.items){var b;(b=S.reject)===null||b===void 0||b.call(S,v),S.batch=null}})}}function d(h){var y;const p={aborted:!1,key:h,batch:null,resolve:xv,reject:xv},_=new Promise((v,b)=>{var S;p.reject=b,p.resolve=v,(S=l)!==null&&S!==void 0||(l=[]),l.push(p)});return(y=s)!==null&&y!==void 0||(s=setTimeout(f)),_}return{load:d}}function O_(...a){const l=new AbortController,s=a.length;let r=0;const c=()=>{++r===s&&l.abort()};for(const f of a)f!=null&&f.aborted?c():f==null||f.addEventListener("abort",c,{once:!0});return l.signal}var Du=Xt(un());function M_(a){var l,s;const r=v_(a),c=(l=a.maxURLLength)!==null&&l!==void 0?l:1/0,f=(s=a.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const d=_=>({validate(v){if(c===1/0&&f===1/0)return!0;if(v.length>f)return!1;const b=v.map(j=>j.path).join(","),S=v.map(j=>j.input);return Ag((0,Du.default)((0,Du.default)({},r),{},{type:_,path:b,inputs:S,signal:null})).length<=c},async fetch(v){const b=v.map(V=>V.path).join(","),S=v.map(V=>V.input),M=O_(...v.map(V=>V.signal)),j=await x_((0,Du.default)((0,Du.default)({},r),{},{path:b,inputs:S,type:_,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:v}):a.headers:{}},signal:M}));return(Array.isArray(j.json)?j.json:v.map(()=>j.json)).map(V=>({meta:j.meta,json:V}))}}),h=_v(d("query")),y=_v(d("mutation")),p={query:h,mutation:y};return({op:_})=>Ci(v=>{/* istanbul ignore if -- @preserve */if(_.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const S=p[_.type].load(_);let M;return S.then(j=>{M=j;const A=Mg(j.json,r.transformer.output);if(!A.ok){v.error(kn.from(A.error,{meta:j.meta}));return}v.next({context:j.meta,result:A.result}),v.complete()}).catch(j=>{v.error(kn.from(j,{meta:M==null?void 0:M.meta}))}),()=>{}})}}Xt(un());const j_={enabled:!1,closeMs:0},C_={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},A_=a=>a===0?0:Math.min(1e3*2**a,3e4),wg=(a,...l)=>typeof a=="function"?a(...l):a;var w_=Xt(ji()),gl=class Ng extends Error{constructor(l){super(l.message,{cause:l.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,Ng.prototype)}},N_=class{constructor(a,l){this.onTimeout=a,this.timeoutMs=l,(0,w_.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function zg(){let a,l;return{promise:new Promise((r,c)=>{a=r,l=c}),resolve:a,reject:l}}async function z_(a){const l=await wg(a.url);if(!a.connectionParams)return l;const r=`${l.includes("?")?"&":"?"}connectionParams=1`;return l+r}async function D_(a){const l={method:"connectionParams",data:await wg(a)};return JSON.stringify(l)}var Tv=Xt(ji()),q_=class{constructor(){(0,Tv.default)(this,"outgoingRequests",new Array),(0,Tv.default)(this,"pendingRequests",{})}register(a,l){const{promise:s,resolve:r}=zg();return this.outgoingRequests.push({id:String(a.id),message:a,end:s,callbacks:{next:l.next,complete:()=>{l.complete(),r()},error:c=>{l.error(c),r()}}}),()=>{this.delete(a.id),l.complete(),r()}}delete(a){a!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:l})=>l!==String(a)),delete this.pendingRequests[String(a)])}flush(){const a=this.outgoingRequests;this.outgoingRequests=[];for(const l of a)this.pendingRequests[l.id]=l;return a}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(a){return a===null?null:this.pendingRequests[String(a)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(a=>({state:"outgoing",message:a.message,end:a.end,callbacks:a.callbacks})),...this.getPendingRequests().map(a=>({state:"pending",message:a.message,end:a.end,callbacks:a.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(a=>a.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},si=Xt(ji());function U_(a){const{promise:l,resolve:s,reject:r}=zg();return a.addEventListener("open",()=>{a.removeEventListener("error",r),s()}),a.addEventListener("error",r),l}function L_(a,{intervalMs:l,pongTimeoutMs:s}){let r,c;function f(){r=setTimeout(()=>{a.send("PING"),c=setTimeout(()=>{a.close()},s)},l)}function d(){clearTimeout(r),f()}function h(){clearTimeout(c),d()}a.addEventListener("open",f),a.addEventListener("message",({data:y})=>{clearTimeout(r),f(),y==="PONG"&&h()}),a.addEventListener("close",()=>{clearTimeout(r),clearTimeout(c)})}var Dg=class dd{constructor(l){var s;if((0,si.default)(this,"id",++dd.connectCount),(0,si.default)(this,"WebSocketPonyfill",void 0),(0,si.default)(this,"urlOptions",void 0),(0,si.default)(this,"keepAliveOpts",void 0),(0,si.default)(this,"wsObservable",gg(null)),(0,si.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=l.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=l.urlOptions,this.keepAliveOpts=l.keepAlive}get ws(){return this.wsObservable.get()}set ws(l){this.wsObservable.next(l)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var l=this;if(l.openPromise)return l.openPromise;l.id=++dd.connectCount;const s=z_(l.urlOptions).then(r=>new l.WebSocketPonyfill(r));l.openPromise=s.then(async r=>{l.ws=r,r.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),l.keepAliveOpts.enabled&&L_(r,l.keepAliveOpts),r.addEventListener("close",()=>{l.ws===r&&(l.ws=null)}),await U_(r),l.urlOptions.connectionParams&&r.send(await D_(l.urlOptions.connectionParams))});try{await l.openPromise}finally{l.openPromise=null}}async close(){var l=this;try{await l.openPromise}finally{var s;(s=l.ws)===null||s===void 0||s.close()}}};(0,si.default)(Dg,"connectCount",0);function H_(a){return a.isOpen()?{id:a.id,state:"open",ws:a.ws}:a.isClosed()?{id:a.id,state:"closed",ws:a.ws}:a.ws?{id:a.id,state:"connecting",ws:a.ws}:null}var Qn=Xt(ji()),bl=Xt(un()),B_=class{constructor(a){var l;(0,Qn.default)(this,"connectionState",void 0),(0,Qn.default)(this,"allowReconnect",!1),(0,Qn.default)(this,"requestManager",new q_),(0,Qn.default)(this,"activeConnection",void 0),(0,Qn.default)(this,"reconnectRetryDelay",void 0),(0,Qn.default)(this,"inactivityTimeout",void 0),(0,Qn.default)(this,"callbacks",void 0),(0,Qn.default)(this,"lazyMode",void 0),(0,Qn.default)(this,"reconnecting",null),this.callbacks={onOpen:a.onOpen,onClose:a.onClose,onError:a.onError};const s=(0,bl.default)((0,bl.default)({},j_),a.lazy);this.inactivityTimeout=new N_(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},s.closeMs),this.activeConnection=new Dg({WebSocketPonyfill:a.WebSocket,urlOptions:a,keepAlive:(0,bl.default)((0,bl.default)({},C_),a.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:r=>{r&&this.setupWebSocketListeners(r)}}),this.reconnectRetryDelay=(l=a.retryDelayMs)!==null&&l!==void 0?l:A_,this.lazyMode=s.enabled,this.connectionState=gg({type:"state",state:s.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var a=this;a.allowReconnect=!0,a.connectionState.get().state==="idle"&&a.connectionState.next({type:"state",state:"connecting",error:null});try{await a.activeConnection.open()}catch(l){return a.reconnect(new gl({message:"Initialization error",cause:l})),a.reconnecting}}async close(){var a=this;a.allowReconnect=!1,a.inactivityTimeout.stop();const l=[];for(const s of a.requestManager.getRequests())s.message.method==="subscription"?s.callbacks.complete():s.state==="outgoing"?s.callbacks.error(kn.from(new gl({message:"Closed before connection was established"}))):l.push(s.end);await Promise.all(l).catch(()=>null),await a.activeConnection.close().catch(()=>null),a.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:a,type:l,path:s,input:r,signal:c},transformer:f,lastEventId:d}){return Ci(h=>{const y=this.batchSend({id:a,method:l,params:{input:f.input.serialize(r),path:s,lastEventId:d}},(0,bl.default)((0,bl.default)({},h),{},{next(p){const _=Mg(p,f.output);if(!_.ok){h.error(kn.from(_.error));return}h.next({result:_.result})}}));return()=>{y(),l==="subscription"&&this.activeConnection.isOpen()&&this.send({id:a,method:"subscription.stop"}),c==null||c.removeEventListener("abort",y)}})}get connection(){return H_(this.activeConnection)}reconnect(a){var l=this;if(this.connectionState.next({type:"state",state:"connecting",error:kn.from(a)}),this.reconnecting)return;const s=async r=>{try{await pv(l.reconnectRetryDelay(r)),l.allowReconnect&&(await l.activeConnection.close(),await l.activeConnection.open(),l.requestManager.hasPendingRequests()&&l.send(l.requestManager.getPendingRequests().map(({message:c})=>c))),l.reconnecting=null}catch{await s(r+1)}};this.reconnecting=s(0)}setupWebSocketListeners(a){var l=this;const s=r=>{const c=this.requestManager.getPendingRequests();for(const{message:f,callbacks:d}of c)f.method!=="subscription"&&(d.error(kn.from(r??new gl({message:"WebSocket closed",cause:r}))),this.requestManager.delete(f.id))};a.addEventListener("open",()=>{fd(async()=>{var r,c;l.lazyMode&&l.inactivityTimeout.start(),(r=(c=l.callbacks).onOpen)===null||r===void 0||r.call(c),l.connectionState.next({type:"state",state:"pending",error:null})}).catch(r=>{a.close(3e3),s(r)})}),a.addEventListener("message",({data:r})=>{if(this.inactivityTimeout.reset(),typeof r!="string"||["PING","PONG"].includes(r))return;const c=JSON.parse(r);if("method"in c){this.handleIncomingRequest(c);return}this.handleResponseMessage(c)}),a.addEventListener("close",r=>{var c,f;s(r),(c=(f=this.callbacks).onClose)===null||c===void 0||c.call(f,r),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new gl({message:"WebSocket closed",cause:r}))}),a.addEventListener("error",r=>{var c,f;s(r),(c=(f=this.callbacks).onError)===null||c===void 0||c.call(f,r),this.reconnect(new gl({message:"WebSocket closed",cause:r}))})}handleResponseMessage(a){const l=this.requestManager.getPendingRequest(a.id);if(!l)return;l.callbacks.next(a);let s=!0;"result"in a&&l.message.method==="subscription"&&(a.result.type==="data"&&(l.message.params.lastEventId=a.result.id),a.result.type!=="stopped"&&(s=!1)),s&&(l.callbacks.complete(),this.requestManager.delete(a.id))}handleIncomingRequest(a){a.method==="reconnect"&&this.reconnect(new gl({message:"Server requested reconnect"}))}send(a){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const l=a instanceof Array?a:[a];this.activeConnection.ws.send(JSON.stringify(l.length===1?l[0]:l))}batchSend(a,l){var s=this;return this.inactivityTimeout.reset(),fd(async()=>{s.activeConnection.isOpen()||await s.open(),await pv(0),s.requestManager.hasOutgoingRequests()&&s.send(s.requestManager.flush().map(({message:r})=>r))}).catch(r=>{this.requestManager.delete(a.id),l.error(kn.from(r))}),this.requestManager.register(a,l)}};function Q_(a){return new B_(a)}function G_(a){const{client:l}=a,s=jg(a.transformer);return()=>({op:r})=>Ci(c=>{const f=r.type==="subscription"?l.connectionState.subscribe({next(h){c.next({result:h,context:r.context})}}):null,d=l.request({op:r,transformer:s}).subscribe(c);return()=>{d.unsubscribe(),f==null||f.unsubscribe()}})}var Vf=Xt(ji()),Rv=Xt(un()),qg=class{constructor(a){(0,Vf.default)(this,"links",void 0),(0,Vf.default)(this,"runtime",void 0),(0,Vf.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(l=>l(this.runtime))}$request(a){var l;return bg({links:this.links,op:(0,Rv.default)((0,Rv.default)({},a),{},{context:(l=a.context)!==null&&l!==void 0?l:{},id:++this.requestId})}).pipe(Zx())}async requestAsPromise(a){var l=this;try{const s=l.$request(a);return(await kx(s)).result.data}catch(s){throw kn.from(s)}}query(a,l,s){return this.requestAsPromise({type:"query",path:a,input:l,context:s==null?void 0:s.context,signal:s==null?void 0:s.signal})}mutation(a,l,s){return this.requestAsPromise({type:"mutation",path:a,input:l,context:s==null?void 0:s.context,signal:s==null?void 0:s.signal})}subscription(a,l,s){return this.$request({type:"subscription",path:a,input:l,context:s.context,signal:s.signal}).subscribe({next(c){switch(c.result.type){case"state":{var f;(f=s.onConnectionStateChange)===null||f===void 0||f.call(s,c.result);break}case"started":{var d;(d=s.onStarted)===null||d===void 0||d.call(s,{context:c.context});break}case"stopped":{var h;(h=s.onStopped)===null||h===void 0||h.call(s);break}case"data":case void 0:{var y;(y=s.onData)===null||y===void 0||y.call(s,c.result.data);break}}},error(c){var f;(f=s.onError)===null||f===void 0||f.call(s,c)},complete(){var c;(c=s.onComplete)===null||c===void 0||c.call(s)}})}};const Ug=Symbol.for("trpc_untypedClient"),Y_={query:"query",mutate:"mutation",subscribe:"subscription"},K_=a=>Y_[a];function P_(a){const l=Rg(({path:s,args:r})=>{const c=[...s],f=K_(c.pop()),d=c.join(".");return a[f](d,...r)});return i_(s=>s===Ug?a:l[s])}function V_(a){const l=new qg(a);return P_(l)}function X_(a){return a[Ug]}Xt(un());Xt(un());var k_=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,l){function s(c){var f,d,h,y=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);y--;){if(d&&(f=c[d])!=null)return f.call(c);if(h&&(f=c[h])!=null)return new r(f.call(c));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function r(c){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(y){return{value:y,done:h}})}return r=function(h){this.s=h,this.n=h.next},r.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var y=this.s.return;return y===void 0?Promise.resolve({value:h,done:!0}):f(y.apply(this.s,arguments))},throw:function(h){var y=this.s.return;return y===void 0?Promise.reject(h):f(y.apply(this.s,arguments))}},new r(c)}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}});Xt(k_());Xt(un());var Z_=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,l){function s(){var r=typeof SuppressedError=="function"?SuppressedError:function(h,y){var p=Error();return p.name="SuppressedError",p.error=h,p.suppressed=y,p},c={},f=[];function d(h,y){if(y!=null){if(Object(y)!==y)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(h)var p=y[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=y[Symbol.dispose||Symbol.for("Symbol.dispose")],h))var _=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");_&&(p=function(){try{_.call(y)}catch(b){return Promise.reject(b)}}),f.push({v:y,d:p,a:h})}else h&&f.push({d:y,a:h});return y}return{e:c,u:d.bind(null,!1),a:d.bind(null,!0),d:function(){var y,p=this.e,_=0;function v(){for(;y=f.pop();)try{if(!y.a&&_===1)return _=0,f.push(y),Promise.resolve().then(v);if(y.d){var S=y.d.call(y.v);if(y.a)return _|=2,Promise.resolve(S).then(v,b)}else _|=1}catch(M){return b(M)}if(_===1)return p!==c?Promise.reject(p):Promise.resolve();if(p!==c)throw p}function b(S){return p=p!==c?new r(S,p):S,v()}return v()}}}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),Lg=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,l){function s(r,c){this.v=r,this.k=c}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),J_=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,l){var s=Lg();function r(c){return new s(c,0)}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),F_=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,l){var s=Lg();function r(f){return function(){return new c(f.apply(this,arguments))}}function c(f){var d,h;function y(_,v){try{var b=f[_](v),S=b.value,M=S instanceof s;Promise.resolve(M?S.v:S).then(function(j){if(M){var A=_==="return"?"return":"next";if(!S.k||j.done)return y(A,j);j=f[A](j).value}p(b.done?"return":"normal",j)},function(j){y("throw",j)})}catch(j){p("throw",j)}}function p(_,v){switch(_){case"return":d.resolve({value:v,done:!0});break;case"throw":d.reject(v);break;default:d.resolve({value:v,done:!1})}(d=d.next)?y(d.key,d.arg):h=null}this._invoke=function(_,v){return new Promise(function(b,S){var M={key:_,arg:v,resolve:b,reject:S,next:null};h?h=h.next=M:(d=h=M,y(_,v))})},typeof f.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(f){return this._invoke("next",f)},c.prototype.throw=function(f){return this._invoke("throw",f)},c.prototype.return=function(f){return this._invoke("return",f)},l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}});Xt(Z_());Xt(J_());Xt(F_());Xt(un());var $_=Object.create,Hg=Object.defineProperty,W_=Object.getOwnPropertyDescriptor,Bg=Object.getOwnPropertyNames,I_=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,Qa=(a,l)=>function(){return l||(0,a[Bg(a)[0]])((l={exports:{}}).exports,l),l.exports},e2=(a,l,s,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(var c=Bg(l),f=0,d=c.length,h;f<d;f++)h=c[f],!t2.call(a,h)&&h!==s&&Hg(a,h,{get:(y=>l[y]).bind(null,h),enumerable:!(r=W_(l,h))||r.enumerable});return a},Ga=(a,l,s)=>(s=a!=null?$_(I_(a)):{},e2(l||!a||!a.__esModule?Hg(s,"default",{value:a,enumerable:!0}):s,a)),Qg=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,l){function s(r){"@babel/helpers - typeof";return l.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l.exports.__esModule=!0,l.exports.default=l.exports,s(r)}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),n2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,l){var s=Qg().default;function r(c,f){if(s(c)!="object"||!c)return c;var d=c[Symbol.toPrimitive];if(d!==void 0){var h=d.call(c,f||"default");if(s(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),a2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,l){var s=Qg().default,r=n2();function c(f){var d=r(f,"string");return s(d)=="symbol"?d:d+""}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}}),i2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,l){var s=a2();function r(c,f,d){return(f=s(f))in c?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d,c}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),Bl=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,l){var s=i2();function r(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);d&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(f,p).enumerable})),h.push.apply(h,y)}return h}function c(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?r(Object(h),!0).forEach(function(y){s(f,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(h,y))})}return f}l.exports=c,l.exports.__esModule=!0,l.exports.default=l.exports}}),l2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,l){function s(c){var f,d,h,y=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);y--;){if(d&&(f=c[d])!=null)return f.call(c);if(h&&(f=c[h])!=null)return new r(f.call(c));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function r(c){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(y){return{value:y,done:h}})}return r=function(h){this.s=h,this.n=h.next},r.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var y=this.s.return;return y===void 0?Promise.resolve({value:h,done:!0}):f(y.apply(this.s,arguments))},throw:function(h){var y=this.s.return;return y===void 0?Promise.reject(h):f(y.apply(this.s,arguments))}},new r(c)}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),s2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,l){function s(r,c){if(r==null)return{};var f={};for(var d in r)if({}.hasOwnProperty.call(r,d)){if(c.includes(d))continue;f[d]=r[d]}return f}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}}),r2=Qa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,l){var s=s2();function r(c,f){if(c==null)return{};var d,h,y=s(c,f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);for(h=0;h<p.length;h++)d=p[h],f.includes(d)||{}.propertyIsEnumerable.call(c,d)&&(y[d]=c[d])}return y}l.exports=r,l.exports.__esModule=!0,l.exports.default=l.exports}}),Vs=Ga(Bl(),1),u2=Ga(l2(),1),c2=Ga(r2(),1);const o2=["cursor","direction"];function lc(a){return{path:a.path.join(".")}}function f2(a){return a.length>=3}function Gg(a){return f2(a)?{type:"prefixed",prefix:a[0],path:a[1],args:a[2]}:{type:"unprefixed",prefix:void 0,path:a[0],args:a[1]}}function Od(a,l,s){var r;const c=Gg(a);let f=(r=c.args)===null||r===void 0?void 0:r.input;if(s){var d,h;f=(0,Vs.default)((0,Vs.default)((0,Vs.default)({},(d=(h=c.args)===null||h===void 0?void 0:h.input)!==null&&d!==void 0?d:{}),s.pageParam!==void 0?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[c.path.join("."),f,l==null?void 0:l.trpc]}async function d2(a,l,s){const c=l.getQueryCache().build(l,{queryKey:s});c.setState({data:[],status:"success"});const f=[];var d=!1,h=!1,y;try{for(var p=(0,u2.default)(a),_;d=!(_=await p.next()).done;d=!1){const v=_.value;f.push(v),c.setState({data:[...f]})}}catch(v){h=!0,y=v}finally{try{d&&p.return!=null&&await p.return()}finally{if(h)throw y}}return f}function Gn(a){const l=fd(()=>{const{input:s,type:r}=a,c=a.path.flatMap(f=>f.split("."));if(!s&&r==="any")return c.length?[c]:[];if(r==="infinite"&&Ba(s)&&("direction"in s||"cursor"in s)){const{cursor:f,direction:d}=s,h=(0,c2.default)(s,o2);return[c,{input:h,type:"infinite"}]}return[c,(0,Vs.default)((0,Vs.default)({},typeof s<"u"&&s!==Jn&&{input:s}),r&&r!=="any"&&{type:r})]});return a.prefix&&l.unshift([a.prefix]),l}function Yg(a){const l=[a.path.flatMap(s=>s.split("."))];return a.prefix&&l.unshift([a.prefix]),l}function Md(a){return Fx(a)?a():a}var Sl=Ga(Bl());function h2(a){var l;const{input:s,query:r,path:c,queryKey:f,opts:d}=a,h=s===Jn,y=async p=>{var _;const v=(0,Sl.default)((0,Sl.default)({},d),{},{trpc:(0,Sl.default)((0,Sl.default)({},d==null?void 0:d.trpc),!(d==null||(_=d.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:p.signal}:{signal:null})});return await r(...Od(f,v,{direction:p.direction,pageParam:p.pageParam}))};return Object.assign((0,Sl.default)((0,Sl.default)({},d??{}),{},{queryKey:f,queryFn:h?Jn:y,initialPageParam:(l=d==null?void 0:d.initialCursor)!==null&&l!==void 0?l:s==null?void 0:s.cursor}),{trpc:lc({path:c})})}var Ev=Ga(Bl());function m2(a){var l;const{mutate:s,path:r,opts:c,overrides:f}=a,d=Md(a.queryClient),h=Yg({path:r,prefix:c==null?void 0:c.keyPrefix}),y=d.defaultMutationOptions(d.getMutationDefaults(h)),p=(l=f==null?void 0:f.onSuccess)!==null&&l!==void 0?l:v=>v.originalFn(),_=async v=>await s(...Od([...h,{input:v}],c));return(0,Ev.default)((0,Ev.default)({},c),{},{mutationKey:h,mutationFn:_,onSuccess(...v){var b,S;return p({originalFn:()=>{var j,A,U;return(j=c==null||(A=c.onSuccess)===null||A===void 0?void 0:A.call(c,...v))!==null&&j!==void 0?j:y==null||(U=y.onSuccess)===null||U===void 0?void 0:U.call(y,...v)},queryClient:d,meta:(b=(S=c==null?void 0:c.meta)!==null&&S!==void 0?S:y==null?void 0:y.meta)!==null&&b!==void 0?b:{}})},trpc:lc({path:r})})}var xl=Ga(Bl());function y2(a){const{input:l,query:s,path:r,queryKey:c,opts:f}=a,d=Md(a.queryClient),h=l===Jn,y=async p=>{var _;const v=(0,xl.default)((0,xl.default)({},f),{},{trpc:(0,xl.default)((0,xl.default)({},f==null?void 0:f.trpc),!(f==null||(_=f.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:p.signal}:{signal:null})}),b=p.queryKey,S=await s(...Od(b,v));return Wx(S)?d2(S,d,b):S};return Object.assign((0,xl.default)((0,xl.default)({},f),{},{queryKey:c,queryFn:h?Jn:y}),{trpc:lc({path:r})})}var Ov=Ga(Bl(),1);const p2=a=>{var l;const{subscribe:s,path:r,queryKey:c,opts:f={}}=a,d=(l=Gg(c))===null||l===void 0||(l=l.args)===null||l===void 0?void 0:l.input,h="enabled"in f?!!f.enabled:d!==Jn,y=p=>s(r.join("."),d??void 0,p);return(0,Ov.default)((0,Ov.default)({},f),{},{enabled:h,subscribe:y,queryKey:c,trpc:lc({path:r})})};var _l=Ga(Bl(),1);function v2(a){const l=a.keyPrefix,s=r=>(c,f,d)=>"router"in a?Promise.resolve(Md(a.ctx)).then(y=>d_({router:a.router,path:c,getRawInput:async()=>f,ctx:y,type:r,signal:void 0})):(a.client instanceof qg?a.client:X_(a.client))[r](c,f,d);return Rg(({args:r,path:c})=>{const f=[...c],d=f.pop(),[h,y]=r;return{"~types":void 0,pathKey:()=>Gn({path:f,type:"any",prefix:l}),pathFilter:()=>(0,_l.default)((0,_l.default)({},h),{},{queryKey:Gn({path:f,type:"any",prefix:l})}),queryOptions:()=>y2({input:h,opts:y,path:f,queryClient:a.queryClient,queryKey:Gn({path:f,input:h,type:"query",prefix:l}),query:s("query")}),queryKey:()=>Gn({path:f,input:h,type:"query",prefix:l}),queryFilter:()=>(0,_l.default)((0,_l.default)({},y),{},{queryKey:Gn({path:f,input:h,type:"query",prefix:l})}),infiniteQueryOptions:()=>h2({input:h,opts:y,path:f,queryKey:Gn({path:f,input:h,type:"infinite",prefix:l}),query:s("query")}),infiniteQueryKey:()=>Gn({path:f,input:h,type:"infinite",prefix:l}),infiniteQueryFilter:()=>(0,_l.default)((0,_l.default)({},y),{},{queryKey:Gn({path:f,input:h,type:"infinite",prefix:l})}),mutationOptions:()=>{var _;return m2({opts:h,path:f,queryClient:a.queryClient,mutate:s("mutation"),overrides:(_=a.overrides)===null||_===void 0?void 0:_.mutations})},mutationKey:()=>Yg({path:f,prefix:l}),subscriptionOptions:()=>p2({opts:y,path:f,queryKey:Gn({path:f,input:h,type:"any",prefix:l}),subscribe:s("subscription")})}[d]()})}function jd(){const l=new URLSearchParams(window.location.search).get("api");return l?l.replace(/\/$/,""):""}function g2(){const a=jd();if(a){const s=new URL(a);return`${s.protocol==="https:"?"wss:":"ws:"}//${s.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function b2(){const a=jd();return a?`${a}/trpc`:"/trpc"}function S2(){const a=jd();return a?`${a}/api/health`:"/api/health"}const ie=new PS({defaultOptions:{queries:{staleTime:60*1e3}}}),x2=Q_({url:g2(),retryDelayMs:()=>1e3}),Oi=V_({links:[Jx({condition:a=>a.type==="subscription",true:G_({client:x2}),false:M_({url:b2()})})]}),gn=v2({client:Oi,queryClient:ie});function _2(){const[a,l]=W.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null});return W.useEffect(()=>{let s=!0,r;async function c(){try{const d=await fetch(S2());if(!d.ok)throw new Error(`HTTP ${d.status}`);const h=await d.json();if(s){const y=h.projectDir,p=y.split("/").pop()||y;l({connected:!0,projectDir:y,dirName:p,watcherEnabled:h.watcherEnabled,error:null}),document.title=`${p} - OpenSpec UI`}}catch(d){s&&(l(h=>({...h,connected:!1,error:d instanceof Error?d.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",r=setTimeout(c,3e3))}}c();const f=setInterval(()=>{s&&c()},3e4);return()=>{s=!1,clearInterval(f),clearTimeout(r)}},[]),a}function sc(){const a=W.useRef(null);W.useEffect(()=>{const l=Oi.realtime.onFileChange.subscribe(void 0,{onData:s=>{switch(s.type){case"spec":ie.invalidateQueries({queryKey:["spec"]}),ie.invalidateQueries({queryKey:["dashboard"]});break;case"change":case"archive":ie.invalidateQueries({queryKey:["change"]}),ie.invalidateQueries({queryKey:["dashboard"]});break;case"project":ie.invalidateQueries({queryKey:["dashboard"]});break}},onError:s=>{console.error("Realtime subscription error:",s)}});return a.current=l,()=>{l.unsubscribe()}},[])}function T2(a){W.useEffect(()=>{if(!a)return;const l=Oi.realtime.onSpecChange.subscribe({specId:a},{onData:()=>{ie.invalidateQueries({queryKey:["spec","get",{id:a}]}),ie.invalidateQueries({queryKey:["spec","getRaw",{id:a}]}),ie.invalidateQueries({queryKey:["spec","validate",{id:a}]}),ie.invalidateQueries({queryKey:["spec","list"]}),ie.invalidateQueries({queryKey:["dashboard"]})},onError:s=>{console.error("Spec realtime subscription error:",s)}});return()=>{l.unsubscribe()}},[a])}function R2(a){W.useEffect(()=>{if(!a)return;const l=Oi.realtime.onChangeChange.subscribe({changeId:a},{onData:()=>{ie.invalidateQueries({queryKey:["change","get",{id:a}]}),ie.invalidateQueries({queryKey:["change","getRaw",{id:a}]}),ie.invalidateQueries({queryKey:["change","validate",{id:a}]}),ie.invalidateQueries({queryKey:["change","list"]}),ie.invalidateQueries({queryKey:["change","listArchived"]}),ie.invalidateQueries({queryKey:["dashboard"]})},onError:s=>{console.error("Change realtime subscription error:",s)}});return()=>{l.unsubscribe()}},[a])}/**
66
+ * @license lucide-react v0.472.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const E2=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kg=(...a)=>a.filter((l,s,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===s).join(" ").trim();/**
71
+ * @license lucide-react v0.472.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */var O2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
76
+ * @license lucide-react v0.472.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const M2=W.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...h},y)=>W.createElement("svg",{ref:y,...O2,width:l,height:l,stroke:a,strokeWidth:r?Number(s)*24/Number(l):s,className:Kg("lucide",c),...h},[...d.map(([p,_])=>W.createElement(p,_)),...Array.isArray(f)?f:[f]]));/**
81
+ * @license lucide-react v0.472.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const fe=(a,l)=>{const s=W.forwardRef(({className:r,...c},f)=>W.createElement(M2,{ref:f,iconNode:l,className:Kg(`lucide-${E2(a)}`,r),...c}));return s.displayName=`${a}`,s};/**
86
+ * @license lucide-react v0.472.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const j2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Pg=fe("Archive",j2);/**
91
+ * @license lucide-react v0.472.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const C2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Vg=fe("ArrowLeft",C2);/**
96
+ * @license lucide-react v0.472.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const A2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Xg=fe("ChevronRight",A2);/**
101
+ * @license lucide-react v0.472.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const w2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],$u=fe("CircleAlert",w2);/**
106
+ * @license lucide-react v0.472.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const N2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],rc=fe("CircleCheckBig",N2);/**
111
+ * @license lucide-react v0.472.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],D2=fe("Circle",z2);/**
116
+ * @license lucide-react v0.472.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const q2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wu=fe("FileText",q2);/**
121
+ * @license lucide-react v0.472.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const U2=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],L2=fe("FolderOpen",U2);/**
126
+ * @license lucide-react v0.472.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const H2=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],B2=fe("FolderPlus",H2);/**
131
+ * @license lucide-react v0.472.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Q2=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Fs=fe("GitBranch",Q2);/**
136
+ * @license lucide-react v0.472.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const G2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Y2=fe("Info",G2);/**
141
+ * @license lucide-react v0.472.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const K2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],P2=fe("LayoutDashboard",K2);/**
146
+ * @license lucide-react v0.472.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const V2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],X2=fe("LoaderCircle",V2);/**
151
+ * @license lucide-react v0.472.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const k2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Z2=fe("Plus",k2);/**
156
+ * @license lucide-react v0.472.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const J2=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],F2=fe("TriangleAlert",J2);/**
161
+ * @license lucide-react v0.472.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const $2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],W2=fe("WifiOff",$2);/**
166
+ * @license lucide-react v0.472.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const I2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],tT=fe("Wifi",I2);function eT(){sc();const{data:a,isLoading:l,error:s}=pn(gn.dashboard.getData.queryOptions()),{data:r}=pn(gn.dashboard.isInitialized.queryOptions());if(l)return x.jsx("div",{className:"animate-pulse",children:"Loading dashboard..."});if(s)return x.jsxs("div",{className:"text-error flex items-center gap-2",children:[x.jsx($u,{className:"w-5 h-5"}),"Error loading dashboard: ",s.message]});if(!r)return x.jsxs("div",{className:"text-center py-12",children:[x.jsx("h2",{className:"text-2xl font-bold mb-4",children:"OpenSpec Not Initialized"}),x.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),x.jsx(Oe,{to:"/init",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Initialize OpenSpec"})]});const{summary:c}=a;return x.jsxs("div",{className:"space-y-6",children:[x.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[x.jsx(Xf,{icon:x.jsx(Wu,{className:"w-5 h-5"}),label:"Specs",value:c.specCount,sublabel:`${c.requirementCount} requirements`}),x.jsx(Xf,{icon:x.jsx(Fs,{className:"w-5 h-5"}),label:"Active Changes",value:c.activeChangeCount,sublabel:`${c.archivedChangeCount} archived`}),x.jsx(Xf,{icon:x.jsx(rc,{className:"w-5 h-5"}),label:"Tasks",value:`${c.completedTasks}/${c.totalTasks}`,sublabel:`${c.progressPercent}% complete`})]}),x.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Recent Specs"}),x.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[a.specs.slice(0,5).map(f=>x.jsxs(Oe,{to:"/specs/$specId",params:{specId:f.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[x.jsxs("div",{children:[x.jsx("div",{className:"font-medium",children:f.name}),x.jsxs("div",{className:"text-sm text-muted-foreground",children:[f.requirements.length," requirements"]})]}),x.jsx(Wu,{className:"w-4 h-4 text-muted-foreground"})]},f.id)),a.specs.length===0&&x.jsx("div",{className:"p-3 text-muted-foreground",children:"No specs yet"})]})]}),x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Active Changes"}),x.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[a.changes.slice(0,5).map(f=>x.jsxs(Oe,{to:"/changes/$changeId",params:{changeId:f.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[x.jsxs("div",{children:[x.jsx("div",{className:"font-medium",children:f.name}),x.jsxs("div",{className:"text-sm text-muted-foreground",children:[f.progress.completed,"/",f.progress.total," tasks"]})]}),x.jsx(Fs,{className:"w-4 h-4 text-muted-foreground"})]},f.id)),a.changes.length===0&&x.jsx("div",{className:"p-3 text-muted-foreground",children:"No active changes"})]})]})]})]})}function Xf({icon:a,label:l,value:s,sublabel:r}){return x.jsxs("div",{className:"border border-border rounded-lg p-4",children:[x.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[a,x.jsx("span",{className:"text-sm",children:l})]}),x.jsx("div",{className:"text-2xl font-bold",children:s}),x.jsx("div",{className:"text-sm text-muted-foreground",children:r})]})}function nT(){sc();const{data:a,isLoading:l}=pn(gn.spec.list.queryOptions());return l?x.jsx("div",{className:"animate-pulse",children:"Loading specs..."}):x.jsxs("div",{className:"space-y-6",children:[x.jsx("h1",{className:"text-2xl font-bold",children:"Specifications"}),x.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[a==null?void 0:a.map(s=>x.jsxs(Oe,{to:"/specs/$specId",params:{specId:s},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Wu,{className:"w-5 h-5 text-muted-foreground"}),x.jsx("span",{className:"font-medium",children:s})]}),x.jsx(Xg,{className:"w-4 h-4 text-muted-foreground"})]},s)),(a==null?void 0:a.length)===0&&x.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs found. Create a spec in ",x.jsx("code",{children:"openspec/specs/"})]})]})]})}function aT(){const{specId:a}=ar({from:"/specs/$specId"});T2(a);const{data:l,isLoading:s}=pn(gn.spec.get.queryOptions({id:a})),{data:r}=pn(gn.spec.validate.queryOptions({id:a}));return s?x.jsx("div",{className:"animate-pulse",children:"Loading spec..."}):l?x.jsxs("div",{className:"space-y-6",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(Oe,{to:"/specs",className:"p-2 hover:bg-muted rounded-md",children:x.jsx(Vg,{className:"w-5 h-5"})}),x.jsxs("div",{children:[x.jsx("h1",{className:"text-2xl font-bold",children:l.name}),x.jsxs("p",{className:"text-muted-foreground",children:["ID: ",l.id]})]})]}),r&&x.jsx(iT,{validation:r}),x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Overview"}),x.jsx("div",{className:"p-4 bg-muted/30 rounded-lg whitespace-pre-wrap",children:l.overview||x.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),x.jsxs("section",{children:[x.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Requirements (",l.requirements.length,")"]}),x.jsxs("div",{className:"space-y-4",children:[l.requirements.map(c=>x.jsxs("div",{className:"border border-border rounded-lg p-4",children:[x.jsx("div",{className:"font-medium mb-2",children:c.text}),c.scenarios.length>0&&x.jsxs("div",{className:"mt-3",children:[x.jsxs("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:["Scenarios (",c.scenarios.length,")"]}),c.scenarios.map((f,d)=>x.jsx("pre",{className:"text-sm bg-muted/50 p-3 rounded-md overflow-x-auto",children:f.rawText},d))]})]},c.id)),l.requirements.length===0&&x.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]}):x.jsx("div",{className:"text-error",children:"Spec not found"})}function iT({validation:a}){const l=a.issues.filter(c=>c.severity==="ERROR"),s=a.issues.filter(c=>c.severity==="WARNING"),r=a.issues.filter(c=>c.severity==="INFO");return x.jsxs("div",{className:`border rounded-lg p-4 ${a.valid?"border-success bg-success/10":"border-error bg-error/10"}`,children:[x.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.valid?x.jsx(rc,{className:"w-5 h-5 text-success"}):x.jsx($u,{className:"w-5 h-5 text-error"}),x.jsx("span",{className:"font-medium",children:a.valid?"Validation Passed":"Validation Failed"})]}),a.issues.length>0&&x.jsxs("div",{className:"space-y-1 text-sm",children:[l.map((c,f)=>x.jsxs("div",{className:"flex items-start gap-2 text-error",children:[x.jsx($u,{className:"w-4 h-4 mt-0.5 shrink-0"}),x.jsx("span",{children:c.message})]},f)),s.map((c,f)=>x.jsxs("div",{className:"flex items-start gap-2 text-warning",children:[x.jsx(F2,{className:"w-4 h-4 mt-0.5 shrink-0"}),x.jsx("span",{children:c.message})]},f)),r.map((c,f)=>x.jsxs("div",{className:"flex items-start gap-2 text-muted-foreground",children:[x.jsx(Y2,{className:"w-4 h-4 mt-0.5 shrink-0"}),x.jsx("span",{children:c.message})]},f))]})]})}function lT(){sc();const{data:a,isLoading:l}=pn(gn.change.list.queryOptions()),{data:s}=pn(gn.change.listArchived.queryOptions());return l?x.jsx("div",{className:"animate-pulse",children:"Loading changes..."}):x.jsxs("div",{className:"space-y-6",children:[x.jsx("h1",{className:"text-2xl font-bold",children:"Changes"}),x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Active Changes"}),x.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[a==null?void 0:a.map(r=>x.jsxs(Oe,{to:"/changes/$changeId",params:{changeId:r},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Fs,{className:"w-5 h-5 text-muted-foreground"}),x.jsx("span",{className:"font-medium",children:r})]}),x.jsx(Xg,{className:"w-4 h-4 text-muted-foreground"})]},r)),(a==null?void 0:a.length)===0&&x.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",x.jsx("code",{children:"openspec/changes/"})]})]})]}),s&&s.length>0&&x.jsxs("section",{children:[x.jsxs("h2",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[x.jsx(Pg,{className:"w-5 h-5"}),"Archived (",s.length,")"]}),x.jsx("div",{className:"border border-border rounded-lg divide-y divide-border opacity-60",children:s.map(r=>x.jsxs("div",{className:"flex items-center gap-3 p-4",children:[x.jsx(Fs,{className:"w-5 h-5 text-muted-foreground"}),x.jsx("span",{children:r})]},r))})]})]})}const sT=W.memo(function({task:l,taskIndex:s,isToggling:r,onToggle:c}){return x.jsxs("button",{onClick:()=>c(s,!l.completed),className:"w-full p-3 flex items-center gap-3 hover:bg-muted/50 transition-colors text-left",children:[r?x.jsx(X2,{className:"w-5 h-5 text-primary shrink-0 animate-spin"}):l.completed?x.jsx(rc,{className:"w-5 h-5 text-success shrink-0"}):x.jsx(D2,{className:"w-5 h-5 text-muted-foreground shrink-0 hover:text-primary"}),x.jsx("span",{className:l.completed?"line-through text-muted-foreground":"",children:l.text}),l.section&&x.jsx("span",{className:"ml-auto text-xs px-2 py-1 bg-muted rounded",children:l.section})]})},(a,l)=>a.task.id===l.task.id&&a.task.completed===l.task.completed&&a.isToggling===l.isToggling),rT=W.memo(function({tasks:l,togglingIndex:s,onToggle:r}){const c=W.useRef(new Map),f=W.useMemo(()=>{const d=new Map,h=[];for(const y of l){const p=c.current.get(y.id);p&&p.completed===y.completed&&p.text===y.text?(d.set(y.id,p),h.push(p)):(d.set(y.id,y),h.push(y))}return c.current=d,h},[l]);return x.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[f.map((d,h)=>{const y=h+1;return x.jsx(sT,{task:d,taskIndex:y,isToggling:s===y,onToggle:r},d.id)}),f.length===0&&x.jsx("div",{className:"p-4 text-muted-foreground text-center",children:"No tasks defined"})]})},(a,l)=>a.tasks===l.tasks&&a.togglingIndex===l.togglingIndex&&a.onToggle===l.onToggle);function uT(){var v;const{changeId:a}=ar({from:"/changes/$changeId"}),l=ir(),s=Iu();R2(a);const{data:r,isLoading:c}=pn(gn.change.get.queryOptions({id:a})),{data:f}=pn(gn.change.validate.queryOptions({id:a})),d=rd({mutationFn:()=>Oi.change.archive.mutate({id:a}),onSuccess:()=>{s.invalidateQueries({queryKey:["change","list"]}),s.invalidateQueries({queryKey:["change","listArchived"]}),l({to:"/changes"})}}),h=rd({mutationFn:b=>Oi.change.toggleTask.mutate({changeId:a,taskIndex:b.taskIndex,completed:b.completed}),onSuccess:()=>{s.invalidateQueries({queryKey:[["change","get"]]})}}),y=W.useCallback((b,S)=>{h.mutate({taskIndex:b,completed:S})},[h]),p=h.isPending?((v=h.variables)==null?void 0:v.taskIndex)??null:null;if(c)return x.jsx("div",{className:"animate-pulse",children:"Loading change..."});if(!r)return x.jsx("div",{className:"text-error",children:"Change not found"});const _=r.progress.total>0?Math.round(r.progress.completed/r.progress.total*100):0;return x.jsxs("div",{className:"space-y-6",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(Oe,{to:"/changes",className:"p-2 hover:bg-muted rounded-md",children:x.jsx(Vg,{className:"w-5 h-5"})}),x.jsxs("div",{children:[x.jsx("h1",{className:"text-2xl font-bold",children:r.name}),x.jsxs("p",{className:"text-muted-foreground",children:["ID: ",r.id]})]})]}),x.jsxs("button",{onClick:()=>d.mutate(),disabled:d.isPending,className:"flex items-center gap-2 px-4 py-2 bg-muted hover:bg-muted/80 rounded-md disabled:opacity-50",children:[x.jsx(Pg,{className:"w-4 h-4"}),d.isPending?"Archiving...":"Archive"]})]}),f&&!f.valid&&x.jsxs("div",{className:"border border-error bg-error/10 rounded-lg p-4",children:[x.jsxs("div",{className:"flex items-center gap-2 text-error font-medium mb-2",children:[x.jsx($u,{className:"w-5 h-5"}),"Validation Issues"]}),x.jsx("ul",{className:"text-sm space-y-1",children:f.issues.map((b,S)=>x.jsx("li",{className:"text-error",children:b.message},S))})]}),x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Why"}),x.jsx("div",{className:"p-4 bg-muted/30 rounded-lg whitespace-pre-wrap",children:r.why||x.jsx("span",{className:"text-muted-foreground",children:"No description"})})]}),x.jsxs("section",{children:[x.jsx("h2",{className:"text-lg font-semibold mb-2",children:"What Changes"}),x.jsx("div",{className:"p-4 bg-muted/30 rounded-lg whitespace-pre-wrap",children:r.whatChanges||x.jsx("span",{className:"text-muted-foreground",children:"No changes listed"})})]}),r.deltas.length>0&&x.jsxs("section",{children:[x.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Affected Specs (",r.deltas.length,")"]}),x.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:r.deltas.map((b,S)=>x.jsxs("div",{className:"p-3 flex items-center justify-between",children:[x.jsx(Oe,{to:"/specs/$specId",params:{specId:b.spec},className:"font-medium hover:underline",children:b.spec}),x.jsx("span",{className:"text-sm px-2 py-1 bg-muted rounded",children:b.operation})]},S))})]}),x.jsxs("section",{children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",r.progress.completed,"/",r.progress.total,")"]}),x.jsxs("span",{className:"text-sm text-muted-foreground",children:[_,"%"]})]}),x.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-4",children:x.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${_}%`}})}),x.jsx(rT,{tasks:r.tasks,togglingIndex:p,onToggle:y})]})]})}function cT(){const a=ir(),l=Iu();sc();const{data:s}=pn(gn.dashboard.isInitialized.queryOptions()),r=rd({mutationFn:()=>Oi.init.init.mutate(),onSuccess:()=>{l.invalidateQueries({queryKey:["dashboard","isInitialized"]}),l.invalidateQueries({queryKey:["dashboard","getData"]}),a({to:"/"})}});return s?x.jsxs("div",{className:"max-w-md mx-auto text-center py-12",children:[x.jsx(rc,{className:"w-16 h-16 text-success mx-auto mb-4"}),x.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Already Initialized"}),x.jsx("p",{className:"text-muted-foreground mb-6",children:"This project already has an OpenSpec directory."}),x.jsx("button",{onClick:()=>a({to:"/"}),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Go to Dashboard"})]}):x.jsxs("div",{className:"max-w-md mx-auto text-center py-12",children:[x.jsx(B2,{className:"w-16 h-16 text-primary mx-auto mb-4"}),x.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Initialize OpenSpec"}),x.jsx("p",{className:"text-muted-foreground mb-6",children:"Create the OpenSpec directory structure in your project."}),x.jsxs("div",{className:"text-left bg-muted/30 rounded-lg p-4 mb-6",children:[x.jsx("p",{className:"text-sm font-medium mb-2",children:"This will create:"}),x.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[x.jsxs("li",{children:[x.jsx("code",{children:"openspec/"})," - Root directory"]}),x.jsxs("li",{children:[x.jsx("code",{children:"openspec/specs/"})," - Specifications"]}),x.jsxs("li",{children:[x.jsx("code",{children:"openspec/changes/"})," - Change proposals"]}),x.jsxs("li",{children:[x.jsx("code",{children:"openspec/changes/archive/"})," - Archived changes"]}),x.jsxs("li",{children:[x.jsx("code",{children:"openspec/project.md"})," - Project overview"]}),x.jsxs("li",{children:[x.jsx("code",{children:"openspec/AGENTS.md"})," - AI agent instructions"]})]})]}),x.jsx("button",{onClick:()=>r.mutate(),disabled:r.isPending,className:"px-6 py-3 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:r.isPending?"Initializing...":"Initialize"}),r.error&&x.jsxs("p",{className:"mt-4 text-error text-sm",children:["Error: ",r.error.message]})]})}function oT(){const a=_2();return x.jsxs("div",{className:"h-8 border-t border-border bg-muted/30 px-4 flex items-center justify-between text-xs text-muted-foreground",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx("div",{className:"flex items-center gap-1.5",children:a.connected?x.jsxs(x.Fragment,{children:[x.jsx(tT,{className:"w-3.5 h-3.5 text-green-500"}),x.jsx("span",{className:"text-green-600",children:"Live"})]}):x.jsxs(x.Fragment,{children:[x.jsx(W2,{className:"w-3.5 h-3.5 text-red-500"}),x.jsx("span",{className:"text-red-600",children:"Disconnected"})]})}),a.projectDir&&x.jsxs("div",{className:"flex items-center gap-1.5",title:a.projectDir,children:[x.jsx(L2,{className:"w-3.5 h-3.5"}),x.jsx("span",{className:"max-w-[300px] truncate",children:a.projectDir})]})]}),a.connected&&x.jsx("div",{className:"flex items-center gap-1.5",children:a.watcherEnabled?x.jsx("span",{className:"text-green-600",children:"Watching for changes"}):x.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}const Ai=Ox({component:()=>x.jsxs("div",{className:"h-screen flex flex-col",children:[x.jsxs("div",{className:"flex-1 flex min-h-0",children:[x.jsxs("nav",{className:"w-64 border-r border-border bg-muted/30 p-4 flex flex-col",children:[x.jsx("h1",{className:"text-xl font-bold mb-6",children:"OpenSpec UI"}),x.jsxs("ul",{className:"space-y-2 flex-1",children:[x.jsx("li",{children:x.jsxs(Oe,{to:"/",className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[x.jsx(P2,{className:"w-4 h-4"}),"Dashboard"]})}),x.jsx("li",{children:x.jsxs(Oe,{to:"/specs",className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[x.jsx(Wu,{className:"w-4 h-4"}),"Specs"]})}),x.jsx("li",{children:x.jsxs(Oe,{to:"/changes",className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[x.jsx(Fs,{className:"w-4 h-4"}),"Changes"]})}),x.jsx("li",{children:x.jsxs(Oe,{to:"/init",className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[x.jsx(Z2,{className:"w-4 h-4"}),"Initialize"]})})]})]}),x.jsx("main",{className:"flex-1 p-6 overflow-auto scrollbar-thin scrollbar-track-transparent",children:x.jsx(mg,{})})]}),x.jsx(oT,{})]})}),fT=Mi({getParentRoute:()=>Ai,path:"/",component:eT}),dT=Mi({getParentRoute:()=>Ai,path:"/specs",component:nT}),hT=Mi({getParentRoute:()=>Ai,path:"/specs/$specId",component:aT}),mT=Mi({getParentRoute:()=>Ai,path:"/changes",component:lT}),yT=Mi({getParentRoute:()=>Ai,path:"/changes/$changeId",component:uT}),pT=Mi({getParentRoute:()=>Ai,path:"/init",component:cT}),vT=Ai.addChildren([fT,dT,hT,mT,yT,pT]),gT=qx({routeTree:vT});function bT(){return x.jsx(VS,{client:ie,children:x.jsx(Hx,{router:gT})})}xS.createRoot(document.getElementById("root")).render(x.jsx(bT,{}));