@rsktash/beads-ui 0.1.51 → 0.10.3

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 (336) hide show
  1. package/README.md +85 -144
  2. package/bin/bd-web +94 -0
  3. package/dist/assets/index-BBVIMXaM.js +73 -0
  4. package/dist/assets/index-SUXI6Mzt.css +1 -0
  5. package/dist/bd-favicon-16.svg +6 -0
  6. package/dist/bd-favicon-32.svg +6 -0
  7. package/dist/bd-logo-512.svg +6 -0
  8. package/dist/favicon.ico +0 -0
  9. package/dist/icon-180.png +0 -0
  10. package/dist/icon-192.png +0 -0
  11. package/dist/icon-512.png +0 -0
  12. package/dist/index.html +8 -5
  13. package/package.json +39 -29
  14. package/server/auth.js +68 -87
  15. package/server/db.js +91 -134
  16. package/server/dsn.js +130 -0
  17. package/server/index.js +151 -87
  18. package/server/queries.js +247 -0
  19. package/server/routes/auth.js +27 -0
  20. package/server/routes/issues.js +120 -0
  21. package/server/routes/stream.js +111 -0
  22. package/server/types.js +83 -0
  23. package/app/protocol.js +0 -216
  24. package/bin/bd-grep +0 -121
  25. package/bin/bd-ui +0 -19
  26. package/dist/assets/abap-DsBKuouk.js +0 -1
  27. package/dist/assets/actionscript-3-D_z4Izcz.js +0 -1
  28. package/dist/assets/ada-727ZlQH0.js +0 -1
  29. package/dist/assets/andromeeda-C3khCPGq.js +0 -1
  30. package/dist/assets/angular-html-LfdN0zeE.js +0 -1
  31. package/dist/assets/angular-ts-CKsD7JZE.js +0 -1
  32. package/dist/assets/apache-Dn00JSTd.js +0 -1
  33. package/dist/assets/apex-COJ4H7py.js +0 -1
  34. package/dist/assets/apl-BBq3IX1j.js +0 -1
  35. package/dist/assets/applescript-Bu5BbsvL.js +0 -1
  36. package/dist/assets/ara-7O62HKoU.js +0 -1
  37. package/dist/assets/asciidoc-BPT9niGB.js +0 -1
  38. package/dist/assets/asm-Dhn9LcZ4.js +0 -1
  39. package/dist/assets/astro-CqkE3fuf.js +0 -1
  40. package/dist/assets/aurora-x-D-2ljcwZ.js +0 -1
  41. package/dist/assets/awk-eg146-Ew.js +0 -1
  42. package/dist/assets/ayu-dark-Cv9koXgw.js +0 -1
  43. package/dist/assets/ballerina-Du268qiB.js +0 -1
  44. package/dist/assets/bat-fje9CFhw.js +0 -1
  45. package/dist/assets/beancount-BwXTMy5W.js +0 -1
  46. package/dist/assets/berry-3xVqZejG.js +0 -1
  47. package/dist/assets/bibtex-xW4inM5L.js +0 -1
  48. package/dist/assets/bicep-DHo0CJ0O.js +0 -1
  49. package/dist/assets/blade-a8OxSdnT.js +0 -1
  50. package/dist/assets/bsl-Dgyn0ogV.js +0 -1
  51. package/dist/assets/c-C3t2pwGQ.js +0 -1
  52. package/dist/assets/cadence-DNquZEk8.js +0 -1
  53. package/dist/assets/cairo--RitsXJZ.js +0 -1
  54. package/dist/assets/catppuccin-frappe-CD_QflpE.js +0 -1
  55. package/dist/assets/catppuccin-latte-DRW-0cLl.js +0 -1
  56. package/dist/assets/catppuccin-macchiato-C-_shW-Y.js +0 -1
  57. package/dist/assets/catppuccin-mocha-LGGdnPYs.js +0 -1
  58. package/dist/assets/clarity-BHOwM8T6.js +0 -1
  59. package/dist/assets/clojure-DxSadP1t.js +0 -1
  60. package/dist/assets/cmake-DbXoA79R.js +0 -1
  61. package/dist/assets/cobol-PTqiYgYu.js +0 -1
  62. package/dist/assets/codeowners-Bp6g37R7.js +0 -1
  63. package/dist/assets/codeql-sacFqUAJ.js +0 -1
  64. package/dist/assets/coffee-dyiR41kL.js +0 -1
  65. package/dist/assets/common-lisp-C7gG9l05.js +0 -1
  66. package/dist/assets/coq-Dsg_Bt_b.js +0 -1
  67. package/dist/assets/cpp-BksuvNSY.js +0 -1
  68. package/dist/assets/crystal-DtDmRg-F.js +0 -1
  69. package/dist/assets/csharp-D9R-vmeu.js +0 -1
  70. package/dist/assets/css-BPhBrDlE.js +0 -1
  71. package/dist/assets/csv-B0qRVHPH.js +0 -1
  72. package/dist/assets/cue-DtFQj3wx.js +0 -1
  73. package/dist/assets/cypher-m2LEI-9-.js +0 -1
  74. package/dist/assets/d-BoXegm-a.js +0 -1
  75. package/dist/assets/dark-plus-C3mMm8J8.js +0 -1
  76. package/dist/assets/dart-B9wLZaAG.js +0 -1
  77. package/dist/assets/dax-ClGRhx96.js +0 -1
  78. package/dist/assets/desktop-DEIpsLCJ.js +0 -1
  79. package/dist/assets/diff-BgYniUM_.js +0 -1
  80. package/dist/assets/docker-COcR7UxN.js +0 -1
  81. package/dist/assets/dotenv-BjQB5zDj.js +0 -1
  82. package/dist/assets/dracula-BzJJZx-M.js +0 -1
  83. package/dist/assets/dracula-soft-BXkSAIEj.js +0 -1
  84. package/dist/assets/dream-maker-C-nORZOA.js +0 -1
  85. package/dist/assets/edge-D5gP-w-T.js +0 -1
  86. package/dist/assets/elixir-CLiX3zqd.js +0 -1
  87. package/dist/assets/elm-CmHSxxaM.js +0 -1
  88. package/dist/assets/emacs-lisp-BX77sIaO.js +0 -1
  89. package/dist/assets/erb-BYTLMnw6.js +0 -1
  90. package/dist/assets/erlang-B-DoSBHF.js +0 -1
  91. package/dist/assets/everforest-dark-BgDCqdQA.js +0 -1
  92. package/dist/assets/everforest-light-C8M2exoo.js +0 -1
  93. package/dist/assets/fennel-bCA53EVm.js +0 -1
  94. package/dist/assets/fish-w-ucz2PV.js +0 -1
  95. package/dist/assets/fluent-Dayu4EKP.js +0 -1
  96. package/dist/assets/fortran-fixed-form-TqA4NnZg.js +0 -1
  97. package/dist/assets/fortran-free-form-DKXYxT9g.js +0 -1
  98. package/dist/assets/fsharp-XplgxFYe.js +0 -1
  99. package/dist/assets/gdresource-BHYsBjWJ.js +0 -1
  100. package/dist/assets/gdscript-DfxzS6Rs.js +0 -1
  101. package/dist/assets/gdshader-SKMF96pI.js +0 -1
  102. package/dist/assets/genie-ajMbGru0.js +0 -1
  103. package/dist/assets/gherkin--30QC5Em.js +0 -1
  104. package/dist/assets/git-commit-i4q6IMui.js +0 -1
  105. package/dist/assets/git-rebase-B-v9cOL2.js +0 -1
  106. package/dist/assets/github-dark-DHJKELXO.js +0 -1
  107. package/dist/assets/github-dark-default-Cuk6v7N8.js +0 -1
  108. package/dist/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
  109. package/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
  110. package/dist/assets/github-light-DAi9KRSo.js +0 -1
  111. package/dist/assets/github-light-default-D7oLnXFd.js +0 -1
  112. package/dist/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
  113. package/dist/assets/gleam-B430Bg39.js +0 -1
  114. package/dist/assets/glimmer-js-D-cwc0-E.js +0 -1
  115. package/dist/assets/glimmer-ts-pgjy16dm.js +0 -1
  116. package/dist/assets/glsl-DBO2IWDn.js +0 -1
  117. package/dist/assets/gnuplot-CM8KxXT1.js +0 -1
  118. package/dist/assets/go-B1SYOhNW.js +0 -1
  119. package/dist/assets/graphql-cDcHW_If.js +0 -1
  120. package/dist/assets/groovy-DkBy-JyN.js +0 -1
  121. package/dist/assets/hack-D1yCygmZ.js +0 -1
  122. package/dist/assets/haml-B2EZWmdv.js +0 -1
  123. package/dist/assets/handlebars-BQGss363.js +0 -1
  124. package/dist/assets/haskell-BILxekzW.js +0 -1
  125. package/dist/assets/haxe-C5wWYbrZ.js +0 -1
  126. package/dist/assets/hcl-HzYwdGDm.js +0 -1
  127. package/dist/assets/hjson-T-Tgc4AT.js +0 -1
  128. package/dist/assets/hlsl-ifBTmRxC.js +0 -1
  129. package/dist/assets/houston-DnULxvSX.js +0 -1
  130. package/dist/assets/html-C2L_23MC.js +0 -1
  131. package/dist/assets/html-derivative-CSfWNPLT.js +0 -1
  132. package/dist/assets/http-FRrOvY1W.js +0 -1
  133. package/dist/assets/hxml-TIA70rKU.js +0 -1
  134. package/dist/assets/hy-BMj5Y0dO.js +0 -1
  135. package/dist/assets/imba-bv_oIlVt.js +0 -1
  136. package/dist/assets/index-CNDeKQGk.js +0 -125
  137. package/dist/assets/index-oO5WB2l2.css +0 -1
  138. package/dist/assets/ini-BjABl1g7.js +0 -1
  139. package/dist/assets/java-xI-RfyKK.js +0 -1
  140. package/dist/assets/javascript-ySlJ1b_l.js +0 -1
  141. package/dist/assets/jinja-DGy0s7-h.js +0 -1
  142. package/dist/assets/jison-BqZprYcd.js +0 -1
  143. package/dist/assets/json-BQoSv7ci.js +0 -1
  144. package/dist/assets/json5-w8dY5SsB.js +0 -1
  145. package/dist/assets/jsonc-TU54ms6u.js +0 -1
  146. package/dist/assets/jsonl-DREVFZK8.js +0 -1
  147. package/dist/assets/jsonnet-BfivnA6A.js +0 -1
  148. package/dist/assets/jssm-P4WzXJd0.js +0 -1
  149. package/dist/assets/jsx-BAng5TT0.js +0 -1
  150. package/dist/assets/julia-BBuGR-5E.js +0 -1
  151. package/dist/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
  152. package/dist/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
  153. package/dist/assets/kanagawa-wave-DWedfzmr.js +0 -1
  154. package/dist/assets/kotlin-B5lbUyaz.js +0 -1
  155. package/dist/assets/kusto-mebxcVVE.js +0 -1
  156. package/dist/assets/laserwave-DUszq2jm.js +0 -1
  157. package/dist/assets/latex-C-cWTeAZ.js +0 -1
  158. package/dist/assets/lean-XBlWyCtg.js +0 -1
  159. package/dist/assets/less-BfCpw3nA.js +0 -1
  160. package/dist/assets/light-plus-B7mTdjB0.js +0 -1
  161. package/dist/assets/liquid-D3W5UaiH.js +0 -1
  162. package/dist/assets/log-Cc5clBb7.js +0 -1
  163. package/dist/assets/logo-IuBKFhSY.js +0 -1
  164. package/dist/assets/lua-CvWAzNxB.js +0 -1
  165. package/dist/assets/luau-Du5NY7AG.js +0 -1
  166. package/dist/assets/make-Bvotw-X0.js +0 -1
  167. package/dist/assets/markdown-UIAJJxZW.js +0 -1
  168. package/dist/assets/marko-z0MBrx5-.js +0 -1
  169. package/dist/assets/material-theme-D5KoaKCx.js +0 -1
  170. package/dist/assets/material-theme-darker-BfHTSMKl.js +0 -1
  171. package/dist/assets/material-theme-lighter-B0m2ddpp.js +0 -1
  172. package/dist/assets/material-theme-ocean-CyktbL80.js +0 -1
  173. package/dist/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
  174. package/dist/assets/matlab-D9-PGadD.js +0 -1
  175. package/dist/assets/mdc-DB_EDNY_.js +0 -1
  176. package/dist/assets/mdx-sdHcTMYB.js +0 -1
  177. package/dist/assets/mermaid-Ci6OQyBP.js +0 -1
  178. package/dist/assets/min-dark-CafNBF8u.js +0 -1
  179. package/dist/assets/min-light-CTRr51gU.js +0 -1
  180. package/dist/assets/mipsasm-BC5c_5Pe.js +0 -1
  181. package/dist/assets/mojo-Tz6hzZYG.js +0 -1
  182. package/dist/assets/monokai-D4h5O-jR.js +0 -1
  183. package/dist/assets/move-DB_GagMm.js +0 -1
  184. package/dist/assets/narrat-DLbgOhZU.js +0 -1
  185. package/dist/assets/nextflow-B0XVJmRM.js +0 -1
  186. package/dist/assets/nginx-D_VnBJ67.js +0 -1
  187. package/dist/assets/night-owl-C39BiMTA.js +0 -1
  188. package/dist/assets/nim-ZlGxZxc3.js +0 -1
  189. package/dist/assets/nix-shcSOmrb.js +0 -1
  190. package/dist/assets/nord-Ddv68eIx.js +0 -1
  191. package/dist/assets/nushell-D4Tzg5kh.js +0 -1
  192. package/dist/assets/objective-c-Deuh7S70.js +0 -1
  193. package/dist/assets/objective-cpp-BUEGK8hf.js +0 -1
  194. package/dist/assets/ocaml-BNioltXt.js +0 -1
  195. package/dist/assets/one-dark-pro-GBQ2dnAY.js +0 -1
  196. package/dist/assets/one-light-PoHY5YXO.js +0 -1
  197. package/dist/assets/pascal-JqZropPD.js +0 -1
  198. package/dist/assets/perl-CHQXSrWU.js +0 -1
  199. package/dist/assets/php-B5ebYQev.js +0 -1
  200. package/dist/assets/plastic-3e1v2bzS.js +0 -1
  201. package/dist/assets/plsql-LKU2TuZ1.js +0 -1
  202. package/dist/assets/po-BFLt1xDp.js +0 -1
  203. package/dist/assets/poimandres-CS3Unz2-.js +0 -1
  204. package/dist/assets/polar-DKykz6zU.js +0 -1
  205. package/dist/assets/postcss-B3ZDOciz.js +0 -1
  206. package/dist/assets/powerquery-CSHBycmS.js +0 -1
  207. package/dist/assets/powershell-BIEUsx6d.js +0 -1
  208. package/dist/assets/prisma-B48N-Iqd.js +0 -1
  209. package/dist/assets/prolog-BY-TUvya.js +0 -1
  210. package/dist/assets/proto-zocC4JxJ.js +0 -1
  211. package/dist/assets/pug-CM9l7STV.js +0 -1
  212. package/dist/assets/puppet-Cza_XSSt.js +0 -1
  213. package/dist/assets/purescript-Bg-kzb6g.js +0 -1
  214. package/dist/assets/python-DhUJRlN_.js +0 -1
  215. package/dist/assets/qml-D8XfuvdV.js +0 -1
  216. package/dist/assets/qmldir-C8lEn-DE.js +0 -1
  217. package/dist/assets/qss-DhMKtDLN.js +0 -1
  218. package/dist/assets/r-CwjWoCRV.js +0 -1
  219. package/dist/assets/racket-CzouJOBO.js +0 -1
  220. package/dist/assets/raku-B1bQXN8T.js +0 -1
  221. package/dist/assets/razor-CNLDkMZG.js +0 -1
  222. package/dist/assets/red-bN70gL4F.js +0 -1
  223. package/dist/assets/reg-5LuOXUq_.js +0 -1
  224. package/dist/assets/regexp-DWJ3fJO_.js +0 -1
  225. package/dist/assets/rel-DJlmqQ1C.js +0 -1
  226. package/dist/assets/riscv-QhoSD0DR.js +0 -1
  227. package/dist/assets/rose-pine-CmCqftbK.js +0 -1
  228. package/dist/assets/rose-pine-dawn-Ds-gbosJ.js +0 -1
  229. package/dist/assets/rose-pine-moon-CjDtw9vr.js +0 -1
  230. package/dist/assets/rst-4NLicBqY.js +0 -1
  231. package/dist/assets/ruby-DeZ3UC14.js +0 -1
  232. package/dist/assets/rust-Be6lgOlo.js +0 -1
  233. package/dist/assets/sas-BmTFh92c.js +0 -1
  234. package/dist/assets/sass-BJ4Li9vH.js +0 -1
  235. package/dist/assets/scala-DQVVAn-B.js +0 -1
  236. package/dist/assets/scheme-BJGe-b2p.js +0 -1
  237. package/dist/assets/scss-C31hgJw-.js +0 -1
  238. package/dist/assets/sdbl-BLhTXw86.js +0 -1
  239. package/dist/assets/shaderlab-B7qAK45m.js +0 -1
  240. package/dist/assets/shellscript-atvbtKCR.js +0 -1
  241. package/dist/assets/shellsession-C_rIy8kc.js +0 -1
  242. package/dist/assets/slack-dark-BthQWCQV.js +0 -1
  243. package/dist/assets/slack-ochin-DqwNpetd.js +0 -1
  244. package/dist/assets/smalltalk-DkLiglaE.js +0 -1
  245. package/dist/assets/snazzy-light-Bw305WKR.js +0 -1
  246. package/dist/assets/solarized-dark-DXbdFlpD.js +0 -1
  247. package/dist/assets/solarized-light-L9t79GZl.js +0 -1
  248. package/dist/assets/solidity-C1w2a3ep.js +0 -1
  249. package/dist/assets/soy-C-lX7w71.js +0 -1
  250. package/dist/assets/sparql-bYkjHRlG.js +0 -1
  251. package/dist/assets/splunk-Cf8iN4DR.js +0 -1
  252. package/dist/assets/sql-COK4E0Yg.js +0 -1
  253. package/dist/assets/ssh-config-BknIz3MU.js +0 -1
  254. package/dist/assets/stata-DorPZHa4.js +0 -1
  255. package/dist/assets/stylus-BeQkCIfX.js +0 -1
  256. package/dist/assets/svelte-MSaWC3Je.js +0 -1
  257. package/dist/assets/swift-BSxZ-RaX.js +0 -1
  258. package/dist/assets/synthwave-84-CbfX1IO0.js +0 -1
  259. package/dist/assets/system-verilog-C7L56vO4.js +0 -1
  260. package/dist/assets/systemd-CUnW07Te.js +0 -1
  261. package/dist/assets/talonscript-C1XDQQGZ.js +0 -1
  262. package/dist/assets/tasl-CQjiPCtT.js +0 -1
  263. package/dist/assets/tcl-DQ1-QYvQ.js +0 -1
  264. package/dist/assets/templ-dwX3ZSMB.js +0 -1
  265. package/dist/assets/terraform-BbSNqyBO.js +0 -1
  266. package/dist/assets/tex-rYs2v40G.js +0 -1
  267. package/dist/assets/tokyo-night-DBQeEorK.js +0 -1
  268. package/dist/assets/toml-CB2ApiWb.js +0 -1
  269. package/dist/assets/ts-tags-CipyTH0X.js +0 -1
  270. package/dist/assets/tsv-B_m7g4N7.js +0 -1
  271. package/dist/assets/tsx-B6W0miNI.js +0 -1
  272. package/dist/assets/turtle-BMR_PYu6.js +0 -1
  273. package/dist/assets/twig-NC5TFiHP.js +0 -1
  274. package/dist/assets/typescript-Dj6nwHGl.js +0 -1
  275. package/dist/assets/typespec-BpWG_bgh.js +0 -1
  276. package/dist/assets/typst-BVUVsWT6.js +0 -1
  277. package/dist/assets/v-CAQ2eGtk.js +0 -1
  278. package/dist/assets/vala-BFOHcciG.js +0 -1
  279. package/dist/assets/vb-CdO5JTpU.js +0 -1
  280. package/dist/assets/verilog-CJaU5se_.js +0 -1
  281. package/dist/assets/vesper-BEBZ7ncR.js +0 -1
  282. package/dist/assets/vhdl-DYoNaHQp.js +0 -1
  283. package/dist/assets/viml-m4uW47V2.js +0 -1
  284. package/dist/assets/vitesse-black-Bkuqu6BP.js +0 -1
  285. package/dist/assets/vitesse-dark-D0r3Knsf.js +0 -1
  286. package/dist/assets/vitesse-light-CVO1_9PV.js +0 -1
  287. package/dist/assets/vue-BuYVFjOK.js +0 -1
  288. package/dist/assets/vue-html-xdeiXROB.js +0 -1
  289. package/dist/assets/vyper-nyqBNV6O.js +0 -1
  290. package/dist/assets/wasm-C6j12Q_x.js +0 -1
  291. package/dist/assets/wasm-CG6Dc4jp.js +0 -1
  292. package/dist/assets/wenyan-7A4Fjokl.js +0 -1
  293. package/dist/assets/wgsl-CB0Krxn9.js +0 -1
  294. package/dist/assets/wikitext-DCE3LsBG.js +0 -1
  295. package/dist/assets/wolfram-C3FkfJm5.js +0 -1
  296. package/dist/assets/xml-e3z08dGr.js +0 -1
  297. package/dist/assets/xsl-Dd0NUgwM.js +0 -1
  298. package/dist/assets/yaml-CVw76BM1.js +0 -1
  299. package/dist/assets/zenscript-HnGAYVZD.js +0 -1
  300. package/dist/assets/zig-BVz_zdnA.js +0 -1
  301. package/server/app.js +0 -165
  302. package/server/app.test.js +0 -30
  303. package/server/bd.js +0 -227
  304. package/server/bd.test.js +0 -194
  305. package/server/cli/cli.test.js +0 -207
  306. package/server/cli/commands.integration.test.js +0 -148
  307. package/server/cli/commands.js +0 -285
  308. package/server/cli/commands.unit.test.js +0 -408
  309. package/server/cli/daemon.js +0 -340
  310. package/server/cli/daemon.test.js +0 -31
  311. package/server/cli/index.js +0 -135
  312. package/server/cli/open.js +0 -178
  313. package/server/cli/open.test.js +0 -26
  314. package/server/cli/usage.js +0 -49
  315. package/server/config.js +0 -36
  316. package/server/db.test.js +0 -169
  317. package/server/dolt-pool.js +0 -313
  318. package/server/dolt-queries.js +0 -781
  319. package/server/list-adapters.js +0 -421
  320. package/server/list-adapters.test.js +0 -208
  321. package/server/logging.js +0 -23
  322. package/server/registry-watcher.js +0 -200
  323. package/server/subscriptions.js +0 -299
  324. package/server/subscriptions.test.js +0 -128
  325. package/server/validators.js +0 -124
  326. package/server/watcher.js +0 -139
  327. package/server/watcher.test.js +0 -120
  328. package/server/ws.comments.test.js +0 -262
  329. package/server/ws.delete.test.js +0 -119
  330. package/server/ws.js +0 -1329
  331. package/server/ws.labels.test.js +0 -95
  332. package/server/ws.list-refresh.coalesce.test.js +0 -95
  333. package/server/ws.list-subscriptions.test.js +0 -403
  334. package/server/ws.mutation-window.test.js +0 -147
  335. package/server/ws.mutations.test.js +0 -389
  336. package/server/ws.test.js +0 -52
@@ -1,125 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
2
- var Vv=Object.defineProperty;var Gv=(i,l,r)=>l in i?Vv(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r;var N=(i,l,r)=>Gv(i,typeof l!="symbol"?l+"":l,r);(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();var Dc={exports:{}},Ji={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var Tm;function Iv(){if(Tm)return Ji;Tm=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Ji.Fragment=l,Ji.jsx=r,Ji.jsxs=r,Ji}var Am;function qv(){return Am||(Am=1,Dc.exports=Iv()),Dc.exports}var _=qv(),Lc={exports:{}},oe={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Rm;function Pv(){if(Rm)return oe;Rm=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function T(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,P={};function B(A,G,Q){this.props=A,this.context=G,this.refs=P,this.updater=Q||C}B.prototype.isReactComponent={},B.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,G,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function I(){}I.prototype=B.prototype;function q(A,G,Q){this.props=A,this.context=G,this.refs=P,this.updater=Q||C}var K=q.prototype=new I;K.constructor=q,U(K,B.prototype),K.isPureReactComponent=!0;var ne=Array.isArray;function me(){}var te={H:null,A:null,T:null,S:null},Ue=Object.prototype.hasOwnProperty;function mt(A,G,Q){var W=Q.ref;return{$$typeof:i,type:A,key:G,ref:W!==void 0?W:null,props:Q}}function wt(A,G){return mt(A.type,G,A.props)}function Re(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function Ke(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return G[Q]})}var Dt=/\/+/g;function Ye(A,G){return typeof A=="object"&&A!==null&&A.key!=null?Ke(""+A.key):G.toString(36)}function Fe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(me,me):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,G,Q,W,ee){var ue=typeof A;(ue==="undefined"||ue==="boolean")&&(A=null);var be=!1;if(A===null)be=!0;else switch(ue){case"bigint":case"string":case"number":be=!0;break;case"object":switch(A.$$typeof){case i:case l:be=!0;break;case v:return be=A._init,j(be(A._payload),G,Q,W,ee)}}if(be)return ee=ee(A),be=W===""?"."+Ye(A,0):W,ne(ee)?(Q="",be!=null&&(Q=be.replace(Dt,"$&/")+"/"),j(ee,G,Q,"",function(Dn){return Dn})):ee!=null&&(Re(ee)&&(ee=wt(ee,Q+(ee.key==null||A&&A.key===ee.key?"":(""+ee.key).replace(Dt,"$&/")+"/")+be)),G.push(ee)),1;be=0;var Ge=W===""?".":W+":";if(ne(A))for(var Ie=0;Ie<A.length;Ie++)W=A[Ie],ue=Ge+Ye(W,Ie),be+=j(W,G,Q,ue,ee);else if(Ie=T(A),typeof Ie=="function")for(A=Ie.call(A),Ie=0;!(W=A.next()).done;)W=W.value,ue=Ge+Ye(W,Ie++),be+=j(W,G,Q,ue,ee);else if(ue==="object"){if(typeof A.then=="function")return j(Fe(A),G,Q,W,ee);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function $(A,G,Q){if(A==null)return A;var W=[],ee=0;return j(A,W,"","",function(ue){return G.call(Q,ue,ee++)}),W}function re(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(Q){(A._status===0||A._status===-1)&&(A._status=1,A._result=Q)},function(Q){(A._status===0||A._status===-1)&&(A._status=2,A._result=Q)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var Ce=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Oe={map:$,forEach:function(A,G,Q){$(A,function(){G.apply(this,arguments)},Q)},count:function(A){var G=0;return $(A,function(){G++}),G},toArray:function(A){return $(A,function(G){return G})||[]},only:function(A){if(!Re(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return oe.Activity=b,oe.Children=Oe,oe.Component=B,oe.Fragment=r,oe.Profiler=u,oe.PureComponent=q,oe.StrictMode=s,oe.Suspense=h,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,oe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return te.H.useMemoCache(A)}},oe.cache=function(A){return function(){return A.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(A,G,Q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=U({},A.props),ee=A.key;if(G!=null)for(ue in G.key!==void 0&&(ee=""+G.key),G)!Ue.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(W[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)W.children=Q;else if(1<ue){for(var be=Array(ue),Ge=0;Ge<ue;Ge++)be[Ge]=arguments[Ge+2];W.children=be}return mt(A.type,ee,W)},oe.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},oe.createElement=function(A,G,Q){var W,ee={},ue=null;if(G!=null)for(W in G.key!==void 0&&(ue=""+G.key),G)Ue.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=G[W]);var be=arguments.length-2;if(be===1)ee.children=Q;else if(1<be){for(var Ge=Array(be),Ie=0;Ie<be;Ie++)Ge[Ie]=arguments[Ie+2];ee.children=Ge}if(A&&A.defaultProps)for(W in be=A.defaultProps,be)ee[W]===void 0&&(ee[W]=be[W]);return mt(A,ue,ee)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(A){return{$$typeof:p,render:A}},oe.isValidElement=Re,oe.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:re}},oe.memo=function(A,G){return{$$typeof:m,type:A,compare:G===void 0?null:G}},oe.startTransition=function(A){var G=te.T,Q={};te.T=Q;try{var W=A(),ee=te.S;ee!==null&&ee(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(me,Ce)}catch(ue){Ce(ue)}finally{G!==null&&Q.types!==null&&(G.types=Q.types),te.T=G}},oe.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},oe.use=function(A){return te.H.use(A)},oe.useActionState=function(A,G,Q){return te.H.useActionState(A,G,Q)},oe.useCallback=function(A,G){return te.H.useCallback(A,G)},oe.useContext=function(A){return te.H.useContext(A)},oe.useDebugValue=function(){},oe.useDeferredValue=function(A,G){return te.H.useDeferredValue(A,G)},oe.useEffect=function(A,G){return te.H.useEffect(A,G)},oe.useEffectEvent=function(A){return te.H.useEffectEvent(A)},oe.useId=function(){return te.H.useId()},oe.useImperativeHandle=function(A,G,Q){return te.H.useImperativeHandle(A,G,Q)},oe.useInsertionEffect=function(A,G){return te.H.useInsertionEffect(A,G)},oe.useLayoutEffect=function(A,G){return te.H.useLayoutEffect(A,G)},oe.useMemo=function(A,G){return te.H.useMemo(A,G)},oe.useOptimistic=function(A,G){return te.H.useOptimistic(A,G)},oe.useReducer=function(A,G,Q){return te.H.useReducer(A,G,Q)},oe.useRef=function(A){return te.H.useRef(A)},oe.useState=function(A){return te.H.useState(A)},oe.useSyncExternalStore=function(A,G,Q){return te.H.useSyncExternalStore(A,G,Q)},oe.useTransition=function(){return te.H.useTransition()},oe.version="19.2.4",oe}var Cm;function gf(){return Cm||(Cm=1,Lc.exports=Pv()),Lc.exports}var X=gf(),Nc={exports:{}},Wi={},Mc={exports:{}},jc={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var Om;function Yv(){return Om||(Om=1,(function(i){function l(j,$){var re=j.length;j.push($);e:for(;0<re;){var Ce=re-1>>>1,Oe=j[Ce];if(0<u(Oe,$))j[Ce]=$,j[re]=Oe,re=Ce;else break e}}function r(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var $=j[0],re=j.pop();if(re!==$){j[0]=re;e:for(var Ce=0,Oe=j.length,A=Oe>>>1;Ce<A;){var G=2*(Ce+1)-1,Q=j[G],W=G+1,ee=j[W];if(0>u(Q,re))W<Oe&&0>u(ee,Q)?(j[Ce]=ee,j[W]=re,Ce=W):(j[Ce]=Q,j[G]=re,Ce=G);else if(W<Oe&&0>u(ee,re))j[Ce]=ee,j[W]=re,Ce=W;else break e}}return $}function u(j,$){var re=j.sortIndex-$.sortIndex;return re!==0?re:j.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();i.unstable_now=function(){return d.now()-p}}var h=[],m=[],v=1,b=null,S=3,T=!1,C=!1,U=!1,P=!1,B=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function K(j){for(var $=r(m);$!==null;){if($.callback===null)s(m);else if($.startTime<=j)s(m),$.sortIndex=$.expirationTime,l(h,$);else break;$=r(m)}}function ne(j){if(U=!1,K(j),!C)if(r(h)!==null)C=!0,me||(me=!0,Ke());else{var $=r(m);$!==null&&Fe(ne,$.startTime-j)}}var me=!1,te=-1,Ue=5,mt=-1;function wt(){return P?!0:!(i.unstable_now()-mt<Ue)}function Re(){if(P=!1,me){var j=i.unstable_now();mt=j;var $=!0;try{e:{C=!1,U&&(U=!1,I(te),te=-1),T=!0;var re=S;try{t:{for(K(j),b=r(h);b!==null&&!(b.expirationTime>j&&wt());){var Ce=b.callback;if(typeof Ce=="function"){b.callback=null,S=b.priorityLevel;var Oe=Ce(b.expirationTime<=j);if(j=i.unstable_now(),typeof Oe=="function"){b.callback=Oe,K(j),$=!0;break t}b===r(h)&&s(h),K(j)}else s(h);b=r(h)}if(b!==null)$=!0;else{var A=r(m);A!==null&&Fe(ne,A.startTime-j),$=!1}}break e}finally{b=null,S=re,T=!1}$=void 0}}finally{$?Ke():me=!1}}}var Ke;if(typeof q=="function")Ke=function(){q(Re)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,Ye=Dt.port2;Dt.port1.onmessage=Re,Ke=function(){Ye.postMessage(null)}}else Ke=function(){B(Re,0)};function Fe(j,$){te=B(function(){j(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(j){switch(S){case 1:case 2:case 3:var $=3;break;default:$=S}var re=S;S=$;try{return j()}finally{S=re}},i.unstable_requestPaint=function(){P=!0},i.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var re=S;S=j;try{return $()}finally{S=re}},i.unstable_scheduleCallback=function(j,$,re){var Ce=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Ce+re:Ce):re=Ce,j){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=re+Oe,j={id:v++,callback:$,priorityLevel:j,startTime:re,expirationTime:Oe,sortIndex:-1},re>Ce?(j.sortIndex=re,l(m,j),r(h)===null&&j===r(m)&&(U?(I(te),te=-1):U=!0,Fe(ne,re-Ce))):(j.sortIndex=Oe,l(h,j),C||T||(C=!0,me||(me=!0,Ke()))),j},i.unstable_shouldYield=wt,i.unstable_wrapCallback=function(j){var $=S;return function(){var re=S;S=$;try{return j.apply(this,arguments)}finally{S=re}}}})(jc)),jc}var km;function Xv(){return km||(km=1,Mc.exports=Yv()),Mc.exports}var zc={exports:{}},St={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var wm;function Qv(){if(wm)return St;wm=1;var i=gf();function l(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(h,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:h,containerInfo:m,implementation:v}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,St.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return f(h,m,null,v)},St.flushSync=function(h){var m=d.T,v=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=m,s.p=v,s.d.f()}},St.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},St.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},St.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:T}):v==="script"&&s.d.X(h,{crossOrigin:b,integrity:S,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},St.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},St.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin);s.d.L(h,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},St.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=p(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},St.requestFormReset=function(h){s.d.r(h)},St.unstable_batchedUpdates=function(h,m){return h(m)},St.useFormState=function(h,m,v){return d.H.useFormState(h,m,v)},St.useFormStatus=function(){return d.H.useHostTransitionStatus()},St.version="19.2.4",St}var Dm;function Zv(){if(Dm)return zc.exports;Dm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),zc.exports=Qv(),zc.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var Lm;function Kv(){if(Lm)return Wi;Lm=1;var i=Xv(),l=gf(),r=Zv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return h(o),e;if(c===a)return h(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=o,a=c;else{for(var g=!1,y=o.child;y;){if(y===n){g=!0,n=o,a=c;break}if(y===a){g=!0,a=o,n=c;break}y=y.sibling}if(!g){for(y=c.child;y;){if(y===n){g=!0,n=c,a=o;break}if(y===a){g=!0,a=c,n=o;break}y=y.sibling}if(!g)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),mt=Symbol.for("react.activity"),wt=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case B:return"Profiler";case P:return"StrictMode";case ne:return"Suspense";case me:return"SuspenseList";case mt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case q:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var Fe=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Ce=[],Oe=-1;function A(e){return{current:e}}function G(e){0>Oe||(e.current=Ce[Oe],Ce[Oe]=null,Oe--)}function Q(e,t){Oe++,Ce[Oe]=e.current,e.current=t}var W=A(null),ee=A(null),ue=A(null),be=A(null);function Ge(e,t){switch(Q(ue,t),Q(ee,e),Q(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qp(t),e=Zp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Q(W,e)}function Ie(){G(W),G(ee),G(ue)}function Dn(e){e.memoizedState!==null&&Q(be,e);var t=W.current,n=Zp(t,e.type);t!==n&&(Q(ee,e),Q(W,n))}function zl(e){ee.current===e&&(G(W),G(ee)),be.current===e&&(G(be),Qi._currentValue=re)}var sa,Ln;function Wt(e){if(sa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sa=t&&t[1]||"",Ln=-1<n.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+sa+e+Ln}var mn=!1;function Ul(e,t){if(!e||mn)return"";mn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(M){var L=M}Reflect.construct(e,[],V)}else{try{V.call()}catch(M){L=M}e.call(V.prototype)}}else{try{throw Error()}catch(M){L=M}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(M){if(M&&L&&typeof M.stack=="string")return[M.stack,L.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),g=c[0],y=c[1];if(g&&y){var E=g.split(`
45
- `),D=y.split(`
46
- `);for(o=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(a===E.length||o===D.length)for(a=E.length-1,o=D.length-1;1<=a&&0<=o&&E[a]!==D[o];)o--;for(;1<=a&&0<=o;a--,o--)if(E[a]!==D[o]){if(a!==1||o!==1)do if(a--,o--,0>o||E[a]!==D[o]){var z=`
47
- `+E[a].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=a&&0<=o);break}}}finally{mn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wt(n):""}function Ja(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return Ul(e.type,!1);case 11:return Ul(e.type.render,!1);case 1:return Ul(e.type,!0);case 31:return Wt("Activity");default:return""}}function Nn(e){try{var t="",n=null;do t+=Ja(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
48
- Error generating stack: `+a.message+`
49
- `+a.stack}}var ol=Object.prototype.hasOwnProperty,ul=i.unstable_scheduleCallback,oa=i.unstable_cancelCallback,br=i.unstable_shouldYield,So=i.unstable_requestPaint,gt=i.unstable_now,Bl=i.unstable_getCurrentPriorityLevel,Mn=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,cl=i.unstable_NormalPriority,xr=i.unstable_LowPriority,Wa=i.unstable_IdlePriority,Fa=i.log,Sr=i.unstable_setDisableYieldValue,bn=null,ft=null;function dt(e){if(typeof Fa=="function"&&Sr(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(bn,e)}catch{}}var et=Math.clz32?Math.clz32:Eo,ei=Math.log,ti=Math.LN2;function Eo(e){return e>>>=0,e===0?32:31-(ei(e)/ti|0)|0}var jn=256,zn=262144,ua=4194304;function It(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ca(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?o=It(a):(g&=y,g!==0?o=It(g):n||(n=y&~e,n!==0&&(o=It(n))))):(y=a&~c,y!==0?o=It(y):g!==0?o=It(g):n||(n=a&~e,n!==0&&(o=It(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Hl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Un(){var e=ua;return ua<<=1,(ua&62914560)===0&&(ua=4194304),e}function ni(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function li(e,t,n,a,o,c){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(n=g&~n;0<n;){var z=31-et(n),V=1<<z;y[z]=0,E[z]=-1;var L=D[z];if(L!==null)for(D[z]=null,z=0;z<L.length;z++){var M=L[z];M!==null&&(M.lane&=-536870913)}n&=~V}a!==0&&ai(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function ai(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ii(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-et(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Er(e,t){var n=t&-t;return n=(n&42)!==0?1:Lt(n),(n&(e.suspendedLanes|t))!==0?0:n}function Lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ri(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function si(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Ft=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ft,qe="__reactProps$"+Ft,Bn="__reactContainer$"+Ft,fa="__reactEvents$"+Ft,Tr="__reactListeners$"+Ft,Ar="__reactHandles$"+Ft,Rr="__reactResources$"+Ft,le="__reactMarker$"+Ft;function R(e){delete e[tt],delete e[qe],delete e[fa],delete e[Tr],delete e[Ar]}function Y(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tm(e);e!==null;){if(n=e[tt])return n;e=tm(e)}return t}e=n,n=e.parentNode}return null}function J(e){if(e=e[tt]||e[Bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ke(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[Rr];return t||(t=e[Rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function he(e){e[le]=!0}var _t=new Set,en={};function Nt(e,t){xn(e,t),xn(e+"Capture",t)}function xn(e,t){for(en[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var st=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]*$"),oi={},ui={};function L_(e){return ol.call(ui,e)?!0:ol.call(oi,e)?!1:st.test(e)?ui[e]=!0:(oi[e]=!0,!1)}function Cr(e,t,n){if(L_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Or(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Hn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){n=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){if(!e._valueTracker){var t=Hf(e)?"checked":"value";e._valueTracker=N_(e,t,""+e[t])}}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Hf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function kr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var M_=/[\n"\\]/g;function nn(e){return e.replace(M_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ao(e,t,n,a,o,c,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ro(e,g,tn(t)):n!=null?Ro(e,g,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+tn(y):e.removeAttribute("name")}function Gf(e,t,n,a,o,c,g,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){To(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),To(e)}function Ro(e,t,n){t==="number"&&kr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function da(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function If(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function qf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Fe(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),To(e)}function ha(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var j_=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 Pf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||j_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Yf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Pf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Pf(e,c,t[c])}function Co(e){if(e.indexOf("-")===-1)return!1;switch(e){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 z_=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"]]),U_=/^[\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 wr(e){return U_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Vn(){}var Oo=null;function ko(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,ma=null;function Xf(e){var t=J(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ao(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qe]||null;if(!o)throw Error(s(90));Ao(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Vf(a)}break e;case"textarea":If(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&da(e,!!n.multiple,t,!1)}}}var wo=!1;function Qf(e,t,n){if(wo)return e(t,n);wo=!0;try{var a=e(t);return a}finally{if(wo=!1,(pa!==null||ma!==null)&&(_s(),pa&&(t=pa,e=ma,ma=pa=null,Xf(t),e)))for(t=0;t<e.length;t++)Xf(e[t])}}function ci(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=!1;if(Gn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Do=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Do=!1}var dl=null,Lo=null,Dr=null;function Zf(){if(Dr)return Dr;var e,t=Lo,n=t.length,a,o="value"in dl?dl.value:dl.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===o[c-a];a++);return Dr=o.slice(e,1<a?1-a:void 0)}function Lr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nr(){return!0}function Kf(){return!1}function Mt(e){function t(n,a,o,c,g){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Nr:Kf,this.isPropagationStopped=Kf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Mt(Vl),di=b({},Vl,{view:0,detail:0}),B_=Mt(di),No,Mo,hi,jr=b({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(No=e.screenX-hi.screenX,Mo=e.screenY-hi.screenY):Mo=No=0,hi=e),No)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),$f=Mt(jr),H_=b({},jr,{dataTransfer:0}),V_=Mt(H_),G_=b({},di,{relatedTarget:0}),jo=Mt(G_),I_=b({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),q_=Mt(I_),P_=b({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y_=Mt(P_),X_=b({},Vl,{data:0}),Jf=Mt(X_),Q_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z_={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"},K_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K_[e])?!!t[e]:!1}function zo(){return $_}var J_=b({},di,{key:function(e){if(e.key){var t=Q_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zo,charCode:function(e){return e.type==="keypress"?Lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W_=Mt(J_),F_=b({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wf=Mt(F_),ey=b({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zo}),ty=Mt(ey),ny=b({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ly=Mt(ny),ay=b({},jr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iy=Mt(ay),ry=b({},Vl,{newState:0,oldState:0}),sy=Mt(ry),oy=[9,13,27,32],Uo=Gn&&"CompositionEvent"in window,pi=null;Gn&&"documentMode"in document&&(pi=document.documentMode);var uy=Gn&&"TextEvent"in window&&!pi,Ff=Gn&&(!Uo||pi&&8<pi&&11>=pi),ed=" ",td=!1;function nd(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ld(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function cy(e,t){switch(e){case"compositionend":return ld(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function fy(e,t){if(ga)return e==="compositionend"||!Uo&&nd(e,t)?(e=Zf(),Dr=Lo=dl=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ff&&t.locale!=="ko"?null:t.data;default:return null}}var dy={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 ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dy[e.type]:t==="textarea"}function id(e,t,n,a){pa?ma?ma.push(a):ma=[a]:pa=a,t=Ts(t,"onChange"),0<t.length&&(n=new Mr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var mi=null,gi=null;function hy(e){Gp(e,0)}function zr(e){var t=ke(e);if(Vf(t))return e}function rd(e,t){if(e==="change")return t}var sd=!1;if(Gn){var Bo;if(Gn){var Ho="oninput"in document;if(!Ho){var od=document.createElement("div");od.setAttribute("oninput","return;"),Ho=typeof od.oninput=="function"}Bo=Ho}else Bo=!1;sd=Bo&&(!document.documentMode||9<document.documentMode)}function ud(){mi&&(mi.detachEvent("onpropertychange",cd),gi=mi=null)}function cd(e){if(e.propertyName==="value"&&zr(gi)){var t=[];id(t,gi,e,ko(e)),Qf(hy,t)}}function py(e,t,n){e==="focusin"?(ud(),mi=t,gi=n,mi.attachEvent("onpropertychange",cd)):e==="focusout"&&ud()}function my(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zr(gi)}function gy(e,t){if(e==="click")return zr(t)}function _y(e,t){if(e==="input"||e==="change")return zr(t)}function yy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:yy;function _i(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ol.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function fd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dd(e,t){var n=fd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fd(n)}}function hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kr(e.document)}return t}function Vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vy=Gn&&"documentMode"in document&&11>=document.documentMode,_a=null,Go=null,yi=null,Io=!1;function md(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||_a==null||_a!==kr(a)||(a=_a,"selectionStart"in a&&Vo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),yi&&_i(yi,a)||(yi=a,a=Ts(Go,"onSelect"),0<a.length&&(t=new Mr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=_a)))}function Gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ya={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},qo={},gd={};Gn&&(gd=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Il(e){if(qo[e])return qo[e];if(!ya[e])return e;var t=ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gd)return qo[e]=t[n];return e}var _d=Il("animationend"),yd=Il("animationiteration"),vd=Il("animationstart"),by=Il("transitionrun"),xy=Il("transitionstart"),Sy=Il("transitioncancel"),bd=Il("transitionend"),xd=new Map,Po="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(" ");Po.push("scrollEnd");function _n(e,t){xd.set(e,t),Nt(t,[e])}var Ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],va=0,Yo=0;function Br(){for(var e=va,t=Yo=va=0;t<e;){var n=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,a!==null&&o!==null){var g=a.pending;g===null?o.next=o:(o.next=g.next,g.next=o),a.pending=o}c!==0&&Sd(n,o,c)}}function Hr(e,t,n,a){ln[va++]=e,ln[va++]=t,ln[va++]=n,ln[va++]=a,Yo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xo(e,t,n,a){return Hr(e,t,n,a),Vr(e)}function ql(e,t){return Hr(e,null,null,t),Vr(e)}function Sd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-et(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Vr(e){if(50<Vi)throw Vi=0,tc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function Ey(e,t,n,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new Ey(e,t,n,a)}function Qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function In(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ed(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,n,a,o,c){var g=0;if(a=e,typeof e=="function")Qo(e)&&(g=1);else if(typeof e=="string")g=Ov(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mt:return e=Pt(31,n,t,o),e.elementType=mt,e.lanes=c,e;case U:return Pl(n.children,o,c,t);case P:g=8,o|=24;break;case B:return e=Pt(12,n,t,o|2),e.elementType=B,e.lanes=c,e;case ne:return e=Pt(13,n,t,o),e.elementType=ne,e.lanes=c,e;case me:return e=Pt(19,n,t,o),e.elementType=me,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:g=10;break e;case I:g=9;break e;case K:g=11;break e;case te:g=14;break e;case Ue:g=16,a=null;break e}g=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Pt(g,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Pl(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Zo(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Td(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Ko(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ad=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=Ad.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nn(t)},Ad.set(e,t),t)}return{value:e,source:t,stack:Nn(t)}}var xa=[],Sa=0,Ir=null,vi=0,rn=[],sn=0,hl=null,Sn=1,En="";function qn(e,t){xa[Sa++]=vi,xa[Sa++]=Ir,Ir=e,vi=t}function Rd(e,t,n){rn[sn++]=Sn,rn[sn++]=En,rn[sn++]=hl,hl=e;var a=Sn;e=En;var o=32-et(a)-1;a&=~(1<<o),n+=1;var c=32-et(t)+o;if(30<c){var g=o-o%5;c=(a&(1<<g)-1).toString(32),a>>=g,o-=g,Sn=1<<32-et(t)+o|n<<o|a,En=c+e}else Sn=1<<c|n<<o|a,En=e}function $o(e){e.return!==null&&(qn(e,1),Rd(e,1,0))}function Jo(e){for(;e===Ir;)Ir=xa[--Sa],xa[Sa]=null,vi=xa[--Sa],xa[Sa]=null;for(;e===hl;)hl=rn[--sn],rn[sn]=null,En=rn[--sn],rn[sn]=null,Sn=rn[--sn],rn[sn]=null}function Cd(e,t){rn[sn++]=Sn,rn[sn++]=En,rn[sn++]=hl,Sn=t.id,En=t.overflow,hl=e}var yt=null,He=null,xe=!1,pl=null,on=!1,Wo=Error(s(519));function ml(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bi(an(t,e)),Wo}function Od(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[tt]=e,t[qe]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Ii.length;n++)_e(Ii[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),Gf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),qf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Yp(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Vn),t=!0):t=!1,t||ml(e,!0)}function kd(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function Ea(e){if(e!==yt)return!1;if(!xe)return kd(e),xe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gc(e.type,e.memoizedProps)),n=!n),n&&He&&ml(e),kd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=em(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=em(e)}else t===27?(t=He,kl(e.type)?(e=xc,xc=null,He=e):He=t):He=yt?cn(e.stateNode.nextSibling):null;return!0}function Yl(){He=yt=null,xe=!1}function Fo(){var e=pl;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),pl=null),e}function bi(e){pl===null?pl=[e]:pl.push(e)}var eu=A(null),Xl=null,Pn=null;function gl(e,t,n){Q(eu,t._currentValue),t._currentValue=n}function Yn(e){e._currentValue=eu.current,G(eu)}function tu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function nu(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=o;for(var E=0;E<t.length;E++)if(y.context===t[E]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),tu(c.return,n,e),a||(g=null);break e}c=y.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=n,c=g.alternate,c!==null&&(c.lanes|=n),tu(g,n,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ta(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var y=o.type;qt(o.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(o===be.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Qi):e=[Qi])}o=o.return}e!==null&&nu(t,e,n,a),t.flags|=262144}function qr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Xl=e,Pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return wd(Xl,e)}function Pr(e,t){return Xl===null&&Ql(e),wd(e,t)}function wd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Pn===null){if(e===null)throw Error(s(308));Pn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pn=Pn.next=t;return n}var Ty=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ay=i.unstable_scheduleCallback,Ry=i.unstable_NormalPriority,nt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lu(){return{controller:new Ty,data:new Map,refCount:0}}function xi(e){e.refCount--,e.refCount===0&&Ay(Ry,function(){e.controller.abort()})}var Si=null,au=0,Aa=0,Ra=null;function Cy(e,t){if(Si===null){var n=Si=[];au=0,Aa=sc(),Ra={status:"pending",value:void 0,then:function(a){n.push(a)}}}return au++,t.then(Dd,Dd),t}function Dd(){if(--au===0&&Si!==null){Ra!==null&&(Ra.status="fulfilled");var e=Si;Si=null,Aa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Ld=j.S;j.S=function(e,t){mp=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cy(e,t),Ld!==null&&Ld(e,t)};var Zl=A(null);function iu(){var e=Zl.current;return e!==null?e:ze.pooledCache}function Yr(e,t){t===null?Q(Zl,Zl.current):Q(Zl,t.pool)}function Nd(){var e=iu();return e===null?null:{parent:nt._currentValue,pool:e}}var Ca=Error(s(460)),ru=Error(s(474)),Xr=Error(s(542)),Qr={then:function(){}};function Md(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vn,Vn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e;default:if(typeof t.status=="string")t.then(Vn,Vn);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e}throw $l=t,Ca}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?($l=n,Ca):n}}var $l=null;function zd(){if($l===null)throw Error(s(459));var e=$l;return $l=null,e}function Ud(e){if(e===Ca||e===Xr)throw Error(s(483))}var Oa=null,Ei=0;function Zr(e){var t=Ei;return Ei+=1,Oa===null&&(Oa=[]),jd(Oa,e,t)}function Ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bd(e){function t(k,O){if(e){var w=k.deletions;w===null?(k.deletions=[O],k.flags|=16):w.push(O)}}function n(k,O){if(!e)return null;for(;O!==null;)t(k,O),O=O.sibling;return null}function a(k){for(var O=new Map;k!==null;)k.key!==null?O.set(k.key,k):O.set(k.index,k),k=k.sibling;return O}function o(k,O){return k=In(k,O),k.index=0,k.sibling=null,k}function c(k,O,w){return k.index=w,e?(w=k.alternate,w!==null?(w=w.index,w<O?(k.flags|=67108866,O):w):(k.flags|=67108866,O)):(k.flags|=1048576,O)}function g(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function y(k,O,w,H){return O===null||O.tag!==6?(O=Zo(w,k.mode,H),O.return=k,O):(O=o(O,w),O.return=k,O)}function E(k,O,w,H){var ie=w.type;return ie===U?z(k,O,w.props.children,H,w.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Kl(ie)===O.type)?(O=o(O,w.props),Ti(O,w),O.return=k,O):(O=Gr(w.type,w.key,w.props,null,k.mode,H),Ti(O,w),O.return=k,O)}function D(k,O,w,H){return O===null||O.tag!==4||O.stateNode.containerInfo!==w.containerInfo||O.stateNode.implementation!==w.implementation?(O=Ko(w,k.mode,H),O.return=k,O):(O=o(O,w.children||[]),O.return=k,O)}function z(k,O,w,H,ie){return O===null||O.tag!==7?(O=Pl(w,k.mode,H,ie),O.return=k,O):(O=o(O,w),O.return=k,O)}function V(k,O,w){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Zo(""+O,k.mode,w),O.return=k,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return w=Gr(O.type,O.key,O.props,null,k.mode,w),Ti(w,O),w.return=k,w;case C:return O=Ko(O,k.mode,w),O.return=k,O;case Ue:return O=Kl(O),V(k,O,w)}if(Fe(O)||Ke(O))return O=Pl(O,k.mode,w,null),O.return=k,O;if(typeof O.then=="function")return V(k,Zr(O),w);if(O.$$typeof===q)return V(k,Pr(k,O),w);Kr(k,O)}return null}function L(k,O,w,H){var ie=O!==null?O.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ie!==null?null:y(k,O,""+w,H);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case T:return w.key===ie?E(k,O,w,H):null;case C:return w.key===ie?D(k,O,w,H):null;case Ue:return w=Kl(w),L(k,O,w,H)}if(Fe(w)||Ke(w))return ie!==null?null:z(k,O,w,H,null);if(typeof w.then=="function")return L(k,O,Zr(w),H);if(w.$$typeof===q)return L(k,O,Pr(k,w),H);Kr(k,w)}return null}function M(k,O,w,H,ie){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return k=k.get(w)||null,y(O,k,""+H,ie);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return k=k.get(H.key===null?w:H.key)||null,E(O,k,H,ie);case C:return k=k.get(H.key===null?w:H.key)||null,D(O,k,H,ie);case Ue:return H=Kl(H),M(k,O,w,H,ie)}if(Fe(H)||Ke(H))return k=k.get(w)||null,z(O,k,H,ie,null);if(typeof H.then=="function")return M(k,O,w,Zr(H),ie);if(H.$$typeof===q)return M(k,O,w,Pr(O,H),ie);Kr(O,H)}return null}function F(k,O,w,H){for(var ie=null,Se=null,ae=O,fe=O=0,ve=null;ae!==null&&fe<w.length;fe++){ae.index>fe?(ve=ae,ae=null):ve=ae.sibling;var Ee=L(k,ae,w[fe],H);if(Ee===null){ae===null&&(ae=ve);break}e&&ae&&Ee.alternate===null&&t(k,ae),O=c(Ee,O,fe),Se===null?ie=Ee:Se.sibling=Ee,Se=Ee,ae=ve}if(fe===w.length)return n(k,ae),xe&&qn(k,fe),ie;if(ae===null){for(;fe<w.length;fe++)ae=V(k,w[fe],H),ae!==null&&(O=c(ae,O,fe),Se===null?ie=ae:Se.sibling=ae,Se=ae);return xe&&qn(k,fe),ie}for(ae=a(ae);fe<w.length;fe++)ve=M(ae,k,fe,w[fe],H),ve!==null&&(e&&ve.alternate!==null&&ae.delete(ve.key===null?fe:ve.key),O=c(ve,O,fe),Se===null?ie=ve:Se.sibling=ve,Se=ve);return e&&ae.forEach(function(Ml){return t(k,Ml)}),xe&&qn(k,fe),ie}function se(k,O,w,H){if(w==null)throw Error(s(151));for(var ie=null,Se=null,ae=O,fe=O=0,ve=null,Ee=w.next();ae!==null&&!Ee.done;fe++,Ee=w.next()){ae.index>fe?(ve=ae,ae=null):ve=ae.sibling;var Ml=L(k,ae,Ee.value,H);if(Ml===null){ae===null&&(ae=ve);break}e&&ae&&Ml.alternate===null&&t(k,ae),O=c(Ml,O,fe),Se===null?ie=Ml:Se.sibling=Ml,Se=Ml,ae=ve}if(Ee.done)return n(k,ae),xe&&qn(k,fe),ie;if(ae===null){for(;!Ee.done;fe++,Ee=w.next())Ee=V(k,Ee.value,H),Ee!==null&&(O=c(Ee,O,fe),Se===null?ie=Ee:Se.sibling=Ee,Se=Ee);return xe&&qn(k,fe),ie}for(ae=a(ae);!Ee.done;fe++,Ee=w.next())Ee=M(ae,k,fe,Ee.value,H),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?fe:Ee.key),O=c(Ee,O,fe),Se===null?ie=Ee:Se.sibling=Ee,Se=Ee);return e&&ae.forEach(function(Hv){return t(k,Hv)}),xe&&qn(k,fe),ie}function je(k,O,w,H){if(typeof w=="object"&&w!==null&&w.type===U&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case T:e:{for(var ie=w.key;O!==null;){if(O.key===ie){if(ie=w.type,ie===U){if(O.tag===7){n(k,O.sibling),H=o(O,w.props.children),H.return=k,k=H;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Kl(ie)===O.type){n(k,O.sibling),H=o(O,w.props),Ti(H,w),H.return=k,k=H;break e}n(k,O);break}else t(k,O);O=O.sibling}w.type===U?(H=Pl(w.props.children,k.mode,H,w.key),H.return=k,k=H):(H=Gr(w.type,w.key,w.props,null,k.mode,H),Ti(H,w),H.return=k,k=H)}return g(k);case C:e:{for(ie=w.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===w.containerInfo&&O.stateNode.implementation===w.implementation){n(k,O.sibling),H=o(O,w.children||[]),H.return=k,k=H;break e}else{n(k,O);break}else t(k,O);O=O.sibling}H=Ko(w,k.mode,H),H.return=k,k=H}return g(k);case Ue:return w=Kl(w),je(k,O,w,H)}if(Fe(w))return F(k,O,w,H);if(Ke(w)){if(ie=Ke(w),typeof ie!="function")throw Error(s(150));return w=ie.call(w),se(k,O,w,H)}if(typeof w.then=="function")return je(k,O,Zr(w),H);if(w.$$typeof===q)return je(k,O,Pr(k,w),H);Kr(k,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,O!==null&&O.tag===6?(n(k,O.sibling),H=o(O,w),H.return=k,k=H):(n(k,O),H=Zo(w,k.mode,H),H.return=k,k=H),g(k)):n(k,O)}return function(k,O,w,H){try{Ei=0;var ie=je(k,O,w,H);return Oa=null,ie}catch(ae){if(ae===Ca||ae===Xr)throw ae;var Se=Pt(29,ae,null,k.mode);return Se.lanes=H,Se.return=k,Se}finally{}}}var Jl=Bd(!0),Hd=Bd(!1),_l=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ou(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Vr(e),Sd(e,null,n),t}return Hr(e,a,t,n),Vr(e)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}function uu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var cu=!1;function Ri(){if(cu){var e=Ra;if(e!==null)throw e}}function Ci(e,t,n,a){cu=!1;var o=e.updateQueue;_l=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var E=y,D=E.next;E.next=null,g===null?c=D:g.next=D,g=E;var z=e.alternate;z!==null&&(z=z.updateQueue,y=z.lastBaseUpdate,y!==g&&(y===null?z.firstBaseUpdate=D:y.next=D,z.lastBaseUpdate=E))}if(c!==null){var V=o.baseState;g=0,z=D=E=null,y=c;do{var L=y.lane&-536870913,M=L!==y.lane;if(M?(ye&L)===L:(a&L)===L){L!==0&&L===Aa&&(cu=!0),z!==null&&(z=z.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var F=e,se=y;L=t;var je=n;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){V=F.call(je,V,L);break e}V=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,L=typeof F=="function"?F.call(je,V,L):F,L==null)break e;V=b({},V,L);break e;case 2:_l=!0}}L=y.callback,L!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[L]:M.push(L))}else M={lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},z===null?(D=z=M,E=V):z=z.next=M,g|=L;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;M=y,y=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);z===null&&(E=V),o.baseState=E,o.firstBaseUpdate=D,o.lastBaseUpdate=z,c===null&&(o.shared.lanes=0),Tl|=g,e.lanes=g,e.memoizedState=V}}function Vd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Gd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Vd(n[e],t)}var ka=A(null),$r=A(0);function Id(e,t){e=el,Q($r,e),Q(ka,t),el=e|t.baseLanes}function fu(){Q($r,el),Q(ka,ka.current)}function du(){el=$r.current,G(ka),G($r)}var Yt=A(null),un=null;function bl(e){var t=e.alternate;Q(Je,Je.current&1),Q(Yt,e),un===null&&(t===null||ka.current!==null||t.memoizedState!==null)&&(un=e)}function hu(e){Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)}function qd(e){e.tag===22?(Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)):xl()}function xl(){Q(Je,Je.current),Q(Yt,Yt.current)}function Xt(e){G(Yt),un===e&&(un=null),G(Je)}var Je=A(0);function Jr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vc(n)||bc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xn=0,ce=null,Ne=null,lt=null,Wr=!1,wa=!1,Wl=!1,Fr=0,Oi=0,Da=null,ky=0;function Qe(){throw Error(s(321))}function pu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function mu(e,t,n,a,o,c){return Xn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Rh:wu,Wl=!1,c=n(a,o),Wl=!1,wa&&(c=Yd(t,n,a,o)),Pd(e),c}function Pd(e){j.H=Di;var t=Ne!==null&&Ne.next!==null;if(Xn=0,lt=Ne=ce=null,Wr=!1,Oi=0,Da=null,t)throw Error(s(300));e===null||at||(e=e.dependencies,e!==null&&qr(e)&&(at=!0))}function Yd(e,t,n,a){ce=e;var o=0;do{if(wa&&(Da=null),Oi=0,wa=!1,25<=o)throw Error(s(301));if(o+=1,lt=Ne=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=Ch,c=t(n,a)}while(wa);return c}function wy(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?ki(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ce.flags|=1024),t}function gu(){var e=Fr!==0;return Fr=0,e}function _u(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yu(e){if(Wr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wr=!1}Xn=0,lt=Ne=ce=null,wa=!1,Oi=Fr=0,Da=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ce.memoizedState=lt=e:lt=lt.next=e,lt}function We(){if(Ne===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=lt===null?ce.memoizedState:lt.next;if(t!==null)lt=t,Ne=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},lt===null?ce.memoizedState=lt=e:lt=lt.next=e}return lt}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ki(e){var t=Oi;return Oi+=1,Da===null&&(Da=[]),e=jd(Da,e,t),t=ce,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Rh:wu),e}function ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ki(e);if(e.$$typeof===q)return vt(e)}throw Error(s(438,String(e)))}function vu(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=es(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=wt;return t.index++,n}function Qn(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=We();return bu(t,Ne,e)}function bu(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var y=g=null,E=null,D=t,z=!1;do{var V=D.lane&-536870913;if(V!==D.lane?(ye&V)===V:(Xn&V)===V){var L=D.revertLane;if(L===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),V===Aa&&(z=!0);else if((Xn&L)===L){D=D.next,L===Aa&&(z=!0);continue}else V={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(y=E=V,g=c):E=E.next=V,ce.lanes|=L,Tl|=L;V=D.action,Wl&&n(c,V),c=D.hasEagerState?D.eagerState:n(c,V)}else L={lane:V,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(y=E=L,g=c):E=E.next=L,ce.lanes|=V,Tl|=V;D=D.next}while(D!==null&&D!==t);if(E===null?g=c:E.next=y,!qt(c,e.memoizedState)&&(at=!0,z&&(n=Ra,n!==null)))throw n;e.memoizedState=c,e.baseState=g,e.baseQueue=E,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function xu(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Xd(e,t,n){var a=ce,o=We(),c=xe;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var g=!qt((Ne||o).memoizedState,n);if(g&&(o.memoizedState=n,at=!0),o=o.queue,Tu(Kd.bind(null,a,o,e),[e]),o.getSnapshot!==t||g||lt!==null&&lt.memoizedState.tag&1){if(a.flags|=2048,La(9,{destroy:void 0},Zd.bind(null,a,o,n,t),null),ze===null)throw Error(s(349));c||(Xn&127)!==0||Qd(a,t,n)}return n}function Qd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=es(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zd(e,t,n,a){t.value=n,t.getSnapshot=a,$d(t)&&Jd(e)}function Kd(e,t,n){return n(function(){$d(t)&&Jd(e)})}function $d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Jd(e){var t=ql(e,2);t!==null&&Ht(t,e,2)}function Su(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Wl){dt(!0);try{n()}finally{dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:e},t}function Wd(e,t,n,a){return e.baseState=n,bu(e,Ne,typeof a=="function"?a:Qn)}function Dy(e,t,n,a,o){if(is(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};j.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Fd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Fd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=j.T,g={};j.T=g;try{var y=n(o,a),E=j.S;E!==null&&E(g,y),eh(e,t,y)}catch(D){Eu(e,t,D)}finally{c!==null&&g.types!==null&&(c.types=g.types),j.T=c}}else try{c=n(o,a),eh(e,t,c)}catch(D){Eu(e,t,D)}}function eh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){th(e,t,a)},function(a){return Eu(e,t,a)}):th(e,t,n)}function th(e,t,n){t.status="fulfilled",t.value=n,nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Fd(e,n)))}function Eu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,nh(t),t=t.next;while(t!==a)}e.action=null}function nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lh(e,t){return t}function ah(e,t){if(xe){var n=ze.formState;if(n!==null){e:{var a=ce;if(xe){if(He){t:{for(var o=He,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=cn(o.nextSibling),a=o.data==="F!";break e}}ml(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lh,lastRenderedState:t},n.queue=a,n=Eh.bind(null,ce,a),a.dispatch=n,a=Su(!1),c=ku.bind(null,ce,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Dy.bind(null,ce,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function ih(e){var t=We();return rh(t,Ne,e)}function rh(e,t,n){if(t=bu(e,t,lh)[0],e=ns(Qn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ki(t)}catch(g){throw g===Ca?Xr:g}else a=t;t=We();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,La(9,{destroy:void 0},Ly.bind(null,o,n),null)),[a,c,e]}function Ly(e,t){e.action=t}function sh(e){var t=We(),n=Ne;if(n!==null)return rh(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function La(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=es(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function oh(){return We().memoizedState}function ls(e,t,n,a){var o=Tt();ce.flags|=e,o.memoizedState=La(1|t,{destroy:void 0},n,a===void 0?null:a)}function as(e,t,n,a){var o=We();a=a===void 0?null:a;var c=o.memoizedState.inst;Ne!==null&&a!==null&&pu(a,Ne.memoizedState.deps)?o.memoizedState=La(t,c,n,a):(ce.flags|=e,o.memoizedState=La(1|t,c,n,a))}function uh(e,t){ls(8390656,8,e,t)}function Tu(e,t){as(2048,8,e,t)}function Ny(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=es(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ch(e){var t=We().memoizedState;return Ny({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function fh(e,t){return as(4,2,e,t)}function dh(e,t){return as(4,4,e,t)}function hh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ph(e,t,n){n=n!=null?n.concat([e]):null,as(4,4,hh.bind(null,t,e),n)}function Au(){}function mh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&pu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function gh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&pu(t,a[1]))return a[0];if(a=e(),Wl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a}function Ru(e,t,n){return n===void 0||(Xn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=_p(),ce.lanes|=e,Tl|=e,n)}function _h(e,t,n,a){return qt(n,t)?n:ka.current!==null?(e=Ru(e,n,a),qt(e,t)||(at=!0),e):(Xn&42)===0||(Xn&1073741824)!==0&&(ye&261930)===0?(at=!0,e.memoizedState=n):(e=_p(),ce.lanes|=e,Tl|=e,t)}function yh(e,t,n,a,o){var c=$.p;$.p=c!==0&&8>c?c:8;var g=j.T,y={};j.T=y,ku(e,!1,t,n);try{var E=o(),D=j.S;if(D!==null&&D(y,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var z=Oy(E,a);wi(e,t,z,Kt(e))}else wi(e,t,a,Kt(e))}catch(V){wi(e,t,{then:function(){},status:"rejected",reason:V},Kt())}finally{$.p=c,g!==null&&y.types!==null&&(g.types=y.types),j.T=g}}function My(){}function Cu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var o=vh(e).queue;yh(e,o,t,re,n===null?My:function(){return bh(e),n(a)})}function vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bh(e){var t=vh(e);t.next===null&&(t=e.alternate.memoizedState),wi(e,t.next.queue,{},Kt())}function Ou(){return vt(Qi)}function xh(){return We().memoizedState}function Sh(){return We().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var a=vl(t,e,n);a!==null&&(Ht(a,t,n),Ai(a,t,n)),t={cache:lu()},e.payload=t;return}t=t.return}}function zy(e,t,n){var a=Kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},is(e)?Th(t,n):(n=Xo(e,t,n,a),n!==null&&(Ht(n,e,a),Ah(n,t,a)))}function Eh(e,t,n){var a=Kt();wi(e,t,n,a)}function wi(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))Th(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,y=c(g,n);if(o.hasEagerState=!0,o.eagerState=y,qt(y,g))return Hr(e,t,o,0),ze===null&&Br(),!1}catch{}finally{}if(n=Xo(e,t,o,a),n!==null)return Ht(n,e,a),Ah(n,t,a),!0}return!1}function ku(e,t,n,a){if(a={lane:2,revertLane:sc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},is(e)){if(t)throw Error(s(479))}else t=Xo(e,n,a,2),t!==null&&Ht(t,e,2)}function is(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Th(e,t){wa=Wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ah(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}var Di={readContext:vt,use:ts,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Di.useEffectEvent=Qe;var Rh={readContext:vt,use:ts,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:uh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ls(4194308,4,hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Wl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Wl){dt(!0);try{n(t)}finally{dt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=zy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Su(e);var t=e.queue,n=Eh.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Au,useDeferredValue:function(e,t){var n=Tt();return Ru(n,e,t)},useTransition:function(){var e=Su(!1);return e=yh.bind(null,ce,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,o=Tt();if(xe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(ye&127)!==0||Qd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,uh(Kd.bind(null,a,c,e),[e]),a.flags|=2048,La(9,{destroy:void 0},Zd.bind(null,a,c,n,t),null),n},useId:function(){var e=Tt(),t=ze.identifierPrefix;if(xe){var n=En,a=Sn;n=(a&~(1<<32-et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ky++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ou,useFormState:ah,useActionState:ah,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ku.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:vu,useCacheRefresh:function(){return Tt().memoizedState=jy.bind(null,ce)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},wu={readContext:vt,use:ts,useCallback:mh,useContext:vt,useEffect:Tu,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:gh,useReducer:ns,useRef:oh,useState:function(){return ns(Qn)},useDebugValue:Au,useDeferredValue:function(e,t){var n=We();return _h(n,Ne.memoizedState,e,t)},useTransition:function(){var e=ns(Qn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ki(e),t]},useSyncExternalStore:Xd,useId:xh,useHostTransitionStatus:Ou,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var n=We();return Wd(n,Ne,e,t)},useMemoCache:vu,useCacheRefresh:Sh};wu.useEffectEvent=ch;var Ch={readContext:vt,use:ts,useCallback:mh,useContext:vt,useEffect:Tu,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:gh,useReducer:xu,useRef:oh,useState:function(){return xu(Qn)},useDebugValue:Au,useDeferredValue:function(e,t){var n=We();return Ne===null?Ru(n,e,t):_h(n,Ne.memoizedState,e,t)},useTransition:function(){var e=xu(Qn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ki(e),t]},useSyncExternalStore:Xd,useId:xh,useHostTransitionStatus:Ou,useFormState:sh,useActionState:sh,useOptimistic:function(e,t){var n=We();return Ne!==null?Wd(n,Ne,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:vu,useCacheRefresh:Sh};Ch.useEffectEvent=ch;function Du(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,n),t!==null&&(Ht(t,e,n),Ai(t,e,n))}};function Oh(e,t,n,a,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):t.prototype&&t.prototype.isPureReactComponent?!_i(n,a)||!_i(o,c):!0}function kh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Lu.enqueueReplaceState(t,t.state,null)}function Fl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function wh(e){Ur(e)}function Dh(e){console.error(e)}function Lh(e){Ur(e)}function rs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Nh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Nu(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){rs(e,t)},n}function Mh(e){return e=yl(e),e.tag=3,e}function jh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Nh(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Nh(t,n,a),typeof o!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Uy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ta(t,n,o,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?ys():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ac(e,a,o)),!1;case 22:return n.flags|=65536,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ac(e,a,o)),!1}throw Error(s(435,n.tag))}return ac(e,a,o),ys(),!1}if(xe)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Wo&&(e=Error(s(422),{cause:a}),bi(an(e,n)))):(a!==Wo&&(t=Error(s(423),{cause:a}),bi(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=Nu(e.stateNode,a,o),uu(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(s(520),{cause:a});if(c=an(c,n),Hi===null?Hi=[c]:Hi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Nu(n.stateNode,a,e),uu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Al===null||!Al.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Mh(o),jh(o,e,n,a),uu(n,o),!1}n=n.return}while(n!==null);return!1}var Mu=Error(s(461)),at=!1;function bt(e,t,n,a){t.child=e===null?Hd(t,null,n,a):Jl(t,e.child,n,a)}function zh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var g={};for(var y in a)y!=="ref"&&(g[y]=a[y])}else g=a;return Ql(t),a=mu(e,t,n,g,c,o),y=gu(),e!==null&&!at?(_u(e,t,o),Zn(e,t,o)):(xe&&y&&$o(t),t.flags|=1,bt(e,t,a,o),t.child)}function Uh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Qo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Bh(e,t,c,a,o)):(e=Gr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Iu(e,o)){var g=c.memoizedProps;if(n=n.compare,n=n!==null?n:_i,n(g,a)&&e.ref===t.ref)return Zn(e,t,o)}return t.flags|=1,e=In(c,a),e.ref=t.ref,e.return=t,t.child=e}function Bh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(_i(c,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=c,Iu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Zn(e,t,o)}return ju(e,t,n,a,o)}function Hh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Vh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,c!==null?c.cachePool:null),c!==null?Id(t,c):fu(),qd(t);else return a=t.lanes=536870912,Vh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Yr(t,c.cachePool),Id(t,c),xl(),t.memoizedState=null):(e!==null&&Yr(t,null),fu(),xl());return bt(e,t,o,n),t.child}function Li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,n,a,o){var c=iu();return c=c===null?null:{parent:nt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Yr(t,null),fu(),qd(t),e!==null&&Ta(e,t,a,!0),t.childLanes=o,null}function ss(e,t){return t=us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gh(e,t,n){return Jl(t,e.child,null,n),e=ss(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function By(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(a.mode==="hidden")return e=ss(t,a),t.lanes=536870912,Li(null,e);if(hu(t),(e=He)?(e=Fp(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Sn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},n=Td(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return ss(t,a)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(hu(t),o)if(t.flags&256)t.flags&=-257,t=Gh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(at||Ta(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=ze,a!==null&&(g=Er(a,n),g!==0&&g!==c.retryLane))throw c.retryLane=g,ql(e,g),Ht(a,e,g),Mu;ys(),t=Gh(e,t,n)}else e=c.treeContext,He=cn(g.nextSibling),yt=t,xe=!0,pl=null,on=!1,e!==null&&Cd(t,e),t=ss(t,a),t.flags|=4096;return t}return e=In(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ju(e,t,n,a,o){return Ql(t),n=mu(e,t,n,a,void 0,o),a=gu(),e!==null&&!at?(_u(e,t,o),Zn(e,t,o)):(xe&&a&&$o(t),t.flags|=1,bt(e,t,n,o),t.child)}function Ih(e,t,n,a,o,c){return Ql(t),t.updateQueue=null,n=Yd(t,a,n,o),Pd(e),a=gu(),e!==null&&!at?(_u(e,t,c),Zn(e,t,c)):(xe&&a&&$o(t),t.flags|=1,bt(e,t,n,c),t.child)}function qh(e,t,n,a,o){if(Ql(t),t.stateNode===null){var c=ba,g=n.contextType;typeof g=="object"&&g!==null&&(c=vt(g)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},su(t),g=n.contextType,c.context=typeof g=="object"&&g!==null?vt(g):ba,c.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Du(t,n,g,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Lu.enqueueReplaceState(c,c.state,null),Ci(t,a,c,o),Ri(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,E=Fl(n,y);c.props=E;var D=c.context,z=n.contextType;g=ba,typeof z=="object"&&z!==null&&(g=vt(z));var V=n.getDerivedStateFromProps;z=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,z||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||D!==g)&&kh(t,c,a,g),_l=!1;var L=t.memoizedState;c.state=L,Ci(t,a,c,o),Ri(),D=t.memoizedState,y||L!==D||_l?(typeof V=="function"&&(Du(t,n,V,a),D=t.memoizedState),(E=_l||Oh(t,n,E,a,L,D,g))?(z||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),c.props=a,c.state=D,c.context=g,a=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,ou(e,t),g=t.memoizedProps,z=Fl(n,g),c.props=z,V=t.pendingProps,L=c.context,D=n.contextType,E=ba,typeof D=="object"&&D!==null&&(E=vt(D)),y=n.getDerivedStateFromProps,(D=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==V||L!==E)&&kh(t,c,a,E),_l=!1,L=t.memoizedState,c.state=L,Ci(t,a,c,o),Ri();var M=t.memoizedState;g!==V||L!==M||_l||e!==null&&e.dependencies!==null&&qr(e.dependencies)?(typeof y=="function"&&(Du(t,n,y,a),M=t.memoizedState),(z=_l||Oh(t,n,z,a,L,M,E)||e!==null&&e.dependencies!==null&&qr(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,M,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,M,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=E,a=z):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,os(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Jl(t,e.child,null,o),t.child=Jl(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Zn(e,t,o),e}function Ph(e,t,n,a){return Yl(),t.flags|=256,bt(e,t,n,a),t.child}var zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uu(e){return{baseLanes:e,cachePool:Nd()}}function Bu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Yh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(o?bl(t):xl(),(e=He)?(e=Fp(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Sn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},n=Td(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw ml(t);return bc(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,o?(xl(),o=t.mode,y=us({mode:"hidden",children:y},o),a=Pl(a,o,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=Uu(n),a.childLanes=Bu(e,g,n),t.memoizedState=zu,Li(null,a)):(bl(t),Hu(t,y))}var E=e.memoizedState;if(E!==null&&(y=E.dehydrated,y!==null)){if(c)t.flags&256?(bl(t),t.flags&=-257,t=Vu(e,t,n)):t.memoizedState!==null?(xl(),t.child=e.child,t.flags|=128,t=null):(xl(),y=a.fallback,o=t.mode,a=us({mode:"visible",children:a.children},o),y=Pl(y,o,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,Jl(t,e.child,null,n),a=t.child,a.memoizedState=Uu(n),a.childLanes=Bu(e,g,n),t.memoizedState=zu,t=Li(null,a));else if(bl(t),bc(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var D=g.dgst;g=D,a=Error(s(419)),a.stack="",a.digest=g,bi({value:a,source:null,stack:null}),t=Vu(e,t,n)}else if(at||Ta(e,t,n,!1),g=(n&e.childLanes)!==0,at||g){if(g=ze,g!==null&&(a=Er(g,n),a!==0&&a!==E.retryLane))throw E.retryLane=a,ql(e,a),Ht(g,e,a),Mu;vc(y)||ys(),t=Vu(e,t,n)}else vc(y)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,He=cn(y.nextSibling),yt=t,xe=!0,pl=null,on=!1,e!==null&&Cd(t,e),t=Hu(t,a.children),t.flags|=4096);return t}return o?(xl(),y=a.fallback,o=t.mode,E=e.child,D=E.sibling,a=In(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&65011712,D!==null?y=In(D,y):(y=Pl(y,o,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,Li(null,a),a=t.child,y=e.child.memoizedState,y===null?y=Uu(n):(o=y.cachePool,o!==null?(E=nt._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=Nd(),y={baseLanes:y.baseLanes|n,cachePool:o}),a.memoizedState=y,a.childLanes=Bu(e,g,n),t.memoizedState=zu,Li(e.child,a)):(bl(t),n=e.child,e=n.sibling,n=In(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Hu(e,t){return t=us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function us(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Vu(e,t,n){return Jl(t,e.child,null,n),e=Hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),tu(e.return,t,n)}function Gu(e,t,n,a,o,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=o,g.treeForkCount=c)}function Qh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var g=Je.current,y=(g&2)!==0;if(y?(g=g&1|2,t.flags|=128):g&=1,Q(Je,g),bt(e,t,a,n),a=xe?vi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xh(e,n,t);else if(e.tag===19)Xh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Jr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Gu(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Jr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Gu(t,!0,n,null,c,a);break;case"together":Gu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Zn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=In(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=In(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Iu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qr(e)))}function Hy(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),gl(t,nt,e.memoizedState.cache),Yl();break;case 27:case 5:Dn(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Yh(e,t,n):(bl(t),e=Zn(e,t,n),e!==null?e.sibling:null);bl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ta(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Hh(e,t,n,t.pendingProps);case 24:gl(t,nt,e.memoizedState.cache)}return Zn(e,t,n)}function Zh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Iu(e,n)&&(t.flags&128)===0)return at=!1,Hy(e,t,n);at=(e.flags&131072)!==0}else at=!1,xe&&(t.flags&1048576)!==0&&Rd(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")Qo(e)?(a=Fl(e,a),t.tag=1,t=qh(null,t,e,a,n)):(t.tag=0,t=ju(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===K){t.tag=11,t=zh(null,t,e,a,n);break e}else if(o===te){t.tag=14,t=Uh(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Fl(a,t.pendingProps),qh(e,t,a,o,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,ou(e,t),Ci(t,a,null,n);var g=t.memoizedState;if(a=g.cache,gl(t,nt,a),a!==c.cache&&nu(t,[nt],n,!0),Ri(),a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ph(e,t,a,n);break e}else if(a!==o){o=an(Error(s(424)),t),bi(o),t=Ph(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=cn(e.firstChild),yt=t,xe=!0,pl=null,on=!0,n=Hd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Yl(),a===o){t=Zn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return os(e,t),e===null?(n=im(t.type,null,t.pendingProps,null))?t.memoizedState=n:xe||(n=t.type,e=t.pendingProps,a=As(ue.current).createElement(n),a[tt]=t,a[qe]=e,xt(a,n,e),he(a),t.stateNode=a):t.memoizedState=im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Dn(t),e===null&&xe&&(a=t.stateNode=nm(t.type,t.pendingProps,ue.current),yt=t,on=!0,o=He,kl(t.type)?(xc=o,He=cn(a.firstChild)):He=o),bt(e,t,t.pendingProps.children,n),os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((o=a=He)&&(a=mv(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,yt=t,He=cn(a.firstChild),on=!1,o=!0):o=!1),o||ml(t)),Dn(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,a=c.children,gc(o,c)?a=null:g!==null&&gc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=mu(e,t,wy,null,null,n),Qi._currentValue=o),os(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&xe&&((e=n=He)&&(n=gv(n,t.pendingProps,on),n!==null?(t.stateNode=n,yt=t,He=null,e=!0):e=!1),e||ml(t)),null;case 13:return Yh(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Jl(t,null,a,n):bt(e,t,a,n),t.child;case 11:return zh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ql(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return Uh(e,t,t.type,t.pendingProps,n);case 15:return Bh(e,t,t.type,t.pendingProps,n);case 19:return Qh(e,t,n);case 31:return By(e,t,n);case 22:return Hh(e,t,n,t.pendingProps);case 24:return Ql(t),a=vt(nt),e===null?(o=iu(),o===null&&(o=ze,c=lu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},su(t),gl(t,nt,o)):((e.lanes&n)!==0&&(ou(e,t),Ci(t,null,null,n),Ri()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),gl(t,nt,a)):(a=c.cache,gl(t,nt,a),a!==o.cache&&nu(t,[nt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Kn(e){e.flags|=4}function qu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(xp())e.flags|=8192;else throw $l=Qr,ru}else e.flags&=-16777217}function Kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cm(t))if(xp())e.flags|=8192;else throw $l=Qr,ru}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Un():536870912,e.lanes|=t,za|=t)}function Ni(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Vy(e,t,n){var a=t.pendingProps;switch(Jo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Yn(nt),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Kn(t),c!==null?(Ve(t),Kh(t,c)):(Ve(t),qu(t,o,null,a,n))):c?c!==e.memoizedState?(Kn(t),Ve(t),Kh(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kn(t),Ve(t),qu(t,o,e,a,n)),null;case 27:if(zl(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,Ea(t)?Od(t):(e=nm(o,a,n),t.stateNode=e,Kn(t))}return Ve(t),null;case 5:if(zl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,Ea(t))Od(t);else{var g=As(ue.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?g.createElement(o,{is:a.is}):g.createElement(o)}}c[tt]=t,c[qe]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(xt(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kn(t)}}return Ve(t),qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Ea(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Yp(e.nodeValue,n)),e||ml(t,!0)}else e=As(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ea(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ea(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[tt]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cs(t,t.updateQueue),Ve(t),null);case 4:return Ie(),e===null&&fc(t.stateNode.containerInfo),Ve(t),null;case 10:return Yn(t.type),Ve(t),null;case 19:if(G(Je),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)Ni(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Jr(e),c!==null){for(t.flags|=128,Ni(a,!1),e=c.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ed(n,e),n=n.sibling;return Q(Je,Je.current&1|2),xe&&qn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&gt()>ms&&(t.flags|=128,o=!0,Ni(a,!1),t.lanes=4194304)}else{if(!o)if(e=Jr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),Ni(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!xe)return Ve(t),null}else 2*gt()-a.renderingStartTime>ms&&n!==536870912&&(t.flags|=128,o=!0,Ni(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=Je.current,Q(Je,o?n&1|2:n&1),xe&&qn(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Xt(t),du(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&cs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Zl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yn(nt),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Gy(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(nt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zl(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return Ie(),null;case 10:return Yn(t.type),null;case 22:case 23:return Xt(t),du(),e!==null&&G(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yn(nt),null;case 25:return null;default:return null}}function $h(e,t){switch(Jo(t),t.tag){case 3:Yn(nt),Ie();break;case 26:case 27:case 5:zl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(Je);break;case 10:Yn(t.type);break;case 22:case 23:Xt(t),du(),e!==null&&G(Zl);break;case 24:Yn(nt)}}function Mi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,g=n.inst;a=c(),g.destroy=a}n=n.next}while(n!==o)}}catch(y){Le(t,t.return,y)}}function Sl(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var g=a.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,o=t;var E=n,D=y;try{D()}catch(z){Le(o,E,z)}}}a=a.next}while(a!==c)}}catch(z){Le(t,t.return,z)}}function Jh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Gd(t,n)}catch(a){Le(e,e.return,a)}}}function Wh(e,t,n){n.props=Fl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Le(e,t,a)}}function ji(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Le(e,t,o)}}function Tn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Le(e,t,o)}else n.current=null}function Fh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Le(e,e.return,o)}}function Pu(e,t,n){try{var a=e.stateNode;uv(a,e.type,n,t),a[qe]=t}catch(o){Le(e,e.return,o)}}function ep(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kl(e.type)||e.tag===4}function Yu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ep(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vn));else if(a!==4&&(a===27&&kl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xu(e,t,n),e=e.sibling;e!==null;)Xu(e,t,n),e=e.sibling}function fs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&kl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function tp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,a,n),t[tt]=e,t[qe]=n}catch(c){Le(e,e.return,c)}}var $n=!1,it=!1,Qu=!1,np=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Iy(e,t){if(e=e.containerInfo,pc=Ls,e=pd(e),Vo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var g=0,y=-1,E=-1,D=0,z=0,V=e,L=null;t:for(;;){for(var M;V!==n||o!==0&&V.nodeType!==3||(y=g+o),V!==c||a!==0&&V.nodeType!==3||(E=g+a),V.nodeType===3&&(g+=V.nodeValue.length),(M=V.firstChild)!==null;)L=V,V=M;for(;;){if(V===e)break t;if(L===n&&++D===o&&(y=g),L===c&&++z===a&&(E=g),(M=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=M}n=y===-1||E===-1?null:{start:y,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(mc={focusedElem:e,selectionRange:n},Ls=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var F=Fl(n.type,o);e=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Le(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)yc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function lp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Wn(e,n),a&4&&Mi(5,n);break;case 1:if(Wn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Le(n,n.return,g)}else{var o=Fl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Le(n,n.return,g)}}a&64&&Jh(n),a&512&&ji(n,n.return);break;case 3:if(Wn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Gd(e,t)}catch(g){Le(n,n.return,g)}}break;case 27:t===null&&a&4&&tp(n);case 26:case 5:Wn(e,n),t===null&&a&4&&Fh(n),a&512&&ji(n,n.return);break;case 12:Wn(e,n);break;case 31:Wn(e,n),a&4&&rp(e,n);break;case 13:Wn(e,n),a&4&&sp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Jy.bind(null,n),_v(e,n))));break;case 22:if(a=n.memoizedState!==null||$n,!a){t=t!==null&&t.memoizedState!==null||it,o=$n;var c=it;$n=a,(it=t)&&!c?Fn(e,n,(n.subtreeFlags&8772)!==0):Wn(e,n),$n=o,it=c}break;case 30:break;default:Wn(e,n)}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,jt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)ip(e,t,n),n=n.sibling}function ip(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(bn,n)}catch{}switch(n.tag){case 26:it||Tn(n,t),Jn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||Tn(n,t);var a=Pe,o=jt;kl(n.type)&&(Pe=n.stateNode,jt=!1),Jn(e,t,n),Pi(n.stateNode),Pe=a,jt=o;break;case 5:it||Tn(n,t);case 6:if(a=Pe,o=jt,Pe=null,Jn(e,t,n),Pe=a,jt=o,Pe!==null)if(jt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){Le(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){Le(n,t,c)}break;case 18:Pe!==null&&(jt?(e=Pe,Jp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pa(e)):Jp(Pe,n.stateNode));break;case 4:a=Pe,o=jt,Pe=n.stateNode.containerInfo,jt=!0,Jn(e,t,n),Pe=a,jt=o;break;case 0:case 11:case 14:case 15:Sl(2,n,t),it||Sl(4,n,t),Jn(e,t,n);break;case 1:it||(Tn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Wh(n,t,a)),Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,Jn(e,t,n),it=a;break;default:Jn(e,t,n)}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pa(e)}catch(n){Le(t,t.return,n)}}}function sp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pa(e)}catch(n){Le(t,t.return,n)}}function qy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new np),t;default:throw Error(s(435,e.tag))}}function ds(e,t){var n=qy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Wy.bind(null,e,a);a.then(o,o)}})}function zt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(kl(y.type)){Pe=y.stateNode,jt=!1;break e}break;case 5:Pe=y.stateNode,jt=!1;break e;case 3:case 4:Pe=y.stateNode.containerInfo,jt=!0;break e}y=y.return}if(Pe===null)throw Error(s(160));ip(c,g,o),Pe=null,jt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)op(t,e),t=t.sibling}var yn=null;function op(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Ut(e),a&4&&(Sl(3,e,e.return),Mi(3,e),Sl(5,e,e.return));break;case 1:zt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&64&&$n&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=yn;if(zt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[le]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),xt(c,a,n),c[tt]=e,he(c),a=c;break e;case"link":var g=om("link","href",o).get(a+(n.href||""));if(g){for(var y=0;y<g.length;y++)if(c=g[y],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(y,1);break t}}c=o.createElement(a),xt(c,a,n),o.head.appendChild(c);break;case"meta":if(g=om("meta","content",o).get(a+(n.content||""))){for(y=0;y<g.length;y++)if(c=g[y],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(y,1);break t}}c=o.createElement(a),xt(c,a,n),o.head.appendChild(c);break;default:throw Error(s(468,a))}c[tt]=e,he(c),a=c}e.stateNode=a}else um(o,e.type,e.stateNode);else e.stateNode=sm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?um(o,e.type,e.stateNode):sm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Pu(e,e.memoizedProps,n.memoizedProps)}break;case 27:zt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),n!==null&&a&4&&Pu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(zt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),e.flags&32){o=e.stateNode;try{ha(o,"")}catch(F){Le(e,e.return,F)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Pu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Qu=!0);break;case 6:if(zt(t,e),Ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){Le(e,e.return,F)}}break;case 3:if(Os=null,o=yn,yn=Rs(t.containerInfo),zt(t,e),yn=o,Ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Pa(t.containerInfo)}catch(F){Le(e,e.return,F)}Qu&&(Qu=!1,up(e));break;case 4:a=yn,yn=Rs(e.stateNode.containerInfo),zt(t,e),Ut(e),yn=a;break;case 12:zt(t,e),Ut(e);break;case 31:zt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 13:zt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ps=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 22:o=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,D=$n,z=it;if($n=D||o,it=z||E,zt(t,e),it=z,$n=D,Ut(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||E||$n||it||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(c=E.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=E.stateNode;var V=E.memoizedProps.style,L=V!=null&&V.hasOwnProperty("display")?V.display:null;y.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(F){Le(E,E.return,F)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(F){Le(E,E.return,F)}}}else if(t.tag===18){if(n===null){E=t;try{var M=E.stateNode;o?Wp(M,!0):Wp(E.stateNode,!1)}catch(F){Le(E,E.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ds(e,n))));break;case 19:zt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 30:break;case 21:break;default:zt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ep(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Yu(e);fs(e,c,o);break;case 5:var g=n.stateNode;n.flags&32&&(ha(g,""),n.flags&=-33);var y=Yu(e);fs(e,y,g);break;case 3:case 4:var E=n.stateNode.containerInfo,D=Yu(e);Xu(e,D,E);break;default:throw Error(s(161))}}catch(z){Le(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function up(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;up(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lp(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Sl(4,t,t.return),ea(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Wh(t,t.return,n),ea(t);break;case 27:Pi(t.stateNode);case 26:case 5:Tn(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function Fn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:Fn(o,c,n),Mi(4,c);break;case 1:if(Fn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Le(a,a.return,D)}if(a=c,o=a.updateQueue,o!==null){var y=a.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)Vd(E[o],y)}catch(D){Le(a,a.return,D)}}n&&g&64&&Jh(c),ji(c,c.return);break;case 27:tp(c);case 26:case 5:Fn(o,c,n),n&&a===null&&g&4&&Fh(c),ji(c,c.return);break;case 12:Fn(o,c,n);break;case 31:Fn(o,c,n),n&&g&4&&rp(o,c);break;case 13:Fn(o,c,n),n&&g&4&&sp(o,c);break;case 22:c.memoizedState===null&&Fn(o,c,n),ji(c,c.return);break;case 30:break;default:Fn(o,c,n)}t=t.sibling}}function Zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&xi(n))}function Ku(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xi(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cp(e,t,n,a),t=t.sibling}function cp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),o&2048&&Mi(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xi(e)));break;case 12:if(o&2048){vn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,y=c.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Le(t,t.return,E)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?vn(e,t,n,a):zi(e,t):c._visibility&2?vn(e,t,n,a):(c._visibility|=2,Na(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Zu(g,t);break;case 24:vn(e,t,n,a),o&2048&&Ku(t.alternate,t);break;default:vn(e,t,n,a)}}function Na(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,y=n,E=a,D=g.flags;switch(g.tag){case 0:case 11:case 15:Na(c,g,y,E,o),Mi(8,g);break;case 23:break;case 22:var z=g.stateNode;g.memoizedState!==null?z._visibility&2?Na(c,g,y,E,o):zi(c,g):(z._visibility|=2,Na(c,g,y,E,o)),o&&D&2048&&Zu(g.alternate,g);break;case 24:Na(c,g,y,E,o),o&&D&2048&&Ku(g.alternate,g);break;default:Na(c,g,y,E,o)}t=t.sibling}}function zi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:zi(n,a),o&2048&&Zu(a.alternate,a);break;case 24:zi(n,a),o&2048&&Ku(a.alternate,a);break;default:zi(n,a)}t=t.sibling}}var Ui=8192;function Ma(e,t,n){if(e.subtreeFlags&Ui)for(e=e.child;e!==null;)fp(e,t,n),e=e.sibling}function fp(e,t,n){switch(e.tag){case 26:Ma(e,t,n),e.flags&Ui&&e.memoizedState!==null&&kv(n,yn,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,n);break;case 3:case 4:var a=yn;yn=Rs(e.stateNode.containerInfo),Ma(e,t,n),yn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ui,Ui=16777216,Ma(e,t,n),Ui=a):Ma(e,t,n));break;default:Ma(e,t,n)}}function dp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,pp(a,e)}dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hp(e),e=e.sibling}function hp(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hs(e)):Bi(e);break;default:Bi(e)}}function hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,pp(a,e)}dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),hs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hs(t));break;default:hs(t)}e=e.sibling}}function pp(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(ap(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var Py={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},Yy=typeof WeakMap=="function"?WeakMap:Map,Ae=0,ze=null,ge=null,ye=0,De=0,Qt=null,El=!1,ja=!1,$u=!1,el=0,Ze=0,Tl=0,ta=0,Ju=0,Zt=0,za=0,Hi=null,Bt=null,Wu=!1,ps=0,mp=0,ms=1/0,gs=null,Al=null,ot=0,Rl=null,Ua=null,tl=0,Fu=0,ec=null,gp=null,Vi=0,tc=null;function Kt(){return(Ae&2)!==0&&ye!==0?ye&-ye:j.T!==null?sc():ri()}function _p(){if(Zt===0)if((ye&536870912)===0||xe){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===ze&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),Cl(e,ye,Zt,!1)),fl(e,n),((Ae&2)===0||e!==ze)&&(e===ze&&((Ae&2)===0&&(ta|=n),Ze===4&&Cl(e,ye,Zt,!1)),An(e))}function yp(e,t,n){if((Ae&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Hl(e,t),o=a?Zy(e,t):lc(e,t,!0),c=a;do{if(o===0){ja&&!a&&Cl(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Xy(n)){o=lc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;o=Hi;var E=y.current.memoizedState.isDehydrated;if(E&&(Ba(y,g).flags|=256),g=lc(y,g,!1),g!==2){if($u&&!E){y.errorRecoveryDisabledLanes|=c,ta|=c,o=4;break e}c=Bt,Bt=o,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){Ba(e,0),Cl(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Cl(a,t,Zt,!El);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=ps+300-gt(),10<o)){if(Cl(a,t,Zt,!El),ca(a,0,!0)!==0)break e;tl=t,a.timeoutHandle=Kp(vp.bind(null,a,n,Bt,gs,Wu,t,Zt,ta,za,El,c,"Throttled",-0,0),o);break e}vp(a,n,Bt,gs,Wu,t,Zt,ta,za,El,c,null,-0,0)}}break}while(!0);An(e)}function vp(e,t,n,a,o,c,g,y,E,D,z,V,L,M){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vn},fp(t,c,V);var F=(c&62914560)===c?ps-gt():(c&4194048)===c?mp-gt():0;if(F=wv(V,F),F!==null){tl=c,e.cancelPendingCommit=F(Cp.bind(null,e,t,c,n,a,o,g,y,E,z,V,null,L,M)),Cl(e,c,g,!D);return}}Cp(e,t,c,n,a,o,g,y,E)}function Xy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cl(e,t,n,a){t&=~Ju,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-et(o),g=1<<c;a[c]=-1,o&=~g}n!==0&&ai(e,n,t)}function _s(){return(Ae&6)===0?(Gi(0),!1):!0}function nc(){if(ge!==null){if(De===0)var e=ge.return;else e=ge,Pn=Xl=null,yu(e),Oa=null,Ei=0,e=ge;for(;e!==null;)$h(e.alternate,e),e=e.return;ge=null}}function Ba(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,dv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),tl=0,nc(),ze=e,ge=n=In(e.current,null),ye=t,De=0,Qt=null,El=!1,ja=Hl(e,t),$u=!1,za=Zt=Ju=ta=Tl=Ze=0,Bt=Hi=null,Wu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-et(a),c=1<<o;t|=e[o],a&=~c}return el=t,Br(),n}function bp(e,t){ce=null,j.H=Di,t===Ca||t===Xr?(t=zd(),De=3):t===ru?(t=zd(),De=4):De=t===Mu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ge===null&&(Ze=1,rs(e,an(t,e.current)))}function xp(){var e=Yt.current;return e===null?!0:(ye&4194048)===ye?un===null:(ye&62914560)===ye||(ye&536870912)!==0?e===un:!1}function Sp(){var e=j.H;return j.H=Di,e===null?Di:e}function Ep(){var e=j.A;return j.A=Py,e}function ys(){Ze=4,El||(ye&4194048)!==ye&&Yt.current!==null||(ja=!0),(Tl&134217727)===0&&(ta&134217727)===0||ze===null||Cl(ze,ye,Zt,!1)}function lc(e,t,n){var a=Ae;Ae|=2;var o=Sp(),c=Ep();(ze!==e||ye!==t)&&(gs=null,Ba(e,t)),t=!1;var g=Ze;e:do try{if(De!==0&&ge!==null){var y=ge,E=Qt;switch(De){case 8:nc(),g=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var D=De;if(De=0,Qt=null,Ha(e,y,E,D),n&&ja){g=0;break e}break;default:D=De,De=0,Qt=null,Ha(e,y,E,D)}}Qy(),g=Ze;break}catch(z){bp(e,z)}while(!0);return t&&e.shellSuspendCounter++,Pn=Xl=null,Ae=a,j.H=o,j.A=c,ge===null&&(ze=null,ye=0,Br()),g}function Qy(){for(;ge!==null;)Tp(ge)}function Zy(e,t){var n=Ae;Ae|=2;var a=Sp(),o=Ep();ze!==e||ye!==t?(gs=null,ms=gt()+500,Ba(e,t)):ja=Hl(e,t);e:do try{if(De!==0&&ge!==null){t=ge;var c=Qt;t:switch(De){case 1:De=0,Qt=null,Ha(e,t,c,1);break;case 2:case 9:if(Md(c)){De=0,Qt=null,Ap(t);break}t=function(){De!==2&&De!==9||ze!==e||(De=7),An(e)},c.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Md(c)?(De=0,Qt=null,Ap(t)):(De=0,Qt=null,Ha(e,t,c,7));break;case 5:var g=null;switch(ge.tag){case 26:g=ge.memoizedState;case 5:case 27:var y=ge;if(g?cm(g):y.stateNode.complete){De=0,Qt=null;var E=y.sibling;if(E!==null)ge=E;else{var D=y.return;D!==null?(ge=D,vs(D)):ge=null}break t}}De=0,Qt=null,Ha(e,t,c,5);break;case 6:De=0,Qt=null,Ha(e,t,c,6);break;case 8:nc(),Ze=6;break e;default:throw Error(s(462))}}Ky();break}catch(z){bp(e,z)}while(!0);return Pn=Xl=null,j.H=a,j.A=o,Ae=n,ge!==null?0:(ze=null,ye=0,Br(),Ze)}function Ky(){for(;ge!==null&&!br();)Tp(ge)}function Tp(e){var t=Zh(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function Ap(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ih(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Ih(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:yu(t);default:$h(n,t),t=ge=Ed(t,el),t=Zh(n,t,el)}e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function Ha(e,t,n,a){Pn=Xl=null,yu(t),Oa=null,Ei=0;var o=t.return;try{if(Uy(e,o,t,n,ye)){Ze=1,rs(e,an(n,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ze=1,rs(e,an(n,e.current)),ge=null;return}t.flags&32768?(xe||a===1?e=!0:ja||(ye&536870912)!==0?e=!1:(El=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Rp(t,e)):vs(t)}function vs(e){var t=e;do{if((t.flags&32768)!==0){Rp(t,El);return}e=t.return;var n=Vy(t.alternate,t,el);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Rp(e,t){do{var n=Gy(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ze=6,ge=null}function Cp(e,t,n,a,o,c,g,y,E){e.cancelPendingCommit=null;do bs();while(ot!==0);if((Ae&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Yo,li(e,n,c,g,y,E),e===ze&&(ge=ze=null,ye=0),Ua=t,Rl=e,tl=n,Fu=c,ec=o,gp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fy(cl,function(){return Lp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,o=$.p,$.p=2,g=Ae,Ae|=4;try{Iy(e,t,n)}finally{Ae=g,$.p=o,j.T=a}}ot=1,Op(),kp(),wp()}}function Op(){if(ot===1){ot=0;var e=Rl,t=Ua,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=$.p;$.p=2;var o=Ae;Ae|=4;try{op(t,e);var c=mc,g=pd(e.containerInfo),y=c.focusedElem,E=c.selectionRange;if(g!==y&&y&&y.ownerDocument&&hd(y.ownerDocument.documentElement,y)){if(E!==null&&Vo(y)){var D=E.start,z=E.end;if(z===void 0&&(z=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(z,y.value.length);else{var V=y.ownerDocument||document,L=V&&V.defaultView||window;if(L.getSelection){var M=L.getSelection(),F=y.textContent.length,se=Math.min(E.start,F),je=E.end===void 0?se:Math.min(E.end,F);!M.extend&&se>je&&(g=je,je=se,se=g);var k=dd(y,se),O=dd(y,je);if(k&&O&&(M.rangeCount!==1||M.anchorNode!==k.node||M.anchorOffset!==k.offset||M.focusNode!==O.node||M.focusOffset!==O.offset)){var w=V.createRange();w.setStart(k.node,k.offset),M.removeAllRanges(),se>je?(M.addRange(w),M.extend(O.node,O.offset)):(w.setEnd(O.node,O.offset),M.addRange(w))}}}}for(V=[],M=y;M=M.parentNode;)M.nodeType===1&&V.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<V.length;y++){var H=V[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ls=!!pc,mc=pc=null}finally{Ae=o,$.p=a,j.T=n}}e.current=t,ot=2}}function kp(){if(ot===2){ot=0;var e=Rl,t=Ua,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=$.p;$.p=2;var o=Ae;Ae|=4;try{lp(e,t.alternate,t)}finally{Ae=o,$.p=a,j.T=n}}ot=3}}function wp(){if(ot===4||ot===3){ot=0,So();var e=Rl,t=Ua,n=tl,a=gp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Ua=Rl=null,Dp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Al=null),gn(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,o=$.p,$.p=2,j.T=null;try{for(var c=e.onRecoverableError,g=0;g<a.length;g++){var y=a[g];c(y.value,{componentStack:y.stack})}}finally{j.T=t,$.p=o}}(tl&3)!==0&&bs(),An(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===tc?Vi++:(Vi=0,tc=e):Vi=0,Gi(0)}}function Dp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xi(t)))}function bs(){return Op(),kp(),wp(),Lp()}function Lp(){if(ot!==5)return!1;var e=Rl,t=Fu;Fu=0;var n=gn(tl),a=j.T,o=$.p;try{$.p=32>n?32:n,j.T=null,n=ec,ec=null;var c=Rl,g=tl;if(ot=0,Ua=Rl=null,tl=0,(Ae&6)!==0)throw Error(s(331));var y=Ae;if(Ae|=4,hp(c.current),cp(c,c.current,g,n),Ae=y,Gi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(bn,c)}catch{}return!0}finally{$.p=o,j.T=a,Dp(e,t)}}function Np(e,t,n){t=an(n,t),t=Nu(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(fl(e,2),An(e))}function Le(e,t,n){if(e.tag===3)Np(e,e,n);else for(;t!==null;){if(t.tag===3){Np(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=an(n,e),n=Mh(2),a=vl(t,n,2),a!==null&&(jh(n,a,t,e),fl(a,2),An(a));break}}t=t.return}}function ac(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Yy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||($u=!0,o.add(n),e=$y.bind(null,e,t,n),t.then(e,e))}function $y(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(ye&n)===n&&(Ze===4||Ze===3&&(ye&62914560)===ye&&300>gt()-ps?(Ae&2)===0&&Ba(e,0):Ju|=n,za===ye&&(za=0)),An(e)}function Mp(e,t){t===0&&(t=Un()),e=ql(e,t),e!==null&&(fl(e,t),An(e))}function Jy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mp(e,n)}function Wy(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Mp(e,n)}function Fy(e,t){return ul(e,t)}var xs=null,Va=null,ic=!1,Ss=!1,rc=!1,Ol=0;function An(e){e!==Va&&e.next===null&&(Va===null?xs=Va=e:Va=Va.next=e),Ss=!0,ic||(ic=!0,tv())}function Gi(e,t){if(!rc&&Ss){rc=!0;do for(var n=!1,a=xs;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var g=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-et(42|e)+1)-1,c&=o&~(g&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Bp(a,c))}else c=ye,c=ca(a,a===ze?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Hl(a,c)||(n=!0,Bp(a,c));a=a.next}while(n);rc=!1}}function ev(){jp()}function jp(){Ss=ic=!1;var e=0;Ol!==0&&fv()&&(e=Ol);for(var t=gt(),n=null,a=xs;a!==null;){var o=a.next,c=zp(a,t);c===0?(a.next=null,n===null?xs=o:n.next=o,o===null&&(Va=n)):(n=a,(e!==0||(c&3)!==0)&&(Ss=!0)),a=o}ot!==0&&ot!==5||Gi(e),Ol!==0&&(Ol=0)}function zp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-et(c),y=1<<g,E=o[g];E===-1?((y&n)===0||(y&a)!==0)&&(o[g]=$e(y,t)):E<=t&&(e.expiredLanes|=y),c&=~y}if(t=ze,n=ye,n=ca(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Hl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&oa(a),gn(n)){case 2:case 8:n=Gt;break;case 32:n=cl;break;case 268435456:n=Wa;break;default:n=cl}return a=Up.bind(null,e),n=ul(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&oa(a),e.callbackPriority=2,e.callbackNode=null,2}function Up(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bs()&&e.callbackNode!==n)return null;var a=ye;return a=ca(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(yp(e,a,t),zp(e,gt()),e.callbackNode!=null&&e.callbackNode===n?Up.bind(null,e):null)}function Bp(e,t){if(bs())return null;yp(e,t,!0)}function tv(){hv(function(){(Ae&6)!==0?ul(Mn,ev):jp()})}function sc(){if(Ol===0){var e=Aa;e===0&&(e=jn,jn<<=1,(jn&261888)===0&&(jn=256)),Ol=e}return Ol}function Hp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wr(""+e)}function Vp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function nv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Hp((o[qe]||null).action),g=a.submitter;g&&(t=(t=g[qe]||null)?Hp(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var y=new Mr("action","action",null,a,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ol!==0){var E=g?Vp(o,g):new FormData(o);Cu(n,{pending:!0,data:E,method:o.method,action:c},null,E)}}else typeof c=="function"&&(y.preventDefault(),E=g?Vp(o,g):new FormData(o),Cu(n,{pending:!0,data:E,method:o.method,action:c},c,E))},currentTarget:o}]})}}for(var oc=0;oc<Po.length;oc++){var uc=Po[oc],lv=uc.toLowerCase(),av=uc[0].toUpperCase()+uc.slice(1);_n(lv,"on"+av)}_n(_d,"onAnimationEnd"),_n(yd,"onAnimationIteration"),_n(vd,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(by,"onTransitionRun"),_n(xy,"onTransitionStart"),_n(Sy,"onTransitionCancel"),_n(bd,"onTransitionEnd"),xn("onMouseEnter",["mouseout","mouseover"]),xn("onMouseLeave",["mouseout","mouseover"]),xn("onPointerEnter",["pointerout","pointerover"]),xn("onPointerLeave",["pointerout","pointerover"]),Nt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function Gp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var g=a.length-1;0<=g;g--){var y=a[g],E=y.instance,D=y.currentTarget;if(y=y.listener,E!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=D;try{c(o)}catch(z){Ur(z)}o.currentTarget=null,c=E}else for(g=0;g<a.length;g++){if(y=a[g],E=y.instance,D=y.currentTarget,y=y.listener,E!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=D;try{c(o)}catch(z){Ur(z)}o.currentTarget=null,c=E}}}}function _e(e,t){var n=t[fa];n===void 0&&(n=t[fa]=new Set);var a=e+"__bubble";n.has(a)||(Ip(t,e,2,!1),n.add(a))}function cc(e,t,n){var a=0;t&&(a|=4),Ip(n,e,a,t)}var Es="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[Es]){e[Es]=!0,_t.forEach(function(n){n!=="selectionchange"&&(iv.has(n)||cc(n,!1,e),cc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Es]||(t[Es]=!0,cc("selectionchange",!1,t))}}function Ip(e,t,n,a){switch(_m(t)){case 2:var o=Nv;break;case 8:o=Mv;break;default:o=Rc}n=o.bind(null,t,n,e),o=void 0,!Do||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function dc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var y=a.stateNode.containerInfo;if(y===o)break;if(g===4)for(g=a.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;y!==null;){if(g=Y(y),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){a=c=g;continue e}y=y.parentNode}}a=a.return}Qf(function(){var D=c,z=ko(n),V=[];e:{var L=xd.get(e);if(L!==void 0){var M=Mr,F=e;switch(e){case"keypress":if(Lr(n)===0)break e;case"keydown":case"keyup":M=W_;break;case"focusin":F="focus",M=jo;break;case"focusout":F="blur",M=jo;break;case"beforeblur":case"afterblur":M=jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=V_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=ty;break;case _d:case yd:case vd:M=q_;break;case bd:M=ly;break;case"scroll":case"scrollend":M=B_;break;case"wheel":M=iy;break;case"copy":case"cut":case"paste":M=Y_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Wf;break;case"toggle":case"beforetoggle":M=sy}var se=(t&4)!==0,je=!se&&(e==="scroll"||e==="scrollend"),k=se?L!==null?L+"Capture":null:L;se=[];for(var O=D,w;O!==null;){var H=O;if(w=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||w===null||k===null||(H=ci(O,k),H!=null&&se.push(qi(O,H,w))),je)break;O=O.return}0<se.length&&(L=new M(L,F,null,n,z),V.push({event:L,listeners:se}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",L&&n!==Oo&&(F=n.relatedTarget||n.fromElement)&&(Y(F)||F[Bn]))break e;if((M||L)&&(L=z.window===z?z:(L=z.ownerDocument)?L.defaultView||L.parentWindow:window,M?(F=n.relatedTarget||n.toElement,M=D,F=F?Y(F):null,F!==null&&(je=f(F),se=F.tag,F!==je||se!==5&&se!==27&&se!==6)&&(F=null)):(M=null,F=D),M!==F)){if(se=$f,H="onMouseLeave",k="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=Wf,H="onPointerLeave",k="onPointerEnter",O="pointer"),je=M==null?L:ke(M),w=F==null?L:ke(F),L=new se(H,O+"leave",M,n,z),L.target=je,L.relatedTarget=w,H=null,Y(z)===D&&(se=new se(k,O+"enter",F,n,z),se.target=w,se.relatedTarget=je,H=se),je=H,M&&F)t:{for(se=rv,k=M,O=F,w=0,H=k;H;H=se(H))w++;H=0;for(var ie=O;ie;ie=se(ie))H++;for(;0<w-H;)k=se(k),w--;for(;0<H-w;)O=se(O),H--;for(;w--;){if(k===O||O!==null&&k===O.alternate){se=k;break t}k=se(k),O=se(O)}se=null}else se=null;M!==null&&qp(V,L,M,se,!1),F!==null&&je!==null&&qp(V,je,F,se,!0)}}e:{if(L=D?ke(D):window,M=L.nodeName&&L.nodeName.toLowerCase(),M==="select"||M==="input"&&L.type==="file")var Se=rd;else if(ad(L))if(sd)Se=_y;else{Se=my;var ae=py}else M=L.nodeName,!M||M.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&Co(D.elementType)&&(Se=rd):Se=gy;if(Se&&(Se=Se(e,D))){id(V,Se,n,z);break e}ae&&ae(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&Ro(L,"number",L.value)}switch(ae=D?ke(D):window,e){case"focusin":(ad(ae)||ae.contentEditable==="true")&&(_a=ae,Go=D,yi=null);break;case"focusout":yi=Go=_a=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,md(V,n,z);break;case"selectionchange":if(vy)break;case"keydown":case"keyup":md(V,n,z)}var fe;if(Uo)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ga?nd(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Ff&&n.locale!=="ko"&&(ga||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ga&&(fe=Zf()):(dl=z,Lo="value"in dl?dl.value:dl.textContent,ga=!0)),ae=Ts(D,ve),0<ae.length&&(ve=new Jf(ve,e,null,n,z),V.push({event:ve,listeners:ae}),fe?ve.data=fe:(fe=ld(n),fe!==null&&(ve.data=fe)))),(fe=uy?cy(e,n):fy(e,n))&&(ve=Ts(D,"onBeforeInput"),0<ve.length&&(ae=new Jf("onBeforeInput","beforeinput",null,n,z),V.push({event:ae,listeners:ve}),ae.data=fe)),nv(V,e,D,n,z)}Gp(V,t)})}function qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ts(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ci(e,n),o!=null&&a.unshift(qi(e,o,c)),o=ci(e,t),o!=null&&a.push(qi(e,o,c))),e.tag===3)return a;e=e.return}return[]}function rv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qp(e,t,n,a,o){for(var c=t._reactName,g=[];n!==null&&n!==a;){var y=n,E=y.alternate,D=y.stateNode;if(y=y.tag,E!==null&&E===a)break;y!==5&&y!==26&&y!==27||D===null||(E=D,o?(D=ci(n,c),D!=null&&g.unshift(qi(n,D,E))):o||(D=ci(n,c),D!=null&&g.push(qi(n,D,E)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var sv=/\r\n?/g,ov=/\u0000|\uFFFD/g;function Pp(e){return(typeof e=="string"?e:""+e).replace(sv,`
50
- `).replace(ov,"")}function Yp(e,t){return t=Pp(t),Pp(e)===t}function Me(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ha(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ha(e,""+a);break;case"className":Or(e,"class",a);break;case"tabIndex":Or(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Or(e,n,a);break;case"style":Yf(e,a,c);break;case"data":if(t!=="object"){Or(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 c=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",o.name,o,null),Me(e,t,"formEncType",o.formEncType,o,null),Me(e,t,"formMethod",o.formMethod,o,null),Me(e,t,"formTarget",o.formTarget,o,null)):(Me(e,t,"encType",o.encType,o,null),Me(e,t,"method",o.method,o,null),Me(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Vn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=wr(""+a),e.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Cr(e,"popover",a);break;case"xlinkActuate":Hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Hn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Hn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Hn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Hn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Cr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=z_.get(n)||n,Cr(e,n,a))}}function hc(e,t,n,a,o,c){switch(n){case"style":Yf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ha(e,a):(typeof a=="number"||typeof a=="bigint")&&ha(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[qe]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Cr(e,n,a)}}}function xt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var g=n[c];if(g!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,g,n,null)}}o&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var y=c=g=o=null,E=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var z=n[a];if(z!=null)switch(a){case"name":o=z;break;case"type":g=z;break;case"checked":E=z;break;case"defaultChecked":D=z;break;case"value":c=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:Me(e,t,a,z,n,null)}}Gf(e,c,y,E,D,g,o,!1);return;case"select":_e("invalid",e),a=g=c=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":c=y;break;case"defaultValue":g=y;break;case"multiple":a=y;default:Me(e,t,o,y,n,null)}t=c,n=g,e.multiple=!!a,t!=null?da(e,!!a,t,!1):n!=null&&da(e,!!a,n,!0);return;case"textarea":_e("invalid",e),c=o=a=null;for(g in n)if(n.hasOwnProperty(g)&&(y=n[g],y!=null))switch(g){case"value":a=y;break;case"defaultValue":o=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Me(e,t,g,y,n,null)}qf(e,a,o,c);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(a=n[E],a!=null))switch(E){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,E,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Ii.length;a++)_e(Ii[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,D,a,n,null)}return;default:if(Co(t)){for(z in n)n.hasOwnProperty(z)&&(a=n[z],a!==void 0&&hc(e,t,z,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Me(e,t,y,a,n,null))}function uv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,y=null,E=null,D=null,z=null;for(M in n){var V=n[M];if(n.hasOwnProperty(M)&&V!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":E=V;default:a.hasOwnProperty(M)||Me(e,t,M,null,a,V)}}for(var L in a){var M=a[L];if(V=n[L],a.hasOwnProperty(L)&&(M!=null||V!=null))switch(L){case"type":c=M;break;case"name":o=M;break;case"checked":D=M;break;case"defaultChecked":z=M;break;case"value":g=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==V&&Me(e,t,L,M,a,V)}}Ao(e,g,y,E,D,z,c,o);return;case"select":M=g=y=L=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":M=E;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,E)}for(o in a)if(c=a[o],E=n[o],a.hasOwnProperty(o)&&(c!=null||E!=null))switch(o){case"value":L=c;break;case"defaultValue":y=c;break;case"multiple":g=c;default:c!==E&&Me(e,t,o,c,a,E)}t=y,n=g,a=M,L!=null?da(e,!!n,L,!1):!!a!=!!n&&(t!=null?da(e,!!n,t,!0):da(e,!!n,n?[]:"",!1));return;case"textarea":M=L=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Me(e,t,y,null,a,o)}for(g in a)if(o=a[g],c=n[g],a.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":L=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Me(e,t,g,o,a,c)}If(e,L,M);return;case"option":for(var F in n)if(L=n[F],n.hasOwnProperty(F)&&L!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Me(e,t,F,null,a,L)}for(E in a)if(L=a[E],M=n[E],a.hasOwnProperty(E)&&L!==M&&(L!=null||M!=null))switch(E){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Me(e,t,E,L,a,M)}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 se in n)L=n[se],n.hasOwnProperty(se)&&L!=null&&!a.hasOwnProperty(se)&&Me(e,t,se,null,a,L);for(D in a)if(L=a[D],M=n[D],a.hasOwnProperty(D)&&L!==M&&(L!=null||M!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:Me(e,t,D,L,a,M)}return;default:if(Co(t)){for(var je in n)L=n[je],n.hasOwnProperty(je)&&L!==void 0&&!a.hasOwnProperty(je)&&hc(e,t,je,void 0,a,L);for(z in a)L=a[z],M=n[z],!a.hasOwnProperty(z)||L===M||L===void 0&&M===void 0||hc(e,t,z,L,a,M);return}}for(var k in n)L=n[k],n.hasOwnProperty(k)&&L!=null&&!a.hasOwnProperty(k)&&Me(e,t,k,null,a,L);for(V in a)L=a[V],M=n[V],!a.hasOwnProperty(V)||L===M||L==null&&M==null||Me(e,t,V,L,a,M)}function Xp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,g=o.initiatorType,y=o.duration;if(c&&y&&Xp(g)){for(g=0,y=o.responseEnd,a+=1;a<n.length;a++){var E=n[a],D=E.startTime;if(D>y)break;var z=E.transferSize,V=E.initiatorType;z&&Xp(V)&&(E=E.responseEnd,g+=z*(E<y?1:(y-D)/(E-D)))}if(--a,t+=8*(c+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pc=null,mc=null;function As(e){return e.nodeType===9?e:e.ownerDocument}function Qp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _c=null;function fv(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var Kp=typeof setTimeout=="function"?setTimeout:void 0,dv=typeof clearTimeout=="function"?clearTimeout:void 0,$p=typeof Promise=="function"?Promise:void 0,hv=typeof queueMicrotask=="function"?queueMicrotask:typeof $p<"u"?function(e){return $p.resolve(null).then(e).catch(pv)}:Kp;function pv(e){setTimeout(function(){throw e})}function kl(e){return e==="head"}function Jp(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Pa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Pi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Pi(n);for(var c=n.firstChild;c;){var g=c.nextSibling,y=c.nodeName;c[le]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=g}}else n==="body"&&Pi(e.ownerDocument.body);n=o}while(n);Pa(t)}function Wp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yc(n),R(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function mv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[le])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function gv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Fp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function vc(e){return e.data==="$?"||e.data==="$~"}function bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _v(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var xc=null;function em(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function tm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function nm(e,t,n){switch(t=As(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var fn=new Map,lm=new Set;function Rs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nl=$.d;$.d={f:yv,r:vv,D:bv,C:xv,L:Sv,m:Ev,X:Av,S:Tv,M:Rv};function yv(){var e=nl.f(),t=_s();return e||t}function vv(e){var t=J(e);t!==null&&t.tag===5&&t.type==="form"?bh(t):nl.r(e)}var Ga=typeof document>"u"?null:document;function am(e,t,n){var a=Ga;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),lm.has(o)||(lm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),xt(t,"link",e),he(t),a.head.appendChild(t)))}}function bv(e){nl.D(e),am("dns-prefetch",e,null)}function xv(e,t){nl.C(e,t),am("preconnect",e,t)}function Sv(e,t,n){nl.L(e,t,n);var a=Ga;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=Ia(e);break;case"script":c=qa(e)}fn.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Yi(c))||t==="script"&&a.querySelector(Xi(c))||(t=a.createElement("link"),xt(t,"link",e),he(t),a.head.appendChild(t)))}}function Ev(e,t){nl.m(e,t);var n=Ga;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=qa(e)}if(!fn.has(c)&&(e=b({rel:"modulepreload",href:e},t),fn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xi(c)))return}a=n.createElement("link"),xt(a,"link",e),he(a),n.head.appendChild(a)}}}function Tv(e,t,n){nl.S(e,t,n);var a=Ga;if(a&&e){var o=Xe(a).hoistableStyles,c=Ia(e);t=t||"default";var g=o.get(c);if(!g){var y={loading:0,preload:null};if(g=a.querySelector(Yi(c)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(c))&&Sc(e,n);var E=g=a.createElement("link");he(E),xt(E,"link",e),E._p=new Promise(function(D,z){E.onload=D,E.onerror=z}),E.addEventListener("load",function(){y.loading|=1}),E.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Cs(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:y},o.set(c,g)}}}function Av(e,t){nl.X(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0},t),(t=fn.get(o))&&Ec(e,t),c=n.createElement("script"),he(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Rv(e,t){nl.M(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&Ec(e,t),c=n.createElement("script"),he(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function im(e,t,n,a){var o=(o=ue.current)?Rs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ia(n.href),n=Xe(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ia(n.href);var c=Xe(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(Yi(e)))&&!c._p&&(g.instance=c,g.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),c||Cv(o,e,n,g.state))),t&&a===null)throw Error(s(528,""));return g}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(n),n=Xe(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ia(e){return'href="'+nn(e)+'"'}function Yi(e){return'link[rel="stylesheet"]['+e+"]"}function rm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Cv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),xt(t,"link",n),he(t),e.head.appendChild(t))}function qa(e){return'[src="'+nn(e)+'"]'}function Xi(e){return"script[async]"+e}function sm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,he(a),a;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),he(a),xt(a,"style",o),Cs(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ia(n.href);var c=e.querySelector(Yi(o));if(c)return t.state.loading|=4,t.instance=c,he(c),c;a=rm(n),(o=fn.get(o))&&Sc(a,o),c=(e.ownerDocument||e).createElement("link"),he(c);var g=c;return g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),xt(c,"link",a),t.state.loading|=4,Cs(c,n.precedence,e),t.instance=c;case"script":return c=qa(n.src),(o=e.querySelector(Xi(c)))?(t.instance=o,he(o),o):(a=n,(o=fn.get(c))&&(a=b({},n),Ec(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),he(o),xt(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Cs(a,n.precedence,e));return t.instance}function Cs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,g=0;g<a.length;g++){var y=a[g];if(y.dataset.precedence===t)c=y;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function om(e,t,n){if(Os===null){var a=new Map,o=Os=new Map;o.set(n,a)}else o=Os,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[le]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var y=a.get(g);y?y.push(c):a.set(g,[c])}}return a}function um(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ov(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ia(a.href),c=t.querySelector(Yi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ks.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,he(c);return}c=t.ownerDocument||t,a=rm(a),(o=fn.get(o))&&Sc(a,o),c=c.createElement("link"),he(c);var g=c;g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),xt(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ks.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Tc=0;function wv(e,t){return e.stylesheets&&e.count===0&&Ds(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Tc===0&&(Tc=62500*cv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Tc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ds(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ws=null;function Ds(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ws=new Map,t.forEach(Dv,e),ws=null,ks.call(e))}function Dv(e,t){if(!(t.state.loading&4)){var n=ws.get(e);if(n)var a=n.get(null);else{n=new Map,ws.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}o=t.instance,g=o.getAttribute("data-precedence"),c=n.get(g)||a,c===a&&n.set(null,o),n.set(g,o),this.count++,a=ks.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Qi={$$typeof:q,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Lv(e,t,n,a,o,c,g,y,E){this.tag=1,this.containerInfo=e,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=ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ni(0),this.hiddenUpdates=ni(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function fm(e,t,n,a,o,c,g,y,E,D,z,V){return e=new Lv(e,t,n,g,E,D,z,V,y),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=lu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},su(c),e}function dm(e){return e?(e=ba,e):ba}function hm(e,t,n,a,o,c){o=dm(o),a.context===null?a.context=o:a.pendingContext=o,a=yl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=vl(e,a,t),n!==null&&(Ht(n,e,t),Ai(n,e,t))}function pm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ac(e,t){pm(e,t),(e=e.alternate)&&pm(e,t)}function mm(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&Ht(t,e,67108864),Ac(e,67108864)}}function gm(e){if(e.tag===13||e.tag===31){var t=Kt();t=Lt(t);var n=ql(e,t);n!==null&&Ht(n,e,t),Ac(e,t)}}var Ls=!0;function Nv(e,t,n,a){var o=j.T;j.T=null;var c=$.p;try{$.p=2,Rc(e,t,n,a)}finally{$.p=c,j.T=o}}function Mv(e,t,n,a){var o=j.T;j.T=null;var c=$.p;try{$.p=8,Rc(e,t,n,a)}finally{$.p=c,j.T=o}}function Rc(e,t,n,a){if(Ls){var o=Cc(a);if(o===null)dc(e,t,a,Ns,n),ym(e,a);else if(zv(o,e,t,n,a))a.stopPropagation();else if(ym(e,a),t&4&&-1<jv.indexOf(e)){for(;o!==null;){var c=J(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=It(c.pendingLanes);if(g!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var E=1<<31-et(g);y.entanglements[1]|=E,g&=~E}An(c),(Ae&6)===0&&(ms=gt()+500,Gi(0))}}break;case 31:case 13:y=ql(c,2),y!==null&&Ht(y,c,2),_s(),Ac(c,2)}if(c=Cc(a),c===null&&dc(e,t,a,Ns,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else dc(e,t,a,null,n)}}function Cc(e){return e=ko(e),Oc(e)}var Ns=null;function Oc(e){if(Ns=null,e=Y(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ns=e,null}function _m(e){switch(e){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(Bl()){case Mn:return 2;case Gt:return 8;case cl:case xr:return 32;case Wa:return 268435456;default:return 32}default:return 32}}var kc=!1,wl=null,Dl=null,Ll=null,Zi=new Map,Ki=new Map,Nl=[],jv="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 ym(e,t){switch(e){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(t.pointerId)}}function $i(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=J(t),t!==null&&mm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zv(e,t,n,a,o){switch(t){case"focusin":return wl=$i(wl,e,t,n,a,o),!0;case"dragenter":return Dl=$i(Dl,e,t,n,a,o),!0;case"mouseover":return Ll=$i(Ll,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Zi.set(c,$i(Zi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Ki.set(c,$i(Ki.get(c)||null,e,t,n,a,o)),!0}return!1}function vm(e){var t=Y(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,si(e.priority,function(){gm(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,si(e.priority,function(){gm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Oo=a,n.target.dispatchEvent(a),Oo=null}else return t=J(n),t!==null&&mm(t),e.blockedOn=n,!1;t.shift()}return!0}function bm(e,t,n){Ms(e)&&n.delete(t)}function Uv(){kc=!1,wl!==null&&Ms(wl)&&(wl=null),Dl!==null&&Ms(Dl)&&(Dl=null),Ll!==null&&Ms(Ll)&&(Ll=null),Zi.forEach(bm),Ki.forEach(bm)}function js(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Uv)))}var zs=null;function xm(e){zs!==e&&(zs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){zs===e&&(zs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Oc(a||n)===null)continue;break}var c=J(n);c!==null&&(e.splice(t,3),t-=3,Cu(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Pa(e){function t(E){return js(E,e)}wl!==null&&js(wl,e),Dl!==null&&js(Dl,e),Ll!==null&&js(Ll,e),Zi.forEach(t),Ki.forEach(t);for(var n=0;n<Nl.length;n++){var a=Nl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Nl.length&&(n=Nl[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Nl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],g=o[qe]||null;if(typeof c=="function")g||xm(n);else if(g){var y=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[qe]||null)y=g.formAction;else if(Oc(o)!==null)continue}else y=g.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),xm(n)}}}function Sm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wc(e){this._internalRoot=e}Us.prototype.render=wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Kt();hm(n,a,e,t,null,null)},Us.prototype.unmount=wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hm(e.current,2,null,e,null,null),_s(),t[Bn]=null}};function Us(e){this._internalRoot=e}Us.prototype.unstable_scheduleHydration=function(e){if(e){var t=ri();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nl.length&&t!==0&&t<Nl[n].priority;n++);Nl.splice(n,0,e),n===0&&vm(e)}};var Em=l.version;if(Em!=="19.2.4")throw Error(s(527,Em,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Bv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bs.isDisabled&&Bs.supportsFiber)try{bn=Bs.inject(Bv),ft=Bs}catch{}}return Wi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,a="",o=wh,c=Dh,g=Lh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=fm(e,1,!1,null,null,n,a,null,o,c,g,Sm),e[Bn]=t.current,fc(e),new wc(t)},Wi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var a=!1,o="",c=wh,g=Dh,y=Lh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=fm(e,1,!0,t,n??null,a,o,E,c,g,y,Sm),t.context=dm(null),n=t.current,a=Kt(),a=Lt(a),o=yl(a),o.callback=null,vl(n,o,a),n=a,t.current.lanes=n,fl(t,n),An(t),e[Bn]=t.current,fc(e),new Us(t)},Wi.version="19.2.4",Wi}var Nm;function $v(){if(Nm)return Nc.exports;Nm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Nc.exports=Kv(),Nc.exports}var Jv=$v();const Ag=X.createContext(null);function _f(){return X.useContext(Ag)}function Wc(){return localStorage.getItem("bd-ui-token")}function Wv({children:i}){const[l,r]=X.useState(!0),[s,u]=X.useState(!1),[f,d]=X.useState(Wc),[p,h]=X.useState(null);X.useEffect(()=>{async function b(){try{if(!(await(await fetch("/api/config")).json()).authEnabled){u(!1),r(!1);return}u(!0);const C=Wc();if(C){const P=await(await fetch("/api/auth/me",{headers:{Authorization:`Bearer ${C}`}})).json();if(P.ok&&P.user){h(P.user),d(C),r(!1);return}}localStorage.removeItem("bd-ui-token"),d(null),h(null)}catch{u(!1)}r(!1)}b()},[]);const m=X.useCallback(async(b,S)=>{try{const C=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:b,password:S})})).json();return C.ok?(localStorage.setItem("bd-ui-token",C.token),d(C.token),h(C.user),null):C.error||"Login failed"}catch{return"Network error"}},[]),v=X.useCallback(()=>{localStorage.removeItem("bd-ui-token"),d(null),h(null)},[]);return _.jsx(Ag.Provider,{value:{loading:l,authEnabled:s,token:f,user:p,login:m,logout:v},children:i})}let Fv=0;function Mm(){return`req-${Date.now()}-${++Fv}`}class e0{constructor(){N(this,"ws",null);N(this,"pending",new Map);N(this,"sendQueue",[]);N(this,"pushHandlers",new Set);N(this,"connectionHandlers",new Set);N(this,"activeSubscriptions",new Map);N(this,"reconnectDelay",500);N(this,"url");N(this,"disposed",!1);const l=location.protocol==="https:"?"wss:":"ws:";this.url=`${l}//${location.host}/ws`}connect(){if(this.disposed)return;const l=Wc(),r=l?`${this.url}?token=${encodeURIComponent(l)}`:this.url;this.ws=new WebSocket(r),this.ws.onopen=()=>{var s;this.reconnectDelay=500;for(const u of this.sendQueue)(s=this.ws)==null||s.send(u);this.sendQueue=[];for(const[,u]of this.activeSubscriptions)this.rawSend("subscribe-list",u);for(const u of this.connectionHandlers)u(!0)},this.ws.onclose=()=>{for(const s of this.connectionHandlers)s(!1);this.scheduleReconnect()},this.ws.onmessage=s=>{this.handleMessage(JSON.parse(s.data))}}dispose(){var l;this.disposed=!0,(l=this.ws)==null||l.close(),this.ws=null;for(const[,r]of this.pending)r.reject(new Error("disposed"));this.pending.clear(),this.sendQueue=[]}scheduleReconnect(){if(!this.disposed){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,1e4);for(const[l,r]of this.pending)r.reject(new Error("disconnected")),this.pending.delete(l)}}handleMessage(l){var s;if(l.type==="snapshot"||l.type==="upsert"||l.type==="delete"){const u=l.payload;for(const f of this.pushHandlers)f(u);return}const r=this.pending.get(l.id);r&&(this.pending.delete(l.id),l.ok?r.resolve(l.payload):r.reject(new Error(((s=l.error)==null?void 0:s.message)||"unknown error")))}rawSend(l,r){var d;const u={id:Mm(),type:l,payload:r},f=JSON.stringify(u);((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN?this.ws.send(f):this.sendQueue.push(f)}send(l,r){return new Promise((s,u)=>{var h;const f=Mm();this.pending.set(f,{resolve:s,reject:u});const p=JSON.stringify({id:f,type:l,payload:r});((h=this.ws)==null?void 0:h.readyState)===WebSocket.OPEN?this.ws.send(p):this.sendQueue.push(p)})}onConnection(l){return this.connectionHandlers.add(l),()=>this.connectionHandlers.delete(l)}onPush(l){return this.pushHandlers.add(l),()=>this.pushHandlers.delete(l)}subscribe(l){return this.activeSubscriptions.set(l.id,l),this.send("subscribe-list",l)}unsubscribe(l){return this.activeSubscriptions.delete(l),this.send("unsubscribe-list",{id:l})}updateStatus(l){return this.send("update-status",l)}editText(l){return this.send("edit-text",l)}createIssue(l){return this.send("create-issue",l)}updatePriority(l,r){return this.send("update-priority",{id:l,priority:r})}updateAssignee(l,r){return this.send("update-assignee",{id:l,assignee:r})}addLabel(l,r){return this.send("label-add",{id:l,label:r})}removeLabel(l,r){return this.send("label-remove",{id:l,label:r})}deleteIssue(l){return this.send("delete-issue",{id:l})}getComments(l){return this.send("get-comments",{id:l})}addComment(l,r){return this.send("add-comment",{id:l,text:r})}addDep(l,r){return this.send("dep-add",{a:l,b:r})}removeDep(l,r){return this.send("dep-remove",{a:l,b:r})}listWorkspaces(){return this.send("list-workspaces")}getWorkspace(){return this.send("get-workspace")}setWorkspace(l,r){return this.send("set-workspace",{path:l,database:r})}fetchIssue(l){return new Promise(r=>{const s=`peek-${l}-${Date.now()}`,u=this.onPush(f=>{f.id!==s||f.type!=="snapshot"||(u(),this.unsubscribe(s),r(f.issues[0]??null))});this.subscribe({id:s,type:"issue-detail",params:{id:l}}),setTimeout(()=>{u(),this.unsubscribe(s),r(null)},3e3)})}}const Rg=X.createContext(null);function t0({children:i}){const l=X.useRef(null);return l.current||(l.current=new e0,l.current.connect()),_.jsx(Rg.Provider,{value:l.current,children:i})}function po(){const i=X.useContext(Rg);if(!i)throw new Error("useWs must be inside WsProvider");return i}function n0(){const[i,l]=X.useState(window.location.pathname||"/board");return X.useEffect(()=>{const r=()=>l(window.location.pathname||"/board");return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),i}function jl(i){window.history.pushState(null,"",i),window.dispatchEvent(new PopStateEvent("popstate"))}function jm({href:i,label:l,icon:r,active:s}){return _.jsxs("a",{href:i,onClick:u=>{u.preventDefault(),jl(i)},className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",style:{background:s?"var(--bg-hover)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)",fontWeight:s?500:400},onMouseEnter:u=>{s||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{s||(u.currentTarget.style.background="transparent")},children:[r,l]})}const l0=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("rect",{x:"1",y:"1",width:"5",height:"6",rx:"1"}),_.jsx("rect",{x:"10",y:"1",width:"5",height:"9",rx:"1"}),_.jsx("rect",{x:"1",y:"9",width:"5",height:"6",rx:"1"}),_.jsx("rect",{x:"10",y:"12",width:"5",height:"3",rx:"1"})]}),a0=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[_.jsx("line",{x1:"5",y1:"4",x2:"14",y2:"4"}),_.jsx("line",{x1:"5",y1:"8",x2:"14",y2:"8"}),_.jsx("line",{x1:"5",y1:"12",x2:"14",y2:"12"}),_.jsx("circle",{cx:"2",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),_.jsx("circle",{cx:"2",cy:"8",r:"0.75",fill:"currentColor",stroke:"none"}),_.jsx("circle",{cx:"2",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]});function i0({children:i}){const l=n0();X.useEffect(()=>{const v=b=>{var C,U;const S=(U=(C=b.target).closest)==null?void 0:U.call(C,"a[href]");if(!S)return;const T=S.getAttribute("href");!T||!T.startsWith("/")||T.startsWith("//")||b.metaKey||b.ctrlKey||b.shiftKey||(b.preventDefault(),jl(T))};return document.addEventListener("click",v),()=>document.removeEventListener("click",v)},[]);const r=po(),{user:s,authEnabled:u,logout:f}=_f(),[d,p]=X.useState(""),[h,m]=X.useState("");return X.useEffect(()=>{fetch("/api/config").then(v=>v.json()).then(v=>{m(v.version||"")}).catch(()=>{})},[]),X.useEffect(()=>{r.getWorkspace().then(v=>{if(v!=null&&v.db_path){const b=v.db_path.split("/").filter(Boolean),S=b.lastIndexOf(".beads");if(S>0){p(b[S-1]);return}}v!=null&&v.root_dir&&p(v.root_dir.split("/").pop()||"")}).catch(()=>{})},[r]),_.jsxs("div",{className:"flex h-screen",style:{background:"var(--bg-base)"},children:[_.jsxs("nav",{className:"flex flex-col",style:{width:"200px",borderRight:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[_.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-5",children:[_.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"28px",height:"28px",background:"var(--accent)"},children:_.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"white",children:[_.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),_.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),_.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),_.jsx("span",{className:"font-bold",style:{fontSize:"16px",color:"var(--text-primary)"},children:"Beads"})]}),d&&_.jsx("div",{className:"px-4 pb-3 mb-1",style:{borderBottom:"1px solid var(--border-subtle)"},children:_.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:d})}),_.jsxs("div",{className:"px-2 space-y-0.5",children:[_.jsx(jm,{href:"/board",label:"Board",icon:_.jsx(l0,{}),active:l.startsWith("/board")||l==="/"}),_.jsx(jm,{href:"/list",label:"List",icon:_.jsx(a0,{}),active:l.startsWith("/list")})]}),_.jsx("div",{className:"flex-1"}),h&&_.jsx("div",{className:"px-4 pb-2 text-center",children:_.jsxs("span",{style:{fontSize:"10px",color:"var(--text-tertiary)"},children:["v",h]})}),s&&_.jsxs("div",{className:"mx-3 mb-3 px-3 py-2.5 rounded-md flex items-center gap-2.5",style:{border:"1px solid var(--border-subtle)"},children:[_.jsx("div",{className:"flex items-center justify-center rounded-full text-xs font-bold shrink-0",style:{width:"28px",height:"28px",background:"var(--accent)",color:"white"},children:s.username.charAt(0).toUpperCase()}),_.jsxs("div",{className:"flex-1 min-w-0",children:[_.jsx("div",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:s.username}),s.role&&_.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:s.role})]}),u&&_.jsx("button",{onClick:f,className:"shrink-0 p-1 rounded transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:v=>v.currentTarget.style.color="var(--text-primary)",onMouseLeave:v=>v.currentTarget.style.color="var(--text-tertiary)",title:"Sign out",children:_.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{d:"M6 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"}),_.jsx("path",{d:"M11 11l3-3-3-3"}),_.jsx("line",{x1:"6",y1:"8",x2:"14",y2:"8"})]})})]})]}),_.jsx("main",{className:"flex-1 overflow-auto",children:i(l)})]})}function r0(){const{login:i}=_f(),[l,r]=X.useState(""),[s,u]=X.useState(""),[f,d]=X.useState(null),[p,h]=X.useState(!1);async function m(v){v.preventDefault(),d(null),h(!0);const b=await i(l,s);b&&d(b),h(!1)}return _.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg-base)"},children:_.jsxs("div",{className:"w-full max-w-sm rounded-lg p-8",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-default)"},children:[_.jsxs("div",{className:"flex items-center gap-2.5 mb-8 justify-center",children:[_.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"32px",height:"32px",background:"var(--accent)"},children:_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"white",children:[_.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),_.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),_.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),_.jsx("span",{className:"font-bold text-xl",style:{color:"var(--text-primary)"},children:"Beads"})]}),_.jsxs("form",{onSubmit:m,children:[_.jsxs("div",{className:"mb-4",children:[_.jsx("label",{className:"block text-sm mb-1.5",style:{color:"var(--text-secondary)"},children:"Username"}),_.jsx("input",{type:"text",value:l,onChange:v=>r(v.target.value),className:"w-full px-3 py-2 rounded-md text-sm outline-none",style:{background:"var(--bg-base)",border:"1px solid var(--border-default)",color:"var(--text-primary)"},autoFocus:!0})]}),_.jsxs("div",{className:"mb-6",children:[_.jsx("label",{className:"block text-sm mb-1.5",style:{color:"var(--text-secondary)"},children:"Password"}),_.jsx("input",{type:"password",value:s,onChange:v=>u(v.target.value),className:"w-full px-3 py-2 rounded-md text-sm outline-none",style:{background:"var(--bg-base)",border:"1px solid var(--border-default)",color:"var(--text-primary)"}})]}),f&&_.jsx("div",{className:"mb-4 text-sm px-3 py-2 rounded-md",style:{background:"rgba(220,50,47,0.12)",color:"#dc322f"},children:f}),_.jsx("button",{type:"submit",disabled:p||!l||!s,className:"w-full py-2 rounded-md text-sm font-medium transition-opacity",style:{background:"var(--accent)",color:"white",opacity:p||!l||!s?.5:1},children:p?"Signing in...":"Sign in"})]})]})})}const zm=new WeakMap;function Cg(i){let l=zm.get(i);return l||(l=new Map,zm.set(i,l)),l}function Og(i,l){return l?`${i}:${JSON.stringify(l)}`:i}function s0(i,l,r){const s=Cg(i),u=Og(l,r);let f=s.get(u);if(f)return f.refCount++,f;const d=`sub-${l}-${Date.now()}`;f={refCount:1,subId:d,items:new Map,listeners:new Set,loading:!0,total:0,cleanupPush:null};const p=()=>{for(const h of f.listeners)h()};return f.cleanupPush=i.onPush(h=>{if(h.id===d)if(h.type==="snapshot"){f.items=new Map;for(const m of h.issues)f.items.set(m.id,m);f.loading=!1,typeof h.total=="number"?f.total=h.total:f.total=h.issues.length,p()}else h.type==="upsert"?(f.items.set(h.issue.id,h.issue),p()):h.type==="delete"&&(f.items.delete(h.issue_id),p())}),i.subscribe({id:d,type:l,params:r}),s.set(u,f),f}function o0(i,l,r){var d;const s=Cg(i),u=Og(l,r),f=s.get(u);f&&(f.refCount--,f.refCount<=0&&((d=f.cleanupPush)==null||d.call(f),i.unsubscribe(f.subId),s.delete(u)))}function Qa(i,l){const r=po(),s=l?JSON.stringify(l):"",u=X.useRef(null),f=X.useRef(!1),[d,p]=X.useState([]),[h,m]=X.useState(0);X.useEffect(()=>{const I=s0(r,i,l);return u.current=I,()=>{o0(r,i,l),u.current=null}},[r,i,s]);const[v,b]=X.useState([]),[S,T]=X.useState(!0),[C,U]=X.useState(0);X.useEffect(()=>{const I=u.current;if(!I)return;const q=Array.from(I.items.values());b(q),T(I.loading),U(I.total),!I.loading&&q.length>0&&(f.current=!0,p(q),m(I.total));const K=()=>{const ne=Array.from(I.items.values());b(ne),T(I.loading),U(I.total),!I.loading&&ne.length>0&&(f.current=!0,p(ne),m(I.total))};return I.listeners.add(K),()=>{I.listeners.delete(K)}},[r,i,s]);const P=S&&!f.current,B=S&&f.current;return{issues:B?d:v,loading:P,refreshing:B,total:B?h:C}}const u0=()=>_.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),_.jsx("path",{d:"M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"})]}),c0=()=>_.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:_.jsx("path",{d:"M3 8.5l3.5 3.5 6.5-7"})});function yf({id:i,className:l,style:r}){const[s,u]=X.useState(!1),[f,d]=X.useState(!1),p=X.useCallback(h=>{h.preventDefault(),h.stopPropagation(),navigator.clipboard.writeText(i).then(()=>{u(!0),setTimeout(()=>u(!1),1200)})},[i]);return _.jsxs("span",{className:`font-mono cursor-pointer select-none inline-flex items-center gap-1 ${l||""}`,style:{color:s?"var(--accent)":f?"var(--text-secondary)":"var(--text-tertiary)",transition:"color 150ms ease",...r},onClick:p,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),title:"Click to copy",children:[i,_.jsx("span",{style:{opacity:s||f?1:0,transition:"opacity 150ms ease"},children:s?_.jsx(c0,{}):_.jsx(u0,{})})]})}const Um={0:{bg:"rgba(239,68,68,0.12)",text:"#DC2626"},1:{bg:"rgba(249,115,22,0.12)",text:"#EA580C"},2:{bg:"rgba(59,130,246,0.12)",text:"#2563EB"},3:{bg:"rgba(34,197,94,0.12)",text:"#16A34A"},4:{bg:"rgba(156,163,175,0.1)",text:"#9CA3AF"}};function vf({priority:i}){const l=Um[i]||Um[4];return _.jsxs("span",{className:"inline-flex items-center justify-center font-mono font-bold",style:{fontSize:"11px",lineHeight:1,padding:"3px 8px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:["P",i]})}const f0={epic:{bg:"rgba(124,58,237,0.1)",text:"#7C3AED"},feature:{bg:"rgba(99,102,241,0.1)",text:"#6366F1"},bug:{bg:"rgba(239,68,68,0.1)",text:"#DC2626"},task:{bg:"rgba(22,163,74,0.1)",text:"#16A34A"},chore:{bg:"rgba(120,113,108,0.1)",text:"#78716C"}},d0={bg:"rgba(120,113,108,0.1)",text:"#78716C"};function bf({type:i}){const l=f0[i]||d0;return _.jsx("span",{className:"inline-flex items-center px-2 py-0.5 font-semibold capitalize",style:{fontSize:"11px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:i})}const Bm=["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#FFB74D"];function mo(i){const l=i.trim().split(/\s+/);return l.length>=2?(l[0][0]+l[l.length-1][0]).toUpperCase():i.slice(0,2).toUpperCase()}function go(i){let l=0;for(let r=0;r<i.length;r++)l=i.charCodeAt(r)+((l<<5)-l);return Bm[Math.abs(l)%Bm.length]}const h0={epic:"#7C3AED",feature:"#6366F1",bug:"#EF4444",task:"#16A34A",chore:"#78716C"};function p0({issue:i,onClick:l,dimmed:r=!1}){const s=h0[i.issue_type]??"#78716C";return _.jsx("button",{onClick:l,className:`issue-card group w-full text-left relative cursor-pointer ${r?"issue-card--dimmed":""}`,style:{borderLeft:`3px solid ${s}`},children:_.jsxs("div",{className:"px-3.5 py-3",children:[_.jsxs("div",{className:"flex items-center gap-1 mb-1",children:[i.parent_id&&_.jsxs("span",{className:"text-[10px]",style:{color:"var(--text-tertiary)",opacity:.7},title:i.parent_title||i.parent_id,children:[i.parent_id," ›"]}),_.jsx(yf,{id:i.id,className:"text-xs"})]}),_.jsx("p",{className:"text-sm font-medium line-clamp-2 mb-2.5",style:{color:"var(--text-primary)"},children:i.title}),i.blocked_by&&i.blocked_by.length>0&&_.jsxs("div",{className:"flex items-center gap-1 mb-2 flex-wrap",children:[_.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",style:{color:"var(--status-blocked)",flexShrink:0},children:[_.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("line",{x1:"4",y1:"8",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"1.5"})]}),i.blocked_by.map(u=>_.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded",style:{background:"rgba(220,50,47,0.08)",color:"var(--status-blocked)"},title:u.title,children:u.id},u.id))]}),_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx(bf,{type:i.issue_type}),_.jsx(vf,{priority:i.priority}),i.total_children!=null&&i.total_children>0&&_.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded inline-flex items-center gap-1",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},title:`${i.closed_children??0}/${i.total_children} child issues closed`,children:[_.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",children:[_.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M5 8.5L7 10.5L11 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),i.closed_children??0,"/",i.total_children]}),i.comment_count!=null&&i.comment_count>0&&_.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded inline-flex items-center gap-1",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},title:`${i.comment_count} comment${i.comment_count===1?"":"s"}`,children:[_.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",children:_.jsx("path",{d:"M2.5 4a1.5 1.5 0 0 1 1.5-1.5h8A1.5 1.5 0 0 1 13.5 4v5a1.5 1.5 0 0 1-1.5 1.5H6.5L4 13v-2.5h-.5A1.5 1.5 0 0 1 2 9V4Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),i.comment_count]}),_.jsx("div",{className:"flex-1"}),i.assignee&&_.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:go(i.assignee),color:"var(--text-inverse)"},title:i.assignee,children:mo(i.assignee)})]})]})})}const Hm=20,m0={open:"var(--status-open)",in_progress:"var(--status-in-progress)",blocked:"var(--status-blocked)",closed:"var(--status-closed)"};function Hs({title:i,subscriptionType:l,statusKey:r,onCardClick:s,isClosed:u=!1}){const[f,d]=X.useState(Hm),p=X.useMemo(()=>({limit:f,offset:0}),[f]),{issues:h,loading:m,total:v}=Qa(l,p),b=X.useRef(null),[S,T]=X.useState(!1),C=v>h.length,U=v-h.length,P=m0[r]??"var(--text-tertiary)";return X.useEffect(()=>{const B=b.current;if(!B)return;const I=()=>T(B.scrollHeight>B.clientHeight);I();const q=new ResizeObserver(I);return q.observe(B),()=>q.disconnect()},[h.length]),_.jsxs("div",{className:"flex-1 min-w-[280px] max-w-[360px] flex flex-col self-start",children:[_.jsxs("div",{className:"flex items-center gap-2.5 px-1 pb-3 mb-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[_.jsx("div",{className:"rounded-full shrink-0",style:{width:"10px",height:"10px",backgroundColor:P,boxShadow:`0 0 0 3px ${P}33`}}),_.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:i}),_.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full ml-auto",style:{backgroundColor:"rgba(0,0,0,0.05)",color:"var(--text-tertiary)",fontSize:"11px"},children:m?"…":u&&v>h.length?`${h.length} / ${v}`:v})]}),_.jsxs("div",{ref:b,className:"space-y-2 overflow-y-auto flex-1 pr-1 relative",style:{maxHeight:"calc(100vh - 160px)",maskImage:S?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0,WebkitMaskImage:S?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0},children:[m&&h.length===0&&_.jsx("div",{className:"py-8 text-center",children:_.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"Loading…"})}),!m&&h.length===0&&_.jsx("div",{className:"py-8 text-center",style:{border:"2px dashed var(--border-default)",borderRadius:"var(--radius-md)",minHeight:"100px",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"No items"})}),h.map(B=>_.jsx(p0,{issue:B,onClick:()=>s(B.id),dimmed:u},B.id)),C&&_.jsxs("button",{onClick:()=>d(B=>B+Hm),className:"w-full text-xs py-2",style:{color:"var(--text-secondary)",transition:"color 120ms ease"},onMouseEnter:B=>{B.currentTarget.style.color="var(--accent)"},onMouseLeave:B=>{B.currentTarget.style.color="var(--text-secondary)"},children:["Show ",U," more…"]})]})]})}function g0(){const{total:i}=Qa("all-issues",{limit:1,offset:0}),{total:l}=Qa("epics",{limit:1,offset:0}),r=s=>{jl(`/detail/${s}`)};return _.jsxs("div",{className:"p-6",style:{background:"var(--bg-base)"},children:[_.jsxs("div",{className:"mb-6",children:[_.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Board"}),_.jsxs("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:[i," issues across ",l," epics"]})]}),_.jsxs("div",{className:"flex gap-4 overflow-x-auto items-start",children:[_.jsx(Hs,{title:"Open",subscriptionType:"ready-issues",statusKey:"open",onCardClick:r}),_.jsx(Hs,{title:"In Progress",subscriptionType:"in-progress-issues",statusKey:"in_progress",onCardClick:r}),_.jsx(Hs,{title:"Blocked",subscriptionType:"blocked-issues",statusKey:"blocked",onCardClick:r}),_.jsx(Hs,{title:"Closed",subscriptionType:"closed-issues",statusKey:"closed",onCardClick:r,isClosed:!0})]})]})}const _0={open:{dot:"var(--status-open)",bg:"rgba(59,130,246,0.08)",text:"#2563EB",border:"rgba(59,130,246,0.2)",label:"Open"},in_progress:{dot:"var(--status-in-progress)",bg:"rgba(245,158,11,0.08)",text:"#D97706",border:"rgba(245,158,11,0.2)",label:"In Progress"},blocked:{dot:"var(--status-blocked)",bg:"rgba(239,68,68,0.08)",text:"#DC2626",border:"rgba(239,68,68,0.2)",label:"Blocked"},closed:{dot:"var(--status-closed)",bg:"rgba(34,197,94,0.08)",text:"#16A34A",border:"rgba(34,197,94,0.2)",label:"Closed"}},y0={dot:"#9CA3AF",bg:"rgba(156,163,175,0.08)",text:"#6B7280",border:"rgba(156,163,175,0.2)",label:""};function fr({status:i}){const l=_0[i]||y0;return _.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 font-semibold",style:{fontSize:"11px",borderRadius:"20px",backgroundColor:l.bg,color:l.text,border:`1px solid ${l.border}`},children:[_.jsx("span",{className:"rounded-full shrink-0",style:{width:"6px",height:"6px",backgroundColor:l.dot}}),l.label||i]})}const Vs=20,v0=()=>_.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[_.jsx("circle",{cx:"7",cy:"7",r:"5"}),_.jsx("line",{x1:"11",y1:"11",x2:"14",y2:"14"})]});function b0(){return _.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[_.jsx("div",{className:"w-36 h-3 rounded skeleton-shimmer"}),_.jsx("div",{className:"w-20 h-5 rounded-full skeleton-shimmer"}),_.jsx("div",{className:"w-8 h-5 rounded skeleton-shimmer"}),_.jsx("div",{className:"flex-1 h-3 rounded skeleton-shimmer"}),_.jsx("div",{className:"w-14 h-5 rounded skeleton-shimmer"}),_.jsx("div",{className:"w-24 h-5 rounded skeleton-shimmer"}),_.jsx("div",{className:"w-16 h-3 rounded skeleton-shimmer"})]})}function x0(){return _.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{animation:"spin 0.8s linear infinite"},children:[_.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"var(--border-default)",strokeWidth:"2"}),_.jsx("path",{d:"M10 2a8 8 0 0 1 8 8",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round"})]})}function S0({search:i,setSearch:l,statusFilter:r,setStatusFilter:s,typeFilter:u,setTypeFilter:f}){return _.jsxs("div",{className:"flex items-center gap-3 mb-4 px-4 py-3 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-sm)"},children:[_.jsxs("div",{className:"relative flex-1 max-w-xs",children:[_.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--text-tertiary)"},children:_.jsx(v0,{})}),_.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),placeholder:"Search issues...",className:"w-full pl-9 pr-3 py-1.5 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"}})]}),_.jsxs("select",{value:r,onChange:d=>s(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[_.jsx("option",{value:"all",children:"All statuses"}),_.jsx("option",{value:"open",children:"Open"}),_.jsx("option",{value:"in_progress",children:"In Progress"}),_.jsx("option",{value:"blocked",children:"Blocked"}),_.jsx("option",{value:"closed",children:"Closed"})]}),_.jsxs("select",{value:u,onChange:d=>f(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[_.jsx("option",{value:"all",children:"All types"}),_.jsx("option",{value:"epic",children:"Epic"}),_.jsx("option",{value:"feature",children:"Feature"}),_.jsx("option",{value:"task",children:"Task"}),_.jsx("option",{value:"bug",children:"Bug"}),_.jsx("option",{value:"chore",children:"Chore"})]})]})}function E0({page:i,totalPages:l,total:r,pageSize:s,onPageChange:u}){const f=i*s+1,d=Math.min((i+1)*s,r);return _.jsxs("div",{className:"flex items-center justify-between px-1 py-2 text-xs",style:{color:"var(--text-tertiary)"},children:[_.jsx("span",{children:r>0?`${f}–${d} of ${r}`:"0 issues"}),_.jsxs("div",{className:"flex items-center gap-1",children:[_.jsx("button",{disabled:i===0,onClick:()=>u(0),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"««"}),_.jsx("button",{disabled:i===0,onClick:()=>u(i-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"«"}),_.jsxs("span",{className:"px-2",children:[i+1," / ",l||1]}),_.jsx("button",{disabled:i>=l-1,onClick:()=>u(i+1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»"}),_.jsx("button",{disabled:i>=l-1,onClick:()=>u(l-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»»"})]})]})}function T0({issue:i,selected:l,onClick:r}){const s=new Date(i.updated_at).toLocaleDateString();return _.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",style:{borderBottom:"1px solid var(--border-subtle)",background:l?"var(--bg-hover)":"transparent"},onMouseEnter:u=>{l||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{l||(u.currentTarget.style.background="transparent")},children:[_.jsxs("span",{className:"w-36 shrink-0 text-left",children:[i.parent_id&&_.jsxs("span",{className:"text-[10px] mr-1",style:{color:"var(--text-tertiary)",opacity:.7},title:i.parent_title||i.parent_id,children:[i.parent_id," ›"]}),_.jsx(yf,{id:i.id,className:"text-xs"})]}),_.jsx("span",{className:"w-28 shrink-0",children:_.jsx(fr,{status:i.status})}),_.jsx("span",{className:"w-12 shrink-0",children:_.jsx(vf,{priority:i.priority})}),_.jsxs("span",{className:"flex-1 text-left truncate",style:{color:"var(--text-primary)"},children:[i.title,i.total_children!=null&&i.total_children>0&&_.jsxs("span",{className:"ml-2 text-[10px] px-1.5 py-0.5 rounded inline-flex items-center gap-1 align-middle",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},title:`${i.closed_children??0}/${i.total_children} child issues closed`,children:[_.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",children:[_.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M5 8.5L7 10.5L11 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),i.closed_children??0,"/",i.total_children]}),i.comment_count!=null&&i.comment_count>0&&_.jsxs("span",{className:"ml-1.5 text-[10px] px-1.5 py-0.5 rounded inline-flex items-center gap-1 align-middle",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},title:`${i.comment_count} comment${i.comment_count===1?"":"s"}`,children:[_.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",children:_.jsx("path",{d:"M2.5 4a1.5 1.5 0 0 1 1.5-1.5h8A1.5 1.5 0 0 1 13.5 4v5a1.5 1.5 0 0 1-1.5 1.5H6.5L4 13v-2.5h-.5A1.5 1.5 0 0 1 2 9V4Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),i.comment_count]}),i.blocked_by&&i.blocked_by.length>0&&_.jsx(_.Fragment,{children:i.blocked_by.map(u=>_.jsxs("span",{className:"ml-1.5 text-[10px] px-1 py-0 rounded",style:{background:"rgba(220,50,47,0.08)",color:"var(--status-blocked)"},title:`Blocked by: ${u.title}`,children:["⊘ ",u.id]},u.id))})]}),_.jsx("span",{className:"w-16 shrink-0",children:_.jsx(bf,{type:i.issue_type})}),_.jsx("span",{className:"w-28 shrink-0 flex items-center gap-1.5 justify-end",children:i.assignee?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"flex items-center justify-center rounded-full text-[9px] font-bold shrink-0",style:{width:"20px",height:"20px",backgroundColor:go(i.assignee),color:"var(--text-inverse)"},children:mo(i.assignee)}),_.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-secondary)"},children:i.assignee})]}):_.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"—"})}),_.jsx("span",{className:"text-xs w-20 text-right shrink-0",style:{color:"var(--text-tertiary)"},children:s})]})}function A0(){const[i,l]=X.useState(""),[r,s]=X.useState(""),[u,f]=X.useState("all"),[d,p]=X.useState("all"),[h,m]=X.useState(0),[v,b]=X.useState(-1),S=X.useRef(null);X.useEffect(()=>{const q=setTimeout(()=>s(i),300);return()=>clearTimeout(q)},[i]);const T=X.useMemo(()=>{const q={limit:Vs,offset:h*Vs};return r.trim()&&(q.q=r.trim()),u!=="all"&&(q.status=u),d!=="all"&&(q.type=d),q},[r,u,d,h]),{issues:C,loading:U,refreshing:P,total:B}=Qa("search-issues",T),I=Math.ceil(B/Vs);return X.useEffect(()=>{m(0),b(-1)},[u,d,i]),X.useEffect(()=>{b(-1)},[h]),X.useEffect(()=>{const q=K=>{K.target instanceof HTMLInputElement||K.target instanceof HTMLTextAreaElement||K.target instanceof HTMLSelectElement||(K.key==="j"&&b(ne=>Math.min(ne+1,C.length-1)),K.key==="k"&&b(ne=>Math.max(ne-1,-1)),K.key==="Enter"&&C[v]&&jl(`/detail/${C[v].id}`))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[C,v]),_.jsxs("div",{className:"p-6 h-full flex flex-col",style:{background:"var(--bg-base)"},children:[_.jsxs("div",{className:"mb-4",children:[_.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Issues"}),_.jsx("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:U?" ":`${B} issues`})]}),_.jsx(S0,{search:i,setSearch:l,statusFilter:u,setStatusFilter:f,typeFilter:d,setTypeFilter:p}),_.jsx("div",{className:"rounded-t-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderBottom:"none",boxShadow:"var(--shadow-card)"},children:_.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)",borderBottom:"1px solid var(--border-subtle)",fontSize:"11px"},children:[_.jsx("span",{className:"w-36 shrink-0",children:"ID"}),_.jsx("span",{className:"w-28 shrink-0",children:"Status"}),_.jsx("span",{className:"w-12 shrink-0",children:"Priority"}),_.jsx("span",{className:"flex-1",children:"Title"}),_.jsx("span",{className:"w-16 shrink-0",children:"Type"}),_.jsx("span",{className:"w-28 shrink-0 text-right",children:"Assignee"}),_.jsx("span",{className:"w-20 shrink-0 text-right",children:"Date"})]})}),_.jsxs("div",{ref:S,className:"flex-1 overflow-y-auto rounded-b-lg relative",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderTop:"none",boxShadow:"var(--shadow-card)"},children:[U&&_.jsx(_.Fragment,{children:Array.from({length:8}).map((q,K)=>_.jsx(b0,{},K))}),P&&_.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(253,251,247,0.6)",backdropFilter:"blur(1px)"},children:_.jsx(x0,{})}),!U&&(C.length===0?_.jsx("p",{className:"text-sm p-8 text-center",style:{color:"var(--text-tertiary)"},children:"No issues match your filters"}):C.map((q,K)=>_.jsx(T0,{issue:q,selected:K===v,onClick:()=>{b(K),jl(`/detail/${q.id}`)}},q.id)))]}),!U&&I>1&&_.jsx(E0,{page:h,totalPages:I,total:B,pageSize:Vs,onPageChange:m})]})}function kg(){const i=po();return{updateStatus:X.useCallback((l,r)=>i.updateStatus({id:l,status:r}),[i]),editText:X.useCallback(l=>i.editText(l),[i]),createIssue:X.useCallback(l=>i.createIssue(l),[i]),updatePriority:X.useCallback((l,r)=>i.updatePriority(l,r),[i]),updateAssignee:X.useCallback((l,r)=>i.updateAssignee(l,r),[i]),addLabel:X.useCallback((l,r)=>i.addLabel(l,r),[i]),removeLabel:X.useCallback((l,r)=>i.removeLabel(l,r),[i]),deleteIssue:X.useCallback(l=>i.deleteIssue(l),[i]),addComment:X.useCallback((l,r)=>i.addComment(l,r),[i]),addDep:X.useCallback((l,r)=>i.addDep(l,r),[i]),removeDep:X.useCallback((l,r)=>i.removeDep(l,r),[i])}}function xf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ia=xf();function wg(i){ia=i}var ur={exec:()=>null};function we(i,l=""){let r=typeof i=="string"?i:i.source;const s={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Ct.caret,"$1"),r=r.replace(u,d),s},getRegex:()=>new RegExp(r,l)};return s}var Ct={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},R0=/^(?:[ \t]*(?:\n|$))+/,C0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,k0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sf=/(?:[*+-]|\d{1,9}[.)])/,Dg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lg=we(Dg).replace(/bull/g,Sf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),w0=we(Dg).replace(/bull/g,Sf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ef=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,D0=/^[^\n]+/,Tf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,L0=we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),N0=we(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Sf).getRegex(),_o="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Af=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,M0=we("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Af).replace("tag",_o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ng=we(Ef).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),j0=we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ng).getRegex(),Rf={blockquote:j0,code:C0,def:L0,fences:O0,heading:k0,hr:gr,html:M0,lheading:Lg,list:N0,newline:R0,paragraph:Ng,table:ur,text:D0},Vm=we("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),z0={...Rf,lheading:w0,table:Vm,paragraph:we(Ef).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex()},U0={...Rf,html:we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Af).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ur,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:we(Ef).replace("hr",gr).replace("heading",` *#{1,6} *[^
51
- ]`).replace("lheading",Lg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},B0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,H0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Mg=/^( {2,}|\\)\n(?!\s*$)/,V0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yo=/[\p{P}\p{S}]/u,Cf=/[\s\p{P}\p{S}]/u,jg=/[^\s\p{P}\p{S}]/u,G0=we(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cf).getRegex(),zg=/(?!~)[\p{P}\p{S}]/u,I0=/(?!~)[\s\p{P}\p{S}]/u,q0=/(?:[^\s\p{P}\p{S}]|~)/u,P0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Ug=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Y0=we(Ug,"u").replace(/punct/g,yo).getRegex(),X0=we(Ug,"u").replace(/punct/g,zg).getRegex(),Bg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Q0=we(Bg,"gu").replace(/notPunctSpace/g,jg).replace(/punctSpace/g,Cf).replace(/punct/g,yo).getRegex(),Z0=we(Bg,"gu").replace(/notPunctSpace/g,q0).replace(/punctSpace/g,I0).replace(/punct/g,zg).getRegex(),K0=we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jg).replace(/punctSpace/g,Cf).replace(/punct/g,yo).getRegex(),$0=we(/\\(punct)/,"gu").replace(/punct/g,yo).getRegex(),J0=we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W0=we(Af).replace("(?:-->|$)","-->").getRegex(),F0=we("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,eb=we(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Hg=we(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",Tf).getRegex(),Vg=we(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tf).getRegex(),tb=we("reflink|nolink(?!\\()","g").replace("reflink",Hg).replace("nolink",Vg).getRegex(),Of={_backpedal:ur,anyPunctuation:$0,autolink:J0,blockSkip:P0,br:Mg,code:H0,del:ur,emStrongLDelim:Y0,emStrongRDelimAst:Q0,emStrongRDelimUnd:K0,escape:B0,link:eb,nolink:Vg,punctuation:G0,reflink:Hg,reflinkSearch:tb,tag:F0,text:V0,url:ur},nb={...Of,link:we(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},Fc={...Of,emStrongRDelimAst:Z0,emStrongLDelim:X0,url:we(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},lb={...Fc,br:we(Mg).replace("{2,}","*").getRegex(),text:we(Fc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Gs={normal:Rf,gfm:z0,pedantic:U0},Fi={normal:Of,gfm:Fc,breaks:lb,pedantic:nb},ab={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gm=i=>ab[i];function Cn(i,l){if(l){if(Ct.escapeTest.test(i))return i.replace(Ct.escapeReplace,Gm)}else if(Ct.escapeTestNoEncode.test(i))return i.replace(Ct.escapeReplaceNoEncode,Gm);return i}function Im(i){try{i=encodeURI(i).replace(Ct.percentDecode,"%")}catch{return null}return i}function qm(i,l){var f;const r=i.replace(Ct.findPipe,(d,p,h)=>{let m=!1,v=p;for(;--v>=0&&h[v]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Ct.splitPipe);let u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),l)if(s.length>l)s.splice(l);else for(;s.length<l;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Ct.slashPipe,"|");return s}function er(i,l,r){const s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===l;)u++;return i.slice(0,s-u)}function ib(i,l){if(i.indexOf(l[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===l[0])r++;else if(i[s]===l[1]&&(r--,r<0))return s;return r>0?-2:-1}function Pm(i,l,r,s,u){const f=l.href,d=l.title||null,p=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;const h={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:d,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,h}function rb(i,l,r){const s=i.match(r.other.indentCodeCompensation);if(s===null)return l;const u=s[1];return l.split(`
52
- `).map(f=>{const d=f.match(r.other.beginningSpace);if(d===null)return f;const[p]=d;return p.length>=u.length?f.slice(u.length):f}).join(`
53
- `)}var to=class{constructor(i){N(this,"options");N(this,"rules");N(this,"lexer");this.options=i||ia}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const r=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?r:er(r,`
54
- `)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const r=l[0],s=rb(r,l[3]||"",this.rules);return{type:"code",raw:r,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:s}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let r=l[2].trim();if(this.rules.other.endingHash.test(r)){const s=er(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:er(l[0],`
55
- `)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let r=er(l[0],`
56
- `).split(`
57
- `),s="",u="";const f=[];for(;r.length>0;){let d=!1;const p=[];let h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))p.push(r[h]),d=!0;else if(!d)p.push(r[h]);else break;r=r.slice(h);const m=p.join(`
58
- `),v=m.replace(this.rules.other.blockquoteSetextReplace,`
59
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
60
- ${m}`:m,u=u?`${u}
61
- ${v}`:v;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,f,!0),this.lexer.state.top=b,r.length===0)break;const S=f.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){const T=S,C=T.raw+`
62
- `+r.join(`
63
- `),U=this.blockquote(C);f[f.length-1]=U,s=s.substring(0,s.length-T.raw.length)+U.raw,u=u.substring(0,u.length-T.text.length)+U.text;break}else if((S==null?void 0:S.type)==="list"){const T=S,C=T.raw+`
64
- `+r.join(`
65
- `),U=this.list(C);f[f.length-1]=U,s=s.substring(0,s.length-S.raw.length)+U.raw,u=u.substring(0,u.length-T.raw.length)+U.raw,r=C.substring(f.at(-1).raw.length).split(`
66
- `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let l=this.rules.block.list.exec(i);if(l){let r=l[1].trim();const s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let d=!1;for(;i;){let h=!1,m="",v="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;m=l[0],i=i.substring(m.length);let b=l[2].split(`
67
- `,1)[0].replace(this.rules.other.listReplaceTabs,B=>" ".repeat(3*B.length)),S=i.split(`
68
- `,1)[0],T=!b.trim(),C=0;if(this.options.pedantic?(C=2,v=b.trimStart()):T?C=l[1].length+1:(C=l[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,v=b.slice(C),C+=l[1].length),T&&this.rules.other.blankLine.test(S)&&(m+=S+`
69
- `,i=i.substring(S.length+1),h=!0),!h){const B=this.rules.other.nextBulletRegex(C),I=this.rules.other.hrRegex(C),q=this.rules.other.fencesBeginRegex(C),K=this.rules.other.headingBeginRegex(C),ne=this.rules.other.htmlBeginRegex(C);for(;i;){const me=i.split(`
70
- `,1)[0];let te;if(S=me,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),te=S):te=S.replace(this.rules.other.tabCharGlobal," "),q.test(S)||K.test(S)||ne.test(S)||B.test(S)||I.test(S))break;if(te.search(this.rules.other.nonSpaceChar)>=C||!S.trim())v+=`
71
- `+te.slice(C);else{if(T||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||q.test(b)||K.test(b)||I.test(b))break;v+=`
72
- `+S}!T&&!S.trim()&&(T=!0),m+=me+`
73
- `,i=i.substring(me.length+1),b=te.slice(C)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(d=!0));let U=null,P;this.options.gfm&&(U=this.rules.other.listIsTask.exec(v),U&&(P=U[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),u.items.push({type:"list_item",raw:m,task:!!U,checked:P,loose:!1,text:v,tokens:[]}),u.raw+=m}const p=u.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let h=0;h<u.items.length;h++)if(this.lexer.state.top=!1,u.items[h].tokens=this.lexer.blockTokens(u.items[h].text,[]),!u.loose){const m=u.items[h].tokens.filter(b=>b.type==="space"),v=m.length>0&&m.some(b=>this.rules.other.anyLine.test(b.raw));u.loose=v}if(u.loose)for(let h=0;h<u.items.length;h++)u.items[h].loose=!0;return u}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const r=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:r,raw:l[0],href:s,title:u}}}table(i){var d;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const r=qm(l[1]),s=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(d=l[3])!=null&&d.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
74
- `):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const p of s)this.rules.other.tableAlignRight.test(p)?f.align.push("right"):this.rules.other.tableAlignCenter.test(p)?f.align.push("center"):this.rules.other.tableAlignLeft.test(p)?f.align.push("left"):f.align.push(null);for(let p=0;p<r.length;p++)f.header.push({text:r[p],tokens:this.lexer.inline(r[p]),header:!0,align:f.align[p]});for(const p of u)f.rows.push(qm(p,f.header.length).map((h,m)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:f.align[m]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const r=l[1].charAt(l[1].length-1)===`
75
- `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=er(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=ib(l[2],"()");if(f===-2)return;if(f>-1){const p=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,p).trim(),l[3]=""}}let s=l[2],u="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=l[3]?l[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Pm(l,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=l[s.toLowerCase()];if(!u){const f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Pm(r,u,r[0],this.lexer,this.rules)}}emStrong(i,l,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const f=[...s[0]].length-1;let d,p,h=f,m=0;const v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,l=l.slice(-1*i.length+f);(s=v.exec(l))!=null;){if(d=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!d)continue;if(p=[...d].length,s[3]||s[4]){h+=p;continue}else if((s[5]||s[6])&&f%3&&!((f+p)%3)){m+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+m);const b=[...s[0]][0].length,S=i.slice(0,f+s.index+b+p);if(Math.min(f,p)%2){const C=S.slice(1,-1);return{type:"em",raw:S,text:C,tokens:this.lexer.inlineTokens(C)}}const T=S.slice(2,-2);return{type:"strong",raw:S,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let r=l[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:l[0],text:r}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let r,s;return l[2]==="@"?(r=l[1],s="mailto:"+r):(r=l[1],s=r),{type:"link",raw:l[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let l;if(l=this.rules.inline.url.exec(i)){let s,u;if(l[2]==="@")s=l[0],u="mailto:"+s;else{let f;do f=l[0],l[0]=((r=this.rules.inline._backpedal.exec(l[0]))==null?void 0:r[0])??"";while(f!==l[0]);s=l[0],l[1]==="www."?u="http://"+l[0]:u=l[0]}return{type:"link",raw:l[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const r=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:r}}}},al=class ef{constructor(l){N(this,"tokens");N(this,"options");N(this,"state");N(this,"tokenizer");N(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||ia,this.options.tokenizer=this.options.tokenizer||new to,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Ct,block:Gs.normal,inline:Fi.normal};this.options.pedantic?(r.block=Gs.pedantic,r.inline=Fi.pedantic):this.options.gfm&&(r.block=Gs.gfm,this.options.breaks?r.inline=Fi.breaks:r.inline=Fi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Gs,inline:Fi}}static lex(l,r){return new ef(r).lex(l)}static lexInline(l,r){return new ef(r).inlineTokens(l)}lex(l){l=l.replace(Ct.carriageReturn,`
76
- `),this.blockTokens(l,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,r=[],s=!1){var u,f,d;for(this.options.pedantic&&(l=l.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));l;){let p;if((f=(u=this.options.extensions)==null?void 0:u.block)!=null&&f.some(m=>(p=m.call({lexer:this},l,r))?(l=l.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.space(l)){l=l.substring(p.raw.length);const m=r.at(-1);p.raw.length===1&&m!==void 0?m.raw+=`
77
- `:r.push(p);continue}if(p=this.tokenizer.code(l)){l=l.substring(p.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
78
- `+p.raw,m.text+=`
79
- `+p.text,this.inlineQueue.at(-1).src=m.text):r.push(p);continue}if(p=this.tokenizer.fences(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.heading(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.hr(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.blockquote(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.list(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.html(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.def(l)){l=l.substring(p.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
80
- `+p.raw,m.text+=`
81
- `+p.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[p.tag]||(this.tokens.links[p.tag]={href:p.href,title:p.title});continue}if(p=this.tokenizer.table(l)){l=l.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.lheading(l)){l=l.substring(p.raw.length),r.push(p);continue}let h=l;if((d=this.options.extensions)!=null&&d.startBlock){let m=1/0;const v=l.slice(1);let b;this.options.extensions.startBlock.forEach(S=>{b=S.call({lexer:this},v),typeof b=="number"&&b>=0&&(m=Math.min(m,b))}),m<1/0&&m>=0&&(h=l.substring(0,m+1))}if(this.state.top&&(p=this.tokenizer.paragraph(h))){const m=r.at(-1);s&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=`
82
- `+p.raw,m.text+=`
83
- `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(p),s=h.length!==l.length,l=l.substring(p.raw.length);continue}if(p=this.tokenizer.text(l)){l=l.substring(p.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=`
84
- `+p.raw,m.text+=`
85
- `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(p);continue}if(l){const m="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(l,r=[]){return this.inlineQueue.push({src:l,tokens:r}),r}inlineTokens(l,r=[]){var p,h,m;let s=l,u=null;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)v.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,u.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(u=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;l;){f||(d=""),f=!1;let v;if((h=(p=this.options.extensions)==null?void 0:p.inline)!=null&&h.some(S=>(v=S.call({lexer:this},l,r))?(l=l.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(v.raw.length);const S=r.at(-1);v.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(l,s,d)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(l)){l=l.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(l)){l=l.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(l))){l=l.substring(v.raw.length),r.push(v);continue}let b=l;if((m=this.options.extensions)!=null&&m.startInline){let S=1/0;const T=l.slice(1);let C;this.options.extensions.startInline.forEach(U=>{C=U.call({lexer:this},T),typeof C=="number"&&C>=0&&(S=Math.min(S,C))}),S<1/0&&S>=0&&(b=l.substring(0,S+1))}if(v=this.tokenizer.inlineText(b)){l=l.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(d=v.raw.slice(-1)),f=!0;const S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):r.push(v);continue}if(l){const S="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},no=class{constructor(i){N(this,"options");N(this,"parser");this.options=i||ia}space(i){return""}code({text:i,lang:l,escaped:r}){var f;const s=(f=(l||"").match(Ct.notSpaceStart))==null?void 0:f[0],u=i.replace(Ct.endingNewline,"")+`
86
- `;return s?'<pre><code class="language-'+Cn(s)+'">'+(r?u:Cn(u,!0))+`</code></pre>
87
- `:"<pre><code>"+(r?u:Cn(u,!0))+`</code></pre>
88
- `}blockquote({tokens:i}){return`<blockquote>
89
- ${this.parser.parse(i)}</blockquote>
90
- `}html({text:i}){return i}heading({tokens:i,depth:l}){return`<h${l}>${this.parser.parseInline(i)}</h${l}>
91
- `}hr(i){return`<hr>
92
- `}list(i){const l=i.ordered,r=i.start;let s="";for(let d=0;d<i.items.length;d++){const p=i.items[d];s+=this.listitem(p)}const u=l?"ol":"ul",f=l&&r!==1?' start="'+r+'"':"";return"<"+u+f+`>
93
- `+s+"</"+u+`>
94
- `}listitem(i){var r;let l="";if(i.task){const s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+Cn(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):l+=s+" "}return l+=this.parser.parse(i.tokens,!!i.loose),`<li>${l}</li>
95
- `}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
96
- `}table(i){let l="",r="";for(let u=0;u<i.header.length;u++)r+=this.tablecell(i.header[u]);l+=this.tablerow({text:r});let s="";for(let u=0;u<i.rows.length;u++){const f=i.rows[u];r="";for(let d=0;d<f.length;d++)r+=this.tablecell(f[d]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
97
- <thead>
98
- `+l+`</thead>
99
- `+s+`</table>
100
- `}tablerow({text:i}){return`<tr>
101
- ${i}</tr>
102
- `}tablecell(i){const l=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+l+`</${r}>
103
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Cn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:r}){const s=this.parser.parseInline(r),u=Im(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return l&&(f+=' title="'+Cn(l)+'"'),f+=">"+s+"</a>",f}image({href:i,title:l,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const u=Im(i);if(u===null)return Cn(r);i=u;let f=`<img src="${i}" alt="${r}"`;return l&&(f+=` title="${Cn(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Cn(i.text)}},kf=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},il=class tf{constructor(l){N(this,"options");N(this,"renderer");N(this,"textRenderer");this.options=l||ia,this.options.renderer=this.options.renderer||new no,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kf}static parse(l,r){return new tf(r).parse(l)}static parseInline(l,r){return new tf(r).parseInline(l)}parse(l,r=!0){var u,f;let s="";for(let d=0;d<l.length;d++){const p=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[p.type]){const m=p,v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(m.type)){s+=v||"";continue}}const h=p;switch(h.type){case"space":{s+=this.renderer.space(h);continue}case"hr":{s+=this.renderer.hr(h);continue}case"heading":{s+=this.renderer.heading(h);continue}case"code":{s+=this.renderer.code(h);continue}case"table":{s+=this.renderer.table(h);continue}case"blockquote":{s+=this.renderer.blockquote(h);continue}case"list":{s+=this.renderer.list(h);continue}case"html":{s+=this.renderer.html(h);continue}case"paragraph":{s+=this.renderer.paragraph(h);continue}case"text":{let m=h,v=this.renderer.text(m);for(;d+1<l.length&&l[d+1].type==="text";)m=l[++d],v+=`
104
- `+this.renderer.text(m);r?s+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):s+=v;continue}default:{const m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}parseInline(l,r=this.renderer){var u,f;let s="";for(let d=0;d<l.length;d++){const p=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[p.type]){const m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(p.type)){s+=m||"";continue}}const h=p;switch(h.type){case"escape":{s+=r.text(h);break}case"html":{s+=r.html(h);break}case"link":{s+=r.link(h);break}case"image":{s+=r.image(h);break}case"strong":{s+=r.strong(h);break}case"em":{s+=r.em(h);break}case"codespan":{s+=r.codespan(h);break}case"br":{s+=r.br(h);break}case"del":{s+=r.del(h);break}case"text":{s+=r.text(h);break}default:{const m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},Jc,Ks=(Jc=class{constructor(i){N(this,"options");N(this,"block");this.options=i||ia}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?al.lex:al.lexInline}provideParser(){return this.block?il.parse:il.parseInline}},N(Jc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Jc),sb=class{constructor(...i){N(this,"defaults",xf());N(this,"options",this.setOptions);N(this,"parse",this.parseMarkdown(!0));N(this,"parseInline",this.parseMarkdown(!1));N(this,"Parser",il);N(this,"Renderer",no);N(this,"TextRenderer",kf);N(this,"Lexer",al);N(this,"Tokenizer",to);N(this,"Hooks",Ks);this.use(...i)}walkTokens(i,l){var s,u;let r=[];for(const f of i)switch(r=r.concat(l.call(this,f)),f.type){case"table":{const d=f;for(const p of d.header)r=r.concat(this.walkTokens(p.tokens,l));for(const p of d.rows)for(const h of p)r=r.concat(this.walkTokens(h.tokens,l));break}case"list":{const d=f;r=r.concat(this.walkTokens(d.items,l));break}default:{const d=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[d.type]?this.defaults.extensions.childTokens[d.type].forEach(p=>{const h=d[p].flat(1/0);r=r.concat(this.walkTokens(h,l))}):d.tokens&&(r=r.concat(this.walkTokens(d.tokens,l)))}}return r}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){const f=l.renderers[u.name];f?l.renderers[u.name]=function(...d){let p=u.renderer.apply(this,d);return p===!1&&(p=f.apply(this,d)),p}:l.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[u.level];f?f.unshift(u.tokenizer):l[u.level]=[u.tokenizer],u.start&&(u.level==="block"?l.startBlock?l.startBlock.push(u.start):l.startBlock=[u.start]:u.level==="inline"&&(l.startInline?l.startInline.push(u.start):l.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(l.childTokens[u.name]=u.childTokens)}),s.extensions=l),r.renderer){const u=this.defaults.renderer||new no(this.defaults);for(const f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const d=f,p=r.renderer[d],h=u[d];u[d]=(...m)=>{let v=p.apply(u,m);return v===!1&&(v=h.apply(u,m)),v||""}}s.renderer=u}if(r.tokenizer){const u=this.defaults.tokenizer||new to(this.defaults);for(const f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const d=f,p=r.tokenizer[d],h=u[d];u[d]=(...m)=>{let v=p.apply(u,m);return v===!1&&(v=h.apply(u,m)),v}}s.tokenizer=u}if(r.hooks){const u=this.defaults.hooks||new Ks;for(const f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const d=f,p=r.hooks[d],h=u[d];Ks.passThroughHooks.has(f)?u[d]=m=>{if(this.defaults.async)return Promise.resolve(p.call(u,m)).then(b=>h.call(u,b));const v=p.call(u,m);return h.call(u,v)}:u[d]=(...m)=>{let v=p.apply(u,m);return v===!1&&(v=h.apply(u,m)),v}}s.hooks=u}if(r.walkTokens){const u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(d){let p=[];return p.push(f.call(this,d)),u&&(p=p.concat(u.call(this,d))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return al.lex(i,l??this.defaults)}parser(i,l){return il.parse(i,l??this.defaults)}parseMarkdown(i){return(r,s)=>{const u={...s},f={...this.defaults,...u},d=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&u.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const p=f.hooks?f.hooks.provideLexer():i?al.lex:al.lexInline,h=f.hooks?f.hooks.provideParser():i?il.parse:il.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(m=>p(m,f)).then(m=>f.hooks?f.hooks.processAllTokens(m):m).then(m=>f.walkTokens?Promise.all(this.walkTokens(m,f.walkTokens)).then(()=>m):m).then(m=>h(m,f)).then(m=>f.hooks?f.hooks.postprocess(m):m).catch(d);try{f.hooks&&(r=f.hooks.preprocess(r));let m=p(r,f);f.hooks&&(m=f.hooks.processAllTokens(m)),f.walkTokens&&this.walkTokens(m,f.walkTokens);let v=h(m,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(m){return d(m)}}}onError(i,l){return r=>{if(r.message+=`
105
- Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Cn(r.message+"",!0)+"</pre>";return l?Promise.resolve(s):s}if(l)return Promise.reject(r);throw r}}},aa=new sb;function Te(i,l){return aa.parse(i,l)}Te.options=Te.setOptions=function(i){return aa.setOptions(i),Te.defaults=aa.defaults,wg(Te.defaults),Te};Te.getDefaults=xf;Te.defaults=ia;Te.use=function(...i){return aa.use(...i),Te.defaults=aa.defaults,wg(Te.defaults),Te};Te.walkTokens=function(i,l){return aa.walkTokens(i,l)};Te.parseInline=aa.parseInline;Te.Parser=il;Te.parser=il.parse;Te.Renderer=no;Te.TextRenderer=kf;Te.Lexer=al;Te.lexer=al.lex;Te.Tokenizer=to;Te.Hooks=Ks;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;il.parse;al.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Gg,setPrototypeOf:Ym,isFrozen:ob,getPrototypeOf:ub,getOwnPropertyDescriptor:cb}=Object;let{freeze:Ot,seal:pn,create:$s}=Object,{apply:nf,construct:lf}=typeof Reflect<"u"&&Reflect;Ot||(Ot=function(l){return l});pn||(pn=function(l){return l});nf||(nf=function(l,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return l.apply(r,u)});lf||(lf=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new l(...s)});const Is=kt(Array.prototype.forEach),fb=kt(Array.prototype.lastIndexOf),Xm=kt(Array.prototype.pop),tr=kt(Array.prototype.push),db=kt(Array.prototype.splice),Js=kt(String.prototype.toLowerCase),Uc=kt(String.prototype.toString),Bc=kt(String.prototype.match),nr=kt(String.prototype.replace),hb=kt(String.prototype.indexOf),pb=kt(String.prototype.trim),Jt=kt(Object.prototype.hasOwnProperty),At=kt(RegExp.prototype.test),lr=mb(TypeError);function kt(i){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return nf(i,l,s)}}function mb(i){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return lf(i,r)}}function pe(i,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Js;Ym&&Ym(i,null);let s=l.length;for(;s--;){let u=l[s];if(typeof u=="string"){const f=r(u);f!==u&&(ob(l)||(l[s]=f),u=f)}i[u]=!0}return i}function gb(i){for(let l=0;l<i.length;l++)Jt(i,l)||(i[l]=null);return i}function On(i){const l=$s(null);for(const[r,s]of Gg(i))Jt(i,r)&&(Array.isArray(s)?l[r]=gb(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=On(s):l[r]=s);return l}function ar(i,l){for(;i!==null;){const s=cb(i,l);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}i=ub(i)}function r(){return null}return r}const Qm=Ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hc=Ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vc=Ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_b=Ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Gc=Ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yb=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zm=Ot(["#text"]),Km=Ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ic=Ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$m=Ot(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qs=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vb=pn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bb=pn(/<%[\w\W]*|[\w\W]*%>/gm),xb=pn(/\$\{[\w\W]*/gm),Sb=pn(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eb=pn(/^aria-[\-\w]+$/),Ig=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tb=pn(/^(?:\w+script|data):/i),Ab=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qg=pn(/^html$/i),Rb=pn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jm=Object.freeze({__proto__:null,ARIA_ATTR:Eb,ATTR_WHITESPACE:Ab,CUSTOM_ELEMENT:Rb,DATA_ATTR:Sb,DOCTYPE_NAME:qg,ERB_EXPR:bb,IS_ALLOWED_URI:Ig,IS_SCRIPT_OR_DATA:Tb,MUSTACHE_EXPR:vb,TMPLIT_EXPR:xb});const ir={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cb=function(){return typeof window>"u"?null:window},Ob=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Wm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Pg(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cb();const l=le=>Pg(le);if(l.version="3.3.3",l.removed=[],!i||!i.document||i.document.nodeType!==ir.document||!i.Element)return l.isSupported=!1,l;let{document:r}=i;const s=r,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:p,Element:h,NodeFilter:m,NamedNodeMap:v=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:S,trustedTypes:T}=i,C=h.prototype,U=ar(C,"cloneNode"),P=ar(C,"remove"),B=ar(C,"nextSibling"),I=ar(C,"childNodes"),q=ar(C,"parentNode");if(typeof d=="function"){const le=r.createElement("template");le.content&&le.content.ownerDocument&&(r=le.content.ownerDocument)}let K,ne="";const{implementation:me,createNodeIterator:te,createDocumentFragment:Ue,getElementsByTagName:mt}=r,{importNode:wt}=s;let Re=Wm();l.isSupported=typeof Gg=="function"&&typeof q=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ke,ERB_EXPR:Dt,TMPLIT_EXPR:Ye,DATA_ATTR:Fe,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Ce}=Jm;let{IS_ALLOWED_URI:Oe}=Jm,A=null;const G=pe({},[...Qm,...Hc,...Vc,...Gc,...Zm]);let Q=null;const W=pe({},[...Km,...Ic,...$m,...qs]);let ee=Object.seal($s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,be=null;const Ge=Object.seal($s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Dn=!0,zl=!1,sa=!0,Ln=!1,Wt=!0,mn=!1,Ul=!1,Ja=!1,Nn=!1,ol=!1,ul=!1,oa=!0,br=!1;const So="user-content-";let gt=!0,Bl=!1,Mn={},Gt=null;const cl=pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let xr=null;const Wa=pe({},["audio","video","img","source","image","track"]);let Fa=null;const Sr=pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let et=dt,ei=!1,ti=null;const Eo=pe({},[bn,ft,dt],Uc);let jn=pe({},["mi","mo","mn","ms","mtext"]),zn=pe({},["annotation-xml"]);const ua=pe({},["title","style","font","a","script"]);let It=null;const ca=["application/xhtml+xml","text/html"],Hl="text/html";let $e=null,Un=null;const ni=r.createElement("form"),fl=function(R){return R instanceof RegExp||R instanceof Function},li=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Un&&Un===R)){if((!R||typeof R!="object")&&(R={}),R=On(R),It=ca.indexOf(R.PARSER_MEDIA_TYPE)===-1?Hl:R.PARSER_MEDIA_TYPE,$e=It==="application/xhtml+xml"?Uc:Js,A=Jt(R,"ALLOWED_TAGS")?pe({},R.ALLOWED_TAGS,$e):G,Q=Jt(R,"ALLOWED_ATTR")?pe({},R.ALLOWED_ATTR,$e):W,ti=Jt(R,"ALLOWED_NAMESPACES")?pe({},R.ALLOWED_NAMESPACES,Uc):Eo,Fa=Jt(R,"ADD_URI_SAFE_ATTR")?pe(On(Sr),R.ADD_URI_SAFE_ATTR,$e):Sr,xr=Jt(R,"ADD_DATA_URI_TAGS")?pe(On(Wa),R.ADD_DATA_URI_TAGS,$e):Wa,Gt=Jt(R,"FORBID_CONTENTS")?pe({},R.FORBID_CONTENTS,$e):cl,ue=Jt(R,"FORBID_TAGS")?pe({},R.FORBID_TAGS,$e):On({}),be=Jt(R,"FORBID_ATTR")?pe({},R.FORBID_ATTR,$e):On({}),Mn=Jt(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ie=R.ALLOW_ARIA_ATTR!==!1,Dn=R.ALLOW_DATA_ATTR!==!1,zl=R.ALLOW_UNKNOWN_PROTOCOLS||!1,sa=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ln=R.SAFE_FOR_TEMPLATES||!1,Wt=R.SAFE_FOR_XML!==!1,mn=R.WHOLE_DOCUMENT||!1,Nn=R.RETURN_DOM||!1,ol=R.RETURN_DOM_FRAGMENT||!1,ul=R.RETURN_TRUSTED_TYPE||!1,Ja=R.FORCE_BODY||!1,oa=R.SANITIZE_DOM!==!1,br=R.SANITIZE_NAMED_PROPS||!1,gt=R.KEEP_CONTENT!==!1,Bl=R.IN_PLACE||!1,Oe=R.ALLOWED_URI_REGEXP||Ig,et=R.NAMESPACE||dt,jn=R.MATHML_TEXT_INTEGRATION_POINTS||jn,zn=R.HTML_INTEGRATION_POINTS||zn,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ln&&(Dn=!1),ol&&(Nn=!0),Mn&&(A=pe({},Zm),Q=$s(null),Mn.html===!0&&(pe(A,Qm),pe(Q,Km)),Mn.svg===!0&&(pe(A,Hc),pe(Q,Ic),pe(Q,qs)),Mn.svgFilters===!0&&(pe(A,Vc),pe(Q,Ic),pe(Q,qs)),Mn.mathMl===!0&&(pe(A,Gc),pe(Q,$m),pe(Q,qs))),Jt(R,"ADD_TAGS")||(Ge.tagCheck=null),Jt(R,"ADD_ATTR")||(Ge.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:(A===G&&(A=On(A)),pe(A,R.ADD_TAGS,$e))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:(Q===W&&(Q=On(Q)),pe(Q,R.ADD_ATTR,$e))),R.ADD_URI_SAFE_ATTR&&pe(Fa,R.ADD_URI_SAFE_ATTR,$e),R.FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.FORBID_CONTENTS,$e)),R.ADD_FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.ADD_FORBID_CONTENTS,$e)),gt&&(A["#text"]=!0),mn&&pe(A,["html","head","body"]),A.table&&(pe(A,["tbody"]),delete ue.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=R.TRUSTED_TYPES_POLICY,ne=K.createHTML("")}else K===void 0&&(K=Ob(T,u)),K!==null&&typeof ne=="string"&&(ne=K.createHTML(""));Ot&&Ot(R),Un=R}},ai=pe({},[...Hc,...Vc,..._b]),ii=pe({},[...Gc,...yb]),Er=function(R){let Y=q(R);(!Y||!Y.tagName)&&(Y={namespaceURI:et,tagName:"template"});const J=Js(R.tagName),ke=Js(Y.tagName);return ti[R.namespaceURI]?R.namespaceURI===ft?Y.namespaceURI===dt?J==="svg":Y.namespaceURI===bn?J==="svg"&&(ke==="annotation-xml"||jn[ke]):!!ai[J]:R.namespaceURI===bn?Y.namespaceURI===dt?J==="math":Y.namespaceURI===ft?J==="math"&&zn[ke]:!!ii[J]:R.namespaceURI===dt?Y.namespaceURI===ft&&!zn[ke]||Y.namespaceURI===bn&&!jn[ke]?!1:!ii[J]&&(ua[J]||!ai[J]):!!(It==="application/xhtml+xml"&&ti[R.namespaceURI]):!1},Lt=function(R){tr(l.removed,{element:R});try{q(R).removeChild(R)}catch{P(R)}},gn=function(R,Y){try{tr(l.removed,{attribute:Y.getAttributeNode(R),from:Y})}catch{tr(l.removed,{attribute:null,from:Y})}if(Y.removeAttribute(R),R==="is")if(Nn||ol)try{Lt(Y)}catch{}else try{Y.setAttribute(R,"")}catch{}},ri=function(R){let Y=null,J=null;if(Ja)R="<remove></remove>"+R;else{const he=Bc(R,/^[\r\n\t ]+/);J=he&&he[0]}It==="application/xhtml+xml"&&et===dt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ke=K?K.createHTML(R):R;if(et===dt)try{Y=new S().parseFromString(ke,It)}catch{}if(!Y||!Y.documentElement){Y=me.createDocument(et,"template",null);try{Y.documentElement.innerHTML=ei?ne:ke}catch{}}const Xe=Y.body||Y.documentElement;return R&&J&&Xe.insertBefore(r.createTextNode(J),Xe.childNodes[0]||null),et===dt?mt.call(Y,mn?"html":"body")[0]:mn?Y.documentElement:Xe},si=function(R){return te.call(R.ownerDocument||R,R,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Ft=function(R){return R instanceof b&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof v)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},tt=function(R){return typeof p=="function"&&R instanceof p};function qe(le,R,Y){Is(le,J=>{J.call(l,R,Y,Un)})}const Bn=function(R){let Y=null;if(qe(Re.beforeSanitizeElements,R,null),Ft(R))return Lt(R),!0;const J=$e(R.nodeName);if(qe(Re.uponSanitizeElement,R,{tagName:J,allowedTags:A}),Wt&&R.hasChildNodes()&&!tt(R.firstElementChild)&&At(/<[/\w!]/g,R.innerHTML)&&At(/<[/\w!]/g,R.textContent)||R.nodeType===ir.progressingInstruction||Wt&&R.nodeType===ir.comment&&At(/<[/\w]/g,R.data))return Lt(R),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck(J))&&(!A[J]||ue[J])){if(!ue[J]&&Tr(J)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J)))return!1;if(gt&&!Gt[J]){const ke=q(R)||R.parentNode,Xe=I(R)||R.childNodes;if(Xe&&ke){const he=Xe.length;for(let _t=he-1;_t>=0;--_t){const en=U(Xe[_t],!0);en.__removalCount=(R.__removalCount||0)+1,ke.insertBefore(en,B(R))}}}return Lt(R),!0}return R instanceof h&&!Er(R)||(J==="noscript"||J==="noembed"||J==="noframes")&&At(/<\/no(script|embed|frames)/i,R.innerHTML)?(Lt(R),!0):(Ln&&R.nodeType===ir.text&&(Y=R.textContent,Is([Ke,Dt,Ye],ke=>{Y=nr(Y,ke," ")}),R.textContent!==Y&&(tr(l.removed,{element:R.cloneNode()}),R.textContent=Y)),qe(Re.afterSanitizeElements,R,null),!1)},fa=function(R,Y,J){if(be[Y]||oa&&(Y==="id"||Y==="name")&&(J in r||J in ni))return!1;if(!(Dn&&!be[Y]&&At(Fe,Y))){if(!(Ie&&At(j,Y))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(Y,R))){if(!Q[Y]||be[Y]){if(!(Tr(R)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&At(ee.attributeNameCheck,Y)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Y,R))||Y==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J))))return!1}else if(!Fa[Y]){if(!At(Oe,nr(J,re,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&R!=="script"&&hb(J,"data:")===0&&xr[R])){if(!(zl&&!At($,nr(J,re,"")))){if(J)return!1}}}}}}}return!0},Tr=function(R){return R!=="annotation-xml"&&Bc(R,Ce)},Ar=function(R){qe(Re.beforeSanitizeAttributes,R,null);const{attributes:Y}=R;if(!Y||Ft(R))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let ke=Y.length;for(;ke--;){const Xe=Y[ke],{name:he,namespaceURI:_t,value:en}=Xe,Nt=$e(he),xn=en;let st=he==="value"?xn:pb(xn);if(J.attrName=Nt,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,qe(Re.uponSanitizeAttribute,R,J),st=J.attrValue,br&&(Nt==="id"||Nt==="name")&&(gn(he,R),st=So+st),Wt&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){gn(he,R);continue}if(Nt==="attributename"&&Bc(st,"href")){gn(he,R);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){gn(he,R);continue}if(!sa&&At(/\/>/i,st)){gn(he,R);continue}Ln&&Is([Ke,Dt,Ye],ui=>{st=nr(st,ui," ")});const oi=$e(R.nodeName);if(!fa(oi,Nt,st)){gn(he,R);continue}if(K&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!_t)switch(T.getAttributeType(oi,Nt)){case"TrustedHTML":{st=K.createHTML(st);break}case"TrustedScriptURL":{st=K.createScriptURL(st);break}}if(st!==xn)try{_t?R.setAttributeNS(_t,he,st):R.setAttribute(he,st),Ft(R)?Lt(R):Xm(l.removed)}catch{gn(he,R)}}qe(Re.afterSanitizeAttributes,R,null)},Rr=function le(R){let Y=null;const J=si(R);for(qe(Re.beforeSanitizeShadowDOM,R,null);Y=J.nextNode();)qe(Re.uponSanitizeShadowNode,Y,null),Bn(Y),Ar(Y),Y.content instanceof f&&le(Y.content);qe(Re.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(le){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,J=null,ke=null,Xe=null;if(ei=!le,ei&&(le="<!-->"),typeof le!="string"&&!tt(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw lr("dirty is not a string, aborting")}else throw lr("toString is not a function");if(!l.isSupported)return le;if(Ul||li(R),l.removed=[],typeof le=="string"&&(Bl=!1),Bl){if(le.nodeName){const en=$e(le.nodeName);if(!A[en]||ue[en])throw lr("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof p)Y=ri("<!---->"),J=Y.ownerDocument.importNode(le,!0),J.nodeType===ir.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?Y=J:Y.appendChild(J);else{if(!Nn&&!Ln&&!mn&&le.indexOf("<")===-1)return K&&ul?K.createHTML(le):le;if(Y=ri(le),!Y)return Nn?null:ul?ne:""}Y&&Ja&&Lt(Y.firstChild);const he=si(Bl?le:Y);for(;ke=he.nextNode();)Bn(ke),Ar(ke),ke.content instanceof f&&Rr(ke.content);if(Bl)return le;if(Nn){if(ol)for(Xe=Ue.call(Y.ownerDocument);Y.firstChild;)Xe.appendChild(Y.firstChild);else Xe=Y;return(Q.shadowroot||Q.shadowrootmode)&&(Xe=wt.call(s,Xe,!0)),Xe}let _t=mn?Y.outerHTML:Y.innerHTML;return mn&&A["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&At(qg,Y.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
106
- `+_t),Ln&&Is([Ke,Dt,Ye],en=>{_t=nr(_t,en," ")}),K&&ul?K.createHTML(_t):_t},l.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(le),Ul=!0},l.clearConfig=function(){Un=null,Ul=!1},l.isValidAttribute=function(le,R,Y){Un||li({});const J=$e(le),ke=$e(R);return fa(J,ke,Y)},l.addHook=function(le,R){typeof R=="function"&&tr(Re[le],R)},l.removeHook=function(le,R){if(R!==void 0){const Y=fb(Re[le],R);return Y===-1?void 0:db(Re[le],Y,1)[0]}return Xm(Re[le])},l.removeHooks=function(le){Re[le]=[]},l.removeAllHooks=function(){Re=Wm()},l}var Fm=Pg();const kb="modulepreload",wb=function(i){return"/"+i},eg={},x=function(l,r,s){let u=Promise.resolve();if(r&&r.length>0){let d=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),h=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));u=d(r.map(m=>{if(m=wb(m),m in eg)return;eg[m]=!0;const v=m.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":kb,v||(S.as="script"),S.crossOrigin="",S.href=m,h&&S.setAttribute("nonce",h),document.head.appendChild(S),v)return new Promise((T,C)=>{S.addEventListener("load",T),S.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return u.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return l().catch(f)})},Yg=[{id:"abap",name:"ABAP",import:()=>x(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>x(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>x(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>x(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>x(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>x(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>x(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>x(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>x(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>x(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>x(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>x(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>x(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>x(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>x(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>x(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>x(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>x(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>x(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>x(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>x(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>x(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>x(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>x(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>x(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>x(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>x(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>x(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>x(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>x(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>x(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>x(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>x(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>x(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>x(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>x(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>x(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>x(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>x(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>x(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>x(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>x(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>x(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>x(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>x(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>x(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>x(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>x(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>x(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>x(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>x(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>x(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>x(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>x(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>x(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>x(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>x(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>x(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>x(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>x(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>x(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>x(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>x(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>x(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>x(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>x(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>x(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>x(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>x(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>x(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>x(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>x(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>x(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>x(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>x(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>x(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>x(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>x(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>x(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>x(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>x(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>x(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>x(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>x(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>x(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>x(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>x(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>x(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>x(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>x(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>x(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>x(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>x(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>x(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>x(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>x(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>x(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>x(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>x(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>x(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>x(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>x(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>x(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>x(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>x(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>x(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>x(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>x(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>x(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>x(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>x(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>x(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>x(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>x(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>x(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>x(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>x(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>x(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>x(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>x(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>x(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>x(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>x(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>x(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>x(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>x(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>x(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>x(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>x(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>x(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>x(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>x(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>x(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>x(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>x(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>x(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>x(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>x(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>x(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>x(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>x(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>x(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>x(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>x(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>x(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>x(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>x(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>x(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>x(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>x(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>x(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>x(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>x(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>x(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>x(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>x(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>x(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>x(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>x(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>x(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>x(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>x(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>x(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>x(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>x(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>x(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>x(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>x(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>x(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>x(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>x(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>x(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>x(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>x(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>x(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>x(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>x(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>x(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>x(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>x(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>x(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>x(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>x(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>x(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>x(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>x(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>x(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>x(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>x(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>x(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>x(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>x(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>x(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>x(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>x(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>x(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>x(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>x(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>x(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>x(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>x(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>x(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>x(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>x(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>x(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>x(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>x(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>x(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>x(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>x(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>x(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>x(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>x(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>x(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>x(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>x(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>x(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>x(()=>import("./zig-BVz_zdnA.js"),[])}],Db=Object.fromEntries(Yg.map(i=>[i.id,i.import])),Lb=Object.fromEntries(Yg.flatMap(i=>{var l;return((l=i.aliases)==null?void 0:l.map(r=>[r,i.import]))||[]})),Nb={...Db,...Lb},Mb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>x(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>x(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>x(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>x(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>x(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>x(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>x(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>x(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>x(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>x(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>x(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>x(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>x(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>x(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>x(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>x(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>x(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>x(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>x(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>x(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>x(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>x(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>x(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>x(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>x(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>x(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>x(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>x(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>x(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>x(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>x(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>x(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>x(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>x(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>x(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>x(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>x(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>x(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>x(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>x(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>x(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>x(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>x(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>x(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>x(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>x(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>x(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>x(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>x(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>x(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>x(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>x(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>x(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>x(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],jb=Object.fromEntries(Mb.map(i=>[i.id,i.import]));let sl=class extends Error{constructor(l){super(l),this.name="ShikiError"}},wf=class extends Error{constructor(l){super(l),this.name="ShikiError"}};function zb(){return 2147483648}function Ub(){return typeof performance<"u"?performance.now():Date.now()}const Bb=(i,l)=>i+(l-i%l)%l;async function Hb(i){let l,r;const s={};function u(T){r=T,s.HEAPU8=new Uint8Array(T),s.HEAPU32=new Uint32Array(T)}function f(T,C,U){s.HEAPU8.copyWithin(T,C,C+U)}function d(T){try{return l.grow(T-r.byteLength+65535>>>16),u(l.buffer),1}catch{}}function p(T){const C=s.HEAPU8.length;T=T>>>0;const U=zb();if(T>U)return!1;for(let P=1;P<=4;P*=2){let B=C*(1+.2/P);B=Math.min(B,T+100663296);const I=Math.min(U,Bb(Math.max(T,B),65536));if(d(I))return!0}return!1}const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(T,C,U=1024){const P=C+U;let B=C;for(;T[B]&&!(B>=P);)++B;if(B-C>16&&T.buffer&&h)return h.decode(T.subarray(C,B));let I="";for(;C<B;){let q=T[C++];if(!(q&128)){I+=String.fromCharCode(q);continue}const K=T[C++]&63;if((q&224)===192){I+=String.fromCharCode((q&31)<<6|K);continue}const ne=T[C++]&63;if((q&240)===224?q=(q&15)<<12|K<<6|ne:q=(q&7)<<18|K<<12|ne<<6|T[C++]&63,q<65536)I+=String.fromCharCode(q);else{const me=q-65536;I+=String.fromCharCode(55296|me>>10,56320|me&1023)}}return I}function v(T,C){return T?m(s.HEAPU8,T,C):""}const b={emscripten_get_now:Ub,emscripten_memcpy_big:f,emscripten_resize_heap:p,fd_write:()=>0};async function S(){const C=await i({env:b,wasi_snapshot_preview1:b});l=C.memory,u(l.buffer),Object.assign(s,C),s.UTF8ToString=v}return await S(),s}var Vb=Object.defineProperty,Gb=(i,l,r)=>l in i?Vb(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r,ut=(i,l,r)=>(Gb(i,typeof l!="symbol"?l+"":l,r),r);let pt=null;function Ib(i){throw new wf(i.UTF8ToString(i.getLastOnigError()))}class vo{constructor(l){ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16Value"),ut(this,"utf8Value"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16");const r=l.length,s=vo._utf8ByteLength(l),u=s!==r,f=u?new Uint32Array(r+1):null;u&&(f[r]=s);const d=u?new Uint32Array(s+1):null;u&&(d[s]=r);const p=new Uint8Array(s);let h=0;for(let m=0;m<r;m++){const v=l.charCodeAt(m);let b=v,S=!1;if(v>=55296&&v<=56319&&m+1<r){const T=l.charCodeAt(m+1);T>=56320&&T<=57343&&(b=(v-55296<<10)+65536|T-56320,S=!0)}u&&(f[m]=h,S&&(f[m+1]=h),b<=127?d[h+0]=m:b<=2047?(d[h+0]=m,d[h+1]=m):b<=65535?(d[h+0]=m,d[h+1]=m,d[h+2]=m):(d[h+0]=m,d[h+1]=m,d[h+2]=m,d[h+3]=m)),b<=127?p[h++]=b:b<=2047?(p[h++]=192|(b&1984)>>>6,p[h++]=128|(b&63)>>>0):b<=65535?(p[h++]=224|(b&61440)>>>12,p[h++]=128|(b&4032)>>>6,p[h++]=128|(b&63)>>>0):(p[h++]=240|(b&1835008)>>>18,p[h++]=128|(b&258048)>>>12,p[h++]=128|(b&4032)>>>6,p[h++]=128|(b&63)>>>0),S&&m++}this.utf16Length=r,this.utf8Length=s,this.utf16Value=l,this.utf8Value=p,this.utf16OffsetToUtf8=f,this.utf8OffsetToUtf16=d}static _utf8ByteLength(l){let r=0;for(let s=0,u=l.length;s<u;s++){const f=l.charCodeAt(s);let d=f,p=!1;if(f>=55296&&f<=56319&&s+1<u){const h=l.charCodeAt(s+1);h>=56320&&h<=57343&&(d=(f-55296<<10)+65536|h-56320,p=!0)}d<=127?r+=1:d<=2047?r+=2:d<=65535?r+=3:r+=4,p&&s++}return r}createString(l){const r=l.omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,r),r}}const kn=class{constructor(i){if(ut(this,"id",++kn.LAST_ID),ut(this,"_onigBinding"),ut(this,"content"),ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16"),ut(this,"ptr"),!pt)throw new wf("Must invoke loadWasm first.");this._onigBinding=pt,this.content=i;const l=new vo(i);this.utf16Length=l.utf16Length,this.utf8Length=l.utf8Length,this.utf16OffsetToUtf8=l.utf16OffsetToUtf8,this.utf8OffsetToUtf16=l.utf8OffsetToUtf16,this.utf8Length<1e4&&!kn._sharedPtrInUse?(kn._sharedPtr||(kn._sharedPtr=pt.omalloc(1e4)),kn._sharedPtrInUse=!0,pt.HEAPU8.set(l.utf8Value,kn._sharedPtr),this.ptr=kn._sharedPtr):this.ptr=l.createString(pt)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===kn._sharedPtr?kn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let _r=kn;ut(_r,"LAST_ID",0);ut(_r,"_sharedPtr",0);ut(_r,"_sharedPtrInUse",!1);class qb{constructor(l){if(ut(this,"_onigBinding"),ut(this,"_ptr"),!pt)throw new wf("Must invoke loadWasm first.");const r=[],s=[];for(let p=0,h=l.length;p<h;p++){const m=new vo(l[p]);r[p]=m.createString(pt),s[p]=m.utf8Length}const u=pt.omalloc(4*l.length);pt.HEAPU32.set(r,u/4);const f=pt.omalloc(4*l.length);pt.HEAPU32.set(s,f/4);const d=pt.createOnigScanner(u,f,l.length);for(let p=0,h=l.length;p<h;p++)pt.ofree(r[p]);pt.ofree(f),pt.ofree(u),d===0&&Ib(pt),this._onigBinding=pt,this._ptr=d}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(l,r,s){let u=0;if(typeof s=="number"&&(u=s),typeof l=="string"){l=new _r(l);const f=this._findNextMatchSync(l,r,!1,u);return l.dispose(),f}return this._findNextMatchSync(l,r,!1,u)}_findNextMatchSync(l,r,s,u){const f=this._onigBinding,d=f.findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(r),u);if(d===0)return null;const p=f.HEAPU32;let h=d/4;const m=p[h++],v=p[h++],b=[];for(let S=0;S<v;S++){const T=l.convertUtf8OffsetToUtf16(p[h++]),C=l.convertUtf8OffsetToUtf16(p[h++]);b[S]={start:T,end:C,length:C-T}}return{index:m,captureIndices:b}}}function Pb(i){return typeof i.instantiator=="function"}function Yb(i){return typeof i.default=="function"}function Xb(i){return typeof i.data<"u"}function Qb(i){return typeof Response<"u"&&i instanceof Response}function Zb(i){var l;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((l=Buffer.isBuffer)==null?void 0:l.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let Ps;function Kb(i){if(Ps)return Ps;async function l(){pt=await Hb(async r=>{let s=i;return s=await s,typeof s=="function"&&(s=await s(r)),typeof s=="function"&&(s=await s(r)),Pb(s)?s=await s.instantiator(r):Yb(s)?s=await s.default(r):(Xb(s)&&(s=s.data),Qb(s)?typeof WebAssembly.instantiateStreaming=="function"?s=await $b(s)(r):s=await Jb(s)(r):Zb(s)?s=await qc(s)(r):s instanceof WebAssembly.Module?s=await qc(s)(r):"default"in s&&s.default instanceof WebAssembly.Module&&(s=await qc(s.default)(r))),"instance"in s&&(s=s.instance),"exports"in s&&(s=s.exports),s})}return Ps=l(),Ps}function qc(i){return l=>WebAssembly.instantiate(i,l)}function $b(i){return l=>WebAssembly.instantiateStreaming(i,l)}function Jb(i){return async l=>{const r=await i.arrayBuffer();return WebAssembly.instantiate(r,l)}}let Wb;function Fb(){return Wb}async function Xg(i){return i&&await Kb(i),{createScanner(l){return new qb(l.map(r=>typeof r=="string"?r:r.source))},createString(l){return new _r(l)}}}function e1(i){return Df(i)}function Df(i){return Array.isArray(i)?t1(i):i instanceof RegExp?i:typeof i=="object"?n1(i):i}function t1(i){let l=[];for(let r=0,s=i.length;r<s;r++)l[r]=Df(i[r]);return l}function n1(i){let l={};for(let r in i)l[r]=Df(i[r]);return l}function Qg(i,...l){return l.forEach(r=>{for(let s in r)i[s]=r[s]}),i}function Zg(i){const l=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return l===0?i:~l===i.length-1?Zg(i.substring(0,i.length-1)):i.substr(~l+1)}var Pc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ys=class{static hasCaptures(i){return i===null?!1:(Pc.lastIndex=0,Pc.test(i))}static replaceCaptures(i,l,r){return i.replace(Pc,(s,u,f,d)=>{let p=r[parseInt(u||f,10)];if(p){let h=l.substring(p.start,p.end);for(;h[0]===".";)h=h.substring(1);switch(d){case"downcase":return h.toLowerCase();case"upcase":return h.toUpperCase();default:return h}}else return s})}};function Kg(i,l){return i<l?-1:i>l?1:0}function $g(i,l){if(i===null&&l===null)return 0;if(!i)return-1;if(!l)return 1;let r=i.length,s=l.length;if(r===s){for(let u=0;u<r;u++){let f=Kg(i[u],l[u]);if(f!==0)return f}return 0}return r-s}function tg(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Jg(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Wg=class{constructor(i){N(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const l=this.fn(i);return this.cache.set(i,l),l}},lo=class{constructor(i,l,r){N(this,"_cachedMatchRoot",new Wg(i=>this._root.match(i)));this._colorMap=i,this._defaults=l,this._root=r}static createFromRawTheme(i,l){return this.createFromParsedTheme(i1(i),l)}static createFromParsedTheme(i,l){return s1(i,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const l=i.scopeName,s=this._cachedMatchRoot.get(l).find(u=>l1(i.parent,u.parentScopes));return s?new Fg(s.fontStyle,s.foreground,s.background):null}},Yc=class Ws{constructor(l,r){this.parent=l,this.scopeName=r}static push(l,r){for(const s of r)l=new Ws(l,s);return l}static from(...l){let r=null;for(let s=0;s<l.length;s++)r=new Ws(r,l[s]);return r}push(l){return new Ws(this,l)}getSegments(){let l=this;const r=[];for(;l;)r.push(l.scopeName),l=l.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(l){return this===l?!0:this.parent===null?!1:this.parent.extends(l)}getExtensionIfDefined(l){const r=[];let s=this;for(;s&&s!==l;)r.push(s.scopeName),s=s.parent;return s===l?r.reverse():void 0}};function l1(i,l){if(l.length===0)return!0;for(let r=0;r<l.length;r++){let s=l[r],u=!1;if(s===">"){if(r===l.length-1)return!1;s=l[++r],u=!0}for(;i&&!a1(i.scopeName,s);){if(u)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function a1(i,l){return l===i||i.startsWith(l)&&i[l.length]==="."}var Fg=class{constructor(i,l,r){this.fontStyle=i,this.foregroundId=l,this.backgroundId=r}};function i1(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let l=i.settings,r=[],s=0;for(let u=0,f=l.length;u<f;u++){let d=l[u];if(!d.settings)continue;let p;if(typeof d.scope=="string"){let b=d.scope;b=b.replace(/^[,]+/,""),b=b.replace(/[,]+$/,""),p=b.split(",")}else Array.isArray(d.scope)?p=d.scope:p=[""];let h=-1;if(typeof d.settings.fontStyle=="string"){h=0;let b=d.settings.fontStyle.split(" ");for(let S=0,T=b.length;S<T;S++)switch(b[S]){case"italic":h=h|1;break;case"bold":h=h|2;break;case"underline":h=h|4;break;case"strikethrough":h=h|8;break}}let m=null;typeof d.settings.foreground=="string"&&tg(d.settings.foreground)&&(m=d.settings.foreground);let v=null;typeof d.settings.background=="string"&&tg(d.settings.background)&&(v=d.settings.background);for(let b=0,S=p.length;b<S;b++){let C=p[b].trim().split(" "),U=C[C.length-1],P=null;C.length>1&&(P=C.slice(0,C.length-1),P.reverse()),r[s++]=new r1(U,P,u,h,m,v)}}return r}var r1=class{constructor(i,l,r,s,u,f){this.scope=i,this.parentScopes=l,this.index=r,this.fontStyle=s,this.foreground=u,this.background=f}},rl=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(rl||{});function s1(i,l){i.sort((h,m)=>{let v=Kg(h.scope,m.scope);return v!==0||(v=$g(h.parentScopes,m.parentScopes),v!==0)?v:h.index-m.index});let r=0,s="#000000",u="#ffffff";for(;i.length>=1&&i[0].scope==="";){let h=i.shift();h.fontStyle!==-1&&(r=h.fontStyle),h.foreground!==null&&(s=h.foreground),h.background!==null&&(u=h.background)}let f=new o1(l),d=new Fg(r,f.getId(s),f.getId(u)),p=new c1(new af(0,null,-1,0,0),[]);for(let h=0,m=i.length;h<m;h++){let v=i[h];p.insert(0,v.scope,v.parentScopes,v.fontStyle,f.getId(v.foreground),f.getId(v.background))}return new lo(f,d,p)}var o1=class{constructor(i){N(this,"_isFrozen");N(this,"_lastColorId");N(this,"_id2color");N(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let l=0,r=i.length;l<r;l++)this._color2id[i[l]]=l,this._id2color[l]=i[l]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let l=this._color2id[i];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return l=++this._lastColorId,this._color2id[i]=l,this._id2color[l]=i,l}getColorMap(){return this._id2color.slice(0)}},u1=Object.freeze([]),af=class e_{constructor(l,r,s,u,f){N(this,"scopeDepth");N(this,"parentScopes");N(this,"fontStyle");N(this,"foreground");N(this,"background");this.scopeDepth=l,this.parentScopes=r||u1,this.fontStyle=s,this.foreground=u,this.background=f}clone(){return new e_(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(l){let r=[];for(let s=0,u=l.length;s<u;s++)r[s]=l[s].clone();return r}acceptOverwrite(l,r,s,u){this.scopeDepth>l?console.log("how did this happen?"):this.scopeDepth=l,r!==-1&&(this.fontStyle=r),s!==0&&(this.foreground=s),u!==0&&(this.background=u)}},c1=class rf{constructor(l,r=[],s={}){N(this,"_rulesWithParentScopes");this._mainRule=l,this._children=s,this._rulesWithParentScopes=r}static _cmpBySpecificity(l,r){if(l.scopeDepth!==r.scopeDepth)return r.scopeDepth-l.scopeDepth;let s=0,u=0;for(;l.parentScopes[s]===">"&&s++,r.parentScopes[u]===">"&&u++,!(s>=l.parentScopes.length||u>=r.parentScopes.length);){const f=r.parentScopes[u].length-l.parentScopes[s].length;if(f!==0)return f;s++,u++}return r.parentScopes.length-l.parentScopes.length}match(l){if(l!==""){let s=l.indexOf("."),u,f;if(s===-1?(u=l,f=""):(u=l.substring(0,s),f=l.substring(s+1)),this._children.hasOwnProperty(u))return this._children[u].match(f)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(rf._cmpBySpecificity),r}insert(l,r,s,u,f,d){if(r===""){this._doInsertHere(l,s,u,f,d);return}let p=r.indexOf("."),h,m;p===-1?(h=r,m=""):(h=r.substring(0,p),m=r.substring(p+1));let v;this._children.hasOwnProperty(h)?v=this._children[h]:(v=new rf(this._mainRule.clone(),af.cloneArr(this._rulesWithParentScopes)),this._children[h]=v),v.insert(l+1,m,s,u,f,d)}_doInsertHere(l,r,s,u,f){if(r===null){this._mainRule.acceptOverwrite(l,s,u,f);return}for(let d=0,p=this._rulesWithParentScopes.length;d<p;d++){let h=this._rulesWithParentScopes[d];if($g(h.parentScopes,r)===0){h.acceptOverwrite(l,s,u,f);return}}s===-1&&(s=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),f===0&&(f=this._mainRule.background),this._rulesWithParentScopes.push(new af(l,r,s,u,f))}},Za=class dn{static toBinaryStr(l){return l.toString(2).padStart(32,"0")}static print(l){const r=dn.getLanguageId(l),s=dn.getTokenType(l),u=dn.getFontStyle(l),f=dn.getForeground(l),d=dn.getBackground(l);console.log({languageId:r,tokenType:s,fontStyle:u,foreground:f,background:d})}static getLanguageId(l){return(l&255)>>>0}static getTokenType(l){return(l&768)>>>8}static containsBalancedBrackets(l){return(l&1024)!==0}static getFontStyle(l){return(l&30720)>>>11}static getForeground(l){return(l&16744448)>>>15}static getBackground(l){return(l&4278190080)>>>24}static set(l,r,s,u,f,d,p){let h=dn.getLanguageId(l),m=dn.getTokenType(l),v=dn.containsBalancedBrackets(l)?1:0,b=dn.getFontStyle(l),S=dn.getForeground(l),T=dn.getBackground(l);return r!==0&&(h=r),s!==8&&(m=s),u!==null&&(v=u?1:0),f!==-1&&(b=f),d!==0&&(S=d),p!==0&&(T=p),(h<<0|m<<8|v<<10|b<<11|S<<15|T<<24)>>>0}};function ao(i,l){const r=[],s=f1(i);let u=s.next();for(;u!==null;){let h=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":h=1;break;case"L":h=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=s.next()}let m=d();if(r.push({matcher:m,priority:h}),u!==",")break;u=s.next()}return r;function f(){if(u==="-"){u=s.next();const h=f();return m=>!!h&&!h(m)}if(u==="("){u=s.next();const h=p();return u===")"&&(u=s.next()),h}if(ng(u)){const h=[];do h.push(u),u=s.next();while(ng(u));return m=>l(h,m)}return null}function d(){const h=[];let m=f();for(;m;)h.push(m),m=f();return v=>h.every(b=>b(v))}function p(){const h=[];let m=d();for(;m&&(h.push(m),u==="|"||u===",");){do u=s.next();while(u==="|"||u===",");m=d()}return v=>h.some(b=>b(v))}}function ng(i){return!!i&&!!i.match(/[\w\.:]+/)}function f1(i){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=l.exec(i);return{next:()=>{if(!r)return null;const s=r[0];return r=l.exec(i),s}}}function t_(i){typeof i.dispose=="function"&&i.dispose()}var dr=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},d1=class{constructor(i,l){this.scopeName=i,this.ruleName=l}toKey(){return`${this.scopeName}#${this.ruleName}`}},h1=class{constructor(){N(this,"_references",[]);N(this,"_seenReferenceKeys",new Set);N(this,"visitedRule",new Set)}get references(){return this._references}add(i){const l=i.toKey();this._seenReferenceKeys.has(l)||(this._seenReferenceKeys.add(l),this._references.push(i))}},p1=class{constructor(i,l){N(this,"seenFullScopeRequests",new Set);N(this,"seenPartialScopeRequests",new Set);N(this,"Q");this.repo=i,this.initialScopeName=l,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new dr(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const l=new h1;for(const r of i)m1(r,this.initialScopeName,this.repo,l);for(const r of l.references)if(r instanceof dr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function m1(i,l,r,s){const u=r.lookup(i.scopeName);if(!u){if(i.scopeName===l)throw new Error(`No grammar provided for <${l}>`);return}const f=r.lookup(l);i instanceof dr?Fs({baseGrammar:f,selfGrammar:u},s):sf(i.ruleName,{baseGrammar:f,selfGrammar:u,repository:u.repository},s);const d=r.injections(i.scopeName);if(d)for(const p of d)s.add(new dr(p))}function sf(i,l,r){if(l.repository&&l.repository[i]){const s=l.repository[i];io([s],l,r)}}function Fs(i,l){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&io(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},l),i.selfGrammar.injections&&io(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},l)}function io(i,l,r){for(const s of i){if(r.visitedRule.has(s))continue;r.visitedRule.add(s);const u=s.repository?Qg({},l.repository,s.repository):l.repository;Array.isArray(s.patterns)&&io(s.patterns,{...l,repository:u},r);const f=s.include;if(!f)continue;const d=n_(f);switch(d.kind){case 0:Fs({...l,selfGrammar:l.baseGrammar},r);break;case 1:Fs(l,r);break;case 2:sf(d.ruleName,{...l,repository:u},r);break;case 3:case 4:const p=d.scopeName===l.selfGrammar.scopeName?l.selfGrammar:d.scopeName===l.baseGrammar.scopeName?l.baseGrammar:void 0;if(p){const h={baseGrammar:l.baseGrammar,selfGrammar:p,repository:u};d.kind===4?sf(d.ruleName,h,r):Fs(h,r)}else d.kind===4?r.add(new d1(d.scopeName,d.ruleName)):r.add(new dr(d.scopeName));break}}}var g1=class{constructor(){N(this,"kind",0)}},_1=class{constructor(){N(this,"kind",1)}},y1=class{constructor(i){N(this,"kind",2);this.ruleName=i}},v1=class{constructor(i){N(this,"kind",3);this.scopeName=i}},b1=class{constructor(i,l){N(this,"kind",4);this.scopeName=i,this.ruleName=l}};function n_(i){if(i==="$base")return new g1;if(i==="$self")return new _1;const l=i.indexOf("#");if(l===-1)return new v1(i);if(l===0)return new y1(i.substring(1));{const r=i.substring(0,l),s=i.substring(l+1);return new b1(r,s)}}var x1=/\\(\d+)/,lg=/\\(\d+)/g,S1=-1,l_=-2;var yr=class{constructor(i,l,r,s){N(this,"$location");N(this,"id");N(this,"_nameIsCapturing");N(this,"_name");N(this,"_contentNameIsCapturing");N(this,"_contentName");this.$location=i,this.id=l,this._name=r||null,this._nameIsCapturing=Ys.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=Ys.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Zg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,l){return!this._nameIsCapturing||this._name===null||i===null||l===null?this._name:Ys.replaceCaptures(this._name,i,l)}getContentName(i,l){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ys.replaceCaptures(this._contentName,i,l)}},E1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);N(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(l,r){throw new Error("Not supported!")}compile(l,r){throw new Error("Not supported!")}compileAG(l,r,s,u){throw new Error("Not supported!")}},T1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,null);N(this,"_match");N(this,"captures");N(this,"_cachedCompiledPatterns");this._match=new hr(u,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(l,r){r.push(this._match)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ag=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);N(this,"hasMissingPatterns");N(this,"patterns");N(this,"_cachedCompiledPatterns");this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(l,r){for(const s of this.patterns)l.getRule(s).collectPatterns(l,r)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},of=class extends yr{constructor(l,r,s,u,f,d,p,h,m,v){super(l,r,s,u);N(this,"_begin");N(this,"beginCaptures");N(this,"_end");N(this,"endHasBackReferences");N(this,"endCaptures");N(this,"applyEndPatternLast");N(this,"hasMissingPatterns");N(this,"patterns");N(this,"_cachedCompiledPatterns");this._begin=new hr(f,this.id),this.beginCaptures=d,this._end=new hr(p||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=m||!1,this.patterns=v.patterns,this.hasMissingPatterns=v.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(l,r){return this._end.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l,r).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l,r).compileAG(l,s,u)}_getCachedCompiledPatterns(l,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pr;for(const s of this.patterns)l.getRule(s).collectPatterns(l,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},ro=class extends yr{constructor(l,r,s,u,f,d,p,h,m){super(l,r,s,u);N(this,"_begin");N(this,"beginCaptures");N(this,"whileCaptures");N(this,"_while");N(this,"whileHasBackReferences");N(this,"hasMissingPatterns");N(this,"patterns");N(this,"_cachedCompiledPatterns");N(this,"_cachedCompiledWhilePatterns");this._begin=new hr(f,this.id),this.beginCaptures=d,this.whileCaptures=h,this._while=new hr(p,l_),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(l,r){return this._while.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pr;for(const r of this.patterns)l.getRule(r).collectPatterns(l,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(l,r){return this._getCachedCompiledWhilePatterns(l,r).compile(l)}compileWhileAG(l,r,s,u){return this._getCachedCompiledWhilePatterns(l,r).compileAG(l,s,u)}_getCachedCompiledWhilePatterns(l,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new pr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},a_=class Et{static createCaptureRule(l,r,s,u,f){return l.registerRule(d=>new E1(r,d,s,u,f))}static getCompiledRuleId(l,r,s){return l.id||r.registerRule(u=>{if(l.id=u,l.match)return new T1(l.$vscodeTextmateLocation,l.id,l.name,l.match,Et._compileCaptures(l.captures,r,s));if(typeof l.begin>"u"){l.repository&&(s=Qg({},s,l.repository));let f=l.patterns;return typeof f>"u"&&l.include&&(f=[{include:l.include}]),new ag(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,Et._compilePatterns(f,r,s))}return l.while?new ro(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,Et._compileCaptures(l.beginCaptures||l.captures,r,s),l.while,Et._compileCaptures(l.whileCaptures||l.captures,r,s),Et._compilePatterns(l.patterns,r,s)):new of(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,Et._compileCaptures(l.beginCaptures||l.captures,r,s),l.end,Et._compileCaptures(l.endCaptures||l.captures,r,s),l.applyEndPatternLast,Et._compilePatterns(l.patterns,r,s))}),l.id}static _compileCaptures(l,r,s){let u=[];if(l){let f=0;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const p=parseInt(d,10);p>f&&(f=p)}for(let d=0;d<=f;d++)u[d]=null;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const p=parseInt(d,10);let h=0;l[d].patterns&&(h=Et.getCompiledRuleId(l[d],r,s)),u[p]=Et.createCaptureRule(r,l[d].$vscodeTextmateLocation,l[d].name,l[d].contentName,h)}}return u}static _compilePatterns(l,r,s){let u=[];if(l)for(let f=0,d=l.length;f<d;f++){const p=l[f];let h=-1;if(p.include){const m=n_(p.include);switch(m.kind){case 0:case 1:h=Et.getCompiledRuleId(s[p.include],r,s);break;case 2:let v=s[m.ruleName];v&&(h=Et.getCompiledRuleId(v,r,s));break;case 3:case 4:const b=m.scopeName,S=m.kind===4?m.ruleName:null,T=r.getExternalGrammar(b,s);if(T)if(S){let C=T.repository[S];C&&(h=Et.getCompiledRuleId(C,r,T.repository))}else h=Et.getCompiledRuleId(T.repository.$self,r,T.repository);break}}else h=Et.getCompiledRuleId(p,r,s);if(h!==-1){const m=r.getRule(h);let v=!1;if((m instanceof ag||m instanceof of||m instanceof ro)&&m.hasMissingPatterns&&m.patterns.length===0&&(v=!0),v)continue;u.push(h)}}return{patterns:u,hasMissingPatterns:(l?l.length:0)!==u.length}}},hr=class i_{constructor(l,r){N(this,"source");N(this,"ruleId");N(this,"hasAnchor");N(this,"hasBackReferences");N(this,"_anchorCache");if(l&&typeof l=="string"){const s=l.length;let u=0,f=[],d=!1;for(let p=0;p<s;p++)if(l.charAt(p)==="\\"&&p+1<s){const m=l.charAt(p+1);m==="z"?(f.push(l.substring(u,p)),f.push("$(?!\\n)(?<!\\n)"),u=p+2):(m==="A"||m==="G")&&(d=!0),p++}this.hasAnchor=d,u===0?this.source=l:(f.push(l.substring(u,s)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=l;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=x1.test(this.source):this.hasBackReferences=!1}clone(){return new i_(this.source,this.ruleId)}setSource(l){this.source!==l&&(this.source=l,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(l,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let s=r.map(u=>l.substring(u.start,u.end));return lg.lastIndex=0,this.source.replace(lg,(u,f)=>Jg(s[parseInt(f,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let l=[],r=[],s=[],u=[],f,d,p,h;for(f=0,d=this.source.length;f<d;f++)p=this.source.charAt(f),l[f]=p,r[f]=p,s[f]=p,u[f]=p,p==="\\"&&f+1<d&&(h=this.source.charAt(f+1),h==="A"?(l[f+1]="￿",r[f+1]="￿",s[f+1]="A",u[f+1]="A"):h==="G"?(l[f+1]="￿",r[f+1]="G",s[f+1]="￿",u[f+1]="G"):(l[f+1]=h,r[f+1]=h,s[f+1]=h,u[f+1]=h),f++);return{A0_G0:l.join(""),A0_G1:r.join(""),A1_G0:s.join(""),A1_G1:u.join("")}}resolveAnchors(l,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:l?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},pr=class{constructor(){N(this,"_items");N(this,"_hasAnchors");N(this,"_cached");N(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,l){this._items[i].source!==l&&(this._disposeCaches(),this._items[i].setSource(l))}compile(i){if(!this._cached){let l=this._items.map(r=>r.source);this._cached=new ig(i,l,this._items.map(r=>r.ruleId))}return this._cached}compileAG(i,l,r){return this._hasAnchors?l?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,l,r){let s=this._items.map(u=>u.resolveAnchors(l,r));return new ig(i,s,this._items.map(u=>u.ruleId))}},ig=class{constructor(i,l,r){N(this,"scanner");this.regExps=l,this.rules=r,this.scanner=i.createOnigScanner(l)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let l=0,r=this.rules.length;l<r;l++)i.push(" - "+this.rules[l]+": "+this.regExps[l]);return i.join(`
107
- `)}findNextMatchSync(i,l,r){const s=this.scanner.findNextMatchSync(i,l,r);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}},Xc=class{constructor(i,l){this.languageId=i,this.tokenType=l}},ll,A1=(ll=class{constructor(l,r){N(this,"_defaultAttributes");N(this,"_embeddedLanguagesMatcher");N(this,"_getBasicScopeAttributes",new Wg(l=>{const r=this._scopeToLanguage(l),s=this._toStandardTokenType(l);return new Xc(r,s)}));this._defaultAttributes=new Xc(l,8),this._embeddedLanguagesMatcher=new R1(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(l){return l===null?ll._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(l)}_scopeToLanguage(l){return this._embeddedLanguagesMatcher.match(l)||0}_toStandardTokenType(l){const r=l.match(ll.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},N(ll,"_NULL_SCOPE_METADATA",new Xc(0,0)),N(ll,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ll),R1=class{constructor(i){N(this,"values");N(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const l=i.map(([r,s])=>Jg(r));l.sort(),l.reverse(),this.scopesRegExp=new RegExp(`^((${l.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const l=i.match(this.scopesRegExp);if(l)return this.values.get(l[1])}},rg=class{constructor(i,l){this.stack=i,this.stoppedEarly=l}};function r_(i,l,r,s,u,f,d,p){const h=l.content.length;let m=!1,v=-1;if(d){const T=C1(i,l,r,s,u,f);u=T.stack,s=T.linePos,r=T.isFirstLine,v=T.anchorPosition}const b=Date.now();for(;!m;){if(p!==0&&Date.now()-b>p)return new rg(u,!0);S()}return new rg(u,!1);function S(){const T=O1(i,l,r,s,u,v);if(!T){f.produce(u,h),m=!0;return}const C=T.captureIndices,U=T.matchedRuleId,P=C&&C.length>0?C[0].end>s:!1;if(U===S1){const B=u.getRule(i);f.produce(u,C[0].start),u=u.withContentNameScopesList(u.nameScopesList),or(i,l,r,u,f,B.endCaptures,C),f.produce(u,C[0].end);const I=u;if(u=u.parent,v=I.getAnchorPos(),!P&&I.getEnterPos()===s){u=I,f.produce(u,h),m=!0;return}}else{const B=i.getRule(U);f.produce(u,C[0].start);const I=u,q=B.getName(l.content,C),K=u.contentNameScopesList.pushAttributed(q,i);if(u=u.push(U,s,v,C[0].end===h,null,K,K),B instanceof of){const ne=B;or(i,l,r,u,f,ne.beginCaptures,C),f.produce(u,C[0].end),v=C[0].end;const me=ne.getContentName(l.content,C),te=K.pushAttributed(me,i);if(u=u.withContentNameScopesList(te),ne.endHasBackReferences&&(u=u.withEndRule(ne.getEndWithResolvedBackReferences(l.content,C))),!P&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,h),m=!0;return}}else if(B instanceof ro){const ne=B;or(i,l,r,u,f,ne.beginCaptures,C),f.produce(u,C[0].end),v=C[0].end;const me=ne.getContentName(l.content,C),te=K.pushAttributed(me,i);if(u=u.withContentNameScopesList(te),ne.whileHasBackReferences&&(u=u.withEndRule(ne.getWhileWithResolvedBackReferences(l.content,C))),!P&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,h),m=!0;return}}else if(or(i,l,r,u,f,B.captures,C),f.produce(u,C[0].end),u=u.pop(),!P){u=u.safePop(),f.produce(u,h),m=!0;return}}C[0].end>s&&(s=C[0].end,r=!1)}}function C1(i,l,r,s,u,f){let d=u.beginRuleCapturedEOL?0:-1;const p=[];for(let h=u;h;h=h.pop()){const m=h.getRule(i);m instanceof ro&&p.push({rule:m,stack:h})}for(let h=p.pop();h;h=p.pop()){const{ruleScanner:m,findOptions:v}=D1(h.rule,i,h.stack.endRule,r,s===d),b=m.findNextMatchSync(l,s,v);if(b){if(b.ruleId!==l_){u=h.stack.pop();break}b.captureIndices&&b.captureIndices.length&&(f.produce(h.stack,b.captureIndices[0].start),or(i,l,r,h.stack,f,h.rule.whileCaptures,b.captureIndices),f.produce(h.stack,b.captureIndices[0].end),d=b.captureIndices[0].end,b.captureIndices[0].end>s&&(s=b.captureIndices[0].end,r=!1))}else{u=h.stack.pop();break}}return{stack:u,linePos:s,anchorPosition:d,isFirstLine:r}}function O1(i,l,r,s,u,f){const d=k1(i,l,r,s,u,f),p=i.getInjections();if(p.length===0)return d;const h=w1(p,i,l,r,s,u,f);if(!h)return d;if(!d)return h;const m=d.captureIndices[0].start,v=h.captureIndices[0].start;return v<m||h.priorityMatch&&v===m?h:d}function k1(i,l,r,s,u,f){const d=u.getRule(i),{ruleScanner:p,findOptions:h}=s_(d,i,u.endRule,r,s===f),m=p.findNextMatchSync(l,s,h);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function w1(i,l,r,s,u,f,d){let p=Number.MAX_VALUE,h=null,m,v=0;const b=f.contentNameScopesList.getScopeNames();for(let S=0,T=i.length;S<T;S++){const C=i[S];if(!C.matcher(b))continue;const U=l.getRule(C.ruleId),{ruleScanner:P,findOptions:B}=s_(U,l,null,s,u===d),I=P.findNextMatchSync(r,u,B);if(!I)continue;const q=I.captureIndices[0].start;if(!(q>=p)&&(p=q,h=I.captureIndices,m=I.ruleId,v=C.priority,p===u))break}return h?{priorityMatch:v===-1,captureIndices:h,matchedRuleId:m}:null}function s_(i,l,r,s,u){return{ruleScanner:i.compileAG(l,r,s,u),findOptions:0}}function D1(i,l,r,s,u){return{ruleScanner:i.compileWhileAG(l,r,s,u),findOptions:0}}function or(i,l,r,s,u,f,d){if(f.length===0)return;const p=l.content,h=Math.min(f.length,d.length),m=[],v=d[0].end;for(let b=0;b<h;b++){const S=f[b];if(S===null)continue;const T=d[b];if(T.length===0)continue;if(T.start>v)break;for(;m.length>0&&m[m.length-1].endPos<=T.start;)u.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?u.produceFromScopes(m[m.length-1].scopes,T.start):u.produce(s,T.start),S.retokenizeCapturedWithRuleId){const U=S.getName(p,d),P=s.contentNameScopesList.pushAttributed(U,i),B=S.getContentName(p,d),I=P.pushAttributed(B,i),q=s.push(S.retokenizeCapturedWithRuleId,T.start,-1,!1,null,P,I),K=i.createOnigString(p.substring(0,T.end));r_(i,K,r&&T.start===0,T.start,q,u,!1,0),t_(K);continue}const C=S.getName(p,d);if(C!==null){const P=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(C,i);m.push(new L1(P,T.end))}}for(;m.length>0;)u.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var L1=class{constructor(i,l){N(this,"scopes");N(this,"endPos");this.scopes=i,this.endPos=l}};function N1(i,l,r,s,u,f,d,p){return new j1(i,l,r,s,u,f,d,p)}function sg(i,l,r,s,u){const f=ao(l,so),d=a_.getCompiledRuleId(r,s,u.repository);for(const p of f)i.push({debugSelector:l,matcher:p.matcher,ruleId:d,grammar:u,priority:p.priority})}function so(i,l){if(l.length<i.length)return!1;let r=0;return i.every(s=>{for(let u=r;u<l.length;u++)if(M1(l[u],s))return r=u+1,!0;return!1})}function M1(i,l){if(!i)return!1;if(i===l)return!0;const r=l.length;return i.length>r&&i.substr(0,r)===l&&i[r]==="."}var j1=class{constructor(i,l,r,s,u,f,d,p){N(this,"_rootId");N(this,"_lastRuleId");N(this,"_ruleId2desc");N(this,"_includedGrammars");N(this,"_grammarRepository");N(this,"_grammar");N(this,"_injections");N(this,"_basicScopeAttributesProvider");N(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=f,this._onigLib=p,this._basicScopeAttributesProvider=new A1(r,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=d,this._grammar=og(l,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const h of Object.keys(u)){const m=ao(h,so);for(const v of m)this._tokenTypeMatchers.push({matcher:v.matcher,type:u[h]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},l=[],r=this._rootScopeName,s=i.lookup(r);if(s){const u=s.injections;if(u)for(let d in u)sg(l,d,u[d],this,s);const f=this._grammarRepository.injections(r);f&&f.forEach(d=>{const p=this.getExternalGrammar(d);if(p){const h=p.injectionSelector;h&&sg(l,h,p,this,p)}})}return l.sort((u,f)=>u.priority-f.priority),l}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const l=++this._lastRuleId,r=i(l);return this._ruleId2desc[l]=r,r}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,l){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const r=this._grammarRepository.lookup(i);if(r)return this._includedGrammars[i]=og(r,l&&l.$base),this._includedGrammars[i]}}tokenizeLine(i,l,r=0){const s=this._tokenize(i,l,!1,r);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(i,l,r=0){const s=this._tokenize(i,l,!0,r);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(i,l,r,s){this._rootId===-1&&(this._rootId=a_.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!l||l===uf.NULL){u=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),v=this.themeProvider.getDefaults(),b=Za.set(0,m.languageId,m.tokenType,null,v.fontStyle,v.foregroundId,v.backgroundId),S=this.getRule(this._rootId).getName(null,null);let T;S?T=cr.createRootAndLookUpScopeName(S,b,this):T=cr.createRoot("unknown",b),l=new uf(null,this._rootId,-1,-1,!1,null,T,T)}else u=!1,l.reset();i=i+`
108
- `;const f=this.createOnigString(i),d=f.content.length,p=new U1(r,i,this._tokenTypeMatchers,this.balancedBracketSelectors),h=r_(this,f,u,0,l,p,!0,s);return t_(f),{lineLength:d,lineTokens:p,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}};function og(i,l){return i=e1(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=l||i.repository.$self,i}var cr=class wn{constructor(l,r,s){this.parent=l,this.scopePath=r,this.tokenAttributes=s}static fromExtension(l,r){let s=l,u=(l==null?void 0:l.scopePath)??null;for(const f of r)u=Yc.push(u,f.scopeNames),s=new wn(s,u,f.encodedTokenAttributes);return s}static createRoot(l,r){return new wn(null,new Yc(null,l),r)}static createRootAndLookUpScopeName(l,r,s){const u=s.getMetadataForScope(l),f=new Yc(null,l),d=s.themeProvider.themeMatch(f),p=wn.mergeAttributes(r,u,d);return new wn(null,f,p)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(l){return wn.equals(this,l)}static equals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.scopeName!==r.scopeName||l.tokenAttributes!==r.tokenAttributes)return!1;l=l.parent,r=r.parent}while(!0)}static mergeAttributes(l,r,s){let u=-1,f=0,d=0;return s!==null&&(u=s.fontStyle,f=s.foregroundId,d=s.backgroundId),Za.set(l,r.languageId,r.tokenType,null,u,f,d)}pushAttributed(l,r){if(l===null)return this;if(l.indexOf(" ")===-1)return wn._pushAttributed(this,l,r);const s=l.split(/ /g);let u=this;for(const f of s)u=wn._pushAttributed(u,f,r);return u}static _pushAttributed(l,r,s){const u=s.getMetadataForScope(r),f=l.scopePath.push(r),d=s.themeProvider.themeMatch(f),p=wn.mergeAttributes(l.tokenAttributes,u,d);return new wn(l,f,p)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(l){var u;const r=[];let s=this;for(;s&&s!==l;)r.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((u=s.parent)==null?void 0:u.scopePath)??null)}),s=s.parent;return s===l?r.reverse():void 0}},hn,uf=(hn=class{constructor(l,r,s,u,f,d,p,h){N(this,"_stackElementBrand");N(this,"_enterPos");N(this,"_anchorPos");N(this,"depth");this.parent=l,this.ruleId=r,this.beginRuleCapturedEOL=f,this.endRule=d,this.nameScopesList=p,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=u}equals(l){return l===null?!1:hn._equals(this,l)}static _equals(l,r){return l===r?!0:this._structuralEquals(l,r)?cr.equals(l.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.depth!==r.depth||l.ruleId!==r.ruleId||l.endRule!==r.endRule)return!1;l=l.parent,r=r.parent}while(!0)}clone(){return this}static _reset(l){for(;l;)l._enterPos=-1,l._anchorPos=-1,l=l.parent}reset(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(l,r,s,u,f,d,p){return new hn(this,l,r,s,u,f,d,p)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(l){return l.getRule(this.ruleId)}toString(){const l=[];return this._writeString(l,0),"["+l.join(",")+"]"}_writeString(l,r){var s,u;return this.parent&&(r=this.parent._writeString(l,r)),l[r++]=`(${this.ruleId}, ${(s=this.nameScopesList)==null?void 0:s.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,r}withContentNameScopesList(l){return this.contentNameScopesList===l?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,l)}withEndRule(l){return this.endRule===l?this:new hn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,l,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(l){let r=this;for(;r&&r._enterPos===l._enterPos;){if(r.ruleId===l.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var l,r,s;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((l=this.parent)==null?void 0:l.nameScopesList)??null))??[],contentNameScopesList:((s=this.contentNameScopesList)==null?void 0:s.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(l,r){const s=cr.fromExtension((l==null?void 0:l.nameScopesList)??null,r.nameScopesList);return new hn(l,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,s,cr.fromExtension(s,r.contentNameScopesList))}},N(hn,"NULL",new hn(null,0,0,0,!1,null,null,null)),hn),z1=class{constructor(i,l){N(this,"balancedBracketScopes");N(this,"unbalancedBracketScopes");N(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ao(r,so).map(s=>s.matcher)),this.unbalancedBracketScopes=l.flatMap(r=>ao(r,so).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const l of this.unbalancedBracketScopes)if(l(i))return!1;for(const l of this.balancedBracketScopes)if(l(i))return!0;return this.allowAny}},U1=class{constructor(i,l,r,s){N(this,"_emitBinaryTokens");N(this,"_lineText");N(this,"_tokens");N(this,"_binaryTokens");N(this,"_lastTokenEndIndex");N(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=i,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,l){this.produceFromScopes(i.contentNameScopesList,l)}produceFromScopes(i,l){var s;if(this._lastTokenEndIndex>=l)return;if(this._emitBinaryTokens){let u=(i==null?void 0:i.tokenAttributes)??0,f=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(f=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const d=(i==null?void 0:i.getScopeNames())??[];for(const p of this._tokenTypeOverrides)p.matcher(d)&&(u=Za.set(u,0,p.type,null,-1,0,0));this.balancedBracketSelectors&&(f=this.balancedBracketSelectors.match(d))}if(f&&(u=Za.set(u,0,8,f,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=l;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=l;return}const r=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:l,scopes:r}),this._lastTokenEndIndex=l}getResult(i,l){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===l-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,l){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===l-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let s=0,u=this._binaryTokens.length;s<u;s++)r[s]=this._binaryTokens[s];return r}},B1=class{constructor(i,l){N(this,"_grammars",new Map);N(this,"_rawGrammars",new Map);N(this,"_injectionGrammars",new Map);N(this,"_theme");this._onigLib=l,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,l){this._rawGrammars.set(i.scopeName,i),l&&this._injectionGrammars.set(i.scopeName,l)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,l,r,s,u){if(!this._grammars.has(i)){let f=this._rawGrammars.get(i);if(!f)return null;this._grammars.set(i,N1(i,f,l,r,s,u,this,this._onigLib))}return this._grammars.get(i)}},H1=class{constructor(l){N(this,"_options");N(this,"_syncRegistry");N(this,"_ensureGrammarCache");this._options=l,this._syncRegistry=new B1(lo.createFromRawTheme(l.theme,l.colorMap),l.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(l,r){this._syncRegistry.setTheme(lo.createFromRawTheme(l,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(l,r,s){return this.loadGrammarWithConfiguration(l,r,{embeddedLanguages:s})}loadGrammarWithConfiguration(l,r,s){return this._loadGrammar(l,r,s.embeddedLanguages,s.tokenTypes,new z1(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(l){return this._loadGrammar(l,0,null,null,null)}_loadGrammar(l,r,s,u,f){const d=new p1(this._syncRegistry,l);for(;d.Q.length>0;)d.Q.map(p=>this._loadSingleGrammar(p.scopeName)),d.processQueue();return this._grammarForScopeName(l,r,s,u,f)}_loadSingleGrammar(l){this._ensureGrammarCache.has(l)||(this._doLoadSingleGrammar(l),this._ensureGrammarCache.set(l,!0))}_doLoadSingleGrammar(l){const r=this._options.loadGrammar(l);if(r){const s=typeof this._options.getInjections=="function"?this._options.getInjections(l):void 0;this._syncRegistry.addGrammar(r,s)}}addGrammar(l,r=[],s=0,u=null){return this._syncRegistry.addGrammar(l,r),this._grammarForScopeName(l.scopeName,s,u)}_grammarForScopeName(l,r=0,s=null,u=null,f=null){return this._syncRegistry.grammarForScopeName(l,r,s,u,f)}},cf=uf.NULL;const V1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class vr{constructor(l,r,s){this.normal=r,this.property=l,s&&(this.space=s)}}vr.prototype.normal={};vr.prototype.property={};vr.prototype.space=void 0;function o_(i,l){const r={},s={};for(const u of i)Object.assign(r,u.property),Object.assign(s,u.normal);return new vr(r,s,l)}function ff(i){return i.toLowerCase()}class Vt{constructor(l,r){this.attribute=r,this.property=l}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let G1=0;const de=ra(),rt=ra(),df=ra(),Z=ra(),Be=ra(),Ya=ra(),$t=ra();function ra(){return 2**++G1}const hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:rt,commaOrSpaceSeparated:$t,commaSeparated:Ya,number:Z,overloadedBoolean:df,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Qc=Object.keys(hf);class Lf extends Vt{constructor(l,r,s,u){let f=-1;if(super(l,r),ug(this,"space",u),typeof s=="number")for(;++f<Qc.length;){const d=Qc[f];ug(this,Qc[f],(s&hf[d])===hf[d])}}}Lf.prototype.defined=!0;function ug(i,l,r){r&&(i[l]=r)}function Ka(i){const l={},r={};for(const[s,u]of Object.entries(i.properties)){const f=new Lf(s,i.transform(i.attributes||{},s),u,i.space);i.mustUseProperty&&i.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[ff(s)]=s,r[ff(f.attribute)]=s}return new vr(l,r,i.space)}const u_=Ka({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Be,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Z,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Be,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:rt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(i,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function c_(i,l){return l in i?i[l]:l}function f_(i,l){return c_(i,l.toLowerCase())}const I1=Ka({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ya,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Be,autoFocus:de,autoPlay:de,blocking:Be,capture:null,charSet:null,checked:de,cite:null,className:Be,cols:Z,colSpan:null,content:null,contentEditable:rt,controls:de,controlsList:Be,coords:Z|Ya,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:df,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Be,height:Z,hidden:df,high:Z,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Be,itemRef:Be,itemScope:de,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:de,optimum:Z,pattern:null,ping:Be,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Be,required:de,reversed:de,rows:Z,rowSpan:Z,sandbox:Be,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:rt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:f_}),q1=Ka({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$t,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ya,g2:Ya,glyphName:Ya,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c_}),d_=Ka({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,l){return"xlink:"+l.slice(5).toLowerCase()}}),h_=Ka({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:f_}),p_=Ka({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,l){return"xml:"+l.slice(3).toLowerCase()}}),P1=/[A-Z]/g,cg=/-[a-z]/g,Y1=/^data[-\w.:]+$/i;function X1(i,l){const r=ff(l);let s=l,u=Vt;if(r in i.normal)return i.property[i.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Y1.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(cg,Z1);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!cg.test(f)){let d=f.replace(P1,Q1);d.charAt(0)!=="-"&&(d="-"+d),l="data"+d}}u=Lf}return new u(s,l)}function Q1(i){return"-"+i.toLowerCase()}function Z1(i){return i.charAt(1).toUpperCase()}const K1=o_([u_,I1,d_,h_,p_],"html"),m_=o_([u_,q1,d_,h_,p_],"svg"),fg={}.hasOwnProperty;function $1(i,l){const r=l||{};function s(u,...f){let d=s.invalid;const p=s.handlers;if(u&&fg.call(u,i)){const h=String(u[i]);d=fg.call(p,h)?p[h]:s.unknown}if(d)return d.call(this,u,...f)}return s.handlers=r.handlers||{},s.invalid=r.invalid,s.unknown=r.unknown,s}const J1=/["&'<>`]/g,W1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ex=/[|\\{}()[\]^$+*?.]/g,dg=new WeakMap;function tx(i,l){if(i=i.replace(l.subset?nx(l.subset):J1,s),l.subset||l.escapeOnly)return i;return i.replace(W1,r).replace(F1,s);function r(u,f,d){return l.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,d.charCodeAt(f+2),l)}function s(u,f,d){return l.format(u.charCodeAt(0),d.charCodeAt(f+1),l)}}function nx(i){let l=dg.get(i);return l||(l=lx(i),dg.set(i,l)),l}function lx(i){const l=[];let r=-1;for(;++r<i.length;)l.push(i[r].replace(ex,"\\$&"));return new RegExp("(?:"+l.join("|")+")","g")}const ax=/[\dA-Fa-f]/;function ix(i,l,r){const s="&#x"+i.toString(16).toUpperCase();return r&&l&&!ax.test(String.fromCharCode(l))?s:s+";"}const rx=/\d/;function sx(i,l,r){const s="&#"+String(i);return r&&l&&!rx.test(String.fromCharCode(l))?s:s+";"}const ox=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Zc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ux=["cent","copy","divide","gt","lt","not","para","times"],g_={}.hasOwnProperty,pf={};let Xs;for(Xs in Zc)g_.call(Zc,Xs)&&(pf[Zc[Xs]]=Xs);const cx=/[^\dA-Za-z]/;function fx(i,l,r,s){const u=String.fromCharCode(i);if(g_.call(pf,u)){const f=pf[u],d="&"+f;return r&&ox.includes(f)&&!ux.includes(f)&&(!s||l&&l!==61&&cx.test(String.fromCharCode(l)))?d:d+";"}return""}function dx(i,l,r){let s=ix(i,l,r.omitOptionalSemicolons),u;if((r.useNamedReferences||r.useShortestReferences)&&(u=fx(i,l,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!u)&&r.useShortestReferences){const f=sx(i,l,r.omitOptionalSemicolons);f.length<s.length&&(s=f)}return u&&(!r.useShortestReferences||u.length<s.length)?u:s}function Xa(i,l){return tx(i,Object.assign({format:dx},l))}const hx=/^>|^->|<!--|-->|--!>|<!-$/g,px=[">"],mx=["<",">"];function gx(i,l,r,s){return s.settings.bogusComments?"<?"+Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:px}))+">":"<!--"+i.value.replace(hx,u)+"-->";function u(f){return Xa(f,Object.assign({},s.settings.characterReferences,{subset:mx}))}}function _x(i,l,r,s){return"<!"+(s.settings.upperDoctype?"DOCTYPE":"doctype")+(s.settings.tightDoctype?"":" ")+"html>"}function hg(i,l){const r=String(i);if(typeof l!="string")throw new TypeError("Expected character");let s=0,u=r.indexOf(l);for(;u!==-1;)s++,u=r.indexOf(l,u+l.length);return s}function yx(i,l){const r=l||{};return(i[i.length-1]===""?[...i,""]:i).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function vx(i){return i.join(" ").trim()}const bx=/[ \t\n\f\r]/g;function Nf(i){return typeof i=="object"?i.type==="text"?pg(i.value):!1:pg(i)}function pg(i){return i.replace(bx,"")===""}const ct=y_(1),__=y_(-1),xx=[];function y_(i){return l;function l(r,s,u){const f=r?r.children:xx;let d=(s||0)+i,p=f[d];if(!u)for(;p&&Nf(p);)d+=i,p=f[d];return p}}const Sx={}.hasOwnProperty;function v_(i){return l;function l(r,s,u){return Sx.call(i,r.tagName)&&i[r.tagName](r,s,u)}}const Mf=v_({body:Tx,caption:Kc,colgroup:Kc,dd:Ox,dt:Cx,head:Kc,html:Ex,li:Rx,optgroup:kx,option:wx,p:Ax,rp:mg,rt:mg,tbody:Lx,td:gg,tfoot:Nx,th:gg,thead:Dx,tr:Mx});function Kc(i,l,r){const s=ct(r,l,!0);return!s||s.type!=="comment"&&!(s.type==="text"&&Nf(s.value.charAt(0)))}function Ex(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function Tx(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function Ax(i,l,r){const s=ct(r,l);return s?s.type==="element"&&(s.tagName==="address"||s.tagName==="article"||s.tagName==="aside"||s.tagName==="blockquote"||s.tagName==="details"||s.tagName==="div"||s.tagName==="dl"||s.tagName==="fieldset"||s.tagName==="figcaption"||s.tagName==="figure"||s.tagName==="footer"||s.tagName==="form"||s.tagName==="h1"||s.tagName==="h2"||s.tagName==="h3"||s.tagName==="h4"||s.tagName==="h5"||s.tagName==="h6"||s.tagName==="header"||s.tagName==="hgroup"||s.tagName==="hr"||s.tagName==="main"||s.tagName==="menu"||s.tagName==="nav"||s.tagName==="ol"||s.tagName==="p"||s.tagName==="pre"||s.tagName==="section"||s.tagName==="table"||s.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Rx(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="li"}function Cx(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd"))}function Ox(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd")}function mg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="rp"||s.tagName==="rt")}function kx(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="optgroup"}function wx(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="option"||s.tagName==="optgroup")}function Dx(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot"))}function Lx(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot")}function Nx(i,l,r){return!ct(r,l)}function Mx(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="tr"}function gg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="td"||s.tagName==="th")}const jx=v_({body:Bx,colgroup:Hx,head:Ux,html:zx,tbody:Vx});function zx(i){const l=ct(i,-1);return!l||l.type!=="comment"}function Ux(i){const l=new Set;for(const s of i.children)if(s.type==="element"&&(s.tagName==="base"||s.tagName==="title")){if(l.has(s.tagName))return!1;l.add(s.tagName)}const r=i.children[0];return!r||r.type==="element"}function Bx(i){const l=ct(i,-1,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Nf(l.value.charAt(0)))&&!(l.type==="element"&&(l.tagName==="meta"||l.tagName==="link"||l.tagName==="script"||l.tagName==="style"||l.tagName==="template"))}function Hx(i,l,r){const s=__(r,l),u=ct(i,-1,!0);return r&&s&&s.type==="element"&&s.tagName==="colgroup"&&Mf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function Vx(i,l,r){const s=__(r,l),u=ct(i,-1);return r&&s&&s.type==="element"&&(s.tagName==="thead"||s.tagName==="tbody")&&Mf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const Qs={name:[[`
109
- \f\r &/=>`.split(""),`
110
- \f\r "&'/=>\``.split("")],[`\0
111
- \f\r "&'/<=>`.split(""),`\0
112
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
113
- \f\r &>`.split(""),`\0
114
- \f\r "&'<=>\``.split("")],[`\0
115
- \f\r "&'<=>\``.split(""),`\0
116
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Gx(i,l,r,s){const u=s.schema,f=u.space==="svg"?!1:s.settings.omitOptionalTags;let d=u.space==="svg"?s.settings.closeEmptyElements:s.settings.voids.includes(i.tagName.toLowerCase());const p=[];let h;u.space==="html"&&i.tagName==="svg"&&(s.schema=m_);const m=Ix(s,i.properties),v=s.all(u.space==="html"&&i.tagName==="template"?i.content:i);return s.schema=u,v&&(d=!1),(m||!f||!jx(i,l,r))&&(p.push("<",i.tagName,m?" "+m:""),d&&(u.space==="svg"||s.settings.closeSelfClosing)&&(h=m.charAt(m.length-1),(!s.settings.tightSelfClosing||h==="/"||h&&h!=='"'&&h!=="'")&&p.push(" "),p.push("/")),p.push(">")),p.push(v),!d&&(!f||!Mf(i,l,r))&&p.push("</"+i.tagName+">"),p.join("")}function Ix(i,l){const r=[];let s=-1,u;if(l){for(u in l)if(l[u]!==null&&l[u]!==void 0){const f=qx(i,u,l[u]);f&&r.push(f)}}for(;++s<r.length;){const f=i.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&f!=='"'&&f!=="'"&&(r[s]+=" ")}return r.join("")}function qx(i,l,r){const s=X1(i.schema,l),u=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,f=i.settings.allowDangerousCharacters?0:1;let d=i.quote,p;if(s.overloadedBoolean&&(r===s.attribute||r==="")?r=!0:(s.boolean||s.overloadedBoolean)&&(typeof r!="string"||r===s.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const h=Xa(s.attribute,Object.assign({},i.settings.characterReferences,{subset:Qs.name[u][f]}));return r===!0||(r=Array.isArray(r)?(s.commaSeparated?yx:vx)(r,{padLeft:!i.settings.tightCommaSeparatedLists}):String(r),i.settings.collapseEmptyAttributes&&!r)?h:(i.settings.preferUnquoted&&(p=Xa(r,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:Qs.unquoted[u][f]}))),p!==r&&(i.settings.quoteSmart&&hg(r,d)>hg(r,i.alternative)&&(d=i.alternative),p=d+Xa(r,Object.assign({},i.settings.characterReferences,{subset:(d==="'"?Qs.single:Qs.double)[u][f],attribute:!0}))+d),h+(p&&"="+p))}const Px=["<","&"];function b_(i,l,r,s){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?i.value:Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:Px}))}function Yx(i,l,r,s){return s.settings.allowDangerousHtml?i.value:b_(i,l,r,s)}function Xx(i,l,r,s){return s.all(i)}const Qx=$1("type",{invalid:Zx,unknown:Kx,handlers:{comment:gx,doctype:_x,element:Gx,raw:Yx,root:Xx,text:b_}});function Zx(i){throw new Error("Expected node, not `"+i+"`")}function Kx(i){const l=i;throw new Error("Cannot compile unknown node `"+l.type+"`")}const $x={},Jx={},Wx=[];function Fx(i,l){const r=$x,s=r.quote||'"',u=s==='"'?"'":'"';if(s!=='"'&&s!=="'")throw new Error("Invalid quote `"+s+"`, expected `'` or `\"`");return{one:eS,all:tS,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||V1,characterReferences:r.characterReferences||Jx,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?m_:K1,quote:s,alternative:u}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function eS(i,l,r){return Qx(i,l,r,this)}function tS(i){const l=[],r=i&&i.children||Wx;let s=-1;for(;++s<r.length;)l[s]=this.one(r[s],s,i);return l.join("")}function nS(i){return Array.isArray(i)?i:[i]}function bo(i,l=!1){var f;const r=i.split(/(\r?\n)/g);let s=0;const u=[];for(let d=0;d<r.length;d+=2){const p=l?r[d]+(r[d+1]||""):r[d];u.push([p,s]),s+=r[d].length,s+=((f=r[d+1])==null?void 0:f.length)||0}return u}function jf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function x_(i){return i==="ansi"||jf(i)}function zf(i){return i==="none"}function S_(i){return zf(i)}function E_(i,l){var s;if(!l)return i;i.properties||(i.properties={}),(s=i.properties).class||(s.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const r=Array.isArray(l)?l:l.split(/\s+/g);for(const u of r)u&&!i.properties.class.includes(u)&&i.properties.class.push(u);return i}function lS(i,l){let r=0;const s=[];for(const u of l)u>r&&s.push({...i,content:i.content.slice(r,u),offset:i.offset+r}),r=u;return r<i.content.length&&s.push({...i,content:i.content.slice(r),offset:i.offset+r}),s}function aS(i,l){const r=Array.from(l instanceof Set?l:new Set(l)).sort((s,u)=>s-u);return r.length?i.map(s=>s.flatMap(u=>{const f=r.filter(d=>u.offset<d&&d<u.offset+u.content.length).map(d=>d-u.offset).sort((d,p)=>d-p);return f.length?lS(u,f):u})):i}async function T_(i){return Promise.resolve(typeof i=="function"?i():i).then(l=>l.default||l)}function oo(i,l){const r=typeof i=="string"?{}:{...i.colorReplacements},s=typeof i=="string"?i:i.name;for(const[u,f]of Object.entries((l==null?void 0:l.colorReplacements)||{}))typeof f=="string"?r[u]=f:u===s&&Object.assign(r,f);return r}function na(i,l){return i&&((l==null?void 0:l[i==null?void 0:i.toLowerCase()])||i)}function A_(i){const l={};return i.color&&(l.color=i.color),i.bgColor&&(l["background-color"]=i.bgColor),i.fontStyle&&(i.fontStyle&rl.Italic&&(l["font-style"]="italic"),i.fontStyle&rl.Bold&&(l["font-weight"]="bold"),i.fontStyle&rl.Underline&&(l["text-decoration"]="underline")),l}function iS(i){return typeof i=="string"?i:Object.entries(i).map(([l,r])=>`${l}:${r}`).join(";")}function rS(i){const l=bo(i,!0).map(([u])=>u);function r(u){if(u===i.length)return{line:l.length-1,character:l[l.length-1].length};let f=u,d=0;for(const p of l){if(f<p.length)break;f-=p.length,d++}return{line:d,character:f}}function s(u,f){let d=0;for(let p=0;p<u;p++)d+=l[p].length;return d+=f,d}return{lines:l,indexToPos:r,posToIndex:s}}class Rt extends Error{constructor(l){super(l),this.name="ShikiError"}}const R_=new WeakMap;function xo(i,l){R_.set(i,l)}function mr(i){return R_.get(i)}class $a{constructor(...l){N(this,"_stacks",{});N(this,"lang");if(l.length===2){const[r,s]=l;this.lang=s,this._stacks=r}else{const[r,s,u]=l;this.lang=s,this._stacks={[u]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(l,r){return new $a(Object.fromEntries(nS(r).map(s=>[s,cf])),l)}getInternalStack(l=this.theme){return this._stacks[l]}get scopes(){return _g(this._stacks[this.theme])}getScopes(l=this.theme){return _g(this._stacks[l])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function _g(i){const l=[],r=new Set;function s(u){var d;if(r.has(u))return;r.add(u);const f=(d=u==null?void 0:u.nameScopesList)==null?void 0:d.scopeName;f&&l.push(f),u.parent&&s(u.parent)}return s(i),l}function sS(i,l){if(!(i instanceof $a))throw new Rt("Invalid grammar state");return i.getInternalStack(l)}function oS(){const i=new WeakMap;function l(r){if(!i.has(r.meta)){let s=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new Rt(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...u.indexToPos(d),offset:d}}else{const p=u.lines[d.line];if(p===void 0)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${u.lines.length}`);if(d.character<0||d.character>p.length)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${p.length}`);return{...d,offset:u.posToIndex(d.line,d.character)}}};const u=rS(r.source),f=(r.options.decorations||[]).map(d=>({...d,start:s(d.start),end:s(d.end)}));uS(f),i.set(r.meta,{decorations:f,converter:u,source:r.source})}return i.get(r.meta)}return{name:"shiki:decorations",tokens(r){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const u=l(this).decorations.flatMap(p=>[p.start.offset,p.end.offset]);return aS(r,u)},code(r){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const s=l(this),u=Array.from(r.children).filter(b=>b.type==="element"&&b.tagName==="span");if(u.length!==s.converter.lines.length)throw new Rt(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function f(b,S,T,C){const U=u[b];let P="",B=-1,I=-1;if(S===0&&(B=0),T===0&&(I=0),T===Number.POSITIVE_INFINITY&&(I=U.children.length),B===-1||I===-1)for(let K=0;K<U.children.length;K++)P+=C_(U.children[K]),B===-1&&P.length===S&&(B=K+1),I===-1&&P.length===T&&(I=K+1);if(B===-1)throw new Rt(`Failed to find start index for decoration ${JSON.stringify(C.start)}`);if(I===-1)throw new Rt(`Failed to find end index for decoration ${JSON.stringify(C.end)}`);const q=U.children.slice(B,I);if(!C.alwaysWrap&&q.length===U.children.length)p(U,C,"line");else if(!C.alwaysWrap&&q.length===1&&q[0].type==="element")p(q[0],C,"token");else{const K={type:"element",tagName:"span",properties:{},children:q};p(K,C,"wrapper"),U.children.splice(B,q.length,K)}}function d(b,S){u[b]=p(u[b],S,"line")}function p(b,S,T){var P;const C=S.properties||{},U=S.transform||(B=>B);return b.tagName=S.tagName||"span",b.properties={...b.properties,...C,class:b.properties.class},(P=S.properties)!=null&&P.class&&E_(b,S.properties.class),b=U(b,T)||b,b}const h=[],m=s.decorations.sort((b,S)=>S.start.offset-b.start.offset);for(const b of m){const{start:S,end:T}=b;if(S.line===T.line)f(S.line,S.character,T.character,b);else if(S.line<T.line){f(S.line,S.character,Number.POSITIVE_INFINITY,b);for(let C=S.line+1;C<T.line;C++)h.unshift(()=>d(C,b));f(T.line,0,T.character,b)}}h.forEach(b=>b())}}}function uS(i){for(let l=0;l<i.length;l++){const r=i[l];if(r.start.offset>r.end.offset)throw new Rt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=l+1;s<i.length;s++){const u=i[s],f=r.start.offset<u.start.offset&&u.start.offset<r.end.offset,d=r.start.offset<u.end.offset&&u.end.offset<r.end.offset,p=u.start.offset<r.start.offset&&r.start.offset<u.end.offset,h=u.start.offset<r.end.offset&&r.end.offset<u.end.offset;if(f||d||p||h){if(d&&d||p&&h)continue;throw new Rt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function C_(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(C_).join(""):""}const cS=[oS()];function uo(i){return[...i.transformers||[],...cS]}var la=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$c={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function fS(i,l){const r=i.indexOf("\x1B[",l);if(r!==-1){const s=i.indexOf("m",r);return{sequence:i.substring(r+2,s).split(";"),startPosition:r,position:s+1}}return{position:i.length}}function yg(i,l){let r=1;const s=i[l+r++];let u;if(s==="2"){const f=[i[l+r++],i[l+r++],i[l+r]].map(d=>Number.parseInt(d));f.length===3&&!f.some(d=>Number.isNaN(d))&&(u={type:"rgb",rgb:f})}else if(s==="5"){const f=Number.parseInt(i[l+r]);Number.isNaN(f)||(u={type:"table",index:Number(f)})}return[r,u]}function dS(i){const l=[];for(let r=0;r<i.length;r++){const s=i[r],u=Number.parseInt(s);if(!Number.isNaN(u))if(u===0)l.push({type:"resetAll"});else if(u<=9)$c[u]&&l.push({type:"setDecoration",value:$c[u]});else if(u<=29){const f=$c[u-20];f&&l.push({type:"resetDecoration",value:f})}else if(u<=37)l.push({type:"setForegroundColor",value:{type:"named",name:la[u-30]}});else if(u===38){const[f,d]=yg(i,r);d&&l.push({type:"setForegroundColor",value:d}),r+=f}else if(u===39)l.push({type:"resetForegroundColor"});else if(u<=47)l.push({type:"setBackgroundColor",value:{type:"named",name:la[u-40]}});else if(u===48){const[f,d]=yg(i,r);d&&l.push({type:"setBackgroundColor",value:d}),r+=f}else u===49?l.push({type:"resetBackgroundColor"}):u>=90&&u<=97?l.push({type:"setForegroundColor",value:{type:"named",name:la[u-90+8]}}):u>=100&&u<=107&&l.push({type:"setBackgroundColor",value:{type:"named",name:la[u-100+8]}})}return l}function hS(){let i=null,l=null,r=new Set;return{parse(s){const u=[];let f=0;do{const d=fS(s,f),p=d.sequence?s.substring(f,d.startPosition):s.substring(f);if(p.length>0&&u.push({value:p,foreground:i,background:l,decorations:new Set(r)}),d.sequence){const h=dS(d.sequence);for(const m of h)m.type==="resetAll"?(i=null,l=null,r.clear()):m.type==="resetForegroundColor"?i=null:m.type==="resetBackgroundColor"?l=null:m.type==="resetDecoration"&&r.delete(m.value);for(const m of h)m.type==="setForegroundColor"?i=m.value:m.type==="setBackgroundColor"?l=m.value:m.type==="setDecoration"&&r.add(m.value)}f=d.position}while(f<s.length);return u}}}var pS={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function mS(i=pS){function l(p){return i[p]}function r(p){return`#${p.map(h=>Math.max(0,Math.min(h,255)).toString(16).padStart(2,"0")).join("")}`}let s;function u(){if(s)return s;s=[];for(let m=0;m<la.length;m++)s.push(l(la[m]));let p=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let v=0;v<6;v++)for(let b=0;b<6;b++)s.push(r([p[m],p[v],p[b]]));let h=8;for(let m=0;m<24;m++,h+=10)s.push(r([h,h,h]));return s}function f(p){return u()[p]}function d(p){switch(p.type){case"named":return l(p.name);case"rgb":return r(p.rgb);case"table":return f(p.index)}}return{value:d}}function gS(i,l,r){const s=oo(i,r),u=bo(l),f=mS(Object.fromEntries(la.map(p=>{var h;return[p,(h=i.colors)==null?void 0:h[`terminal.ansi${p[0].toUpperCase()}${p.substring(1)}`]]}))),d=hS();return u.map(p=>d.parse(p[0]).map(h=>{let m,v;h.decorations.has("reverse")?(m=h.background?f.value(h.background):i.bg,v=h.foreground?f.value(h.foreground):i.fg):(m=h.foreground?f.value(h.foreground):i.fg,v=h.background?f.value(h.background):void 0),m=na(m,s),v=na(v,s),h.decorations.has("dim")&&(m=_S(m));let b=rl.None;return h.decorations.has("bold")&&(b|=rl.Bold),h.decorations.has("italic")&&(b|=rl.Italic),h.decorations.has("underline")&&(b|=rl.Underline),{content:h.value,offset:p[1],color:m,bgColor:v,fontStyle:b}}))}function _S(i){const l=i.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(l)if(l[3]){const s=Math.round(Number.parseInt(l[3],16)/2).toString(16).padStart(2,"0");return`#${l[1]}${l[2]}${s}`}else return l[2]?`#${l[1]}${l[2]}80`:`#${Array.from(l[1]).map(s=>`${s}${s}`).join("")}80`;const r=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:i}function Uf(i,l,r={}){const{lang:s="text",theme:u=i.getLoadedThemes()[0]}=r;if(jf(s)||zf(u))return bo(l).map(h=>[{content:h[0],offset:h[1]}]);const{theme:f,colorMap:d}=i.setTheme(u);if(s==="ansi")return gS(f,l,r);const p=i.getLanguage(s);if(r.grammarState){if(r.grammarState.lang!==p.name)throw new sl(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${p.name}"`);if(!r.grammarState.themes.includes(f.name))throw new sl(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${f.name}"`)}return vS(l,p,f,d,r)}function yS(...i){if(i.length===2)return mr(i[1]);const[l,r,s={}]=i,{lang:u="text",theme:f=l.getLoadedThemes()[0]}=s;if(jf(u)||zf(f))throw new sl("Plain language does not have grammar state");if(u==="ansi")throw new sl("ANSI language does not have grammar state");const{theme:d,colorMap:p}=l.setTheme(f),h=l.getLanguage(u);return new $a(co(r,h,d,p,s).stateStack,h.name,d.name)}function vS(i,l,r,s,u){const f=co(i,l,r,s,u),d=new $a(co(i,l,r,s,u).stateStack,l.name,r.name);return xo(f.tokens,d),f.tokens}function co(i,l,r,s,u){const f=oo(r,u),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:p=500}=u,h=bo(i);let m=u.grammarState?sS(u.grammarState,r.name)??cf:u.grammarContextCode!=null?co(u.grammarContextCode,l,r,s,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:cf,v=[];const b=[];for(let S=0,T=h.length;S<T;S++){const[C,U]=h[S];if(C===""){v=[],b.push([]);continue}if(d>0&&C.length>=d){v=[],b.push([{content:C,offset:U,color:"",fontStyle:0}]);continue}let P,B,I;u.includeExplanation&&(P=l.tokenizeLine(C,m),B=P.tokens,I=0);const q=l.tokenizeLine2(C,m,p),K=q.tokens.length/2;for(let ne=0;ne<K;ne++){const me=q.tokens[2*ne],te=ne+1<K?q.tokens[2*ne+2]:C.length;if(me===te)continue;const Ue=q.tokens[2*ne+1],mt=na(s[Za.getForeground(Ue)],f),wt=Za.getFontStyle(Ue),Re={content:C.substring(me,te),offset:U+me,color:mt,fontStyle:wt};if(u.includeExplanation){const Ke=[];if(u.includeExplanation!=="scopeName")for(const Ye of r.settings){let Fe;switch(typeof Ye.scope){case"string":Fe=Ye.scope.split(/,/).map(j=>j.trim());break;case"object":Fe=Ye.scope;break;default:continue}Ke.push({settings:Ye,selectors:Fe.map(j=>j.split(/ /))})}Re.explanation=[];let Dt=0;for(;me+Dt<te;){const Ye=B[I],Fe=C.substring(Ye.startIndex,Ye.endIndex);Dt+=Fe.length,Re.explanation.push({content:Fe,scopes:u.includeExplanation==="scopeName"?bS(Ye.scopes):xS(Ke,Ye.scopes)}),I+=1}}v.push(Re)}b.push(v),v=[],m=q.ruleStack}return{tokens:b,stateStack:m}}function bS(i){return i.map(l=>({scopeName:l}))}function xS(i,l){const r=[];for(let s=0,u=l.length;s<u;s++){const f=l[s];r[s]={scopeName:f,themeMatches:ES(i,f,l.slice(0,s))}}return r}function vg(i,l){return i===l||l.substring(0,i.length)===i&&l[i.length]==="."}function SS(i,l,r){if(!vg(i[i.length-1],l))return!1;let s=i.length-2,u=r.length-1;for(;s>=0&&u>=0;)vg(i[s],r[u])&&(s-=1),u-=1;return s===-1}function ES(i,l,r){const s=[];for(const{selectors:u,settings:f}of i)for(const d of u)if(SS(d,l,r)){s.push(f);break}return s}function O_(i,l,r){const s=Object.entries(r.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),u=s.map(h=>{const m=Uf(i,l,{...r,theme:h.theme}),v=mr(m),b=typeof h.theme=="string"?h.theme:h.theme.name;return{tokens:m,state:v,theme:b}}),f=TS(...u.map(h=>h.tokens)),d=f[0].map((h,m)=>h.map((v,b)=>{const S={content:v.content,variants:{},offset:v.offset};return"includeExplanation"in r&&r.includeExplanation&&(S.explanation=v.explanation),f.forEach((T,C)=>{const{content:U,explanation:P,offset:B,...I}=T[m][b];S.variants[s[C].color]=I}),S})),p=u[0].state?new $a(Object.fromEntries(u.map(h=>{var m;return[h.theme,(m=h.state)==null?void 0:m.getInternalStack(h.theme)]})),u[0].state.lang):void 0;return p&&xo(d,p),d}function TS(...i){const l=i.map(()=>[]),r=i.length;for(let s=0;s<i[0].length;s++){const u=i.map(h=>h[s]),f=l.map(()=>[]);l.forEach((h,m)=>h.push(f[m]));const d=u.map(()=>0),p=u.map(h=>h[0]);for(;p.every(h=>h);){const h=Math.min(...p.map(m=>m.content.length));for(let m=0;m<r;m++){const v=p[m];v.content.length===h?(f[m].push(v),d[m]+=1,p[m]=u[m][d[m]]):(f[m].push({...v,content:v.content.slice(0,h)}),p[m]={...v,content:v.content.slice(h),offset:v.offset+h})}}}return l}function fo(i,l,r){let s,u,f,d,p,h;if("themes"in r){const{defaultColor:m="light",cssVariablePrefix:v="--shiki-"}=r,b=Object.entries(r.themes).filter(P=>P[1]).map(P=>({color:P[0],theme:P[1]})).sort((P,B)=>P.color===m?-1:B.color===m?1:0);if(b.length===0)throw new sl("`themes` option must not be empty");const S=O_(i,l,r);if(h=mr(S),m&&!b.find(P=>P.color===m))throw new sl(`\`themes\` option must contain the defaultColor key \`${m}\``);const T=b.map(P=>i.getTheme(P.theme)),C=b.map(P=>P.color);f=S.map(P=>P.map(B=>AS(B,C,v,m))),h&&xo(f,h);const U=b.map(P=>oo(P.theme,r));u=b.map((P,B)=>(B===0&&m?"":`${v+P.color}:`)+(na(T[B].fg,U[B])||"inherit")).join(";"),s=b.map((P,B)=>(B===0&&m?"":`${v+P.color}-bg:`)+(na(T[B].bg,U[B])||"inherit")).join(";"),d=`shiki-themes ${T.map(P=>P.name).join(" ")}`,p=m?void 0:[u,s].join(";")}else if("theme"in r){const m=oo(r.theme,r);f=Uf(i,l,r);const v=i.getTheme(r.theme);s=na(v.bg,m),u=na(v.fg,m),d=v.name,h=mr(f)}else throw new sl("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:u,bg:s,themeName:d,rootStyle:p,grammarState:h}}function AS(i,l,r,s){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=l.map(h=>A_(i.variants[h])),d=new Set(f.flatMap(h=>Object.keys(h))),p={};return f.forEach((h,m)=>{for(const v of d){const b=h[v]||"inherit";if(m===0&&s)p[v]=b;else{const S=v==="color"?"":v==="background-color"?"-bg":`-${v}`,T=r+l[m]+(v==="color"?"":S);p[T]=b}}}),u.htmlStyle=p,u}function ho(i,l,r,s={meta:{},options:r,codeToHast:(u,f)=>ho(i,u,f),codeToTokens:(u,f)=>fo(i,u,f)}){var T,C;let u=l;for(const U of uo(r))u=((T=U.preprocess)==null?void 0:T.call(s,u,r))||u;let{tokens:f,fg:d,bg:p,themeName:h,rootStyle:m,grammarState:v}=fo(i,u,r);const{mergeWhitespaces:b=!0}=r;b===!0?f=CS(f):b==="never"&&(f=OS(f));const S={...s,get source(){return u}};for(const U of uo(r))f=((C=U.tokens)==null?void 0:C.call(S,f))||f;return RS(f,{...r,fg:d,bg:p,themeName:h,rootStyle:m},S,v)}function RS(i,l,r,s=mr(i)){var C,U,P;const u=uo(l),f=[],d={type:"root",children:[]},{structure:p="classic",tabindex:h="0"}=l;let m={type:"element",tagName:"pre",properties:{class:`shiki ${l.themeName||""}`,style:l.rootStyle||`background-color:${l.bg};color:${l.fg}`,...h!==!1&&h!=null?{tabindex:h.toString()}:{},...Object.fromEntries(Array.from(Object.entries(l.meta||{})).filter(([B])=>!B.startsWith("_")))},children:[]},v={type:"element",tagName:"code",properties:{},children:f};const b=[],S={...r,structure:p,addClassToHast:E_,get source(){return r.source},get tokens(){return i},get options(){return l},get root(){return d},get pre(){return m},get code(){return v},get lines(){return b}};if(i.forEach((B,I)=>{var ne,me;I&&(p==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):p==="classic"&&f.push({type:"text",value:`
117
- `}));let q={type:"element",tagName:"span",properties:{class:"line"},children:[]},K=0;for(const te of B){let Ue={type:"element",tagName:"span",properties:{...te.htmlAttrs},children:[{type:"text",value:te.content}]};te.htmlStyle;const mt=iS(te.htmlStyle||A_(te));mt&&(Ue.properties.style=mt);for(const wt of u)Ue=((ne=wt==null?void 0:wt.span)==null?void 0:ne.call(S,Ue,I+1,K,q,te))||Ue;p==="inline"?d.children.push(Ue):p==="classic"&&q.children.push(Ue),K+=te.content.length}if(p==="classic"){for(const te of u)q=((me=te==null?void 0:te.line)==null?void 0:me.call(S,q,I+1))||q;b.push(q),f.push(q)}}),p==="classic"){for(const B of u)v=((C=B==null?void 0:B.code)==null?void 0:C.call(S,v))||v;m.children.push(v);for(const B of u)m=((U=B==null?void 0:B.pre)==null?void 0:U.call(S,m))||m;d.children.push(m)}let T=d;for(const B of u)T=((P=B==null?void 0:B.root)==null?void 0:P.call(S,T))||T;return s&&xo(T,s),T}function CS(i){return i.map(l=>{const r=[];let s="",u=0;return l.forEach((f,d)=>{const h=!(f.fontStyle&&f.fontStyle&rl.Underline);h&&f.content.match(/^\s+$/)&&l[d+1]?(u||(u=f.offset),s+=f.content):s?(h?r.push({...f,offset:u,content:s+f.content}):r.push({content:s,offset:u},f),u=0,s=""):r.push(f)}),r})}function OS(i){return i.map(l=>l.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const s=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!s)return r;const[,u,f,d]=s;if(!u&&!d)return r;const p=[{...r,offset:r.offset+u.length,content:f}];return u&&p.unshift({content:u,offset:r.offset}),d&&p.push({content:d,offset:r.offset+u.length+f.length}),p}))}function kS(i,l,r){var f;const s={meta:{},options:r,codeToHast:(d,p)=>ho(i,d,p),codeToTokens:(d,p)=>fo(i,d,p)};let u=Fx(ho(i,l,r,s));for(const d of uo(r))u=((f=d.postprocess)==null?void 0:f.call(s,u,r))||u;return u}const bg={light:"#333333",dark:"#bbbbbb"},xg={light:"#fffffe",dark:"#1e1e1e"},Sg="__shiki_resolved";function Bf(i){var p,h,m,v,b;if(i!=null&&i[Sg])return i;const l={...i};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:r,fg:s}=l;if(!r||!s){const S=l.settings?l.settings.find(T=>!T.name&&!T.scope):void 0;(p=S==null?void 0:S.settings)!=null&&p.foreground&&(s=S.settings.foreground),(h=S==null?void 0:S.settings)!=null&&h.background&&(r=S.settings.background),!s&&((m=l==null?void 0:l.colors)!=null&&m["editor.foreground"])&&(s=l.colors["editor.foreground"]),!r&&((v=l==null?void 0:l.colors)!=null&&v["editor.background"])&&(r=l.colors["editor.background"]),s||(s=l.type==="light"?bg.light:bg.dark),r||(r=l.type==="light"?xg.light:xg.dark),l.fg=s,l.bg=r}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let u=0;const f=new Map;function d(S){var C;if(f.has(S))return f.get(S);u+=1;const T=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(C=l.colorReplacements)!=null&&C[`#${T}`]?d(S):(f.set(S,T),T)}l.settings=l.settings.map(S=>{var P,B;const T=((P=S.settings)==null?void 0:P.foreground)&&!S.settings.foreground.startsWith("#"),C=((B=S.settings)==null?void 0:B.background)&&!S.settings.background.startsWith("#");if(!T&&!C)return S;const U={...S,settings:{...S.settings}};if(T){const I=d(S.settings.foreground);l.colorReplacements[I]=S.settings.foreground,U.settings.foreground=I}if(C){const I=d(S.settings.background);l.colorReplacements[I]=S.settings.background,U.settings.background=I}return U});for(const S of Object.keys(l.colors||{}))if((S==="editor.foreground"||S==="editor.background"||S.startsWith("terminal.ansi"))&&!((b=l.colors[S])!=null&&b.startsWith("#"))){const T=d(l.colors[S]);l.colorReplacements[T]=l.colors[S],l.colors[S]=T}return Object.defineProperty(l,Sg,{enumerable:!1,writable:!1,value:!0}),l}async function k_(i){return Array.from(new Set((await Promise.all(i.filter(l=>!x_(l)).map(async l=>await T_(l).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function w_(i){return(await Promise.all(i.map(async r=>S_(r)?null:Bf(await T_(r))))).filter(r=>!!r)}class wS extends H1{constructor(r,s,u,f={}){super(r);N(this,"_resolvedThemes",new Map);N(this,"_resolvedGrammars",new Map);N(this,"_langMap",new Map);N(this,"_langGraph",new Map);N(this,"_textmateThemeCache",new WeakMap);N(this,"_loadedThemesCache",null);N(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=s,this._langs=u,this._alias=f,this._themes.map(d=>this.loadTheme(d)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const s=Bf(r);return s.name&&(this._resolvedThemes.set(s.name,s),this._loadedThemesCache=null),s}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let s=this._textmateThemeCache.get(r);s||(s=lo.createFromRawTheme(r),this._textmateThemeCache.set(r,s)),this._syncRegistry.setTheme(s)}getGrammar(r){if(this._alias[r]){const s=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],s.has(r))throw new Rt(`Circular alias \`${Array.from(s).join(" -> ")} -> ${r}\``);s.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var d,p,h,m;if(this.getGrammar(r.name))return;const s=new Set([...this._langMap.values()].filter(v=>{var b;return(b=v.embeddedLangsLazy)==null?void 0:b.includes(r.name)}));this._resolver.addLanguage(r);const u={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const f=this.loadGrammarWithConfiguration(r.scopeName,1,u);if(f.name=r.name,this._resolvedGrammars.set(r.name,f),r.aliases&&r.aliases.forEach(v=>{this._alias[v]=r.name}),this._loadedLanguagesCache=null,s.size)for(const v of s)this._resolvedGrammars.delete(v.name),this._loadedLanguagesCache=null,(p=(d=this._syncRegistry)==null?void 0:d._injectionGrammars)==null||p.delete(v.scopeName),(m=(h=this._syncRegistry)==null?void 0:h._grammars)==null||m.delete(v.scopeName),this.loadLanguage(this._langMap.get(v.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const f of r)this.resolveEmbeddedLanguages(f);const s=Array.from(this._langGraph.entries()),u=s.filter(([f,d])=>!d);if(u.length){const f=s.filter(([d,p])=>{var h;return p&&((h=p.embeddedLangs)==null?void 0:h.some(m=>u.map(([v])=>v).includes(m)))}).filter(d=>!u.includes(d));throw new Rt(`Missing languages ${u.map(([d])=>`\`${d}\``).join(", ")}, required by ${f.map(([d])=>`\`${d}\``).join(", ")}`)}for(const[f,d]of s)this._resolver.addLanguage(d);for(const[f,d]of s)this.loadLanguage(d)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const s of r.embeddedLangs)this._langGraph.set(s,this._langMap.get(s))}}class DS{constructor(l,r){N(this,"_langs",new Map);N(this,"_scopeToLang",new Map);N(this,"_injections",new Map);N(this,"_onigLib");this._onigLib={createOnigScanner:s=>l.createScanner(s),createOnigString:s=>l.createString(s)},r.forEach(s=>this.addLanguage(s))}get onigLib(){return this._onigLib}getLangRegistration(l){return this._langs.get(l)}loadGrammar(l){return this._scopeToLang.get(l)}addLanguage(l){this._langs.set(l.name,l),l.aliases&&l.aliases.forEach(r=>{this._langs.set(r,l)}),this._scopeToLang.set(l.scopeName,l),l.injectTo&&l.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(l.scopeName)})}getInjections(l){const r=l.split(".");let s=[];for(let u=1;u<=r.length;u++){const f=r.slice(0,u).join(".");s=[...s,...this._injections.get(f)||[]]}return s}}let rr=0;function LS(i){rr+=1,i.warnings!==!1&&rr>=10&&rr%10===0&&console.warn(`[Shiki] ${rr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let l=!1;if(!i.engine)throw new Rt("`engine` option is required for synchronous mode");const r=(i.langs||[]).flat(1),s=(i.themes||[]).flat(1).map(Bf),u=new DS(i.engine,r),f=new wS(u,s,r,i.langAlias);let d;function p(I){P();const q=f.getGrammar(typeof I=="string"?I:I.name);if(!q)throw new Rt(`Language \`${I}\` not found, you may need to load it first`);return q}function h(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};P();const q=f.getTheme(I);if(!q)throw new Rt(`Theme \`${I}\` not found, you may need to load it first`);return q}function m(I){P();const q=h(I);d!==I&&(f.setTheme(q),d=I);const K=f.getColorMap();return{theme:q,colorMap:K}}function v(){return P(),f.getLoadedThemes()}function b(){return P(),f.getLoadedLanguages()}function S(...I){P(),f.loadLanguages(I.flat(1))}async function T(...I){return S(await k_(I))}function C(...I){P();for(const q of I.flat(1))f.loadTheme(q)}async function U(...I){return P(),C(await w_(I))}function P(){if(l)throw new Rt("Shiki instance has been disposed")}function B(){l||(l=!0,f.dispose(),rr-=1)}return{setTheme:m,getTheme:h,getLanguage:p,getLoadedThemes:v,getLoadedLanguages:b,loadLanguage:T,loadLanguageSync:S,loadTheme:U,loadThemeSync:C,dispose:B,[Symbol.dispose]:B}}async function NS(i={}){i.loadWasm;const[l,r,s]=await Promise.all([w_(i.themes||[]),k_(i.langs||[]),i.engine||Xg(i.loadWasm||Fb())]);return LS({...i,themes:l,langs:r,engine:s})}async function MS(i={}){const l=await NS(i);return{getLastGrammarState:(...r)=>yS(l,...r),codeToTokensBase:(r,s)=>Uf(l,r,s),codeToTokensWithThemes:(r,s)=>O_(l,r,s),codeToTokens:(r,s)=>fo(l,r,s),codeToHast:(r,s)=>ho(l,r,s),codeToHtml:(r,s)=>kS(l,r,s),...l,getInternalContext:()=>l}}function jS(i,l,r){let s,u,f;{const p=i;s=p.langs,u=p.themes,f=p.engine}async function d(p){function h(T){if(typeof T=="string"){if(x_(T))return[];const C=s[T];if(!C)throw new sl(`Language \`${T}\` is not included in this bundle. You may want to load it from external source.`);return C}return T}function m(T){if(S_(T))return"none";if(typeof T=="string"){const C=u[T];if(!C)throw new sl(`Theme \`${T}\` is not included in this bundle. You may want to load it from external source.`);return C}return T}const v=(p.themes??[]).map(T=>m(T)),b=(p.langs??[]).map(T=>h(T)),S=await MS({engine:p.engine??f(),...p,themes:v,langs:b});return{...S,loadLanguage(...T){return S.loadLanguage(...T.map(h))},loadTheme(...T){return S.loadTheme(...T.map(m))}}}return d}function zS(i){let l;async function r(s={}){if(l){const u=await l;return await Promise.all([u.loadTheme(...s.themes||[]),u.loadLanguage(...s.langs||[])]),u}else return l=i({...s,themes:s.themes||[],langs:s.langs||[]}),l}return r}function US(i){const l=zS(i);return{getSingletonHighlighter(r){return l(r)},async codeToHtml(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHtml(r,s)},async codeToHast(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHast(r,s)},async codeToTokens(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await l({langs:[s.lang],themes:Object.values(s.themes).filter(Boolean)})).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const BS=jS({langs:Nb,themes:jb,engine:()=>Xg(x(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:HS}=US(BS);let sr=null;async function VS(){if(sr)return sr;try{sr={attachmentBaseUrl:(await(await fetch("/api/config")).json()).fileAttachmentBaseUrl||""}}catch{sr={attachmentBaseUrl:""}}return sr}function GS(i,l){return l?i.replace(/attach:\/\/([^\s)]+)/g,(r,s)=>`${l}/${s}`):i}function D_(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}const IS={heading({text:i,depth:l}){const r=D_(i),s=i.replace(/#([a-z0-9]+-[a-z0-9]+)/gi,(u,f)=>`<a href="/detail/${f}">#${f}</a>`);return`<h${l} id="${r}">${s}</h${l}>`}};Te.use({renderer:IS});function qS(i){return i.split(`
118
- `).map(l=>/^\s*#{1,6}\s/.test(l)?l:l.replace(new RegExp("(?<![[\\w/])#([a-z0-9]+-[a-z0-9]+)(?![(\\]\\w])","gi"),(r,s)=>`[#${s}](/detail/${s})`)).join(`
119
- `)}const Eg=new Map,Tg={open:{bg:"rgba(38,139,210,0.12)",text:"#268bd2"},in_progress:{bg:"rgba(181,137,0,0.12)",text:"#b58900"},blocked:{bg:"rgba(220,50,47,0.12)",text:"#dc322f"},closed:{bg:"rgba(133,153,0,0.12)",text:"#859900"}};function PS(i,l){if(!l){const u=(i.description||"").replace(/[#*`\[\]]/g,"").trim();return u.slice(0,120)+(u.length>120?"...":"")}const r={description:i.description,"acceptance-criteria":i.acceptance,notes:i.notes,design:i.design};if(r[l]){const s=r[l].replace(/[#*`\[\]]/g,"").trim();return s.slice(0,150)+(s.length>150?"...":"")}for(const s of[i.description,i.acceptance,i.notes,i.design]){if(!s)continue;const u=s.split(`
120
- `);for(let f=0;f<u.length;f++){const d=u[f].match(/^#{1,6}\s+(.+)/);if(d&&D_(d[1])===l){const p=[];for(let m=f+1;m<u.length&&!/^#{1,6}\s/.test(u[m]);m++)p.push(u[m]);const h=p.join(" ").replace(/[#*`\[\]]/g,"").trim();return h.slice(0,150)+(h.length>150?"...":"")}}}return""}function YS({issue:i,fragment:l,style:r}){const s=Tg[i.status]||Tg.open,u=new Date(i.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"}),f=PS(i,l);return _.jsxs("div",{className:"fixed z-50 rounded-lg shadow-lg pointer-events-none",style:{...r,width:"320px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)"},children:[_.jsxs("div",{style:{padding:"12px 14px",borderBottom:"1px solid var(--border-subtle)"},children:[_.jsxs("div",{className:"flex items-center gap-1.5 text-xs mb-1.5",style:{color:"var(--text-tertiary)"},children:[_.jsx("span",{children:i.id}),l&&_.jsxs(_.Fragment,{children:[_.jsx("span",{children:"·"}),_.jsx("span",{style:{color:"var(--accent)"},children:l})]}),_.jsx("span",{children:"·"}),_.jsx("span",{children:u})]}),_.jsx("div",{className:"font-semibold text-sm mb-2",style:{color:"var(--text-primary)",lineHeight:1.3},children:i.title}),_.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium",style:{background:s.bg,color:s.text},children:[_.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:s.text}}),i.status.replace("_"," ")]})]}),f&&_.jsx("div",{className:"text-xs px-3.5 py-2.5",style:{color:"var(--text-secondary)",lineHeight:1.5},children:f}),_.jsxs("div",{className:"flex items-center gap-2 text-xs px-3.5 py-2",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:[_.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono",style:{background:"var(--bg-hover)",fontSize:"11px"},children:i.issue_type}),i.assignee&&_.jsxs(_.Fragment,{children:[_.jsx("span",{children:"·"}),_.jsx("span",{children:i.assignee})]}),i.priority>0&&_.jsxs(_.Fragment,{children:[_.jsx("span",{children:"·"}),_.jsxs("span",{children:["P",i.priority]})]})]})]})}function mf({content:i}){const[l,r]=X.useState(""),[s,u]=X.useState(null),f=X.useRef(null),d=X.useRef(),p=po(),h=X.useCallback(b=>{var I,q;const S=(q=(I=b.target).closest)==null?void 0:q.call(I,"a[href*='/detail/']");if(!S)return;const T=S.getAttribute("href")||"",[C,U]=T.split("#"),P=C.match(/\/detail\/(.+)/);if(!P)return;const B=P[1];clearTimeout(d.current),d.current=setTimeout(async()=>{let K=Eg.get(B)??null;if(K||(K=await p.fetchIssue(B),K&&Eg.set(B,K)),K){const ne=S.getBoundingClientRect();u({issue:K,fragment:U,x:ne.left,y:ne.bottom+6})}},300)},[p]),m=X.useCallback(b=>{var T,C;(C=(T=b.target).closest)!=null&&C.call(T,"a[href*='/detail/']")&&(clearTimeout(d.current),u(null))},[]),v=X.useCallback(()=>{clearTimeout(d.current),u(null)},[]);return X.useEffect(()=>{const b=f.current;if(b)return b.addEventListener("mouseover",h),b.addEventListener("mouseout",m),window.addEventListener("scroll",v,!0),()=>{b.removeEventListener("mouseover",h),b.removeEventListener("mouseout",m),window.removeEventListener("scroll",v,!0),clearTimeout(d.current)}},[h,m,v]),X.useEffect(()=>{if(!i){r("");return}let b=!1;async function S(){const T=await VS();let C=GS(i,T.attachmentBaseUrl);C=qS(C);const U=Te.lexer(C),P=[];Te.walkTokens(U,ne=>{ne.type==="code"&&P.push({code:ne.text,lang:ne.lang||"text"})});const B=await Promise.all(P.map(async ne=>{try{return await HS(ne.code,{lang:ne.lang,theme:"solarized-light"})}catch{return`<pre><code>${Fm.sanitize(ne.code)}</code></pre>`}}));let I=Te.parser(U),q=0;I=I.replace(/<pre><code[^>]*>[\s\S]*?<\/code><\/pre>/g,()=>B[q++]||"");const K=Fm.sanitize(I,{ADD_TAGS:["span","input"],ADD_ATTR:["style","class","id","type","checked","disabled"]});b||r(K)}return S(),()=>{b=!0}},[i]),_.jsxs(_.Fragment,{children:[_.jsx("div",{ref:f,className:`prose prose-sm max-w-none
121
- prose-pre:rounded prose-pre:border
122
- prose-code:text-sm prose-code:font-mono
123
- prose-headings:font-semibold
124
- prose-a:no-underline hover:prose-a:underline`,style:{"--tw-prose-body":"var(--text-secondary)","--tw-prose-headings":"var(--text-primary)","--tw-prose-links":"#268bd2","--tw-prose-bold":"var(--text-primary)","--tw-prose-counters":"var(--text-tertiary)","--tw-prose-bullets":"var(--text-tertiary)","--tw-prose-hr":"var(--border-default)","--tw-prose-quotes":"var(--text-secondary)","--tw-prose-quote-borders":"var(--border-default)","--tw-prose-code":"var(--text-primary)","--tw-prose-pre-bg":"var(--bg-surface)","--tw-prose-pre-code":"var(--text-primary)","--tw-prose-th-borders":"var(--border-default)","--tw-prose-td-borders":"var(--border-subtle)"},dangerouslySetInnerHTML:{__html:l}}),s&&_.jsx(YS,{issue:s.issue,fragment:s.fragment,style:{left:s.x,top:s.y}})]})}function Zs({label:i,value:l,placeholder:r,onSave:s}){const[u,f]=X.useState(!1),[d,p]=X.useState(l),[h,m]=X.useState("edit"),[v,b]=X.useState(!1);X.useEffect(()=>{u||p(l)},[l,u]);const S=X.useCallback(async()=>{b(!0);try{await s(d),f(!1),m("edit")}finally{b(!1)}},[d,s]),T=X.useCallback(()=>{p(l),f(!1),m("edit")},[l]),C=X.useCallback(U=>{U.key==="s"&&(U.metaKey||U.ctrlKey)&&(U.preventDefault(),S()),U.key==="Escape"&&(U.preventDefault(),T())},[S,T]);return u?_.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--accent)",boxShadow:"var(--shadow-card)"},onKeyDown:C,children:[_.jsxs("div",{className:"flex items-center justify-between mb-2",children:[_.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),_.jsxs("div",{className:"flex overflow-hidden text-xs rounded-md",style:{border:"1px solid var(--border-default)"},children:[_.jsx("button",{onClick:()=>m("edit"),className:"px-2.5 py-1 font-medium",style:{background:h==="edit"?"var(--bg-hover)":"var(--bg-elevated)",color:h==="edit"?"var(--text-primary)":"var(--text-secondary)"},children:"Edit"}),_.jsx("button",{onClick:()=>m("preview"),className:"px-2.5 py-1 font-medium",style:{background:h==="preview"?"var(--bg-hover)":"var(--bg-elevated)",color:h==="preview"?"var(--text-primary)":"var(--text-secondary)",borderLeft:"1px solid var(--border-default)"},children:"Preview"})]})]}),h==="edit"?_.jsx("textarea",{value:d,onChange:U=>p(U.target.value),rows:10,className:"w-full p-3 text-sm font-mono rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:U=>{U.currentTarget.style.borderColor="var(--accent)"},onBlur:U=>{U.currentTarget.style.borderColor="var(--border-default)"},autoFocus:!0}):_.jsx("div",{className:"p-3 rounded-md min-h-[160px]",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)"},children:_.jsx(mf,{content:d})}),_.jsxs("div",{className:"flex items-center justify-end gap-2 mt-3",children:[_.jsx("span",{className:"text-xs mr-auto",style:{color:"var(--text-tertiary)"},children:"Cmd+S to save, Esc to cancel"}),_.jsx("button",{onClick:T,className:"px-3 py-1.5 text-sm rounded-md transition-colors",style:{color:"var(--text-secondary)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},onMouseEnter:U=>{U.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:U=>{U.currentTarget.style.background="var(--bg-elevated)"},children:"Cancel"}),_.jsx("button",{onClick:S,disabled:v,className:"px-3 py-1.5 text-sm rounded-md font-medium disabled:opacity-50 transition-colors",style:{background:"var(--accent)",color:"white"},onMouseEnter:U=>{U.currentTarget.style.opacity="0.9"},onMouseLeave:U=>{U.currentTarget.style.opacity="1"},children:v?"Saving...":"Save"})]})]}):_.jsxs("div",{id:i.toLowerCase().replace(/\s+/g,"-"),className:"group rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[_.jsxs("div",{className:"flex items-center justify-between mb-2",children:[_.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),_.jsx("button",{onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--text-tertiary)"},onMouseEnter:U=>{U.currentTarget.style.color="var(--accent)"},onMouseLeave:U=>{U.currentTarget.style.color="var(--text-tertiary)"},title:`Edit ${i}`,children:_.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})})})]}),l?_.jsx(mf,{content:l}):_.jsx("p",{className:"text-sm italic",style:{color:"var(--text-tertiary)"},children:r||`Add ${i.toLowerCase()}...`})]})}function XS(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function QS(i){const l=[],r=[{label:"Description",id:"description",content:i.description},{label:"Acceptance Criteria",id:"acceptance-criteria",content:i.acceptance},{label:"Notes",id:"notes",content:i.notes},{label:"Design",id:"design",content:i.design}];for(const s of r){if(!s.content)continue;l.push({id:s.id,label:s.label,depth:0});const u=s.content.split(`
125
- `);for(const f of u){const d=f.match(/^(#{1,6})\s+(.+)/);if(!d)continue;const p=d[1].length,h=d[2].replace(/[#*`\[\]]/g,"").trim();l.push({id:XS(h),label:h,depth:p})}}return l}function ZS({issue:i,scrollContainer:l}){const r=QS(i),[s,u]=X.useState(""),f=X.useRef(!1);X.useEffect(()=>{if(!l||r.length===0)return;const h=r.map(v=>v.id).map(v=>document.getElementById(v)).filter(Boolean);if(h.length===0)return;const m=new IntersectionObserver(v=>{if(!f.current){for(const b of v)if(b.isIntersecting){u(b.target.id);break}}},{root:l,rootMargin:"-10% 0px -80% 0px",threshold:0});for(const v of h)m.observe(v);return()=>m.disconnect()},[l,r]);const d=X.useCallback(p=>{const h=document.getElementById(p);h&&(f.current=!0,u(p),h.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{f.current=!1},800))},[]);return r.length<2?null:_.jsxs("div",{className:"sticky top-6",style:{width:"180px",maxHeight:"calc(100vh - 48px)",overflowY:"auto"},children:[_.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider mb-2",style:{color:"var(--text-tertiary)"},children:"On this page"}),_.jsx("nav",{className:"space-y-0.5",children:r.map(p=>_.jsx("button",{onClick:()=>d(p.id),className:"block w-full text-left text-xs truncate rounded px-1.5 py-1 transition-colors bg-transparent border-none cursor-pointer",style:{paddingLeft:`${6+p.depth*10}px`,color:s===p.id?"var(--accent)":"var(--text-tertiary)",fontWeight:p.depth===0?600:400,font:"inherit",fontSize:"12px"},onMouseEnter:h=>{s!==p.id&&(h.currentTarget.style.color="var(--text-secondary)")},onMouseLeave:h=>{s!==p.id&&(h.currentTarget.style.color="var(--text-tertiary)")},title:p.label,children:p.label},p.id))})]})}function Rn({label:i,children:l}){return _.jsxs("div",{className:"px-3 py-2.5 rounded-md",style:{border:"1px solid var(--border-subtle)"},children:[_.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-1.5",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),l]})}function KS({issue:i,onUpdate:l}){const r=i.parent_id||i.parent,s=i.parent_title||i.parent_title,u=i.parent_status||i.parent_status,f=new Date(i.updated_at).toLocaleDateString();return _.jsxs("aside",{className:"shrink-0 p-4 space-y-3 overflow-y-auto",style:{width:"280px",borderLeft:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[_.jsx(Rn,{label:"Status",children:_.jsxs("select",{value:i.status,onChange:d=>l.updateStatus(i.id,d.target.value),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[_.jsx("option",{value:"open",children:"Open"}),_.jsx("option",{value:"in_progress",children:"In Progress"}),_.jsx("option",{value:"closed",children:"Closed"})]})}),i.status==="closed"&&i.close_reason&&_.jsx(Rn,{label:"Close Reason",children:_.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:i.close_reason})}),_.jsx(Rn,{label:"Priority",children:_.jsx("select",{value:i.priority,onChange:d=>l.updatePriority(i.id,Number(d.target.value)),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[0,1,2,3,4].map(d=>_.jsxs("option",{value:d,children:["P",d]},d))})}),_.jsx(Rn,{label:"Type",children:_.jsx(bf,{type:i.issue_type})}),_.jsx(Rn,{label:"Assignee",children:i.assignee?_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:go(i.assignee),color:"var(--text-inverse)"},children:mo(i.assignee)}),_.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:i.assignee})]}):_.jsx("span",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Unassigned"})}),_.jsx(Rn,{label:"Updated",children:_.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:f})}),i.labels&&i.labels.length>0&&_.jsx(Rn,{label:"Labels",children:_.jsx("div",{className:"flex flex-wrap gap-1",children:i.labels.map(d=>_.jsx("span",{className:"px-2 py-0.5 text-xs rounded",style:{background:"var(--bg-hover)",color:"var(--text-secondary)"},children:d},d))})}),r&&_.jsx(Rn,{label:"Parent",children:_.jsxs("a",{href:`/detail/${r}`,className:"block rounded px-1 py-1 -mx-1 transition-colors",style:{color:"var(--text-primary)"},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[_.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[u&&_.jsx(fr,{status:u}),_.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:r})]}),s&&_.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:s})]})}),(()=>{const d=(i.dependencies||[]).filter(p=>p.type==="blocks"&&p.issue_id===i.id);return d.length===0?null:_.jsx(Rn,{label:"Blocked By",children:_.jsx("div",{className:"space-y-1",children:d.map(p=>_.jsx("a",{href:`/detail/${p.depends_on_id}`,className:"block text-xs font-mono px-1 py-0.5 transition-colors",style:{color:"var(--accent)"},onMouseEnter:h=>{h.currentTarget.style.textDecoration="underline"},onMouseLeave:h=>{h.currentTarget.style.textDecoration="none"},children:p.depends_on_id},p.depends_on_id))})})})(),i.dependents&&i.dependents.length>0&&_.jsx(Rn,{label:"Children / Dependents",children:_.jsx("div",{className:"space-y-1",children:i.dependents.map(d=>_.jsxs("a",{href:`/detail/${d.id}`,className:"block text-xs rounded px-1 py-1.5 -mx-1 transition-colors",onMouseEnter:p=>{p.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:p=>{p.currentTarget.style.background="transparent"},children:[_.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[_.jsx(fr,{status:d.status}),_.jsx("span",{className:"font-mono",style:{color:"var(--text-tertiary)"},children:d.id})]}),d.title&&_.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:d.title})]},d.id))})})]})}function $S({comment:i}){const l=i.author||"anonymous",r=mo(l),s=go(l),u=new Date(i.created_at).toLocaleString();return _.jsxs("div",{className:"flex gap-3",children:[_.jsx("div",{className:"flex-shrink-0 w-7 h-7 rounded-full flex items-center justify-center text-xs font-semibold text-white",style:{background:s},title:l,children:r}),_.jsxs("div",{className:"flex-1 min-w-0",children:[_.jsxs("div",{className:"flex items-baseline gap-2",children:[_.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:l}),_.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:u})]}),_.jsx("div",{className:"mt-0.5",children:_.jsx(mf,{content:i.text})})]})]})}function JS({issueId:i,comments:l}){const r=kg(),[s,u]=X.useState(""),f=async()=>{s.trim()&&(await r.addComment(i,s.trim()),u(""))};return _.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[_.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Comments ",l.length>0&&_.jsxs("span",{style:{color:"var(--text-secondary)"},children:["(",l.length,")"]})]}),l.length>0&&_.jsx("div",{className:"flex flex-col gap-4 mb-4",children:l.map(d=>_.jsx($S,{comment:d},d.id))}),_.jsx("div",{className:"flex gap-2",children:_.jsx("textarea",{value:s,onChange:d=>u(d.target.value),placeholder:"Add a comment... (Ctrl+Enter to submit)",rows:3,className:"flex-1 p-2 text-sm rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"},onKeyDown:d=>{d.key==="Enter"&&(d.ctrlKey||d.metaKey)&&f()}})}),_.jsx("button",{onClick:f,className:"mt-2 px-3 py-1.5 text-sm rounded-md font-medium transition-colors",style:{background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-default)"},onMouseEnter:d=>{d.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:d=>{d.currentTarget.style.borderColor="var(--border-default)"},children:"Add Comment"})]})}function WS({issueId:i}){const{issues:l,loading:r}=Qa("issue-detail",{id:i}),s=kg(),u=l[0],f=X.useRef(null);return X.useEffect(()=>{if(!u)return;const d=window.location.hash.slice(1);if(!d)return;const p=setTimeout(()=>{const h=document.getElementById(d);h&&h.scrollIntoView({behavior:"smooth",block:"start"})},500);return()=>clearTimeout(p)},[u]),r?_.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Loading..."}):u?_.jsxs("div",{className:"flex h-full",style:{background:"var(--bg-base)"},children:[_.jsx("div",{className:"shrink-0 p-6 pr-0 hidden xl:block",children:_.jsx(ZS,{issue:u,scrollContainer:f.current})}),_.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-6 space-y-5",children:[_.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:"var(--text-tertiary)"},children:[_.jsx("button",{onClick:()=>window.history.length>1?window.history.back():jl("/board"),className:"flex items-center gap-1 transition-colors bg-transparent border-none cursor-pointer p-0",style:{color:"var(--text-tertiary)",font:"inherit"},onMouseEnter:d=>{d.currentTarget.style.color="var(--accent)"},onMouseLeave:d=>{d.currentTarget.style.color="var(--text-tertiary)"},children:"← Back"}),_.jsx("span",{children:"/"}),_.jsx(yf,{id:u.id})]}),_.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:u.title}),_.jsx(Zs,{label:"Description",value:u.description||"",onSave:d=>s.editText({id:u.id,field:"description",value:d})}),_.jsx(Zs,{label:"Acceptance Criteria",value:u.acceptance||"",placeholder:"Add acceptance criteria...",onSave:d=>s.editText({id:u.id,field:"acceptance",value:d})}),_.jsx(Zs,{label:"Notes",value:u.notes||"",placeholder:"Add notes...",onSave:d=>s.editText({id:u.id,field:"notes",value:d})}),_.jsx(Zs,{label:"Design",value:u.design||"",placeholder:"Add design notes...",onSave:d=>s.editText({id:u.id,field:"design",value:d})}),u.issue_type==="epic"&&u.dependents&&u.dependents.length>0&&_.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[_.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Children (",u.closed_children??0," / ",u.total_children??u.dependents.length,")"]}),_.jsx("div",{className:"space-y-0.5",children:u.dependents.map(d=>_.jsxs("a",{href:`/detail/${d.id}`,className:"flex items-center gap-2.5 px-2 py-2 rounded-md transition-colors",style:{opacity:d.status==="closed"?.6:1},onMouseEnter:p=>{p.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:p=>{p.currentTarget.style.background="transparent"},children:[_.jsx(fr,{status:d.status}),_.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:d.id}),_.jsx("span",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:d.title})]},d.id))})]}),_.jsx(JS,{issueId:u.id,comments:u.comments??[]})]}),_.jsx(KS,{issue:u,onUpdate:s})]}):_.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Issue not found"})}function FS(i){const[l,r]=X.useState(""),s=X.useMemo(()=>{if(!l.trim())return i;const u=l.toLowerCase();return i.filter(f=>f.id.toLowerCase().includes(u)||f.title.toLowerCase().includes(u)||(f.description||"").toLowerCase().includes(u))},[i,l]);return{query:l,setQuery:r,results:s}}function eE(){const[i,l]=X.useState(!1),{issues:r}=Qa("all-issues"),{query:s,setQuery:u,results:f}=FS(r),[d,p]=X.useState(0),h=X.useRef(null);X.useEffect(()=>{const b=S=>{var C;const T=(C=S.target)==null?void 0:C.tagName;S.key==="k"&&(S.metaKey||S.ctrlKey)&&T!=="TEXTAREA"&&(S.preventDefault(),l(!0)),S.key==="Escape"&&i&&(S.preventDefault(),l(!1),u(""),p(0))};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[i,u]),X.useEffect(()=>{i&&setTimeout(()=>{var b;return(b=h.current)==null?void 0:b.focus()},0)},[i]),X.useEffect(()=>p(0),[f]);const m=b=>{const S=f.slice(0,20);b.key==="ArrowDown"&&(b.preventDefault(),p(T=>Math.min(T+1,S.length-1))),b.key==="ArrowUp"&&(b.preventDefault(),p(T=>Math.max(T-1,0))),b.key==="Enter"&&S[d]&&(jl(`/detail/${S[d].id}`),l(!1),u(""))};if(!i)return null;const v=f.slice(0,20);return _.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>{l(!1),u("")},children:[_.jsx("div",{className:"absolute inset-0",style:{background:"var(--bg-overlay)"}}),_.jsxs("div",{className:"relative w-full max-w-lg overflow-hidden",style:{background:"var(--bg-elevated)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},onClick:b=>b.stopPropagation(),children:[_.jsx("input",{ref:h,type:"text",value:s,onChange:b=>u(b.target.value),onKeyDown:m,placeholder:"Search issues...",className:"w-full px-4 py-3 text-sm outline-none",style:{borderBottom:"1px solid var(--border-subtle)",background:"transparent",color:"var(--text-primary)"}}),_.jsxs("div",{className:"max-h-80 overflow-y-auto",children:[v.length===0&&s&&_.jsx("div",{className:"px-4 py-6 text-sm text-center",style:{color:"var(--text-tertiary)"},children:"No results"}),v.map((b,S)=>_.jsxs("button",{onClick:()=>{jl(`/detail/${b.id}`),l(!1),u("")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left transition-colors",style:{background:S===d?"var(--bg-hover)":"transparent"},onMouseEnter:T=>{T.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:T=>{T.currentTarget.style.background=S===d?"var(--bg-hover)":"transparent"},children:[_.jsx("span",{className:"font-mono text-xs w-28 shrink-0",style:{color:"var(--text-tertiary)"},children:b.id}),_.jsx(fr,{status:b.status}),_.jsx("span",{className:"flex-1 truncate",style:{color:"var(--text-primary)"},children:b.title}),_.jsx(vf,{priority:b.priority})]},b.id))]}),_.jsx("div",{className:"px-4 py-2 text-xs",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:"↑↓ navigate · ↵ open · esc close"})]})]})}function tE(){const{loading:i,authEnabled:l,token:r}=_f();return i?_.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg-base)"},children:_.jsx("div",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Loading..."})}):l&&!r?_.jsx(r0,{}):_.jsxs(t0,{children:[_.jsx(eE,{}),_.jsx(i0,{children:s=>{if(s.startsWith("/detail/")){const u=s.replace("/detail/","");return _.jsx(WS,{issueId:u},u)}return s.startsWith("/list")?_.jsx(A0,{}):s.startsWith("/board")||s==="/"?_.jsx(g0,{}):_.jsx("div",{className:"p-6 text-stone-400",children:"View not implemented yet"})}})]})}function nE(){return _.jsx(Wv,{children:_.jsx(tE,{})})}Jv.createRoot(document.getElementById("root")).render(_.jsx(X.StrictMode,{children:_.jsx(nE,{})}));