intlayer-editor 5.3.9 → 5.3.11

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 (456) hide show
  1. package/client/dist/assets/abap-CuzaboPy.js +1 -0
  2. package/client/dist/assets/actionscript-3-BWZb6ht_.js +1 -0
  3. package/client/dist/assets/ada-lbGJHcqN.js +1 -0
  4. package/client/dist/assets/angular-html-DMNHImpm.js +1 -0
  5. package/client/dist/assets/angular-ts-eB8LWD2C.js +1 -0
  6. package/client/dist/assets/apache-ClrZ-IwE.js +1 -0
  7. package/client/dist/assets/apex-DHEJMXht.js +1 -0
  8. package/client/dist/assets/apl-DSpMDkz7.js +1 -0
  9. package/client/dist/assets/applescript-d8h0XnfP.js +1 -0
  10. package/client/dist/assets/ara-D11-aFNM.js +1 -0
  11. package/client/dist/assets/asciidoc-BPN7z6_Y.js +1 -0
  12. package/client/dist/assets/asm-B-o3LjfJ.js +1 -0
  13. package/client/dist/assets/astro-BEfdsCb3.js +1 -0
  14. package/client/dist/assets/awk-DFufGi5b.js +1 -0
  15. package/client/dist/assets/ballerina-DCKmv_4D.js +1 -0
  16. package/client/dist/assets/bat-9J6oqHce.js +1 -0
  17. package/client/dist/assets/beancount-CJ6EEQ2V.js +1 -0
  18. package/client/dist/assets/berry-CufD37jc.js +1 -0
  19. package/client/dist/assets/bibtex-B5xtV7zU.js +1 -0
  20. package/client/dist/assets/bicep-B-_DnH9T.js +1 -0
  21. package/client/dist/assets/blade-jtwiscur.js +1 -0
  22. package/client/dist/assets/bsl-BXaZRMg3.js +1 -0
  23. package/client/dist/assets/c-Du_P13ro.js +1 -0
  24. package/client/dist/assets/cadence-BhCOhF7G.js +1 -0
  25. package/client/dist/assets/cairo-DbSVSKxu.js +1 -0
  26. package/client/dist/assets/{catppuccin-frappe-CD_QflpE.js → catppuccin-frappe-BtitwTYg.js} +1 -1
  27. package/client/dist/assets/{catppuccin-latte-DRW-0cLl.js → catppuccin-latte-CW_h_59B.js} +1 -1
  28. package/client/dist/assets/{catppuccin-macchiato-C-_shW-Y.js → catppuccin-macchiato-CXeUe8zM.js} +1 -1
  29. package/client/dist/assets/{catppuccin-mocha-LGGdnPYs.js → catppuccin-mocha-Cj87Vp-p.js} +1 -1
  30. package/client/dist/assets/clarity-D72Djq1u.js +1 -0
  31. package/client/dist/assets/clojure-I1vGaenB.js +1 -0
  32. package/client/dist/assets/cmake-C07pmjNf.js +1 -0
  33. package/client/dist/assets/cobol-DLiQ7VlT.js +1 -0
  34. package/client/dist/assets/codeql-TbzFAQVx.js +1 -0
  35. package/client/dist/assets/coffee-CN9rYqj2.js +1 -0
  36. package/client/dist/assets/common-lisp-0v_W_vIl.js +1 -0
  37. package/client/dist/assets/coq-DqPPCFWZ.js +1 -0
  38. package/client/dist/assets/cpp-D6jLj3ac.js +1 -0
  39. package/client/dist/assets/crystal-CSXto_ug.js +1 -0
  40. package/client/dist/assets/csharp-t9jp2bdZ.js +1 -0
  41. package/client/dist/assets/css-6ydISZ1j.js +1 -0
  42. package/client/dist/assets/csv-fuZLfV_i.js +1 -0
  43. package/client/dist/assets/cue-DZa-IHfU.js +1 -0
  44. package/client/dist/assets/cypher-B8QFFMEI.js +1 -0
  45. package/client/dist/assets/d-BWEIE2mf.js +1 -0
  46. package/client/dist/assets/dart-Bc9cAHms.js +1 -0
  47. package/client/dist/assets/dax-B4O06LmT.js +1 -0
  48. package/client/dist/assets/desktop-C480DKyb.js +1 -0
  49. package/client/dist/assets/diff-7a-uGD01.js +1 -0
  50. package/client/dist/assets/{docker-COcR7UxN.js → docker-BcOcwvcX.js} +1 -1
  51. package/client/dist/assets/dotenv-RqsQB2BX.js +1 -0
  52. package/client/dist/assets/dream-maker-CwZzURTK.js +1 -0
  53. package/client/dist/assets/edge-7WOHoDwQ.js +1 -0
  54. package/client/dist/assets/elixir-C8UL7p8J.js +1 -0
  55. package/client/dist/assets/elm-BVJIbDWr.js +1 -0
  56. package/client/dist/assets/emacs-lisp-BGJzjoMF.js +1 -0
  57. package/client/dist/assets/erb-2bVwkg7V.js +1 -0
  58. package/client/dist/assets/erlang-Buh6fjeB.js +1 -0
  59. package/client/dist/assets/fennel-BN5cw1dr.js +1 -0
  60. package/client/dist/assets/fish-BIU4F8Lx.js +1 -0
  61. package/client/dist/assets/fluent-DPdCYVuL.js +1 -0
  62. package/client/dist/assets/fortran-fixed-form-DMTTIQFJ.js +1 -0
  63. package/client/dist/assets/fortran-free-form-FZM7PgI4.js +1 -0
  64. package/client/dist/assets/fsharp-B93pd7q9.js +1 -0
  65. package/client/dist/assets/gdresource-I9Onfmy0.js +1 -0
  66. package/client/dist/assets/gdscript-E0a2itvD.js +1 -0
  67. package/client/dist/assets/gdshader-C8KBts9d.js +1 -0
  68. package/client/dist/assets/genie-CZ1jFyQ7.js +1 -0
  69. package/client/dist/assets/{gherkin--30QC5Em.js → gherkin-B-23jXpc.js} +1 -1
  70. package/client/dist/assets/git-commit-COHn4upB.js +1 -0
  71. package/client/dist/assets/{git-rebase-B-v9cOL2.js → git-rebase-D7M3XCeK.js} +1 -1
  72. package/client/dist/assets/gleam-CFlCaHJ1.js +1 -0
  73. package/client/dist/assets/glimmer-js-DTuRZoQB.js +1 -0
  74. package/client/dist/assets/glimmer-ts-BGh34NOZ.js +1 -0
  75. package/client/dist/assets/glsl-D6Vaizag.js +1 -0
  76. package/client/dist/assets/gnuplot-DwPOQrla.js +1 -0
  77. package/client/dist/assets/go-DSI44sMb.js +1 -0
  78. package/client/dist/assets/graphql-CzqHVaah.js +1 -0
  79. package/client/dist/assets/groovy-DnUZ9V9w.js +1 -0
  80. package/client/dist/assets/gruvbox-dark-hard-BNFkGX63.js +1 -0
  81. package/client/dist/assets/gruvbox-dark-medium-fPwOVgKi.js +1 -0
  82. package/client/dist/assets/gruvbox-dark-soft-rn_0Wvg-.js +1 -0
  83. package/client/dist/assets/gruvbox-light-hard-DPpLE3g-.js +1 -0
  84. package/client/dist/assets/gruvbox-light-medium-BBkKoO69.js +1 -0
  85. package/client/dist/assets/gruvbox-light-soft-Ism0zgIY.js +1 -0
  86. package/client/dist/assets/hack-BfoaVUmQ.js +1 -0
  87. package/client/dist/assets/haml-BjHfNtf2.js +1 -0
  88. package/client/dist/assets/handlebars-DN1vFC8Y.js +1 -0
  89. package/client/dist/assets/haskell-C97r5ta3.js +1 -0
  90. package/client/dist/assets/haxe-BVnfiMDc.js +1 -0
  91. package/client/dist/assets/hcl-BRpPFe2i.js +1 -0
  92. package/client/dist/assets/hjson-Bgmt9vRU.js +1 -0
  93. package/client/dist/assets/hlsl-DgLWmsUM.js +1 -0
  94. package/client/dist/assets/html-DQt1crSz.js +1 -0
  95. package/client/dist/assets/html-derivative-OoyioBIu.js +1 -0
  96. package/client/dist/assets/http-B1MEeU_C.js +1 -0
  97. package/client/dist/assets/hxml-BYnPWQ3Z.js +1 -0
  98. package/client/dist/assets/hy--6ePOT02.js +1 -0
  99. package/client/dist/assets/imba-ZOHZ3W7h.js +1 -0
  100. package/client/dist/assets/index-Ce5nn7ya.js +298 -0
  101. package/client/dist/assets/index-owxiUI62.css +1 -0
  102. package/client/dist/assets/{ini-BjABl1g7.js → ini-m1-xr6K8.js} +1 -1
  103. package/client/dist/assets/java-DzEvymKG.js +1 -0
  104. package/client/dist/assets/javascript-DFxyEsuO.js +1 -0
  105. package/client/dist/assets/jinja-CbuI_e8q.js +1 -0
  106. package/client/dist/assets/jison-BThBLrI1.js +1 -0
  107. package/client/dist/assets/json-BLmTiKMJ.js +1 -0
  108. package/client/dist/assets/json5-C5z8RDkF.js +1 -0
  109. package/client/dist/assets/jsonc-CuA0FkKk.js +1 -0
  110. package/client/dist/assets/jsonl-CBcFDUab.js +1 -0
  111. package/client/dist/assets/jsonnet-CCBwdCM5.js +1 -0
  112. package/client/dist/assets/jssm-BtZDPN4U.js +1 -0
  113. package/client/dist/assets/jsx-Dog42FfX.js +1 -0
  114. package/client/dist/assets/julia-QW6AWql5.js +1 -0
  115. package/client/dist/assets/kotlin-MsGODAH1.js +1 -0
  116. package/client/dist/assets/kusto-BEWisg9D.js +1 -0
  117. package/client/dist/assets/latex-D6g4IvIb.js +1 -0
  118. package/client/dist/assets/lean-Bsgk112v.js +1 -0
  119. package/client/dist/assets/less-CL8eqPyx.js +1 -0
  120. package/client/dist/assets/liquid-DwnqW0Hw.js +1 -0
  121. package/client/dist/assets/llvm-CQsJUk-H.js +1 -0
  122. package/client/dist/assets/log-DnFCEHlQ.js +1 -0
  123. package/client/dist/assets/{logo-IuBKFhSY.js → logo-CkBIg-lq.js} +1 -1
  124. package/client/dist/assets/lua-DgKrCl_t.js +1 -0
  125. package/client/dist/assets/luau-CqbnzJ-x.js +1 -0
  126. package/client/dist/assets/make-CSWLD5xG.js +1 -0
  127. package/client/dist/assets/markdown-CfdnVo6U.js +1 -0
  128. package/client/dist/assets/marko-Ddcey6ql.js +1 -0
  129. package/client/dist/assets/matlab-LZB065En.js +1 -0
  130. package/client/dist/assets/mdc-BSBcOUr9.js +1 -0
  131. package/client/dist/assets/mdx-B_I5quxp.js +1 -0
  132. package/client/dist/assets/mermaid-CXyZL9PL.js +1 -0
  133. package/client/dist/assets/mipsasm-BwEeJ4dY.js +1 -0
  134. package/client/dist/assets/mojo-DHZoLXvC.js +1 -0
  135. package/client/dist/assets/move-_bK4LppZ.js +1 -0
  136. package/client/dist/assets/narrat-CElRTuuq.js +1 -0
  137. package/client/dist/assets/nextflow--CXHmARm.js +1 -0
  138. package/client/dist/assets/nginx-C1Yc5-eE.js +1 -0
  139. package/client/dist/assets/nim-CuWg7p6V.js +1 -0
  140. package/client/dist/assets/nix-C-iLU9M_.js +1 -0
  141. package/client/dist/assets/nushell-BsWK4Erq.js +1 -0
  142. package/client/dist/assets/objective-c-JQgEzMhr.js +1 -0
  143. package/client/dist/assets/objective-cpp-CAZ1NrJr.js +1 -0
  144. package/client/dist/assets/ocaml-CANNzmGA.js +1 -0
  145. package/client/dist/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  146. package/client/dist/assets/pascal-CUU_xxmv.js +1 -0
  147. package/client/dist/assets/perl-Bcivc5lk.js +1 -0
  148. package/client/dist/assets/php-XhOgcbHd.js +1 -0
  149. package/client/dist/assets/plsql-Csx-KgEj.js +1 -0
  150. package/client/dist/assets/po-CZKeM8oa.js +1 -0
  151. package/client/dist/assets/polar-C9vCuADp.js +1 -0
  152. package/client/dist/assets/postcss-BgR6IBVD.js +1 -0
  153. package/client/dist/assets/powerquery-BZR5jcz4.js +1 -0
  154. package/client/dist/assets/powershell-Q0c5v3Fs.js +1 -0
  155. package/client/dist/assets/prisma-yac1gHcz.js +1 -0
  156. package/client/dist/assets/prolog-S2snRG_L.js +1 -0
  157. package/client/dist/assets/proto-B2asqJ_e.js +1 -0
  158. package/client/dist/assets/pug-Ud6KBVuk.js +1 -0
  159. package/client/dist/assets/puppet-qBI2rw6w.js +1 -0
  160. package/client/dist/assets/purescript-CYAc_BdW.js +1 -0
  161. package/client/dist/assets/python-N_fYzn4k.js +1 -0
  162. package/client/dist/assets/qml-BdV_SRG6.js +1 -0
  163. package/client/dist/assets/qss-xAjwRsjP.js +1 -0
  164. package/client/dist/assets/r-15AZnl_Y.js +1 -0
  165. package/client/dist/assets/racket-DfaBuPIG.js +1 -0
  166. package/client/dist/assets/raku-DARByBhS.js +1 -0
  167. package/client/dist/assets/razor-R9tSNI_9.js +1 -0
  168. package/client/dist/assets/reg-eiUPDiaM.js +1 -0
  169. package/client/dist/assets/regexp-we84whta.js +1 -0
  170. package/client/dist/assets/{rel-DJlmqQ1C.js → rel-CLLaPSAr.js} +1 -1
  171. package/client/dist/assets/riscv-BOXXFo5k.js +1 -0
  172. package/client/dist/assets/rose-pine-BZeqa82Q.js +1 -0
  173. package/client/dist/assets/rose-pine-dawn-Dr8AihTi.js +1 -0
  174. package/client/dist/assets/rose-pine-moon-Bo9_Wbqy.js +1 -0
  175. package/client/dist/assets/rst-C0h9YO46.js +1 -0
  176. package/client/dist/assets/ruby-Cwn6T5Qb.js +1 -0
  177. package/client/dist/assets/rust-A6NUYkDQ.js +1 -0
  178. package/client/dist/assets/sas-Yvy-jB3G.js +1 -0
  179. package/client/dist/assets/sass-DxKx6i08.js +1 -0
  180. package/client/dist/assets/scala-urTpdRWL.js +1 -0
  181. package/client/dist/assets/scheme-DfDtJdlR.js +1 -0
  182. package/client/dist/assets/scss-DkCoLJBz.js +1 -0
  183. package/client/dist/assets/sdbl-Cflpv1WG.js +1 -0
  184. package/client/dist/assets/shaderlab-DprXpeCX.js +1 -0
  185. package/client/dist/assets/shellscript-Cs-zf8G1.js +1 -0
  186. package/client/dist/assets/{shellsession-C_rIy8kc.js → shellsession-C_x4i0EA.js} +1 -1
  187. package/client/dist/assets/smalltalk-CvaLaq0K.js +1 -0
  188. package/client/dist/assets/solidity-BWEW8IEt.js +1 -0
  189. package/client/dist/assets/soy-CV61xlNT.js +1 -0
  190. package/client/dist/assets/sparql-Ccgs8XSw.js +1 -0
  191. package/client/dist/assets/splunk-RtPzT0sk.js +1 -0
  192. package/client/dist/assets/sql-D8pCRXw6.js +1 -0
  193. package/client/dist/assets/ssh-config-BhVUZvoY.js +1 -0
  194. package/client/dist/assets/stata-nt34lD2m.js +1 -0
  195. package/client/dist/assets/stylus-q-cGTZ-j.js +1 -0
  196. package/client/dist/assets/svelte-Ue2gIPbO.js +1 -0
  197. package/client/dist/assets/swift-zJDMamB5.js +1 -0
  198. package/client/dist/assets/system-verilog-6Pjza-7V.js +1 -0
  199. package/client/dist/assets/systemd-BzvtnNXz.js +1 -0
  200. package/client/dist/assets/talonscript-B5KooqzE.js +1 -0
  201. package/client/dist/assets/tasl-actOPUJz.js +1 -0
  202. package/client/dist/assets/tcl-BX3nBwNA.js +1 -0
  203. package/client/dist/assets/templ-CJFw_bmP.js +1 -0
  204. package/client/dist/assets/terraform-BWjU2UX-.js +1 -0
  205. package/client/dist/assets/tex-C7L-Ug2D.js +1 -0
  206. package/client/dist/assets/tokyo-night-hegEt444.js +1 -0
  207. package/client/dist/assets/toml-x-gNw4Ca.js +1 -0
  208. package/client/dist/assets/ts-tags-B_RTbvdJ.js +1 -0
  209. package/client/dist/assets/tsx-CHbqLUsD.js +1 -0
  210. package/client/dist/assets/{turtle-BMR_PYu6.js → turtle-imGXYByQ.js} +1 -1
  211. package/client/dist/assets/twig-DxolMe-m.js +1 -0
  212. package/client/dist/assets/typescript-6msxI5qU.js +1 -0
  213. package/client/dist/assets/typespec-5ugHtu89.js +1 -0
  214. package/client/dist/assets/typst-DGKQAwST.js +1 -0
  215. package/client/dist/assets/v-2Dvll9y_.js +1 -0
  216. package/client/dist/assets/vala-DhIY81xx.js +1 -0
  217. package/client/dist/assets/vb-D4bKSGYI.js +1 -0
  218. package/client/dist/assets/verilog-DmSgp3mE.js +1 -0
  219. package/client/dist/assets/vesper-DU1UobuO.js +1 -0
  220. package/client/dist/assets/vhdl-DCjSv28y.js +1 -0
  221. package/client/dist/assets/viml-DMG7XCk5.js +1 -0
  222. package/client/dist/assets/vue-BebZw_gy.js +1 -0
  223. package/client/dist/assets/vue-html-B9Bqf25R.js +1 -0
  224. package/client/dist/assets/vyper-D68BUWwe.js +1 -0
  225. package/client/dist/assets/wasm-CJJW67X8.js +1 -0
  226. package/client/dist/assets/wenyan-BXqZv6Dq.js +1 -0
  227. package/client/dist/assets/wgsl-Do8n-e3P.js +1 -0
  228. package/client/dist/assets/wikitext-CQSnJ68I.js +1 -0
  229. package/client/dist/assets/wit-dyhQlKC1.js +1 -0
  230. package/client/dist/assets/wolfram-EuqmgloR.js +1 -0
  231. package/client/dist/assets/xml-iIRqcNou.js +1 -0
  232. package/client/dist/assets/xsl-BqXt74Hp.js +1 -0
  233. package/client/dist/assets/yaml-DeMLtiT4.js +1 -0
  234. package/client/dist/assets/zenscript-BbLEZwDK.js +1 -0
  235. package/client/dist/assets/zig-DFp_trfT.js +1 -0
  236. package/client/dist/index.html +2 -2
  237. package/package.json +41 -41
  238. package/server/dist/index.cjs +6 -6
  239. package/server/dist/index.cjs.map +1 -1
  240. package/server/dist/index.mjs +6 -6
  241. package/server/dist/index.mjs.map +1 -1
  242. package/client/dist/assets/abap-DsBKuouk.js +0 -1
  243. package/client/dist/assets/actionscript-3-D_z4Izcz.js +0 -1
  244. package/client/dist/assets/ada-727ZlQH0.js +0 -1
  245. package/client/dist/assets/angular-html-LfdN0zeE.js +0 -1
  246. package/client/dist/assets/angular-ts-CKsD7JZE.js +0 -1
  247. package/client/dist/assets/apache-Dn00JSTd.js +0 -1
  248. package/client/dist/assets/apex-COJ4H7py.js +0 -1
  249. package/client/dist/assets/apl-BBq3IX1j.js +0 -1
  250. package/client/dist/assets/applescript-Bu5BbsvL.js +0 -1
  251. package/client/dist/assets/ara-7O62HKoU.js +0 -1
  252. package/client/dist/assets/asciidoc-BPT9niGB.js +0 -1
  253. package/client/dist/assets/asm-Dhn9LcZ4.js +0 -1
  254. package/client/dist/assets/astro-CqkE3fuf.js +0 -1
  255. package/client/dist/assets/awk-eg146-Ew.js +0 -1
  256. package/client/dist/assets/ballerina-Du268qiB.js +0 -1
  257. package/client/dist/assets/bat-fje9CFhw.js +0 -1
  258. package/client/dist/assets/beancount-BwXTMy5W.js +0 -1
  259. package/client/dist/assets/berry-3xVqZejG.js +0 -1
  260. package/client/dist/assets/bibtex-xW4inM5L.js +0 -1
  261. package/client/dist/assets/bicep-DHo0CJ0O.js +0 -1
  262. package/client/dist/assets/blade-a8OxSdnT.js +0 -1
  263. package/client/dist/assets/bsl-Dgyn0ogV.js +0 -1
  264. package/client/dist/assets/c-C3t2pwGQ.js +0 -1
  265. package/client/dist/assets/cadence-DNquZEk8.js +0 -1
  266. package/client/dist/assets/cairo--RitsXJZ.js +0 -1
  267. package/client/dist/assets/clarity-BHOwM8T6.js +0 -1
  268. package/client/dist/assets/clojure-DxSadP1t.js +0 -1
  269. package/client/dist/assets/cmake-DbXoA79R.js +0 -1
  270. package/client/dist/assets/cobol-PTqiYgYu.js +0 -1
  271. package/client/dist/assets/codeql-sacFqUAJ.js +0 -1
  272. package/client/dist/assets/coffee-dyiR41kL.js +0 -1
  273. package/client/dist/assets/common-lisp-C7gG9l05.js +0 -1
  274. package/client/dist/assets/coq-Dsg_Bt_b.js +0 -1
  275. package/client/dist/assets/cpp-BksuvNSY.js +0 -1
  276. package/client/dist/assets/crystal-DtDmRg-F.js +0 -1
  277. package/client/dist/assets/csharp-D9R-vmeu.js +0 -1
  278. package/client/dist/assets/css-BPhBrDlE.js +0 -1
  279. package/client/dist/assets/csv-B0qRVHPH.js +0 -1
  280. package/client/dist/assets/cue-DtFQj3wx.js +0 -1
  281. package/client/dist/assets/cypher-m2LEI-9-.js +0 -1
  282. package/client/dist/assets/d-BoXegm-a.js +0 -1
  283. package/client/dist/assets/dart-B9wLZaAG.js +0 -1
  284. package/client/dist/assets/dax-ClGRhx96.js +0 -1
  285. package/client/dist/assets/desktop-DEIpsLCJ.js +0 -1
  286. package/client/dist/assets/diff-BgYniUM_.js +0 -1
  287. package/client/dist/assets/dotenv-BjQB5zDj.js +0 -1
  288. package/client/dist/assets/dream-maker-C-nORZOA.js +0 -1
  289. package/client/dist/assets/edge-D5gP-w-T.js +0 -1
  290. package/client/dist/assets/elixir-CLiX3zqd.js +0 -1
  291. package/client/dist/assets/elm-CmHSxxaM.js +0 -1
  292. package/client/dist/assets/emacs-lisp-BX77sIaO.js +0 -1
  293. package/client/dist/assets/erb-BYTLMnw6.js +0 -1
  294. package/client/dist/assets/erlang-B-DoSBHF.js +0 -1
  295. package/client/dist/assets/fennel-bCA53EVm.js +0 -1
  296. package/client/dist/assets/fish-w-ucz2PV.js +0 -1
  297. package/client/dist/assets/fluent-Dayu4EKP.js +0 -1
  298. package/client/dist/assets/fortran-fixed-form-TqA4NnZg.js +0 -1
  299. package/client/dist/assets/fortran-free-form-DKXYxT9g.js +0 -1
  300. package/client/dist/assets/fsharp-XplgxFYe.js +0 -1
  301. package/client/dist/assets/gdresource-BHYsBjWJ.js +0 -1
  302. package/client/dist/assets/gdscript-DfxzS6Rs.js +0 -1
  303. package/client/dist/assets/gdshader-SKMF96pI.js +0 -1
  304. package/client/dist/assets/genie-ajMbGru0.js +0 -1
  305. package/client/dist/assets/git-commit-i4q6IMui.js +0 -1
  306. package/client/dist/assets/gleam-B430Bg39.js +0 -1
  307. package/client/dist/assets/glimmer-js-D-cwc0-E.js +0 -1
  308. package/client/dist/assets/glimmer-ts-pgjy16dm.js +0 -1
  309. package/client/dist/assets/glsl-DBO2IWDn.js +0 -1
  310. package/client/dist/assets/gnuplot-CM8KxXT1.js +0 -1
  311. package/client/dist/assets/go-B1SYOhNW.js +0 -1
  312. package/client/dist/assets/graphql-cDcHW_If.js +0 -1
  313. package/client/dist/assets/groovy-DkBy-JyN.js +0 -1
  314. package/client/dist/assets/hack-D1yCygmZ.js +0 -1
  315. package/client/dist/assets/haml-B2EZWmdv.js +0 -1
  316. package/client/dist/assets/handlebars-BQGss363.js +0 -1
  317. package/client/dist/assets/haskell-BILxekzW.js +0 -1
  318. package/client/dist/assets/haxe-C5wWYbrZ.js +0 -1
  319. package/client/dist/assets/hcl-HzYwdGDm.js +0 -1
  320. package/client/dist/assets/hjson-T-Tgc4AT.js +0 -1
  321. package/client/dist/assets/hlsl-ifBTmRxC.js +0 -1
  322. package/client/dist/assets/html-C2L_23MC.js +0 -1
  323. package/client/dist/assets/html-derivative-CSfWNPLT.js +0 -1
  324. package/client/dist/assets/http-FRrOvY1W.js +0 -1
  325. package/client/dist/assets/hxml-TIA70rKU.js +0 -1
  326. package/client/dist/assets/hy-BMj5Y0dO.js +0 -1
  327. package/client/dist/assets/imba-bv_oIlVt.js +0 -1
  328. package/client/dist/assets/index-aawbhFi4.css +0 -1
  329. package/client/dist/assets/index-bQ5k8foV.js +0 -297
  330. package/client/dist/assets/java-xI-RfyKK.js +0 -1
  331. package/client/dist/assets/javascript-ySlJ1b_l.js +0 -1
  332. package/client/dist/assets/jinja-DGy0s7-h.js +0 -1
  333. package/client/dist/assets/jison-BqZprYcd.js +0 -1
  334. package/client/dist/assets/json-BQoSv7ci.js +0 -1
  335. package/client/dist/assets/json5-w8dY5SsB.js +0 -1
  336. package/client/dist/assets/jsonc-TU54ms6u.js +0 -1
  337. package/client/dist/assets/jsonl-DREVFZK8.js +0 -1
  338. package/client/dist/assets/jsonnet-BfivnA6A.js +0 -1
  339. package/client/dist/assets/jssm-P4WzXJd0.js +0 -1
  340. package/client/dist/assets/jsx-BAng5TT0.js +0 -1
  341. package/client/dist/assets/julia-BBuGR-5E.js +0 -1
  342. package/client/dist/assets/kotlin-B5lbUyaz.js +0 -1
  343. package/client/dist/assets/kusto-mebxcVVE.js +0 -1
  344. package/client/dist/assets/latex-C-cWTeAZ.js +0 -1
  345. package/client/dist/assets/lean-XBlWyCtg.js +0 -1
  346. package/client/dist/assets/less-BfCpw3nA.js +0 -1
  347. package/client/dist/assets/liquid-D3W5UaiH.js +0 -1
  348. package/client/dist/assets/log-Cc5clBb7.js +0 -1
  349. package/client/dist/assets/lua-CvWAzNxB.js +0 -1
  350. package/client/dist/assets/luau-Du5NY7AG.js +0 -1
  351. package/client/dist/assets/make-Bvotw-X0.js +0 -1
  352. package/client/dist/assets/markdown-UIAJJxZW.js +0 -1
  353. package/client/dist/assets/marko-z0MBrx5-.js +0 -1
  354. package/client/dist/assets/matlab-D9-PGadD.js +0 -1
  355. package/client/dist/assets/mdc-DB_EDNY_.js +0 -1
  356. package/client/dist/assets/mdx-sdHcTMYB.js +0 -1
  357. package/client/dist/assets/mermaid-Ci6OQyBP.js +0 -1
  358. package/client/dist/assets/mipsasm-BC5c_5Pe.js +0 -1
  359. package/client/dist/assets/mojo-Tz6hzZYG.js +0 -1
  360. package/client/dist/assets/move-DB_GagMm.js +0 -1
  361. package/client/dist/assets/narrat-DLbgOhZU.js +0 -1
  362. package/client/dist/assets/nextflow-B0XVJmRM.js +0 -1
  363. package/client/dist/assets/nginx-D_VnBJ67.js +0 -1
  364. package/client/dist/assets/nim-ZlGxZxc3.js +0 -1
  365. package/client/dist/assets/nix-shcSOmrb.js +0 -1
  366. package/client/dist/assets/nushell-D4Tzg5kh.js +0 -1
  367. package/client/dist/assets/objective-c-Deuh7S70.js +0 -1
  368. package/client/dist/assets/objective-cpp-BUEGK8hf.js +0 -1
  369. package/client/dist/assets/ocaml-BNioltXt.js +0 -1
  370. package/client/dist/assets/one-dark-pro-GBQ2dnAY.js +0 -1
  371. package/client/dist/assets/pascal-JqZropPD.js +0 -1
  372. package/client/dist/assets/perl-CHQXSrWU.js +0 -1
  373. package/client/dist/assets/php-B5ebYQev.js +0 -1
  374. package/client/dist/assets/plsql-LKU2TuZ1.js +0 -1
  375. package/client/dist/assets/po-BFLt1xDp.js +0 -1
  376. package/client/dist/assets/polar-DKykz6zU.js +0 -1
  377. package/client/dist/assets/postcss-B3ZDOciz.js +0 -1
  378. package/client/dist/assets/powerquery-CSHBycmS.js +0 -1
  379. package/client/dist/assets/powershell-BIEUsx6d.js +0 -1
  380. package/client/dist/assets/prisma-B48N-Iqd.js +0 -1
  381. package/client/dist/assets/prolog-BY-TUvya.js +0 -1
  382. package/client/dist/assets/proto-zocC4JxJ.js +0 -1
  383. package/client/dist/assets/pug-CM9l7STV.js +0 -1
  384. package/client/dist/assets/puppet-Cza_XSSt.js +0 -1
  385. package/client/dist/assets/purescript-Bg-kzb6g.js +0 -1
  386. package/client/dist/assets/python-DhUJRlN_.js +0 -1
  387. package/client/dist/assets/qml-D8XfuvdV.js +0 -1
  388. package/client/dist/assets/qss-DhMKtDLN.js +0 -1
  389. package/client/dist/assets/r-CwjWoCRV.js +0 -1
  390. package/client/dist/assets/racket-CzouJOBO.js +0 -1
  391. package/client/dist/assets/raku-B1bQXN8T.js +0 -1
  392. package/client/dist/assets/razor-CNLDkMZG.js +0 -1
  393. package/client/dist/assets/reg-5LuOXUq_.js +0 -1
  394. package/client/dist/assets/regexp-DWJ3fJO_.js +0 -1
  395. package/client/dist/assets/riscv-QhoSD0DR.js +0 -1
  396. package/client/dist/assets/rose-pine-CmCqftbK.js +0 -1
  397. package/client/dist/assets/rose-pine-dawn-Ds-gbosJ.js +0 -1
  398. package/client/dist/assets/rose-pine-moon-CjDtw9vr.js +0 -1
  399. package/client/dist/assets/rst-4NLicBqY.js +0 -1
  400. package/client/dist/assets/ruby-DeZ3UC14.js +0 -1
  401. package/client/dist/assets/rust-Be6lgOlo.js +0 -1
  402. package/client/dist/assets/sas-BmTFh92c.js +0 -1
  403. package/client/dist/assets/sass-BJ4Li9vH.js +0 -1
  404. package/client/dist/assets/scala-DQVVAn-B.js +0 -1
  405. package/client/dist/assets/scheme-BJGe-b2p.js +0 -1
  406. package/client/dist/assets/scss-C31hgJw-.js +0 -1
  407. package/client/dist/assets/sdbl-BLhTXw86.js +0 -1
  408. package/client/dist/assets/shaderlab-B7qAK45m.js +0 -1
  409. package/client/dist/assets/shellscript-atvbtKCR.js +0 -1
  410. package/client/dist/assets/smalltalk-DkLiglaE.js +0 -1
  411. package/client/dist/assets/solidity-C1w2a3ep.js +0 -1
  412. package/client/dist/assets/soy-C-lX7w71.js +0 -1
  413. package/client/dist/assets/sparql-bYkjHRlG.js +0 -1
  414. package/client/dist/assets/splunk-Cf8iN4DR.js +0 -1
  415. package/client/dist/assets/sql-COK4E0Yg.js +0 -1
  416. package/client/dist/assets/ssh-config-BknIz3MU.js +0 -1
  417. package/client/dist/assets/stata-DorPZHa4.js +0 -1
  418. package/client/dist/assets/stylus-BeQkCIfX.js +0 -1
  419. package/client/dist/assets/svelte-MSaWC3Je.js +0 -1
  420. package/client/dist/assets/swift-BSxZ-RaX.js +0 -1
  421. package/client/dist/assets/system-verilog-C7L56vO4.js +0 -1
  422. package/client/dist/assets/systemd-CUnW07Te.js +0 -1
  423. package/client/dist/assets/talonscript-C1XDQQGZ.js +0 -1
  424. package/client/dist/assets/tasl-CQjiPCtT.js +0 -1
  425. package/client/dist/assets/tcl-DQ1-QYvQ.js +0 -1
  426. package/client/dist/assets/templ-dwX3ZSMB.js +0 -1
  427. package/client/dist/assets/terraform-BbSNqyBO.js +0 -1
  428. package/client/dist/assets/tex-rYs2v40G.js +0 -1
  429. package/client/dist/assets/tokyo-night-DBQeEorK.js +0 -1
  430. package/client/dist/assets/toml-CB2ApiWb.js +0 -1
  431. package/client/dist/assets/ts-tags-CipyTH0X.js +0 -1
  432. package/client/dist/assets/tsx-B6W0miNI.js +0 -1
  433. package/client/dist/assets/twig-NC5TFiHP.js +0 -1
  434. package/client/dist/assets/typescript-Dj6nwHGl.js +0 -1
  435. package/client/dist/assets/typespec-BpWG_bgh.js +0 -1
  436. package/client/dist/assets/typst-BVUVsWT6.js +0 -1
  437. package/client/dist/assets/v-CAQ2eGtk.js +0 -1
  438. package/client/dist/assets/vala-BFOHcciG.js +0 -1
  439. package/client/dist/assets/vb-CdO5JTpU.js +0 -1
  440. package/client/dist/assets/verilog-CJaU5se_.js +0 -1
  441. package/client/dist/assets/vesper-BEBZ7ncR.js +0 -1
  442. package/client/dist/assets/vhdl-DYoNaHQp.js +0 -1
  443. package/client/dist/assets/viml-m4uW47V2.js +0 -1
  444. package/client/dist/assets/vue-BuYVFjOK.js +0 -1
  445. package/client/dist/assets/vue-html-xdeiXROB.js +0 -1
  446. package/client/dist/assets/vyper-nyqBNV6O.js +0 -1
  447. package/client/dist/assets/wasm-C6j12Q_x.js +0 -1
  448. package/client/dist/assets/wenyan-7A4Fjokl.js +0 -1
  449. package/client/dist/assets/wgsl-CB0Krxn9.js +0 -1
  450. package/client/dist/assets/wikitext-DCE3LsBG.js +0 -1
  451. package/client/dist/assets/wolfram-C3FkfJm5.js +0 -1
  452. package/client/dist/assets/xml-e3z08dGr.js +0 -1
  453. package/client/dist/assets/xsl-Dd0NUgwM.js +0 -1
  454. package/client/dist/assets/yaml-CVw76BM1.js +0 -1
  455. package/client/dist/assets/zenscript-HnGAYVZD.js +0 -1
  456. package/client/dist/assets/zig-BVz_zdnA.js +0 -1
@@ -0,0 +1,298 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DMNHImpm.js","assets/html-DQt1crSz.js","assets/javascript-DFxyEsuO.js","assets/css-6ydISZ1j.js","assets/angular-ts-eB8LWD2C.js","assets/scss-DkCoLJBz.js","assets/apl-DSpMDkz7.js","assets/xml-iIRqcNou.js","assets/java-DzEvymKG.js","assets/json-BLmTiKMJ.js","assets/astro-BEfdsCb3.js","assets/typescript-6msxI5qU.js","assets/postcss-BgR6IBVD.js","assets/blade-jtwiscur.js","assets/html-derivative-OoyioBIu.js","assets/sql-D8pCRXw6.js","assets/bsl-BXaZRMg3.js","assets/sdbl-Cflpv1WG.js","assets/cairo-DbSVSKxu.js","assets/python-N_fYzn4k.js","assets/cobol-DLiQ7VlT.js","assets/coffee-CN9rYqj2.js","assets/cpp-D6jLj3ac.js","assets/regexp-we84whta.js","assets/glsl-D6Vaizag.js","assets/c-Du_P13ro.js","assets/crystal-CSXto_ug.js","assets/shellscript-Cs-zf8G1.js","assets/edge-7WOHoDwQ.js","assets/elixir-C8UL7p8J.js","assets/elm-BVJIbDWr.js","assets/erb-2bVwkg7V.js","assets/ruby-Cwn6T5Qb.js","assets/haml-BjHfNtf2.js","assets/graphql-CzqHVaah.js","assets/jsx-Dog42FfX.js","assets/tsx-CHbqLUsD.js","assets/lua-DgKrCl_t.js","assets/yaml-DeMLtiT4.js","assets/fortran-fixed-form-DMTTIQFJ.js","assets/fortran-free-form-FZM7PgI4.js","assets/fsharp-B93pd7q9.js","assets/markdown-CfdnVo6U.js","assets/gdresource-I9Onfmy0.js","assets/gdshader-C8KBts9d.js","assets/gdscript-E0a2itvD.js","assets/git-commit-COHn4upB.js","assets/diff-7a-uGD01.js","assets/git-rebase-D7M3XCeK.js","assets/glimmer-js-DTuRZoQB.js","assets/glimmer-ts-BGh34NOZ.js","assets/hack-BfoaVUmQ.js","assets/handlebars-DN1vFC8Y.js","assets/http-B1MEeU_C.js","assets/hxml-BYnPWQ3Z.js","assets/haxe-BVnfiMDc.js","assets/jinja-CbuI_e8q.js","assets/jison-BThBLrI1.js","assets/julia-QW6AWql5.js","assets/r-15AZnl_Y.js","assets/latex-D6g4IvIb.js","assets/tex-C7L-Ug2D.js","assets/liquid-DwnqW0Hw.js","assets/marko-Ddcey6ql.js","assets/less-CL8eqPyx.js","assets/mdc-BSBcOUr9.js","assets/nginx-C1Yc5-eE.js","assets/nim-CuWg7p6V.js","assets/perl-Bcivc5lk.js","assets/php-XhOgcbHd.js","assets/pug-Ud6KBVuk.js","assets/qml-BdV_SRG6.js","assets/razor-R9tSNI_9.js","assets/csharp-t9jp2bdZ.js","assets/rst-C0h9YO46.js","assets/cmake-C07pmjNf.js","assets/sas-Yvy-jB3G.js","assets/shaderlab-DprXpeCX.js","assets/hlsl-DgLWmsUM.js","assets/shellsession-C_x4i0EA.js","assets/soy-CV61xlNT.js","assets/sparql-Ccgs8XSw.js","assets/turtle-imGXYByQ.js","assets/stata-nt34lD2m.js","assets/svelte-Ue2gIPbO.js","assets/templ-CJFw_bmP.js","assets/go-DSI44sMb.js","assets/ts-tags-B_RTbvdJ.js","assets/twig-DxolMe-m.js","assets/vue-BebZw_gy.js","assets/vue-html-B9Bqf25R.js","assets/xsl-BqXt74Hp.js"])))=>i.map(i=>d[i]);
2
+ var NO=Object.defineProperty;var IO=(e,t,n)=>t in e?NO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>IO(e,typeof t!="symbol"?t+"":t,n);function SO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Em={exports:{}},ll={};/**
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 NS;function CO(){if(NS)return ll;NS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return ll.Fragment=t,ll.jsx=n,ll.jsxs=n,ll}var IS;function yO(){return IS||(IS=1,Em.exports=CO()),Em.exports}var N=yO(),gm={exports:{}},qe={};/**
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 SS;function vO(){if(SS)return qe;SS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,y={};function v(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}v.prototype.isReactComponent={},v.prototype.setState=function(H,W){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,W,"setState")},v.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function R(){}R.prototype=v.prototype;function D(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}var x=D.prototype=new R;x.constructor=D,I(x,v.prototype),x.isPureReactComponent=!0;var F=Array.isArray,b={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function w(H,W,V,re,te,ce){return V=ce.ref,{$$typeof:e,type:H,key:W,ref:V!==void 0?V:null,props:ce}}function P(H,W){return w(H.type,W,void 0,void 0,void 0,H.props)}function U(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function j(H){var W={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(V){return W[V]})}var fe=/\/+/g;function se(H,W){return typeof H=="object"&&H!==null&&H.key!=null?j(""+H.key):W.toString(36)}function de(){}function $(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(de,de):(H.status="pending",H.then(function(W){H.status==="pending"&&(H.status="fulfilled",H.value=W)},function(W){H.status==="pending"&&(H.status="rejected",H.reason=W)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function J(H,W,V,re,te){var ce=typeof H;(ce==="undefined"||ce==="boolean")&&(H=null);var ge=!1;if(H===null)ge=!0;else switch(ce){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(H.$$typeof){case e:case t:ge=!0;break;case m:return ge=H._init,J(ge(H._payload),W,V,re,te)}}if(ge)return te=te(H),ge=re===""?"."+se(H,0):re,F(te)?(V="",ge!=null&&(V=ge.replace(fe,"$&/")+"/"),J(te,W,V,"",function(je){return je})):te!=null&&(U(te)&&(te=P(te,V+(te.key==null||H&&H.key===te.key?"":(""+te.key).replace(fe,"$&/")+"/")+ge)),W.push(te)),1;ge=0;var me=re===""?".":re+":";if(F(H))for(var ve=0;ve<H.length;ve++)re=H[ve],ce=me+se(re,ve),ge+=J(re,W,V,ce,te);else if(ve=g(H),typeof ve=="function")for(H=ve.call(H),ve=0;!(re=H.next()).done;)re=re.value,ce=me+se(re,ve++),ge+=J(re,W,V,ce,te);else if(ce==="object"){if(typeof H.then=="function")return J($(H),W,V,re,te);throw W=String(H),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ge}function G(H,W,V){if(H==null)return H;var re=[],te=0;return J(H,re,"","",function(ce){return W.call(V,ce,te++)}),re}function ne(H){if(H._status===-1){var W=H._result;W=W(),W.then(function(V){(H._status===0||H._status===-1)&&(H._status=1,H._result=V)},function(V){(H._status===0||H._status===-1)&&(H._status=2,H._result=V)}),H._status===-1&&(H._status=0,H._result=W)}if(H._status===1)return H._result.default;throw H._result}var ee=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)};function Ee(){}return qe.Children={map:G,forEach:function(H,W,V){G(H,function(){W.apply(this,arguments)},V)},count:function(H){var W=0;return G(H,function(){W++}),W},toArray:function(H){return G(H,function(W){return W})||[]},only:function(H){if(!U(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},qe.Component=v,qe.Fragment=n,qe.Profiler=a,qe.PureComponent=D,qe.StrictMode=r,qe.Suspense=f,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,qe.act=function(){throw Error("act(...) is not supported in production builds of React.")},qe.cache=function(H){return function(){return H.apply(null,arguments)}},qe.cloneElement=function(H,W,V){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var re=I({},H.props),te=H.key,ce=void 0;if(W!=null)for(ge in W.ref!==void 0&&(ce=void 0),W.key!==void 0&&(te=""+W.key),W)!O.call(W,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&W.ref===void 0||(re[ge]=W[ge]);var ge=arguments.length-2;if(ge===1)re.children=V;else if(1<ge){for(var me=Array(ge),ve=0;ve<ge;ve++)me[ve]=arguments[ve+2];re.children=me}return w(H.type,te,void 0,void 0,ce,re)},qe.createContext=function(H){return H={$$typeof:l,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:o,_context:H},H},qe.createElement=function(H,W,V){var re,te={},ce=null;if(W!=null)for(re in W.key!==void 0&&(ce=""+W.key),W)O.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(te[re]=W[re]);var ge=arguments.length-2;if(ge===1)te.children=V;else if(1<ge){for(var me=Array(ge),ve=0;ve<ge;ve++)me[ve]=arguments[ve+2];te.children=me}if(H&&H.defaultProps)for(re in ge=H.defaultProps,ge)te[re]===void 0&&(te[re]=ge[re]);return w(H,ce,void 0,void 0,null,te)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(H){return{$$typeof:d,render:H}},qe.isValidElement=U,qe.lazy=function(H){return{$$typeof:m,_payload:{_status:-1,_result:H},_init:ne}},qe.memo=function(H,W){return{$$typeof:A,type:H,compare:W===void 0?null:W}},qe.startTransition=function(H){var W=b.T,V={};b.T=V;try{var re=H(),te=b.S;te!==null&&te(V,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Ee,ee)}catch(ce){ee(ce)}finally{b.T=W}},qe.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},qe.use=function(H){return b.H.use(H)},qe.useActionState=function(H,W,V){return b.H.useActionState(H,W,V)},qe.useCallback=function(H,W){return b.H.useCallback(H,W)},qe.useContext=function(H){return b.H.useContext(H)},qe.useDebugValue=function(){},qe.useDeferredValue=function(H,W){return b.H.useDeferredValue(H,W)},qe.useEffect=function(H,W){return b.H.useEffect(H,W)},qe.useId=function(){return b.H.useId()},qe.useImperativeHandle=function(H,W,V){return b.H.useImperativeHandle(H,W,V)},qe.useInsertionEffect=function(H,W){return b.H.useInsertionEffect(H,W)},qe.useLayoutEffect=function(H,W){return b.H.useLayoutEffect(H,W)},qe.useMemo=function(H,W){return b.H.useMemo(H,W)},qe.useOptimistic=function(H,W){return b.H.useOptimistic(H,W)},qe.useReducer=function(H,W,V){return b.H.useReducer(H,W,V)},qe.useRef=function(H){return b.H.useRef(H)},qe.useState=function(H){return b.H.useState(H)},qe.useSyncExternalStore=function(H,W,V){return b.H.useSyncExternalStore(H,W,V)},qe.useTransition=function(){return b.H.useTransition()},qe.version="19.0.0",qe}var CS;function pc(){return CS||(CS=1,gm.exports=vO()),gm.exports}var C=pc();const Ke=Rf(C),RO=SO({__proto__:null,default:Ke},[C]);var _m={exports:{}},cl={},Nm={exports:{}},Im={};/**
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 yS;function DO(){return yS||(yS=1,function(e){function t(G,ne){var ee=G.length;G.push(ne);e:for(;0<ee;){var Ee=ee-1>>>1,H=G[Ee];if(0<a(H,ne))G[Ee]=ne,G[ee]=H,ee=Ee;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var ne=G[0],ee=G.pop();if(ee!==ne){G[0]=ee;e:for(var Ee=0,H=G.length,W=H>>>1;Ee<W;){var V=2*(Ee+1)-1,re=G[V],te=V+1,ce=G[te];if(0>a(re,ee))te<H&&0>a(ce,re)?(G[Ee]=ce,G[te]=ee,Ee=te):(G[Ee]=re,G[V]=ee,Ee=V);else if(te<H&&0>a(ce,ee))G[Ee]=ce,G[te]=ee,Ee=te;else break e}}return ne}function a(G,ne){var ee=G.sortIndex-ne.sortIndex;return ee!==0?ee:G.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],A=[],m=1,E=null,g=3,_=!1,I=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function x(G){for(var ne=n(A);ne!==null;){if(ne.callback===null)r(A);else if(ne.startTime<=G)r(A),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=n(A)}}function F(G){if(y=!1,x(G),!I)if(n(f)!==null)I=!0,$();else{var ne=n(A);ne!==null&&J(F,ne.startTime-G)}}var b=!1,O=-1,w=5,P=-1;function U(){return!(e.unstable_now()-P<w)}function j(){if(b){var G=e.unstable_now();P=G;var ne=!0;try{e:{I=!1,y&&(y=!1,R(O),O=-1),_=!0;var ee=g;try{t:{for(x(G),E=n(f);E!==null&&!(E.expirationTime>G&&U());){var Ee=E.callback;if(typeof Ee=="function"){E.callback=null,g=E.priorityLevel;var H=Ee(E.expirationTime<=G);if(G=e.unstable_now(),typeof H=="function"){E.callback=H,x(G),ne=!0;break t}E===n(f)&&r(f),x(G)}else r(f);E=n(f)}if(E!==null)ne=!0;else{var W=n(A);W!==null&&J(F,W.startTime-G),ne=!1}}break e}finally{E=null,g=ee,_=!1}ne=void 0}}finally{ne?fe():b=!1}}}var fe;if(typeof D=="function")fe=function(){D(j)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,de=se.port2;se.port1.onmessage=j,fe=function(){de.postMessage(null)}}else fe=function(){v(j,0)};function $(){b||(b=!0,fe())}function J(G,ne){O=v(function(){G(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){I||_||(I=!0,$())},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(G){switch(g){case 1:case 2:case 3:var ne=3;break;default:ne=g}var ee=g;g=ne;try{return G()}finally{g=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,ne){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=g;g=G;try{return ne()}finally{g=ee}},e.unstable_scheduleCallback=function(G,ne,ee){var Ee=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ee+ee:Ee):ee=Ee,G){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=ee+H,G={id:m++,callback:ne,priorityLevel:G,startTime:ee,expirationTime:H,sortIndex:-1},ee>Ee?(G.sortIndex=ee,t(A,G),n(f)===null&&G===n(A)&&(y?(R(O),O=-1):y=!0,J(F,ee-Ee))):(G.sortIndex=H,t(f,G),I||_||(I=!0,$())),G},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(G){var ne=g;return function(){var ee=g;g=ne;try{return G.apply(this,arguments)}finally{g=ee}}}}(Im)),Im}var vS;function TO(){return vS||(vS=1,Nm.exports=DO()),Nm.exports}var Sm={exports:{}},hn={};/**
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 RS;function xO(){if(RS)return hn;RS=1;var e=pc();function t(f){var A="https://react.dev/errors/"+f;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)A+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,A,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:E==null?null:""+E,children:f,containerInfo:A,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,A){if(f==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,hn.createPortal=function(f,A){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return o(f,A,null,m)},hn.flushSync=function(f){var A=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=A,r.p=m,r.d.f()}},hn.preconnect=function(f,A){typeof f=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,r.d.C(f,A))},hn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},hn.preinit=function(f,A){if(typeof f=="string"&&A&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin),g=typeof A.integrity=="string"?A.integrity:void 0,_=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;m==="style"?r.d.S(f,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},hn.preinitModule=function(f,A){if(typeof f=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var m=d(A.as,A.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&r.d.M(f)},hn.preload=function(f,A){if(typeof f=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},hn.preloadModule=function(f,A){if(typeof f=="string")if(A){var m=d(A.as,A.crossOrigin);r.d.m(f,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else r.d.m(f)},hn.requestFormReset=function(f){r.d.r(f)},hn.unstable_batchedUpdates=function(f,A){return f(A)},hn.useFormState=function(f,A,m){return l.H.useFormState(f,A,m)},hn.useFormStatus=function(){return l.H.useHostTransitionStatus()},hn.version="19.0.0",hn}var DS;function rv(){if(DS)return Sm.exports;DS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sm.exports=xO(),Sm.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 TS;function bO(){if(TS)return cl;TS=1;var e=TO(),t=pc(),n=rv();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),F=Symbol.for("react.memo_cache_sentinel"),b=Symbol.iterator;function O(i){return i===null||typeof i!="object"?null:(i=b&&i[b]||i["@@iterator"],typeof i=="function"?i:null)}var w=Symbol.for("react.client.reference");function P(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===w?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case f:return"Fragment";case d:return"Portal";case m:return"Profiler";case A:return"StrictMode";case y:return"Suspense";case v:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case _:return(i.displayName||"Context")+".Provider";case g:return(i._context.displayName||"Context")+".Consumer";case I:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case R:return s=i.displayName||null,s!==null?s:P(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return P(i(s))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.assign,fe,se;function de(i){if(fe===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);fe=s&&s[1]||"",se=-1<c.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+fe+i+se}var $=!1;function J(i,s){if(!i||$)return"";$=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(ie){var X=ie}Reflect.construct(i,[],Ae)}else{try{Ae.call()}catch(ie){X=ie}i.call(Ae.prototype)}}else{try{throw Error()}catch(ie){X=ie}(Ae=i())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(ie){if(ie&&X&&typeof ie.stack=="string")return[ie.stack,X.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=h.DetermineComponentFrameRoot(),T=S[0],B=S[1];if(T&&B){var M=T.split(`
45
+ `),K=B.split(`
46
+ `);for(p=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(h===M.length||p===K.length)for(h=M.length-1,p=K.length-1;1<=h&&0<=p&&M[h]!==K[p];)p--;for(;1<=h&&0<=p;h--,p--)if(M[h]!==K[p]){if(h!==1||p!==1)do if(h--,p--,0>p||M[h]!==K[p]){var ae=`
47
+ `+M[h].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=h&&0<=p);break}}}finally{$=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?de(c):""}function G(i){switch(i.tag){case 26:case 27:case 5:return de(i.type);case 16:return de("Lazy");case 13:return de("Suspense");case 19:return de("SuspenseList");case 0:case 15:return i=J(i.type,!1),i;case 11:return i=J(i.type.render,!1),i;case 1:return i=J(i.type,!0),i;default:return""}}function ne(i){try{var s="";do s+=G(i),i=i.return;while(i);return s}catch(c){return`
48
+ Error generating stack: `+c.message+`
49
+ `+c.stack}}function ee(i){var s=i,c=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(c=s.return),i=s.return;while(i)}return s.tag===3?c:null}function Ee(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function H(i){if(ee(i)!==i)throw Error(r(188))}function W(i){var s=i.alternate;if(!s){if(s=ee(i),s===null)throw Error(r(188));return s!==i?null:i}for(var c=i,h=s;;){var p=c.return;if(p===null)break;var S=p.alternate;if(S===null){if(h=p.return,h!==null){c=h;continue}break}if(p.child===S.child){for(S=p.child;S;){if(S===c)return H(p),i;if(S===h)return H(p),s;S=S.sibling}throw Error(r(188))}if(c.return!==h.return)c=p,h=S;else{for(var T=!1,B=p.child;B;){if(B===c){T=!0,c=p,h=S;break}if(B===h){T=!0,h=p,c=S;break}B=B.sibling}if(!T){for(B=S.child;B;){if(B===c){T=!0,c=S,h=p;break}if(B===h){T=!0,h=S,c=p;break}B=B.sibling}if(!T)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:s}function V(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=V(i),s!==null)return s;i=i.sibling}return null}var re=Array.isArray,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ge=[],me=-1;function ve(i){return{current:i}}function je(i){0>me||(i.current=ge[me],ge[me]=null,me--)}function we(i,s){me++,ge[me]=i.current,i.current=s}var Ze=ve(null),it=ve(null),St=ve(null),qt=ve(null);function Er(i,s){switch(we(St,s),we(it,i),we(Ze,null),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?$I(s):0;break;default:if(i=i===8?s.parentNode:s,s=i.tagName,i=i.namespaceURI)i=$I(i),s=qI(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}je(Ze),we(Ze,s)}function wn(){je(Ze),je(it),je(St)}function Br(i){i.memoizedState!==null&&we(qt,i);var s=Ze.current,c=qI(s,i.type);s!==c&&(we(it,i),we(Ze,c))}function k(i){it.current===i&&(je(Ze),je(it)),qt.current===i&&(je(qt),ul._currentValue=ce)}var Q=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Se=e.unstable_shouldYield,Ne=e.unstable_requestPaint,Be=e.unstable_now,Xe=e.unstable_getCurrentPriorityLevel,Lt=e.unstable_ImmediatePriority,wt=e.unstable_UserBlockingPriority,Mn=e.unstable_NormalPriority,cA=e.unstable_LowPriority,La=e.unstable_IdlePriority,Ao=e.log,dA=e.unstable_setDisableYieldValue,Hu=null,In=null;function Uc(i){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Hu,i,void 0,(i.current.flags&128)===128)}catch{}}function Pu(i){if(typeof Ao=="function"&&dA(i),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(Hu,i)}catch{}}var Hn=Math.clz32?Math.clz32:sb,ib=Math.log,ab=Math.LN2;function sb(i){return i>>>=0,i===0?32:31-(ib(i)/ab|0)|0}var kc=128,Gc=4194304;function wi(i){var s=i&42;if(s!==0)return s;switch(i&-i){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: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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function jc(i,s){var c=i.pendingLanes;if(c===0)return 0;var h=0,p=i.suspendedLanes,S=i.pingedLanes,T=i.warmLanes;i=i.finishedLanes!==0;var B=c&134217727;return B!==0?(c=B&~p,c!==0?h=wi(c):(S&=B,S!==0?h=wi(S):i||(T=B&~T,T!==0&&(h=wi(T))))):(B=c&~p,B!==0?h=wi(B):S!==0?h=wi(S):i||(T=c&~T,T!==0&&(h=wi(T)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,T=s&-s,p>=T||p===32&&(T&4194176)!==0)?s:h}function ho(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function ob(i,s){switch(i){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64: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 s+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 G4(){var i=kc;return kc<<=1,(kc&4194176)===0&&(kc=128),i}function j4(){var i=Gc;return Gc<<=1,(Gc&62914560)===0&&(Gc=4194304),i}function fA(i){for(var s=[],c=0;31>c;c++)s.push(i);return s}function mo(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function lb(i,s,c,h,p,S){var T=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var B=i.entanglements,M=i.expirationTimes,K=i.hiddenUpdates;for(c=T&~c;0<c;){var ae=31-Hn(c),Ae=1<<ae;B[ae]=0,M[ae]=-1;var X=K[ae];if(X!==null)for(K[ae]=null,ae=0;ae<X.length;ae++){var ie=X[ae];ie!==null&&(ie.lane&=-536870913)}c&=~Ae}h!==0&&V4(i,h,0),S!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=S&~(T&~s))}function V4(i,s,c){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Hn(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function z4(i,s){var c=i.entangledLanes|=s;for(i=i.entanglements;c;){var h=31-Hn(c),p=1<<h;p&s|i[h]&s&&(i[h]|=s),c&=~p}}function K4(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Y4(){var i=te.p;return i!==0?i:(i=window.event,i===void 0?32:hS(i.type))}function cb(i,s){var c=te.p;try{return te.p=i,s()}finally{te.p=c}}var Uu=Math.random().toString(36).slice(2),fn="__reactFiber$"+Uu,Tn="__reactProps$"+Uu,wa="__reactContainer$"+Uu,AA="__reactEvents$"+Uu,db="__reactListeners$"+Uu,fb="__reactHandles$"+Uu,Z4="__reactResources$"+Uu,po="__reactMarker$"+Uu;function hA(i){delete i[fn],delete i[Tn],delete i[AA],delete i[db],delete i[fb]}function Mi(i){var s=i[fn];if(s)return s;for(var c=i.parentNode;c;){if(s=c[wa]||c[fn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=JI(i);i!==null;){if(c=i[fn])return c;i=JI(i)}return s}i=c,c=i.parentNode}return null}function Ma(i){if(i=i[fn]||i[wa]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function Eo(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function Ha(i){var s=i[Z4];return s||(s=i[Z4]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qt(i){i[po]=!0}var W4=new Set,$4={};function Hi(i,s){Pa(i,s),Pa(i+"Capture",s)}function Pa(i,s){for($4[i]=s,i=0;i<s.length;i++)W4.add(s[i])}var nu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=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]*$"),q4={},Q4={};function hb(i){return Q.call(Q4,i)?!0:Q.call(q4,i)?!1:Ab.test(i)?Q4[i]=!0:(q4[i]=!0,!1)}function Vc(i,s,c){if(hb(s))if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+c)}}function zc(i,s,c){if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+c)}}function ru(i,s,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(s,c,""+h)}}function Qn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function X4(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function mb(i){var s=X4(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,S=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){h=""+T,S.call(this,T)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(T){h=""+T},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Kc(i){i._valueTracker||(i._valueTracker=mb(i))}function J4(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return i&&(h=X4(i)?i.checked?"true":"false":i.value),i=h,i!==c?(s.setValue(i),!0):!1}function Yc(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var pb=/[\n"\\]/g;function Xn(i){return i.replace(pb,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function mA(i,s,c,h,p,S,T,B){i.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?i.type=T:i.removeAttribute("type"),s!=null?T==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Qn(s)):i.value!==""+Qn(s)&&(i.value=""+Qn(s)):T!=="submit"&&T!=="reset"||i.removeAttribute("value"),s!=null?pA(i,T,Qn(s)):c!=null?pA(i,T,Qn(c)):h!=null&&i.removeAttribute("value"),p==null&&S!=null&&(i.defaultChecked=!!S),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?i.name=""+Qn(B):i.removeAttribute("name")}function e_(i,s,c,h,p,S,T,B){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.type=S),s!=null||c!=null){if(!(S!=="submit"&&S!=="reset"||s!=null))return;c=c!=null?""+Qn(c):"",s=s!=null?""+Qn(s):c,B||s===i.value||(i.value=s),i.defaultValue=s}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=B?i.checked:!!h,i.defaultChecked=!!h,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(i.name=T)}function pA(i,s,c){s==="number"&&Yc(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Ua(i,s,c,h){if(i=i.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<i.length;c++)p=s.hasOwnProperty("$"+i[c].value),i[c].selected!==p&&(i[c].selected=p),p&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),s=null,p=0;p<i.length;p++){if(i[p].value===c){i[p].selected=!0,h&&(i[p].defaultSelected=!0);return}s!==null||i[p].disabled||(s=i[p])}s!==null&&(s.selected=!0)}}function t_(i,s,c){if(s!=null&&(s=""+Qn(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Qn(c):""}function n_(i,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(r(92));if(re(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=Qn(s),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function ka(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}var Eb=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 r_(i,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,c):typeof c!="number"||c===0||Eb.has(s)?s==="float"?i.cssFloat=c:i[s]=(""+c).trim():i[s]=c+"px"}function u_(i,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var p in s)h=s[p],s.hasOwnProperty(p)&&c[p]!==h&&r_(i,p,h)}else for(var S in s)s.hasOwnProperty(S)&&r_(i,S,s[S])}function EA(i){if(i.indexOf("-")===-1)return!1;switch(i){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 gb=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"]]),_b=/^[\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 Zc(i){return _b.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var gA=null;function _A(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ga=null,ja=null;function i_(i){var s=Ma(i);if(s&&(i=s.stateNode)){var c=i[Tn]||null;e:switch(i=s.stateNode,s.type){case"input":if(mA(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Xn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==i&&h.form===i.form){var p=h[Tn]||null;if(!p)throw Error(r(90));mA(h,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===i.form&&J4(h)}break e;case"textarea":t_(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Ua(i,!!c.multiple,s,!1)}}}var NA=!1;function a_(i,s,c){if(NA)return i(s,c);NA=!0;try{var h=i(s);return h}finally{if(NA=!1,(Ga!==null||ja!==null)&&(bd(),Ga&&(s=Ga,i=ja,ja=Ga=null,i_(s),i)))for(s=0;s<i.length;s++)i_(i[s])}}function go(i,s){var c=i.stateNode;if(c===null)return null;var h=c[Tn]||null;if(h===null)return null;c=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var IA=!1;if(nu)try{var _o={};Object.defineProperty(_o,"passive",{get:function(){IA=!0}}),window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{IA=!1}var ku=null,SA=null,Wc=null;function s_(){if(Wc)return Wc;var i,s=SA,c=s.length,h,p="value"in ku?ku.value:ku.textContent,S=p.length;for(i=0;i<c&&s[i]===p[i];i++);var T=c-i;for(h=1;h<=T&&s[c-h]===p[S-h];h++);return Wc=p.slice(i,1<h?1-h:void 0)}function $c(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function qc(){return!0}function o_(){return!1}function xn(i){function s(c,h,p,S,T){this._reactName=c,this._targetInst=p,this.type=h,this.nativeEvent=S,this.target=T,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(c=i[B],this[B]=c?c(S):S[B]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?qc:o_,this.isPropagationStopped=o_,this}return j(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=qc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=qc)},persist:function(){},isPersistent:qc}),s}var Pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qc=xn(Pi),No=j({},Pi,{view:0,detail:0}),Nb=xn(No),CA,yA,Io,Xc=j({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RA,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Io&&(Io&&i.type==="mousemove"?(CA=i.screenX-Io.screenX,yA=i.screenY-Io.screenY):yA=CA=0,Io=i),CA)},movementY:function(i){return"movementY"in i?i.movementY:yA}}),l_=xn(Xc),Ib=j({},Xc,{dataTransfer:0}),Sb=xn(Ib),Cb=j({},No,{relatedTarget:0}),vA=xn(Cb),yb=j({},Pi,{animationName:0,elapsedTime:0,pseudoElement:0}),vb=xn(yb),Rb=j({},Pi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Db=xn(Rb),Tb=j({},Pi,{data:0}),c_=xn(Tb),xb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bb={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"},Bb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ob(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Bb[i])?!!s[i]:!1}function RA(){return Ob}var Fb=j({},No,{key:function(i){if(i.key){var s=xb[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=$c(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?bb[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RA,charCode:function(i){return i.type==="keypress"?$c(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?$c(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Lb=xn(Fb),wb=j({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d_=xn(wb),Mb=j({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RA}),Hb=xn(Mb),Pb=j({},Pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ub=xn(Pb),kb=j({},Xc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Gb=xn(kb),jb=j({},Pi,{newState:0,oldState:0}),Vb=xn(jb),zb=[9,13,27,32],DA=nu&&"CompositionEvent"in window,So=null;nu&&"documentMode"in document&&(So=document.documentMode);var Kb=nu&&"TextEvent"in window&&!So,f_=nu&&(!DA||So&&8<So&&11>=So),A_=" ",h_=!1;function m_(i,s){switch(i){case"keyup":return zb.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Va=!1;function Yb(i,s){switch(i){case"compositionend":return p_(s);case"keypress":return s.which!==32?null:(h_=!0,A_);case"textInput":return i=s.data,i===A_&&h_?null:i;default:return null}}function Zb(i,s){if(Va)return i==="compositionend"||!DA&&m_(i,s)?(i=s_(),Wc=SA=ku=null,Va=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return f_&&s.locale!=="ko"?null:s.data;default:return null}}var Wb={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 E_(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!Wb[i.type]:s==="textarea"}function g_(i,s,c,h){Ga?ja?ja.push(h):ja=[h]:Ga=h,s=wd(s,"onChange"),0<s.length&&(c=new Qc("onChange","change",null,c,h),i.push({event:c,listeners:s}))}var Co=null,yo=null;function $b(i){zI(i,0)}function Jc(i){var s=Eo(i);if(J4(s))return i}function __(i,s){if(i==="change")return s}var N_=!1;if(nu){var TA;if(nu){var xA="oninput"in document;if(!xA){var I_=document.createElement("div");I_.setAttribute("oninput","return;"),xA=typeof I_.oninput=="function"}TA=xA}else TA=!1;N_=TA&&(!document.documentMode||9<document.documentMode)}function S_(){Co&&(Co.detachEvent("onpropertychange",C_),yo=Co=null)}function C_(i){if(i.propertyName==="value"&&Jc(yo)){var s=[];g_(s,yo,i,_A(i)),a_($b,s)}}function qb(i,s,c){i==="focusin"?(S_(),Co=s,yo=c,Co.attachEvent("onpropertychange",C_)):i==="focusout"&&S_()}function Qb(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Jc(yo)}function Xb(i,s){if(i==="click")return Jc(s)}function Jb(i,s){if(i==="input"||i==="change")return Jc(s)}function eB(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Pn=typeof Object.is=="function"?Object.is:eB;function vo(i,s){if(Pn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var p=c[h];if(!Q.call(s,p)||!Pn(i[p],s[p]))return!1}return!0}function y_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function v_(i,s){var c=y_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=s&&h>=s)return{node:c,offset:s-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=y_(c)}}function R_(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?R_(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function D_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Yc(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=Yc(i.document)}return s}function bA(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function tB(i,s){var c=D_(s);s=i.focusedElem;var h=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&R_(s.ownerDocument.documentElement,s)){if(h!==null&&bA(s)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else if(c=(i=s.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,S=Math.min(h.start,p);h=h.end===void 0?S:Math.min(h.end,p),!c.extend&&S>h&&(p=h,h=S,S=p),p=v_(s,S);var T=v_(s,h);p&&T&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==T.node||c.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),c.removeAllRanges(),S>h?(c.addRange(i),c.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),c.addRange(i)))}}for(i=[],c=s;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)c=i[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var nB=nu&&"documentMode"in document&&11>=document.documentMode,za=null,BA=null,Ro=null,OA=!1;function T_(i,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;OA||za==null||za!==Yc(h)||(h=za,"selectionStart"in h&&bA(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ro&&vo(Ro,h)||(Ro=h,h=wd(BA,"onSelect"),0<h.length&&(s=new Qc("onSelect","select",null,s,c),i.push({event:s,listeners:h}),s.target=za)))}function Ui(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}var Ka={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},FA={},x_={};nu&&(x_=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function ki(i){if(FA[i])return FA[i];if(!Ka[i])return i;var s=Ka[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in x_)return FA[i]=s[c];return i}var b_=ki("animationend"),B_=ki("animationiteration"),O_=ki("animationstart"),rB=ki("transitionrun"),uB=ki("transitionstart"),iB=ki("transitioncancel"),F_=ki("transitionend"),L_=new Map,w_="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 scrollEnd toggle touchMove waiting wheel".split(" ");function gr(i,s){L_.set(i,s),Hi(s,[i])}var Jn=[],Ya=0,LA=0;function ed(){for(var i=Ya,s=LA=Ya=0;s<i;){var c=Jn[s];Jn[s++]=null;var h=Jn[s];Jn[s++]=null;var p=Jn[s];Jn[s++]=null;var S=Jn[s];if(Jn[s++]=null,h!==null&&p!==null){var T=h.pending;T===null?p.next=p:(p.next=T.next,T.next=p),h.pending=p}S!==0&&M_(c,p,S)}}function td(i,s,c,h){Jn[Ya++]=i,Jn[Ya++]=s,Jn[Ya++]=c,Jn[Ya++]=h,LA|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function wA(i,s,c,h){return td(i,s,c,h),nd(i)}function Gu(i,s){return td(i,null,null,s),nd(i)}function M_(i,s,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var p=!1,S=i.return;S!==null;)S.childLanes|=c,h=S.alternate,h!==null&&(h.childLanes|=c),S.tag===22&&(i=S.stateNode,i===null||i._visibility&1||(p=!0)),i=S,S=S.return;p&&s!==null&&i.tag===3&&(S=i.stateNode,p=31-Hn(c),S=S.hiddenUpdates,i=S[p],i===null?S[p]=[s]:i.push(s),s.lane=c|536870912)}function nd(i){if(50<Qo)throw Qo=0,Gh=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Za={},H_=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var c=H_.get(i);return c!==void 0?c:(s={value:i,source:s,stack:ne(s)},H_.set(i,s),s)}return{value:i,source:s,stack:ne(s)}}var Wa=[],$a=0,rd=null,ud=0,tr=[],nr=0,Gi=null,uu=1,iu="";function ji(i,s){Wa[$a++]=ud,Wa[$a++]=rd,rd=i,ud=s}function P_(i,s,c){tr[nr++]=uu,tr[nr++]=iu,tr[nr++]=Gi,Gi=i;var h=uu;i=iu;var p=32-Hn(h)-1;h&=~(1<<p),c+=1;var S=32-Hn(s)+p;if(30<S){var T=p-p%5;S=(h&(1<<T)-1).toString(32),h>>=T,p-=T,uu=1<<32-Hn(s)+p|c<<p|h,iu=S+i}else uu=1<<S|c<<p|h,iu=i}function MA(i){i.return!==null&&(ji(i,1),P_(i,1,0))}function HA(i){for(;i===rd;)rd=Wa[--$a],Wa[$a]=null,ud=Wa[--$a],Wa[$a]=null;for(;i===Gi;)Gi=tr[--nr],tr[nr]=null,iu=tr[--nr],tr[nr]=null,uu=tr[--nr],tr[nr]=null}var Sn=null,an=null,dt=!1,_r=null,Or=!1,PA=Error(r(519));function Vi(i){var s=Error(r(418,""));throw xo(er(s,i)),PA}function U_(i){var s=i.stateNode,c=i.type,h=i.memoizedProps;switch(s[fn]=i,s[Tn]=h,c){case"dialog":st("cancel",s),st("close",s);break;case"iframe":case"object":case"embed":st("load",s);break;case"video":case"audio":for(c=0;c<Jo.length;c++)st(Jo[c],s);break;case"source":st("error",s);break;case"img":case"image":case"link":st("error",s),st("load",s);break;case"details":st("toggle",s);break;case"input":st("invalid",s),e_(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Kc(s);break;case"select":st("invalid",s);break;case"textarea":st("invalid",s),n_(s,h.value,h.defaultValue,h.children),Kc(s)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||WI(s.textContent,c)?(h.popover!=null&&(st("beforetoggle",s),st("toggle",s)),h.onScroll!=null&&st("scroll",s),h.onScrollEnd!=null&&st("scrollend",s),h.onClick!=null&&(s.onclick=Md),s=!0):s=!1,s||Vi(i)}function k_(i){for(Sn=i.return;Sn;)switch(Sn.tag){case 3:case 27:Or=!0;return;case 5:case 13:Or=!1;return;default:Sn=Sn.return}}function Do(i){if(i!==Sn)return!1;if(!dt)return k_(i),dt=!0,!1;var s=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||um(i.type,i.memoizedProps)),c=!c),c&&(s=!0),s&&an&&Vi(i),k_(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(s===0){an=Ir(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;i=i.nextSibling}an=null}}else an=Sn?Ir(i.stateNode.nextSibling):null;return!0}function To(){an=Sn=null,dt=!1}function xo(i){_r===null?_r=[i]:_r.push(i)}var bo=Error(r(460)),G_=Error(r(474)),UA={then:function(){}};function j_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function id(){}function V_(i,s,c){switch(c=i[c],c===void 0?i.push(s):c!==s&&(s.then(id,id),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===bo?Error(r(483)):i;default:if(typeof s.status=="string")s.then(id,id);else{if(i=gt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=h}},function(h){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===bo?Error(r(483)):i}throw Bo=s,bo}}var Bo=null;function z_(){if(Bo===null)throw Error(r(459));var i=Bo;return Bo=null,i}var qa=null,Oo=0;function ad(i){var s=Oo;return Oo+=1,qa===null&&(qa=[]),V_(qa,i,s)}function Fo(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function sd(i,s){throw s.$$typeof===o?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function K_(i){var s=i._init;return s(i._payload)}function Y_(i){function s(Z,z){if(i){var q=Z.deletions;q===null?(Z.deletions=[z],Z.flags|=16):q.push(z)}}function c(Z,z){if(!i)return null;for(;z!==null;)s(Z,z),z=z.sibling;return null}function h(Z){for(var z=new Map;Z!==null;)Z.key!==null?z.set(Z.key,Z):z.set(Z.index,Z),Z=Z.sibling;return z}function p(Z,z){return Z=Ju(Z,z),Z.index=0,Z.sibling=null,Z}function S(Z,z,q){return Z.index=q,i?(q=Z.alternate,q!==null?(q=q.index,q<z?(Z.flags|=33554434,z):q):(Z.flags|=33554434,z)):(Z.flags|=1048576,z)}function T(Z){return i&&Z.alternate===null&&(Z.flags|=33554434),Z}function B(Z,z,q,le){return z===null||z.tag!==6?(z=Fh(q,Z.mode,le),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function M(Z,z,q,le){var Te=q.type;return Te===f?ae(Z,z,q.props.children,le,q.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&K_(Te)===z.type)?(z=p(z,q.props),Fo(z,q),z.return=Z,z):(z=vd(q.type,q.key,q.props,null,Z.mode,le),Fo(z,q),z.return=Z,z)}function K(Z,z,q,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==q.containerInfo||z.stateNode.implementation!==q.implementation?(z=Lh(q,Z.mode,le),z.return=Z,z):(z=p(z,q.children||[]),z.return=Z,z)}function ae(Z,z,q,le,Te){return z===null||z.tag!==7?(z=Ji(q,Z.mode,le,Te),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function Ae(Z,z,q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Fh(""+z,Z.mode,q),z.return=Z,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case l:return q=vd(z.type,z.key,z.props,null,Z.mode,q),Fo(q,z),q.return=Z,q;case d:return z=Lh(z,Z.mode,q),z.return=Z,z;case D:var le=z._init;return z=le(z._payload),Ae(Z,z,q)}if(re(z)||O(z))return z=Ji(z,Z.mode,q,null),z.return=Z,z;if(typeof z.then=="function")return Ae(Z,ad(z),q);if(z.$$typeof===_)return Ae(Z,Sd(Z,z),q);sd(Z,z)}return null}function X(Z,z,q,le){var Te=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Te!==null?null:B(Z,z,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===Te?M(Z,z,q,le):null;case d:return q.key===Te?K(Z,z,q,le):null;case D:return Te=q._init,q=Te(q._payload),X(Z,z,q,le)}if(re(q)||O(q))return Te!==null?null:ae(Z,z,q,le,null);if(typeof q.then=="function")return X(Z,z,ad(q),le);if(q.$$typeof===_)return X(Z,z,Sd(Z,q),le);sd(Z,q)}return null}function ie(Z,z,q,le,Te){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Z=Z.get(q)||null,B(z,Z,""+le,Te);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Z=Z.get(le.key===null?q:le.key)||null,M(z,Z,le,Te);case d:return Z=Z.get(le.key===null?q:le.key)||null,K(z,Z,le,Te);case D:var rt=le._init;return le=rt(le._payload),ie(Z,z,q,le,Te)}if(re(le)||O(le))return Z=Z.get(q)||null,ae(z,Z,le,Te,null);if(typeof le.then=="function")return ie(Z,z,q,ad(le),Te);if(le.$$typeof===_)return ie(Z,z,q,Sd(z,le),Te);sd(z,le)}return null}function Le(Z,z,q,le){for(var Te=null,rt=null,He=z,Pe=z=0,en=null;He!==null&&Pe<q.length;Pe++){He.index>Pe?(en=He,He=null):en=He.sibling;var ft=X(Z,He,q[Pe],le);if(ft===null){He===null&&(He=en);break}i&&He&&ft.alternate===null&&s(Z,He),z=S(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft,He=en}if(Pe===q.length)return c(Z,He),dt&&ji(Z,Pe),Te;if(He===null){for(;Pe<q.length;Pe++)He=Ae(Z,q[Pe],le),He!==null&&(z=S(He,z,Pe),rt===null?Te=He:rt.sibling=He,rt=He);return dt&&ji(Z,Pe),Te}for(He=h(He);Pe<q.length;Pe++)en=ie(He,Z,Pe,q[Pe],le),en!==null&&(i&&en.alternate!==null&&He.delete(en.key===null?Pe:en.key),z=S(en,z,Pe),rt===null?Te=en:rt.sibling=en,rt=en);return i&&He.forEach(function(ai){return s(Z,ai)}),dt&&ji(Z,Pe),Te}function Ye(Z,z,q,le){if(q==null)throw Error(r(151));for(var Te=null,rt=null,He=z,Pe=z=0,en=null,ft=q.next();He!==null&&!ft.done;Pe++,ft=q.next()){He.index>Pe?(en=He,He=null):en=He.sibling;var ai=X(Z,He,ft.value,le);if(ai===null){He===null&&(He=en);break}i&&He&&ai.alternate===null&&s(Z,He),z=S(ai,z,Pe),rt===null?Te=ai:rt.sibling=ai,rt=ai,He=en}if(ft.done)return c(Z,He),dt&&ji(Z,Pe),Te;if(He===null){for(;!ft.done;Pe++,ft=q.next())ft=Ae(Z,ft.value,le),ft!==null&&(z=S(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft);return dt&&ji(Z,Pe),Te}for(He=h(He);!ft.done;Pe++,ft=q.next())ft=ie(He,Z,Pe,ft.value,le),ft!==null&&(i&&ft.alternate!==null&&He.delete(ft.key===null?Pe:ft.key),z=S(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft);return i&&He.forEach(function(_O){return s(Z,_O)}),dt&&ji(Z,Pe),Te}function Ot(Z,z,q,le){if(typeof q=="object"&&q!==null&&q.type===f&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case l:e:{for(var Te=q.key;z!==null;){if(z.key===Te){if(Te=q.type,Te===f){if(z.tag===7){c(Z,z.sibling),le=p(z,q.props.children),le.return=Z,Z=le;break e}}else if(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&K_(Te)===z.type){c(Z,z.sibling),le=p(z,q.props),Fo(le,q),le.return=Z,Z=le;break e}c(Z,z);break}else s(Z,z);z=z.sibling}q.type===f?(le=Ji(q.props.children,Z.mode,le,q.key),le.return=Z,Z=le):(le=vd(q.type,q.key,q.props,null,Z.mode,le),Fo(le,q),le.return=Z,Z=le)}return T(Z);case d:e:{for(Te=q.key;z!==null;){if(z.key===Te)if(z.tag===4&&z.stateNode.containerInfo===q.containerInfo&&z.stateNode.implementation===q.implementation){c(Z,z.sibling),le=p(z,q.children||[]),le.return=Z,Z=le;break e}else{c(Z,z);break}else s(Z,z);z=z.sibling}le=Lh(q,Z.mode,le),le.return=Z,Z=le}return T(Z);case D:return Te=q._init,q=Te(q._payload),Ot(Z,z,q,le)}if(re(q))return Le(Z,z,q,le);if(O(q)){if(Te=O(q),typeof Te!="function")throw Error(r(150));return q=Te.call(q),Ye(Z,z,q,le)}if(typeof q.then=="function")return Ot(Z,z,ad(q),le);if(q.$$typeof===_)return Ot(Z,z,Sd(Z,q),le);sd(Z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,z!==null&&z.tag===6?(c(Z,z.sibling),le=p(z,q),le.return=Z,Z=le):(c(Z,z),le=Fh(q,Z.mode,le),le.return=Z,Z=le),T(Z)):c(Z,z)}return function(Z,z,q,le){try{Oo=0;var Te=Ot(Z,z,q,le);return qa=null,Te}catch(He){if(He===bo)throw He;var rt=ar(29,He,null,Z.mode);return rt.lanes=le,rt.return=Z,rt}finally{}}}var zi=Y_(!0),Z_=Y_(!1),Qa=ve(null),od=ve(0);function W_(i,s){i=pu,we(od,i),we(Qa,s),pu=i|s.baseLanes}function kA(){we(od,pu),we(Qa,Qa.current)}function GA(){pu=od.current,je(Qa),je(od)}var rr=ve(null),Fr=null;function ju(i){var s=i.alternate;we(Kt,Kt.current&1),we(rr,i),Fr===null&&(s===null||Qa.current!==null||s.memoizedState!==null)&&(Fr=i)}function $_(i){if(i.tag===22){if(we(Kt,Kt.current),we(rr,i),Fr===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Fr=i)}}else Vu()}function Vu(){we(Kt,Kt.current),we(rr,rr.current)}function au(i){je(rr),Fr===i&&(Fr=null),je(Kt)}var Kt=ve(0);function ld(i){for(var s=i;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var aB=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},sB=e.unstable_scheduleCallback,oB=e.unstable_NormalPriority,Yt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jA(){return{controller:new aB,data:new Map,refCount:0}}function Lo(i){i.refCount--,i.refCount===0&&sB(oB,function(){i.controller.abort()})}var wo=null,VA=0,Xa=0,Ja=null;function lB(i,s){if(wo===null){var c=wo=[];VA=0,Xa=$h(),Ja={status:"pending",value:void 0,then:function(h){c.push(h)}}}return VA++,s.then(q_,q_),s}function q_(){if(--VA===0&&wo!==null){Ja!==null&&(Ja.status="fulfilled");var i=wo;wo=null,Xa=0,Ja=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function cB(i,s){var c=[],h={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(h.status="rejected",h.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),h}var Q_=U.S;U.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&lB(i,s),Q_!==null&&Q_(i,s)};var Ki=ve(null);function zA(){var i=Ki.current;return i!==null?i:gt.pooledCache}function cd(i,s){s===null?we(Ki,Ki.current):we(Ki,s.pool)}function X_(){var i=zA();return i===null?null:{parent:Yt._currentValue,pool:i}}var zu=0,et=null,ht=null,kt=null,dd=!1,es=!1,Yi=!1,fd=0,Mo=0,ts=null,dB=0;function Mt(){throw Error(r(321))}function KA(i,s){if(s===null)return!1;for(var c=0;c<s.length&&c<i.length;c++)if(!Pn(i[c],s[c]))return!1;return!0}function YA(i,s,c,h,p,S){return zu=S,et=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,U.H=i===null||i.memoizedState===null?Zi:Ku,Yi=!1,S=c(h,p),Yi=!1,es&&(S=eN(s,c,h,p)),J_(i),S}function J_(i){U.H=Lr;var s=ht!==null&&ht.next!==null;if(zu=0,kt=ht=et=null,dd=!1,Mo=0,ts=null,s)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Id(i)&&(Xt=!0))}function eN(i,s,c,h){et=i;var p=0;do{if(es&&(ts=null),Mo=0,es=!1,25<=p)throw Error(r(301));if(p+=1,kt=ht=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}U.H=Wi,S=s(c,h)}while(es);return S}function fB(){var i=U.H,s=i.useState()[0];return s=typeof s.then=="function"?Ho(s):s,i=i.useState()[0],(ht!==null?ht.memoizedState:null)!==i&&(et.flags|=1024),s}function ZA(){var i=fd!==0;return fd=0,i}function WA(i,s,c){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~c}function $A(i){if(dd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}dd=!1}zu=0,kt=ht=et=null,es=!1,Mo=fd=0,ts=null}function bn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?et.memoizedState=kt=i:kt=kt.next=i,kt}function Gt(){if(ht===null){var i=et.alternate;i=i!==null?i.memoizedState:null}else i=ht.next;var s=kt===null?et.memoizedState:kt.next;if(s!==null)kt=s,ht=i;else{if(i===null)throw et.alternate===null?Error(r(467)):Error(r(310));ht=i,i={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},kt===null?et.memoizedState=kt=i:kt=kt.next=i}return kt}var Ad;Ad=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ho(i){var s=Mo;return Mo+=1,ts===null&&(ts=[]),i=V_(ts,i,s),s=et,(kt===null?s.memoizedState:kt.next)===null&&(s=s.alternate,U.H=s===null||s.memoizedState===null?Zi:Ku),i}function hd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ho(i);if(i.$$typeof===_)return An(i)}throw Error(r(438,String(i)))}function qA(i){var s=null,c=et.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=et.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Ad(),et.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(i),h=0;h<i;h++)c[h]=F;return s.index++,c}function su(i,s){return typeof s=="function"?s(i):s}function md(i){var s=Gt();return QA(s,ht,i)}function QA(i,s,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var p=i.baseQueue,S=h.pending;if(S!==null){if(p!==null){var T=p.next;p.next=S.next,S.next=T}s.baseQueue=p=S,h.pending=null}if(S=i.baseState,p===null)i.memoizedState=S;else{s=p.next;var B=T=null,M=null,K=s,ae=!1;do{var Ae=K.lane&-536870913;if(Ae!==K.lane?(lt&Ae)===Ae:(zu&Ae)===Ae){var X=K.revertLane;if(X===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),Ae===Xa&&(ae=!0);else if((zu&X)===X){K=K.next,X===Xa&&(ae=!0);continue}else Ae={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(B=M=Ae,T=S):M=M.next=Ae,et.lanes|=X,ei|=X;Ae=K.action,Yi&&c(S,Ae),S=K.hasEagerState?K.eagerState:c(S,Ae)}else X={lane:Ae,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(B=M=X,T=S):M=M.next=X,et.lanes|=Ae,ei|=Ae;K=K.next}while(K!==null&&K!==s);if(M===null?T=S:M.next=B,!Pn(S,i.memoizedState)&&(Xt=!0,ae&&(c=Ja,c!==null)))throw c;i.memoizedState=S,i.baseState=T,i.baseQueue=M,h.lastRenderedState=S}return p===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function XA(i){var s=Gt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,p=c.pending,S=s.memoizedState;if(p!==null){c.pending=null;var T=p=p.next;do S=i(S,T.action),T=T.next;while(T!==p);Pn(S,s.memoizedState)||(Xt=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),c.lastRenderedState=S}return[S,h]}function tN(i,s,c){var h=et,p=Gt(),S=dt;if(S){if(c===void 0)throw Error(r(407));c=c()}else c=s();var T=!Pn((ht||p).memoizedState,c);if(T&&(p.memoizedState=c,Xt=!0),p=p.queue,th(uN.bind(null,h,p,i),[i]),p.getSnapshot!==s||T||kt!==null&&kt.memoizedState.tag&1){if(h.flags|=2048,ns(9,rN.bind(null,h,p,c,s),{destroy:void 0},null),gt===null)throw Error(r(349));S||(zu&60)!==0||nN(h,s,c)}return c}function nN(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=et.updateQueue,s===null?(s=Ad(),et.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function rN(i,s,c,h){s.value=c,s.getSnapshot=h,iN(s)&&aN(i)}function uN(i,s,c){return c(function(){iN(s)&&aN(i)})}function iN(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!Pn(i,c)}catch{return!0}}function aN(i){var s=Gu(i,2);s!==null&&Cn(s,i,2)}function JA(i){var s=bn();if(typeof i=="function"){var c=i;if(i=c(),Yi){Pu(!0);try{c()}finally{Pu(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:i},s}function sN(i,s,c,h){return i.baseState=c,QA(i,ht,typeof h=="function"?h:su)}function AB(i,s,c,h,p){if(gd(i))throw Error(r(485));if(i=s.action,i!==null){var S={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){S.listeners.push(T)}};U.T!==null?c(!0):S.isTransition=!1,h(S),c=s.pending,c===null?(S.next=s.pending=S,oN(s,S)):(S.next=c.next,s.pending=c.next=S)}}function oN(i,s){var c=s.action,h=s.payload,p=i.state;if(s.isTransition){var S=U.T,T={};U.T=T;try{var B=c(p,h),M=U.S;M!==null&&M(T,B),lN(i,s,B)}catch(K){eh(i,s,K)}finally{U.T=S}}else try{S=c(p,h),lN(i,s,S)}catch(K){eh(i,s,K)}}function lN(i,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){cN(i,s,h)},function(h){return eh(i,s,h)}):cN(i,s,c)}function cN(i,s,c){s.status="fulfilled",s.value=c,dN(s),i.state=c,s=i.pending,s!==null&&(c=s.next,c===s?i.pending=null:(c=c.next,s.next=c,oN(i,c)))}function eh(i,s,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,dN(s),s=s.next;while(s!==h)}i.action=null}function dN(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function fN(i,s){return s}function AN(i,s){if(dt){var c=gt.formState;if(c!==null){e:{var h=et;if(dt){if(an){t:{for(var p=an,S=Or;p.nodeType!==8;){if(!S){p=null;break t}if(p=Ir(p.nextSibling),p===null){p=null;break t}}S=p.data,p=S==="F!"||S==="F"?p:null}if(p){an=Ir(p.nextSibling),h=p.data==="F!";break e}}Vi(h)}h=!1}h&&(s=c[0])}}return c=bn(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fN,lastRenderedState:s},c.queue=h,c=BN.bind(null,et,h),h.dispatch=c,h=JA(!1),S=ah.bind(null,et,!1,h.queue),h=bn(),p={state:s,dispatch:null,action:i,pending:null},h.queue=p,c=AB.bind(null,et,p,S,c),p.dispatch=c,h.memoizedState=i,[s,c,!1]}function hN(i){var s=Gt();return mN(s,ht,i)}function mN(i,s,c){s=QA(i,s,fN)[0],i=md(su)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Ho(s):s;var h=Gt(),p=h.queue,S=p.dispatch;return c!==h.memoizedState&&(et.flags|=2048,ns(9,hB.bind(null,p,c),{destroy:void 0},null)),[s,S,i]}function hB(i,s){i.action=s}function pN(i){var s=Gt(),c=ht;if(c!==null)return mN(s,c,i);Gt(),s=s.memoizedState,c=Gt();var h=c.queue.dispatch;return c.memoizedState=i,[s,h,!1]}function ns(i,s,c,h){return i={tag:i,create:s,inst:c,deps:h,next:null},s=et.updateQueue,s===null&&(s=Ad(),et.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,s.lastEffect=i),i}function EN(){return Gt().memoizedState}function pd(i,s,c,h){var p=bn();et.flags|=i,p.memoizedState=ns(1|s,c,{destroy:void 0},h===void 0?null:h)}function Ed(i,s,c,h){var p=Gt();h=h===void 0?null:h;var S=p.memoizedState.inst;ht!==null&&h!==null&&KA(h,ht.memoizedState.deps)?p.memoizedState=ns(s,c,S,h):(et.flags|=i,p.memoizedState=ns(1|s,c,S,h))}function gN(i,s){pd(8390656,8,i,s)}function th(i,s){Ed(2048,8,i,s)}function _N(i,s){return Ed(4,2,i,s)}function NN(i,s){return Ed(4,4,i,s)}function IN(i,s){if(typeof s=="function"){i=i();var c=s(i);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function SN(i,s,c){c=c!=null?c.concat([i]):null,Ed(4,4,IN.bind(null,s,i),c)}function nh(){}function CN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&KA(s,h[1])?h[0]:(c.memoizedState=[i,s],i)}function yN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&KA(s,h[1]))return h[0];if(h=i(),Yi){Pu(!0);try{i()}finally{Pu(!1)}}return c.memoizedState=[h,s],h}function rh(i,s,c){return c===void 0||(zu&1073741824)!==0?i.memoizedState=s:(i.memoizedState=c,i=RI(),et.lanes|=i,ei|=i,c)}function vN(i,s,c,h){return Pn(c,s)?c:Qa.current!==null?(i=rh(i,c,h),Pn(i,s)||(Xt=!0),i):(zu&42)===0?(Xt=!0,i.memoizedState=c):(i=RI(),et.lanes|=i,ei|=i,s)}function RN(i,s,c,h,p){var S=te.p;te.p=S!==0&&8>S?S:8;var T=U.T,B={};U.T=B,ah(i,!1,s,c);try{var M=p(),K=U.S;if(K!==null&&K(B,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ae=cB(M,h);Po(i,s,ae,jn(i))}else Po(i,s,h,jn(i))}catch(Ae){Po(i,s,{then:function(){},status:"rejected",reason:Ae},jn())}finally{te.p=S,U.T=T}}function mB(){}function uh(i,s,c,h){if(i.tag!==5)throw Error(r(476));var p=DN(i).queue;RN(i,p,s,ce,c===null?mB:function(){return TN(i),c(h)})}function DN(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:ce},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:c},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function TN(i){var s=DN(i).next.queue;Po(i,s,{},jn())}function ih(){return An(ul)}function xN(){return Gt().memoizedState}function bN(){return Gt().memoizedState}function pB(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var c=jn();i=Wu(c);var h=$u(s,i,c);h!==null&&(Cn(h,s,c),Go(h,s,c)),s={cache:jA()},i.payload=s;return}s=s.return}}function EB(i,s,c){var h=jn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},gd(i)?ON(s,c):(c=wA(i,s,c,h),c!==null&&(Cn(c,i,h),FN(c,s,h)))}function BN(i,s,c){var h=jn();Po(i,s,c,h)}function Po(i,s,c,h){var p={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(gd(i))ON(s,p);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var T=s.lastRenderedState,B=S(T,c);if(p.hasEagerState=!0,p.eagerState=B,Pn(B,T))return td(i,s,p,0),gt===null&&ed(),!1}catch{}finally{}if(c=wA(i,s,p,h),c!==null)return Cn(c,i,h),FN(c,s,h),!0}return!1}function ah(i,s,c,h){if(h={lane:2,revertLane:$h(),action:h,hasEagerState:!1,eagerState:null,next:null},gd(i)){if(s)throw Error(r(479))}else s=wA(i,c,h,2),s!==null&&Cn(s,i,2)}function gd(i){var s=i.alternate;return i===et||s!==null&&s===et}function ON(i,s){es=dd=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function FN(i,s,c){if((c&4194176)!==0){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,z4(i,c)}}var Lr={readContext:An,use:hd,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt};Lr.useCacheRefresh=Mt,Lr.useMemoCache=Mt,Lr.useHostTransitionStatus=Mt,Lr.useFormState=Mt,Lr.useActionState=Mt,Lr.useOptimistic=Mt;var Zi={readContext:An,use:hd,useCallback:function(i,s){return bn().memoizedState=[i,s===void 0?null:s],i},useContext:An,useEffect:gN,useImperativeHandle:function(i,s,c){c=c!=null?c.concat([i]):null,pd(4194308,4,IN.bind(null,s,i),c)},useLayoutEffect:function(i,s){return pd(4194308,4,i,s)},useInsertionEffect:function(i,s){pd(4,2,i,s)},useMemo:function(i,s){var c=bn();s=s===void 0?null:s;var h=i();if(Yi){Pu(!0);try{i()}finally{Pu(!1)}}return c.memoizedState=[h,s],h},useReducer:function(i,s,c){var h=bn();if(c!==void 0){var p=c(s);if(Yi){Pu(!0);try{c(s)}finally{Pu(!1)}}}else p=s;return h.memoizedState=h.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},h.queue=i,i=i.dispatch=EB.bind(null,et,i),[h.memoizedState,i]},useRef:function(i){var s=bn();return i={current:i},s.memoizedState=i},useState:function(i){i=JA(i);var s=i.queue,c=BN.bind(null,et,s);return s.dispatch=c,[i.memoizedState,c]},useDebugValue:nh,useDeferredValue:function(i,s){var c=bn();return rh(c,i,s)},useTransition:function(){var i=JA(!1);return i=RN.bind(null,et,i.queue,!0,!1),bn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,c){var h=et,p=bn();if(dt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),gt===null)throw Error(r(349));(lt&60)!==0||nN(h,s,c)}p.memoizedState=c;var S={value:c,getSnapshot:s};return p.queue=S,gN(uN.bind(null,h,S,i),[i]),h.flags|=2048,ns(9,rN.bind(null,h,S,c,s),{destroy:void 0},null),c},useId:function(){var i=bn(),s=gt.identifierPrefix;if(dt){var c=iu,h=uu;c=(h&~(1<<32-Hn(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=fd++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=dB++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},useCacheRefresh:function(){return bn().memoizedState=pB.bind(null,et)}};Zi.useMemoCache=qA,Zi.useHostTransitionStatus=ih,Zi.useFormState=AN,Zi.useActionState=AN,Zi.useOptimistic=function(i){var s=bn();s.memoizedState=s.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=ah.bind(null,et,!0,c),c.dispatch=s,[i,s]};var Ku={readContext:An,use:hd,useCallback:CN,useContext:An,useEffect:th,useImperativeHandle:SN,useInsertionEffect:_N,useLayoutEffect:NN,useMemo:yN,useReducer:md,useRef:EN,useState:function(){return md(su)},useDebugValue:nh,useDeferredValue:function(i,s){var c=Gt();return vN(c,ht.memoizedState,i,s)},useTransition:function(){var i=md(su)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Ho(i),s]},useSyncExternalStore:tN,useId:xN};Ku.useCacheRefresh=bN,Ku.useMemoCache=qA,Ku.useHostTransitionStatus=ih,Ku.useFormState=hN,Ku.useActionState=hN,Ku.useOptimistic=function(i,s){var c=Gt();return sN(c,ht,i,s)};var Wi={readContext:An,use:hd,useCallback:CN,useContext:An,useEffect:th,useImperativeHandle:SN,useInsertionEffect:_N,useLayoutEffect:NN,useMemo:yN,useReducer:XA,useRef:EN,useState:function(){return XA(su)},useDebugValue:nh,useDeferredValue:function(i,s){var c=Gt();return ht===null?rh(c,i,s):vN(c,ht.memoizedState,i,s)},useTransition:function(){var i=XA(su)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Ho(i),s]},useSyncExternalStore:tN,useId:xN};Wi.useCacheRefresh=bN,Wi.useMemoCache=qA,Wi.useHostTransitionStatus=ih,Wi.useFormState=pN,Wi.useActionState=pN,Wi.useOptimistic=function(i,s){var c=Gt();return ht!==null?sN(c,ht,i,s):(c.baseState=i,[i,c.queue.dispatch])};function sh(i,s,c,h){s=i.memoizedState,c=c(h,s),c=c==null?s:j({},s,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var oh={isMounted:function(i){return(i=i._reactInternals)?ee(i)===i:!1},enqueueSetState:function(i,s,c){i=i._reactInternals;var h=jn(),p=Wu(h);p.payload=s,c!=null&&(p.callback=c),s=$u(i,p,h),s!==null&&(Cn(s,i,h),Go(s,i,h))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var h=jn(),p=Wu(h);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=$u(i,p,h),s!==null&&(Cn(s,i,h),Go(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=jn(),h=Wu(c);h.tag=2,s!=null&&(h.callback=s),s=$u(i,h,c),s!==null&&(Cn(s,i,c),Go(s,i,c))}};function LN(i,s,c,h,p,S,T){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,S,T):s.prototype&&s.prototype.isPureReactComponent?!vo(c,h)||!vo(p,S):!0}function wN(i,s,c,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==i&&oh.enqueueReplaceState(s,s.state,null)}function $i(i,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(i=i.defaultProps){c===s&&(c=j({},c));for(var p in i)c[p]===void 0&&(c[p]=i[p])}return c}var _d=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function MN(i){_d(i)}function HN(i){console.error(i)}function PN(i){_d(i)}function Nd(i,s){try{var c=i.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function UN(i,s,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function lh(i,s,c){return c=Wu(c),c.tag=3,c.payload={element:null},c.callback=function(){Nd(i,s)},c}function kN(i){return i=Wu(i),i.tag=3,i}function GN(i,s,c,h){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var S=h.value;i.payload=function(){return p(S)},i.callback=function(){UN(s,c,h)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(i.callback=function(){UN(s,c,h),typeof p!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var B=h.stack;this.componentDidCatch(h.value,{componentStack:B!==null?B:""})})}function gB(i,s,c,h,p){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&ko(s,c,p,!0),c=rr.current,c!==null){switch(c.tag){case 13:return Fr===null?zh():c.alternate===null&&Bt===0&&(Bt=3),c.flags&=-257,c.flags|=65536,c.lanes=p,h===UA?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Yh(i,h,p)),!1;case 22:return c.flags|=65536,h===UA?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Yh(i,h,p)),!1}throw Error(r(435,c.tag))}return Yh(i,h,p),zh(),!1}if(dt)return s=rr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,h!==PA&&(i=Error(r(422),{cause:h}),xo(er(i,c)))):(h!==PA&&(s=Error(r(423),{cause:h}),xo(er(s,c))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,h=er(h,c),p=lh(i.stateNode,h,p),yh(i,p),Bt!==4&&(Bt=2)),!1;var S=Error(r(520),{cause:h});if(S=er(S,c),$o===null?$o=[S]:$o.push(S),Bt!==4&&(Bt=2),s===null)return!0;h=er(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,i=p&-p,c.lanes|=i,i=lh(c.stateNode,h,i),yh(c,i),!1;case 1:if(s=c.type,S=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ti===null||!ti.has(S))))return c.flags|=65536,p&=-p,c.lanes|=p,p=kN(p),GN(p,i,c,h),yh(c,p),!1}c=c.return}while(c!==null);return!1}var jN=Error(r(461)),Xt=!1;function sn(i,s,c,h){s.child=i===null?Z_(s,null,c,h):zi(s,i.child,c,h)}function VN(i,s,c,h,p){c=c.render;var S=s.ref;if("ref"in h){var T={};for(var B in h)B!=="ref"&&(T[B]=h[B])}else T=h;return Qi(s),h=YA(i,s,c,T,S,p),B=ZA(),i!==null&&!Xt?(WA(i,s,p),ou(i,s,p)):(dt&&B&&MA(s),s.flags|=1,sn(i,s,h,p),s.child)}function zN(i,s,c,h,p){if(i===null){var S=c.type;return typeof S=="function"&&!Oh(S)&&S.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=S,KN(i,s,S,h,p)):(i=vd(c.type,null,h,s,s.mode,p),i.ref=s.ref,i.return=s,s.child=i)}if(S=i.child,!gh(i,p)){var T=S.memoizedProps;if(c=c.compare,c=c!==null?c:vo,c(T,h)&&i.ref===s.ref)return ou(i,s,p)}return s.flags|=1,i=Ju(S,h),i.ref=s.ref,i.return=s,s.child=i}function KN(i,s,c,h,p){if(i!==null){var S=i.memoizedProps;if(vo(S,h)&&i.ref===s.ref)if(Xt=!1,s.pendingProps=h=S,gh(i,p))(i.flags&131072)!==0&&(Xt=!0);else return s.lanes=i.lanes,ou(i,s,p)}return ch(i,s,c,h,p)}function YN(i,s,c){var h=s.pendingProps,p=h.children,S=(s.stateNode._pendingVisibility&2)!==0,T=i!==null?i.memoizedState:null;if(Uo(i,s),h.mode==="hidden"||S){if((s.flags&128)!==0){if(h=T!==null?T.baseLanes|c:c,i!==null){for(p=s.child=i.child,S=0;p!==null;)S=S|p.lanes|p.childLanes,p=p.sibling;s.childLanes=S&~h}else s.childLanes=0,s.child=null;return ZN(i,s,h,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&cd(s,T!==null?T.cachePool:null),T!==null?W_(s,T):kA(),$_(s);else return s.lanes=s.childLanes=536870912,ZN(i,s,T!==null?T.baseLanes|c:c,c)}else T!==null?(cd(s,T.cachePool),W_(s,T),Vu(),s.memoizedState=null):(i!==null&&cd(s,null),kA(),Vu());return sn(i,s,p,c),s.child}function ZN(i,s,c,h){var p=zA();return p=p===null?null:{parent:Yt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},i!==null&&cd(s,null),kA(),$_(s),i!==null&&ko(i,s,h,!0),null}function Uo(i,s){var c=s.ref;if(c===null)i!==null&&i.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(s.flags|=2097664)}}function ch(i,s,c,h,p){return Qi(s),c=YA(i,s,c,h,void 0,p),h=ZA(),i!==null&&!Xt?(WA(i,s,p),ou(i,s,p)):(dt&&h&&MA(s),s.flags|=1,sn(i,s,c,p),s.child)}function WN(i,s,c,h,p,S){return Qi(s),s.updateQueue=null,c=eN(s,h,c,p),J_(i),h=ZA(),i!==null&&!Xt?(WA(i,s,S),ou(i,s,S)):(dt&&h&&MA(s),s.flags|=1,sn(i,s,c,S),s.child)}function $N(i,s,c,h,p){if(Qi(s),s.stateNode===null){var S=Za,T=c.contextType;typeof T=="object"&&T!==null&&(S=An(T)),S=new c(h,S),s.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=oh,s.stateNode=S,S._reactInternals=s,S=s.stateNode,S.props=h,S.state=s.memoizedState,S.refs={},Sh(s),T=c.contextType,S.context=typeof T=="object"&&T!==null?An(T):Za,S.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(sh(s,c,T,h),S.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(T=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),T!==S.state&&oh.enqueueReplaceState(S,S.state,null),Vo(s,h,S,p),jo(),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){S=s.stateNode;var B=s.memoizedProps,M=$i(c,B);S.props=M;var K=S.context,ae=c.contextType;T=Za,typeof ae=="object"&&ae!==null&&(T=An(ae));var Ae=c.getDerivedStateFromProps;ae=typeof Ae=="function"||typeof S.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ae||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(B||K!==T)&&wN(s,S,h,T),Zu=!1;var X=s.memoizedState;S.state=X,Vo(s,h,S,p),jo(),K=s.memoizedState,B||X!==K||Zu?(typeof Ae=="function"&&(sh(s,c,Ae,h),K=s.memoizedState),(M=Zu||LN(s,c,M,h,X,K,T))?(ae||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=K),S.props=h,S.state=K,S.context=T,h=M):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{S=s.stateNode,Ch(i,s),T=s.memoizedProps,ae=$i(c,T),S.props=ae,Ae=s.pendingProps,X=S.context,K=c.contextType,M=Za,typeof K=="object"&&K!==null&&(M=An(K)),B=c.getDerivedStateFromProps,(K=typeof B=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==Ae||X!==M)&&wN(s,S,h,M),Zu=!1,X=s.memoizedState,S.state=X,Vo(s,h,S,p),jo();var ie=s.memoizedState;T!==Ae||X!==ie||Zu||i!==null&&i.dependencies!==null&&Id(i.dependencies)?(typeof B=="function"&&(sh(s,c,B,h),ie=s.memoizedState),(ae=Zu||LN(s,c,ae,h,X,ie,M)||i!==null&&i.dependencies!==null&&Id(i.dependencies))?(K||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(h,ie,M),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(h,ie,M)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ie),S.props=h,S.state=ie,S.context=M,h=ae):(typeof S.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),h=!1)}return S=h,Uo(i,s),h=(s.flags&128)!==0,S||h?(S=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:S.render(),s.flags|=1,i!==null&&h?(s.child=zi(s,i.child,null,p),s.child=zi(s,null,c,p)):sn(i,s,c,p),s.memoizedState=S.state,i=s.child):i=ou(i,s,p),i}function qN(i,s,c,h){return To(),s.flags|=256,sn(i,s,c,h),s.child}var dh={dehydrated:null,treeContext:null,retryLane:0};function fh(i){return{baseLanes:i,cachePool:X_()}}function Ah(i,s,c){return i=i!==null?i.childLanes&~c:0,s&&(i|=sr),i}function QN(i,s,c){var h=s.pendingProps,p=!1,S=(s.flags&128)!==0,T;if((T=S)||(T=i!==null&&i.memoizedState===null?!1:(Kt.current&2)!==0),T&&(p=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,i===null){if(dt){if(p?ju(s):Vu(),dt){var B=an,M;if(M=B){e:{for(M=B,B=Or;M.nodeType!==8;){if(!B){B=null;break e}if(M=Ir(M.nextSibling),M===null){B=null;break e}}B=M}B!==null?(s.memoizedState={dehydrated:B,treeContext:Gi!==null?{id:uu,overflow:iu}:null,retryLane:536870912},M=ar(18,null,null,0),M.stateNode=B,M.return=s,s.child=M,Sn=s,an=null,M=!0):M=!1}M||Vi(s)}if(B=s.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return B.data==="$!"?s.lanes=16:s.lanes=536870912,null;au(s)}return B=h.children,h=h.fallback,p?(Vu(),p=s.mode,B=mh({mode:"hidden",children:B},p),h=Ji(h,p,c,null),B.return=s,h.return=s,B.sibling=h,s.child=B,p=s.child,p.memoizedState=fh(c),p.childLanes=Ah(i,T,c),s.memoizedState=dh,h):(ju(s),hh(s,B))}if(M=i.memoizedState,M!==null&&(B=M.dehydrated,B!==null)){if(S)s.flags&256?(ju(s),s.flags&=-257,s=ph(i,s,c)):s.memoizedState!==null?(Vu(),s.child=i.child,s.flags|=128,s=null):(Vu(),p=h.fallback,B=s.mode,h=mh({mode:"visible",children:h.children},B),p=Ji(p,B,c,null),p.flags|=2,h.return=s,p.return=s,h.sibling=p,s.child=h,zi(s,i.child,null,c),h=s.child,h.memoizedState=fh(c),h.childLanes=Ah(i,T,c),s.memoizedState=dh,s=p);else if(ju(s),B.data==="$!"){if(T=B.nextSibling&&B.nextSibling.dataset,T)var K=T.dgst;T=K,h=Error(r(419)),h.stack="",h.digest=T,xo({value:h,source:null,stack:null}),s=ph(i,s,c)}else if(Xt||ko(i,s,c,!1),T=(c&i.childLanes)!==0,Xt||T){if(T=gt,T!==null){if(h=c&-c,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(T.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane)throw M.retryLane=h,Gu(i,h),Cn(T,i,h),jN}B.data==="$?"||zh(),s=ph(i,s,c)}else B.data==="$?"?(s.flags|=128,s.child=i.child,s=FB.bind(null,i),B._reactRetry=s,s=null):(i=M.treeContext,an=Ir(B.nextSibling),Sn=s,dt=!0,_r=null,Or=!1,i!==null&&(tr[nr++]=uu,tr[nr++]=iu,tr[nr++]=Gi,uu=i.id,iu=i.overflow,Gi=s),s=hh(s,h.children),s.flags|=4096);return s}return p?(Vu(),p=h.fallback,B=s.mode,M=i.child,K=M.sibling,h=Ju(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&31457280,K!==null?p=Ju(K,p):(p=Ji(p,B,c,null),p.flags|=2),p.return=s,h.return=s,h.sibling=p,s.child=h,h=p,p=s.child,B=i.child.memoizedState,B===null?B=fh(c):(M=B.cachePool,M!==null?(K=Yt._currentValue,M=M.parent!==K?{parent:K,pool:K}:M):M=X_(),B={baseLanes:B.baseLanes|c,cachePool:M}),p.memoizedState=B,p.childLanes=Ah(i,T,c),s.memoizedState=dh,h):(ju(s),c=i.child,i=c.sibling,c=Ju(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,i!==null&&(T=s.deletions,T===null?(s.deletions=[i],s.flags|=16):T.push(i)),s.child=c,s.memoizedState=null,c)}function hh(i,s){return s=mh({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function mh(i,s){return CI(i,s,0,null)}function ph(i,s,c){return zi(s,i.child,null,c),i=hh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function XN(i,s,c){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Nh(i.return,s,c)}function Eh(i,s,c,h,p){var S=i.memoizedState;S===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:p}:(S.isBackwards=s,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=c,S.tailMode=p)}function JN(i,s,c){var h=s.pendingProps,p=h.revealOrder,S=h.tail;if(sn(i,s,h.children,c),h=Kt.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&XN(i,c,s);else if(i.tag===19)XN(i,c,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(we(Kt,h),p){case"forwards":for(c=s.child,p=null;c!==null;)i=c.alternate,i!==null&&ld(i)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),Eh(s,!1,p,c,S);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(i=p.alternate,i!==null&&ld(i)===null){s.child=p;break}i=p.sibling,p.sibling=c,c=p,p=i}Eh(s,!0,c,null,S);break;case"together":Eh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ou(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),ei|=s.lanes,(c&s.childLanes)===0)if(i!==null){if(ko(i,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,c=Ju(i,i.pendingProps),s.child=c,c.return=s;i.sibling!==null;)i=i.sibling,c=c.sibling=Ju(i,i.pendingProps),c.return=s;c.sibling=null}return s.child}function gh(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Id(i)))}function _B(i,s,c){switch(s.tag){case 3:Er(s,s.stateNode.containerInfo),Yu(s,Yt,i.memoizedState.cache),To();break;case 27:case 5:Br(s);break;case 4:Er(s,s.stateNode.containerInfo);break;case 10:Yu(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(ju(s),s.flags|=128,null):(c&s.child.childLanes)!==0?QN(i,s,c):(ju(s),i=ou(i,s,c),i!==null?i.sibling:null);ju(s);break;case 19:var p=(i.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(ko(i,s,c,!1),h=(c&s.childLanes)!==0),p){if(h)return JN(i,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Kt,Kt.current),h)break;return null;case 22:case 23:return s.lanes=0,YN(i,s,c);case 24:Yu(s,Yt,i.memoizedState.cache)}return ou(i,s,c)}function eI(i,s,c){if(i!==null)if(i.memoizedProps!==s.pendingProps)Xt=!0;else{if(!gh(i,c)&&(s.flags&128)===0)return Xt=!1,_B(i,s,c);Xt=(i.flags&131072)!==0}else Xt=!1,dt&&(s.flags&1048576)!==0&&P_(s,ud,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,p=h._init;if(h=p(h._payload),s.type=h,typeof h=="function")Oh(h)?(i=$i(h,i),s.tag=1,s=$N(null,s,h,i,c)):(s.tag=0,s=ch(null,s,h,i,c));else{if(h!=null){if(p=h.$$typeof,p===I){s.tag=11,s=VN(null,s,h,i,c);break e}else if(p===R){s.tag=14,s=zN(null,s,h,i,c);break e}}throw s=P(h)||h,Error(r(306,s,""))}}return s;case 0:return ch(i,s,s.type,s.pendingProps,c);case 1:return h=s.type,p=$i(h,s.pendingProps),$N(i,s,h,p,c);case 3:e:{if(Er(s,s.stateNode.containerInfo),i===null)throw Error(r(387));var S=s.pendingProps;p=s.memoizedState,h=p.element,Ch(i,s),Vo(s,S,null,c);var T=s.memoizedState;if(S=T.cache,Yu(s,Yt,S),S!==p.cache&&Ih(s,[Yt],c,!0),jo(),S=T.element,p.isDehydrated)if(p={element:S,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=qN(i,s,S,c);break e}else if(S!==h){h=er(Error(r(424)),s),xo(h),s=qN(i,s,S,c);break e}else for(an=Ir(s.stateNode.containerInfo.firstChild),Sn=s,dt=!0,_r=null,Or=!0,c=Z_(s,null,S,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(To(),S===h){s=ou(i,s,c);break e}sn(i,s,S,c)}s=s.child}return s;case 26:return Uo(i,s),i===null?(c=rS(s.type,null,s.pendingProps,null))?s.memoizedState=c:dt||(c=s.type,i=s.pendingProps,h=Hd(St.current).createElement(c),h[fn]=s,h[Tn]=i,on(h,c,i),Qt(h),s.stateNode=h):s.memoizedState=rS(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Br(s),i===null&&dt&&(h=s.stateNode=eS(s.type,s.pendingProps,St.current),Sn=s,Or=!0,an=Ir(h.firstChild)),h=s.pendingProps.children,i!==null||dt?sn(i,s,h,c):s.child=zi(s,null,h,c),Uo(i,s),s.child;case 5:return i===null&&dt&&((p=h=an)&&(h=$B(h,s.type,s.pendingProps,Or),h!==null?(s.stateNode=h,Sn=s,an=Ir(h.firstChild),Or=!1,p=!0):p=!1),p||Vi(s)),Br(s),p=s.type,S=s.pendingProps,T=i!==null?i.memoizedProps:null,h=S.children,um(p,S)?h=null:T!==null&&um(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=YA(i,s,fB,null,null,c),ul._currentValue=p),Uo(i,s),sn(i,s,h,c),s.child;case 6:return i===null&&dt&&((i=c=an)&&(c=qB(c,s.pendingProps,Or),c!==null?(s.stateNode=c,Sn=s,an=null,i=!0):i=!1),i||Vi(s)),null;case 13:return QN(i,s,c);case 4:return Er(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=zi(s,null,h,c):sn(i,s,h,c),s.child;case 11:return VN(i,s,s.type,s.pendingProps,c);case 7:return sn(i,s,s.pendingProps,c),s.child;case 8:return sn(i,s,s.pendingProps.children,c),s.child;case 12:return sn(i,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Yu(s,s.type,h.value),sn(i,s,h.children,c),s.child;case 9:return p=s.type._context,h=s.pendingProps.children,Qi(s),p=An(p),h=h(p),s.flags|=1,sn(i,s,h,c),s.child;case 14:return zN(i,s,s.type,s.pendingProps,c);case 15:return KN(i,s,s.type,s.pendingProps,c);case 19:return JN(i,s,c);case 22:return YN(i,s,c);case 24:return Qi(s),h=An(Yt),i===null?(p=zA(),p===null&&(p=gt,S=jA(),p.pooledCache=S,S.refCount++,S!==null&&(p.pooledCacheLanes|=c),p=S),s.memoizedState={parent:h,cache:p},Sh(s),Yu(s,Yt,p)):((i.lanes&c)!==0&&(Ch(i,s),Vo(s,null,null,c),jo()),p=i.memoizedState,S=s.memoizedState,p.parent!==h?(p={parent:h,cache:h},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Yu(s,Yt,h)):(h=S.cache,Yu(s,Yt,h),h!==p.cache&&Ih(s,[Yt],c,!0))),sn(i,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var _h=ve(null),qi=null,lu=null;function Yu(i,s,c){we(_h,s._currentValue),s._currentValue=c}function cu(i){i._currentValue=_h.current,je(_h)}function Nh(i,s,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===c)break;i=i.return}}function Ih(i,s,c,h){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var S=p.dependencies;if(S!==null){var T=p.child;S=S.firstContext;e:for(;S!==null;){var B=S;S=p;for(var M=0;M<s.length;M++)if(B.context===s[M]){S.lanes|=c,B=S.alternate,B!==null&&(B.lanes|=c),Nh(S.return,c,i),h||(T=null);break e}S=B.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(r(341));T.lanes|=c,S=T.alternate,S!==null&&(S.lanes|=c),Nh(T,c,i),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===i){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function ko(i,s,c,h){i=null;for(var p=s,S=!1;p!==null;){if(!S){if((p.flags&524288)!==0)S=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var T=p.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var B=p.type;Pn(p.pendingProps.value,T.value)||(i!==null?i.push(B):i=[B])}}else if(p===qt.current){if(T=p.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push(ul):i=[ul])}p=p.return}i!==null&&Ih(s,i,c,h),s.flags|=262144}function Id(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Qi(i){qi=i,lu=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function An(i){return tI(qi,i)}function Sd(i,s){return qi===null&&Qi(i),tI(i,s)}function tI(i,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},lu===null){if(i===null)throw Error(r(308));lu=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else lu=lu.next=s;return c}var Zu=!1;function Sh(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ch(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Wu(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function $u(i,s,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(vt&2)!==0){var p=h.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),h.pending=s,s=nd(i),M_(i,null,c),s}return td(i,h,s,c),nd(i)}function Go(i,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,z4(i,c)}}function yh(i,s){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var p=null,S=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};S===null?p=S=T:S=S.next=T,c=c.next}while(c!==null);S===null?p=S=s:S=S.next=s}else p=S=s;c={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:S,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=s}var vh=!1;function jo(){if(vh){var i=Ja;if(i!==null)throw i}}function Vo(i,s,c,h){vh=!1;var p=i.updateQueue;Zu=!1;var S=p.firstBaseUpdate,T=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var M=B,K=M.next;M.next=null,T===null?S=K:T.next=K,T=M;var ae=i.alternate;ae!==null&&(ae=ae.updateQueue,B=ae.lastBaseUpdate,B!==T&&(B===null?ae.firstBaseUpdate=K:B.next=K,ae.lastBaseUpdate=M))}if(S!==null){var Ae=p.baseState;T=0,ae=K=M=null,B=S;do{var X=B.lane&-536870913,ie=X!==B.lane;if(ie?(lt&X)===X:(h&X)===X){X!==0&&X===Xa&&(vh=!0),ae!==null&&(ae=ae.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var Le=i,Ye=B;X=s;var Ot=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){Ae=Le.call(Ot,Ae,X);break e}Ae=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,X=typeof Le=="function"?Le.call(Ot,Ae,X):Le,X==null)break e;Ae=j({},Ae,X);break e;case 2:Zu=!0}}X=B.callback,X!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=p.callbacks,ie===null?p.callbacks=[X]:ie.push(X))}else ie={lane:X,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ae===null?(K=ae=ie,M=Ae):ae=ae.next=ie,T|=X;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;ie=B,B=ie.next,ie.next=null,p.lastBaseUpdate=ie,p.shared.pending=null}}while(!0);ae===null&&(M=Ae),p.baseState=M,p.firstBaseUpdate=K,p.lastBaseUpdate=ae,S===null&&(p.shared.lanes=0),ei|=T,i.lanes=T,i.memoizedState=Ae}}function nI(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function rI(i,s){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)nI(c[i],s)}function zo(i,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var p=h.next;c=p;do{if((c.tag&i)===i){h=void 0;var S=c.create,T=c.inst;h=S(),T.destroy=h}c=c.next}while(c!==p)}}catch(B){Et(s,s.return,B)}}function qu(i,s,c){try{var h=s.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var S=p.next;h=S;do{if((h.tag&i)===i){var T=h.inst,B=T.destroy;if(B!==void 0){T.destroy=void 0,p=s;var M=c;try{B()}catch(K){Et(p,M,K)}}}h=h.next}while(h!==S)}}catch(K){Et(s,s.return,K)}}function uI(i){var s=i.updateQueue;if(s!==null){var c=i.stateNode;try{rI(s,c)}catch(h){Et(i,i.return,h)}}}function iI(i,s,c){c.props=$i(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){Et(i,s,h)}}function Xi(i,s){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var p=h;break;default:p=h}typeof c=="function"?i.refCleanup=c(p):c.current=p}}catch(S){Et(i,s,S)}}function Un(i,s){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(p){Et(i,s,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){Et(i,s,p)}else c.current=null}function aI(i){var s=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(p){Et(i,i.return,p)}}function sI(i,s,c){try{var h=i.stateNode;zB(h,i.type,c,s),h[Tn]=s}catch(p){Et(i,i.return,p)}}function oI(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function Rh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||oI(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Dh(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(i,s):c.insertBefore(i,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(i,c)):(s=c,s.appendChild(i)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Md));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Dh(i,s,c),i=i.sibling;i!==null;)Dh(i,s,c),i=i.sibling}function Cd(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.insertBefore(i,s):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Cd(i,s,c),i=i.sibling;i!==null;)Cd(i,s,c),i=i.sibling}var du=!1,bt=!1,Th=!1,lI=typeof WeakSet=="function"?WeakSet:Set,Jt=null,cI=!1;function NB(i,s){if(i=i.containerInfo,nm=Vd,i=D_(i),bA(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var p=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{c.nodeType,S.nodeType}catch{c=null;break e}var T=0,B=-1,M=-1,K=0,ae=0,Ae=i,X=null;t:for(;;){for(var ie;Ae!==c||p!==0&&Ae.nodeType!==3||(B=T+p),Ae!==S||h!==0&&Ae.nodeType!==3||(M=T+h),Ae.nodeType===3&&(T+=Ae.nodeValue.length),(ie=Ae.firstChild)!==null;)X=Ae,Ae=ie;for(;;){if(Ae===i)break t;if(X===c&&++K===p&&(B=T),X===S&&++ae===h&&(M=T),(ie=Ae.nextSibling)!==null)break;Ae=X,X=Ae.parentNode}Ae=ie}c=B===-1||M===-1?null:{start:B,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(rm={focusedElem:i,selectionRange:c},Vd=!1,Jt=s;Jt!==null;)if(s=Jt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Jt=i;else for(;Jt!==null;){switch(s=Jt,S=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&S!==null){i=void 0,c=s,p=S.memoizedProps,S=S.memoizedState,h=c.stateNode;try{var Le=$i(c.type,p,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Le,S),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ye){Et(c,c.return,Ye)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,c=i.nodeType,c===9)sm(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":sm(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Jt=i;break}Jt=s.return}return Le=cI,cI=!1,Le}function dI(i,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Au(i,c),h&4&&zo(5,c);break;case 1:if(Au(i,c),h&4)if(i=c.stateNode,s===null)try{i.componentDidMount()}catch(B){Et(c,c.return,B)}else{var p=$i(c.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(p,s,i.__reactInternalSnapshotBeforeUpdate)}catch(B){Et(c,c.return,B)}}h&64&&uI(c),h&512&&Xi(c,c.return);break;case 3:if(Au(i,c),h&64&&(h=c.updateQueue,h!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{rI(h,i)}catch(B){Et(c,c.return,B)}}break;case 26:Au(i,c),h&512&&Xi(c,c.return);break;case 27:case 5:Au(i,c),s===null&&h&4&&aI(c),h&512&&Xi(c,c.return);break;case 12:Au(i,c);break;case 13:Au(i,c),h&4&&hI(i,c);break;case 22:if(p=c.memoizedState!==null||du,!p){s=s!==null&&s.memoizedState!==null||bt;var S=du,T=bt;du=p,(bt=s)&&!T?Qu(i,c,(c.subtreeFlags&8772)!==0):Au(i,c),du=S,bt=T}h&512&&(c.memoizedProps.mode==="manual"?Xi(c,c.return):Un(c,c.return));break;default:Au(i,c)}}function fI(i){var s=i.alternate;s!==null&&(i.alternate=null,fI(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&hA(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var jt=null,kn=!1;function fu(i,s,c){for(c=c.child;c!==null;)AI(i,s,c),c=c.sibling}function AI(i,s,c){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Hu,c)}catch{}switch(c.tag){case 26:bt||Un(c,s),fu(i,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:bt||Un(c,s);var h=jt,p=kn;for(jt=c.stateNode,fu(i,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);hA(c),jt=h,kn=p;break;case 5:bt||Un(c,s);case 6:p=jt;var S=kn;if(jt=null,fu(i,s,c),jt=p,kn=S,jt!==null)if(kn)try{i=jt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(T){Et(c,s,T)}else try{jt.removeChild(c.stateNode)}catch(T){Et(c,s,T)}break;case 18:jt!==null&&(kn?(s=jt,c=c.stateNode,s.nodeType===8?am(s.parentNode,c):s.nodeType===1&&am(s,c),ol(s)):am(jt,c.stateNode));break;case 4:h=jt,p=kn,jt=c.stateNode.containerInfo,kn=!0,fu(i,s,c),jt=h,kn=p;break;case 0:case 11:case 14:case 15:bt||qu(2,c,s),bt||qu(4,c,s),fu(i,s,c);break;case 1:bt||(Un(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&iI(c,s,h)),fu(i,s,c);break;case 21:fu(i,s,c);break;case 22:bt||Un(c,s),bt=(h=bt)||c.memoizedState!==null,fu(i,s,c),bt=h;break;default:fu(i,s,c)}}function hI(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ol(i)}catch(c){Et(s,s.return,c)}}function IB(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new lI),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new lI),s;default:throw Error(r(435,i.tag))}}function xh(i,s){var c=IB(i);s.forEach(function(h){var p=LB.bind(null,i,h);c.has(h)||(c.add(h),h.then(p,p))})}function ur(i,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var p=c[h],S=i,T=s,B=T;e:for(;B!==null;){switch(B.tag){case 27:case 5:jt=B.stateNode,kn=!1;break e;case 3:jt=B.stateNode.containerInfo,kn=!0;break e;case 4:jt=B.stateNode.containerInfo,kn=!0;break e}B=B.return}if(jt===null)throw Error(r(160));AI(S,T,p),jt=null,kn=!1,S=p.alternate,S!==null&&(S.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)mI(s,i),s=s.sibling}var Nr=null;function mI(i,s){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ur(s,i),ir(i),h&4&&(qu(3,i,i.return),zo(3,i),qu(5,i,i.return));break;case 1:ur(s,i),ir(i),h&512&&(bt||c===null||Un(c,c.return)),h&64&&du&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var p=Nr;if(ur(s,i),ir(i),h&512&&(bt||c===null||Un(c,c.return)),h&4){var S=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,p=p.ownerDocument||p;t:switch(h){case"title":S=p.getElementsByTagName("title")[0],(!S||S[po]||S[fn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=p.createElement(h),p.head.insertBefore(S,p.querySelector("head > title"))),on(S,h,c),S[fn]=i,Qt(S),h=S;break e;case"link":var T=aS("link","href",p).get(h+(c.href||""));if(T){for(var B=0;B<T.length;B++)if(S=T[B],S.getAttribute("href")===(c.href==null?null:c.href)&&S.getAttribute("rel")===(c.rel==null?null:c.rel)&&S.getAttribute("title")===(c.title==null?null:c.title)&&S.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){T.splice(B,1);break t}}S=p.createElement(h),on(S,h,c),p.head.appendChild(S);break;case"meta":if(T=aS("meta","content",p).get(h+(c.content||""))){for(B=0;B<T.length;B++)if(S=T[B],S.getAttribute("content")===(c.content==null?null:""+c.content)&&S.getAttribute("name")===(c.name==null?null:c.name)&&S.getAttribute("property")===(c.property==null?null:c.property)&&S.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&S.getAttribute("charset")===(c.charSet==null?null:c.charSet)){T.splice(B,1);break t}}S=p.createElement(h),on(S,h,c),p.head.appendChild(S);break;default:throw Error(r(468,h))}S[fn]=i,Qt(S),h=S}i.stateNode=h}else sS(p,i.type,i.stateNode);else i.stateNode=iS(p,h,i.memoizedProps);else S!==h?(S===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):S.count--,h===null?sS(p,i.type,i.stateNode):iS(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&sI(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){p=i.stateNode,S=i.memoizedProps;try{for(var M=p.firstChild;M;){var K=M.nextSibling,ae=M.nodeName;M[po]||ae==="HEAD"||ae==="BODY"||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=K}for(var Ae=i.type,X=p.attributes;X.length;)p.removeAttributeNode(X[0]);on(p,Ae,S),p[fn]=i,p[Tn]=S}catch(Le){Et(i,i.return,Le)}}case 5:if(ur(s,i),ir(i),h&512&&(bt||c===null||Un(c,c.return)),i.flags&32){p=i.stateNode;try{ka(p,"")}catch(Le){Et(i,i.return,Le)}}h&4&&i.stateNode!=null&&(p=i.memoizedProps,sI(i,p,c!==null?c.memoizedProps:p)),h&1024&&(Th=!0);break;case 6:if(ur(s,i),ir(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(Le){Et(i,i.return,Le)}}break;case 3:if(kd=null,p=Nr,Nr=Pd(s.containerInfo),ur(s,i),Nr=p,ir(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{ol(s.containerInfo)}catch(Le){Et(i,i.return,Le)}Th&&(Th=!1,pI(i));break;case 4:h=Nr,Nr=Pd(i.stateNode.containerInfo),ur(s,i),ir(i),Nr=h;break;case 12:ur(s,i),ir(i);break;case 13:ur(s,i),ir(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Ph=Be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,xh(i,h)));break;case 22:if(h&512&&(bt||c===null||Un(c,c.return)),M=i.memoizedState!==null,K=c!==null&&c.memoizedState!==null,ae=du,Ae=bt,du=ae||M,bt=Ae||K,ur(s,i),bt=Ae,du=ae,ir(i),s=i.stateNode,s._current=i,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,h&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=du||bt,c===null||K||s||rs(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,s=i;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){K=c=s;try{if(p=K.stateNode,M)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{T=K.stateNode,B=K.memoizedProps.style;var ie=B!=null&&B.hasOwnProperty("display")?B.display:null;T.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Le){Et(K,K.return,Le)}}}else if(s.tag===6){if(c===null){K=s;try{K.stateNode.nodeValue=M?"":K.memoizedProps}catch(Le){Et(K,K.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,xh(i,c))));break;case 19:ur(s,i),ir(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,xh(i,h)));break;case 21:break;default:ur(s,i),ir(i)}}function ir(i){var s=i.flags;if(s&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(oI(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var p=h.stateNode,S=Rh(i);Cd(i,S,p);break;case 5:var T=h.stateNode;h.flags&32&&(ka(T,""),h.flags&=-33);var B=Rh(i);Cd(i,B,T);break;case 3:case 4:var M=h.stateNode.containerInfo,K=Rh(i);Dh(i,K,M);break;default:throw Error(r(161))}}}catch(ae){Et(i,i.return,ae)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function pI(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;pI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function Au(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)dI(i,s.alternate,s),s=s.sibling}function rs(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:qu(4,s,s.return),rs(s);break;case 1:Un(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&iI(s,s.return,c),rs(s);break;case 26:case 27:case 5:Un(s,s.return),rs(s);break;case 22:Un(s,s.return),s.memoizedState===null&&rs(s);break;default:rs(s)}i=i.sibling}}function Qu(i,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,p=i,S=s,T=S.flags;switch(S.tag){case 0:case 11:case 15:Qu(p,S,c),zo(4,S);break;case 1:if(Qu(p,S,c),h=S,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Et(h,h.return,K)}if(h=S,p=h.updateQueue,p!==null){var B=h.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)nI(M[p],B)}catch(K){Et(h,h.return,K)}}c&&T&64&&uI(S),Xi(S,S.return);break;case 26:case 27:case 5:Qu(p,S,c),c&&h===null&&T&4&&aI(S),Xi(S,S.return);break;case 12:Qu(p,S,c);break;case 13:Qu(p,S,c),c&&T&4&&hI(p,S);break;case 22:S.memoizedState===null&&Qu(p,S,c),Xi(S,S.return);break;default:Qu(p,S,c)}s=s.sibling}}function bh(i,s){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&Lo(c))}function Bh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lo(i))}function Xu(i,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)EI(i,s,c,h),s=s.sibling}function EI(i,s,c,h){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Xu(i,s,c,h),p&2048&&zo(9,s);break;case 3:Xu(i,s,c,h),p&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lo(i)));break;case 12:if(p&2048){Xu(i,s,c,h),i=s.stateNode;try{var S=s.memoizedProps,T=S.id,B=S.onPostCommit;typeof B=="function"&&B(T,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(M){Et(s,s.return,M)}}else Xu(i,s,c,h);break;case 23:break;case 22:S=s.stateNode,s.memoizedState!==null?S._visibility&4?Xu(i,s,c,h):Ko(i,s):S._visibility&4?Xu(i,s,c,h):(S._visibility|=4,us(i,s,c,h,(s.subtreeFlags&10256)!==0)),p&2048&&bh(s.alternate,s);break;case 24:Xu(i,s,c,h),p&2048&&Bh(s.alternate,s);break;default:Xu(i,s,c,h)}}function us(i,s,c,h,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var S=i,T=s,B=c,M=h,K=T.flags;switch(T.tag){case 0:case 11:case 15:us(S,T,B,M,p),zo(8,T);break;case 23:break;case 22:var ae=T.stateNode;T.memoizedState!==null?ae._visibility&4?us(S,T,B,M,p):Ko(S,T):(ae._visibility|=4,us(S,T,B,M,p)),p&&K&2048&&bh(T.alternate,T);break;case 24:us(S,T,B,M,p),p&&K&2048&&Bh(T.alternate,T);break;default:us(S,T,B,M,p)}s=s.sibling}}function Ko(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=i,h=s,p=h.flags;switch(h.tag){case 22:Ko(c,h),p&2048&&bh(h.alternate,h);break;case 24:Ko(c,h),p&2048&&Bh(h.alternate,h);break;default:Ko(c,h)}s=s.sibling}}var Yo=8192;function is(i){if(i.subtreeFlags&Yo)for(i=i.child;i!==null;)gI(i),i=i.sibling}function gI(i){switch(i.tag){case 26:is(i),i.flags&Yo&&i.memoizedState!==null&&lO(Nr,i.memoizedState,i.memoizedProps);break;case 5:is(i);break;case 3:case 4:var s=Nr;Nr=Pd(i.stateNode.containerInfo),is(i),Nr=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Yo,Yo=16777216,is(i),Yo=s):is(i));break;default:is(i)}}function _I(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Zo(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,II(h,i)}_I(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)NI(i),i=i.sibling}function NI(i){switch(i.tag){case 0:case 11:case 15:Zo(i),i.flags&2048&&qu(9,i,i.return);break;case 3:Zo(i);break;case 12:Zo(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&4&&(i.return===null||i.return.tag!==13)?(s._visibility&=-5,yd(i)):Zo(i);break;default:Zo(i)}}function yd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,II(h,i)}_I(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:qu(8,s,s.return),yd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,yd(s));break;default:yd(s)}i=i.sibling}}function II(i,s){for(;Jt!==null;){var c=Jt;switch(c.tag){case 0:case 11:case 15:qu(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Lo(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Jt=h;else e:for(c=i;Jt!==null;){h=Jt;var p=h.sibling,S=h.return;if(fI(h),h===c){Jt=null;break e}if(p!==null){p.return=S,Jt=p;break e}Jt=S}}}function SB(i,s,c,h){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(i,s,c,h){return new SB(i,s,c,h)}function Oh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ju(i,s){var c=i.alternate;return c===null?(c=ar(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function SI(i,s){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function vd(i,s,c,h,p,S){var T=0;if(h=i,typeof i=="function")Oh(i)&&(T=1);else if(typeof i=="string")T=sO(i,c,Ze.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case f:return Ji(c.children,p,S,s);case A:T=8,p|=24;break;case m:return i=ar(12,c,s,p|2),i.elementType=m,i.lanes=S,i;case y:return i=ar(13,c,s,p),i.elementType=y,i.lanes=S,i;case v:return i=ar(19,c,s,p),i.elementType=v,i.lanes=S,i;case x:return CI(c,p,S,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case E:case _:T=10;break e;case g:T=9;break e;case I:T=11;break e;case R:T=14;break e;case D:T=16,h=null;break e}T=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=ar(T,c,s,p),s.elementType=i,s.type=h,s.lanes=S,s}function Ji(i,s,c,h){return i=ar(7,i,h,s),i.lanes=c,i}function CI(i,s,c,h){i=ar(22,i,h,s),i.elementType=x,i.lanes=c;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var S=p._current;if(S===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var T=Gu(S,2);T!==null&&(p._pendingVisibility|=2,Cn(T,S,2))}},attach:function(){var S=p._current;if(S===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var T=Gu(S,2);T!==null&&(p._pendingVisibility&=-3,Cn(T,S,2))}}};return i.stateNode=p,i}function Fh(i,s,c){return i=ar(6,i,null,s),i.lanes=c,i}function Lh(i,s,c){return s=ar(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function hu(i){i.flags|=4}function yI(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!oS(s)){if(s=rr.current,s!==null&&((lt&4194176)===lt?Fr!==null:(lt&62914560)!==lt&&(lt&536870912)===0||s!==Fr))throw Bo=UA,G_;i.flags|=8192}}function Rd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?j4():536870912,i.lanes|=s,ss|=s)}function Wo(i,s){if(!dt)switch(i.tailMode){case"hidden":s=i.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function yt(i){var s=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(s)for(var p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags&31457280,h|=p.flags&31457280,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags,h|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=h,i.childLanes=c,s}function CB(i,s,c){var h=s.pendingProps;switch(HA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(s),null;case 1:return yt(s),null;case 3:return c=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),cu(Yt),wn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(Do(s)?hu(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,_r!==null&&(jh(_r),_r=null))),yt(s),null;case 26:return c=s.memoizedState,i===null?(hu(s),c!==null?(yt(s),yI(s,c)):(yt(s),s.flags&=-16777217)):c?c!==i.memoizedState?(hu(s),yt(s),yI(s,c)):(yt(s),s.flags&=-16777217):(i.memoizedProps!==h&&hu(s),yt(s),s.flags&=-16777217),null;case 27:k(s),c=St.current;var p=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}i=Ze.current,Do(s)?U_(s):(i=eS(p,h,c),s.stateNode=i,hu(s))}return yt(s),null;case 5:if(k(s),c=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}if(i=Ze.current,Do(s))U_(s);else{switch(p=Hd(St.current),i){case 1:i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=p.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?p.createElement("select",{is:h.is}):p.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?p.createElement(c,{is:h.is}):p.createElement(c)}}i[fn]=s,i[Tn]=h;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=i;e:switch(on(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&hu(s)}}return yt(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=St.current,Do(s)){if(i=s.stateNode,c=s.memoizedProps,h=null,p=Sn,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[fn]=s,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||WI(i.nodeValue,c)),i||Vi(s)}else i=Hd(i).createTextNode(h),i[fn]=s,s.stateNode=i}return yt(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=Do(s),h!==null&&h.dehydrated!==null){if(i===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[fn]=s}else To(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yt(s),p=!1}else _r!==null&&(jh(_r),_r=null),p=!0;if(!p)return s.flags&256?(au(s),s):(au(s),null)}if(au(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=s.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool);var S=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(S=h.memoizedState.cachePool.pool),S!==p&&(h.flags|=2048)}return c!==i&&c&&(s.child.flags|=8192),Rd(s,s.updateQueue),yt(s),null;case 4:return wn(),i===null&&Jh(s.stateNode.containerInfo),yt(s),null;case 10:return cu(s.type),yt(s),null;case 19:if(je(Kt),p=s.memoizedState,p===null)return yt(s),null;if(h=(s.flags&128)!==0,S=p.rendering,S===null)if(h)Wo(p,!1);else{if(Bt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(S=ld(i),S!==null){for(s.flags|=128,Wo(p,!1),i=S.updateQueue,s.updateQueue=i,Rd(s,i),s.subtreeFlags=0,i=c,c=s.child;c!==null;)SI(c,i),c=c.sibling;return we(Kt,Kt.current&1|2),s.child}i=i.sibling}p.tail!==null&&Be()>Dd&&(s.flags|=128,h=!0,Wo(p,!1),s.lanes=4194304)}else{if(!h)if(i=ld(S),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Rd(s,i),Wo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!S.alternate&&!dt)return yt(s),null}else 2*Be()-p.renderingStartTime>Dd&&c!==536870912&&(s.flags|=128,h=!0,Wo(p,!1),s.lanes=4194304);p.isBackwards?(S.sibling=s.child,s.child=S):(i=p.last,i!==null?i.sibling=S:s.child=S,p.last=S)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Be(),s.sibling=null,i=Kt.current,we(Kt,h?i&1|2:i&1),s):(yt(s),null);case 22:case 23:return au(s),GA(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(yt(s),s.subtreeFlags&6&&(s.flags|=8192)):yt(s),c=s.updateQueue,c!==null&&Rd(s,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),i!==null&&je(Ki),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),cu(Yt),yt(s),null;case 25:return null}throw Error(r(156,s.tag))}function yB(i,s){switch(HA(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return cu(Yt),wn(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return k(s),null;case 13:if(au(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));To()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return je(Kt),null;case 4:return wn(),null;case 10:return cu(s.type),null;case 22:case 23:return au(s),GA(),i!==null&&je(Ki),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return cu(Yt),null;case 25:return null;default:return null}}function vI(i,s){switch(HA(s),s.tag){case 3:cu(Yt),wn();break;case 26:case 27:case 5:k(s);break;case 4:wn();break;case 13:au(s);break;case 19:je(Kt);break;case 10:cu(s.type);break;case 22:case 23:au(s),GA(),i!==null&&je(Ki);break;case 24:cu(Yt)}}var vB={getCacheForType:function(i){var s=An(Yt),c=s.data.get(i);return c===void 0&&(c=i(),s.data.set(i,c)),c}},RB=typeof WeakMap=="function"?WeakMap:Map,vt=0,gt=null,ut=null,lt=0,_t=0,Gn=null,mu=!1,as=!1,wh=!1,pu=0,Bt=0,ei=0,ea=0,Mh=0,sr=0,ss=0,$o=null,wr=null,Hh=!1,Ph=0,Dd=1/0,Td=null,ti=null,xd=!1,ta=null,qo=0,Uh=0,kh=null,Qo=0,Gh=null;function jn(){if((vt&2)!==0&&lt!==0)return lt&-lt;if(U.T!==null){var i=Xa;return i!==0?i:$h()}return Y4()}function RI(){sr===0&&(sr=(lt&536870912)===0||dt?G4():536870912);var i=rr.current;return i!==null&&(i.flags|=32),sr}function Cn(i,s,c){(i===gt&&_t===2||i.cancelPendingCommit!==null)&&(os(i,0),Eu(i,lt,sr,!1)),mo(i,c),((vt&2)===0||i!==gt)&&(i===gt&&((vt&2)===0&&(ea|=c),Bt===4&&Eu(i,lt,sr,!1)),Mr(i))}function DI(i,s,c){if((vt&6)!==0)throw Error(r(327));var h=!c&&(s&60)===0&&(s&i.expiredLanes)===0||ho(i,s),p=h?xB(i,s):Kh(i,s,!0),S=h;do{if(p===0){as&&!h&&Eu(i,s,0,!1);break}else if(p===6)Eu(i,s,0,!mu);else{if(c=i.current.alternate,S&&!DB(c)){p=Kh(i,s,!1),S=!1;continue}if(p===2){if(S=s,i.errorRecoveryDisabledLanes&S)var T=0;else T=i.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var B=i;p=$o;var M=B.current.memoizedState.isDehydrated;if(M&&(os(B,T).flags|=256),T=Kh(B,T,!1),T!==2){if(wh&&!M){B.errorRecoveryDisabledLanes|=S,ea|=S,p=4;break e}S=wr,wr=p,S!==null&&jh(S)}p=T}if(S=!1,p!==2)continue}}if(p===1){os(i,0),Eu(i,s,0,!0);break}e:{switch(h=i,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Eu(h,s,sr,!mu);break e}break;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=s,(s&62914560)===s&&(S=Ph+300-Be(),10<S)){if(Eu(h,s,sr,!mu),jc(h,0)!==0)break e;h.timeoutHandle=QI(TI.bind(null,h,c,wr,Td,Hh,s,sr,ea,ss,mu,2,-0,0),S);break e}TI(h,c,wr,Td,Hh,s,sr,ea,ss,mu,0,-0,0)}}break}while(!0);Mr(i)}function jh(i){wr===null?wr=i:wr.push.apply(wr,i)}function TI(i,s,c,h,p,S,T,B,M,K,ae,Ae,X){var ie=s.subtreeFlags;if((ie&8192||(ie&16785408)===16785408)&&(rl={stylesheets:null,count:0,unsuspend:oO},gI(s),s=cO(),s!==null)){i.cancelPendingCommit=s(wI.bind(null,i,c,h,p,T,B,M,1,Ae,X)),Eu(i,S,T,!K);return}wI(i,c,h,p,T,B,M,ae,Ae,X)}function DB(i){for(var s=i;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var p=c[h],S=p.getSnapshot;p=p.value;try{if(!Pn(S(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Eu(i,s,c,h){s&=~Mh,s&=~ea,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var p=s;0<p;){var S=31-Hn(p),T=1<<S;h[S]=-1,p&=~T}c!==0&&V4(i,c,s)}function bd(){return(vt&6)===0?(Xo(0),!1):!0}function Vh(){if(ut!==null){if(_t===0)var i=ut.return;else i=ut,lu=qi=null,$A(i),qa=null,Oo=0,i=ut;for(;i!==null;)vI(i.alternate,i),i=i.return;ut=null}}function os(i,s){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,YB(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Vh(),gt=i,ut=c=Ju(i.current,null),lt=s,_t=0,Gn=null,mu=!1,as=ho(i,s),wh=!1,ss=sr=Mh=ea=ei=Bt=0,wr=$o=null,Hh=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var p=31-Hn(h),S=1<<p;s|=i[p],h&=~S}return pu=s,ed(),c}function xI(i,s){et=null,U.H=Lr,s===bo?(s=z_(),_t=3):s===G_?(s=z_(),_t=4):_t=s===jN?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Gn=s,ut===null&&(Bt=1,Nd(i,er(s,i.current)))}function bI(){var i=U.H;return U.H=Lr,i===null?Lr:i}function BI(){var i=U.A;return U.A=vB,i}function zh(){Bt=4,mu||(lt&4194176)!==lt&&rr.current!==null||(as=!0),(ei&134217727)===0&&(ea&134217727)===0||gt===null||Eu(gt,lt,sr,!1)}function Kh(i,s,c){var h=vt;vt|=2;var p=bI(),S=BI();(gt!==i||lt!==s)&&(Td=null,os(i,s)),s=!1;var T=Bt;e:do try{if(_t!==0&&ut!==null){var B=ut,M=Gn;switch(_t){case 8:Vh(),T=6;break e;case 3:case 2:case 6:rr.current===null&&(s=!0);var K=_t;if(_t=0,Gn=null,ls(i,B,M,K),c&&as){T=0;break e}break;default:K=_t,_t=0,Gn=null,ls(i,B,M,K)}}TB(),T=Bt;break}catch(ae){xI(i,ae)}while(!0);return s&&i.shellSuspendCounter++,lu=qi=null,vt=h,U.H=p,U.A=S,ut===null&&(gt=null,lt=0,ed()),T}function TB(){for(;ut!==null;)OI(ut)}function xB(i,s){var c=vt;vt|=2;var h=bI(),p=BI();gt!==i||lt!==s?(Td=null,Dd=Be()+500,os(i,s)):as=ho(i,s);e:do try{if(_t!==0&&ut!==null){s=ut;var S=Gn;t:switch(_t){case 1:_t=0,Gn=null,ls(i,s,S,1);break;case 2:if(j_(S)){_t=0,Gn=null,FI(s);break}s=function(){_t===2&&gt===i&&(_t=7),Mr(i)},S.then(s,s);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:j_(S)?(_t=0,Gn=null,FI(s)):(_t=0,Gn=null,ls(i,s,S,7));break;case 5:var T=null;switch(ut.tag){case 26:T=ut.memoizedState;case 5:case 27:var B=ut;if(!T||oS(T)){_t=0,Gn=null;var M=B.sibling;if(M!==null)ut=M;else{var K=B.return;K!==null?(ut=K,Bd(K)):ut=null}break t}}_t=0,Gn=null,ls(i,s,S,5);break;case 6:_t=0,Gn=null,ls(i,s,S,6);break;case 8:Vh(),Bt=6;break e;default:throw Error(r(462))}}bB();break}catch(ae){xI(i,ae)}while(!0);return lu=qi=null,U.H=h,U.A=p,vt=c,ut!==null?0:(gt=null,lt=0,ed(),Bt)}function bB(){for(;ut!==null&&!Se();)OI(ut)}function OI(i){var s=eI(i.alternate,i,pu);i.memoizedProps=i.pendingProps,s===null?Bd(i):ut=s}function FI(i){var s=i,c=s.alternate;switch(s.tag){case 15:case 0:s=WN(c,s,s.pendingProps,s.type,void 0,lt);break;case 11:s=WN(c,s,s.pendingProps,s.type.render,s.ref,lt);break;case 5:$A(s);default:vI(c,s),s=ut=SI(s,pu),s=eI(c,s,pu)}i.memoizedProps=i.pendingProps,s===null?Bd(i):ut=s}function ls(i,s,c,h){lu=qi=null,$A(s),qa=null,Oo=0;var p=s.return;try{if(gB(i,p,s,c,lt)){Bt=1,Nd(i,er(c,i.current)),ut=null;return}}catch(S){if(p!==null)throw ut=p,S;Bt=1,Nd(i,er(c,i.current)),ut=null;return}s.flags&32768?(dt||h===1?i=!0:as||(lt&536870912)!==0?i=!1:(mu=i=!0,(h===2||h===3||h===6)&&(h=rr.current,h!==null&&h.tag===13&&(h.flags|=16384))),LI(s,i)):Bd(s)}function Bd(i){var s=i;do{if((s.flags&32768)!==0){LI(s,mu);return}i=s.return;var c=CB(s.alternate,s,pu);if(c!==null){ut=c;return}if(s=s.sibling,s!==null){ut=s;return}ut=s=i}while(s!==null);Bt===0&&(Bt=5)}function LI(i,s){do{var c=yB(i.alternate,i);if(c!==null){c.flags&=32767,ut=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(i=i.sibling,i!==null)){ut=i;return}ut=i=c}while(i!==null);Bt=6,ut=null}function wI(i,s,c,h,p,S,T,B,M,K){var ae=U.T,Ae=te.p;try{te.p=2,U.T=null,BB(i,s,c,h,Ae,p,S,T,B,M,K)}finally{U.T=ae,te.p=Ae}}function BB(i,s,c,h,p,S,T,B){do cs();while(ta!==null);if((vt&6)!==0)throw Error(r(327));var M=i.finishedWork;if(h=i.finishedLanes,M===null)return null;if(i.finishedWork=null,i.finishedLanes=0,M===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var K=M.lanes|M.childLanes;if(K|=LA,lb(i,h,K,S,T,B),i===gt&&(ut=gt=null,lt=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||xd||(xd=!0,Uh=K,kh=c,wB(Mn,function(){return cs(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=U.T,U.T=null,S=te.p,te.p=2,T=vt,vt|=4,NB(i,M),mI(M,i),tB(rm,i.containerInfo),Vd=!!nm,rm=nm=null,i.current=M,dI(i,M.alternate,M),Ne(),vt=T,te.p=S,U.T=c):i.current=M,xd?(xd=!1,ta=i,qo=h):MI(i,K),K=i.pendingLanes,K===0&&(ti=null),Uc(M.stateNode),Mr(i),s!==null)for(p=i.onRecoverableError,M=0;M<s.length;M++)K=s[M],p(K.value,{componentStack:K.stack});return(qo&3)!==0&&cs(),K=i.pendingLanes,(h&4194218)!==0&&(K&42)!==0?i===Gh?Qo++:(Qo=0,Gh=i):Qo=0,Xo(0),null}function MI(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Lo(s)))}function cs(){if(ta!==null){var i=ta,s=Uh;Uh=0;var c=K4(qo),h=U.T,p=te.p;try{if(te.p=32>c?32:c,U.T=null,ta===null)var S=!1;else{c=kh,kh=null;var T=ta,B=qo;if(ta=null,qo=0,(vt&6)!==0)throw Error(r(331));var M=vt;if(vt|=4,NI(T.current),EI(T,T.current,B,c),vt=M,Xo(0,!1),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Hu,T)}catch{}S=!0}return S}finally{te.p=p,U.T=h,MI(i,s)}}return!1}function HI(i,s,c){s=er(c,s),s=lh(i.stateNode,s,2),i=$u(i,s,2),i!==null&&(mo(i,2),Mr(i))}function Et(i,s,c){if(i.tag===3)HI(i,i,c);else for(;s!==null;){if(s.tag===3){HI(s,i,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ti===null||!ti.has(h))){i=er(c,i),c=kN(2),h=$u(s,c,2),h!==null&&(GN(c,h,s,i),mo(h,2),Mr(h));break}}s=s.return}}function Yh(i,s,c){var h=i.pingCache;if(h===null){h=i.pingCache=new RB;var p=new Set;h.set(s,p)}else p=h.get(s),p===void 0&&(p=new Set,h.set(s,p));p.has(c)||(wh=!0,p.add(c),i=OB.bind(null,i,s,c),s.then(i,i))}function OB(i,s,c){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,gt===i&&(lt&c)===c&&(Bt===4||Bt===3&&(lt&62914560)===lt&&300>Be()-Ph?(vt&2)===0&&os(i,0):Mh|=c,ss===lt&&(ss=0)),Mr(i)}function PI(i,s){s===0&&(s=j4()),i=Gu(i,s),i!==null&&(mo(i,s),Mr(i))}function FB(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),PI(i,c)}function LB(i,s){var c=0;switch(i.tag){case 13:var h=i.stateNode,p=i.memoizedState;p!==null&&(c=p.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),PI(i,c)}function wB(i,s){return ue(i,s)}var Od=null,ds=null,Zh=!1,Fd=!1,Wh=!1,na=0;function Mr(i){i!==ds&&i.next===null&&(ds===null?Od=ds=i:ds=ds.next=i),Fd=!0,Zh||(Zh=!0,HB(MB))}function Xo(i,s){if(!Wh&&Fd){Wh=!0;do for(var c=!1,h=Od;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var S=0;else{var T=h.suspendedLanes,B=h.pingedLanes;S=(1<<31-Hn(42|i)+1)-1,S&=p&~(T&~B),S=S&201326677?S&201326677|1:S?S|2:0}S!==0&&(c=!0,GI(h,S))}else S=lt,S=jc(h,h===gt?S:0),(S&3)===0||ho(h,S)||(c=!0,GI(h,S));h=h.next}while(c);Wh=!1}}function MB(){Fd=Zh=!1;var i=0;na!==0&&(KB()&&(i=na),na=0);for(var s=Be(),c=null,h=Od;h!==null;){var p=h.next,S=UI(h,s);S===0?(h.next=null,c===null?Od=p:c.next=p,p===null&&(ds=c)):(c=h,(i!==0||(S&3)!==0)&&(Fd=!0)),h=p}Xo(i)}function UI(i,s){for(var c=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var T=31-Hn(S),B=1<<T,M=p[T];M===-1?((B&c)===0||(B&h)!==0)&&(p[T]=ob(B,s)):M<=s&&(i.expiredLanes|=B),S&=~B}if(s=gt,c=lt,c=jc(i,i===s?c:0),h=i.callbackNode,c===0||i===s&&_t===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&ye(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||ho(i,c)){if(s=c&-c,s===i.callbackPriority)return s;switch(h!==null&&ye(h),K4(c)){case 2:case 8:c=wt;break;case 32:c=Mn;break;case 268435456:c=La;break;default:c=Mn}return h=kI.bind(null,i),c=ue(c,h),i.callbackPriority=s,i.callbackNode=c,s}return h!==null&&h!==null&&ye(h),i.callbackPriority=2,i.callbackNode=null,2}function kI(i,s){var c=i.callbackNode;if(cs()&&i.callbackNode!==c)return null;var h=lt;return h=jc(i,i===gt?h:0),h===0?null:(DI(i,h,s),UI(i,Be()),i.callbackNode!=null&&i.callbackNode===c?kI.bind(null,i):null)}function GI(i,s){if(cs())return null;DI(i,s,!0)}function HB(i){ZB(function(){(vt&6)!==0?ue(Lt,i):i()})}function $h(){return na===0&&(na=G4()),na}function jI(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Zc(""+i)}function VI(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function PB(i,s,c,h,p){if(s==="submit"&&c&&c.stateNode===p){var S=jI((p[Tn]||null).action),T=h.submitter;T&&(s=(s=T[Tn]||null)?jI(s.formAction):T.getAttribute("formAction"),s!==null&&(S=s,T=null));var B=new Qc("action","action",null,h,p);i.push({event:B,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(na!==0){var M=T?VI(p,T):new FormData(p);uh(c,{pending:!0,data:M,method:p.method,action:S},null,M)}}else typeof S=="function"&&(B.preventDefault(),M=T?VI(p,T):new FormData(p),uh(c,{pending:!0,data:M,method:p.method,action:S},S,M))},currentTarget:p}]})}}for(var qh=0;qh<w_.length;qh++){var Qh=w_[qh],UB=Qh.toLowerCase(),kB=Qh[0].toUpperCase()+Qh.slice(1);gr(UB,"on"+kB)}gr(b_,"onAnimationEnd"),gr(B_,"onAnimationIteration"),gr(O_,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(rB,"onTransitionRun"),gr(uB,"onTransitionStart"),gr(iB,"onTransitionCancel"),gr(F_,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),Hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),GB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jo));function zI(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],p=h.event;h=h.listeners;e:{var S=void 0;if(s)for(var T=h.length-1;0<=T;T--){var B=h[T],M=B.instance,K=B.currentTarget;if(B=B.listener,M!==S&&p.isPropagationStopped())break e;S=B,p.currentTarget=K;try{S(p)}catch(ae){_d(ae)}p.currentTarget=null,S=M}else for(T=0;T<h.length;T++){if(B=h[T],M=B.instance,K=B.currentTarget,B=B.listener,M!==S&&p.isPropagationStopped())break e;S=B,p.currentTarget=K;try{S(p)}catch(ae){_d(ae)}p.currentTarget=null,S=M}}}}function st(i,s){var c=s[AA];c===void 0&&(c=s[AA]=new Set);var h=i+"__bubble";c.has(h)||(KI(s,i,2,!1),c.add(h))}function Xh(i,s,c){var h=0;s&&(h|=4),KI(c,i,h,s)}var Ld="_reactListening"+Math.random().toString(36).slice(2);function Jh(i){if(!i[Ld]){i[Ld]=!0,W4.forEach(function(c){c!=="selectionchange"&&(GB.has(c)||Xh(c,!1,i),Xh(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Ld]||(s[Ld]=!0,Xh("selectionchange",!1,s))}}function KI(i,s,c,h){switch(hS(s)){case 2:var p=AO;break;case 8:p=hO;break;default:p=fm}c=p.bind(null,s,c,i),p=void 0,!IA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),h?p!==void 0?i.addEventListener(s,c,{capture:!0,passive:p}):i.addEventListener(s,c,!0):p!==void 0?i.addEventListener(s,c,{passive:p}):i.addEventListener(s,c,!1)}function em(i,s,c,h,p){var S=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var T=h.tag;if(T===3||T===4){var B=h.stateNode.containerInfo;if(B===p||B.nodeType===8&&B.parentNode===p)break;if(T===4)for(T=h.return;T!==null;){var M=T.tag;if((M===3||M===4)&&(M=T.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;T=T.return}for(;B!==null;){if(T=Mi(B),T===null)return;if(M=T.tag,M===5||M===6||M===26||M===27){h=S=T;continue e}B=B.parentNode}}h=h.return}a_(function(){var K=S,ae=_A(c),Ae=[];e:{var X=L_.get(i);if(X!==void 0){var ie=Qc,Le=i;switch(i){case"keypress":if($c(c)===0)break e;case"keydown":case"keyup":ie=Lb;break;case"focusin":Le="focus",ie=vA;break;case"focusout":Le="blur",ie=vA;break;case"beforeblur":case"afterblur":ie=vA;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=l_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=Sb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=Hb;break;case b_:case B_:case O_:ie=vb;break;case F_:ie=Ub;break;case"scroll":case"scrollend":ie=Nb;break;case"wheel":ie=Gb;break;case"copy":case"cut":case"paste":ie=Db;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=d_;break;case"toggle":case"beforetoggle":ie=Vb}var Ye=(s&4)!==0,Ot=!Ye&&(i==="scroll"||i==="scrollend"),Z=Ye?X!==null?X+"Capture":null:X;Ye=[];for(var z=K,q;z!==null;){var le=z;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Z===null||(le=go(z,Z),le!=null&&Ye.push(el(z,le,q))),Ot)break;z=z.return}0<Ye.length&&(X=new ie(X,Le,null,c,ae),Ae.push({event:X,listeners:Ye}))}}if((s&7)===0){e:{if(X=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",X&&c!==gA&&(Le=c.relatedTarget||c.fromElement)&&(Mi(Le)||Le[wa]))break e;if((ie||X)&&(X=ae.window===ae?ae:(X=ae.ownerDocument)?X.defaultView||X.parentWindow:window,ie?(Le=c.relatedTarget||c.toElement,ie=K,Le=Le?Mi(Le):null,Le!==null&&(Ot=ee(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ie=null,Le=K),ie!==Le)){if(Ye=l_,le="onMouseLeave",Z="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(Ye=d_,le="onPointerLeave",Z="onPointerEnter",z="pointer"),Ot=ie==null?X:Eo(ie),q=Le==null?X:Eo(Le),X=new Ye(le,z+"leave",ie,c,ae),X.target=Ot,X.relatedTarget=q,le=null,Mi(ae)===K&&(Ye=new Ye(Z,z+"enter",Le,c,ae),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=le,ie&&Le)t:{for(Ye=ie,Z=Le,z=0,q=Ye;q;q=fs(q))z++;for(q=0,le=Z;le;le=fs(le))q++;for(;0<z-q;)Ye=fs(Ye),z--;for(;0<q-z;)Z=fs(Z),q--;for(;z--;){if(Ye===Z||Z!==null&&Ye===Z.alternate)break t;Ye=fs(Ye),Z=fs(Z)}Ye=null}else Ye=null;ie!==null&&YI(Ae,X,ie,Ye,!1),Le!==null&&Ot!==null&&YI(Ae,Ot,Le,Ye,!0)}}e:{if(X=K?Eo(K):window,ie=X.nodeName&&X.nodeName.toLowerCase(),ie==="select"||ie==="input"&&X.type==="file")var Te=__;else if(E_(X))if(N_)Te=Jb;else{Te=Qb;var rt=qb}else ie=X.nodeName,!ie||ie.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&EA(K.elementType)&&(Te=__):Te=Xb;if(Te&&(Te=Te(i,K))){g_(Ae,Te,c,ae);break e}rt&&rt(i,X,K),i==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&pA(X,"number",X.value)}switch(rt=K?Eo(K):window,i){case"focusin":(E_(rt)||rt.contentEditable==="true")&&(za=rt,BA=K,Ro=null);break;case"focusout":Ro=BA=za=null;break;case"mousedown":OA=!0;break;case"contextmenu":case"mouseup":case"dragend":OA=!1,T_(Ae,c,ae);break;case"selectionchange":if(nB)break;case"keydown":case"keyup":T_(Ae,c,ae)}var He;if(DA)e:{switch(i){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Va?m_(i,c)&&(Pe="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Pe="onCompositionStart");Pe&&(f_&&c.locale!=="ko"&&(Va||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Va&&(He=s_()):(ku=ae,SA="value"in ku?ku.value:ku.textContent,Va=!0)),rt=wd(K,Pe),0<rt.length&&(Pe=new c_(Pe,i,null,c,ae),Ae.push({event:Pe,listeners:rt}),He?Pe.data=He:(He=p_(c),He!==null&&(Pe.data=He)))),(He=Kb?Yb(i,c):Zb(i,c))&&(Pe=wd(K,"onBeforeInput"),0<Pe.length&&(rt=new c_("onBeforeInput","beforeinput",null,c,ae),Ae.push({event:rt,listeners:Pe}),rt.data=He)),PB(Ae,i,K,c,ae)}zI(Ae,s)})}function el(i,s,c){return{instance:i,listener:s,currentTarget:c}}function wd(i,s){for(var c=s+"Capture",h=[];i!==null;){var p=i,S=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||S===null||(p=go(i,c),p!=null&&h.unshift(el(i,p,S)),p=go(i,s),p!=null&&h.push(el(i,p,S))),i=i.return}return h}function fs(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function YI(i,s,c,h,p){for(var S=s._reactName,T=[];c!==null&&c!==h;){var B=c,M=B.alternate,K=B.stateNode;if(B=B.tag,M!==null&&M===h)break;B!==5&&B!==26&&B!==27||K===null||(M=K,p?(K=go(c,S),K!=null&&T.unshift(el(c,K,M))):p||(K=go(c,S),K!=null&&T.push(el(c,K,M)))),c=c.return}T.length!==0&&i.push({event:s,listeners:T})}var jB=/\r\n?/g,VB=/\u0000|\uFFFD/g;function ZI(i){return(typeof i=="string"?i:""+i).replace(jB,`
50
+ `).replace(VB,"")}function WI(i,s){return s=ZI(s),ZI(i)===s}function Md(){}function mt(i,s,c,h,p,S){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||ka(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&ka(i,""+h);break;case"className":zc(i,"class",h);break;case"tabIndex":zc(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":zc(i,c,h);break;case"style":u_(i,h,S);break;case"data":if(s!=="object"){zc(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Zc(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"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 S=="function"&&(c==="formAction"?(s!=="input"&&mt(i,s,"name",p.name,p,null),mt(i,s,"formEncType",p.formEncType,p,null),mt(i,s,"formMethod",p.formMethod,p,null),mt(i,s,"formTarget",p.formTarget,p,null)):(mt(i,s,"encType",p.encType,p,null),mt(i,s,"method",p.method,p,null),mt(i,s,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Zc(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Md);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=Zc(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":st("beforetoggle",i),st("toggle",i),Vc(i,"popover",h);break;case"xlinkActuate":ru(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ru(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ru(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ru(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ru(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ru(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ru(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ru(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ru(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Vc(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=gb.get(c)||c,Vc(i,c,h))}}function tm(i,s,c,h,p,S){switch(c){case"style":u_(i,h,S);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?ka(i,h):(typeof h=="number"||typeof h=="bigint")&&ka(i,""+h);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Md);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$4.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),S=i[Tn]||null,S=S!=null?S[c]:null,typeof S=="function"&&i.removeEventListener(s,S,p),typeof h=="function")){typeof S!="function"&&S!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,h,p);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Vc(i,c,h)}}}function on(i,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",i),st("load",i);var h=!1,p=!1,S;for(S in c)if(c.hasOwnProperty(S)){var T=c[S];if(T!=null)switch(S){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,S,T,c,null)}}p&&mt(i,s,"srcSet",c.srcSet,c,null),h&&mt(i,s,"src",c.src,c,null);return;case"input":st("invalid",i);var B=S=T=p=null,M=null,K=null;for(h in c)if(c.hasOwnProperty(h)){var ae=c[h];if(ae!=null)switch(h){case"name":p=ae;break;case"type":T=ae;break;case"checked":M=ae;break;case"defaultChecked":K=ae;break;case"value":S=ae;break;case"defaultValue":B=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:mt(i,s,h,ae,c,null)}}e_(i,S,B,M,K,T,p,!1),Kc(i);return;case"select":st("invalid",i),h=T=S=null;for(p in c)if(c.hasOwnProperty(p)&&(B=c[p],B!=null))switch(p){case"value":S=B;break;case"defaultValue":T=B;break;case"multiple":h=B;default:mt(i,s,p,B,c,null)}s=S,c=T,i.multiple=!!h,s!=null?Ua(i,!!h,s,!1):c!=null&&Ua(i,!!h,c,!0);return;case"textarea":st("invalid",i),S=p=h=null;for(T in c)if(c.hasOwnProperty(T)&&(B=c[T],B!=null))switch(T){case"value":h=B;break;case"defaultValue":p=B;break;case"children":S=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:mt(i,s,T,B,c,null)}n_(i,h,p,S),Kc(i);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(h=c[M],h!=null))switch(M){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:mt(i,s,M,h,c,null)}return;case"dialog":st("cancel",i),st("close",i);break;case"iframe":case"object":st("load",i);break;case"video":case"audio":for(h=0;h<Jo.length;h++)st(Jo[h],i);break;case"image":st("error",i),st("load",i);break;case"details":st("toggle",i);break;case"embed":case"source":case"link":st("error",i),st("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,K,h,c,null)}return;default:if(EA(s)){for(ae in c)c.hasOwnProperty(ae)&&(h=c[ae],h!==void 0&&tm(i,s,ae,h,c,void 0));return}}for(B in c)c.hasOwnProperty(B)&&(h=c[B],h!=null&&mt(i,s,B,h,c,null))}function zB(i,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,S=null,T=null,B=null,M=null,K=null,ae=null;for(ie in c){var Ae=c[ie];if(c.hasOwnProperty(ie)&&Ae!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":M=Ae;default:h.hasOwnProperty(ie)||mt(i,s,ie,null,h,Ae)}}for(var X in h){var ie=h[X];if(Ae=c[X],h.hasOwnProperty(X)&&(ie!=null||Ae!=null))switch(X){case"type":S=ie;break;case"name":p=ie;break;case"checked":K=ie;break;case"defaultChecked":ae=ie;break;case"value":T=ie;break;case"defaultValue":B=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,s));break;default:ie!==Ae&&mt(i,s,X,ie,h,Ae)}}mA(i,T,B,M,K,ae,S,p);return;case"select":ie=T=B=X=null;for(S in c)if(M=c[S],c.hasOwnProperty(S)&&M!=null)switch(S){case"value":break;case"multiple":ie=M;default:h.hasOwnProperty(S)||mt(i,s,S,null,h,M)}for(p in h)if(S=h[p],M=c[p],h.hasOwnProperty(p)&&(S!=null||M!=null))switch(p){case"value":X=S;break;case"defaultValue":B=S;break;case"multiple":T=S;default:S!==M&&mt(i,s,p,S,h,M)}s=B,c=T,h=ie,X!=null?Ua(i,!!c,X,!1):!!h!=!!c&&(s!=null?Ua(i,!!c,s,!0):Ua(i,!!c,c?[]:"",!1));return;case"textarea":ie=X=null;for(B in c)if(p=c[B],c.hasOwnProperty(B)&&p!=null&&!h.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:mt(i,s,B,null,h,p)}for(T in h)if(p=h[T],S=c[T],h.hasOwnProperty(T)&&(p!=null||S!=null))switch(T){case"value":X=p;break;case"defaultValue":ie=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==S&&mt(i,s,T,p,h,S)}t_(i,X,ie);return;case"option":for(var Le in c)if(X=c[Le],c.hasOwnProperty(Le)&&X!=null&&!h.hasOwnProperty(Le))switch(Le){case"selected":i.selected=!1;break;default:mt(i,s,Le,null,h,X)}for(M in h)if(X=h[M],ie=c[M],h.hasOwnProperty(M)&&X!==ie&&(X!=null||ie!=null))switch(M){case"selected":i.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:mt(i,s,M,X,h,ie)}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 Ye in c)X=c[Ye],c.hasOwnProperty(Ye)&&X!=null&&!h.hasOwnProperty(Ye)&&mt(i,s,Ye,null,h,X);for(K in h)if(X=h[K],ie=c[K],h.hasOwnProperty(K)&&X!==ie&&(X!=null||ie!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:mt(i,s,K,X,h,ie)}return;default:if(EA(s)){for(var Ot in c)X=c[Ot],c.hasOwnProperty(Ot)&&X!==void 0&&!h.hasOwnProperty(Ot)&&tm(i,s,Ot,void 0,h,X);for(ae in h)X=h[ae],ie=c[ae],!h.hasOwnProperty(ae)||X===ie||X===void 0&&ie===void 0||tm(i,s,ae,X,h,ie);return}}for(var Z in c)X=c[Z],c.hasOwnProperty(Z)&&X!=null&&!h.hasOwnProperty(Z)&&mt(i,s,Z,null,h,X);for(Ae in h)X=h[Ae],ie=c[Ae],!h.hasOwnProperty(Ae)||X===ie||X==null&&ie==null||mt(i,s,Ae,X,h,ie)}var nm=null,rm=null;function Hd(i){return i.nodeType===9?i:i.ownerDocument}function $I(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qI(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function um(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var im=null;function KB(){var i=window.event;return i&&i.type==="popstate"?i===im?!1:(im=i,!0):(im=null,!1)}var QI=typeof setTimeout=="function"?setTimeout:void 0,YB=typeof clearTimeout=="function"?clearTimeout:void 0,XI=typeof Promise=="function"?Promise:void 0,ZB=typeof queueMicrotask=="function"?queueMicrotask:typeof XI<"u"?function(i){return XI.resolve(null).then(i).catch(WB)}:QI;function WB(i){setTimeout(function(){throw i})}function am(i,s){var c=s,h=0;do{var p=c.nextSibling;if(i.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(h===0){i.removeChild(p),ol(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);ol(s)}function sm(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":sm(c),hA(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function $B(i,s,c,h){for(;i.nodeType===1;){var p=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[po])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==p.rel||i.getAttribute("href")!==(p.href==null?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(S=i.getAttribute("src"),(S!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var S=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=Ir(i.nextSibling),i===null)break}return null}function qB(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Ir(i.nextSibling),i===null))return null;return i}function Ir(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}function JI(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}function eS(i,s,c){switch(s=Hd(c),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var or=new Map,tS=new Set;function Pd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gu=te.d;te.d={f:QB,r:XB,D:JB,C:eO,L:tO,m:nO,X:uO,S:rO,M:iO};function QB(){var i=gu.f(),s=bd();return i||s}function XB(i){var s=Ma(i);s!==null&&s.tag===5&&s.type==="form"?TN(s):gu.r(i)}var As=typeof document>"u"?null:document;function nS(i,s,c){var h=As;if(h&&typeof s=="string"&&s){var p=Xn(s);p='link[rel="'+i+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),tS.has(p)||(tS.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),on(s,"link",i),Qt(s),h.head.appendChild(s)))}}function JB(i){gu.D(i),nS("dns-prefetch",i,null)}function eO(i,s){gu.C(i,s),nS("preconnect",i,s)}function tO(i,s,c){gu.L(i,s,c);var h=As;if(h&&i&&s){var p='link[rel="preload"][as="'+Xn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Xn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Xn(c.imageSizes)+'"]')):p+='[href="'+Xn(i)+'"]';var S=p;switch(s){case"style":S=hs(i);break;case"script":S=ms(i)}or.has(S)||(i=j({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),or.set(S,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(tl(S))||s==="script"&&h.querySelector(nl(S))||(s=h.createElement("link"),on(s,"link",i),Qt(s),h.head.appendChild(s)))}}function nO(i,s){gu.m(i,s);var c=As;if(c&&i){var h=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',S=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=ms(i)}if(!or.has(S)&&(i=j({rel:"modulepreload",href:i},s),or.set(S,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(nl(S)))return}h=c.createElement("link"),on(h,"link",i),Qt(h),c.head.appendChild(h)}}}function rO(i,s,c){gu.S(i,s,c);var h=As;if(h&&i){var p=Ha(h).hoistableStyles,S=hs(i);s=s||"default";var T=p.get(S);if(!T){var B={loading:0,preload:null};if(T=h.querySelector(tl(S)))B.loading=5;else{i=j({rel:"stylesheet",href:i,"data-precedence":s},c),(c=or.get(S))&&om(i,c);var M=T=h.createElement("link");Qt(M),on(M,"link",i),M._p=new Promise(function(K,ae){M.onload=K,M.onerror=ae}),M.addEventListener("load",function(){B.loading|=1}),M.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Ud(T,s,h)}T={type:"stylesheet",instance:T,count:1,state:B},p.set(S,T)}}}function uO(i,s){gu.X(i,s);var c=As;if(c&&i){var h=Ha(c).hoistableScripts,p=ms(i),S=h.get(p);S||(S=c.querySelector(nl(p)),S||(i=j({src:i,async:!0},s),(s=or.get(p))&&lm(i,s),S=c.createElement("script"),Qt(S),on(S,"link",i),c.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},h.set(p,S))}}function iO(i,s){gu.M(i,s);var c=As;if(c&&i){var h=Ha(c).hoistableScripts,p=ms(i),S=h.get(p);S||(S=c.querySelector(nl(p)),S||(i=j({src:i,async:!0,type:"module"},s),(s=or.get(p))&&lm(i,s),S=c.createElement("script"),Qt(S),on(S,"link",i),c.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},h.set(p,S))}}function rS(i,s,c,h){var p=(p=St.current)?Pd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=hs(c.href),c=Ha(p).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=hs(c.href);var S=Ha(p).hoistableStyles,T=S.get(i);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,T),(S=p.querySelector(tl(i)))&&!S._p&&(T.instance=S,T.state.loading=5),or.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},or.set(i,c),S||aO(p,i,c,T.state))),s&&h===null)throw Error(r(528,""));return T}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ms(c),c=Ha(p).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function hs(i){return'href="'+Xn(i)+'"'}function tl(i){return'link[rel="stylesheet"]['+i+"]"}function uS(i){return j({},i,{"data-precedence":i.precedence,precedence:null})}function aO(i,s,c,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),on(s,"link",c),Qt(s),i.head.appendChild(s))}function ms(i){return'[src="'+Xn(i)+'"]'}function nl(i){return"script[async]"+i}function iS(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(c.href)+'"]');if(h)return s.instance=h,Qt(h),h;var p=j({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),on(h,"style",p),Ud(h,c.precedence,i),s.instance=h;case"stylesheet":p=hs(c.href);var S=i.querySelector(tl(p));if(S)return s.state.loading|=4,s.instance=S,Qt(S),S;h=uS(c),(p=or.get(p))&&om(h,p),S=(i.ownerDocument||i).createElement("link"),Qt(S);var T=S;return T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),on(S,"link",h),s.state.loading|=4,Ud(S,c.precedence,i),s.instance=S;case"script":return S=ms(c.src),(p=i.querySelector(nl(S)))?(s.instance=p,Qt(p),p):(h=c,(p=or.get(S))&&(h=j({},c),lm(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Qt(p),on(p,"link",h),i.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,Ud(h,c.precedence,i));return s.instance}function Ud(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,S=p,T=0;T<h.length;T++){var B=h[T];if(B.dataset.precedence===s)S=B;else if(S!==p)break}S?S.parentNode.insertBefore(i,S.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function om(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function lm(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var kd=null;function aS(i,s,c){if(kd===null){var h=new Map,p=kd=new Map;p.set(c,h)}else p=kd,h=p.get(c),h||(h=new Map,p.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),p=0;p<c.length;p++){var S=c[p];if(!(S[po]||S[fn]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var T=S.getAttribute(s)||"";T=i+T;var B=h.get(T);B?B.push(S):h.set(T,[S])}}return h}function sS(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function sO(i,s,c){if(c===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function oS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var rl=null;function oO(){}function lO(i,s,c){if(rl===null)throw Error(r(475));var h=rl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=hs(c.href),S=i.querySelector(tl(p));if(S){i=S._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Gd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=S,Qt(S);return}S=i.ownerDocument||i,c=uS(c),(p=or.get(p))&&om(c,p),S=S.createElement("link"),Qt(S);var T=S;T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),on(S,"link",c),s.instance=S}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=Gd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function cO(){if(rl===null)throw Error(r(475));var i=rl;return i.stylesheets&&i.count===0&&cm(i,i.stylesheets),0<i.count?function(s){var c=setTimeout(function(){if(i.stylesheets&&cm(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Gd(){if(this.count--,this.count===0){if(this.stylesheets)cm(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var jd=null;function cm(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,jd=new Map,s.forEach(dO,i),jd=null,Gd.call(i))}function dO(i,s){if(!(s.state.loading&4)){var c=jd.get(i);if(c)var h=c.get(null);else{c=new Map,jd.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<p.length;S++){var T=p[S];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(c.set(T.dataset.precedence,T),h=T)}h&&c.set(null,h)}p=s.instance,T=p.getAttribute("data-precedence"),S=c.get(T)||h,S===h&&c.set(null,p),c.set(T,p),this.count++,h=Gd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),S?S.parentNode.insertBefore(p,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var ul={$$typeof:_,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function fO(i,s,c,h,p,S,T,B){this.tag=1,this.containerInfo=i,this.finishedWork=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=fA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fA(0),this.hiddenUpdates=fA(null),this.identifierPrefix=h,this.onUncaughtError=p,this.onCaughtError=S,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function lS(i,s,c,h,p,S,T,B,M,K,ae,Ae){return i=new fO(i,s,c,T,B,M,K,Ae),s=1,S===!0&&(s|=24),S=ar(3,null,null,s),i.current=S,S.stateNode=i,s=jA(),s.refCount++,i.pooledCache=s,s.refCount++,S.memoizedState={element:h,isDehydrated:c,cache:s},Sh(S),i}function cS(i){return i?(i=Za,i):Za}function dS(i,s,c,h,p,S){p=cS(p),h.context===null?h.context=p:h.pendingContext=p,h=Wu(s),h.payload={element:c},S=S===void 0?null:S,S!==null&&(h.callback=S),c=$u(i,h,s),c!==null&&(Cn(c,i,s),Go(c,i,s))}function fS(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function dm(i,s){fS(i,s),(i=i.alternate)&&fS(i,s)}function AS(i){if(i.tag===13){var s=Gu(i,67108864);s!==null&&Cn(s,i,67108864),dm(i,67108864)}}var Vd=!0;function AO(i,s,c,h){var p=U.T;U.T=null;var S=te.p;try{te.p=2,fm(i,s,c,h)}finally{te.p=S,U.T=p}}function hO(i,s,c,h){var p=U.T;U.T=null;var S=te.p;try{te.p=8,fm(i,s,c,h)}finally{te.p=S,U.T=p}}function fm(i,s,c,h){if(Vd){var p=Am(h);if(p===null)em(i,s,h,zd,c),mS(i,h);else if(pO(p,i,s,c,h))h.stopPropagation();else if(mS(i,h),s&4&&-1<mO.indexOf(i)){for(;p!==null;){var S=Ma(p);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var T=wi(S.pendingLanes);if(T!==0){var B=S;for(B.pendingLanes|=2,B.entangledLanes|=2;T;){var M=1<<31-Hn(T);B.entanglements[1]|=M,T&=~M}Mr(S),(vt&6)===0&&(Dd=Be()+500,Xo(0))}}break;case 13:B=Gu(S,2),B!==null&&Cn(B,S,2),bd(),dm(S,2)}if(S=Am(h),S===null&&em(i,s,h,zd,c),S===p)break;p=S}p!==null&&h.stopPropagation()}else em(i,s,h,null,c)}}function Am(i){return i=_A(i),hm(i)}var zd=null;function hm(i){if(zd=null,i=Mi(i),i!==null){var s=ee(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=Ee(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return zd=i,null}function hS(i){switch(i){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(Xe()){case Lt:return 2;case wt:return 8;case Mn:case cA:return 32;case La:return 268435456;default:return 32}default:return 32}}var mm=!1,ni=null,ri=null,ui=null,il=new Map,al=new Map,ii=[],mO="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 mS(i,s){switch(i){case"focusin":case"focusout":ni=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":il.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(s.pointerId)}}function sl(i,s,c,h,p,S){return i===null||i.nativeEvent!==S?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:S,targetContainers:[p]},s!==null&&(s=Ma(s),s!==null&&AS(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function pO(i,s,c,h,p){switch(s){case"focusin":return ni=sl(ni,i,s,c,h,p),!0;case"dragenter":return ri=sl(ri,i,s,c,h,p),!0;case"mouseover":return ui=sl(ui,i,s,c,h,p),!0;case"pointerover":var S=p.pointerId;return il.set(S,sl(il.get(S)||null,i,s,c,h,p)),!0;case"gotpointercapture":return S=p.pointerId,al.set(S,sl(al.get(S)||null,i,s,c,h,p)),!0}return!1}function pS(i){var s=Mi(i.target);if(s!==null){var c=ee(s);if(c!==null){if(s=c.tag,s===13){if(s=Ee(c),s!==null){i.blockedOn=s,cb(i.priority,function(){if(c.tag===13){var h=jn(),p=Gu(c,h);p!==null&&Cn(p,c,h),dm(c,h)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Kd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=Am(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);gA=h,c.target.dispatchEvent(h),gA=null}else return s=Ma(c),s!==null&&AS(s),i.blockedOn=c,!1;s.shift()}return!0}function ES(i,s,c){Kd(i)&&c.delete(s)}function EO(){mm=!1,ni!==null&&Kd(ni)&&(ni=null),ri!==null&&Kd(ri)&&(ri=null),ui!==null&&Kd(ui)&&(ui=null),il.forEach(ES),al.forEach(ES)}function Yd(i,s){i.blockedOn===s&&(i.blockedOn=null,mm||(mm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EO)))}var Zd=null;function gS(i){Zd!==i&&(Zd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zd===i&&(Zd=null);for(var s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],p=i[s+2];if(typeof h!="function"){if(hm(h||c)===null)continue;break}var S=Ma(c);S!==null&&(i.splice(s,3),s-=3,uh(S,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function ol(i){function s(M){return Yd(M,i)}ni!==null&&Yd(ni,i),ri!==null&&Yd(ri,i),ui!==null&&Yd(ui,i),il.forEach(s),al.forEach(s);for(var c=0;c<ii.length;c++){var h=ii[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ii.length&&(c=ii[0],c.blockedOn===null);)pS(c),c.blockedOn===null&&ii.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var p=c[h],S=c[h+1],T=p[Tn]||null;if(typeof S=="function")T||gS(c);else if(T){var B=null;if(S&&S.hasAttribute("formAction")){if(p=S,T=S[Tn]||null)B=T.formAction;else if(hm(p)!==null)continue}else B=T.action;typeof B=="function"?c[h+1]=B:(c.splice(h,3),h-=3),gS(c)}}}function pm(i){this._internalRoot=i}Wd.prototype.render=pm.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=jn();dS(c,h,i,s,null,null)},Wd.prototype.unmount=pm.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&cs(),dS(i.current,2,null,i,null,null),bd(),s[wa]=null}};function Wd(i){this._internalRoot=i}Wd.prototype.unstable_scheduleHydration=function(i){if(i){var s=Y4();i={blockedOn:null,target:i,priority:s};for(var c=0;c<ii.length&&s!==0&&s<ii[c].priority;c++);ii.splice(c,0,i),c===0&&pS(i)}};var _S=t.version;if(_S!=="19.0.0")throw Error(r(527,_S,"19.0.0"));te.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=W(s),i=i!==null?V(i):null,i=i===null?null:i.stateNode,i};var gO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:Mi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{Hu=$d.inject(gO),In=$d}catch{}}return cl.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=MN,S=HN,T=PN,B=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(S=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(B=s.unstable_transitionCallbacks)),s=lS(i,1,!1,null,null,c,h,p,S,T,B,null),i[wa]=s.current,Jh(i.nodeType===8?i.parentNode:i),new pm(s)},cl.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",S=MN,T=HN,B=PN,M=null,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(S=c.onUncaughtError),c.onCaughtError!==void 0&&(T=c.onCaughtError),c.onRecoverableError!==void 0&&(B=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&(K=c.formState)),s=lS(i,1,!0,s,c??null,h,p,S,T,B,M,K),s.context=cS(null),c=s.current,h=jn(),p=Wu(h),p.callback=null,$u(c,p,h),s.current.lanes=h,mo(s,h),Mr(s),i[wa]=s.current,Jh(i),new Wd(s)},cl.version="19.0.0",cl}var xS;function BO(){if(xS)return _m.exports;xS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_m.exports=bO(),_m.exports}var OO=BO();const FO={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},LO={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},wO={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1,openAiApiKey:"",openAiApiModel:"gpt-4o-2024-11-20",openAiApiTemperature:.1},Qe={internationalization:FO,middleware:LO,editor:wO},cn=[];for(let e=0;e<256;++e)cn.push((e+256).toString(16).slice(1));function MO(e,t=0){return(cn[e[t+0]]+cn[e[t+1]]+cn[e[t+2]]+cn[e[t+3]]+"-"+cn[e[t+4]]+cn[e[t+5]]+"-"+cn[e[t+6]]+cn[e[t+7]]+"-"+cn[e[t+8]]+cn[e[t+9]]+"-"+cn[e[t+10]]+cn[e[t+11]]+cn[e[t+12]]+cn[e[t+13]]+cn[e[t+14]]+cn[e[t+15]]).toLowerCase()}let Cm;const HO=new Uint8Array(16);function PO(){if(!Cm){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cm=crypto.getRandomValues.bind(crypto)}return Cm(HO)}const UO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bS={randomUUID:UO};function kO(e,t,n){var a;if(bS.randomUUID&&!e)return bS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??PO();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,MO(r)}const{editor:_u}=Qe,uv=C.createContext({postMessage:()=>null,allowedOrigins:[_u==null?void 0:_u.applicationURL,_u==null?void 0:_u.editorURL,_u==null?void 0:_u.cmsURL],senderId:""}),BS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=C.useRef(kO()),a=C.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(uv.Provider,{value:a,children:e})},iv=()=>C.useContext(uv),GO=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const a=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(a!==""&&o!==""&&a!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Us=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=iv();return C.useEffect(()=>{if(t){const d=f=>{const{type:A,data:m,senderId:E}=f.data;A===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>GO(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)}},[r,a,o,n]),d=>{a({type:e,data:d,senderId:o})}},jO=(e,t)=>typeof e=="function"?e(t):e,Ta=(e,t,n)=>{const{postMessage:r,senderId:a}=iv(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,I)=>{const y=jO(_,I);return o&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:a}),y},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:A,senderId:a})},[A,m]=C.useState(()=>d(t)),E=_=>m(I=>d(_,I));Us(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,I)=>{o&&typeof r=="function"&&I!==a&&(typeof A>"u"||r({type:`${e}/post`,data:A,senderId:a}))};return Us(`${e}/get`,o?g:void 0,A),C.useEffect(()=>{l&&typeof r=="function"&&typeof A>"u"&&r({type:`${e}/get`,senderId:a})},[]),[A,E,f]},av=C.createContext(void 0),VO=({children:e,configuration:t})=>N.jsx(av.Provider,{value:t,children:e}),Xr=()=>C.useContext(av),sv=C.createContext(void 0),ov=C.createContext(void 0),zO=({children:e})=>{const[t,n]=Ta("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=C.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=C.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(sv.Provider,{value:r,children:N.jsx(ov.Provider,{value:a,children:e})})},WE=()=>C.useContext(ov),lv=()=>{const e=WE(),t=C.useContext(sv);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var Y=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Unknown="unknown",e))(Y||{});const KO=(e,t,n)=>({...n,nodeType:e,[e]:t}),pe=e=>KO(Y.Translation,e),N0=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>N0(a,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:Y.Array,key:a}]};return N0(r,o)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Y.Object,key:r}]};n[r]=N0(e[r],a)}return n},YO=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},ZO=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,o=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),d=r.startsWith("<")&&t<parseFloat(r.slice(1)),f=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||o||l||d||f)return r}},WO=(e,t)=>{const n=ZO(e,t)??"fallback";return e[n]},OS={},cv=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return $E(e.content,r,t)},$O=(e,t,n)=>{const r=OS[e];if(!r)throw new Error(`Dictionary ${e} not found`,OS);return cv(r,t,n)},qO=(e,t,n)=>{const r=$O(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let o=r;for(const l of a)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},QO=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},XO=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),JO=e=>({id:"translation-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===Y.Translation,transform:(t,n,r)=>{const a=structuredClone(t[Y.Translation]);for(const o in a){const l={...n,children:a[o],keyPath:[...n.keyPath,{type:Y.Translation,key:o}]};a[o]=r(a[o],l)}return QO(a,e)}}),eF={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Y.Enumeration]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:Y.Enumeration,key:a}]};r[a]=n(o,l)}return a=>WO(r,a)}},tF={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Y.Condition]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:Y.Condition,key:a}]};r[a]=n(o,l)}return a=>YO(r,a)}},nF={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Y.Insertion}],a=e[Y.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,d,f)=>{const A=f(l,{...d,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const E=XO(A,m);return f(E,{...d,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},rF={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Nested,transform:(e,t)=>qO(e.nested.dictionaryKey,e.nested.path,t)},uF={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},$E=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[nF,JO(n),eF,tF,rF,uF,...t.plugins??[]];return N0(e,{...t,plugins:r})},iF=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},dv=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1;for(const o of t){if(o.trim()==="---"){if(a)break;a=!0;continue}if(a){const d=o.match(/^([^:]+)\s*:\s*(.*)$/);if(d){const f=d[1].trim(),A=d[2].trim();try{r[f]=iF(A)}catch{r[f]=A}}}}return r}catch{return}},FS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},aF=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),qd=e=>e.reduce((t,n)=>{const r=t??{},a=aF(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Oe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:_,params:I,headers:y,...v})=>v),l=qd([FS,...o]),d=qd([FS.headers,...t.map(_=>_.headers)]),f=qd(t.map(_=>_.params)),A=l.method;if(A!=="GET"&&A!=="HEAD"){const _=qd(t.map(I=>I.body));(d==null?void 0:d["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(_).toString():a=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:d,body:a,signal:n},E=`${e}${r}`,g=await fetch(E,m);if(!g.ok){const _=await g.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await g.json()},sF=(e={},t)=>{var m,E;const n=((m=t==null?void 0:t.editor)==null?void 0:m.backendURL)??((E=Qe.editor)==null?void 0:E.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(g,_={})=>await Oe(`${r}/audit/dictionary`,e,_,{method:"POST",body:g}),auditContentDeclarationField:async(g,_={})=>await Oe(`${r}/audit/dictionary/field`,e,_,{method:"POST",body:g}),auditContentDeclarationMetadata:async(g,_={})=>await Oe(`${r}/audit/dictionary/metadata`,e,_,{method:"POST",body:g}),auditTag:async(g,_={})=>await Oe(`${r}/audit/tag`,e,_,{method:"POST",body:g}),askDocQuestion:async(g,_={})=>await Oe(`${r}/ask`,e,_,{method:"POST",body:g}),autocomplete:async(g,_={})=>await Oe(`${r}/autocomplete`,e,_,{method:"POST",body:g})}},oF=(e={},t)=>{var O,w;const n=((O=t==null?void 0:t.editor)==null?void 0:O.backendURL)??((w=Qe.editor)==null?void 0:w.backendURL),{clientId:r,clientSecret:a}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(P,U={})=>await Oe(`${o}/login`,e,U,{method:"POST",body:P}),getLoginWithGitHubURL:P=>{const U=new URLSearchParams(P);return`${o}/login/github?${U.toString()}`},getLoginWithGoogleURL:P=>{const U=new URLSearchParams(P);return`${o}/login/google?${U.toString()}`},register:async(P,U={},j={})=>await Oe(`${o}/register`,e,j,{method:"POST",body:P,params:U}),logout:async(P={})=>await Oe(`${o}/logout`,e,P,{method:"POST"}),resetPassword:async(P,U={})=>await Oe(`${o}/password/reset`,e,U,{params:P,method:"POST"}),defineNewPassword:async(P,U={})=>await Oe(`${o}/password/define`,e,U,{method:"POST",body:P}),askResetPassword:async(P,U={})=>await Oe(`${o}/password/reset`,e,U,{method:"POST",body:{email:P}}),checkIfUserHasPassword:async(P={})=>await Oe(`${o}/password/has`,e,P,{method:"GET"}),verifyEmail:async({userId:P,secret:U},j={})=>await Oe(`${o}/active/${P}/${U}`,e,j,{method:"PUT"}),getVerifyEmailStatusURL:P=>`${o}/verify-email-status/${String(P)}`,changePassword:async(P,U={})=>await Oe(`${o}/password`,e,U,{method:"PUT",body:P}),createSession:async(P,U={})=>await Oe(`${o}/session`,e,U,{method:"POST",body:P}),getSession:async(P,U={})=>await Oe(`${n}/session`,e,U,{params:{session_token:P}}),getCSRFToken:async(P={})=>await Oe(`${n}/csrf-token`,e,P),getOAuth2AccessToken:async(P={})=>await Oe(`${n}/oauth2/token`,e,P,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},lF=(e={},t)=>{var E,g;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((g=Qe.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(_,I={})=>await Oe(r,e,I,{params:_}),getDictionariesKeys:async(_={})=>await Oe(`${r}/keys`,e,_),getDictionary:async(_,I,y={})=>await Oe(`${r}/${_}`,e,y,{params:I?{version:I.toString()}:void 0}),pushDictionaries:async(_,I={})=>await Oe(`${r}`,e,I,{method:"PATCH",body:{dictionaries:_}}),addDictionary:async(_,I={})=>await Oe(`${r}`,e,I,{method:"POST",body:_}),updateDictionary:async(_,I,y={})=>await Oe(`${r}/${_}`,e,y,{method:"PUT",body:I}),deleteDictionary:async(_,I={})=>await Oe(`${r}`,e,I,{method:"DELETE",body:{id:_}})}},cF=(e={},t)=>{var l,d;const n=((l=t==null?void 0:t.editor)==null?void 0:l.editorURL)??((d=Qe.editor)==null?void 0:d.editorURL);if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(f={})=>(await Oe(`${r}/config`,e,f)).data,writeDictionary:async(f,A={})=>await Oe(`${r}/dictionary`,e,A,{method:"POST",body:{dictionary:f}})}},dF=(e={},t)=>{var _,I;const n=((_=t==null?void 0:t.editor)==null?void 0:_.backendURL)??((I=Qe.editor)==null?void 0:I.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(y,v={})=>await Oe(r,e,v,{params:y}),getOrganization:async(y,v={})=>await Oe(`${r}/${String(y)}`,e,v),addOrganization:async(y,v={})=>await Oe(r,e,v,{method:"POST",body:y}),addOrganizationMember:async(y,v={})=>Oe(`${r}/member`,e,v,{method:"POST",body:y}),updateOrganization:async(y,v={})=>Oe(r,e,v,{method:"PUT",body:y}),updateOrganizationMembers:async(y,v={})=>Oe(`${r}/members`,e,v,{method:"PUT",body:y}),deleteOrganization:async(y={})=>await Oe(r,e,y,{method:"DELETE"}),selectOrganization:async(y,v={})=>await Oe(`${r}/${String(y)}`,e,v,{method:"PUT"}),unselectOrganization:async(y={})=>await Oe(`${r}/logout`,e,y,{method:"POST"})}},fF=(e={},t)=>{var y,v;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((v=Qe.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(R,D={})=>await Oe(r,e,D,{params:R}),addProject:async(R,D={})=>await Oe(`${r}`,e,D,{method:"POST",body:R}),updateProject:async(R,D={})=>await Oe(`${r}`,e,D,{method:"PUT",body:R}),updateProjectMembers:async(R,D={})=>await Oe(`${r}/members`,e,D,{method:"PUT",body:R}),pushProjectConfiguration:async(R,D={})=>await Oe(`${r}/configuration`,e,D,{method:"PUT",body:R}),deleteProject:async(R={})=>await Oe(`${r}`,e,R,{method:"DELETE"}),selectProject:async(R,D={})=>await Oe(`${r}/${String(R)}`,e,D,{method:"PUT"}),unselectProject:async(R={})=>await Oe(`${r}/logout`,e,R,{method:"POST"}),addNewAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"POST",body:R}),deleteAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"DELETE",body:{clientId:R}}),refreshAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"PATCH",body:{clientId:R}})}},AF=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=Qe.editor)==null?void 0:f.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(A,m={})=>await Oe(`${r}/pricing`,e,m,{method:"POST",body:A}),getSubscription:async(A,m={})=>await Oe(`${r}/create-subscription`,e,m,{method:"POST",body:A}),cancelSubscription:async(A={})=>await Oe(`${r}/cancel-subscription`,e,A,{method:"POST"})}},hF=(e={},t)=>{var f,A;const n=((f=t==null?void 0:t.editor)==null?void 0:f.backendURL)??((A=Qe.editor)==null?void 0:A.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(m,E={})=>await Oe(r,e,E,{params:m}),addTag:async(m,E={})=>await Oe(`${r}`,e,E,{method:"POST",body:m}),updateTag:async(m,E,g={})=>await Oe(`${r}/${m}`,e,g,{method:"PUT",body:E}),deleteTag:async(m,E={})=>await Oe(`${r}/${m}`,e,E,{method:"DELETE"})}},mF=(e={},t)=>{var E,g;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((g=Qe.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(_,I={})=>await Oe(`${r}/`,e,I,{method:"POST",body:_}),getUsers:async(_,I={})=>await Oe(r,e,I,{params:_}),getUserById:async(_,I={})=>await Oe(`${r}/${_}`,e,I),getUserByAccount:async(_,I,y={})=>await Oe(`${r}/account/${I}/${_}`,e,y),getUserByEmail:async(_,I={})=>await Oe(`${r}/email/${_}`,e,I),updateUser:async(_,I={})=>await Oe(`${r}`,e,I,{method:"PUT",body:_}),deleteUser:async(_,I={})=>await Oe(`${r}/${_}`,e,I,{method:"DELETE"})}},Df=(e={},t)=>({organization:dF(e,t),project:fF(e,t),user:mF(e,t),auth:oF(e,t),dictionary:lF(e,t),stripe:AF(e,t),ai:sF(e,t),tag:hF(e,t),editor:cF(e,t)}),LS=(e,t,n)=>{let r=e,a=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const d=t[l];if(a=r,(d.type===Y.Object||d.type===Y.Array)&&(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]),(d.type===Y.Translation||d.type===Y.Enumeration)&&(o=[d.type,d.key],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]={}),(!r[d.type][d.key]||typeof r[d.type][d.key]!="object")&&(r[d.type][d.key]={}),r=r[d.type][d.key]),(d.type===Y.Enumeration||d.type===Y.Condition)&&(o=[d.type,d.key],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]={}),(!r[d.type][d.key]||typeof r[d.type][d.key]!="object")&&(r[d.type][d.key]={}),r=r[d.type][d.key]),(d.type===Y.Markdown||d.type===Y.Insertion)&&(o=[d.type],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]=""),r=r[d.type]),d.type===Y.File&&(o=["content"],r=r.content),d.type&&(r=r),l===t.length-1&&a&&o.length>0){let f=a;for(const A of o.slice(0,-1))f=f[A];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},Vr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Y.Object||r.type===Y.Array?n=n==null?void 0:n[r.key]:r.type===Y.Translation||r.type===Y.Condition||r.type===Y.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Y.Markdown||r.type===Y.Insertion||r.type===Y.File)&&(n=n==null?void 0:n[r.type]);return n},fv=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===Y.Translation||t.nodeType===Y.Enumeration||t.nodeType===Y.Condition||t.nodeType===Y.Insertion||t.nodeType===Y.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Y.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},pF=(e,t,n)=>{let r=e,a=null,o=null;for(const l of n)a=r,(l.type===Y.Object||l.type===Y.Array)&&(o=l.key,r=r[l.key]),(l.type===Y.Translation||l.type===Y.Enumeration||l.type===Y.Condition)&&(o=l.type,r=r[l.type][l.key]),(l.type===Y.Markdown||l.type===Y.ReactNode||l.type===Y.Insertion||l.type===Y.File)&&(o=l.type,r=r[l.type]);if(a&&o!==null)if(Array.isArray(a))a[o]=r;else{const l={};for(const d of Object.keys(a))d===o&&typeof t<"u"?l[t]=r:l[d]=a[d];Object.keys(a).forEach(d=>delete a[d]),Object.assign(a,l)}return e},EF=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",qs=e=>typeof e=="string"?Y.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Y.Array:EF(e)?Y.ReactNode:typeof e=="number"?Y.Number:typeof e=="boolean"?Y.Boolean:e&&typeof e=="object"?Y.Object:Y.Unknown,dl=(e,t,n)=>{const r=structuredClone(n);switch(e){case Y.Translation:return{nodeType:Y.Translation,[Y.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Y.Enumeration:return{nodeType:Y.Enumeration,[Y.Enumeration]:{1:r??""}};case Y.Condition:return{nodeType:Y.Condition,[Y.Condition]:{true:r??"",false:r??""}};case Y.Insertion:return{nodeType:Y.Insertion,[Y.Insertion]:{insertion:r??""}};case Y.Nested:return{nodeType:Y.Nested,[Y.Nested]:{dictionaryKey:""}};case Y.Markdown:return{nodeType:Y.Markdown,[Y.Markdown]:r??""};case Y.File:return{nodeType:Y.File,[Y.File]:r??""};case Y.Object:return{newKey:r??""};case Y.Array:return[r??""];case Y.Text:return r??"";case Y.Number:return r??0;case Y.Boolean:return r??!0;default:return r??""}},hr=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,a=r[r.nodeType];return r.nodeType===Y.Translation||r.nodeType===Y.Enumeration||r.nodeType===Y.Condition||r.nodeType===Y.Insertion?hr(a):r.nodeType===Y.Nested?"dictionary-key":r.nodeType===Y.File?"file/path":r.nodeType===Y.Markdown?hr(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(hr);const t=Object.entries(e).map(([r,a])=>[r,hr(a)]);return Object.fromEntries(t)},Ec=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),Av=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var u=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e))(u||{});const ln={[u.ENGLISH]:"",[u.FRENCH]:"",[u.SPANISH]:"",[u.PORTUGUESE]:"",[u.GERMAN]:"",[u.AFRIKAANS]:"",[u.ARABIC]:"",[u.AZERI_LATIN]:"",[u.BELARUSIAN]:"",[u.BULGARIAN]:"",[u.BOSNIAN]:"",[u.CATALAN]:"",[u.CZECH]:"",[u.WELSH]:"",[u.DANISH]:"",[u.DIVEHI]:"",[u.GREEK]:"",[u.ESPERANTO]:"",[u.ESTONIAN]:"",[u.BASQUE]:"",[u.FARSI]:"",[u.FINNISH]:"",[u.FAROESE]:"",[u.GALICIAN]:"",[u.GUJARATI]:"",[u.HEBREW]:"",[u.HINDI]:"",[u.CROATIAN]:"",[u.HUNGARIAN]:"",[u.ARMENIAN]:"",[u.INDONESIAN]:"",[u.ICELANDIC]:"",[u.ITALIAN]:"",[u.JAPANESE]:"",[u.GEORGIAN]:"",[u.KAZAKH]:"",[u.KANNADA]:"",[u.KOREAN]:"",[u.KONKANI]:"",[u.KYRGYZ]:"",[u.LITHUANIAN]:"",[u.LATVIAN]:"",[u.MAORI]:"",[u.FYRO_MACEDONIAN]:"",[u.MONGOLIAN]:"",[u.MARATHI]:"",[u.MALAY]:"",[u.MALTESE]:"",[u.NORWEGIAN_BOKMAL]:"",[u.DUTCH]:"",[u.NORTHERN_SOTHO]:"",[u.PUNJABI]:"",[u.POLISH]:"",[u.PASHTO]:"",[u.QUECHUA]:"",[u.ROMANIAN]:"",[u.RUSSIAN]:"",[u.SANSKRIT]:"",[u.SAMI_NORTHERN]:"",[u.SLOVAK]:"",[u.SLOVENIAN]:"",[u.ALBANIAN]:"",[u.SERBIAN_LATIN]:"",[u.SWEDISH]:"",[u.SWEDISH_FINLAND]:"",[u.SWEDISH_SWEDEN]:"",[u.SWAHILI]:"",[u.SYRIAC]:"",[u.TAMIL]:"",[u.TELUGU]:"",[u.THAI]:"",[u.TAGALOG]:"",[u.TSWANA]:"",[u.TURKISH]:"",[u.TATAR]:"",[u.UKRAINIAN]:"",[u.URDU]:"",[u.UZBEK_LATIN]:"",[u.VIETNAMESE]:"",[u.XHOSA]:"",[u.CHINESE]:"",[u.CHINESE_SIMPLIFIED]:"",[u.CHINESE_SIMPLIFIED_CHINA]:"",[u.CHINESE_TRADITIONAL]:"",[u.ZULU]:"",[u.AFRIKAANS_SOUTH_AFRICA]:"",[u.ARABIC_UNITED_ARAB_EMIRATES]:"",[u.ARABIC_BAHRAIN]:"",[u.ARABIC_ALGERIA]:"",[u.ARABIC_EGYPT]:"",[u.ARABIC_IRAQ]:"",[u.ARABIC_JORDAN]:"",[u.ARABIC_KUWAIT]:"",[u.ARABIC_LEBANON]:"",[u.ARABIC_LIBYA]:"",[u.ARABIC_MOROCCO]:"",[u.ARABIC_OMAN]:"",[u.ARABIC_QATAR]:"",[u.ARABIC_SAUDI_ARABIA]:"",[u.ARABIC_SYRIA]:"",[u.ARABIC_TUNISIA]:"",[u.ARABIC_YEMEN]:"",[u.AZERI_LATIN_AZERBAIJAN]:"",[u.BELARUSIAN_BELARUS]:"",[u.BULGARIAN_BULGARIA]:"",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CATALAN_SPAIN]:"",[u.CZECH_CZECH_REPUBLIC]:"",[u.WELSH_UNITED_KINGDOM]:"",[u.DANISH_DENMARK]:"",[u.GERMAN_AUSTRIA]:"",[u.GERMAN_SWITZERLAND]:"",[u.GERMAN_GERMANY]:"",[u.GERMAN_LIECHTENSTEIN]:"",[u.GERMAN_LUXEMBOURG]:"",[u.DIVEHI_MALDIVES]:"",[u.GREEK_GREECE]:"",[u.ENGLISH_AUSTRALIA]:"",[u.ENGLISH_BELIZE]:"",[u.ENGLISH_CANADA]:"",[u.ENGLISH_CARIBBEAN]:"",[u.ENGLISH_UNITED_KINGDOM]:"",[u.ENGLISH_IRELAND]:"",[u.ENGLISH_JAMAICA]:"",[u.ENGLISH_NEW_ZEALAND]:"",[u.ENGLISH_PHILIPPINES]:"",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[u.ENGLISH_UNITED_STATES]:"",[u.ENGLISH_SOUTH_AFRICA]:"",[u.ENGLISH_ZIMBABWE]:"",[u.SPANISH_ARGENTINA]:"",[u.SPANISH_BOLIVIA]:"",[u.SPANISH_CHILE]:"",[u.SPANISH_COLOMBIA]:"",[u.SPANISH_COSTA_RICA]:"",[u.SPANISH_DOMINICAN_REPUBLIC]:"",[u.SPANISH_ECUADOR]:"",[u.SPANISH_SPAIN]:"",[u.SPANISH_GUATEMALA]:"",[u.SPANISH_HONDURAS]:"",[u.SPANISH_MEXICO]:"",[u.SPANISH_NICARAGUA]:"",[u.SPANISH_PANAMA]:"",[u.SPANISH_PERU]:"",[u.SPANISH_PUERTO_RICO]:"",[u.SPANISH_PARAGUAY]:"",[u.SPANISH_EL_SALVADOR]:"",[u.SPANISH_URUGUAY]:"",[u.SPANISH_VENEZUELA]:"",[u.ESTONIAN_ESTONIA]:"",[u.BASQUE_SPAIN]:"",[u.FARSI_IRAN]:"",[u.FINNISH_FINLAND]:"",[u.FAROESE_FAROE_ISLANDS]:"",[u.FRENCH_BELGIUM]:"",[u.FRENCH_CANADA]:"",[u.FRENCH_SWITZERLAND]:"",[u.FRENCH_FRANCE]:"",[u.FRENCH_LUXEMBOURG]:"",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"",[u.GALICIAN_SPAIN]:"",[u.GUJARATI_INDIA]:"",[u.HEBREW_ISRAEL]:"",[u.HINDI_INDIA]:"",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CROATIAN_CROATIA]:"",[u.HUNGARIAN_HUNGARY]:"",[u.ARMENIAN_ARMENIA]:"",[u.INDONESIAN_INDONESIA]:"",[u.ICELANDIC_ICELAND]:"",[u.ITALIAN_SWITZERLAND]:"",[u.ITALIAN_ITALY]:"",[u.JAPANESE_JAPAN]:"",[u.GEORGIAN_GEORGIA]:"",[u.KAZAKH_KAZAKHSTAN]:"",[u.KANNADA_INDIA]:"",[u.KOREAN_KOREA]:"",[u.KONKANI_INDIA]:"",[u.KYRGYZ_KYRGYZSTAN]:"",[u.LITHUANIAN_LITHUANIA]:"",[u.LATVIAN_LATVIA]:"",[u.MAORI_NEW_ZEALAND]:"",[u.FYRO_MACEDONIAN_MACEDONIA]:"",[u.MONGOLIAN_MONGOLIA]:"",[u.MARATHI_INDIA]:"",[u.MALAY_BRUNEI_DARUSSALAM]:"",[u.MALAY_MALAYSIA]:"",[u.MALTESE_MALTA]:"",[u.NORWEGIAN_BOKMAL_NORWAY]:"",[u.DUTCH_BELGIUM]:"",[u.DUTCH_NETHERLANDS]:"",[u.NORWEGIAN_NYNORSK_NORWAY]:"",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[u.PUNJABI_INDIA]:"",[u.POLISH_POLAND]:"",[u.PASHTO_AFGHANISTAN]:"",[u.PORTUGUESE_BRAZIL]:"",[u.PORTUGUESE_PORTUGAL]:"",[u.QUECHUA_BOLIVIA]:"",[u.QUECHUA_ECUADOR]:"",[u.QUECHUA_PERU]:"",[u.ROMANIAN_ROMANIA]:"",[u.RUSSIAN_RUSSIA]:"",[u.SANSKRIT_INDIA]:"",[u.SAMI_NORTHERN_FINLAND]:"",[u.SAMI_NORTHERN_NORWAY]:"",[u.SAMI_NORTHERN_SWEDEN]:"",[u.SLOVAK_SLOVAKIA]:"",[u.SLOVENIAN_SLOVENIA]:"",[u.ALBANIAN_ALBANIA]:"",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[u.SWAHILI_KENYA]:"",[u.SYRIAC_SYRIA]:"",[u.TAMIL_INDIA]:"",[u.TELUGU_INDIA]:"",[u.THAI_THAILAND]:"",[u.TAGALOG_PHILIPPINES]:"",[u.TSWANA_SOUTH_AFRICA]:"",[u.TURKISH_TURKEY]:"",[u.TATAR_RUSSIA]:"",[u.TSOGA]:"",[u.UKRAINIAN_UKRAINE]:"",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[u.UZBEK_LATIN_UZBEKISTAN]:"",[u.VIETNAMESE_VIET_NAM]:"",[u.XHOSA_SOUTH_AFRICA]:"",[u.CHINESE_HONG_KONG]:"",[u.CHINESE_MACAU]:"",[u.CHINESE_SINGAPORE]:"",[u.ZULU_SOUTH_AFRICA]:""},ps={[u.ENGLISH]:"Englisch",[u.FRENCH]:"Französisch",[u.SPANISH]:"Spanisch",[u.PORTUGUESE]:"Portugiesisch",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabisch",[u.AZERI_LATIN]:"Aserbaidschanisch Latein",[u.BELARUSIAN]:"Weißrussisch",[u.BULGARIAN]:"Bulgarisch",[u.BOSNIAN]:"Bosnisch",[u.CATALAN]:"Katalanisch",[u.CZECH]:"Tschechisch",[u.WELSH]:"Walisisch",[u.DANISH]:"Dänisch",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griechisch",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estnisch",[u.BASQUE]:"Baskisch",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnisch",[u.FAROESE]:"Färöisch",[u.GALICIAN]:"Galicisch",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebräisch",[u.HINDI]:"Hindi",[u.CROATIAN]:"Kroatisch",[u.HUNGARIAN]:"Ungarisch",[u.ARMENIAN]:"Armenisch",[u.INDONESIAN]:"Indonesisch",[u.ICELANDIC]:"Isländisch",[u.ITALIAN]:"Italienisch",[u.JAPANESE]:"Japanisch",[u.GEORGIAN]:"Georgisch",[u.KAZAKH]:"Kasachisch",[u.KANNADA]:"Kannada",[u.KOREAN]:"Koreanisch",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirgisisch",[u.LITHUANIAN]:"Litauisch",[u.LATVIAN]:"Lettisch",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[u.MONGOLIAN]:"Mongolisch",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaiisch",[u.MALTESE]:"Maltisch",[u.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[u.DUTCH]:"Niederländisch",[u.NORTHERN_SOTHO]:"Sotho (Nord)",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polnisch",[u.PASHTO]:"Paschtu",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumänisch",[u.RUSSIAN]:"Russisch",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami (Nord)",[u.SLOVAK]:"Slowakisch",[u.SLOVENIAN]:"Slowenisch",[u.ALBANIAN]:"Albanisch",[u.SERBIAN_LATIN]:"Serbisch Latein",[u.SWEDISH]:"Schwedisch",[u.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[u.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[u.SWAHILI]:"Suaheli",[u.SYRIAC]:"Syrisch",[u.TAMIL]:"Tamilisch",[u.TELUGU]:"Telugu",[u.THAI]:"Thailändisch",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Türkisch",[u.TATAR]:"Tatarisch",[u.UKRAINIAN]:"Ukrainisch",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Usbekisch Latein",[u.VIETNAMESE]:"Vietnamesisch",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinesisch",[u.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[u.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[u.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[u.ARABIC_ALGERIA]:"Arabisch (Algerien)",[u.ARABIC_EGYPT]:"Arabisch (Ägypten)",[u.ARABIC_IRAQ]:"Arabisch (Irak)",[u.ARABIC_JORDAN]:"Arabisch (Jordanien)",[u.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[u.ARABIC_LEBANON]:"Arabisch (Libanon)",[u.ARABIC_LIBYA]:"Arabisch (Libyen)",[u.ARABIC_MOROCCO]:"Arabisch (Marokko)",[u.ARABIC_OMAN]:"Arabisch (Oman)",[u.ARABIC_QATAR]:"Arabisch (Katar)",[u.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[u.ARABIC_SYRIA]:"Arabisch (Syrien)",[u.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[u.ARABIC_YEMEN]:"Arabisch (Jemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[u.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[u.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[u.CATALAN_SPAIN]:"Katalanisch (Spanien)",[u.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[u.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[u.DANISH_DENMARK]:"Dänisch (Dänemark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"Divehi (Malediven)",[u.GREEK_GREECE]:"Griechisch (Griechenland)",[u.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[u.ENGLISH_BELIZE]:"Englisch (Belize)",[u.ENGLISH_CANADA]:"Englisch (Kanada)",[u.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[u.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[u.ENGLISH_IRELAND]:"Englisch (Irland)",[u.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[u.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[u.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[u.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[u.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[u.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[u.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[u.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[u.SPANISH_CHILE]:"Spanisch (Chile)",[u.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[u.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[u.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[u.SPANISH_SPAIN]:"Spanisch (Spanien)",[u.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[u.SPANISH_HONDURAS]:"Spanisch (Honduras)",[u.SPANISH_MEXICO]:"Spanisch (Mexiko)",[u.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[u.SPANISH_PANAMA]:"Spanisch (Panama)",[u.SPANISH_PERU]:"Spanisch (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[u.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[u.BASQUE_SPAIN]:"Baskisch (Spanien)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnisch (Finnland)",[u.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[u.FRENCH_BELGIUM]:"Französisch (Belgien)",[u.FRENCH_CANADA]:"Französisch (Kanada)",[u.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[u.FRENCH_FRANCE]:"Französisch (Frankreich)",[u.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[u.GALICIAN_SPAIN]:"Galicisch (Spanien)",[u.GUJARATI_INDIA]:"Gujarati (Indien)",[u.HEBREW_ISRAEL]:"Hebräisch (Israel)",[u.HINDI_INDIA]:"Hindi (Indien)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[u.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[u.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[u.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[u.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[u.ICELANDIC_ICELAND]:"Isländisch (Island)",[u.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[u.ITALIAN_ITALY]:"Italienisch (Italien)",[u.JAPANESE_JAPAN]:"Japanisch (Japan)",[u.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[u.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[u.KANNADA_INDIA]:"Kannada (Indien)",[u.KOREAN_KOREA]:"Koreanisch (Korea)",[u.KONKANI_INDIA]:"Konkani (Indien)",[u.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[u.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[u.LATVIAN_LATVIA]:"Lettisch (Lettland)",[u.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[u.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[u.MARATHI_INDIA]:"Marathi (Indien)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[u.MALTESE_MALTA]:"Maltisch (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[u.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[u.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[u.PUNJABI_INDIA]:"Punjabi (Indien)",[u.POLISH_POLAND]:"Polnisch (Polen)",[u.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[u.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[u.RUSSIAN_RUSSIA]:"Russisch (Russland)",[u.SANSKRIT_INDIA]:"Sanskrit (Indien)",[u.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[u.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[u.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[u.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[u.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[u.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[u.SWAHILI_KENYA]:"Suaheli (Kenia)",[u.SYRIAC_SYRIA]:"Syrisch (Syrien)",[u.TAMIL_INDIA]:"Tamilisch (Indien)",[u.TELUGU_INDIA]:"Telugu (Indien)",[u.THAI_THAILAND]:"Thailändisch (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[u.TURKISH_TURKEY]:"Türkisch (Türkei)",[u.TATAR_RUSSIA]:"Tatarisch (Russland)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[u.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[u.CHINESE_MACAU]:"Chinesisch (Macao)",[u.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},Bn={[u.ENGLISH]:"English",[u.FRENCH]:"French",[u.SPANISH]:"Spanish",[u.PORTUGUESE]:"Portuguese",[u.GERMAN]:"German",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabic",[u.AZERI_LATIN]:"Azeri Latin",[u.BELARUSIAN]:"Belarusian",[u.BULGARIAN]:"Bulgarian",[u.BOSNIAN]:"Bosnian",[u.CATALAN]:"Catalan",[u.CZECH]:"Czech",[u.WELSH]:"Welsh",[u.DANISH]:"Danish",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greek",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonian",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnish",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galician",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebrew",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croatian",[u.HUNGARIAN]:"Hungarian",[u.ARMENIAN]:"Armenian",[u.INDONESIAN]:"Indonesian",[u.ICELANDIC]:"Icelandic",[u.ITALIAN]:"Italian",[u.JAPANESE]:"Japanese",[u.GEORGIAN]:"Georgian",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Korean",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kyrgyz",[u.LITHUANIAN]:"Lithuanian",[u.LATVIAN]:"Latvian",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Macedonian",[u.MONGOLIAN]:"Mongolian",[u.MARATHI]:"Marathi",[u.MALAY]:"Malay",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[u.DUTCH]:"Dutch",[u.NORTHERN_SOTHO]:"Northern Sotho",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polish",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Romanian",[u.RUSSIAN]:"Russian",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami Northern",[u.SLOVAK]:"Slovak",[u.SLOVENIAN]:"Slovenian",[u.ALBANIAN]:"Albanian",[u.SERBIAN_LATIN]:"Serbian Latin",[u.SWEDISH]:"Swedish",[u.SWEDISH_FINLAND]:"Swedish (Finland)",[u.SWEDISH_SWEDEN]:"Swedish (Sweden)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriac",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turkish",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainian",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbek Latin",[u.VIETNAMESE]:"Vietnamese",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinese",[u.CHINESE_SIMPLIFIED]:"Chinese Simplified",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[u.CHINESE_TRADITIONAL]:"Chinese Traditional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[u.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[u.ARABIC_ALGERIA]:"Arabic (Algeria)",[u.ARABIC_EGYPT]:"Arabic (Egypt)",[u.ARABIC_IRAQ]:"Arabic (Iraq)",[u.ARABIC_JORDAN]:"Arabic (Jordan)",[u.ARABIC_KUWAIT]:"Arabic (Kuwait)",[u.ARABIC_LEBANON]:"Arabic (Lebanon)",[u.ARABIC_LIBYA]:"Arabic (Libya)",[u.ARABIC_MOROCCO]:"Arabic (Morocco)",[u.ARABIC_OMAN]:"Arabic (Oman)",[u.ARABIC_QATAR]:"Arabic (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[u.ARABIC_SYRIA]:"Arabic (Syria)",[u.ARABIC_TUNISIA]:"Arabic (Tunisia)",[u.ARABIC_YEMEN]:"Arabic (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[u.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[u.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[u.CATALAN_SPAIN]:"Catalan (Spain)",[u.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[u.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[u.DANISH_DENMARK]:"Danish (Denmark)",[u.GERMAN_AUSTRIA]:"German (Austria)",[u.GERMAN_SWITZERLAND]:"German (Switzerland)",[u.GERMAN_GERMANY]:"German (Germany)",[u.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Greek (Greece)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spanish (Argentina)",[u.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[u.SPANISH_CHILE]:"Spanish (Chile)",[u.SPANISH_COLOMBIA]:"Spanish (Colombia)",[u.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[u.SPANISH_ECUADOR]:"Spanish (Ecuador)",[u.SPANISH_SPAIN]:"Spanish (Spain)",[u.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[u.SPANISH_HONDURAS]:"Spanish (Honduras)",[u.SPANISH_MEXICO]:"Spanish (Mexico)",[u.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[u.SPANISH_PANAMA]:"Spanish (Panama)",[u.SPANISH_PERU]:"Spanish (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[u.SPANISH_URUGUAY]:"Spanish (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[u.BASQUE_SPAIN]:"Basque (Spain)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnish (Finland)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[u.FRENCH_BELGIUM]:"French (Belgium)",[u.FRENCH_CANADA]:"French (Canada)",[u.FRENCH_SWITZERLAND]:"French (Switzerland)",[u.FRENCH_FRANCE]:"French (France)",[u.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[u.GALICIAN_SPAIN]:"Galician (Spain)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebrew (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[u.CROATIAN_CROATIA]:"Croatian (Croatia)",[u.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[u.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[u.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[u.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[u.ITALIAN_ITALY]:"Italian (Italy)",[u.JAPANESE_JAPAN]:"Japanese (Japan)",[u.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Korean (Korea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[u.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[u.LATVIAN_LATVIA]:"Latvian (Latvia)",[u.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malay (Malaysia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[u.DUTCH_BELGIUM]:"Dutch (Belgium)",[u.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polish (Poland)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[u.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Romanian (Romania)",[u.RUSSIAN_RUSSIA]:"Russian (Russia)",[u.SANSKRIT_INDIA]:"Sanskrit (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[u.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[u.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[u.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[u.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanian (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriac (Syria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[u.TURKISH_TURKEY]:"Turkish (Turkey)",[u.TATAR_RUSSIA]:"Tatar (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[u.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[u.CHINESE_MACAU]:"Chinese (Macau)",[u.CHINESE_SINGAPORE]:"Chinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Vt={[u.ENGLISH]:"Inglés",[u.FRENCH]:"Francés",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Portugués",[u.GERMAN]:"Alemán",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azerí Latín",[u.BELARUSIAN]:"Bielorruso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bosnio",[u.CATALAN]:"Catalán",[u.CZECH]:"Checo",[u.WELSH]:"Galés",[u.DANISH]:"Danés",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonio",[u.BASQUE]:"Vasco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finés",[u.FAROESE]:"Feroés",[u.GALICIAN]:"Gallego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebreo",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armenio",[u.INDONESIAN]:"Indonesio",[u.ICELANDIC]:"Islandés",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonés",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazajo",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirguís",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letón",[u.MAORI]:"Maorí",[u.FYRO_MACEDONIAN]:"Macedonio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malayo",[u.MALTESE]:"Maltés",[u.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[u.DUTCH]:"Neerlandés",[u.NORTHERN_SOTHO]:"Sotho del Norte",[u.PUNJABI]:"Panyabí",[u.POLISH]:"Polaco",[u.PASHTO]:"Pastún",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumano",[u.RUSSIAN]:"Ruso",[u.SANSKRIT]:"Sánscrito",[u.SAMI_NORTHERN]:"Sami del Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanés",[u.SERBIAN_LATIN]:"Serbio Latín",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlandia)",[u.SWEDISH_SWEDEN]:"Sueco (Suecia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandés",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latín",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chino",[u.CHINESE_SIMPLIFIED]:"Chino Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chino Tradicional",[u.ZULU]:"Zulú",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Baréin)",[u.ARABIC_ALGERIA]:"Árabe (Argelia)",[u.ARABIC_EGYPT]:"Árabe (Egipto)",[u.ARABIC_IRAQ]:"Árabe (Irak)",[u.ARABIC_JORDAN]:"Árabe (Jordania)",[u.ARABIC_KUWAIT]:"Árabe (Kuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Libia)",[u.ARABIC_MOROCCO]:"Árabe (Marruecos)",[u.ARABIC_OMAN]:"Árabe (Omán)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Siria)",[u.ARABIC_TUNISIA]:"Árabe (Túnez)",[u.ARABIC_YEMEN]:"Árabe (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[u.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[u.CATALAN_SPAIN]:"Catalán (España)",[u.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[u.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[u.DANISH_DENMARK]:"Danés (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemán (Austria)",[u.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[u.GERMAN_GERMANY]:"Alemán (Alemania)",[u.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Griego (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[u.ENGLISH_BELIZE]:"Inglés (Belice)",[u.ENGLISH_CANADA]:"Inglés (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglés (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[u.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[u.BASQUE_SPAIN]:"Vasco (España)",[u.FARSI_IRAN]:"Farsi (Irán)",[u.FINNISH_FINLAND]:"Finés (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[u.FRENCH_BELGIUM]:"Francés (Bélgica)",[u.FRENCH_CANADA]:"Francés (Canadá)",[u.FRENCH_SWITZERLAND]:"Francés (Suiza)",[u.FRENCH_FRANCE]:"Francés (Francia)",[u.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[u.GALICIAN_SPAIN]:"Gallego (España)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebreo (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croacia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[u.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandés (Islandia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Japonés (Japón)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Letón (Letonia)",[u.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[u.MALAY_MALAYSIA]:"Malayo (Malasia)",[u.MALTESE_MALTA]:"Maltés (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[u.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[u.PUNJABI_INDIA]:"Panyabí (India)",[u.POLISH_POLAND]:"Polaco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[u.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perú)",[u.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[u.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[u.SANSKRIT_INDIA]:"Sánscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[u.ALBANIAN_ALBANIA]:"Albanés (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenia)",[u.SYRIAC_SYRIA]:"Siríaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Tailandés (Tailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[u.TURKISH_TURKEY]:"Turco (Turquía)",[u.TATAR_RUSSIA]:"Tártaro (Rusia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[u.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[u.CHINESE_MACAU]:"Chino (Macao)",[u.CHINESE_SINGAPORE]:"Chino (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},ra={[u.ENGLISH]:"Anglais",[u.FRENCH]:"Français",[u.SPANISH]:"Espagnol",[u.PORTUGUESE]:"Portugais",[u.GERMAN]:"Allemand",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabe",[u.AZERI_LATIN]:"Azéri Latin",[u.BELARUSIAN]:"Biélorusse",[u.BULGARIAN]:"Bulgare",[u.BOSNIAN]:"Bosniaque",[u.CATALAN]:"Catalan",[u.CZECH]:"Tchèque",[u.WELSH]:"Gallois",[u.DANISH]:"Danois",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grec",[u.ESPERANTO]:"Espéranto",[u.ESTONIAN]:"Estonien",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnois",[u.FAROESE]:"Féroïen",[u.GALICIAN]:"Galicien",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hébreu",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croate",[u.HUNGARIAN]:"Hongrois",[u.ARMENIAN]:"Arménien",[u.INDONESIAN]:"Indonésien",[u.ICELANDIC]:"Islandais",[u.ITALIAN]:"Italien",[u.JAPANESE]:"Japonais",[u.GEORGIAN]:"Géorgien",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coréen",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghize",[u.LITHUANIAN]:"Lituanien",[u.LATVIAN]:"Letton",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macédonien FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malais",[u.MALTESE]:"Maltais",[u.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[u.DUTCH]:"Néerlandais",[u.NORTHERN_SOTHO]:"Sotho du Nord",[u.PUNJABI]:"Pendjabi",[u.POLISH]:"Polonais",[u.PASHTO]:"Pachto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Roumain",[u.RUSSIAN]:"Russe",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami du Nord",[u.SLOVAK]:"Slovaque",[u.SLOVENIAN]:"Slovène",[u.ALBANIAN]:"Albanais",[u.SERBIAN_LATIN]:"Serbe Latin",[u.SWEDISH]:"Suédois",[u.SWEDISH_FINLAND]:"Suédois (Finlande)",[u.SWEDISH_SWEDEN]:"Suédois (Suède)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriaque",[u.TAMIL]:"Tamoul",[u.TELUGU]:"Télougou",[u.THAI]:"Thaï",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turc",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainien",[u.URDU]:"Ourdou",[u.UZBEK_LATIN]:"Ouzbek Latin",[u.VIETNAMESE]:"Vietnamien",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinois",[u.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[u.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[u.ZULU]:"Zoulou",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[u.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[u.ARABIC_ALGERIA]:"Arabe (Algérie)",[u.ARABIC_EGYPT]:"Arabe (Égypte)",[u.ARABIC_IRAQ]:"Arabe (Irak)",[u.ARABIC_JORDAN]:"Arabe (Jordanie)",[u.ARABIC_KUWAIT]:"Arabe (Koweït)",[u.ARABIC_LEBANON]:"Arabe (Liban)",[u.ARABIC_LIBYA]:"Arabe (Libye)",[u.ARABIC_MOROCCO]:"Arabe (Maroc)",[u.ARABIC_OMAN]:"Arabe (Oman)",[u.ARABIC_QATAR]:"Arabe (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[u.ARABIC_SYRIA]:"Arabe (Syrie)",[u.ARABIC_TUNISIA]:"Arabe (Tunisie)",[u.ARABIC_YEMEN]:"Arabe (Yémen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[u.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[u.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[u.CATALAN_SPAIN]:"Catalan (Espagne)",[u.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[u.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[u.DANISH_DENMARK]:"Danois (Danemark)",[u.GERMAN_AUSTRIA]:"Allemand (Autriche)",[u.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[u.GERMAN_GERMANY]:"Allemand (Allemagne)",[u.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Grec (Grèce)",[u.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[u.ENGLISH_BELIZE]:"Anglais (Belize)",[u.ENGLISH_CANADA]:"Anglais (Canada)",[u.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[u.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[u.ENGLISH_IRELAND]:"Anglais (Irlande)",[u.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[u.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[u.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[u.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[u.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[u.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[u.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[u.SPANISH_CHILE]:"Espagnol (Chili)",[u.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[u.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[u.SPANISH_ECUADOR]:"Espagnol (Équateur)",[u.SPANISH_SPAIN]:"Espagnol (Espagne)",[u.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[u.SPANISH_HONDURAS]:"Espagnol (Honduras)",[u.SPANISH_MEXICO]:"Espagnol (Mexique)",[u.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[u.SPANISH_PANAMA]:"Espagnol (Panama)",[u.SPANISH_PERU]:"Espagnol (Pérou)",[u.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[u.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[u.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[u.BASQUE_SPAIN]:"Basque (Espagne)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnois (Finlande)",[u.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[u.GALICIAN_SPAIN]:"Galicien (Espagne)",[u.GUJARATI_INDIA]:"Gujarati (Inde)",[u.HEBREW_ISRAEL]:"Hébreu (Israël)",[u.HINDI_INDIA]:"Hindi (Inde)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[u.CROATIAN_CROATIA]:"Croate (Croatie)",[u.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[u.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[u.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[u.ICELANDIC_ICELAND]:"Islandais (Islande)",[u.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[u.ITALIAN_ITALY]:"Italien (Italie)",[u.JAPANESE_JAPAN]:"Japonais (Japon)",[u.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (Inde)",[u.KOREAN_KOREA]:"Coréen (Corée)",[u.KONKANI_INDIA]:"Konkani (Inde)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[u.LATVIAN_LATVIA]:"Letton (Lettonie)",[u.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[u.MARATHI_INDIA]:"Marathi (Inde)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malais (Malaisie)",[u.MALTESE_MALTA]:"Maltais (Malte)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[u.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[u.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[u.PUNJABI_INDIA]:"Pendjabi (Inde)",[u.POLISH_POLAND]:"Polonais (Pologne)",[u.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[u.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[u.QUECHUA_ECUADOR]:"Quechua (Équateur)",[u.QUECHUA_PERU]:"Quechua (Pérou)",[u.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[u.RUSSIAN_RUSSIA]:"Russe (Russie)",[u.SANSKRIT_INDIA]:"Sanskrit (Inde)",[u.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[u.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[u.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[u.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[u.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[u.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriaque (Syrie)",[u.TAMIL_INDIA]:"Tamoul (Inde)",[u.TELUGU_INDIA]:"Télougou (Inde)",[u.THAI_THAILAND]:"Thaï (Thaïlande)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[u.TURKISH_TURKEY]:"Turc (Turquie)",[u.TATAR_RUSSIA]:"Tatar (Russie)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[u.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[u.CHINESE_MACAU]:"Chinois (Macao)",[u.CHINESE_SINGAPORE]:"Chinois (Singapour)",[u.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},gF={[u.ENGLISH]:"अंग्रेज़ी",[u.FRENCH]:"फ़्रेंच",[u.SPANISH]:"स्पेनिश",[u.PORTUGUESE]:"पुर्तगाली",[u.GERMAN]:"जर्मन",[u.AFRIKAANS]:"आफ्रिकान्स",[u.ARABIC]:"अरबी",[u.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[u.BELARUSIAN]:"बेलारूसी",[u.BULGARIAN]:"बुल्गारियाई",[u.BOSNIAN]:"बोस्नियाई",[u.CATALAN]:"कातालान",[u.CZECH]:"चेक",[u.WELSH]:"वेल्श",[u.DANISH]:"डेनिश",[u.DIVEHI]:"डिवेही",[u.GREEK]:"यूनानी",[u.ESPERANTO]:"एस्पेरांतो",[u.ESTONIAN]:"एस्टोनियाई",[u.BASQUE]:"बास्क",[u.FARSI]:"फ़ारसी",[u.FINNISH]:"फिनिश",[u.FAROESE]:"फ़ेरोश",[u.GALICIAN]:"गैलिशियन",[u.GUJARATI]:"गुजराती",[u.HEBREW]:"हिब्रू",[u.HINDI]:"हिंदी",[u.CROATIAN]:"क्रोएशियाई",[u.HUNGARIAN]:"हंगेरियाई",[u.ARMENIAN]:"आर्मेनियाई",[u.INDONESIAN]:"इंडोनेशियाई",[u.ICELANDIC]:"आइसलैंडिक",[u.ITALIAN]:"इटालियन",[u.JAPANESE]:"जापानी",[u.GEORGIAN]:"जॉर्जियाई",[u.KAZAKH]:"कज़ाख",[u.KANNADA]:"कन्नड़",[u.KOREAN]:"कोरियाई",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"किरगिज़",[u.LITHUANIAN]:"लिथुआनियाई",[u.LATVIAN]:"लातवियाई",[u.MAORI]:"माओरी",[u.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[u.MONGOLIAN]:"मंगोलियाई",[u.MARATHI]:"मराठी",[u.MALAY]:"मलय",[u.MALTESE]:"माल्टीज़",[u.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[u.DUTCH]:"डच",[u.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[u.PUNJABI]:"पंजाबी",[u.POLISH]:"पोलिश",[u.PASHTO]:"पश्तो",[u.QUECHUA]:"क्वेचुआ",[u.ROMANIAN]:"रोमानियाई",[u.RUSSIAN]:"रूसी",[u.SANSKRIT]:"संस्कृत",[u.SAMI_NORTHERN]:"सामी (उत्तर)",[u.SLOVAK]:"स्लोवाक",[u.SLOVENIAN]:"स्लोवेनियाई",[u.ALBANIAN]:"अल्बानियाई",[u.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[u.SWEDISH]:"स्वीडिश",[u.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[u.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[u.SWAHILI]:"स्वाहिली",[u.SYRIAC]:"सीरियाई",[u.TAMIL]:"तमिल",[u.TELUGU]:"तेलुगू",[u.THAI]:"थाई",[u.TAGALOG]:"तागालोग",[u.TSWANA]:"त्सवाना",[u.TURKISH]:"तुर्की",[u.TATAR]:"तातार",[u.UKRAINIAN]:"यूक्रेनी",[u.URDU]:"उर्दू",[u.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[u.VIETNAMESE]:"वियतनामी",[u.XHOSA]:"कोसा",[u.CHINESE]:"चीनी",[u.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[u.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[u.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[u.ZULU]:"ज़ुलू",[u.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[u.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[u.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[u.ARABIC_EGYPT]:"अरबी (मिस्र)",[u.ARABIC_IRAQ]:"अरबी (इराक)",[u.ARABIC_JORDAN]:"अरबी (जोर्डन)",[u.ARABIC_KUWAIT]:"अरबी (कुवैत)",[u.ARABIC_LEBANON]:"अरबी (लेबनान)",[u.ARABIC_LIBYA]:"अरबी (लीबिया)",[u.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[u.ARABIC_OMAN]:"अरबी (ओमान)",[u.ARABIC_QATAR]:"अरबी (कतार)",[u.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[u.ARABIC_SYRIA]:"अरबी (सीरिया)",[u.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[u.ARABIC_YEMEN]:"अरबी (यमन)",[u.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[u.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[u.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[u.CATALAN_SPAIN]:"कातालान (स्पेन)",[u.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[u.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[u.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[u.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[u.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[u.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[u.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[u.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[u.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[u.GREEK_GREECE]:"यूनानी (ग्रीस)",[u.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[u.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[u.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[u.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[u.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[u.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[u.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[u.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[u.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[u.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[u.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[u.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[u.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[u.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[u.SPANISH_CHILE]:"स्पेनिश (चिली)",[u.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[u.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[u.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[u.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[u.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[u.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[u.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[u.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[u.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[u.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[u.SPANISH_PERU]:"स्पेनिश (पेरू)",[u.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[u.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[u.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[u.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[u.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[u.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[u.BASQUE_SPAIN]:"बास्क (स्पेन)",[u.FARSI_IRAN]:"फ़ारसी (ईरान)",[u.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[u.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[u.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[u.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[u.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[u.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[u.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[u.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[u.GUJARATI_INDIA]:"गुजराती (भारत)",[u.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[u.HINDI_INDIA]:"हिंदी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[u.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[u.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[u.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[u.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[u.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[u.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[u.ITALIAN_ITALY]:"इटालियन (इटली)",[u.JAPANESE_JAPAN]:"जापानी (जापान)",[u.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[u.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[u.KANNADA_INDIA]:"कन्नड़ (भारत)",[u.KOREAN_KOREA]:"कोरियाई (कोरिया)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[u.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[u.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[u.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[u.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[u.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[u.MALAY_MALAYSIA]:"मलय (मलेशिया)",[u.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[u.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[u.DUTCH_BELGIUM]:"डच (बेल्जियम)",[u.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[u.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[u.PUNJABI_INDIA]:"पंजाबी (भारत)",[u.POLISH_POLAND]:"पोलिश (पोलैंड)",[u.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[u.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[u.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[u.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[u.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[u.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[u.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[u.RUSSIAN_RUSSIA]:"रूसी (रूस)",[u.SANSKRIT_INDIA]:"संस्कृत (भारत)",[u.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[u.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[u.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[u.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[u.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[u.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[u.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[u.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[u.TAMIL_INDIA]:"तमिल (भारत)",[u.TELUGU_INDIA]:"तेलुगू (भारत)",[u.THAI_THAILAND]:"थाई (थाईलैंड)",[u.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[u.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[u.TURKISH_TURKEY]:"तुर्की (तुर्की)",[u.TATAR_RUSSIA]:"तातार (रूस)",[u.TSOGA]:"त्सोगा",[u.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[u.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[u.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[u.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[u.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[u.CHINESE_MACAU]:"चीनी (मकाऊ)",[u.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[u.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},ym={[u.ENGLISH]:"Inglese",[u.FRENCH]:"Francese",[u.SPANISH]:"Spagnolo",[u.PORTUGUESE]:"Portoghese",[u.GERMAN]:"Tedesco",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabo",[u.AZERI_LATIN]:"Azerbaigiano Latino",[u.BELARUSIAN]:"Bielorusso",[u.BULGARIAN]:"Bulgaro",[u.BOSNIAN]:"Bosniaco",[u.CATALAN]:"Catalano",[u.CZECH]:"Ceco",[u.WELSH]:"Gallese",[u.DANISH]:"Danese",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greco",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estone",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandese",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galiziano",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Ebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croato",[u.HUNGARIAN]:"Ungherese",[u.ARMENIAN]:"Armeno",[u.INDONESIAN]:"Indonesiano",[u.ICELANDIC]:"Islandese",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Giapponese",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazako",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghiso",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Lettone",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedone FYRO",[u.MONGOLIAN]:"Mongolo",[u.MARATHI]:"Marathi",[u.MALAY]:"Malese",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[u.DUTCH]:"Olandese",[u.NORTHERN_SOTHO]:"Sotho del Nord",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polacco",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sanscrito",[u.SAMI_NORTHERN]:"Sami del Nord",[u.SLOVAK]:"Slovacco",[u.SLOVENIAN]:"Sloveno",[u.ALBANIAN]:"Albanese",[u.SERBIAN_LATIN]:"Serbo Latino",[u.SWEDISH]:"Svedese",[u.SWEDISH_FINLAND]:"Svedese (Finlandia)",[u.SWEDISH_SWEDEN]:"Svedese (Svezia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siriaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tataro",[u.UKRAINIAN]:"Ucraino",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latino",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Cinese",[u.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[u.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[u.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[u.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[u.ARABIC_ALGERIA]:"Arabo (Algeria)",[u.ARABIC_EGYPT]:"Arabo (Egitto)",[u.ARABIC_IRAQ]:"Arabo (Iraq)",[u.ARABIC_JORDAN]:"Arabo (Giordania)",[u.ARABIC_KUWAIT]:"Arabo (Kuwait)",[u.ARABIC_LEBANON]:"Arabo (Libano)",[u.ARABIC_LIBYA]:"Arabo (Libia)",[u.ARABIC_MOROCCO]:"Arabo (Marocco)",[u.ARABIC_OMAN]:"Arabo (Oman)",[u.ARABIC_QATAR]:"Arabo (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[u.ARABIC_SYRIA]:"Arabo (Siria)",[u.ARABIC_TUNISIA]:"Arabo (Tunisia)",[u.ARABIC_YEMEN]:"Arabo (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[u.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[u.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[u.CATALAN_SPAIN]:"Catalano (Spagna)",[u.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[u.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[u.DANISH_DENMARK]:"Danese (Danimarca)",[u.GERMAN_AUSTRIA]:"Tedesco (Austria)",[u.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[u.GERMAN_GERMANY]:"Tedesco (Germania)",[u.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldive)",[u.GREEK_GREECE]:"Greco (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[u.ENGLISH_BELIZE]:"Inglese (Belize)",[u.ENGLISH_CANADA]:"Inglese (Canada)",[u.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[u.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[u.ENGLISH_IRELAND]:"Inglese (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[u.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[u.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[u.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[u.SPANISH_CHILE]:"Spagnolo (Cile)",[u.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[u.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[u.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[u.SPANISH_SPAIN]:"Spagnolo (Spagna)",[u.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[u.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[u.SPANISH_MEXICO]:"Spagnolo (Messico)",[u.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[u.SPANISH_PANAMA]:"Spagnolo (Panama)",[u.SPANISH_PERU]:"Spagnolo (Perù)",[u.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[u.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[u.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[u.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estone (Estonia)",[u.BASQUE_SPAIN]:"Basco (Spagna)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finlandese (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[u.FRENCH_BELGIUM]:"Francese (Belgio)",[u.FRENCH_CANADA]:"Francese (Canada)",[u.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[u.FRENCH_FRANCE]:"Francese (Francia)",[u.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[u.GALICIAN_SPAIN]:"Galiziano (Spagna)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Ebraico (Israele)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[u.CROATIAN_CROATIA]:"Croato (Croazia)",[u.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[u.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandese (Islanda)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Giapponese (Giappone)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Lettone (Lettonia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malese (Malesia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[u.DUTCH_BELGIUM]:"Olandese (Belgio)",[u.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polacco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[u.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perù)",[u.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[u.RUSSIAN_RUSSIA]:"Russo (Russia)",[u.SANSKRIT_INDIA]:"Sanscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[u.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[u.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanese (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Siriaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[u.TURKISH_TURKEY]:"Turco (Turchia)",[u.TATAR_RUSSIA]:"Tataro (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[u.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[u.CHINESE_MACAU]:"Cinese (Macao)",[u.CHINESE_SINGAPORE]:"Cinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},wS={[u.ENGLISH]:"英語",[u.FRENCH]:"フランス語",[u.SPANISH]:"スペイン語",[u.PORTUGUESE]:"ポルトガル語",[u.GERMAN]:"ドイツ語",[u.AFRIKAANS]:"アフリカーンス語",[u.ARABIC]:"アラビア語",[u.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[u.BELARUSIAN]:"ベラルーシ語",[u.BULGARIAN]:"ブルガリア語",[u.BOSNIAN]:"ボスニア語",[u.CATALAN]:"カタルーニャ語",[u.CZECH]:"チェコ語",[u.WELSH]:"ウェールズ語",[u.DANISH]:"デンマーク語",[u.DIVEHI]:"ディヴェヒ語",[u.GREEK]:"ギリシャ語",[u.ESPERANTO]:"エスペラント語",[u.ESTONIAN]:"エストニア語",[u.BASQUE]:"バスク語",[u.FARSI]:"ペルシア語",[u.FINNISH]:"フィンランド語",[u.FAROESE]:"フェロー語",[u.GALICIAN]:"ガリシア語",[u.GUJARATI]:"グジャラート語",[u.HEBREW]:"ヘブライ語",[u.HINDI]:"ヒンディー語",[u.CROATIAN]:"クロアチア語",[u.HUNGARIAN]:"ハンガリー語",[u.ARMENIAN]:"アルメニア語",[u.INDONESIAN]:"インドネシア語",[u.ICELANDIC]:"アイスランド語",[u.ITALIAN]:"イタリア語",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ジョージア語",[u.KAZAKH]:"カザフ語",[u.KANNADA]:"カンナダ語",[u.KOREAN]:"韓国語",[u.KONKANI]:"コンカニ語",[u.KYRGYZ]:"キルギス語",[u.LITHUANIAN]:"リトアニア語",[u.LATVIAN]:"ラトビア語",[u.MAORI]:"マオリ語",[u.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[u.MONGOLIAN]:"モンゴル語",[u.MARATHI]:"マラーティー語",[u.MALAY]:"マレー語",[u.MALTESE]:"マルタ語",[u.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[u.DUTCH]:"オランダ語",[u.NORTHERN_SOTHO]:"ノーザンソト語",[u.PUNJABI]:"パンジャブ語",[u.POLISH]:"ポーランド語",[u.PASHTO]:"パシュトー語",[u.QUECHUA]:"ケチュア語",[u.ROMANIAN]:"ルーマニア語",[u.RUSSIAN]:"ロシア語",[u.SANSKRIT]:"サンスクリット語",[u.SAMI_NORTHERN]:"サーミ語(北部)",[u.SLOVAK]:"スロバキア語",[u.SLOVENIAN]:"スロベニア語",[u.ALBANIAN]:"アルバニア語",[u.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[u.SWEDISH]:"スウェーデン語",[u.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[u.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[u.SWAHILI]:"スワヒリ語",[u.SYRIAC]:"シリア語",[u.TAMIL]:"タミル語",[u.TELUGU]:"テルグ語",[u.THAI]:"タイ語",[u.TAGALOG]:"タガログ語",[u.TSWANA]:"ツワナ語",[u.TURKISH]:"トルコ語",[u.TATAR]:"タタール語",[u.UKRAINIAN]:"ウクライナ語",[u.URDU]:"ウルドゥー語",[u.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[u.VIETNAMESE]:"ベトナム語",[u.XHOSA]:"コーサ語",[u.CHINESE]:"中国語",[u.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[u.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[u.CHINESE_TRADITIONAL]:"中国語(繁体字)",[u.ZULU]:"ズールー語",[u.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[u.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[u.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[u.ARABIC_EGYPT]:"アラビア語(エジプト)",[u.ARABIC_IRAQ]:"アラビア語(イラク)",[u.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[u.ARABIC_KUWAIT]:"アラビア語(クウェート)",[u.ARABIC_LEBANON]:"アラビア語(レバノン)",[u.ARABIC_LIBYA]:"アラビア語(リビア)",[u.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[u.ARABIC_OMAN]:"アラビア語(オマーン)",[u.ARABIC_QATAR]:"アラビア語(カタール)",[u.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[u.ARABIC_SYRIA]:"アラビア語(シリア)",[u.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[u.ARABIC_YEMEN]:"アラビア語(イエメン)",[u.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[u.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[u.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[u.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[u.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[u.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[u.DANISH_DENMARK]:"デンマーク語(デンマーク)",[u.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[u.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[u.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[u.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[u.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[u.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[u.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[u.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[u.ENGLISH_BELIZE]:"英語(ベリーズ)",[u.ENGLISH_CANADA]:"英語(カナダ)",[u.ENGLISH_CARIBBEAN]:"英語(カリブ)",[u.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[u.ENGLISH_IRELAND]:"英語(アイルランド)",[u.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[u.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[u.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[u.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[u.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[u.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[u.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[u.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[u.SPANISH_CHILE]:"スペイン語(チリ)",[u.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[u.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[u.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[u.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[u.SPANISH_SPAIN]:"スペイン語(スペイン)",[u.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[u.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[u.SPANISH_MEXICO]:"スペイン語(メキシコ)",[u.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[u.SPANISH_PANAMA]:"スペイン語(パナマ)",[u.SPANISH_PERU]:"スペイン語(ペルー)",[u.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[u.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[u.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[u.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[u.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[u.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[u.BASQUE_SPAIN]:"バスク語(スペイン)",[u.FARSI_IRAN]:"ペルシア語(イラン)",[u.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[u.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[u.FRENCH_BELGIUM]:"フランス語(ベルギー)",[u.FRENCH_CANADA]:"フランス語(カナダ)",[u.FRENCH_SWITZERLAND]:"フランス語(スイス)",[u.FRENCH_FRANCE]:"フランス語(フランス)",[u.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[u.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[u.GUJARATI_INDIA]:"グジャラート語(インド)",[u.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[u.HINDI_INDIA]:"ヒンディー語(インド)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[u.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[u.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[u.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[u.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[u.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[u.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[u.ITALIAN_ITALY]:"イタリア語(イタリア)",[u.JAPANESE_JAPAN]:"日本語(日本)",[u.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[u.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[u.KANNADA_INDIA]:"カンナダ語(インド)",[u.KOREAN_KOREA]:"韓国語(韓国)",[u.KONKANI_INDIA]:"コンカニ語(インド)",[u.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[u.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[u.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[u.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[u.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[u.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[u.MARATHI_INDIA]:"マラーティー語(インド)",[u.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[u.MALAY_MALAYSIA]:"マレー語(マレーシア)",[u.MALTESE_MALTA]:"マルタ語(マルタ)",[u.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[u.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[u.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[u.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[u.PUNJABI_INDIA]:"パンジャブ語(インド)",[u.POLISH_POLAND]:"ポーランド語(ポーランド)",[u.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[u.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[u.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[u.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[u.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[u.QUECHUA_PERU]:"ケチュア語(ペルー)",[u.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[u.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[u.SANSKRIT_INDIA]:"サンスクリット語(インド)",[u.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[u.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[u.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[u.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[u.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[u.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[u.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[u.SYRIAC_SYRIA]:"シリア語(シリア)",[u.TAMIL_INDIA]:"タミル語(インド)",[u.TELUGU_INDIA]:"テルグ語(インド)",[u.THAI_THAILAND]:"タイ語(タイ)",[u.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[u.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[u.TURKISH_TURKEY]:"トルコ語(トルコ)",[u.TATAR_RUSSIA]:"タタール語(ロシア)",[u.TSOGA]:"ツォガ語",[u.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[u.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[u.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[u.CHINESE_HONG_KONG]:"中国語(香港)",[u.CHINESE_MACAU]:"中国語(マカオ)",[u.CHINESE_SINGAPORE]:"中国語(シンガポール)",[u.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},MS={[u.ENGLISH]:"영어",[u.FRENCH]:"프랑스어",[u.SPANISH]:"스페인어",[u.PORTUGUESE]:"포르투갈어",[u.GERMAN]:"독일어",[u.AFRIKAANS]:"아프리칸스어",[u.ARABIC]:"아랍어",[u.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[u.BELARUSIAN]:"벨라루스어",[u.BULGARIAN]:"불가리아어",[u.BOSNIAN]:"보스니아어",[u.CATALAN]:"카탈루냐어",[u.CZECH]:"체코어",[u.WELSH]:"웨일스어",[u.DANISH]:"덴마크어",[u.DIVEHI]:"디베히어",[u.GREEK]:"그리스어",[u.ESPERANTO]:"에스페란토어",[u.ESTONIAN]:"에스토니아어",[u.BASQUE]:"바스크어",[u.FARSI]:"페르시아어",[u.FINNISH]:"핀란드어",[u.FAROESE]:"페로어",[u.GALICIAN]:"갈리시아어",[u.GUJARATI]:"구자라티어",[u.HEBREW]:"히브리어",[u.HINDI]:"힌디어",[u.CROATIAN]:"크로아티아어",[u.HUNGARIAN]:"헝가리어",[u.ARMENIAN]:"아르메니아어",[u.INDONESIAN]:"인도네시아어",[u.ICELANDIC]:"아이슬란드어",[u.ITALIAN]:"이탈리아어",[u.JAPANESE]:"일본어",[u.GEORGIAN]:"조지아어",[u.KAZAKH]:"카자흐어",[u.KANNADA]:"칸나다어",[u.KOREAN]:"한국어",[u.KONKANI]:"콩카니어",[u.KYRGYZ]:"키르기스어",[u.LITHUANIAN]:"리투아니아어",[u.LATVIAN]:"라트비아어",[u.MAORI]:"마오리어",[u.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[u.MONGOLIAN]:"몽골어",[u.MARATHI]:"마라티어",[u.MALAY]:"말레이어",[u.MALTESE]:"몰타어",[u.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[u.DUTCH]:"네덜란드어",[u.NORTHERN_SOTHO]:"북 소토어",[u.PUNJABI]:"펀자브어",[u.POLISH]:"폴란드어",[u.PASHTO]:"파슈토어",[u.QUECHUA]:"케추아어",[u.ROMANIAN]:"루마니아어",[u.RUSSIAN]:"러시아어",[u.SANSKRIT]:"산스크리트어",[u.SAMI_NORTHERN]:"사미어 (북부)",[u.SLOVAK]:"슬로바키아어",[u.SLOVENIAN]:"슬로베니아어",[u.ALBANIAN]:"알바니아어",[u.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[u.SWEDISH]:"스웨덴어",[u.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[u.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[u.SWAHILI]:"스와힐리어",[u.SYRIAC]:"시리아어",[u.TAMIL]:"타밀어",[u.TELUGU]:"텔루구어",[u.THAI]:"태국어",[u.TAGALOG]:"타갈로그어",[u.TSWANA]:"츠와나어",[u.TURKISH]:"터키어",[u.TATAR]:"타타르어",[u.UKRAINIAN]:"우크라이나어",[u.URDU]:"우르두어",[u.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[u.VIETNAMESE]:"베트남어",[u.XHOSA]:"코사어",[u.CHINESE]:"중국어",[u.CHINESE_SIMPLIFIED]:"중국어 (간체)",[u.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[u.CHINESE_TRADITIONAL]:"중국어 (번체)",[u.ZULU]:"줄루어",[u.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[u.ARABIC_BAHRAIN]:"아랍어 (바레인)",[u.ARABIC_ALGERIA]:"아랍어 (알제리)",[u.ARABIC_EGYPT]:"아랍어 (이집트)",[u.ARABIC_IRAQ]:"아랍어 (이라크)",[u.ARABIC_JORDAN]:"아랍어 (요르단)",[u.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[u.ARABIC_LEBANON]:"아랍어 (레바논)",[u.ARABIC_LIBYA]:"아랍어 (리비아)",[u.ARABIC_MOROCCO]:"아랍어 (모로코)",[u.ARABIC_OMAN]:"아랍어 (오만)",[u.ARABIC_QATAR]:"아랍어 (카타르)",[u.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[u.ARABIC_SYRIA]:"아랍어 (시리아)",[u.ARABIC_TUNISIA]:"아랍어 (튀니지)",[u.ARABIC_YEMEN]:"아랍어 (예멘)",[u.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[u.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[u.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[u.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[u.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[u.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[u.DANISH_DENMARK]:"덴마크어 (덴마크)",[u.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[u.GERMAN_SWITZERLAND]:"독일어 (스위스)",[u.GERMAN_GERMANY]:"독일어 (독일)",[u.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[u.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[u.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[u.GREEK_GREECE]:"그리스어 (그리스)",[u.ENGLISH_AUSTRALIA]:"영어 (호주)",[u.ENGLISH_BELIZE]:"영어 (벨리즈)",[u.ENGLISH_CANADA]:"영어 (캐나다)",[u.ENGLISH_CARIBBEAN]:"영어 (카리브)",[u.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[u.ENGLISH_IRELAND]:"영어 (아일랜드)",[u.ENGLISH_JAMAICA]:"영어 (자메이카)",[u.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[u.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[u.ENGLISH_UNITED_STATES]:"영어 (미국)",[u.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[u.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[u.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[u.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[u.SPANISH_CHILE]:"스페인어 (칠레)",[u.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[u.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[u.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[u.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[u.SPANISH_SPAIN]:"스페인어 (스페인)",[u.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[u.SPANISH_HONDURAS]:"스페인어 (온두라스)",[u.SPANISH_MEXICO]:"스페인어 (멕시코)",[u.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[u.SPANISH_PANAMA]:"스페인어 (파나마)",[u.SPANISH_PERU]:"스페인어 (페루)",[u.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[u.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[u.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[u.SPANISH_URUGUAY]:"스페인어 (우루과이)",[u.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[u.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[u.BASQUE_SPAIN]:"바스크어 (스페인)",[u.FARSI_IRAN]:"페르시아어 (이란)",[u.FINNISH_FINLAND]:"핀란드어 (핀란드)",[u.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[u.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[u.FRENCH_CANADA]:"프랑스어 (캐나다)",[u.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[u.FRENCH_FRANCE]:"프랑스어 (프랑스)",[u.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[u.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[u.GUJARATI_INDIA]:"구자라티어 (인도)",[u.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[u.HINDI_INDIA]:"힌디어 (인도)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[u.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[u.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[u.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[u.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[u.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[u.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[u.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[u.JAPANESE_JAPAN]:"일본어 (일본)",[u.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[u.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[u.KANNADA_INDIA]:"칸나다어 (인도)",[u.KOREAN_KOREA]:"한국어 (한국)",[u.KONKANI_INDIA]:"콩카니어 (인도)",[u.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[u.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[u.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[u.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[u.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[u.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[u.MARATHI_INDIA]:"마라티어 (인도)",[u.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[u.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[u.MALTESE_MALTA]:"몰타어 (몰타)",[u.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[u.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[u.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[u.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[u.PUNJABI_INDIA]:"펀자브어 (인도)",[u.POLISH_POLAND]:"폴란드어 (폴란드)",[u.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[u.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[u.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[u.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[u.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[u.QUECHUA_PERU]:"케추아어 (페루)",[u.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[u.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[u.SANSKRIT_INDIA]:"산스크리트어 (인도)",[u.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[u.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[u.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[u.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[u.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[u.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[u.SWAHILI_KENYA]:"스와힐리어 (케냐)",[u.SYRIAC_SYRIA]:"시리아어 (시리아)",[u.TAMIL_INDIA]:"타밀어 (인도)",[u.TELUGU_INDIA]:"텔루구어 (인도)",[u.THAI_THAILAND]:"태국어 (태국)",[u.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[u.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[u.TURKISH_TURKEY]:"터키어 (터키)",[u.TATAR_RUSSIA]:"타타르어 (러시아)",[u.TSOGA]:"츠오가어",[u.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[u.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[u.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[u.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[u.CHINESE_HONG_KONG]:"중국어 (홍콩)",[u.CHINESE_MACAU]:"중국어 (마카오)",[u.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[u.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},HS={[u.ENGLISH]:"English",[u.FRENCH]:"Français",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"العربية",[u.AZERI_LATIN]:"Azərbaycan",[u.BELARUSIAN]:"Беларуская",[u.BULGARIAN]:"Български",[u.BOSNIAN]:"Bosanski",[u.CATALAN]:"Català",[u.CZECH]:"Čeština",[u.WELSH]:"Cymraeg",[u.DANISH]:"Dansk",[u.DIVEHI]:"ދިވެހި",[u.GREEK]:"Ελληνικά",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Eesti",[u.BASQUE]:"Euskara",[u.FARSI]:"فارسی",[u.FINNISH]:"Suomi",[u.FAROESE]:"Føroyskt",[u.GALICIAN]:"Galego",[u.GUJARATI]:"ગુજરાતી",[u.HEBREW]:"עברית",[u.HINDI]:"हिन्दी",[u.CROATIAN]:"Hrvatski",[u.HUNGARIAN]:"Magyar",[u.ARMENIAN]:"Հայերեն",[u.INDONESIAN]:"Bahasa Indonesia",[u.ICELANDIC]:"Íslenska",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ქართული",[u.KAZAKH]:"Қазақ",[u.KANNADA]:"ಕನ್ನಡ",[u.KOREAN]:"한국어",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"Кыргыз",[u.LITHUANIAN]:"Lietuvių",[u.LATVIAN]:"Latviešu",[u.MAORI]:"Māori",[u.FYRO_MACEDONIAN]:"Македонски",[u.MONGOLIAN]:"Монгол",[u.MARATHI]:"मराठी",[u.MALAY]:"Bahasa Melayu",[u.MALTESE]:"Malti",[u.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[u.DUTCH]:"Nederlands",[u.NORTHERN_SOTHO]:"Sesotho sa Leboa",[u.PUNJABI]:"ਪੰਜਾਬੀ",[u.POLISH]:"Polski",[u.PASHTO]:"پښتو",[u.QUECHUA]:"Runasimi",[u.ROMANIAN]:"Română",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"संस्कृतम्",[u.SAMI_NORTHERN]:"Davvisámegiella",[u.SLOVAK]:"Slovenčina",[u.SLOVENIAN]:"Slovenščina",[u.ALBANIAN]:"Shqip",[u.SERBIAN_LATIN]:"Srpski",[u.SWEDISH]:"Svenska",[u.SWEDISH_FINLAND]:"Svenska (Finland)",[u.SWEDISH_SWEDEN]:"Svenska (Sverige)",[u.SWAHILI]:"Kiswahili",[u.SYRIAC]:"ܣܘܪܝܝܐ",[u.TAMIL]:"தமிழ்",[u.TELUGU]:"తెలుగు",[u.THAI]:"ไทย",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Setswana",[u.TURKISH]:"Türkçe",[u.TATAR]:"Xitsonga",[u.UKRAINIAN]:"Українська",[u.URDU]:"اردو",[u.UZBEK_LATIN]:"O‘zbekcha",[u.VIETNAMESE]:"Tiếng Việt",[u.XHOSA]:"isiXhosa",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"简体中文",[u.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[u.CHINESE_TRADITIONAL]:"繁體中文",[u.ZULU]:"isiZulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[u.ARABIC_BAHRAIN]:"العربية (البحرين)",[u.ARABIC_ALGERIA]:"العربية (الجزائر)",[u.ARABIC_EGYPT]:"العربية (مصر)",[u.ARABIC_IRAQ]:"العربية (العراق)",[u.ARABIC_JORDAN]:"العربية (الأردن)",[u.ARABIC_KUWAIT]:"العربية (الكويت)",[u.ARABIC_LEBANON]:"العربية (لبنان)",[u.ARABIC_LIBYA]:"العربية (ليبيا)",[u.ARABIC_MOROCCO]:"العربية (المغرب)",[u.ARABIC_OMAN]:"العربية (عمان)",[u.ARABIC_QATAR]:"العربية (قطر)",[u.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[u.ARABIC_SYRIA]:"العربية (سوريا)",[u.ARABIC_TUNISIA]:"العربية (تونس)",[u.ARABIC_YEMEN]:"العربية (اليمن)",[u.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[u.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[u.BULGARIAN_BULGARIA]:"Български (България)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[u.CATALAN_SPAIN]:"Català (Espanya)",[u.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[u.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[u.DANISH_DENMARK]:"Dansk (Danmark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[u.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[u.BASQUE_SPAIN]:"Euskara (Espainia)",[u.FARSI_IRAN]:"فارسی (ایران)",[u.FINNISH_FINLAND]:"Suomi (Suomi)",[u.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[u.GALICIAN_SPAIN]:"Galego (España)",[u.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[u.HEBREW_ISRAEL]:"עברית (ישראל)",[u.HINDI_INDIA]:"हिन्दी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[u.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[u.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[u.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[u.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[u.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"日本語 (日本)",[u.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[u.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[u.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[u.KOREAN_KOREA]:"한국어 (대한민국)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[u.LATVIAN_LATVIA]:"Latviešu (Latvija)",[u.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[u.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[u.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[u.MALTESE_MALTA]:"Malti (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[u.DUTCH_BELGIUM]:"Nederlands (België)",[u.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[u.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[u.POLISH_POLAND]:"Polski (Polska)",[u.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[u.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[u.QUECHUA_PERU]:"Runasimi (Perú)",[u.ROMANIAN_ROMANIA]:"Română (România)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[u.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[u.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[u.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[u.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[u.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[u.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[u.SWAHILI_KENYA]:"Kiswahili (Kenya)",[u.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[u.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[u.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[u.THAI_THAILAND]:"ไทย (ประเทศไทย)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[u.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[u.TURKISH_TURKEY]:"Türkçe (Türkiye)",[u.TATAR_RUSSIA]:"Татар (Россия)",[u.TSOGA]:"Xitsonga",[u.UKRAINIAN_UKRAINE]:"Українська (Україна)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[u.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[u.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[u.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[u.CHINESE_HONG_KONG]:"中文 (香港)",[u.CHINESE_MACAU]:"中文 (澳門)",[u.CHINESE_SINGAPORE]:"中文 (新加坡)",[u.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},vm={[u.ENGLISH]:"Inglês",[u.FRENCH]:"Francês",[u.SPANISH]:"Espanhol",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Alemão",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azeri Latim",[u.BELARUSIAN]:"Bielorrusso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bósnio",[u.CATALAN]:"Catalão",[u.CZECH]:"Tcheco",[u.WELSH]:"Galês",[u.DANISH]:"Dinamarquês",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estoniano",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandês",[u.FAROESE]:"Feroês",[u.GALICIAN]:"Galego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armênio",[u.INDONESIAN]:"Indonésio",[u.ICELANDIC]:"Islandês",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonês",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Cazaque",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Quirguiz",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letão",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedônio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaio",[u.MALTESE]:"Maltês",[u.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[u.DUTCH]:"Holandês",[u.NORTHERN_SOTHO]:"Sotho do Norte",[u.PUNJABI]:"Panjabi",[u.POLISH]:"Polonês",[u.PASHTO]:"Pastó",[u.QUECHUA]:"Quíchua",[u.ROMANIAN]:"Romeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sânscrito",[u.SAMI_NORTHERN]:"Sami do Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanês",[u.SERBIAN_LATIN]:"Sérvio Latino",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlândia)",[u.SWEDISH_SWEDEN]:"Sueco (Suécia)",[u.SWAHILI]:"Suaíli",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandês",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeque Latim",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinês",[u.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chinês Tradicional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[u.ARABIC_ALGERIA]:"Árabe (Argélia)",[u.ARABIC_EGYPT]:"Árabe (Egito)",[u.ARABIC_IRAQ]:"Árabe (Iraque)",[u.ARABIC_JORDAN]:"Árabe (Jordânia)",[u.ARABIC_KUWAIT]:"Árabe (Cuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Líbia)",[u.ARABIC_MOROCCO]:"Árabe (Marrocos)",[u.ARABIC_OMAN]:"Árabe (Omã)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Síria)",[u.ARABIC_TUNISIA]:"Árabe (Tunísia)",[u.ARABIC_YEMEN]:"Árabe (Iêmen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[u.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[u.CATALAN_SPAIN]:"Catalão (Espanha)",[u.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[u.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[u.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemão (Áustria)",[u.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[u.GERMAN_GERMANY]:"Alemão (Alemanha)",[u.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Grego (Grécia)",[u.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[u.ENGLISH_BELIZE]:"Inglês (Belize)",[u.ENGLISH_CANADA]:"Inglês (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglês (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[u.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[u.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[u.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[u.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[u.SPANISH_CHILE]:"Espanhol (Chile)",[u.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[u.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[u.SPANISH_ECUADOR]:"Espanhol (Equador)",[u.SPANISH_SPAIN]:"Espanhol (Espanha)",[u.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[u.SPANISH_HONDURAS]:"Espanhol (Honduras)",[u.SPANISH_MEXICO]:"Espanhol (México)",[u.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[u.SPANISH_PANAMA]:"Espanhol (Panamá)",[u.SPANISH_PERU]:"Espanhol (Peru)",[u.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[u.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[u.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[u.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[u.BASQUE_SPAIN]:"Basco (Espanha)",[u.FARSI_IRAN]:"Farsi (Irã)",[u.FINNISH_FINLAND]:"Finlandês (Finlândia)",[u.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[u.FRENCH_BELGIUM]:"Francês (Bélgica)",[u.FRENCH_CANADA]:"Francês (Canadá)",[u.FRENCH_SWITZERLAND]:"Francês (Suíça)",[u.FRENCH_FRANCE]:"Francês (França)",[u.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[u.GALICIAN_SPAIN]:"Galego (Espanha)",[u.GUJARATI_INDIA]:"Gujarati (Índia)",[u.HEBREW_ISRAEL]:"Hebraico (Israel)",[u.HINDI_INDIA]:"Hindi (Índia)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croácia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[u.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[u.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[u.ICELANDIC_ICELAND]:"Islandês (Islândia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[u.ITALIAN_ITALY]:"Italiano (Itália)",[u.JAPANESE_JAPAN]:"Japonês (Japão)",[u.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[u.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[u.KANNADA_INDIA]:"Kannada (Índia)",[u.KOREAN_KOREA]:"Coreano (Coreia)",[u.KONKANI_INDIA]:"Konkani (Índia)",[u.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[u.LATVIAN_LATVIA]:"Letão (Letônia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[u.MARATHI_INDIA]:"Marathi (Índia)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaio (Malásia)",[u.MALTESE_MALTA]:"Maltês (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Holandês (Bélgica)",[u.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[u.PUNJABI_INDIA]:"Panjabi (Índia)",[u.POLISH_POLAND]:"Polonês (Polônia)",[u.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[u.QUECHUA_ECUADOR]:"Quíchua (Equador)",[u.QUECHUA_PERU]:"Quíchua (Peru)",[u.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[u.RUSSIAN_RUSSIA]:"Russo (Rússia)",[u.SANSKRIT_INDIA]:"Sânscrito (Índia)",[u.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[u.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[u.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[u.SWAHILI_KENYA]:"Suaíli (Quênia)",[u.SYRIAC_SYRIA]:"Siríaco (Síria)",[u.TAMIL_INDIA]:"Tamil (Índia)",[u.TELUGU_INDIA]:"Telugu (Índia)",[u.THAI_THAILAND]:"Tailandês (Tailândia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[u.TURKISH_TURKEY]:"Turco (Turquia)",[u.TATAR_RUSSIA]:"Tártaro (Rússia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[u.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[u.CHINESE_MACAU]:"Chinês (Macau)",[u.CHINESE_SINGAPORE]:"Chinês (Singapura)",[u.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},PS={[u.ENGLISH]:"Английский",[u.FRENCH]:"Французский",[u.SPANISH]:"Испанский",[u.PORTUGUESE]:"Португальский",[u.GERMAN]:"Немецкий",[u.AFRIKAANS]:"Африкаанс",[u.ARABIC]:"Арабский",[u.AZERI_LATIN]:"Азербайджанский (латиница)",[u.BELARUSIAN]:"Белорусский",[u.BULGARIAN]:"Болгарский",[u.BOSNIAN]:"Боснийский",[u.CATALAN]:"Каталанский",[u.CZECH]:"Чешский",[u.WELSH]:"Уэльский",[u.DANISH]:"Датский",[u.DIVEHI]:"Дивехи",[u.GREEK]:"Греческий",[u.ESPERANTO]:"Эсперанто",[u.ESTONIAN]:"Эстонский",[u.BASQUE]:"Баскский",[u.FARSI]:"Персидский",[u.FINNISH]:"Финский",[u.FAROESE]:"Фарерский",[u.GALICIAN]:"Галисийский",[u.GUJARATI]:"Гуджарати",[u.HEBREW]:"Иврит",[u.HINDI]:"Хинди",[u.CROATIAN]:"Хорватский",[u.HUNGARIAN]:"Венгерский",[u.ARMENIAN]:"Армянский",[u.INDONESIAN]:"Индонезийский",[u.ICELANDIC]:"Исландский",[u.ITALIAN]:"Итальянский",[u.JAPANESE]:"Японский",[u.GEORGIAN]:"Грузинский",[u.KAZAKH]:"Казахский",[u.KANNADA]:"Каннада",[u.KOREAN]:"Корейский",[u.KONKANI]:"Конкани",[u.KYRGYZ]:"Кыргызский",[u.LITHUANIAN]:"Литовский",[u.LATVIAN]:"Латвийский",[u.MAORI]:"Маори",[u.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[u.MONGOLIAN]:"Монгольский",[u.MARATHI]:"Марати",[u.MALAY]:"Малайский",[u.MALTESE]:"Мальтийский",[u.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[u.DUTCH]:"Нидерландский",[u.NORTHERN_SOTHO]:"Сото северный",[u.PUNJABI]:"Панджаби",[u.POLISH]:"Польский",[u.PASHTO]:"Пушту",[u.QUECHUA]:"Кечуа",[u.ROMANIAN]:"Румынский",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"Санскрит",[u.SAMI_NORTHERN]:"Саамский северный",[u.SLOVAK]:"Словацкий",[u.SLOVENIAN]:"Словенский",[u.ALBANIAN]:"Албанский",[u.SERBIAN_LATIN]:"Сербский (латиница)",[u.SWEDISH]:"Шведский",[u.SWEDISH_FINLAND]:"Шведский (Финляндия)",[u.SWEDISH_SWEDEN]:"Шведский (Швеция)",[u.SWAHILI]:"Свахили",[u.SYRIAC]:"Сирийский",[u.TAMIL]:"Тамильский",[u.TELUGU]:"Телугу",[u.THAI]:"Тайский",[u.TAGALOG]:"Тагальский",[u.TSWANA]:"Цвана",[u.TURKISH]:"Турецкий",[u.TATAR]:"Татарский",[u.UKRAINIAN]:"Украинский",[u.URDU]:"Урду",[u.UZBEK_LATIN]:"Узбекский (латиница)",[u.VIETNAMESE]:"Вьетнамский",[u.XHOSA]:"Коса",[u.CHINESE]:"Китайский",[u.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[u.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[u.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[u.ZULU]:"Зулу",[u.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[u.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[u.ARABIC_ALGERIA]:"Арабский (Алжир)",[u.ARABIC_EGYPT]:"Арабский (Египет)",[u.ARABIC_IRAQ]:"Арабский (Ирак)",[u.ARABIC_JORDAN]:"Арабский (Иордания)",[u.ARABIC_KUWAIT]:"Арабский (Кувейт)",[u.ARABIC_LEBANON]:"Арабский (Ливан)",[u.ARABIC_LIBYA]:"Арабский (Ливия)",[u.ARABIC_MOROCCO]:"Арабский (Марокко)",[u.ARABIC_OMAN]:"Арабский (Оман)",[u.ARABIC_QATAR]:"Арабский (Катар)",[u.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[u.ARABIC_SYRIA]:"Арабский (Сирия)",[u.ARABIC_TUNISIA]:"Арабский (Тунис)",[u.ARABIC_YEMEN]:"Арабский (Йемен)",[u.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[u.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[u.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[u.CATALAN_SPAIN]:"Каталанский (Испания)",[u.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[u.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[u.DANISH_DENMARK]:"Датский (Дания)",[u.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[u.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[u.GERMAN_GERMANY]:"Немецкий (Германия)",[u.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[u.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[u.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[u.GREEK_GREECE]:"Греческий (Греция)",[u.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[u.ENGLISH_BELIZE]:"Английский (Белиз)",[u.ENGLISH_CANADA]:"Английский (Канада)",[u.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[u.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[u.ENGLISH_IRELAND]:"Английский (Ирландия)",[u.ENGLISH_JAMAICA]:"Английский (Ямайка)",[u.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[u.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[u.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[u.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[u.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[u.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[u.SPANISH_BOLIVIA]:"Испанский (Боливия)",[u.SPANISH_CHILE]:"Испанский (Чили)",[u.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[u.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[u.SPANISH_ECUADOR]:"Испанский (Эквадор)",[u.SPANISH_SPAIN]:"Испанский (Испания)",[u.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[u.SPANISH_HONDURAS]:"Испанский (Гондурас)",[u.SPANISH_MEXICO]:"Испанский (Мексика)",[u.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[u.SPANISH_PANAMA]:"Испанский (Панама)",[u.SPANISH_PERU]:"Испанский (Перу)",[u.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[u.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[u.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[u.SPANISH_URUGUAY]:"Испанский (Уругвай)",[u.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[u.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[u.BASQUE_SPAIN]:"Баскский (Испания)",[u.FARSI_IRAN]:"Персидский (Иран)",[u.FINNISH_FINLAND]:"Финский (Финляндия)",[u.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[u.FRENCH_BELGIUM]:"Французский (Бельгия)",[u.FRENCH_CANADA]:"Французский (Канада)",[u.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[u.FRENCH_FRANCE]:"Французский (Франция)",[u.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[u.GALICIAN_SPAIN]:"Галисийский (Испания)",[u.GUJARATI_INDIA]:"Гуджарати (Индия)",[u.HEBREW_ISRAEL]:"Иврит (Израиль)",[u.HINDI_INDIA]:"Хинди (Индия)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[u.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[u.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[u.ARMENIAN_ARMENIA]:"Армянский (Армения)",[u.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[u.ICELANDIC_ICELAND]:"Исландский (Исландия)",[u.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[u.ITALIAN_ITALY]:"Итальянский (Италия)",[u.JAPANESE_JAPAN]:"Японский (Япония)",[u.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[u.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[u.KANNADA_INDIA]:"Каннада (Индия)",[u.KOREAN_KOREA]:"Корейский (Корея)",[u.KONKANI_INDIA]:"Конкани (Индия)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[u.LATVIAN_LATVIA]:"Латвийский (Латвия)",[u.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[u.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[u.MARATHI_INDIA]:"Марати (Индия)",[u.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[u.MALAY_MALAYSIA]:"Малайский (Малайзия)",[u.MALTESE_MALTA]:"Мальтийский (Мальта)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[u.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[u.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[u.PUNJABI_INDIA]:"Панджаби (Индия)",[u.POLISH_POLAND]:"Польский (Польша)",[u.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[u.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[u.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[u.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[u.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[u.QUECHUA_PERU]:"Кечуа (Перу)",[u.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"Санскрит (Индия)",[u.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[u.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[u.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[u.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[u.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[u.ALBANIAN_ALBANIA]:"Албанский (Албания)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[u.SWAHILI_KENYA]:"Свахили (Кения)",[u.SYRIAC_SYRIA]:"Сирийский (Сирия)",[u.TAMIL_INDIA]:"Тамильский (Индия)",[u.TELUGU_INDIA]:"Телугу (Индия)",[u.THAI_THAILAND]:"Тайский (Таиланд)",[u.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[u.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[u.TURKISH_TURKEY]:"Турецкий (Турция)",[u.TATAR_RUSSIA]:"Татарский (Россия)",[u.TSOGA]:"Цога",[u.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[u.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[u.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[u.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[u.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[u.CHINESE_MACAU]:"Китайский (Макао)",[u.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[u.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},ua={[u.ENGLISH]:"英语",[u.FRENCH]:"法语",[u.SPANISH]:"西班牙语",[u.PORTUGUESE]:"葡萄牙语",[u.GERMAN]:"德语",[u.AFRIKAANS]:"南非荷兰语",[u.ARABIC]:"阿拉伯语",[u.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[u.BELARUSIAN]:"白俄罗斯语",[u.BULGARIAN]:"保加利亚语",[u.BOSNIAN]:"波斯尼亚语",[u.CATALAN]:"加泰罗尼亚语",[u.CZECH]:"捷克语",[u.WELSH]:"威尔士语",[u.DANISH]:"丹麦语",[u.DIVEHI]:"迪维希语",[u.GREEK]:"希腊语",[u.ESPERANTO]:"世界语",[u.ESTONIAN]:"爱沙尼亚语",[u.BASQUE]:"巴斯克语",[u.FARSI]:"波斯语",[u.FINNISH]:"芬兰语",[u.FAROESE]:"法罗语",[u.GALICIAN]:"加利西亚语",[u.GUJARATI]:"古吉拉特语",[u.HEBREW]:"希伯来语",[u.HINDI]:"印地语",[u.CROATIAN]:"克罗地亚语",[u.HUNGARIAN]:"匈牙利语",[u.ARMENIAN]:"亚美尼亚语",[u.INDONESIAN]:"印尼语",[u.ICELANDIC]:"冰岛语",[u.ITALIAN]:"意大利语",[u.JAPANESE]:"日语",[u.GEORGIAN]:"格鲁吉亚语",[u.KAZAKH]:"哈萨克语",[u.KANNADA]:"卡纳达语",[u.KOREAN]:"韩语",[u.KONKANI]:"孔卡尼语",[u.KYRGYZ]:"吉尔吉斯语",[u.LITHUANIAN]:"立陶宛语",[u.LATVIAN]:"拉脱维亚语",[u.MAORI]:"毛利语",[u.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[u.MONGOLIAN]:"蒙古语",[u.MARATHI]:"马拉地语",[u.MALAY]:"马来语",[u.MALTESE]:"马耳他语",[u.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[u.DUTCH]:"荷兰语",[u.NORTHERN_SOTHO]:"北索托语",[u.PUNJABI]:"旁遮普语",[u.POLISH]:"波兰语",[u.PASHTO]:"普什图语",[u.QUECHUA]:"克丘亚语",[u.ROMANIAN]:"罗马尼亚语",[u.RUSSIAN]:"俄语",[u.SANSKRIT]:"梵语",[u.SAMI_NORTHERN]:"北萨米语",[u.SLOVAK]:"斯洛伐克语",[u.SLOVENIAN]:"斯洛文尼亚语",[u.ALBANIAN]:"阿尔巴尼亚语",[u.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[u.SWEDISH]:"瑞典语",[u.SWEDISH_FINLAND]:"瑞典语(芬兰)",[u.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[u.SWAHILI]:"斯瓦希里语",[u.SYRIAC]:"叙利亚语",[u.TAMIL]:"泰米尔语",[u.TELUGU]:"泰卢固语",[u.THAI]:"泰语",[u.TAGALOG]:"他加禄语",[u.TSWANA]:"茨瓦纳语",[u.TURKISH]:"土耳其语",[u.TATAR]:"鞑靼语",[u.UKRAINIAN]:"乌克兰语",[u.URDU]:"乌尔都语",[u.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[u.VIETNAMESE]:"越南语",[u.XHOSA]:"科萨语",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"中文(简体)",[u.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[u.CHINESE_TRADITIONAL]:"中文(繁体)",[u.ZULU]:"祖鲁语",[u.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[u.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[u.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[u.ARABIC_EGYPT]:"阿拉伯语(埃及)",[u.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[u.ARABIC_JORDAN]:"阿拉伯语(约旦)",[u.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[u.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[u.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[u.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[u.ARABIC_OMAN]:"阿拉伯语(阿曼)",[u.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[u.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[u.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[u.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[u.ARABIC_YEMEN]:"阿拉伯语(也门)",[u.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[u.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[u.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[u.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[u.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[u.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[u.DANISH_DENMARK]:"丹麦语(丹麦)",[u.GERMAN_AUSTRIA]:"德语(奥地利)",[u.GERMAN_SWITZERLAND]:"德语(瑞士)",[u.GERMAN_GERMANY]:"德语(德国)",[u.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[u.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[u.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[u.GREEK_GREECE]:"希腊语(希腊)",[u.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[u.ENGLISH_BELIZE]:"英语(伯利兹)",[u.ENGLISH_CANADA]:"英语(加拿大)",[u.ENGLISH_CARIBBEAN]:"英语(加勒比)",[u.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[u.ENGLISH_IRELAND]:"英语(爱尔兰)",[u.ENGLISH_JAMAICA]:"英语(牙买加)",[u.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[u.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[u.ENGLISH_UNITED_STATES]:"英语(美国)",[u.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[u.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[u.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[u.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[u.SPANISH_CHILE]:"西班牙语(智利)",[u.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[u.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[u.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[u.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[u.SPANISH_SPAIN]:"西班牙语(西班牙)",[u.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[u.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[u.SPANISH_MEXICO]:"西班牙语(墨西哥)",[u.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[u.SPANISH_PANAMA]:"西班牙语(巴拿马)",[u.SPANISH_PERU]:"西班牙语(秘鲁)",[u.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[u.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[u.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[u.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[u.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[u.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[u.BASQUE_SPAIN]:"巴斯克语(西班牙)",[u.FARSI_IRAN]:"波斯语(伊朗)",[u.FINNISH_FINLAND]:"芬兰语(芬兰)",[u.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[u.FRENCH_BELGIUM]:"法语(比利时)",[u.FRENCH_CANADA]:"法语(加拿大)",[u.FRENCH_SWITZERLAND]:"法语(瑞士)",[u.FRENCH_FRANCE]:"法语(法国)",[u.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[u.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[u.GUJARATI_INDIA]:"古吉拉特语(印度)",[u.HEBREW_ISRAEL]:"希伯来语(以色列)",[u.HINDI_INDIA]:"印地语(印度)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[u.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[u.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[u.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[u.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[u.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[u.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[u.ITALIAN_ITALY]:"意大利语(意大利)",[u.JAPANESE_JAPAN]:"日语(日本)",[u.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[u.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[u.KANNADA_INDIA]:"卡纳达语(印度)",[u.KOREAN_KOREA]:"韩语(韩国)",[u.KONKANI_INDIA]:"孔卡尼语(印度)",[u.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[u.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[u.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[u.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[u.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[u.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[u.MARATHI_INDIA]:"马拉地语(印度)",[u.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[u.MALAY_MALAYSIA]:"马来语(马来西亚)",[u.MALTESE_MALTA]:"马耳他语(马耳他)",[u.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[u.DUTCH_BELGIUM]:"荷兰语(比利时)",[u.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[u.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[u.PUNJABI_INDIA]:"旁遮普语(印度)",[u.POLISH_POLAND]:"波兰语(波兰)",[u.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[u.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[u.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[u.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[u.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[u.QUECHUA_PERU]:"克丘亚语(秘鲁)",[u.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[u.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[u.SANSKRIT_INDIA]:"梵语(印度)",[u.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[u.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[u.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[u.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[u.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[u.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[u.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[u.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[u.TAMIL_INDIA]:"泰米尔语(印度)",[u.TELUGU_INDIA]:"泰卢固语(印度)",[u.THAI_THAILAND]:"泰语(泰国)",[u.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[u.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[u.TURKISH_TURKEY]:"土耳其语(土耳其)",[u.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[u.TSOGA]:"索加语",[u.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[u.VIETNAMESE_VIET_NAM]:"越南语(越南)",[u.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[u.CHINESE_HONG_KONG]:"中文(香港)",[u.CHINESE_MACAU]:"中文(澳门)",[u.CHINESE_SINGAPORE]:"中文(新加坡)",[u.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},_F={[u.ENGLISH]:Bn,[u.ENGLISH_AUSTRALIA]:Bn,[u.ENGLISH_BELIZE]:Bn,[u.ENGLISH_CANADA]:Bn,[u.ENGLISH_CARIBBEAN]:Bn,[u.ENGLISH_UNITED_KINGDOM]:Bn,[u.ENGLISH_IRELAND]:Bn,[u.ENGLISH_JAMAICA]:Bn,[u.ENGLISH_NEW_ZEALAND]:Bn,[u.ENGLISH_PHILIPPINES]:Bn,[u.ENGLISH_TRINIDAD_AND_TOBAGO]:Bn,[u.ENGLISH_UNITED_STATES]:Bn,[u.ENGLISH_SOUTH_AFRICA]:Bn,[u.ENGLISH_ZIMBABWE]:Bn,[u.FRENCH]:ra,[u.FRENCH_BELGIUM]:ra,[u.FRENCH_CANADA]:ra,[u.FRENCH_SWITZERLAND]:ra,[u.FRENCH_FRANCE]:ra,[u.FRENCH_LUXEMBOURG]:ra,[u.FRENCH_PRINCIPALITY_OF_MONACO]:ra,[u.SPANISH]:Vt,[u.SPANISH_ARGENTINA]:Vt,[u.SPANISH_BOLIVIA]:Vt,[u.SPANISH_CHILE]:Vt,[u.SPANISH_COLOMBIA]:Vt,[u.SPANISH_COSTA_RICA]:Vt,[u.SPANISH_DOMINICAN_REPUBLIC]:Vt,[u.SPANISH_ECUADOR]:Vt,[u.SPANISH_SPAIN]:Vt,[u.SPANISH_GUATEMALA]:Vt,[u.SPANISH_HONDURAS]:Vt,[u.SPANISH_MEXICO]:Vt,[u.SPANISH_NICARAGUA]:Vt,[u.SPANISH_PANAMA]:Vt,[u.SPANISH_PERU]:Vt,[u.SPANISH_PUERTO_RICO]:Vt,[u.SPANISH_PARAGUAY]:Vt,[u.SPANISH_EL_SALVADOR]:Vt,[u.SPANISH_URUGUAY]:Vt,[u.SPANISH_VENEZUELA]:Vt,[u.PORTUGUESE]:vm,[u.PORTUGUESE_BRAZIL]:vm,[u.PORTUGUESE_PORTUGAL]:vm,[u.ITALIAN]:ym,[u.ITALIAN_SWITZERLAND]:ym,[u.ITALIAN_ITALY]:ym,[u.GERMAN]:ps,[u.GERMAN_AUSTRIA]:ps,[u.GERMAN_SWITZERLAND]:ps,[u.GERMAN_GERMANY]:ps,[u.GERMAN_LIECHTENSTEIN]:ps,[u.GERMAN_LUXEMBOURG]:ps,[u.CHINESE]:ua,[u.CHINESE_HONG_KONG]:ua,[u.CHINESE_MACAU]:ua,[u.CHINESE_SINGAPORE]:ua,[u.CHINESE_SIMPLIFIED]:ua,[u.CHINESE_SIMPLIFIED_CHINA]:ua,[u.CHINESE_TRADITIONAL]:ua,[u.RUSSIAN]:PS,[u.RUSSIAN_RUSSIA]:PS,[u.ARABIC]:ln,[u.ARABIC_UNITED_ARAB_EMIRATES]:ln,[u.ARABIC_BAHRAIN]:ln,[u.ARABIC_ALGERIA]:ln,[u.ARABIC_EGYPT]:ln,[u.ARABIC_IRAQ]:ln,[u.ARABIC_JORDAN]:ln,[u.ARABIC_KUWAIT]:ln,[u.ARABIC_LEBANON]:ln,[u.ARABIC_LIBYA]:ln,[u.ARABIC_MOROCCO]:ln,[u.ARABIC_OMAN]:ln,[u.ARABIC_QATAR]:ln,[u.ARABIC_SAUDI_ARABIA]:ln,[u.ARABIC_SYRIA]:ln,[u.ARABIC_TUNISIA]:ln,[u.ARABIC_YEMEN]:ln,[u.JAPANESE]:wS,[u.JAPANESE_JAPAN]:wS,[u.KOREAN]:MS,[u.KOREAN_KOREA]:MS,[u.HINDI]:gF,[u.DUTCH_BELGIUM]:void 0,[u.DUTCH_NETHERLANDS]:void 0,[u.DIVEHI_MALDIVES]:void 0,[u.AFRIKAANS]:void 0,[u.AZERI_LATIN]:void 0,[u.BELARUSIAN]:void 0,[u.BULGARIAN]:void 0,[u.BOSNIAN]:void 0,[u.CATALAN]:void 0,[u.CZECH]:void 0,[u.WELSH]:void 0,[u.DANISH]:void 0,[u.DIVEHI]:void 0,[u.GREEK]:void 0,[u.ESPERANTO]:void 0,[u.ESTONIAN]:void 0,[u.BASQUE]:void 0,[u.FARSI]:void 0,[u.FINNISH]:void 0,[u.FAROESE]:void 0,[u.GALICIAN]:void 0,[u.GUJARATI]:void 0,[u.HEBREW]:void 0,[u.CROATIAN]:void 0,[u.HUNGARIAN]:void 0,[u.ARMENIAN]:void 0,[u.INDONESIAN]:void 0,[u.ICELANDIC]:void 0,[u.GEORGIAN]:void 0,[u.KAZAKH]:void 0,[u.KANNADA]:void 0,[u.KONKANI]:void 0,[u.KYRGYZ]:void 0,[u.LITHUANIAN]:void 0,[u.LATVIAN]:void 0,[u.MAORI]:void 0,[u.FYRO_MACEDONIAN]:void 0,[u.MONGOLIAN]:void 0,[u.MARATHI]:void 0,[u.MALAY]:void 0,[u.MALTESE]:void 0,[u.NORWEGIAN_BOKMAL]:void 0,[u.DUTCH]:void 0,[u.NORTHERN_SOTHO]:void 0,[u.PUNJABI]:void 0,[u.POLISH]:void 0,[u.PASHTO]:void 0,[u.QUECHUA]:void 0,[u.ROMANIAN]:void 0,[u.SANSKRIT]:void 0,[u.SAMI_NORTHERN]:void 0,[u.SLOVAK]:void 0,[u.SLOVENIAN]:void 0,[u.ALBANIAN]:void 0,[u.SERBIAN_LATIN]:void 0,[u.SWEDISH]:void 0,[u.SWEDISH_FINLAND]:void 0,[u.SWEDISH_SWEDEN]:void 0,[u.SWAHILI]:void 0,[u.SYRIAC]:void 0,[u.TAMIL]:void 0,[u.TELUGU]:void 0,[u.THAI]:void 0,[u.TAGALOG]:void 0,[u.TSWANA]:void 0,[u.TURKISH]:void 0,[u.TATAR]:void 0,[u.UKRAINIAN]:void 0,[u.URDU]:void 0,[u.UZBEK_LATIN]:void 0,[u.VIETNAMESE]:void 0,[u.XHOSA]:void 0,[u.ZULU]:void 0,[u.AFRIKAANS_SOUTH_AFRICA]:void 0,[u.AZERI_LATIN_AZERBAIJAN]:void 0,[u.BELARUSIAN_BELARUS]:void 0,[u.BULGARIAN_BULGARIA]:void 0,[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CATALAN_SPAIN]:void 0,[u.CZECH_CZECH_REPUBLIC]:void 0,[u.WELSH_UNITED_KINGDOM]:void 0,[u.DANISH_DENMARK]:void 0,[u.GREEK_GREECE]:void 0,[u.ESTONIAN_ESTONIA]:void 0,[u.BASQUE_SPAIN]:void 0,[u.FARSI_IRAN]:void 0,[u.FINNISH_FINLAND]:void 0,[u.FAROESE_FAROE_ISLANDS]:void 0,[u.GALICIAN_SPAIN]:void 0,[u.GUJARATI_INDIA]:void 0,[u.HEBREW_ISRAEL]:void 0,[u.HINDI_INDIA]:void 0,[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CROATIAN_CROATIA]:void 0,[u.HUNGARIAN_HUNGARY]:void 0,[u.ARMENIAN_ARMENIA]:void 0,[u.INDONESIAN_INDONESIA]:void 0,[u.ICELANDIC_ICELAND]:void 0,[u.GEORGIAN_GEORGIA]:void 0,[u.KAZAKH_KAZAKHSTAN]:void 0,[u.KANNADA_INDIA]:void 0,[u.KONKANI_INDIA]:void 0,[u.KYRGYZ_KYRGYZSTAN]:void 0,[u.LITHUANIAN_LITHUANIA]:void 0,[u.LATVIAN_LATVIA]:void 0,[u.MAORI_NEW_ZEALAND]:void 0,[u.FYRO_MACEDONIAN_MACEDONIA]:void 0,[u.MONGOLIAN_MONGOLIA]:void 0,[u.MARATHI_INDIA]:void 0,[u.MALAY_BRUNEI_DARUSSALAM]:void 0,[u.MALAY_MALAYSIA]:void 0,[u.MALTESE_MALTA]:void 0,[u.NORWEGIAN_BOKMAL_NORWAY]:void 0,[u.NORWEGIAN_NYNORSK_NORWAY]:void 0,[u.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[u.PUNJABI_INDIA]:void 0,[u.POLISH_POLAND]:void 0,[u.PASHTO_AFGHANISTAN]:void 0,[u.QUECHUA_BOLIVIA]:void 0,[u.QUECHUA_ECUADOR]:void 0,[u.QUECHUA_PERU]:void 0,[u.ROMANIAN_ROMANIA]:void 0,[u.SANSKRIT_INDIA]:void 0,[u.SAMI_NORTHERN_FINLAND]:void 0,[u.SAMI_NORTHERN_NORWAY]:void 0,[u.SAMI_NORTHERN_SWEDEN]:void 0,[u.SLOVAK_SLOVAKIA]:void 0,[u.SLOVENIAN_SLOVENIA]:void 0,[u.ALBANIAN_ALBANIA]:void 0,[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[u.SWAHILI_KENYA]:void 0,[u.SYRIAC_SYRIA]:void 0,[u.TAMIL_INDIA]:void 0,[u.TELUGU_INDIA]:void 0,[u.THAI_THAILAND]:void 0,[u.TAGALOG_PHILIPPINES]:void 0,[u.TSWANA_SOUTH_AFRICA]:void 0,[u.TURKISH_TURKEY]:void 0,[u.TATAR_RUSSIA]:void 0,[u.TSOGA]:void 0,[u.UKRAINIAN_UKRAINE]:void 0,[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[u.UZBEK_LATIN_UZBEKISTAN]:void 0,[u.VIETNAMESE_VIET_NAM]:void 0,[u.XHOSA_SOUTH_AFRICA]:void 0,[u.ZULU_SOUTH_AFRICA]:void 0},I0=(e,t)=>{var n;return t?((n=_F[t])==null?void 0:n[e])??HS[e]??"Unknown locale":HS[e]},NF=e=>{switch(e){case u.ENGLISH:case u.FRENCH:case u.SPANISH:case u.PORTUGUESE:case u.GERMAN:case u.AFRIKAANS:case u.AZERI_LATIN:case u.BELARUSIAN:case u.BULGARIAN:case u.BOSNIAN:case u.CATALAN:case u.CZECH:case u.WELSH:case u.DANISH:case u.ESPERANTO:case u.ESTONIAN:case u.BASQUE:case u.FINNISH:case u.FAROESE:case u.GALICIAN:case u.GREEK:case u.CROATIAN:case u.HUNGARIAN:case u.ARMENIAN:case u.INDONESIAN:case u.ICELANDIC:case u.ITALIAN:case u.JAPANESE:case u.GEORGIAN:case u.KAZAKH:case u.KANNADA:case u.KOREAN:case u.KONKANI:case u.KYRGYZ:case u.LITHUANIAN:case u.LATVIAN:case u.MAORI:case u.FYRO_MACEDONIAN:case u.MONGOLIAN:case u.MARATHI:case u.MALAY:case u.MALTESE:case u.NORWEGIAN_BOKMAL:case u.DUTCH:case u.NORTHERN_SOTHO:case u.PUNJABI:case u.POLISH:case u.QUECHUA:case u.ROMANIAN:case u.RUSSIAN:case u.SANSKRIT:case u.SAMI_NORTHERN:case u.SLOVAK:case u.SLOVENIAN:case u.ALBANIAN:case u.SERBIAN_LATIN:case u.SWEDISH:case u.SWAHILI:case u.TAMIL:case u.TELUGU:case u.THAI:case u.TAGALOG:case u.TSWANA:case u.TURKISH:case u.UKRAINIAN:case u.UZBEK_LATIN:case u.VIETNAMESE:case u.XHOSA:case u.CHINESE_SIMPLIFIED:case u.CHINESE_TRADITIONAL:case u.ZULU:case u.AFRIKAANS_SOUTH_AFRICA:case u.AZERI_LATIN_AZERBAIJAN:case u.BELARUSIAN_BELARUS:case u.BULGARIAN_BULGARIA:case u.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case u.CATALAN_SPAIN:case u.CZECH_CZECH_REPUBLIC:case u.WELSH_UNITED_KINGDOM:case u.DANISH_DENMARK:case u.GERMAN_AUSTRIA:case u.GERMAN_SWITZERLAND:case u.GERMAN_GERMANY:case u.GERMAN_LIECHTENSTEIN:case u.GERMAN_LUXEMBOURG:case u.GREEK_GREECE:case u.ENGLISH_AUSTRALIA:case u.ENGLISH_BELIZE:case u.ENGLISH_CANADA:case u.ENGLISH_CARIBBEAN:case u.ENGLISH_UNITED_KINGDOM:case u.ENGLISH_IRELAND:case u.ENGLISH_JAMAICA:case u.ENGLISH_NEW_ZEALAND:case u.ENGLISH_PHILIPPINES:case u.ENGLISH_TRINIDAD_AND_TOBAGO:case u.ENGLISH_UNITED_STATES:case u.ENGLISH_SOUTH_AFRICA:case u.ENGLISH_ZIMBABWE:case u.SPANISH_ARGENTINA:case u.SPANISH_BOLIVIA:case u.SPANISH_CHILE:case u.SPANISH_COLOMBIA:case u.SPANISH_COSTA_RICA:case u.SPANISH_DOMINICAN_REPUBLIC:case u.SPANISH_ECUADOR:case u.SPANISH_SPAIN:case u.SPANISH_GUATEMALA:case u.SPANISH_HONDURAS:case u.SPANISH_MEXICO:case u.SPANISH_NICARAGUA:case u.SPANISH_PANAMA:case u.SPANISH_PERU:case u.SPANISH_PUERTO_RICO:case u.SPANISH_PARAGUAY:case u.SPANISH_EL_SALVADOR:case u.SPANISH_URUGUAY:case u.SPANISH_VENEZUELA:case u.ESTONIAN_ESTONIA:case u.BASQUE_SPAIN:case u.FINNISH_FINLAND:case u.FAROESE_FAROE_ISLANDS:case u.FRENCH_BELGIUM:case u.FRENCH_CANADA:case u.FRENCH_SWITZERLAND:case u.FRENCH_FRANCE:case u.FRENCH_LUXEMBOURG:case u.FRENCH_PRINCIPALITY_OF_MONACO:case u.GALICIAN_SPAIN:case u.GUJARATI_INDIA:case u.HEBREW_ISRAEL:case u.HINDI_INDIA:case u.CROATIAN_BOSNIA_AND_HERZEGOVINA:case u.CROATIAN_CROATIA:case u.HUNGARIAN_HUNGARY:case u.ARMENIAN_ARMENIA:case u.INDONESIAN_INDONESIA:case u.ICELANDIC_ICELAND:case u.ITALIAN_SWITZERLAND:case u.ITALIAN_ITALY:case u.JAPANESE_JAPAN:case u.GEORGIAN_GEORGIA:case u.KAZAKH_KAZAKHSTAN:case u.KANNADA_INDIA:case u.KOREAN_KOREA:case u.KONKANI_INDIA:case u.KYRGYZ_KYRGYZSTAN:case u.LITHUANIAN_LITHUANIA:case u.LATVIAN_LATVIA:case u.MAORI_NEW_ZEALAND:case u.FYRO_MACEDONIAN_MACEDONIA:case u.MONGOLIAN_MONGOLIA:case u.MARATHI_INDIA:case u.MALAY_BRUNEI_DARUSSALAM:case u.MALAY_MALAYSIA:case u.MALTESE_MALTA:case u.NORWEGIAN_BOKMAL_NORWAY:case u.DUTCH_BELGIUM:case u.DUTCH_NETHERLANDS:case u.NORWEGIAN_NYNORSK_NORWAY:case u.NORTHERN_SOTHO_SOUTH_AFRICA:case u.PUNJABI_INDIA:case u.POLISH_POLAND:case u.PORTUGUESE_BRAZIL:case u.PORTUGUESE_PORTUGAL:case u.QUECHUA_BOLIVIA:case u.QUECHUA_ECUADOR:case u.QUECHUA_PERU:case u.ROMANIAN_ROMANIA:case u.RUSSIAN_RUSSIA:case u.SANSKRIT_INDIA:case u.SAMI_NORTHERN_FINLAND:case u.SAMI_NORTHERN_NORWAY:case u.SAMI_NORTHERN_SWEDEN:case u.SLOVAK_SLOVAKIA:case u.SLOVENIAN_SLOVENIA:case u.ALBANIAN_ALBANIA:case u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case u.SWAHILI_KENYA:case u.TAMIL_INDIA:case u.TELUGU_INDIA:case u.THAI_THAILAND:case u.TAGALOG_PHILIPPINES:case u.TSWANA_SOUTH_AFRICA:case u.TURKISH_TURKEY:case u.TATAR_RUSSIA:case u.TSOGA:case u.UKRAINIAN_UKRAINE:case u.UZBEK_LATIN_UZBEKISTAN:case u.VIETNAMESE_VIET_NAM:case u.XHOSA_SOUTH_AFRICA:case u.CHINESE_HONG_KONG:case u.CHINESE_MACAU:case u.CHINESE_SINGAPORE:case u.ZULU_SOUTH_AFRICA:return"ltr";case u.ARABIC:case u.FARSI:case u.URDU:case u.PASHTO:case u.SYRIAC:case u.ARABIC_UNITED_ARAB_EMIRATES:case u.ARABIC_BAHRAIN:case u.ARABIC_ALGERIA:case u.ARABIC_EGYPT:case u.ARABIC_IRAQ:case u.ARABIC_JORDAN:case u.ARABIC_KUWAIT:case u.ARABIC_LEBANON:case u.ARABIC_LIBYA:case u.ARABIC_MOROCCO:case u.ARABIC_OMAN:case u.ARABIC_QATAR:case u.ARABIC_SAUDI_ARABIA:case u.ARABIC_SYRIA:case u.ARABIC_TUNISIA:case u.ARABIC_YEMEN:case u.FARSI_IRAN:case u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case u.PASHTO_AFGHANISTAN:case u.SYRIAC_SYRIA:return"rtl";default:return"auto"}},IF=[u.AFRIKAANS,u.AFRIKAANS_SOUTH_AFRICA,u.ARABIC,u.ARABIC_UNITED_ARAB_EMIRATES,u.ARABIC_BAHRAIN,u.ARABIC_ALGERIA,u.ARABIC_EGYPT,u.ARABIC_IRAQ,u.ARABIC_JORDAN,u.ARABIC_KUWAIT,u.ARABIC_LEBANON,u.ARABIC_LIBYA,u.ARABIC_MOROCCO,u.ARABIC_OMAN,u.ARABIC_QATAR,u.ARABIC_SAUDI_ARABIA,u.ARABIC_SYRIA,u.ARABIC_TUNISIA,u.ARABIC_YEMEN,u.AZERI_LATIN,u.AZERI_LATIN_AZERBAIJAN,u.BELARUSIAN,u.BELARUSIAN_BELARUS,u.BULGARIAN,u.BULGARIAN_BULGARIA,u.BOSNIAN_BOSNIA_AND_HERZEGOVINA,u.CATALAN,u.CATALAN_SPAIN,u.CZECH,u.CZECH_CZECH_REPUBLIC,u.WELSH,u.WELSH_UNITED_KINGDOM,u.DANISH,u.DANISH_DENMARK,u.GERMAN,u.GERMAN_AUSTRIA,u.GERMAN_SWITZERLAND,u.GERMAN_GERMANY,u.GERMAN_LIECHTENSTEIN,u.GERMAN_LUXEMBOURG,u.DIVEHI,u.DIVEHI_MALDIVES,u.GREEK,u.GREEK_GREECE,u.ENGLISH,u.ENGLISH_AUSTRALIA,u.ENGLISH_BELIZE,u.ENGLISH_CANADA,u.ENGLISH_CARIBBEAN,u.ENGLISH_UNITED_KINGDOM,u.ENGLISH_IRELAND,u.ENGLISH_JAMAICA,u.ENGLISH_NEW_ZEALAND,u.ENGLISH_PHILIPPINES,u.ENGLISH_TRINIDAD_AND_TOBAGO,u.ENGLISH_UNITED_STATES,u.ENGLISH_SOUTH_AFRICA,u.ENGLISH_ZIMBABWE,u.ESPERANTO,u.SPANISH,u.SPANISH_ARGENTINA,u.SPANISH_BOLIVIA,u.SPANISH_CHILE,u.SPANISH_COLOMBIA,u.SPANISH_COSTA_RICA,u.SPANISH_DOMINICAN_REPUBLIC,u.SPANISH_ECUADOR,u.SPANISH_SPAIN,u.SPANISH_GUATEMALA,u.SPANISH_HONDURAS,u.SPANISH_MEXICO,u.SPANISH_NICARAGUA,u.SPANISH_PANAMA,u.SPANISH_PERU,u.SPANISH_PUERTO_RICO,u.SPANISH_PARAGUAY,u.SPANISH_EL_SALVADOR,u.SPANISH_URUGUAY,u.SPANISH_VENEZUELA,u.ESTONIAN,u.ESTONIAN_ESTONIA,u.BASQUE,u.BASQUE_SPAIN,u.FARSI,u.FARSI_IRAN,u.FINNISH,u.FINNISH_FINLAND,u.FAROESE,u.FAROESE_FAROE_ISLANDS,u.FRENCH,u.FRENCH_BELGIUM,u.FRENCH_CANADA,u.FRENCH_SWITZERLAND,u.FRENCH_FRANCE,u.FRENCH_LUXEMBOURG,u.FRENCH_PRINCIPALITY_OF_MONACO,u.GALICIAN,u.GALICIAN_SPAIN,u.GUJARATI,u.GUJARATI_INDIA,u.HEBREW,u.HEBREW_ISRAEL,u.HINDI,u.HINDI_INDIA,u.CROATIAN,u.CROATIAN_BOSNIA_AND_HERZEGOVINA,u.CROATIAN_CROATIA,u.HUNGARIAN,u.HUNGARIAN_HUNGARY,u.ARMENIAN,u.ARMENIAN_ARMENIA,u.INDONESIAN,u.INDONESIAN_INDONESIA,u.ICELANDIC,u.ICELANDIC_ICELAND,u.ITALIAN,u.ITALIAN_SWITZERLAND,u.ITALIAN_ITALY,u.JAPANESE,u.JAPANESE_JAPAN,u.GEORGIAN,u.GEORGIAN_GEORGIA,u.KAZAKH,u.KAZAKH_KAZAKHSTAN,u.KANNADA,u.KANNADA_INDIA,u.KOREAN,u.KOREAN_KOREA,u.KONKANI,u.KONKANI_INDIA,u.KYRGYZ,u.KYRGYZ_KYRGYZSTAN,u.LITHUANIAN,u.LITHUANIAN_LITHUANIA,u.LATVIAN,u.LATVIAN_LATVIA,u.MAORI,u.MAORI_NEW_ZEALAND,u.FYRO_MACEDONIAN,u.FYRO_MACEDONIAN_MACEDONIA,u.MONGOLIAN,u.MONGOLIAN_MONGOLIA,u.MARATHI,u.MARATHI_INDIA,u.MALAY,u.MALAY_BRUNEI_DARUSSALAM,u.MALAY_MALAYSIA,u.MALTESE,u.MALTESE_MALTA,u.NORWEGIAN_BOKMAL,u.NORWEGIAN_BOKMAL_NORWAY,u.DUTCH,u.DUTCH_BELGIUM,u.DUTCH_NETHERLANDS,u.NORWEGIAN_NYNORSK_NORWAY,u.NORTHERN_SOTHO,u.NORTHERN_SOTHO_SOUTH_AFRICA,u.PUNJABI,u.PUNJABI_INDIA,u.POLISH,u.POLISH_POLAND,u.PASHTO,u.PASHTO_AFGHANISTAN,u.PORTUGUESE,u.PORTUGUESE_BRAZIL,u.PORTUGUESE_PORTUGAL,u.QUECHUA,u.QUECHUA_BOLIVIA,u.QUECHUA_ECUADOR,u.QUECHUA_PERU,u.ROMANIAN,u.ROMANIAN_ROMANIA,u.RUSSIAN,u.RUSSIAN_RUSSIA,u.SANSKRIT,u.SANSKRIT_INDIA,u.SAMI_NORTHERN,u.SAMI_NORTHERN_FINLAND,u.SAMI_NORTHERN_NORWAY,u.SAMI_NORTHERN_SWEDEN,u.SLOVAK,u.SLOVAK_SLOVAKIA,u.SLOVENIAN,u.SLOVENIAN_SLOVENIA,u.ALBANIAN,u.ALBANIAN_ALBANIA,u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,u.SWEDISH,u.SWEDISH_FINLAND,u.SWEDISH_SWEDEN,u.SWAHILI_KENYA,u.SYRIAC_SYRIA,u.TAMIL,u.TAMIL_INDIA,u.TELUGU,u.TELUGU_INDIA,u.THAI,u.THAI_THAILAND,u.TAGALOG,u.TAGALOG_PHILIPPINES,u.TSWANA,u.TSWANA_SOUTH_AFRICA,u.TURKISH,u.TURKISH_TURKEY,u.TATAR,u.TATAR_RUSSIA,u.TSOGA,u.UKRAINIAN,u.UKRAINIAN_UKRAINE,u.URDU,u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,u.UZBEK_LATIN,u.UZBEK_LATIN_UZBEKISTAN,u.VIETNAMESE,u.VIETNAMESE_VIET_NAM,u.XHOSA,u.XHOSA_SOUTH_AFRICA,u.CHINESE,u.CHINESE_SIMPLIFIED,u.CHINESE_HONG_KONG,u.CHINESE_MACAU,u.CHINESE_SINGAPORE,u.CHINESE_TRADITIONAL,u.ZULU_SOUTH_AFRICA],SF=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),a=o=>o.trim().toLowerCase();try{for(const o of r){const l=a(o),d=t.find(m=>a(m)===l);if(d)return d;const[f]=l.split("-"),A=t.find(m=>a(m).split("-")[0]===f);if(A)return A}}catch{}return n},CF=(e,t=Qe.internationalization.locales)=>{const n=Av(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),o=a.pathname;o.startsWith("/")||(a.pathname=`/${o}`);const l=o.split("/"),d=l[1];if(t.includes(d)){l.splice(1,1);const f=l.join("/")??"/";a.pathname=f}return n?a.toString():a.toString().replace("http://example.com","")},yF=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const a=CF(e,t),o=Av(a),l=o?new URL(a):new URL(a,"http://example.com");let d=l.pathname;d.startsWith("/")||(d=`/${d}`);const f=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,E)=>{const g=E.toString()===n.toString();let I=r||!g?`/${E}${d}`:d;I.length>1&&I.endsWith("/")&&(I=I.slice(0,-1));const y=o?`${f}${I}${l.search}${l.hash}`:`${I}${l.search}${l.hash}`;return m[E]=y,m},{})},vF=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,a=Qe.middleware.prefixDefault)=>yF(e,n,r,a)[t],hv=C.createContext(void 0),RF=e=>Us("INTLAYER_EDITED_CONTENT_CHANGED/get",e),mv=C.createContext(void 0),US=(e,t)=>typeof e=="function"?e(t):e,DF=({children:e})=>{const{localeDictionaries:t}=lv(),[n,r]=Ta("INTLAYER_EDITED_CONTENT_CHANGED"),a=_=>{let I=US(_);return r(y=>(I=US(_,y==null?void 0:y[I.key]),{...y,[I.key]:I})),I},o=(_,I)=>{r(y=>({...y,[_]:{...y==null?void 0:y[_],content:I}}))},l=(_,I,y=[],v=!0)=>{r(R=>{var O,w;const D=(O=t[_])==null?void 0:O.content,x=structuredClone(((w=R==null?void 0:R[_])==null?void 0:w.content)??D);let F=y;if(!v){let P=0;const U=y.slice(0,-1),j=y[y.length-1];let fe=j.key;for(;typeof Vr(x,F)<"u";)P++,fe=P===0?j.key:`${j.key} (${P})`,F=[...U,{...j,key:fe}]}const b=LS(x,F,I);return{...R,[_]:{...R==null?void 0:R[_],content:b}}})},d=(_,I,y=[])=>{r(v=>{var F,b;const R=(F=t[_])==null?void 0:F.content,D=structuredClone(((b=v==null?void 0:v[_])==null?void 0:b.content)??R),x=pF(D,I,y);return{...v,[_]:{...v==null?void 0:v[_],content:x}}})},f=(_,I)=>{r(y=>{var F,b;const v=(F=t[_])==null?void 0:F.content,R=structuredClone(((b=y==null?void 0:y[_])==null?void 0:b.content)??v),D=Vr(v,I),x=LS(R,I,D);return{...y,[_]:{...y==null?void 0:y[_],content:x}}})},A=_=>{r(I=>{const y={...I};return delete y[_],y})},m=_=>{r(I=>Object.entries(I).reduce((v,[R,D])=>R===_?v:{...v,[R]:D},{}))},E=()=>{r({})},g=(_,I)=>{var v;const y=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return Vr(y,I)};return N.jsx(hv.Provider,{value:{editedContent:n},children:N.jsx(mv.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:A,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},Qs=()=>C.useContext(mv),Dn=()=>{const e=C.useContext(hv),t=Qs();return{...e,...t}},pv=C.createContext(void 0),Ev=C.createContext(void 0),TF=({children:e})=>{const[t,n]=Ta("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=a=>{n(o=>o&&{...o,keyPath:a})};return N.jsx(pv.Provider,{value:{focusedContent:t},children:N.jsx(Ev.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},qE=()=>{const e=C.useContext(Ev);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},yi=()=>{const e=qE(),t=C.useContext(pv);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},gv=C.createContext({enabled:!1}),xF=e=>Ta("INTLAYER_EDITOR_ENABLED",!1,e),bF=e=>Us("INTLAYER_EDITOR_ENABLED/post",e),_v=e=>Us("INTLAYER_EDITOR_ENABLED/get",e),BF=({children:e})=>{const[t]=xF({emit:!1,receive:!0});return N.jsx(gv.Provider,{value:{enabled:t},children:e})},Nv=()=>C.useContext(gv),OF=C.createContext(void 0),FF=C.createContext(void 0),LF=({children:e})=>{const[t,n]=C.useState({}),r=(a,o)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:o}}))};return N.jsx(OF.Provider,{value:{changedContent:t},children:N.jsx(FF.Provider,{value:{setChangedContent:r},children:e})})},kS=({children:e})=>{const t=RF();return C.useEffect(()=>{t()},[]),N.jsx(zO,{children:N.jsx(DF,{children:N.jsx(TF,{children:e})})})},wF=({children:e,fallback:t})=>{const n=_v(),{enabled:r}=Nv();return C.useEffect(()=>{r||n()},[r]),r?e:t},MF=({children:e,fallback:t})=>{const[n,r]=C.useState(!1);return C.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},HF=({children:e,configuration:t,...n})=>N.jsx(LF,{children:N.jsx(BF,{children:N.jsx(VO,{configuration:t,children:n.mode==="editor"?N.jsx(BS,{...n,children:N.jsx(kS,{children:e})}):N.jsx(MF,{fallback:e,children:N.jsx(BS,{...n,children:N.jsx(wF,{fallback:e,children:N.jsx(kS,{children:e})})})})})})}),PF=(e,t)=>Ta("INTLAYER_URL_CHANGE",e,t),UF=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)},kF=()=>Us("INTLAYER_IFRAME_CLICKED",UF);/*! js-cookie v3.0.5 | MIT */function Qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var GF={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Fp(e,t){function n(a,o,l){if(!(typeof document>"u")){l=Qd({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in l)l[f]&&(d+="; "+f,l[f]!==!0&&(d+="="+l[f].split(";")[0]));return document.cookie=a+"="+e.write(o,a)+d}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var o=document.cookie?document.cookie.split("; "):[],l={},d=0;d<o.length;d++){var f=o[d].split("="),A=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(A,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,o){n(a,"",Qd({},o,{expires:-1}))},withAttributes:function(a){return Fp(this.converter,Qd({},this.attributes,a))},withConverter:function(a){return Fp(Qd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Iv=Fp(GF,{path:"/"});const{cookieName:Sv}=Qe.middleware,jF={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},QE=Iv.get(Sv),Cv=e=>{Iv.set(Sv,e,jF)},VF=()=>({localeCookie:QE,setLocaleCookie:Cv});var nv;const Tf=C.createContext({locale:QE??((nv=Qe==null?void 0:Qe.internationalization)==null?void 0:nv.defaultLocale),setLocale:()=>null,disableEditor:!1}),zF=()=>C.useContext(Tf),KF=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:d}=o??{},f=e??QE??t??l,[A,m]=Ta("INTLAYER_CURRENT_LOCALE",f),g=r??(I=>{if(A.toString()!==I.toString()){if(!(d!=null&&d.map(String).includes(I))){console.error(`Locale ${I} is not available`);return}m(I),Cv(I)}}),_=SF(e??A);return N.jsx(Tf.Provider,{value:{locale:_,setLocale:g,disableEditor:a},children:n})},H0=({children:e,value:t,additionalProps:n})=>{const r=C.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(a,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(a,o,l)}})},YF=250,ZF=({children:e,onPress:t,onClickOutside:n,pressDuration:r=YF,isSelecting:a,...o})=>{const l=C.useRef(null),[d,f]=C.useState(!1),[A,m]=C.useState(a),E=C.useRef(null),g=typeof e=="string",_=()=>{m(!0),t()},I=()=>{E.current=setTimeout(()=>{_()},r)},y=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{y(),I()},R=()=>{f(!0)},D=()=>{f(!1),y()},x=C.useCallback(O=>{l.current&&!l.current.contains(O.target)&&(m(!1),n==null||n())},[n]);C.useEffect(()=>(document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}),[x]);const F=O=>{A&&(O.preventDefault(),O.stopPropagation())},b=()=>{m(!1)};return N.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||A||d?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:F,onMouseDown:v,onMouseUp:D,onMouseLeave:D,onTouchStart:v,onTouchEnd:D,onTouchCancel:D,onBlur:b,onMouseEnter:R,ref:l,...o,children:e})},WF=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=yi(),o=C.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),l=C.useMemo(()=>{var d;return((r==null?void 0:r.dictionaryKey)===t&&(((d=r==null?void 0:r.keyPath)==null?void 0:d.length)??0)>0&&Ec((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(ZF,{onPress:o,isSelecting:l,children:e})},P0=({children:e,...t})=>{const{enabled:n}=Nv(),{disableEditor:r}=zF();return n&&!r?N.jsx(WF,{...t,children:e}):e},XE=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Qs();return r?r.getEditedContentValue(e,t)??n:n},$F=e=>{const t=XE(e);if(typeof t=="object"){const n=$E(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},qF=C.createContext({renderMarkdown:e=>e}),QF=()=>C.useContext(qF),XF=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=QF(),o=XE({dictionaryKey:e,keyPath:t,children:n});if(typeof o!="string"){const l=$E(o,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(o)},JF=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=XE({dictionaryKey:e,keyPath:t,children:n}),o=dv(a);return Vr(o,r)},yv=e=>{if(typeof e=="string")return e;const n=(o=>{var l;if(o!=null&&o.props&&typeof o.props.children=="object"){const d=[],{children:f}=o.props;return Object.keys(f??{}).forEach(A=>{d.push(yv((f??{})[A]))}),{...o,props:{...o.props,children:d}}}return{...o,props:{...o.props,children:((l=o.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return C.createElement(r??"span",a,...a.children)},eL={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>H0({...n,value:n.children,children:C.createElement(P0,{...n,key:n.children},N.jsx($F,{...n,children:n.children}))})},tL={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>H0({...n,value:"[[react-element]]",children:N.jsx(P0,{...n,children:yv(e)})})},nL={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,o=dv(e),d=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:f=>typeof f=="string"||typeof f=="number"||typeof f=="boolean"||!f,transform:(f,A)=>H0({...A,value:f,children:N.jsx(P0,{...a,children:N.jsx(JF,{...a,metadataKeyPath:A.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return H0({...t,value:e,children:N.jsx(P0,{...a,children:N.jsx(XF,{...a,children:e})}),additionalProps:{metadata:d}})}},rL={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Y.Markdown}],a=e[Y.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[nL,...t.plugins??[]]})}},uL=(e,t,n)=>cv(e,t,[eL,tL,rL]),un=(e,t)=>{const{locale:n}=C.useContext(Tf);return uL(e,n)},JE=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:a,setLocale:o}=C.useContext(Tf),{setLocaleCookie:l}=VF();return{locale:a,defaultLocale:n,availableLocales:r,localeList:IF,setLocale:f=>{if(!(r!=null&&r.map(String).includes(f))){console.error(`Locale ${f} is not available`);return}o(f),l(f),e==null||e(f)}}};var fl={},GS;function iL(){if(GS)return fl;GS=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.parse=l,fl.serialize=A;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,_){const I=new o,y=g.length;if(y<2)return I;const v=(_==null?void 0:_.decode)||m;let R=0;do{const D=g.indexOf("=",R);if(D===-1)break;const x=g.indexOf(";",R),F=x===-1?y:x;if(D>F){R=g.lastIndexOf(";",D-1)+1;continue}const b=d(g,R,D),O=f(g,D,b),w=g.slice(b,O);if(I[w]===void 0){let P=d(g,D+1,F),U=f(g,F,P);const j=v(g.slice(P,U));I[w]=j}R=F+1}while(R<y);return I}function d(g,_,I){do{const y=g.charCodeAt(_);if(y!==32&&y!==9)return _}while(++_<I);return I}function f(g,_,I){for(;_>I;){const y=g.charCodeAt(--_);if(y!==32&&y!==9)return _+1}return I}function A(g,_,I){const y=(I==null?void 0:I.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const v=y(_);if(!t.test(v))throw new TypeError(`argument val is invalid: ${_}`);let R=g+"="+v;if(!I)return R;if(I.maxAge!==void 0){if(!Number.isInteger(I.maxAge))throw new TypeError(`option maxAge is invalid: ${I.maxAge}`);R+="; Max-Age="+I.maxAge}if(I.domain){if(!n.test(I.domain))throw new TypeError(`option domain is invalid: ${I.domain}`);R+="; Domain="+I.domain}if(I.path){if(!r.test(I.path))throw new TypeError(`option path is invalid: ${I.path}`);R+="; Path="+I.path}if(I.expires){if(!E(I.expires)||!Number.isFinite(I.expires.valueOf()))throw new TypeError(`option expires is invalid: ${I.expires}`);R+="; Expires="+I.expires.toUTCString()}if(I.httpOnly&&(R+="; HttpOnly"),I.secure&&(R+="; Secure"),I.partitioned&&(R+="; Partitioned"),I.priority)switch(typeof I.priority=="string"?I.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${I.priority}`)}if(I.sameSite)switch(typeof I.sameSite=="string"?I.sameSite.toLowerCase():I.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${I.sameSite}`)}return R}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function E(g){return a.call(g)==="[object Date]"}return fl}iL();/**
51
+ * react-router v7.4.0
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var jS="popstate";function aL(e={}){function t(r,a){let{pathname:o,search:l,hash:d}=r.location;return Lp("",{pathname:o,search:l,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Ul(a)}return oL(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sL(){return Math.random().toString(36).substring(2,10)}function VS(e,t){return{usr:e.state,key:e.key,idx:t}}function Lp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xs(t):t,state:n,key:t&&t.key||r||sL()}}function Ul({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Xs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function oL(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,d="POP",f=null,A=m();A==null&&(A=0,l.replaceState({...l.state,idx:A},""));function m(){return(l.state||{idx:null}).idx}function E(){d="POP";let v=m(),R=v==null?null:v-A;A=v,f&&f({action:d,location:y.location,delta:R})}function g(v,R){d="PUSH";let D=Lp(y.location,v,R);A=m()+1;let x=VS(D,A),F=y.createHref(D);try{l.pushState(x,"",F)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;a.location.assign(F)}o&&f&&f({action:d,location:y.location,delta:1})}function _(v,R){d="REPLACE";let D=Lp(y.location,v,R);A=m();let x=VS(D,A),F=y.createHref(D);l.replaceState(x,"",F),o&&f&&f({action:d,location:y.location,delta:0})}function I(v){let R=a.location.origin!=="null"?a.location.origin:a.location.href,D=typeof v=="string"?v:Ul(v);return D=D.replace(/ $/,"%20"),Tt(R,`No window.location.(origin|href) available to create URL for href: ${D}`),new URL(D,R)}let y={get action(){return d},get location(){return e(a,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(jS,E),f=v,()=>{a.removeEventListener(jS,E),f=null}},createHref(v){return t(a,v)},createURL:I,encodeLocation(v){let R=I(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:_,go(v){return l.go(v)}};return y}function vv(e,t,n="/"){return lL(e,t,n,!1)}function lL(e,t,n,r){let a=typeof t=="string"?Xs(t):t,o=xu(a.pathname||"/",n);if(o==null)return null;let l=Rv(e);cL(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let A=IL(o);d=_L(l[f],A,r)}return d}function Rv(e,t=[],n=[],r=""){let a=(o,l,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(Tt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let A=Ru([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Rv(o.children,t,m,A)),!(o.path==null&&!o.index)&&t.push({path:A,score:EL(A,o.index),routesMeta:m})};return e.forEach((o,l)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,l);else for(let f of Dv(o.path))a(o,l,f)}),t}function Dv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Dv(r.join("/")),d=[];return d.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function cL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dL=/^:[\w-]+$/,fL=3,AL=2,hL=1,mL=10,pL=-2,zS=e=>e==="*";function EL(e,t){let n=e.split("/"),r=n.length;return n.some(zS)&&(r+=pL),t&&(r+=AL),n.filter(a=>!zS(a)).reduce((a,o)=>a+(dL.test(o)?fL:o===""?hL:mL),r)}function gL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function _L(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let d=0;d<r.length;++d){let f=r[d],A=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:A},m),g=f.route;if(!E&&A&&n&&!r[r.length-1].route.index&&(E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(a,E.params),l.push({params:a,pathname:Ru([o,E.pathname]),pathnameBase:vL(Ru([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Ru([o,E.pathnameBase]))}return l}function U0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=NL(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:r.reduce((A,{paramName:m,isOptional:E},g)=>{if(m==="*"){let I=d[g]||"";l=o.slice(0,o.length-I.length).replace(/(.)\/+$/,"$1")}const _=d[g];return E&&!_?A[m]=void 0:A[m]=(_||"").replace(/%2F/g,"/"),A},{}),pathname:o,pathnameBase:l,pattern:e}}function NL(e,t=!1,n=!0){Wr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function IL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SL(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Xs(e):e;return{pathname:n?n.startsWith("/")?n:CL(n,t):t,search:RL(r),hash:DL(a)}}function CL(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Rm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function yL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tv(e){let t=yL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function xv(e,t,n,r=!1){let a;typeof e=="string"?a=Xs(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Rm("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Rm("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Rm("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,d;if(l==null)d=n;else{let E=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),E-=1;a.pathname=g.join("/")}d=E>=0?t[E]:"/"}let f=SL(a,d),A=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(A||m)&&(f.pathname+="/"),f}var Ru=e=>e.join("/").replace(/\/\/+/g,"/"),vL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function TL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var bv=["POST","PUT","PATCH","DELETE"];new Set(bv);var xL=["GET",...bv];new Set(xL);var Js=C.createContext(null);Js.displayName="DataRouter";var xf=C.createContext(null);xf.displayName="DataRouterState";var Bv=C.createContext({isTransitioning:!1});Bv.displayName="ViewTransition";var bL=C.createContext(new Map);bL.displayName="Fetchers";var BL=C.createContext(null);BL.displayName="Await";var Jr=C.createContext(null);Jr.displayName="Navigation";var gc=C.createContext(null);gc.displayName="Location";var wu=C.createContext({outlet:null,matches:[],isDataRoute:!1});wu.displayName="Route";var eg=C.createContext(null);eg.displayName="RouteError";function OL(e,{relative:t}={}){Tt(_c(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Jr),{hash:a,pathname:o,search:l}=Nc(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Ru([n,o])),r.createHref({pathname:d,search:l,hash:a})}function _c(){return C.useContext(gc)!=null}function vi(){return Tt(_c(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(gc).location}var Ov="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fv(e){C.useContext(Jr).static||C.useLayoutEffect(e)}function FL(){let{isDataRoute:e}=C.useContext(wu);return e?YL():LL()}function LL(){Tt(_c(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Js),{basename:t,navigator:n}=C.useContext(Jr),{matches:r}=C.useContext(wu),{pathname:a}=vi(),o=JSON.stringify(Tv(r)),l=C.useRef(!1);return Fv(()=>{l.current=!0}),C.useCallback((f,A={})=>{if(Wr(l.current,Ov),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=xv(f,JSON.parse(o),a,A.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ru([t,m.pathname])),(A.replace?n.replace:n.push)(m,A.state,A)},[t,n,o,a,e])}C.createContext(null);function Nc(e,{relative:t}={}){let{matches:n}=C.useContext(wu),{pathname:r}=vi(),a=JSON.stringify(Tv(n));return C.useMemo(()=>xv(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function wL(e,t){return Lv(e,t)}function Lv(e,t,n,r){var D;Tt(_c(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=C.useContext(Jr),{matches:l}=C.useContext(wu),d=l[l.length-1],f=d?d.params:{},A=d?d.pathname:"/",m=d?d.pathnameBase:"/",E=d&&d.route;{let x=E&&E.path||"";wv(A,!E||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=vi(),_;if(t){let x=typeof t=="string"?Xs(t):t;Tt(m==="/"||((D=x.pathname)==null?void 0:D.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${x.pathname}" was given in the \`location\` prop.`),_=x}else _=g;let I=_.pathname||"/",y=I;if(m!=="/"){let x=m.replace(/^\//,"").split("/");y="/"+I.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:vv(e,{pathname:y});Wr(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Wr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=kL(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},f,x.params),pathname:Ru([m,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?m:Ru([m,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&R?C.createElement(gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function ML(){let e=KL(),t=TL(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:o},"ErrorBoundary")," or"," ",C.createElement("code",{style:o},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:a},n):null,l)}var HL=C.createElement(ML,null),PL=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?C.createElement(wu.Provider,{value:this.props.routeContext},C.createElement(eg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function UL({routeContext:e,match:t,children:n}){let r=C.useContext(Js);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(wu.Provider,{value:e},n)}function kL(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n==null?void 0:n.errors;if(o!=null){let f=a.findIndex(A=>A.route.id&&(o==null?void 0:o[A.route.id])!==void 0);Tt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,d=-1;if(n)for(let f=0;f<a.length;f++){let A=a[f];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(d=f),A.route.id){let{loaderData:m,errors:E}=n,g=A.route.loader&&!m.hasOwnProperty(A.route.id)&&(!E||E[A.route.id]===void 0);if(A.route.lazy||g){l=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,A,m)=>{let E,g=!1,_=null,I=null;n&&(E=o&&A.route.id?o[A.route.id]:void 0,_=A.route.errorElement||HL,l&&(d<0&&m===0?(wv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,I=null):d===m&&(g=!0,I=A.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=I:A.route.Component?R=C.createElement(A.route.Component,null):A.route.element?R=A.route.element:R=f,C.createElement(UL,{match:A,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:R})};return n&&(A.route.ErrorBoundary||A.route.errorElement||m===0)?C.createElement(PL,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function tg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GL(e){let t=C.useContext(Js);return Tt(t,tg(e)),t}function jL(e){let t=C.useContext(xf);return Tt(t,tg(e)),t}function VL(e){let t=C.useContext(wu);return Tt(t,tg(e)),t}function ng(e){let t=VL(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zL(){return ng("useRouteId")}function KL(){var r;let e=C.useContext(eg),t=jL("useRouteError"),n=ng("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function YL(){let{router:e}=GL("useNavigate"),t=ng("useNavigate"),n=C.useRef(!1);return Fv(()=>{n.current=!0}),C.useCallback(async(a,o={})=>{Wr(n.current,Ov),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var KS={};function wv(e,t,n){!t&&!KS[e]&&(KS[e]=!0,Wr(!1,n))}C.memo(ZL);function ZL({routes:e,future:t,state:n}){return Lv(e,void 0,n,t)}function Mv(e){Tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function WL({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!_c(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=Xs(n));let{pathname:f="/",search:A="",hash:m="",state:E=null,key:g="default"}=n,_=C.useMemo(()=>{let I=xu(f,l);return I==null?null:{location:{pathname:I,search:A,hash:m,state:E,key:g},navigationType:r}},[l,f,A,m,E,g,r]);return Wr(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${A}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:C.createElement(Jr.Provider,{value:d},C.createElement(gc.Provider,{children:t,value:_}))}function $L({children:e,location:t}){return wL(wp(e),t)}function wp(e,t=[]){let n=[];return C.Children.forEach(e,(r,a)=>{if(!C.isValidElement(r))return;let o=[...t,a];if(r.type===C.Fragment){n.push.apply(n,wp(r.props.children,o));return}Tt(r.type===Mv,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wp(r.props.children,o)),n.push(l)}),n}var S0="get",C0="application/x-www-form-urlencoded";function bf(e){return e!=null&&typeof e.tagName=="string"}function qL(e){return bf(e)&&e.tagName.toLowerCase()==="button"}function QL(e){return bf(e)&&e.tagName.toLowerCase()==="form"}function XL(e){return bf(e)&&e.tagName.toLowerCase()==="input"}function JL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ew(e,t){return e.button===0&&(!t||t==="_self")&&!JL(e)}var Xd=null;function tw(){if(Xd===null)try{new FormData(document.createElement("form"),0),Xd=!1}catch{Xd=!0}return Xd}var nw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dm(e){return e!=null&&!nw.has(e)?(Wr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${C0}"`),null):e}function rw(e,t){let n,r,a,o,l;if(QL(e)){let d=e.getAttribute("action");r=d?xu(d,t):null,n=e.getAttribute("method")||S0,a=Dm(e.getAttribute("enctype"))||C0,o=new FormData(e)}else if(qL(e)||XL(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?xu(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||S0,a=Dm(e.getAttribute("formenctype"))||Dm(d.getAttribute("enctype"))||C0,o=new FormData(d,e),!tw()){let{name:A,type:m,value:E}=e;if(m==="image"){let g=A?`${A}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else A&&o.append(A,E)}}else{if(bf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=S0,r=null,a=C0,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}function rg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function uw(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aw(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await uw(o,n);return l.links?l.links():[]}return[]}));return cw(r.flat(1).filter(iw).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function YS(e,t,n,r,a,o){let l=(f,A)=>n[A]?f.route.id!==n[A].route.id:!0,d=(f,A)=>{var m;return n[A].pathname!==f.pathname||((m=n[A].route.path)==null?void 0:m.endsWith("*"))&&n[A].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,A)=>l(f,A)||d(f,A)):o==="data"?t.filter((f,A)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,A)||d(f,A))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((E=n[0])==null?void 0:E.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function sw(e,t,{includeHydrateFallback:n}={}){return ow(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function ow(e){return[...new Set(e)]}function lw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function cw(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(lw(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function dw(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&xu(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Hv(){let e=C.useContext(Js);return rg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fw(){let e=C.useContext(xf);return rg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ug=C.createContext(void 0);ug.displayName="FrameworkContext";function Pv(){let e=C.useContext(ug);return rg(e,"You must render this element inside a <HydratedRouter> element"),e}function Aw(e,t){let n=C.useContext(ug),[r,a]=C.useState(!1),[o,l]=C.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:A,onMouseLeave:m,onTouchStart:E}=t,g=C.useRef(null);C.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=R=>{R.forEach(D=>{l(D.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),C.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let _=()=>{a(!0)},I=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Al(d,_),onBlur:Al(f,I),onMouseEnter:Al(A,_),onMouseLeave:Al(m,I),onTouchStart:Al(E,_)}]:[!1,g,{}]}function Al(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hw({page:e,...t}){let{router:n}=Hv(),r=C.useMemo(()=>vv(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(pw,{page:e,matches:r,...t}):null}function mw(e){let{manifest:t,routeModules:n}=Pv(),[r,a]=C.useState([]);return C.useEffect(()=>{let o=!1;return aw(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function pw({page:e,matches:t,...n}){let r=vi(),{manifest:a,routeModules:o}=Pv(),{basename:l}=Hv(),{loaderData:d,matches:f}=fw(),A=C.useMemo(()=>YS(e,t,f,a,r,"data"),[e,t,f,a,r]),m=C.useMemo(()=>YS(e,t,f,a,r,"assets"),[e,t,f,a,r]),E=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let I=new Set,y=!1;if(t.forEach(R=>{var x;let D=a.routes[R.route.id];!D||!D.hasLoader||(!A.some(F=>F.route.id===R.route.id)&&R.route.id in d&&((x=o[R.route.id])!=null&&x.shouldRevalidate)||D.hasClientLoader?y=!0:I.add(R.route.id))}),I.size===0)return[];let v=dw(e,l);return y&&I.size>0&&v.searchParams.set("_routes",t.filter(R=>I.has(R.route.id)).map(R=>R.route.id).join(",")),[v.pathname+v.search]},[l,d,r,a,A,t,e,o]),g=C.useMemo(()=>sw(m,a),[m,a]),_=mw(m);return C.createElement(C.Fragment,null,E.map(I=>C.createElement("link",{key:I,rel:"prefetch",as:"fetch",href:I,...n})),g.map(I=>C.createElement("link",{key:I,rel:"modulepreload",href:I,...n})),_.map(({key:I,link:y})=>C.createElement("link",{key:I,...y})))}function Ew(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uv&&(window.__reactRouterVersion="7.4.0")}catch{}function gw({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=aL({window:n,v5Compat:!0}));let a=r.current,[o,l]=C.useState({action:a.action,location:a.location}),d=C.useCallback(f=>{C.startTransition(()=>l(f))},[l]);return C.useLayoutEffect(()=>a.listen(d),[a,d]),C.createElement(WL,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var kv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gv=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:d,target:f,to:A,preventScrollReset:m,viewTransition:E,...g},_){let{basename:I}=C.useContext(Jr),y=typeof A=="string"&&kv.test(A),v,R=!1;if(typeof A=="string"&&y&&(v=A,Uv))try{let U=new URL(window.location.href),j=A.startsWith("//")?new URL(U.protocol+A):new URL(A),fe=xu(j.pathname,I);j.origin===U.origin&&fe!=null?A=fe+j.search+j.hash:R=!0}catch{Wr(!1,`<Link to="${A}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=OL(A,{relative:a}),[x,F,b]=Aw(r,g),O=Sw(A,{replace:l,state:d,target:f,preventScrollReset:m,relative:a,viewTransition:E});function w(U){t&&t(U),U.defaultPrevented||O(U)}let P=C.createElement("a",{...g,...b,href:v||D,onClick:R||o?t:w,ref:Ew(_,F),target:f,"data-discover":!y&&n==="render"?"true":void 0});return x&&!y?C.createElement(C.Fragment,null,P,C.createElement(hw,{page:D})):P});Gv.displayName="Link";var _w=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:d,children:f,...A},m){let E=Nc(l,{relative:A.relative}),g=vi(),_=C.useContext(xf),{navigator:I,basename:y}=C.useContext(Jr),v=_!=null&&Dw(E)&&d===!0,R=I.encodeLocation?I.encodeLocation(E).pathname:E.pathname,D=g.pathname,x=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(D=D.toLowerCase(),x=x?x.toLowerCase():null,R=R.toLowerCase()),x&&y&&(x=xu(x,y)||x);const F=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let b=D===R||!a&&D.startsWith(R)&&D.charAt(F)==="/",O=x!=null&&(x===R||!a&&x.startsWith(R)&&x.charAt(R.length)==="/"),w={isActive:b,isPending:O,isTransitioning:v},P=b?t:void 0,U;typeof r=="function"?U=r(w):U=[r,b?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j=typeof o=="function"?o(w):o;return C.createElement(Gv,{...A,"aria-current":P,className:U,ref:m,style:j,to:l,viewTransition:d},typeof f=="function"?f(w):f)});_w.displayName="NavLink";var Nw=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=S0,action:d,onSubmit:f,relative:A,preventScrollReset:m,viewTransition:E,...g},_)=>{let I=vw(),y=Rw(d,{relative:A}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&kv.test(d),D=x=>{if(f&&f(x),x.defaultPrevented)return;x.preventDefault();let F=x.nativeEvent.submitter,b=(F==null?void 0:F.getAttribute("formmethod"))||l;I(F||x.currentTarget,{fetcherKey:t,method:b,navigate:n,replace:a,state:o,relative:A,preventScrollReset:m,viewTransition:E})};return C.createElement("form",{ref:_,method:v,action:y,onSubmit:r?f:D,...g,"data-discover":!R&&e==="render"?"true":void 0})});Nw.displayName="Form";function Iw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jv(e){let t=C.useContext(Js);return Tt(t,Iw(e)),t}function Sw(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let d=FL(),f=vi(),A=Nc(e,{relative:o});return C.useCallback(m=>{if(ew(m,t)){m.preventDefault();let E=n!==void 0?n:Ul(f)===Ul(A);d(e,{replace:E,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[f,d,A,n,r,t,e,a,o,l])}var Cw=0,yw=()=>`__${String(++Cw)}__`;function vw(){let{router:e}=jv("useSubmit"),{basename:t}=C.useContext(Jr),n=zL();return C.useCallback(async(r,a={})=>{let{action:o,method:l,encType:d,formData:f,body:A}=rw(r,t);if(a.navigate===!1){let m=a.fetcherKey||yw();await e.fetch(m,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Rw(e,{relative:t}={}){let{basename:n}=C.useContext(Jr),r=C.useContext(wu);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Nc(e||".",{relative:t})},l=vi();if(e==null){o.search=l.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(E=>E).forEach(E=>d.append("index",E));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ru([n,o.pathname])),Ul(o)}function Dw(e,t={}){let n=C.useContext(Bv);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=jv("useViewTransitionState"),a=Nc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=xu(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=xu(n.nextLocation.pathname,r)||n.nextLocation.pathname;return U0(a.pathname,l)!=null||U0(a.pathname,o)!=null}new TextEncoder;var xa=rv();const Tw=Rf(xa);function Vv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Vv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bf(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Vv(e))&&(r&&(r+=" "),r+=t);return r}const ig="-",xw=e=>{const t=Bw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(ig);return d[0]===""&&d.length!==1&&d.shift(),zv(d,t)||bw(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},zv=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?zv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(ig);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},ZS=/^\[(.+)\]$/,bw=e=>{if(ZS.test(e)){const t=ZS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Bw=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Mp(n[a],r,a,t);return r},Mp=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:WS(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(Ow(a)){Mp(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{Mp(l,WS(t,o),n,r)})})},WS=(e,t)=>{let n=e;return t.split(ig).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ow=e=>e.isThemeGetter,Fw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},Hp="!",Pp=":",Lw=Pp.length,ww=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,d=0,f=0,A;for(let I=0;I<a.length;I++){let y=a[I];if(l===0&&d===0){if(y===Pp){o.push(a.slice(f,I)),f=I+Lw;continue}if(y==="/"){A=I;continue}}y==="["?l++:y==="]"?l--:y==="("?d++:y===")"&&d--}const m=o.length===0?a:a.substring(f),E=Mw(m),g=E!==m,_=A&&A>f?A-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const a=t+Pp,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},Mw=e=>e.endsWith(Hp)?e.substring(0,e.length-1):e.startsWith(Hp)?e.substring(1):e,Hw=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},Pw=e=>({cache:Fw(e.cacheSize),parseClassName:ww(e),sortModifiers:Hw(e),...xw(e)}),Uw=/\s+/,kw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],d=e.trim().split(Uw);let f="";for(let A=d.length-1;A>=0;A-=1){const m=d[A],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:I,maybePostfixModifierPosition:y}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!y,R=r(v?I.substring(0,y):I);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(I),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const D=o(g).join(":"),x=_?D+Hp:D,F=x+R;if(l.includes(F))continue;l.push(F);const b=a(R,v);for(let O=0;O<b.length;++O){const w=b[O];l.push(x+w)}f=m+(f.length>0?" "+f:f)}return f};function Gw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Kv(t))&&(r&&(r+=" "),r+=n);return r}const Kv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Kv(e[r]))&&(n&&(n+=" "),n+=t);return n};function jw(e,...t){let n,r,a,o=l;function l(f){const A=t.reduce((m,E)=>E(m),e());return n=Pw(A),r=n.cache.get,a=n.cache.set,o=d,d(f)}function d(f){const A=r(f);if(A)return A;const m=kw(f,n);return a(f,m),m}return function(){return o(Gw.apply(null,arguments))}}const tn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vw=/^\d+\/\d+$/,zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ww=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Es=e=>Vw.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),ia=e=>!!e&&Number.isInteger(Number(e)),$S=e=>e.endsWith("%")&&at(e.slice(0,-1)),si=e=>zw.test(e),$w=()=>!0,qw=e=>Kw.test(e)&&!Yw.test(e),ag=()=>!1,Qw=e=>Zw.test(e),Xw=e=>Ww.test(e),Jw=e=>!xe(e)&&!be(e),e2=e=>eo(e,qv,ag),xe=e=>Yv.test(e),aa=e=>eo(e,Qv,qw),Tm=e=>eo(e,d2,at),t2=e=>eo(e,Wv,ag),n2=e=>eo(e,$v,Xw),r2=e=>eo(e,ag,Qw),be=e=>Zv.test(e),Jd=e=>to(e,Qv),u2=e=>to(e,f2),i2=e=>to(e,Wv),a2=e=>to(e,qv),s2=e=>to(e,$v),o2=e=>to(e,A2,!0),eo=(e,t,n)=>{const r=Yv.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},to=(e,t,n=!1)=>{const r=Zv.exec(e);return r?r[1]?t(r[1]):n:!1},Wv=e=>e==="position",l2=new Set(["image","url"]),$v=e=>l2.has(e),c2=new Set(["length","size","percentage"]),qv=e=>c2.has(e),Qv=e=>e==="length",d2=e=>e==="number",f2=e=>e==="family-name",A2=e=>e==="shadow",h2=()=>{const e=tn("color"),t=tn("font"),n=tn("text"),r=tn("font-weight"),a=tn("tracking"),o=tn("leading"),l=tn("breakpoint"),d=tn("container"),f=tn("spacing"),A=tn("radius"),m=tn("shadow"),E=tn("inset-shadow"),g=tn("drop-shadow"),_=tn("blur"),I=tn("perspective"),y=tn("aspect"),v=tn("ease"),R=tn("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],O=()=>[be,xe,f],w=()=>[Es,"full","auto",...O()],P=()=>[ia,"none","subgrid",be,xe],U=()=>["auto",{span:["full",ia,be,xe]},be,xe],j=()=>[ia,"auto",be,xe],fe=()=>["auto","min","max","fr",be,xe],se=()=>["start","end","center","between","around","evenly","stretch","baseline"],de=()=>["start","end","center","stretch"],$=()=>["auto",...O()],J=()=>[Es,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],G=()=>[e,be,xe],ne=()=>[$S,aa],ee=()=>["","none","full",A,be,xe],Ee=()=>["",at,Jd,aa],H=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["","none",_,be,xe],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be,xe],te=()=>["none",at,be,xe],ce=()=>["none",at,be,xe],ge=()=>[at,be,xe],me=()=>[Es,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[si],breakpoint:[si],color:[$w],container:[si],"drop-shadow":[si],ease:["in","out","in-out"],font:[Jw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[si],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[si],shadow:[si],spacing:["px",at],text:[si],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Es,xe,be,y]}],container:["container"],columns:[{columns:[at,xe,be,d]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),xe,be]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ia,"auto",be,xe]}],basis:[{basis:[Es,"full","auto",d,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,Es,"auto","initial","none",xe]}],grow:[{grow:["",at,be,xe]}],shrink:[{shrink:["",at,be,xe]}],order:[{order:[ia,"first","last","none",be,xe]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...de(),"baseline"]}],"align-self":[{self:["auto",...de(),"baseline"]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,Jd,aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,be,Tm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$S,xe]}],"font-family":[{font:[u2,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,be,xe]}],"line-clamp":[{"line-clamp":[at,"none",be,Tm]}],leading:[{leading:[o,...O()]}],"list-image":[{"list-image":["none",be,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",be,aa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[at,"auto",be,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),i2,t2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",a2,e2]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ia,be,xe],radial:["",be,xe],conic:[ia,be,xe]},s2,n2]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,be,xe]}],"outline-w":[{outline:["",at,Jd,aa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,o2,r2]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",be,xe,E]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[at,aa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":G()}],opacity:[{opacity:[at,be,xe]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",be,xe]}],blur:[{blur:V()}],brightness:[{brightness:[at,be,xe]}],contrast:[{contrast:[at,be,xe]}],"drop-shadow":[{"drop-shadow":["","none",g,be,xe]}],grayscale:[{grayscale:["",at,be,xe]}],"hue-rotate":[{"hue-rotate":[at,be,xe]}],invert:[{invert:["",at,be,xe]}],saturate:[{saturate:[at,be,xe]}],sepia:[{sepia:["",at,be,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,xe]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[at,be,xe]}],"backdrop-contrast":[{"backdrop-contrast":[at,be,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,be,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,be,xe]}],"backdrop-invert":[{"backdrop-invert":["",at,be,xe]}],"backdrop-opacity":[{"backdrop-opacity":[at,be,xe]}],"backdrop-saturate":[{"backdrop-saturate":[at,be,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",at,be,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",be,xe]}],ease:[{ease:["linear","initial",v,be,xe]}],delay:[{delay:[at,be,xe]}],animate:[{animate:["none",R,be,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[I,be,xe]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[be,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,xe]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[at,Jd,aa,Tm]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Xv=jw(h2),Re=(...e)=>Xv(Bf(e)),Jv=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"button":"none",className:Re("group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-all duration-700 ease-in-out",typeof t<"u"&&!t&&"grid-rows-[1fr] overflow-x-auto",r&&"hover:grid-rows-[1fr] hover:overflow-x-auto",a&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:N.jsx("div",{style:{minHeight:`${o}px`},className:Re(r&&"group-hover/height-smoother:visible",a&&"group-focus/height-smoother:visible",n),children:e})}),m2=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...o})=>N.jsx("div",{className:Re("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",a),"aria-hidden":t,...o,children:N.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Re(r==="right"&&"ml-auto"),children:e})});/**
62
+ * @license lucide-react v0.483.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const p2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eR=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
67
+ * @license lucide-react v0.483.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */var E2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
+ * @license lucide-react v0.483.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const g2=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...d},f)=>C.createElement("svg",{ref:f,...E2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:eR("lucide",a),...d},[...l.map(([A,m])=>C.createElement(A,m)),...Array.isArray(o)?o:[o]]));/**
77
+ * @license lucide-react v0.483.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Ct=(e,t)=>{const n=C.forwardRef(({className:r,...a},o)=>C.createElement(g2,{ref:o,iconNode:t,className:eR(`lucide-${p2(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
82
+ * @license lucide-react v0.483.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const _2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],N2=Ct("ArrowLeft",_2);/**
87
+ * @license lucide-react v0.483.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const I2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],S2=Ct("ArrowUpFromLine",I2);/**
92
+ * @license lucide-react v0.483.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const C2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],no=Ct("Check",C2);/**
97
+ * @license lucide-react v0.483.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const y2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],tR=Ct("ChevronDown",y2);/**
102
+ * @license lucide-react v0.483.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const v2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],R2=Ct("ChevronLeft",v2);/**
107
+ * @license lucide-react v0.483.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const D2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],k0=Ct("ChevronRight",D2);/**
112
+ * @license lucide-react v0.483.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const T2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],x2=Ct("ChevronUp",T2);/**
117
+ * @license lucide-react v0.483.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const b2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],B2=Ct("ChevronsUpDown",b2);/**
122
+ * @license lucide-react v0.483.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const O2=[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],F2=Ct("CopyCheck",O2);/**
127
+ * @license lucide-react v0.483.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const L2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],w2=Ct("Copy",L2);/**
132
+ * @license lucide-react v0.483.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const M2=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],H2=Ct("Download",M2);/**
137
+ * @license lucide-react v0.483.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const P2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],U2=Ct("ExternalLink",P2);/**
142
+ * @license lucide-react v0.483.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const k2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],G2=Ct("EyeOff",k2);/**
147
+ * @license lucide-react v0.483.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const j2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],V2=Ct("Eye",j2);/**
152
+ * @license lucide-react v0.483.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],K2=Ct("Globe",z2);/**
157
+ * @license lucide-react v0.483.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const Y2=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],Z2=Ct("MoveVertical",Y2);/**
162
+ * @license lucide-react v0.483.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const W2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],nR=Ct("Pencil",W2);/**
167
+ * @license lucide-react v0.483.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const $2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Of=Ct("Plus",$2);/**
172
+ * @license lucide-react v0.483.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const q2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Q2=Ct("RotateCcw",q2);/**
177
+ * @license lucide-react v0.483.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const X2=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],qS=Ct("Save",X2);/**
182
+ * @license lucide-react v0.483.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const J2=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],e8=Ct("Search",J2);/**
187
+ * @license lucide-react v0.483.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const t8=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],sg=Ct("Trash",t8);/**
192
+ * @license lucide-react v0.483.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const n8=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],rR=Ct("WandSparkles",n8);/**
197
+ * @license lucide-react v0.483.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const r8=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ba=Ct("X",r8),uR=e=>{const[t,n]=C.useState(e);return C.useEffect(()=>{n(e??window.document.body)},[e]),t},u8={},QS=e=>{let t;const n=new Set,r=(m,E)=>{const g=typeof m=="function"?m(t):m;if(!Object.is(g,t)){const _=t;t=E??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(I=>I(t,_))}},a=()=>t,f={setState:r,getState:a,getInitialState:()=>A,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(u8?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},A=t=e(r,a,f);return f},i8=e=>e?QS(e):QS;var xm={exports:{}},bm={},Bm={exports:{}},Om={};/**
202
+ * @license React
203
+ * use-sync-external-store-shim.production.js
204
+ *
205
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
206
+ *
207
+ * This source code is licensed under the MIT license found in the
208
+ * LICENSE file in the root directory of this source tree.
209
+ */var XS;function a8(){if(XS)return Om;XS=1;var e=pc();function t(E,g){return E===g&&(E!==0||1/E===1/g)||E!==E&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function d(E,g){var _=g(),I=r({inst:{value:_,getSnapshot:g}}),y=I[0].inst,v=I[1];return o(function(){y.value=_,y.getSnapshot=g,f(y)&&v({inst:y})},[E,_,g]),a(function(){return f(y)&&v({inst:y}),E(function(){f(y)&&v({inst:y})})},[E]),l(_),_}function f(E){var g=E.getSnapshot;E=E.value;try{var _=g();return!n(E,_)}catch{return!0}}function A(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?A:d;return Om.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Om}var JS;function iR(){return JS||(JS=1,Bm.exports=a8()),Bm.exports}/**
210
+ * @license React
211
+ * use-sync-external-store-shim/with-selector.production.js
212
+ *
213
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
214
+ *
215
+ * This source code is licensed under the MIT license found in the
216
+ * LICENSE file in the root directory of this source tree.
217
+ */var e3;function s8(){if(e3)return bm;e3=1;var e=pc(),t=iR();function n(A,m){return A===m&&(A!==0||1/A===1/m)||A!==A&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,d=e.useMemo,f=e.useDebugValue;return bm.useSyncExternalStoreWithSelector=function(A,m,E,g,_){var I=o(null);if(I.current===null){var y={hasValue:!1,value:null};I.current=y}else y=I.current;I=d(function(){function R(O){if(!D){if(D=!0,x=O,O=g(O),_!==void 0&&y.hasValue){var w=y.value;if(_(w,O))return F=w}return F=O}if(w=F,r(x,O))return w;var P=g(O);return _!==void 0&&_(w,P)?(x=O,w):(x=O,F=P)}var D=!1,x,F,b=E===void 0?null:E;return[function(){return R(m())},b===null?void 0:function(){return R(b())}]},[m,E,g,_]);var v=a(A,I[0],I[1]);return l(function(){y.hasValue=!0,y.value=v},[v]),f(v),v},bm}var t3;function o8(){return t3||(t3=1,xm.exports=s8()),xm.exports}var l8=o8();const c8=Rf(l8),aR={},{useDebugValue:d8}=Ke,{useSyncExternalStoreWithSelector:f8}=c8;let n3=!1;const A8=e=>e;function h8(e,t=A8,n){(aR?"production":void 0)!=="production"&&n&&!n3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),n3=!0);const r=f8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return d8(r),r}const r3=e=>{(aR?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?i8(e):e,n=(r,a)=>h8(t,r,a);return Object.assign(n,t),n},sR=e=>e?r3(e):r3,m8=sR((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const o=a.scrollBlockers,l=o.find(d=>d.element===r);if(l){const f=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:o.map(A=>A.element===r?{...A,blockers:f}:A)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const o=a.scrollBlockers,l=o.find(d=>d.element===r);return l?l.blockers.length>1?{scrollBlockers:o.map(d=>d.element===r?{...d,blockers:d.blockers.filter(f=>f!==n)}:d)}:(r.style.overflowY="auto",{scrollBlockers:o.filter(d=>d.element!==r)}):{scrollBlockers:o}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function p8(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:E8}=Ke;function oR(e){const t=E8();return n=>{const r=e(n);return p8(t.current,r)?t.current:t.current=r}}const lR=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:o,removeBlockage:l}=m8(oR(A=>({isElementScrollBlocked:A.isElementScrollBlocked,addBlockage:A.addBlockage,removeBlockage:A.removeBlockage}))),d=uR(n);return C.useEffect(()=>{const A=n??window.document.body;t?o(r,A):l(r,A)},[o,t,n,r,l]),{isScrollBlocked:d?a(d):!1}},g8=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},_8=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},N8=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},u3=e=>{const t=g8(e),n=_8(),r=N8(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},I8=(e="md")=>{const[t,n]=C.useState(u3(e));return C.useEffect(()=>{const r=()=>{n(u3(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},S8=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;if(n>=0&&r<=window.innerHeight){const o=t.left+t.width/2,l=t.top+10,d=document.elementFromPoint(o,l);return e===d||e.contains(d)}return!1},i3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,a3=Bf,pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return a3(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(A=>{const m=n==null?void 0:n[A],E=o==null?void 0:o[A];if(m===null)return null;const g=i3(m)||i3(E);return a[A][g]}),d=n&&Object.entries(n).reduce((A,m)=>{let[E,g]=m;return g===void 0||(A[E]=g),A},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((A,m)=>{let{class:E,className:g,..._}=m;return Object.entries(_).every(I=>{let[y,v]=I;return Array.isArray(v)?v.includes({...o,...d}[y]):{...o,...d}[y]===v})?[...A,E,g]:A},[]);return a3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},C8=({className:e,strokeWidth:t=4})=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:Re("size-full",e),children:N.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})}),ks=({children:e,isLoading:t=!0,className:n,...r})=>N.jsx(N.Fragment,{children:t?N.jsx("div",{className:Re("flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",n),role:"status","aria-label":"Animated icon, meaning that the website is processing",...r,children:N.jsx(C8,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),Fm=pr("",{variants:{size:{sm:"size-3 absolute top-1/2 -translate-y-1/2",md:"size-4 absolute top-1/2 -translate-y-1/2",lg:"size-5 absolute top-1/2 -translate-y-1/2",xl:"size-6 absolute top-1/2 -translate-y-1/2","icon-sm":"size-3","icon-md":"size-4","icon-lg":"size-5","icon-xl":"size-6"},position:{left:"left-3",right:"right-3"}},defaultVariants:{size:"md"}}),y8=pr("relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"min-h-7 px-3 max-md:py-1 text-xs",md:"min-h-8 px-6 max-md:py-2 text-sm",lg:"min-h-10 px-8 max-md:py-3 text-lg",xl:"min-h-11 px-10 max-md:py-4 text-xl","icon-sm":"p-1.5","icon-md":"p-1.5","icon-lg":"p-2","icon-xl":"p-3"},color:{primary:"text-primary *:text-text-light",secondary:"text-secondary *:text-text-light",destructive:"text-destructive *:text-text-light",neutral:"text-neutral *:text-text-light",light:"text-white *:text-text-light",dark:"text-neutral-800 *:text-text-light",text:"text-text *:text-text-opposite","text-inverse":"text-text-opposite *:text-text",error:"text-error *:text-text-light",success:"text-success *:text-text-light",custom:""},variant:{default:"rounded-lg bg-current",none:"border-none bg-current/0 text-inherit hover:bg-current/0",outline:"*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",link:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline","invisible-link":"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",hoverable:"*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",input:["*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"]},textAlign:{left:"text-left",center:"text-center",right:"text-right"},isFullWidth:{true:"w-full",false:""},hasIconLeft:{true:"px-12",false:""},hasIconRight:{true:"pr-8",false:""}},defaultVariants:{variant:"default",size:"md",color:"primary",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),pt=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:o,iconClassName:l,isLoading:d,isActive:f,isFullWidth:A=!1,textAlign:m,disabled:E,label:g,className:_,type:I="button",...y})=>{const v=e==="link"||e==="invisible-link";return N.jsxs("button",{disabled:d||E,"aria-current":f?"page":void 0,"aria-label":g,"aria-busy":d,role:v?"link":void 0,type:I,className:y8({variant:e,size:t,color:n,isFullWidth:A,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof d<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...y,children:[a&&!d&&N.jsx(a,{className:Fm({size:t,className:l,position:"left"})}),N.jsx(ks,{className:Fm({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:Fm({size:t,className:l,position:"right"})})]})},v8=pr("flex text-text flex-col backdrop-blur",{variants:{roundedSize:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},transparency:{none:"bg-card",sm:"bg-card/90",md:"bg-card/70",lg:"bg-card/40",xl:"bg-card/20",full:""},padding:{none:"p-0",sm:"p-1",md:"p-2",lg:"p-3",xl:"p-4"},separator:{without:"",x:"divide-x divide-dashed divide-text/20",y:"divide-y divide-dashed divide-text/20",both:"divide-x divide-y divide-dashed divide-text/20"},border:{none:"",with:"border-[1.5px]"},borderColor:{primary:"border-primary",secondary:"border-secondary",neutral:"border-neutral",text:"border-text ",error:"border-error",warning:"border-warning",success:"border-success"},background:{none:"bg-inherit",hoverable:"!bg-opacity-5 backdrop-blur-0 hover:!bg-opacity-10 hover:backdrop-blur focus:!bg-opacity-10 focus:backdrop-blur aria-selected:!bg-opacity-15 aria-selected:backdrop-blur",with:""},gap:{none:"gap-0",sm:"gap-1",md:"gap-3",lg:"gap-5",xl:"gap-8","2xl":"gap-10"}},defaultVariants:{roundedSize:"md",border:"none",borderColor:"text",transparency:"md",padding:"none",separator:"without",gap:"none"}}),eu=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:l,borderColor:d,background:f,...A})=>N.jsx("div",{className:Re(v8({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:d,className:o})),...A,children:e}),Ff=sR((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),cR=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=I8("md"),A=C.useRef(null),m=C.useRef(null),{close:E,open:g,isOpen:_}=Ff(oR(y=>({close:()=>y.close(t),open:()=>y.open(t),isOpen:y.isOpen(t)})));lR({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),C.useEffect(()=>{const y=v=>{try{if(!A.current)return;const R=_&&a,D=v.target&&!A.current.contains(v.target),x=S8(A.current);(R&&D&&x||!v.target)&&(E(),d==null||d())}catch{E(),d==null||d()}};return window.addEventListener("mousedown",y),()=>window.removeEventListener("mousedown",y)},[_,E,d,a,t]),C.useEffect(()=>{l!==void 0&&(l?g():(E(),d==null||d()))},[E,g,d,l,t]);const I=y=>{y.target===y.currentTarget&&f&&(E(),d==null||d())};return N.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:N.jsx(m2,{isHidden:!_,align:"right",children:N.jsxs(eu,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:A,roundedSize:"none",children:[N.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[N.jsxs("div",{className:"flex justify-between gap-3",children:[N.jsx("div",{children:o&&N.jsx(pt,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:R2,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(pt,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:ba,size:"icon-md"})})]}),e&&N.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),N.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:N.jsx("div",{className:"flex flex-1 flex-col",onClick:I,ref:m,children:n})})]})})})},Ss=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),Lm=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),R8=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Ss(),...a}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Ss(),error:a,isFetched:!0,isSuccess:!1,errorCount:(((n=e.states[r])==null?void 0:n.errorCount)??0)+1,isLoading:!1,isInvalidated:!1}}}}case"SET_QUERIES_STATE":{const{keys:r,value:a}=t,o=[r].flat(),l=Object.keys(e.states),d=Lm(o,l);if(d.length===0)return e;const f=structuredClone(e.states);return d.forEach(A=>{f[A]={...e.states[A]??Ss(),...a}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,a=[r].flat();if(a.length===0)return e;const o=Object.keys(e.states),l=Lm(a,o);if(l.length===0)return e;const d={...e.states};return l.forEach(f=>{d[f]=Ss()}),{...e,states:d}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),a=Object.keys(e.states),o=Lm(r,a),l={};return a.forEach(d=>{l[d]=o.includes(d)?e.states[d]:Ss()}),{...e,states:l}}default:return e}},dR=C.createContext(null),D8=({children:e})=>{const[t,n]=C.useReducer(R8,{states:{}}),r=A=>t.states[A]??Ss(),a=(A,m)=>{n({type:"SET_QUERY_STATE",key:A,value:m})},o=(A,m)=>{n({type:"SET_QUERIES_STATE",keys:A,value:m})},l=(A,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:A,error:m})},d=A=>{n({type:"RESET_KEY_STATE",keys:A})},f=A=>{n({type:"RESET_STATE",excludeKeys:A})};return N.jsx(dR.Provider,{value:{getStates:r,setQueryState:a,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},T8=()=>{const e=C.useContext(dR);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},e0=new Map,x8=!1,b8=!1,B8=!0,O8=!1,F8=1,L8=!1,w8=5*60*1e3,M8=5*60*1e3,Up=e=>e?Array.isArray(e)?e:[e]:[],s3=(e,t)=>Up(t).length>0?`${e}/${JSON.stringify(t)}`:e,Ic=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??F8,a=(n==null?void 0:n.autoFetch)??O8,o=(n==null?void 0:n.retryTime)??M8,l=(n==null?void 0:n.cache)??x8,d=(n==null?void 0:n.store)??b8,f=(n==null?void 0:n.enable)??B8,A=(n==null?void 0:n.revalidation)??L8,m=(n==null?void 0:n.revalidateTime)??w8,E=(n==null?void 0:n.updateQueries)??[],g=(n==null?void 0:n.invalidateQueries)??[],_=n==null?void 0:n.onSuccess,I=n==null?void 0:n.onError,y=Up((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:D,makeQueryInError:x}=T8(),F=C.useRef(y),b=C.useRef(null),O=s3(e,F.current),{isFetched:w,fetchedDateTime:P,isLoading:U,isEnabled:j,error:fe,isSuccess:se,isInvalidated:de,data:$,errorCount:J}=v(O),G=async(...W)=>{const V=s3(e,W);b.current&&b.current.abort();const re=new AbortController;if(b.current=re,e0.has(V))return e0.get(V);const te=(async()=>{R(V,{isLoading:!0});let ce=null;return await t(...W).then(ge=>{ce=ge,R(V,{data:ge,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(ge),g.length>0&&D(g,{isInvalidated:!0}),E.length>0&&D(E,{data:ge}),d&&localStorage.setItem(V,JSON.stringify(ge))}).catch(ge=>{const me=ge instanceof Error?ge.message:String(ge);x(V,me),I==null||I(ge.message)}).finally(()=>{e0.delete(V)}),ce})();return e0.set(V,te),await te},ne=async(...W)=>{if(!(!j||!f))return W&&(F.current=Up(W)),await G(...F.current)},ee=async(...W)=>!j||!f||U?void 0:!de&&se&&l&&$?$:await ne(...W);C.useEffect(()=>{f!==j&&R(O,{isEnabled:j})},[f,j,O]),C.useEffect(()=>{if(!j||!f||!d||de||w||$)return;const W=localStorage.getItem(O);try{W&&R(O,{data:JSON.parse(W)})}catch(V){console.error(V)}},[d,O,w,de,j,f,$]),C.useEffect(()=>{a&&(!j||!f||w&&!de||U||G(...F.current))},[a,j,f,w,de,U,G]),C.useEffect(()=>{const W=J>0&&r>0,V=J>r;if(!j||!f||!W||V||!(l||d)||U||se)return;const re=setTimeout(()=>{G(...F.current)},o);return()=>clearTimeout(re)},[j,J,r,f,o,l,d,se,U,G]),C.useEffect(()=>{if(!A||m<=0||!j||!f||U||!se||!P||!(l||d))return;const W=setTimeout(()=>{G(...F.current)},m);return()=>clearTimeout(W)},[A,m,l,d,se,P,U,j,f,G]);const Ee=W=>{R(O,{data:W})},H={isFetched:w,isInvalidated:de,error:fe,data:$,errorCount:J,isSuccess:se,isEnabled:j,isDisabled:!j,isLoading:U,isWaitingData:U&&!w&&!$,isRevalidating:U&&w,[e]:ee,revalidate:ne,setData:Ee};return C.useEffect(()=>()=>{b.current&&b.current.abort()},[]),H},H8=e=>{var d;const t=Xr(),r=Df(void 0,e??t??Qe),{data:a,isFetched:o}=Ic("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(d=a==null?void 0:a.data)==null?void 0:d.csrf_token,csrfTokenFetched:o}},P8=e=>{const t=Xr(),n=e??t??Qe,r=Df(void 0,n),{data:a}=Ic("getOAuth2AccessToken",r.auth.getOAuth2AccessToken,{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:a==null?void 0:a.data}},U8=(e,t)=>{const n=Xr(),a=Df(void 0,t??n??Qe),{getSession:o,revalidate:l,data:d,setData:f,isFetched:A}=Ic("getSession",async()=>{try{const E=await a.auth.getSession();if(E.data){const{user:g,organization:_,project:I}=E.data;return{user:g,organization:_,isOrganizationAdmin:(g&&((_==null?void 0:_.adminsIds)??[]).includes(g._id))??!1,project:I,isProjectAdmin:(g&&((I==null?void 0:I.adminsIds)??[]).includes(g._id))??!1}}}catch(E){console.error(E)}return null},{cache:!0,store:!0,autoFetch:!0,enable:!e,invalidateQueries:["getOrganizations","getProjects","getUsers","getDictionaries"]});return{session:C.useMemo(()=>d??(A?null:void 0),[d,A]),fetchSession:o,revalidateSession:l,setSession:f}},Sc=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=H8(t),{session:a,fetchSession:o,revalidateSession:l,setSession:d}=U8(e,t),{oAuth2AccessToken:f}=P8(t);return{session:a,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(a!=null&&a.user||f),isProjectAdmin:a==null?void 0:a.isProjectAdmin,isOrganizationAdmin:a==null?void 0:a.isOrganizationAdmin}};function ot(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function o3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fR(...e){return t=>{let n=!1;const r=e.map(a=>{const o=o3(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():o3(e[a],null)}}}}function xt(...e){return C.useCallback(fR(...e),e)}function k8(e,t){const n=C.createContext(t),r=o=>{const{children:l,...d}=o,f=C.useMemo(()=>d,Object.values(d));return N.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function a(o){const l=C.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function Cc(e,t=[]){let n=[];function r(o,l){const d=C.createContext(l),f=n.length;n=[...n,l];const A=E=>{var R;const{scope:g,children:_,...I}=E,y=((R=g==null?void 0:g[e])==null?void 0:R[f])||d,v=C.useMemo(()=>I,Object.values(I));return N.jsx(y.Provider,{value:v,children:_})};A.displayName=o+"Provider";function m(E,g){var y;const _=((y=g==null?void 0:g[e])==null?void 0:y[f])||d,I=C.useContext(_);if(I)return I;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[A,m]}const a=()=>{const o=n.map(l=>C.createContext(l));return function(d){const f=(d==null?void 0:d[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[r,G8(a,...t)]}function G8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((d,{useScope:f,scopeName:A})=>{const E=f(o)[`__scope${A}`];return{...d,...E}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var _a=C.forwardRef((e,t)=>{const{children:n,...r}=e,a=C.Children.toArray(n),o=a.find(V8);if(o){const l=o.props.children,d=a.map(f=>f===o?C.Children.count(l)>1?C.Children.only(null):C.isValidElement(l)?l.props.children:null:f);return N.jsx(kp,{...r,ref:t,children:C.isValidElement(l)?C.cloneElement(l,void 0,d):null})}return N.jsx(kp,{...r,ref:t,children:n})});_a.displayName="Slot";var kp=C.forwardRef((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const a=K8(n),o=z8(r,n.props);return n.type!==C.Fragment&&(o.ref=t?fR(t,a):a),C.cloneElement(n,o)}return C.Children.count(n)>1?C.Children.only(null):null});kp.displayName="SlotClone";var j8=({children:e})=>N.jsx(N.Fragment,{children:e});function V8(e){return C.isValidElement(e)&&e.type===j8}function z8(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...d)=>{o(...d),a(...d)}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function K8(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function AR(e){const t=e+"CollectionProvider",[n,r]=Cc(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:I,children:y}=_,v=Ke.useRef(null),R=Ke.useRef(new Map).current;return N.jsx(a,{scope:I,itemMap:R,collectionRef:v,children:y})};l.displayName=t;const d=e+"CollectionSlot",f=Ke.forwardRef((_,I)=>{const{scope:y,children:v}=_,R=o(d,y),D=xt(I,R.collectionRef);return N.jsx(_a,{ref:D,children:v})});f.displayName=d;const A=e+"CollectionItemSlot",m="data-radix-collection-item",E=Ke.forwardRef((_,I)=>{const{scope:y,children:v,...R}=_,D=Ke.useRef(null),x=xt(I,D),F=o(A,y);return Ke.useEffect(()=>(F.itemMap.set(D,{ref:D,...R}),()=>void F.itemMap.delete(D))),N.jsx(_a,{[m]:"",ref:x,children:v})});E.displayName=A;function g(_){const I=o(e+"CollectionConsumer",_);return Ke.useCallback(()=>{const v=I.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(I.itemMap.values()).sort((F,b)=>R.indexOf(F.ref.current)-R.indexOf(b.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var Y8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=Y8.reduce((e,t)=>{const n=C.forwardRef((r,a)=>{const{asChild:o,...l}=r,d=o?_a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hR(e,t){e&&xa.flushSync(()=>e.dispatchEvent(t))}function qn(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Z8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e);C.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var W8="DismissableLayer",Gp="dismissableLayer.update",$8="dismissableLayer.pointerDownOutside",q8="dismissableLayer.focusOutside",l3,mR=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lf=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,A=C.useContext(mR),[m,E]=C.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=C.useState({}),I=xt(t,w=>E(w)),y=Array.from(A.layers),[v]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),R=y.indexOf(v),D=m?y.indexOf(m):-1,x=A.layersWithOutsidePointerEventsDisabled.size>0,F=D>=R,b=X8(w=>{const P=w.target,U=[...A.branches].some(j=>j.contains(P));!F||U||(a==null||a(w),l==null||l(w),w.defaultPrevented||d==null||d())},g),O=J8(w=>{const P=w.target;[...A.branches].some(j=>j.contains(P))||(o==null||o(w),l==null||l(w),w.defaultPrevented||d==null||d())},g);return Z8(w=>{D===A.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&d&&(w.preventDefault(),d()))},g),C.useEffect(()=>{if(m)return n&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(l3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(m)),A.layers.add(m),c3(),()=>{n&&A.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=l3)}},[m,g,n,A]),C.useEffect(()=>()=>{m&&(A.layers.delete(m),A.layersWithOutsidePointerEventsDisabled.delete(m),c3())},[m,A]),C.useEffect(()=>{const w=()=>_({});return document.addEventListener(Gp,w),()=>document.removeEventListener(Gp,w)},[]),N.jsx(nt.div,{...f,ref:I,style:{pointerEvents:x?F?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,b.onPointerDownCapture)})});Lf.displayName=W8;var Q8="DismissableLayerBranch",pR=C.forwardRef((e,t)=>{const n=C.useContext(mR),r=C.useRef(null),a=xt(t,r);return C.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),N.jsx(nt.div,{...e,ref:a})});pR.displayName=Q8;function X8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e),r=C.useRef(!1),a=C.useRef(()=>{});return C.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){ER($8,n,A,{discrete:!0})};const A={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function J8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e),r=C.useRef(!1);return C.useEffect(()=>{const a=o=>{o.target&&!r.current&&ER(q8,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function c3(){const e=new CustomEvent(Gp);document.dispatchEvent(e)}function ER(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?hR(a,o):a.dispatchEvent(o)}var eM=Lf,tM=pR,_n=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},nM="Portal",wf=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[a,o]=C.useState(!1);_n(()=>o(!0),[]);const l=n||a&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?Tw.createPortal(N.jsx(nt.div,{...r,ref:t}),l):null});wf.displayName=nM;function rM(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var yc=e=>{const{present:t,children:n}=e,r=uM(t),a=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=xt(r.ref,iM(a));return typeof n=="function"||r.isPresent?C.cloneElement(a,{ref:o}):null};yc.displayName="Presence";function uM(e){const[t,n]=C.useState(),r=C.useRef({}),a=C.useRef(e),o=C.useRef("none"),l=e?"mounted":"unmounted",[d,f]=rM(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const A=t0(r.current);o.current=d==="mounted"?A:"none"},[d]),_n(()=>{const A=r.current,m=a.current;if(m!==e){const g=o.current,_=t0(A);e?f("MOUNT"):_==="none"||(A==null?void 0:A.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),_n(()=>{if(t){let A;const m=t.ownerDocument.defaultView??window,E=_=>{const y=t0(r.current).includes(_.animationName);if(_.target===t&&y&&(f("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",A=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=t0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(A),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(A=>{A&&(r.current=getComputedStyle(A)),n(A)},[])}}function t0(e){return(e==null?void 0:e.animationName)||"none"}function iM(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function G0({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=aM({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=qn(n),f=C.useCallback(A=>{if(o){const E=typeof A=="function"?A(e):A;E!==e&&d(E)}else a(A)},[o,e,a,d]);return[l,f]}function aM({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,a=C.useRef(r),o=qn(t);return C.useEffect(()=>{a.current!==r&&(o(r),a.current=r)},[r,a,o]),n}var sM="VisuallyHidden",Mf=C.forwardRef((e,t)=>N.jsx(nt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Mf.displayName=sM;var og="ToastProvider",[lg,oM,lM]=AR("Toast"),[gR,cM]=Cc("Toast",[lM]),[dM,Hf]=gR(og),cg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:l}=e,[d,f]=C.useState(null),[A,m]=C.useState(0),E=C.useRef(!1),g=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${og}\`. Expected non-empty \`string\`.`),N.jsx(lg.Provider,{scope:t,children:N.jsx(dM,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:o,toastCount:A,viewport:d,onViewportChange:f,onToastAdd:C.useCallback(()=>m(_=>_+1),[]),onToastRemove:C.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};cg.displayName=og;var _R="ToastViewport",fM=["F8"],jp="toast.viewportPause",Vp="toast.viewportResume",dg=C.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=fM,label:a="Notifications ({hotkey})",...o}=e,l=Hf(_R,n),d=oM(n),f=C.useRef(null),A=C.useRef(null),m=C.useRef(null),E=C.useRef(null),g=xt(t,E,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=l.toastCount>0;C.useEffect(()=>{const v=R=>{var x;r.length!==0&&r.every(F=>R[F]||R.code===F)&&((x=E.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),C.useEffect(()=>{const v=f.current,R=E.current;if(I&&v&&R){const D=()=>{if(!l.isClosePausedRef.current){const O=new CustomEvent(jp);R.dispatchEvent(O),l.isClosePausedRef.current=!0}},x=()=>{if(l.isClosePausedRef.current){const O=new CustomEvent(Vp);R.dispatchEvent(O),l.isClosePausedRef.current=!1}},F=O=>{!v.contains(O.relatedTarget)&&x()},b=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",D),v.addEventListener("focusout",F),v.addEventListener("pointermove",D),v.addEventListener("pointerleave",b),window.addEventListener("blur",D),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",D),v.removeEventListener("focusout",F),v.removeEventListener("pointermove",D),v.removeEventListener("pointerleave",b),window.removeEventListener("blur",D),window.removeEventListener("focus",x)}}},[I,l.isClosePausedRef]);const y=C.useCallback(({tabbingDirection:v})=>{const D=d().map(x=>{const F=x.ref.current,b=[F,...vM(F)];return v==="forwards"?b:b.reverse()});return(v==="forwards"?D.reverse():D).flat()},[d]);return C.useEffect(()=>{const v=E.current;if(v){const R=D=>{var b,O,w;const x=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!x){const P=document.activeElement,U=D.shiftKey;if(D.target===v&&U){(b=A.current)==null||b.focus();return}const se=y({tabbingDirection:U?"backwards":"forwards"}),de=se.findIndex($=>$===P);wm(se.slice(de+1))?D.preventDefault():U?(O=A.current)==null||O.focus():(w=m.current)==null||w.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,y]),N.jsxs(tM,{ref:f,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:I?void 0:"none"},children:[I&&N.jsx(zp,{ref:A,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});wm(v)}}),N.jsx(lg.Slot,{scope:n,children:N.jsx(nt.ol,{tabIndex:-1,...o,ref:g})}),I&&N.jsx(zp,{ref:m,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});wm(v)}})]})});dg.displayName=_R;var NR="ToastFocusProxy",zp=C.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=Hf(NR,n);return N.jsx(Mf,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{var A;const d=l.relatedTarget;!((A=o.viewport)!=null&&A.contains(d))&&r()}})});zp.displayName=NR;var Pf="Toast",AM="toast.swipeStart",hM="toast.swipeMove",mM="toast.swipeCancel",pM="toast.swipeEnd",fg=C.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[d=!0,f]=G0({prop:r,defaultProp:a,onChange:o});return N.jsx(yc,{present:n||d,children:N.jsx(_M,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:qn(e.onPause),onResume:qn(e.onResume),onSwipeStart:ot(e.onSwipeStart,A=>{A.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ot(e.onSwipeMove,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","move"),A.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:ot(e.onSwipeCancel,A=>{A.currentTarget.setAttribute("data-swipe","cancel"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ot(e.onSwipeEnd,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","end"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});fg.displayName=Pf;var[EM,gM]=gR(Pf,{onClose(){}}),_M=C.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:o,onClose:l,onEscapeKeyDown:d,onPause:f,onResume:A,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...I}=e,y=Hf(Pf,n),[v,R]=C.useState(null),D=xt(t,$=>R($)),x=C.useRef(null),F=C.useRef(null),b=a||y.duration,O=C.useRef(0),w=C.useRef(b),P=C.useRef(0),{onToastAdd:U,onToastRemove:j}=y,fe=qn(()=>{var J;(v==null?void 0:v.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),l()}),se=C.useCallback($=>{!$||$===1/0||(window.clearTimeout(P.current),O.current=new Date().getTime(),P.current=window.setTimeout(fe,$))},[fe]);C.useEffect(()=>{const $=y.viewport;if($){const J=()=>{se(w.current),A==null||A()},G=()=>{const ne=new Date().getTime()-O.current;w.current=w.current-ne,window.clearTimeout(P.current),f==null||f()};return $.addEventListener(jp,G),$.addEventListener(Vp,J),()=>{$.removeEventListener(jp,G),$.removeEventListener(Vp,J)}}},[y.viewport,b,f,A,se]),C.useEffect(()=>{o&&!y.isClosePausedRef.current&&se(b)},[o,b,y.isClosePausedRef,se]),C.useEffect(()=>(U(),()=>j()),[U,j]);const de=C.useMemo(()=>v?yR(v):null,[v]);return y.viewport?N.jsxs(N.Fragment,{children:[de&&N.jsx(NM,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:de}),N.jsx(EM,{scope:n,onClose:fe,children:xa.createPortal(N.jsx(lg.ItemSlot,{scope:n,children:N.jsx(eM,{asChild:!0,onEscapeKeyDown:ot(d,()=>{y.isFocusedToastEscapeKeyDownRef.current||fe(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...I,ref:D,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ot(e.onKeyDown,$=>{$.key==="Escape"&&(d==null||d($.nativeEvent),$.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:ot(e.onPointerDown,$=>{$.button===0&&(x.current={x:$.clientX,y:$.clientY})}),onPointerMove:ot(e.onPointerMove,$=>{if(!x.current)return;const J=$.clientX-x.current.x,G=$.clientY-x.current.y,ne=!!F.current,ee=["left","right"].includes(y.swipeDirection),Ee=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=ee?Ee(0,J):0,W=ee?0:Ee(0,G),V=$.pointerType==="touch"?10:2,re={x:H,y:W},te={originalEvent:$,delta:re};ne?(F.current=re,n0(hM,E,te,{discrete:!1})):d3(re,y.swipeDirection,V)?(F.current=re,n0(AM,m,te,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(J)>V||Math.abs(G)>V)&&(x.current=null)}),onPointerUp:ot(e.onPointerUp,$=>{const J=F.current,G=$.target;if(G.hasPointerCapture($.pointerId)&&G.releasePointerCapture($.pointerId),F.current=null,x.current=null,J){const ne=$.currentTarget,ee={originalEvent:$,delta:J};d3(J,y.swipeDirection,y.swipeThreshold)?n0(pM,_,ee,{discrete:!0}):n0(mM,g,ee,{discrete:!0}),ne.addEventListener("click",Ee=>Ee.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),NM=e=>{const{__scopeToast:t,children:n,...r}=e,a=Hf(Pf,t),[o,l]=C.useState(!1),[d,f]=C.useState(!1);return CM(()=>l(!0)),C.useEffect(()=>{const A=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(A)},[]),d?null:N.jsx(wf,{asChild:!0,children:N.jsx(Mf,{...r,children:o&&N.jsxs(N.Fragment,{children:[a.label," ",n]})})})},IM="ToastTitle",Ag=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});Ag.displayName=IM;var SM="ToastDescription",hg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});hg.displayName=SM;var IR="ToastAction",mg=C.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(CR,{altText:n,asChild:!0,children:N.jsx(Uf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${IR}\`. Expected non-empty \`string\`.`),null)});mg.displayName=IR;var SR="ToastClose",Uf=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=gM(SR,n);return N.jsx(CR,{asChild:!0,children:N.jsx(nt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,a.onClose)})})});Uf.displayName=SR;var CR=C.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return N.jsx(nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function yR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),yM(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...yR(r))}}),t}function n0(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?hR(a,o):a.dispatchEvent(o)}var d3=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),o=r>a;return t==="left"||t==="right"?o&&r>n:!o&&a>n};function CM(e=()=>{}){const t=qn(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function yM(e){return e.nodeType===e.ELEMENT_NODE}function vM(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var RM=cg,vR=dg,RR=fg,DR=Ag,TR=hg,DM=mg,xR=Uf;const TM=Object.freeze(Object.defineProperty({__proto__:null,Action:DM,Close:xR,Description:TR,Provider:RM,Root:RR,Title:DR,Toast:fg,ToastAction:mg,ToastClose:Uf,ToastDescription:hg,ToastProvider:cg,ToastTitle:Ag,ToastViewport:dg,Viewport:vR,createToastScope:cM},Symbol.toStringTag,{value:"Module"})),xM=TM,bM=({className:e,...t})=>N.jsx(vR,{className:Re("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}),BM=pr("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md p-4 pr-6 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{error:"bg-error/40 text-text",success:"bg-success/30 text-text",default:"bg-card/80 text-text"}},defaultVariants:{variant:"default"}}),OM=({className:e,variant:t,...n})=>N.jsx(RR,{className:Re(BM({variant:t}),e),...n}),FM=({className:e,...t})=>N.jsx(xR,{className:Re("text-text/50 hover:text-text/80 focus:outline-hidden absolute right-1 top-1 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:N.jsx(ba,{className:"size-5"})}),LM=({className:e,...t})=>N.jsx(DR,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),wM=({className:e,...t})=>N.jsx(TR,{className:Re("text-sm opacity-90",e),...t}),MM=1,HM=15*60*1e3;let Mm=0;const PM=()=>(Mm=(Mm+1)%Number.MAX_SAFE_INTEGER,Mm.toString()),Hm=new Map,f3=e=>{if(Hm.has(e))return;const t=setTimeout(()=>{Hm.delete(e),Tl({type:"REMOVE_TOAST",toastId:e})},HM);Hm.set(e,t)},UM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,MM)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?f3(n):e.toasts.forEach(r=>{f3(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},y0=[];let v0={toasts:[]};const Tl=e=>{v0=UM(v0,e),y0.forEach(t=>{t(v0)})},kM=({...e})=>{const t=PM(),n=a=>Tl({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Tl({type:"DISMISS_TOAST",toastId:t});return Tl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},bR=()=>{const[e,t]=C.useState(v0);return C.useEffect(()=>(y0.push(t),()=>{const n=y0.indexOf(t);n>-1&&y0.splice(n,1)}),[e]),{...e,toast:kM,dismiss:n=>Tl({type:"DISMISS_TOAST",toastId:n})}},Mu=e=>{const t=Xr(),{csrfToken:n,oAuth2AccessToken:r}=Sc(),a=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return Df({headers:a,body:n?{csrf_token:n}:void 0},t)};var GM={};const BR=e=>{const{toast:t}=bR();return{...e,onError:n=>{var a;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(GM.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(a=e.onError)==null||a.call(e,n)},onSuccess:n=>{var r;n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},jM=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const a=Xr(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Sc({intlayerConfiguration:a}),f=(e==null?void 0:e.enable)??!0,A=d?d.user:l==null?void 0:l.user,m=d?d.organization:l==null?void 0:l.organization,E=d?d.project:l==null?void 0:l.project;return{...e,enable:f&&(t?!!A:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!d&&!!l)}},Ri=(e,t,n,r)=>{const a=jM(n??{},r),o=BR(a);return Ic(e,t,o)},VM=(e,t,n)=>{const r=BR({});return Ic(e,t,r)},zM=e=>Ri("logout",Mu().auth.logout,{invalidateQueries:["getSession"],...e}),KM=e=>Ri("getProjects",Mu().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),YM=e=>Ri("getDictionaries",Mu().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),ZM=e=>Ri("pushDictionaries",Mu().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),WM=e=>Ri("getTags",Mu().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),$M=e=>Ri("auditContentDeclaration",Mu().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),qM=e=>Ri("auditContentDeclarationField",Mu().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),QM=e=>Ri("autocomplete",Mu().ai.autocomplete,e),XM=e=>VM("writeDictionary",Mu().editor.writeDictionary);var Pm,A3;function JM(){if(A3)return Pm;A3=1;var e=function(D){return t(D)&&!n(D)};function t(R){return!!R&&typeof R=="object"}function n(R){var D=Object.prototype.toString.call(R);return D==="[object RegExp]"||D==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,a=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===a}function l(R){return Array.isArray(R)?[]:{}}function d(R,D){return D.clone!==!1&&D.isMergeableObject(R)?y(l(R),R,D):R}function f(R,D,x){return R.concat(D).map(function(F){return d(F,x)})}function A(R,D){if(!D.customMerge)return y;var x=D.customMerge(R);return typeof x=="function"?x:y}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(D){return Object.propertyIsEnumerable.call(R,D)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,D){try{return D in R}catch{return!1}}function _(R,D){return g(R,D)&&!(Object.hasOwnProperty.call(R,D)&&Object.propertyIsEnumerable.call(R,D))}function I(R,D,x){var F={};return x.isMergeableObject(R)&&E(R).forEach(function(b){F[b]=d(R[b],x)}),E(D).forEach(function(b){_(R,b)||(g(R,b)&&x.isMergeableObject(D[b])?F[b]=A(b,x)(R[b],D[b],x):F[b]=d(D[b],x))}),F}function y(R,D,x){x=x||{},x.arrayMerge=x.arrayMerge||f,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=d;var F=Array.isArray(D),b=Array.isArray(R),O=F===b;return O?F?x.arrayMerge(R,D,x):I(R,D,x):d(D,x)}y.all=function(D,x){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(F,b){return y(F,b,x)},{})};var v=y;return Pm=v,Pm}var eH=JM();const tH=Rf(eH);var vc=e=>e.type==="checkbox",fa=e=>e instanceof Date,yn=e=>e==null;const OR=e=>typeof e=="object";var Ut=e=>!yn(e)&&!Array.isArray(e)&&OR(e)&&!fa(e),FR=e=>Ut(e)&&e.target?vc(e.target)?e.target.checked:e.target.value:e,nH=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,LR=(e,t)=>e.has(nH(t)),rH=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},pg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function On(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(pg&&(e instanceof Blob||r))&&(n||Ut(e)))if(t=n?[]:{},!n&&!rH(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=On(e[a]));else return e;return t}var kf=e=>Array.isArray(e)?e.filter(Boolean):[],Pt=e=>e===void 0,Ie=(e,t,n)=>{if(!t||!Ut(e))return n;const r=kf(t.split(/[,[\].]+?/)).reduce((a,o)=>yn(a)?a:a[o],e);return Pt(r)||r===e?Pt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",Eg=e=>/^\w*$/.test(e),wR=e=>kf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const a=Eg(t)?[t]:wR(t),o=a.length,l=o-1;for(;++r<o;){const d=a[r];let f=n;if(r!==l){const A=e[d];f=Ut(A)||Array.isArray(A)?A:isNaN(+a[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}return e};const j0={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},MR=Ke.createContext(null),Di=()=>Ke.useContext(MR),uH=e=>{const{children:t,...n}=e;return Ke.createElement(MR.Provider,{value:n},t)};var HR=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const l=o;return t._proxyFormState[l]!==yr.all&&(t._proxyFormState[l]=!r||yr.all),n&&(n[l]=!0),e[l]}});return a},Fn=e=>Ut(e)&&!Object.keys(e).length,PR=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Fn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||yr.all))},xl=e=>Array.isArray(e)?e:[e],UR=(e,t,n)=>!e||!t||e===t||xl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function gg(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function iH(e){const t=Di(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[l,d]=Ke.useState(n._formState),f=Ke.useRef(!0),A=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=Ke.useRef(a);return m.current=a,gg({disabled:r,next:E=>f.current&&UR(m.current,E.name,o)&&PR(E,A.current,n._updateFormState)&&d({...n._formState,...E}),subject:n._subjects.state}),Ke.useEffect(()=>(f.current=!0,A.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),Ke.useMemo(()=>HR(l,n,A.current,!1),[l,n])}var Gr=e=>typeof e=="string",kR=(e,t,n,r,a)=>Gr(e)?(r&&t.watch.add(e),Ie(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ie(n,o))):(r&&(t.watchAll=!0),n);function aH(e){const t=Di(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:l}=e||{},d=Ke.useRef(r);d.current=r,gg({disabled:o,subject:n._subjects.values,next:m=>{UR(d.current,m.name,l)&&A(On(kR(d.current,n._names,m.values||n._formValues,!1,a)))}});const[f,A]=Ke.useState(n._getWatch(r,a));return Ke.useEffect(()=>n._removeUnmounted()),f}function sH(e){const t=Di(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,l=LR(a._names.array,n),d=aH({control:a,name:n,defaultValue:Ie(a._formValues,n,Ie(a._defaultValues,n,e.defaultValue)),exact:!0}),f=iH({control:a,name:n,exact:!0}),A=Ke.useRef(a.register(n,{...e.rules,value:d,...fr(e.disabled)?{disabled:e.disabled}:{}})),m=Ke.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(f.errors,n)}}),[f,n]),E=Ke.useMemo(()=>({name:n,value:d,...fr(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>A.current.onChange({target:{value:FR(g),name:n},type:j0.CHANGE}),onBlur:()=>A.current.onBlur({target:{value:Ie(a._formValues,n),name:n},type:j0.BLUR}),ref:g=>{const _=Ie(a._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:I=>g.setCustomValidity(I),reportValidity:()=>g.reportValidity()})}}),[n,a._formValues,r,f.disabled,d,a._fields]);return Ke.useEffect(()=>{const g=a._options.shouldUnregister||o,_=(I,y)=>{const v=Ie(a._fields,I);v&&v._f&&(v._f.mount=y)};if(_(n,!0),g){const I=On(Ie(a._options.defaultValues,n));At(a._defaultValues,n,I),Pt(Ie(a._formValues,n))&&At(a._formValues,n,I)}return!l&&a.register(n),()=>{(l?g&&!a._state.action:g)?a.unregister(n):_(n,!1)}},[n,a,l,o]),Ke.useEffect(()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})},[r,n,a]),Ke.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const oH=e=>e.render(sH(e));var GR=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},h3=e=>({isOnSubmit:!e||e===yr.onSubmit,isOnBlur:e===yr.onBlur,isOnChange:e===yr.onChange,isOnAll:e===yr.all,isOnTouch:e===yr.onTouched}),m3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const bl=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=Ie(e,a);if(o){const{_f:l,...d}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(bl(d,t))break}else if(Ut(d)&&bl(d,t))break}}};var lH=(e,t,n)=>{const r=xl(Ie(e,n));return At(r,"root",t[n]),At(e,n,r),e},_g=e=>e.type==="file",Ur=e=>typeof e=="function",V0=e=>{if(!pg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R0=e=>Gr(e),Ng=e=>e.type==="radio",z0=e=>e instanceof RegExp;const p3={value:!1,isValid:!1},E3={value:!0,isValid:!0};var jR=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Pt(e[0].attributes.value)?Pt(e[0].value)||e[0].value===""?E3:{value:e[0].value,isValid:!0}:E3:p3}return p3};const g3={isValid:!1,value:null};var VR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,g3):g3;function _3(e,t,n="validate"){if(R0(e)||Array.isArray(e)&&e.every(R0)||fr(e)&&!e)return{type:n,message:R0(e)?e:"",ref:t}}var gs=e=>Ut(e)&&!z0(e)?e:{value:e,message:""},N3=async(e,t,n,r,a,o)=>{const{ref:l,refs:d,required:f,maxLength:A,minLength:m,min:E,max:g,pattern:_,validate:I,name:y,valueAsNumber:v,mount:R}=e._f,D=Ie(n,y);if(!R||t.has(y))return{};const x=d?d[0]:l,F=se=>{a&&x.reportValidity&&(x.setCustomValidity(fr(se)?"":se||""),x.reportValidity())},b={},O=Ng(l),w=vc(l),P=O||w,U=(v||_g(l))&&Pt(l.value)&&Pt(D)||V0(l)&&l.value===""||D===""||Array.isArray(D)&&!D.length,j=GR.bind(null,y,r,b),fe=(se,de,$,J=Nu.maxLength,G=Nu.minLength)=>{const ne=se?de:$;b[y]={type:se?J:G,message:ne,ref:l,...j(se?J:G,ne)}};if(o?!Array.isArray(D)||!D.length:f&&(!P&&(U||yn(D))||fr(D)&&!D||w&&!jR(d).isValid||O&&!VR(d).isValid)){const{value:se,message:de}=R0(f)?{value:!!f,message:f}:gs(f);if(se&&(b[y]={type:Nu.required,message:de,ref:x,...j(Nu.required,de)},!r))return F(de),b}if(!U&&(!yn(E)||!yn(g))){let se,de;const $=gs(g),J=gs(E);if(!yn(D)&&!isNaN(D)){const G=l.valueAsNumber||D&&+D;yn($.value)||(se=G>$.value),yn(J.value)||(de=G<J.value)}else{const G=l.valueAsDate||new Date(D),ne=H=>new Date(new Date().toDateString()+" "+H),ee=l.type=="time",Ee=l.type=="week";Gr($.value)&&D&&(se=ee?ne(D)>ne($.value):Ee?D>$.value:G>new Date($.value)),Gr(J.value)&&D&&(de=ee?ne(D)<ne(J.value):Ee?D<J.value:G<new Date(J.value))}if((se||de)&&(fe(!!se,$.message,J.message,Nu.max,Nu.min),!r))return F(b[y].message),b}if((A||m)&&!U&&(Gr(D)||o&&Array.isArray(D))){const se=gs(A),de=gs(m),$=!yn(se.value)&&D.length>+se.value,J=!yn(de.value)&&D.length<+de.value;if(($||J)&&(fe($,se.message,de.message),!r))return F(b[y].message),b}if(_&&!U&&Gr(D)){const{value:se,message:de}=gs(_);if(z0(se)&&!D.match(se)&&(b[y]={type:Nu.pattern,message:de,ref:l,...j(Nu.pattern,de)},!r))return F(de),b}if(I){if(Ur(I)){const se=await I(D,n),de=_3(se,x);if(de&&(b[y]={...de,...j(Nu.validate,de.message)},!r))return F(de.message),b}else if(Ut(I)){let se={};for(const de in I){if(!Fn(se)&&!r)break;const $=_3(await I[de](D,n),x,de);$&&(se={...$,...j(de,$.message)},F($.message),r&&(b[y]=se))}if(!Fn(se)&&(b[y]={ref:x,...se},!r))return b}}return F(!0),b};function cH(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Pt(e)?r++:e[t[r++]];return e}function dH(e){for(const t in e)if(e.hasOwnProperty(t)&&!Pt(e[t]))return!1;return!0}function Zt(e,t){const n=Array.isArray(t)?t:Eg(t)?[t]:wR(t),r=n.length===1?e:cH(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Ut(r)&&Fn(r)||Array.isArray(r)&&dH(r))&&Zt(e,n.slice(0,-1)),e}var Um=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Kp=e=>yn(e)||!OR(e);function Ai(e,t){if(Kp(e)||Kp(t))return e===t;if(fa(e)&&fa(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const o=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const l=t[a];if(fa(o)&&fa(l)||Ut(o)&&Ut(l)||Array.isArray(o)&&Array.isArray(l)?!Ai(o,l):o!==l)return!1}}return!0}var zR=e=>e.type==="select-multiple",fH=e=>Ng(e)||vc(e),km=e=>V0(e)&&e.isConnected,KR=e=>{for(const t in e)if(Ur(e[t]))return!0;return!1};function K0(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const r in e)Array.isArray(e[r])||Ut(e[r])&&!KR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},K0(e[r],t[r])):yn(e[r])||(t[r]=!0);return t}function YR(e,t,n){const r=Array.isArray(e);if(Ut(e)||r)for(const a in e)Array.isArray(e[a])||Ut(e[a])&&!KR(e[a])?Pt(t)||Kp(n[a])?n[a]=Array.isArray(e[a])?K0(e[a],[]):{...K0(e[a])}:YR(e[a],yn(t)?{}:t[a],n[a]):n[a]=!Ai(e[a],t[a]);return n}var hl=(e,t)=>YR(e,t,K0(t)),ZR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Pt(e)?e:t?e===""?NaN:e&&+e:n&&Gr(e)?new Date(e):r?r(e):e;function Gm(e){const t=e.ref;return _g(t)?t.files:Ng(t)?VR(e.refs).value:zR(t)?[...t.selectedOptions].map(({value:n})=>n):vc(t)?jR(e.refs).value:ZR(Pt(t.value)?e.ref.value:t.value,e)}var AH=(e,t,n,r)=>{const a={};for(const o of e){const l=Ie(t,o);l&&At(a,o,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},ml=e=>Pt(e)?e:z0(e)?e.source:Ut(e)?z0(e.value)?e.value.source:e.value:e;const I3="AsyncFunction";var hH=e=>!!e&&!!e.validate&&!!(Ur(e.validate)&&e.validate.constructor.name===I3||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===I3)),mH=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function S3(e,t,n){const r=Ie(e,n);if(r||Eg(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),l=Ie(t,o),d=Ie(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:n}}var pH=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,EH=(e,t)=>!kf(Ie(e,t)).length&&Zt(e,t);const gH={mode:yr.onSubmit,reValidateMode:yr.onChange,shouldFocusError:!0};function _H(e={}){let t={...gH,...e},n={submitCount:0,isDirty:!1,isLoading:Ur(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Ut(t.defaultValues)||Ut(t.values)?On(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:On(a),l={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,A=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:Um(),array:Um(),state:Um()},g=h3(t.mode),_=h3(t.reValidateMode),I=t.criteriaMode===yr.all,y=k=>Q=>{clearTimeout(A),A=setTimeout(k,Q)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const Q=t.resolver?Fn((await P()).errors):await j(r,!0);Q!==n.isValid&&E.state.next({isValid:Q})}},R=(k,Q)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||Array.from(d.mount)).forEach(ue=>{ue&&(Q?At(n.validatingFields,ue,Q):Zt(n.validatingFields,ue))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Fn(n.validatingFields)}))},D=(k,Q=[],ue,ye,Se=!0,Ne=!0)=>{if(ye&&ue&&!t.disabled){if(l.action=!0,Ne&&Array.isArray(Ie(r,k))){const Be=ue(Ie(r,k),ye.argA,ye.argB);Se&&At(r,k,Be)}if(Ne&&Array.isArray(Ie(n.errors,k))){const Be=ue(Ie(n.errors,k),ye.argA,ye.argB);Se&&At(n.errors,k,Be),EH(n.errors,k)}if(m.touchedFields&&Ne&&Array.isArray(Ie(n.touchedFields,k))){const Be=ue(Ie(n.touchedFields,k),ye.argA,ye.argB);Se&&At(n.touchedFields,k,Be)}m.dirtyFields&&(n.dirtyFields=hl(a,o)),E.state.next({name:k,isDirty:se(k,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,Q)},x=(k,Q)=>{At(n.errors,k,Q),E.state.next({errors:n.errors})},F=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},b=(k,Q,ue,ye)=>{const Se=Ie(r,k);if(Se){const Ne=Ie(o,k,Pt(ue)?Ie(a,k):ue);Pt(Ne)||ye&&ye.defaultChecked||Q?At(o,k,Q?Ne:Gm(Se._f)):J(k,Ne),l.mount&&v()}},O=(k,Q,ue,ye,Se)=>{let Ne=!1,Be=!1;const Xe={name:k};if(!t.disabled){const Lt=!!(Ie(r,k)&&Ie(r,k)._f&&Ie(r,k)._f.disabled);if(!ue||ye){m.isDirty&&(Be=n.isDirty,n.isDirty=Xe.isDirty=se(),Ne=Be!==Xe.isDirty);const wt=Lt||Ai(Ie(a,k),Q);Be=!!(!Lt&&Ie(n.dirtyFields,k)),wt||Lt?Zt(n.dirtyFields,k):At(n.dirtyFields,k,!0),Xe.dirtyFields=n.dirtyFields,Ne=Ne||m.dirtyFields&&Be!==!wt}if(ue){const wt=Ie(n.touchedFields,k);wt||(At(n.touchedFields,k,ue),Xe.touchedFields=n.touchedFields,Ne=Ne||m.touchedFields&&wt!==ue)}Ne&&Se&&E.state.next(Xe)}return Ne?Xe:{}},w=(k,Q,ue,ye)=>{const Se=Ie(n.errors,k),Ne=m.isValid&&fr(Q)&&n.isValid!==Q;if(t.delayError&&ue?(f=y(()=>x(k,ue)),f(t.delayError)):(clearTimeout(A),f=null,ue?At(n.errors,k,ue):Zt(n.errors,k)),(ue?!Ai(Se,ue):Se)||!Fn(ye)||Ne){const Be={...ye,...Ne&&fr(Q)?{isValid:Q}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},P=async k=>{R(k,!0);const Q=await t.resolver(o,t.context,AH(k||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),Q},U=async k=>{const{errors:Q}=await P(k);if(k)for(const ue of k){const ye=Ie(Q,ue);ye?At(n.errors,ue,ye):Zt(n.errors,ue)}else n.errors=Q;return Q},j=async(k,Q,ue={valid:!0})=>{for(const ye in k){const Se=k[ye];if(Se){const{_f:Ne,...Be}=Se;if(Ne){const Xe=d.array.has(Ne.name),Lt=Se._f&&hH(Se._f);Lt&&m.validatingFields&&R([ye],!0);const wt=await N3(Se,d.disabled,o,I,t.shouldUseNativeValidation&&!Q,Xe);if(Lt&&m.validatingFields&&R([ye]),wt[Ne.name]&&(ue.valid=!1,Q))break;!Q&&(Ie(wt,Ne.name)?Xe?lH(n.errors,wt,Ne.name):At(n.errors,Ne.name,wt[Ne.name]):Zt(n.errors,Ne.name))}!Fn(Be)&&await j(Be,Q,ue)}}return ue.valid},fe=()=>{for(const k of d.unMount){const Q=Ie(r,k);Q&&(Q._f.refs?Q._f.refs.every(ue=>!km(ue)):!km(Q._f.ref))&&ge(k)}d.unMount=new Set},se=(k,Q)=>!t.disabled&&(k&&Q&&At(o,k,Q),!Ai(W(),a)),de=(k,Q,ue)=>kR(k,d,{...l.mount?o:Pt(Q)?a:Gr(k)?{[k]:Q}:Q},ue,Q),$=k=>kf(Ie(l.mount?o:a,k,t.shouldUnregister?Ie(a,k,[]):[])),J=(k,Q,ue={})=>{const ye=Ie(r,k);let Se=Q;if(ye){const Ne=ye._f;Ne&&(!Ne.disabled&&At(o,k,ZR(Q,Ne)),Se=V0(Ne.ref)&&yn(Q)?"":Q,zR(Ne.ref)?[...Ne.ref.options].forEach(Be=>Be.selected=Se.includes(Be.value)):Ne.refs?vc(Ne.ref)?Ne.refs.length>1?Ne.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Se)?!!Se.find(Xe=>Xe===Be.value):Se===Be.value)):Ne.refs[0]&&(Ne.refs[0].checked=!!Se):Ne.refs.forEach(Be=>Be.checked=Be.value===Se):_g(Ne.ref)?Ne.ref.value="":(Ne.ref.value=Se,Ne.ref.type||E.values.next({name:k,values:{...o}})))}(ue.shouldDirty||ue.shouldTouch)&&O(k,Se,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&H(k)},G=(k,Q,ue)=>{for(const ye in Q){const Se=Q[ye],Ne=`${k}.${ye}`,Be=Ie(r,Ne);(d.array.has(k)||Ut(Se)||Be&&!Be._f)&&!fa(Se)?G(Ne,Se,ue):J(Ne,Se,ue)}},ne=(k,Q,ue={})=>{const ye=Ie(r,k),Se=d.array.has(k),Ne=On(Q);At(o,k,Ne),Se?(E.array.next({name:k,values:{...o}}),(m.isDirty||m.dirtyFields)&&ue.shouldDirty&&E.state.next({name:k,dirtyFields:hl(a,o),isDirty:se(k,Ne)})):ye&&!ye._f&&!yn(Ne)?G(k,Ne,ue):J(k,Ne,ue),m3(k,d)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},ee=async k=>{l.mount=!0;const Q=k.target;let ue=Q.name,ye=!0;const Se=Ie(r,ue),Ne=()=>Q.type?Gm(Se._f):FR(k),Be=Xe=>{ye=Number.isNaN(Xe)||fa(Xe)&&isNaN(Xe.getTime())||Ai(Xe,Ie(o,ue,Xe))};if(Se){let Xe,Lt;const wt=Ne(),Mn=k.type===j0.BLUR||k.type===j0.FOCUS_OUT,cA=!mH(Se._f)&&!t.resolver&&!Ie(n.errors,ue)&&!Se._f.deps||pH(Mn,Ie(n.touchedFields,ue),n.isSubmitted,_,g),La=m3(ue,d,Mn);At(o,ue,wt),Mn?(Se._f.onBlur&&Se._f.onBlur(k),f&&f(0)):Se._f.onChange&&Se._f.onChange(k);const Ao=O(ue,wt,Mn,!1),dA=!Fn(Ao)||La;if(!Mn&&E.values.next({name:ue,type:k.type,values:{...o}}),cA)return m.isValid&&(t.mode==="onBlur"&&Mn?v():Mn||v()),dA&&E.state.next({name:ue,...La?{}:Ao});if(!Mn&&La&&E.state.next({...n}),t.resolver){const{errors:Hu}=await P([ue]);if(Be(wt),ye){const In=S3(n.errors,r,ue),Uc=S3(Hu,r,In.name||ue);Xe=Uc.error,ue=Uc.name,Lt=Fn(Hu)}}else R([ue],!0),Xe=(await N3(Se,d.disabled,o,I,t.shouldUseNativeValidation))[ue],R([ue]),Be(wt),ye&&(Xe?Lt=!1:m.isValid&&(Lt=await j(r,!0)));ye&&(Se._f.deps&&H(Se._f.deps),w(ue,Lt,Xe,Ao))}},Ee=(k,Q)=>{if(Ie(n.errors,Q)&&k.focus)return k.focus(),1},H=async(k,Q={})=>{let ue,ye;const Se=xl(k);if(t.resolver){const Ne=await U(Pt(k)?k:Se);ue=Fn(Ne),ye=k?!Se.some(Be=>Ie(Ne,Be)):ue}else k?(ye=(await Promise.all(Se.map(async Ne=>{const Be=Ie(r,Ne);return await j(Be&&Be._f?{[Ne]:Be}:Be)}))).every(Boolean),!(!ye&&!n.isValid)&&v()):ye=ue=await j(r);return E.state.next({...!Gr(k)||m.isValid&&ue!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:ue}:{},errors:n.errors}),Q.shouldFocus&&!ye&&bl(r,Ee,k?Se:d.mount),ye},W=k=>{const Q={...l.mount?o:a};return Pt(k)?Q:Gr(k)?Ie(Q,k):k.map(ue=>Ie(Q,ue))},V=(k,Q)=>({invalid:!!Ie((Q||n).errors,k),isDirty:!!Ie((Q||n).dirtyFields,k),error:Ie((Q||n).errors,k),isValidating:!!Ie(n.validatingFields,k),isTouched:!!Ie((Q||n).touchedFields,k)}),re=k=>{k&&xl(k).forEach(Q=>Zt(n.errors,Q)),E.state.next({errors:k?n.errors:{}})},te=(k,Q,ue)=>{const ye=(Ie(r,k,{_f:{}})._f||{}).ref,Se=Ie(n.errors,k)||{},{ref:Ne,message:Be,type:Xe,...Lt}=Se;At(n.errors,k,{...Lt,...Q,ref:ye}),E.state.next({name:k,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&ye&&ye.focus&&ye.focus()},ce=(k,Q)=>Ur(k)?E.values.subscribe({next:ue=>k(de(void 0,Q),ue)}):de(k,Q,!0),ge=(k,Q={})=>{for(const ue of k?xl(k):d.mount)d.mount.delete(ue),d.array.delete(ue),Q.keepValue||(Zt(r,ue),Zt(o,ue)),!Q.keepError&&Zt(n.errors,ue),!Q.keepDirty&&Zt(n.dirtyFields,ue),!Q.keepTouched&&Zt(n.touchedFields,ue),!Q.keepIsValidating&&Zt(n.validatingFields,ue),!t.shouldUnregister&&!Q.keepDefaultValue&&Zt(a,ue);E.values.next({values:{...o}}),E.state.next({...n,...Q.keepDirty?{isDirty:se()}:{}}),!Q.keepIsValid&&v()},me=({disabled:k,name:Q,field:ue,fields:ye})=>{(fr(k)&&l.mount||k||d.disabled.has(Q))&&(k?d.disabled.add(Q):d.disabled.delete(Q),O(Q,Gm(ue?ue._f:Ie(ye,Q)._f),!1,!1,!0))},ve=(k,Q={})=>{let ue=Ie(r,k);const ye=fr(Q.disabled)||fr(t.disabled);return At(r,k,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:k}},name:k,mount:!0,...Q}}),d.mount.add(k),ue?me({field:ue,disabled:fr(Q.disabled)?Q.disabled:t.disabled,name:k}):b(k,!0,Q.value),{...ye?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:ml(Q.min),max:ml(Q.max),minLength:ml(Q.minLength),maxLength:ml(Q.maxLength),pattern:ml(Q.pattern)}:{},name:k,onChange:ee,onBlur:ee,ref:Se=>{if(Se){ve(k,Q),ue=Ie(r,k);const Ne=Pt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Be=fH(Ne),Xe=ue._f.refs||[];if(Be?Xe.find(Lt=>Lt===Ne):Ne===ue._f.ref)return;At(r,k,{_f:{...ue._f,...Be?{refs:[...Xe.filter(km),Ne,...Array.isArray(Ie(a,k))?[{}]:[]],ref:{type:Ne.type,name:k}}:{ref:Ne}}}),b(k,!1,void 0,Ne)}else ue=Ie(r,k,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(LR(d.array,k)&&l.action)&&d.unMount.add(k)}}},je=()=>t.shouldFocusError&&bl(r,Ee,d.mount),we=k=>{fr(k)&&(E.state.next({disabled:k}),bl(r,(Q,ue)=>{const ye=Ie(r,ue);ye&&(Q.disabled=ye._f.disabled||k,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Se=>{Se.disabled=ye._f.disabled||k}))},0,!1))},Ze=(k,Q)=>async ue=>{let ye;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Se=On(o);if(d.disabled.size)for(const Ne of d.disabled)At(Se,Ne,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Ne,values:Be}=await P();n.errors=Ne,Se=Be}else await j(r);if(Zt(n.errors,"root"),Fn(n.errors)){E.state.next({errors:{}});try{await k(Se,ue)}catch(Ne){ye=Ne}}else Q&&await Q({...n.errors},ue),je(),setTimeout(je);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fn(n.errors)&&!ye,submitCount:n.submitCount+1,errors:n.errors}),ye)throw ye},it=(k,Q={})=>{Ie(r,k)&&(Pt(Q.defaultValue)?ne(k,On(Ie(a,k))):(ne(k,Q.defaultValue),At(a,k,On(Q.defaultValue))),Q.keepTouched||Zt(n.touchedFields,k),Q.keepDirty||(Zt(n.dirtyFields,k),n.isDirty=Q.defaultValue?se(k,On(Ie(a,k))):se()),Q.keepError||(Zt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},St=(k,Q={})=>{const ue=k?On(k):a,ye=On(ue),Se=Fn(k),Ne=Se?a:ye;if(Q.keepDefaultValues||(a=ue),!Q.keepValues){if(Q.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(hl(a,o))]);for(const Xe of Array.from(Be))Ie(n.dirtyFields,Xe)?At(Ne,Xe,Ie(o,Xe)):ne(Xe,Ie(Ne,Xe))}else{if(pg&&Pt(k))for(const Be of d.mount){const Xe=Ie(r,Be);if(Xe&&Xe._f){const Lt=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(V0(Lt)){const wt=Lt.closest("form");if(wt){wt.reset();break}}}}r={}}o=t.shouldUnregister?Q.keepDefaultValues?On(a):{}:On(Ne),E.array.next({values:{...Ne}}),E.values.next({values:{...Ne}})}d={mount:Q.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Ai(k,a)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?hl(a,o):n.dirtyFields:Q.keepDefaultValues&&k?hl(a,k):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qt=(k,Q)=>St(Ur(k)?k(o):k,Q);return{control:{register:ve,unregister:ge,getFieldState:V,handleSubmit:Ze,setError:te,_executeSchema:P,_getWatch:de,_getDirty:se,_updateValid:v,_removeUnmounted:fe,_updateFieldArray:D,_updateDisabledField:me,_getFieldArray:$,_reset:St,_resetDefaultValues:()=>Ur(t.defaultValues)&&t.defaultValues().then(k=>{qt(k,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:k=>{n={...n,...k}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:F,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(k){l=k},get _defaultValues(){return a},get _names(){return d},set _names(k){d=k},get _formState(){return n},set _formState(k){n=k},get _options(){return t},set _options(k){t={...t,...k}}},trigger:H,register:ve,handleSubmit:Ze,watch:ce,setValue:ne,getValues:W,reset:qt,resetField:it,clearErrors:re,unregister:ge,setError:te,setFocus:(k,Q={})=>{const ue=Ie(r,k),ye=ue&&ue._f;if(ye){const Se=ye.refs?ye.refs[0]:ye.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&Ur(Se.select)&&Se.select())}},getFieldState:V}}function NH(e={}){const t=Ke.useRef(void 0),n=Ke.useRef(void 0),[r,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Ur(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ur(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._H(e),formState:r});const o=t.current.control;return o._options=e,gg({subject:o._subjects.state,next:l=>{PR(l,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),Ke.useEffect(()=>{e.values&&!Ai(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=HR(r,o),t.current}const C3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ie(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},WR=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?C3(r.ref,n,e):r.refs&&r.refs.forEach(a=>C3(a,n,e))}},IH=(e,t)=>{t.shouldUseNativeValidation&&WR(e,t);const n={};for(const r in e){const a=Ie(t.fields,r),o=Object.assign(e[r]||{},{ref:a&&a.ref});if(SH(t.names||Object.keys(e),r)){const l=Object.assign({},Ie(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},SH=(e,t)=>e.some(n=>n.startsWith(t+".")),CH=e=>{const t=C.useId(),n=C.useMemo(()=>({id:t}),[t]);return N.jsx($R,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},$R=C.createContext({}),qR=C.createContext({}),yH=({...e})=>{const t=C.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(qR,{value:t,children:N.jsx(oH,{...e})})},Ti=()=>{const e=C.useContext(qR),t=C.useContext($R),{getFieldState:n,formState:r}=Di(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...a}},QR=pr("",{variants:{variant:{default:["w-full select-text resize-none rounded-xl border-2 bg-input-background text-base md:text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"],invisible:["w-full border-none bg-inherit text-inherit outline-hidden ring-0"]},size:{md:"px-2 md:py-1 py-3",lg:"p-4 md:py-2"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",size:"md",validationStyleEnabled:"disabled"}}),ro=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>N.jsx("input",{className:QR({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),vH=pr("",{variants:{variant:{default:["pointer rounded border-2 bg-input-background text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","checked:bg-checkbox-checked checked:border-checkbox-checked-border","disabled:opacity-50"]},size:{sm:"size-4",md:"size-5",lg:"size-6"},color:{primary:"accent-primary",secondary:"accent-secondary",destructive:"accent-destructive",neutral:"accent-neutral",light:"accent-light",text:"accent-text",dark:"accent-dark",error:"accent-error",success:"accent-success",custom:"accent-custom"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",color:"primary",validationStyleEnabled:"disabled",size:"md"}}),RH=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:a,className:o,...l})=>{const d=C.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:vH({variant:a,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},DH=e=>{const[t,n]=C.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},a=t?V2:G2;return N.jsxs("div",{className:"relative",children:[N.jsx(ro,{...e,"aria-label":"password",type:t?"text":"password"}),N.jsx("button",{"data-testid":"eye-icon",className:"absolute right-2 h-full flex-row items-center",onClick:r,"aria-label":t?"Hide password":"Show password",children:N.jsx(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},XR=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",QR({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),JR=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:o,...l})=>{const[d,f]=C.useState(!1),A=C.useRef(null),m=I=>{I.stopPropagation(),f(!1),n()},E=I=>{I.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=C.useCallback(I=>{const y=window.getSelection();y&&y.toString().trim()!==""||A.current&&!A.current.contains(I.target)&&(f(!1),n())},[n]);return C.useEffect(()=>(d?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,d]),N.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:I=>{f(!0),r==null||r(I)},ref:A,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"display":"hidden"),children:[a,N.jsx(pt,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:no,onClick:m,disabled:o,className:"!text-current"}),N.jsx(pt,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:ba,onClick:E,disabled:o})]},String(d)),N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"hidden":"display"),children:[N.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:g}),N.jsx(pt,{label:"Edit",Icon:nR,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:I=>{I.stopPropagation(),f(!0)}})]})]})},e9=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null),o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()};C.useImperativeHandle(n,()=>a.current);const d=C.useMemo(()=>{var A;return r.value??((A=a.current)==null?void 0:A.value)??r.defaultValue},[r.value,r.defaultValue,(f=a.current)==null?void 0:f.value]);return N.jsx(JR,{value:d,onCancel:l,onSave:o,children:N.jsx(ro,{ref:a,...r})})},y3=24,v3=12,Ig=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...o})=>{const l=C.useRef(null);C.useImperativeHandle(a,()=>l.current);const d=C.useCallback(()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=y3*r+v3,I=y3+v3;E.height=Math.max(Math.min(g,_),I)+"px"},[t,r]);C.useEffect(()=>{d()},[o.value,o.defaultValue,d]);const f=m=>{n==null||n(m),d()},A=C.useCallback(m=>{l.current=m,m&&d()},[d]);return N.jsx(XR,{ref:A,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},t9=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null);C.useImperativeHandle(n,()=>a.current);const o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()},d=r.value??((f=a.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(JR,{value:d,onCancel:l,onSave:o,onClick:A=>{A.preventDefault(),A.stopPropagation()},children:N.jsx(Ig,{className:"leading-6",ref:a,onClick:A=>{A.preventDefault(),A.stopPropagation()},...r})})},TH=pr("focus:ring-ring inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2",{variants:{color:{primary:"border-primary bg-primary text-primary hover:bg-primary-500",secondary:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",destructive:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",neutral:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",light:"border-white bg-white text-white hover:bg-neutral-500",dark:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",text:"border-text bg-text text-text hover:opacity-80",custom:""},variant:{default:"rounded-lg text-text-opposite",none:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",outline:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",hoverable:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"}},defaultVariants:{variant:"default",color:"primary"}}),xH=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(TH({variant:t,color:n}),e),...r});var bH=RO.useId||(()=>{}),BH=0;function mr(e){const[t,n]=C.useState(bH());return _n(()=>{n(r=>r??String(BH++))},[e]),t?`radix-${t}`:""}var jm="focusScope.autoFocusOnMount",Vm="focusScope.autoFocusOnUnmount",R3={bubbles:!1,cancelable:!0},OH="FocusScope",Sg=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[d,f]=C.useState(null),A=qn(a),m=qn(o),E=C.useRef(null),g=xt(t,y=>f(y)),_=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let y=function(x){if(_.paused||!d)return;const F=x.target;d.contains(F)?E.current=F:di(E.current,{select:!0})},v=function(x){if(_.paused||!d)return;const F=x.relatedTarget;F!==null&&(d.contains(F)||di(E.current,{select:!0}))},R=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&di(d)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const D=new MutationObserver(R);return d&&D.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),D.disconnect()}}},[r,d,_.paused]),C.useEffect(()=>{if(d){T3.add(_);const y=document.activeElement;if(!d.contains(y)){const R=new CustomEvent(jm,R3);d.addEventListener(jm,A),d.dispatchEvent(R),R.defaultPrevented||(FH(PH(n9(d)),{select:!0}),document.activeElement===y&&di(d))}return()=>{d.removeEventListener(jm,A),setTimeout(()=>{const R=new CustomEvent(Vm,R3);d.addEventListener(Vm,m),d.dispatchEvent(R),R.defaultPrevented||di(y??document.body,{select:!0}),d.removeEventListener(Vm,m),T3.remove(_)},0)}}},[d,A,m,_]);const I=C.useCallback(y=>{if(!n&&!r||_.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,R=document.activeElement;if(v&&R){const D=y.currentTarget,[x,F]=LH(D);x&&F?!y.shiftKey&&R===F?(y.preventDefault(),n&&di(x,{select:!0})):y.shiftKey&&R===x&&(y.preventDefault(),n&&di(F,{select:!0})):R===D&&y.preventDefault()}},[n,r,_.paused]);return N.jsx(nt.div,{tabIndex:-1,...l,ref:g,onKeyDown:I})});Sg.displayName=OH;function FH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(di(r,{select:t}),document.activeElement!==n)return}function LH(e){const t=n9(e),n=D3(t,e),r=D3(t.reverse(),e);return[n,r]}function n9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function D3(e,t){for(const n of e)if(!wH(n,{upTo:t}))return n}function wH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function MH(e){return e instanceof HTMLInputElement&&"select"in e}function di(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&MH(e)&&t&&e.select()}}var T3=HH();function HH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=x3(e,t),e.unshift(t)},remove(t){var n;e=x3(e,t),(n=e[0])==null||n.resume()}}}function x3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function PH(e){return e.filter(t=>t.tagName!=="A")}var zm=0;function r9(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??b3()),document.body.insertAdjacentElement("beforeend",e[1]??b3()),zm++,()=>{zm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zm--}},[])}function b3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var kr=function(){return kr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kr.apply(this,arguments)};function u9(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function UH(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var D0="right-scroll-bar-position",T0="width-before-scroll-bar",kH="with-scroll-bars-hidden",GH="--removed-body-scroll-bar-size";function Km(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jH(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var VH=typeof window<"u"?C.useLayoutEffect:C.useEffect,B3=new WeakMap;function zH(e,t){var n=jH(null,function(r){return e.forEach(function(a){return Km(a,r)})});return VH(function(){var r=B3.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(d){o.has(d)||Km(d,null)}),o.forEach(function(d){a.has(d)||Km(d,l)})}B3.set(n,e)},[e]),n}function KH(e){return e}function YH(e,t){t===void 0&&(t=KH);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(d){return o(d)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},A=function(){return Promise.resolve().then(f)};A(),n={push:function(m){l.push(m),A()},filter:function(m){return l=l.filter(m),n}}}};return a}function ZH(e){e===void 0&&(e={});var t=YH(null);return t.options=kr({async:!0,ssr:!1},e),t}var i9=function(e){var t=e.sideCar,n=u9(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,kr({},n))};i9.isSideCarExport=!0;function WH(e,t){return e.useMedium(t),i9}var a9=ZH(),Ym=function(){},Gf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Ym,onWheelCapture:Ym,onTouchMoveCapture:Ym}),a=r[0],o=r[1],l=e.forwardProps,d=e.children,f=e.className,A=e.removeScrollBar,m=e.enabled,E=e.shards,g=e.sideCar,_=e.noIsolation,I=e.inert,y=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,D=e.gapMode,x=u9(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=g,b=zH([n,t]),O=kr(kr({},x),a);return C.createElement(C.Fragment,null,m&&C.createElement(F,{sideCar:a9,removeScrollBar:A,shards:E,noIsolation:_,inert:I,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:D}),l?C.cloneElement(C.Children.only(d),kr(kr({},O),{ref:b})):C.createElement(R,kr({},O,{className:f,ref:b}),d))});Gf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gf.classNames={fullWidth:T0,zeroRight:D0};var $H=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$H();return t&&e.setAttribute("nonce",t),e}function QH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qH())&&(QH(t,n),XH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eP=function(){var e=JH();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s9=function(){var e=eP(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},tP={left:0,top:0,right:0,gap:0},Zm=function(e){return parseInt(e||"",10)||0},nP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Zm(n),Zm(r),Zm(a)]},rP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tP;var t=nP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},uP=s9(),Ls="data-scroll-locked",iP=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
218
+ .`.concat(kH,` {
219
+ overflow: hidden `).concat(r,`;
220
+ padding-right: `).concat(d,"px ").concat(r,`;
221
+ }
222
+ body[`).concat(Ls,`] {
223
+ overflow: hidden `).concat(r,`;
224
+ overscroll-behavior: contain;
225
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
226
+ padding-left: `.concat(a,`px;
227
+ padding-top: `).concat(o,`px;
228
+ padding-right: `).concat(l,`px;
229
+ margin-left:0;
230
+ margin-top:0;
231
+ margin-right: `).concat(d,"px ").concat(r,`;
232
+ `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
233
+ }
234
+
235
+ .`).concat(D0,` {
236
+ right: `).concat(d,"px ").concat(r,`;
237
+ }
238
+
239
+ .`).concat(T0,` {
240
+ margin-right: `).concat(d,"px ").concat(r,`;
241
+ }
242
+
243
+ .`).concat(D0," .").concat(D0,` {
244
+ right: 0 `).concat(r,`;
245
+ }
246
+
247
+ .`).concat(T0," .").concat(T0,` {
248
+ margin-right: 0 `).concat(r,`;
249
+ }
250
+
251
+ body[`).concat(Ls,`] {
252
+ `).concat(GH,": ").concat(d,`px;
253
+ }
254
+ `)},O3=function(){var e=parseInt(document.body.getAttribute(Ls)||"0",10);return isFinite(e)?e:0},aP=function(){C.useEffect(function(){return document.body.setAttribute(Ls,(O3()+1).toString()),function(){var e=O3()-1;e<=0?document.body.removeAttribute(Ls):document.body.setAttribute(Ls,e.toString())}},[])},sP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;aP();var o=C.useMemo(function(){return rP(a)},[a]);return C.createElement(uP,{styles:iP(o,!t,a,n?"":"!important")})},Yp=!1;if(typeof window<"u")try{var r0=Object.defineProperty({},"passive",{get:function(){return Yp=!0,!0}});window.addEventListener("test",r0,r0),window.removeEventListener("test",r0,r0)}catch{Yp=!1}var _s=Yp?{passive:!1}:!1,oP=function(e){return e.tagName==="TEXTAREA"},o9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oP(e)&&n[t]==="visible")},lP=function(e){return o9(e,"overflowY")},cP=function(e){return o9(e,"overflowX")},F3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=l9(e,r);if(a){var o=c9(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},l9=function(e,t){return e==="v"?lP(t):cP(t)},c9=function(e,t){return e==="v"?dP(t):fP(t)},AP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,n,r,a){var o=AP(e,window.getComputedStyle(t).direction),l=o*r,d=n.target,f=t.contains(d),A=!1,m=l>0,E=0,g=0;do{var _=c9(e,d),I=_[0],y=_[1],v=_[2],R=y-v-o*I;(I||R)&&l9(e,d)&&(E+=R,g+=I),d instanceof ShadowRoot?d=d.host:d=d.parentNode}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(m&&Math.abs(E)<1||!m&&Math.abs(g)<1)&&(A=!0),A},u0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L3=function(e){return[e.deltaX,e.deltaY]},w3=function(e){return e&&"current"in e?e.current:e},mP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pP=function(e){return`
255
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
256
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
257
+ `)},EP=0,Ns=[];function gP(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),a=C.useState(EP++)[0],o=C.useState(s9)[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=UH([e.lockRef.current],(e.shards||[]).map(w3),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var R=u0(y),D=n.current,x="deltaX"in y?y.deltaX:D[0]-R[0],F="deltaY"in y?y.deltaY:D[1]-R[1],b,O=y.target,w=Math.abs(x)>Math.abs(F)?"h":"v";if("touches"in y&&w==="h"&&O.type==="range")return!1;var P=F3(w,O);if(!P)return!0;if(P?b=w:(b=w==="v"?"h":"v",P=F3(w,O)),!P)return!1;if(!r.current&&"changedTouches"in y&&(x||F)&&(r.current=b),!b)return!0;var U=r.current||b;return hP(U,v,y,U==="h"?x:F)},[]),f=C.useCallback(function(y){var v=y;if(!(!Ns.length||Ns[Ns.length-1]!==o)){var R="deltaY"in v?L3(v):u0(v),D=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&mP(b.delta,R)})[0];if(D&&D.should){v.cancelable&&v.preventDefault();return}if(!D){var x=(l.current.shards||[]).map(w3).filter(Boolean).filter(function(b){return b.contains(v.target)}),F=x.length>0?d(v,x[0]):!l.current.noIsolation;F&&v.cancelable&&v.preventDefault()}}},[]),A=C.useCallback(function(y,v,R,D){var x={name:y,delta:v,target:R,should:D,shadowParent:_P(R)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(F){return F!==x})},1)},[]),m=C.useCallback(function(y){n.current=u0(y),r.current=void 0},[]),E=C.useCallback(function(y){A(y.type,L3(y),y.target,d(y,e.lockRef.current))},[]),g=C.useCallback(function(y){A(y.type,u0(y),y.target,d(y,e.lockRef.current))},[]);C.useEffect(function(){return Ns.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,_s),document.addEventListener("touchmove",f,_s),document.addEventListener("touchstart",m,_s),function(){Ns=Ns.filter(function(y){return y!==o}),document.removeEventListener("wheel",f,_s),document.removeEventListener("touchmove",f,_s),document.removeEventListener("touchstart",m,_s)}},[]);var _=e.removeScrollBar,I=e.inert;return C.createElement(C.Fragment,null,I?C.createElement(o,{styles:pP(a)}):null,_?C.createElement(sP,{gapMode:e.gapMode}):null)}function _P(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NP=WH(a9,gP);var Cg=C.forwardRef(function(e,t){return C.createElement(Gf,kr({},e,{ref:t,sideCar:NP}))});Cg.classNames=Gf.classNames;var IP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Is=new WeakMap,i0=new WeakMap,a0={},Wm=0,d9=function(e){return e&&(e.host||d9(e.parentNode))},SP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},CP=function(e,t,n,r){var a=SP(t,Array.isArray(e)?e:[e]);a0[n]||(a0[n]=new WeakMap);var o=a0[n],l=[],d=new Set,f=new Set(a),A=function(E){!E||d.has(E)||(d.add(E),A(E.parentNode))};a.forEach(A);var m=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(g){if(d.has(g))m(g);else try{var _=g.getAttribute(r),I=_!==null&&_!=="false",y=(Is.get(g)||0)+1,v=(o.get(g)||0)+1;Is.set(g,y),o.set(g,v),l.push(g),y===1&&I&&i0.set(g,!0),v===1&&g.setAttribute(n,"true"),I||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),d.clear(),Wm++,function(){l.forEach(function(E){var g=Is.get(E)-1,_=o.get(E)-1;Is.set(E,g),o.set(E,_),g||(i0.has(E)||E.removeAttribute(r),i0.delete(E)),_||E.removeAttribute(n)}),Wm--,Wm||(Is=new WeakMap,Is=new WeakMap,i0=new WeakMap,a0={})}},f9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=IP(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),CP(r,a,n,"aria-hidden")):function(){return null}},yg="Dialog",[A9,QX]=Cc(yg),[yP,br]=A9(yg),h9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,d=C.useRef(null),f=C.useRef(null),[A=!1,m]=G0({prop:r,defaultProp:a,onChange:o});return N.jsx(yP,{scope:t,triggerRef:d,contentRef:f,contentId:mr(),titleId:mr(),descriptionId:mr(),open:A,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};h9.displayName=yg;var m9="DialogTrigger",vP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(m9,n),o=xt(t,a.triggerRef);return N.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dg(a.open),...r,ref:o,onClick:ot(e.onClick,a.onOpenToggle)})});vP.displayName=m9;var vg="DialogPortal",[RP,p9]=A9(vg,{forceMount:void 0}),E9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=br(vg,t);return N.jsx(RP,{scope:t,forceMount:n,children:C.Children.map(r,l=>N.jsx(yc,{present:n||o.open,children:N.jsx(wf,{asChild:!0,container:a,children:l})}))})};E9.displayName=vg;var Y0="DialogOverlay",g9=C.forwardRef((e,t)=>{const n=p9(Y0,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(Y0,e.__scopeDialog);return o.modal?N.jsx(yc,{present:r||o.open,children:N.jsx(DP,{...a,ref:t})}):null});g9.displayName=Y0;var DP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(Y0,n);return N.jsx(Cg,{as:_a,allowPinchZoom:!0,shards:[a.contentRef],children:N.jsx(nt.div,{"data-state":Dg(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Na="DialogContent",_9=C.forwardRef((e,t)=>{const n=p9(Na,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(Na,e.__scopeDialog);return N.jsx(yc,{present:r||o.open,children:o.modal?N.jsx(TP,{...a,ref:t}):N.jsx(xP,{...a,ref:t})})});_9.displayName=Na;var TP=C.forwardRef((e,t)=>{const n=br(Na,e.__scopeDialog),r=C.useRef(null),a=xt(t,n.contentRef,r);return C.useEffect(()=>{const o=r.current;if(o)return f9(o)},[]),N.jsx(N9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ot(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&o.preventDefault()}),onFocusOutside:ot(e.onFocusOutside,o=>o.preventDefault())})}),xP=C.forwardRef((e,t)=>{const n=br(Na,e.__scopeDialog),r=C.useRef(!1),a=C.useRef(!1);return N.jsx(N9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,d;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(d=n.triggerRef.current)==null||d.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var f,A;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;((A=n.triggerRef.current)==null?void 0:A.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),N9=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,d=br(Na,n),f=C.useRef(null),A=xt(t,f);return r9(),N.jsxs(N.Fragment,{children:[N.jsx(Sg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:N.jsx(Lf,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Dg(d.open),...l,ref:A,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(FP,{titleId:d.titleId}),N.jsx(wP,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Rg="DialogTitle",bP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(Rg,n);return N.jsx(nt.h2,{id:a.titleId,...r,ref:t})});bP.displayName=Rg;var I9="DialogDescription",BP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(I9,n);return N.jsx(nt.p,{id:a.descriptionId,...r,ref:t})});BP.displayName=I9;var S9="DialogClose",OP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(S9,n);return N.jsx(nt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,()=>a.onOpenChange(!1))})});OP.displayName=S9;function Dg(e){return e?"open":"closed"}var C9="DialogTitleWarning",[XX,y9]=k8(C9,{contentName:Na,titleName:Rg,docsSlug:"dialog"}),FP=({titleId:e})=>{const t=y9(C9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
258
+
259
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
260
+
261
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LP="DialogDescriptionWarning",wP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${y9(LP).contentName}}.`;return C.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},MP=h9,HP=E9,PP=g9,UP=_9,M3=1,kP=.9,GP=.8,jP=.17,$m=.1,qm=.999,VP=.9999,zP=.99,KP=/[\\\/_+.#"@\[\(\{&]/,YP=/[\\\/_+.#"@\[\(\{&]/g,ZP=/[\s-]/,v9=/[\s-]/g;function Zp(e,t,n,r,a,o,l){if(o===t.length)return a===e.length?M3:zP;var d=`${a},${o}`;if(l[d]!==void 0)return l[d];for(var f=r.charAt(o),A=n.indexOf(f,a),m=0,E,g,_,I;A>=0;)E=Zp(e,t,n,r,A+1,o+1,l),E>m&&(A===a?E*=M3:KP.test(e.charAt(A-1))?(E*=GP,_=e.slice(a,A-1).match(YP),_&&a>0&&(E*=Math.pow(qm,_.length))):ZP.test(e.charAt(A-1))?(E*=kP,I=e.slice(a,A-1).match(v9),I&&a>0&&(E*=Math.pow(qm,I.length))):(E*=jP,a>0&&(E*=Math.pow(qm,A-a))),e.charAt(A)!==t.charAt(o)&&(E*=VP)),(E<$m&&n.charAt(A-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(A-1)!==r.charAt(o))&&(g=Zp(e,t,n,r,A+1,o+2,l),g*$m>E&&(E=g*$m)),E>m&&(m=E),A=n.indexOf(f,A+1);return l[d]=m,m}function H3(e){return e.toLowerCase().replace(v9," ")}function WP(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Zp(e,t,H3(e),H3(t),0,0,{})}var $P=iR(),pl='[cmdk-group=""]',Qm='[cmdk-group-items=""]',qP='[cmdk-group-heading=""]',Tg='[cmdk-item=""]',P3=`${Tg}:not([aria-disabled="true"])`,Wp="cmdk-item-select",la="data-value",QP=(e,t,n)=>WP(e,t,n),R9=C.createContext(void 0),Rc=()=>C.useContext(R9),D9=C.createContext(void 0),xg=()=>C.useContext(D9),T9=C.createContext(void 0),x9=C.forwardRef((e,t)=>{let n=Cs(()=>{var V,re;return{search:"",value:(re=(V=e.value)!=null?V:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Cs(()=>new Set),a=Cs(()=>new Map),o=Cs(()=>new Map),l=Cs(()=>new Set),d=b9(e),{label:f,children:A,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:I,disablePointerSelection:y=!1,vimBindings:v=!0,...R}=e,D=mr(),x=mr(),F=mr(),b=C.useRef(null),O=oU();Ia(()=>{if(m!==void 0){let V=m.trim();n.current.value=V,w.emit()}},[m]),Ia(()=>{O(6,de)},[]);let w=C.useMemo(()=>({subscribe:V=>(l.current.add(V),()=>l.current.delete(V)),snapshot:()=>n.current,setState:(V,re,te)=>{var ce,ge,me;if(!Object.is(n.current[V],re)){if(n.current[V]=re,V==="search")se(),j(),O(1,fe);else if(V==="value"&&(te||O(5,de),((ce=d.current)==null?void 0:ce.value)!==void 0)){let ve=re??"";(me=(ge=d.current).onValueChange)==null||me.call(ge,ve);return}w.emit()}},emit:()=>{l.current.forEach(V=>V())}}),[]),P=C.useMemo(()=>({value:(V,re,te)=>{var ce;re!==((ce=o.current.get(V))==null?void 0:ce.value)&&(o.current.set(V,{value:re,keywords:te}),n.current.filtered.items.set(V,U(re,te)),O(2,()=>{j(),w.emit()}))},item:(V,re)=>(r.current.add(V),re&&(a.current.has(re)?a.current.get(re).add(V):a.current.set(re,new Set([V]))),O(3,()=>{se(),j(),n.current.value||fe(),w.emit()}),()=>{o.current.delete(V),r.current.delete(V),n.current.filtered.items.delete(V);let te=$();O(4,()=>{se(),(te==null?void 0:te.getAttribute("id"))===V&&fe(),w.emit()})}),group:V=>(a.current.has(V)||a.current.set(V,new Set),()=>{o.current.delete(V),a.current.delete(V)}),filter:()=>d.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:F,labelId:x,listInnerRef:b}),[]);function U(V,re){var te,ce;let ge=(ce=(te=d.current)==null?void 0:te.filter)!=null?ce:QP;return V?ge(V,n.current.search,re):0}function j(){if(!n.current.search||d.current.shouldFilter===!1)return;let V=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(ce=>{let ge=a.current.get(ce),me=0;ge.forEach(ve=>{let je=V.get(ve);me=Math.max(je,me)}),re.push([ce,me])});let te=b.current;J().sort((ce,ge)=>{var me,ve;let je=ce.getAttribute("id"),we=ge.getAttribute("id");return((me=V.get(we))!=null?me:0)-((ve=V.get(je))!=null?ve:0)}).forEach(ce=>{let ge=ce.closest(Qm);ge?ge.appendChild(ce.parentElement===ge?ce:ce.closest(`${Qm} > *`)):te.appendChild(ce.parentElement===te?ce:ce.closest(`${Qm} > *`))}),re.sort((ce,ge)=>ge[1]-ce[1]).forEach(ce=>{var ge;let me=(ge=b.current)==null?void 0:ge.querySelector(`${pl}[${la}="${encodeURIComponent(ce[0])}"]`);me==null||me.parentElement.appendChild(me)})}function fe(){let V=J().find(te=>te.getAttribute("aria-disabled")!=="true"),re=V==null?void 0:V.getAttribute(la);w.setState("value",re||void 0)}function se(){var V,re,te,ce;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ge=0;for(let me of r.current){let ve=(re=(V=o.current.get(me))==null?void 0:V.value)!=null?re:"",je=(ce=(te=o.current.get(me))==null?void 0:te.keywords)!=null?ce:[],we=U(ve,je);n.current.filtered.items.set(me,we),we>0&&ge++}for(let[me,ve]of a.current)for(let je of ve)if(n.current.filtered.items.get(je)>0){n.current.filtered.groups.add(me);break}n.current.filtered.count=ge}function de(){var V,re,te;let ce=$();ce&&(((V=ce.parentElement)==null?void 0:V.firstChild)===ce&&((te=(re=ce.closest(pl))==null?void 0:re.querySelector(qP))==null||te.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function $(){var V;return(V=b.current)==null?void 0:V.querySelector(`${Tg}[aria-selected="true"]`)}function J(){var V;return Array.from(((V=b.current)==null?void 0:V.querySelectorAll(P3))||[])}function G(V){let re=J()[V];re&&w.setState("value",re.getAttribute(la))}function ne(V){var re;let te=$(),ce=J(),ge=ce.findIndex(ve=>ve===te),me=ce[ge+V];(re=d.current)!=null&&re.loop&&(me=ge+V<0?ce[ce.length-1]:ge+V===ce.length?ce[0]:ce[ge+V]),me&&w.setState("value",me.getAttribute(la))}function ee(V){let re=$(),te=re==null?void 0:re.closest(pl),ce;for(;te&&!ce;)te=V>0?aU(te,pl):sU(te,pl),ce=te==null?void 0:te.querySelector(P3);ce?w.setState("value",ce.getAttribute(la)):ne(V)}let Ee=()=>G(J().length-1),H=V=>{V.preventDefault(),V.metaKey?Ee():V.altKey?ee(1):ne(1)},W=V=>{V.preventDefault(),V.metaKey?G(0):V.altKey?ee(-1):ne(-1)};return C.createElement(nt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:V=>{var re;if((re=R.onKeyDown)==null||re.call(R,V),!V.defaultPrevented)switch(V.key){case"n":case"j":{v&&V.ctrlKey&&H(V);break}case"ArrowDown":{H(V);break}case"p":case"k":{v&&V.ctrlKey&&W(V);break}case"ArrowUp":{W(V);break}case"Home":{V.preventDefault(),G(0);break}case"End":{V.preventDefault(),Ee();break}case"Enter":if(!V.nativeEvent.isComposing&&V.keyCode!==229){V.preventDefault();let te=$();if(te){let ce=new Event(Wp);te.dispatchEvent(ce)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:cU},f),jf(e,V=>C.createElement(D9.Provider,{value:w},C.createElement(R9.Provider,{value:P},V))))}),XP=C.forwardRef((e,t)=>{var n,r;let a=mr(),o=C.useRef(null),l=C.useContext(T9),d=Rc(),f=b9(e),A=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Ia(()=>{if(!A)return d.item(a,l==null?void 0:l.id)},[A]);let m=B9(a,o,[e.value,e.children,o],e.keywords),E=xg(),g=Sa(O=>O.value&&O.value===m.current),_=Sa(O=>A||d.filter()===!1?!0:O.search?O.filtered.items.get(a)>0:!0);C.useEffect(()=>{let O=o.current;if(!(!O||e.disabled))return O.addEventListener(Wp,I),()=>O.removeEventListener(Wp,I)},[_,e.onSelect,e.disabled]);function I(){var O,w;y(),(w=(O=f.current).onSelect)==null||w.call(O,m.current)}function y(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:D,forceMount:x,keywords:F,...b}=e;return C.createElement(nt.div,{ref:kl([o,t]),...b,id:a,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||d.getDisablePointerSelection()?void 0:y,onClick:v?void 0:I},e.children)}),JP=C.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,l=mr(),d=C.useRef(null),f=C.useRef(null),A=mr(),m=Rc(),E=Sa(_=>a||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Ia(()=>m.group(l),[]),B9(l,d,[e.value,e.heading,f]);let g=C.useMemo(()=>({id:l,forceMount:a}),[a]);return C.createElement(nt.div,{ref:kl([d,t]),...o,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&C.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:A},n),jf(e,_=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?A:void 0},C.createElement(T9.Provider,{value:g},_))))}),eU=C.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=C.useRef(null),o=Sa(l=>!l.search);return!n&&!o?null:C.createElement(nt.div,{ref:kl([a,t]),...r,"cmdk-separator":"",role:"separator"})}),tU=C.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=xg(),l=Sa(m=>m.search),d=Sa(m=>m.value),f=Rc(),A=C.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${Tg}[${la}="${encodeURIComponent(d)}"]`);return E==null?void 0:E.getAttribute("id")},[]);return C.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),C.createElement(nt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":A,id:f.inputId,type:"text",value:a?e.value:l,onChange:m=>{a||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),nU=C.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=C.useRef(null),l=C.useRef(null),d=Rc();return C.useEffect(()=>{if(l.current&&o.current){let f=l.current,A=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;A.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),C.createElement(nt.div,{ref:kl([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},jf(e,f=>C.createElement("div",{ref:kl([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),rU=C.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:l,...d}=e;return C.createElement(MP,{open:n,onOpenChange:r},C.createElement(HP,{container:l},C.createElement(PP,{"cmdk-overlay":"",className:a}),C.createElement(UP,{"aria-label":e.label,"cmdk-dialog":"",className:o},C.createElement(x9,{ref:t,...d}))))}),uU=C.forwardRef((e,t)=>Sa(n=>n.filtered.count===0)?C.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),iU=C.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return C.createElement(nt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},jf(e,l=>C.createElement("div",{"aria-hidden":!0},l)))}),Dc=Object.assign(x9,{List:nU,Item:XP,Input:tU,Group:JP,Separator:eU,Dialog:rU,Empty:uU,Loading:iU});function aU(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function sU(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function b9(e){let t=C.useRef(e);return Ia(()=>{t.current=e}),t}var Ia=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Cs(e){let t=C.useRef();return t.current===void 0&&(t.current=e()),t}function kl(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Sa(e){let t=xg(),n=()=>e(t.snapshot());return $P.useSyncExternalStore(t.subscribe,n,n)}function B9(e,t,n,r=[]){let a=C.useRef(),o=Rc();return Ia(()=>{var l;let d=(()=>{var A;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(A=m.current.textContent)==null?void 0:A.trim():a.current}})(),f=r.map(A=>A.trim());o.value(e,d,f),(l=t.current)==null||l.setAttribute(la,d),a.current=d}),a}var oU=()=>{let[e,t]=C.useState(),n=Cs(()=>new Map);return Ia(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function lU(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function jf({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(lU(t),{ref:t.ref},n(t.props.children)):n(t)}var cU={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const O9=({className:e,...t})=>N.jsx(Dc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),dU=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(e8,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Dc.Input,{className:Re("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),fU=({className:e,...t})=>N.jsx(Dc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),AU=e=>N.jsx(Dc.Empty,{className:"py-6 text-center text-sm",...e}),hU=({className:e,...t})=>N.jsx(Dc.Item,{className:Re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}),Z0={...O9,Input:dU,List:fU,Empty:AU,Item:hU},F9=C.createContext(null),Vf=()=>{const e=C.useContext(F9);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},mU=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:o,dir:l,...d})=>{const[f,A]=C.useState(t??[]),[m,E]=C.useState(""),[g,_]=C.useState(!1),[I,y]=C.useState(-1),v=C.useRef(null),[R,D]=C.useState(!1),[x,F]=C.useState("");C.useEffect(()=>{e&&A(e)},[e]);const b=C.useCallback(U=>{if(f.includes(U)){const j=f.filter(fe=>fe!==U);A(j),n==null||n(j)}else{const j=[...f,U];A(j),n==null||n(j)}},[f]),O=C.useCallback(U=>{U.preventDefault();const j=U.currentTarget,fe=j.value.substring(j.selectionStart??0,j.selectionEnd??0);F(fe),D(fe===m)},[m]),w=C.useCallback(U=>{U.stopPropagation();const j=v.current;if(!j)return;const fe=()=>{const $=I+1;y($>f.length-1?r?0:-1:$)},se=()=>{const $=I-1;y($<0?f.length-1:$)},de=()=>{const $=I-1<=0?f.length-1===0?-1:0:I-1;y($)};switch(U.key){case"ArrowLeft":l==="rtl"?f.length>0&&(I!==-1||r)&&fe():f.length>0&&j.selectionStart===0&&se();break;case"ArrowRight":l==="rtl"?f.length>0&&j.selectionStart===0&&se():f.length>0&&(I!==-1||r)&&fe();break;case"Backspace":case"Delete":f.length>0&&(I!==-1&&I<f.length?(b(f[I]),de()):(j.selectionStart===0&&x===m||R)&&b(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":I!==-1?y(-1):g&&_(!1);break}},[f,m,I,r]),P=C.useMemo(()=>({value:f,onValueChange:b,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:I,setActiveIndex:y,ref:v,handleSelect:O}),[f,b,g,_,m,E,I,y,v,O]);return N.jsx(F9,{value:P,children:N.jsx(O9,{onKeyDown:w,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...d,children:o})})},pU=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:o,onValueChange:l,activeIndex:d}=Vf(),f=C.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]);return N.jsxs("div",{className:Re("flex w-full flex-col gap-3 rounded-lg p-1 py-2","border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",n&&"valid:border-success invalid:border-error",e),...a,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((A,m)=>N.jsxs(xH,{className:Re("flex items-center gap-1 rounded-xl px-1",d===m&&"ring-muted-foreground ring-2"),color:"text",children:[N.jsx("span",{className:"text-xs",children:t(A)}),N.jsxs("button",{"aria-label":`Remove ${A} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(A),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",A," option"]}),N.jsx(ba,{className:"size-4 cursor-pointer"})]})]},A))}),r]})},EU=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=Vf();return N.jsx(Z0.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?a:void 0,onSelect:d,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Re("outline-hidden ml-2 flex-1 cursor-pointer",e,o!==-1&&"caret-transparent")})},gU=({children:e})=>{const{open:t}=Vf();return N.jsx("div",{className:"relative",children:t&&e})},_U=({className:e,children:t})=>N.jsxs(Z0.List,{className:Re("border-muted bg-input-background absolute top-0 z-10 flex w-full flex-col gap-2 rounded-lg border p-2 shadow-md transition-colors",e),children:[t,N.jsx(Z0.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),NU=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:o,setInputValue:l}=Vf(),d=C.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]),f=a.includes(t);return N.jsxs(Z0.Item,{...r,onSelect:()=>{o(t),l("")},className:Re("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,f&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:d,children:[n,f&&N.jsx(no,{className:"size-4"})]})},pn=mU;pn.Trigger=pU;pn.Input=EU;pn.Content=gU;pn.List=_U;pn.Item=NU;const IU=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),$p=({htmlFor:e,...t})=>N.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),SU=({className:e,...t})=>{const{error:n,formItemId:r}=Ti();return N.jsx($p,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},CU=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),L9=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(SU,{htmlFor:r,id:`${r}-label`,className:Bf("font-bold",a),children:[e,N.jsx(CU,{isRequired:t})]}),n&&N.jsx(IU,{content:n})]});function U3(e,[t,n]){return Math.min(n,Math.max(t,e))}var yU=C.createContext(void 0);function vU(e){const t=C.useContext(yU);return e||t||"ltr"}const RU=["top","right","bottom","left"],mi=Math.min,Kn=Math.max,W0=Math.round,s0=Math.floor,zr=e=>({x:e,y:e}),DU={left:"right",right:"left",bottom:"top",top:"bottom"},TU={start:"end",end:"start"};function qp(e,t,n){return Kn(e,mi(t,n))}function bu(e,t){return typeof e=="function"?e(t):e}function Bu(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function bg(e){return e==="x"?"y":"x"}function Bg(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Bu(e))?"y":"x"}function Og(e){return bg(pi(e))}function xU(e,t,n){n===void 0&&(n=!1);const r=uo(e),a=Og(e),o=Bg(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=$0(l)),[l,$0(l)]}function bU(e){const t=$0(e);return[Qp(e),t,Qp(t)]}function Qp(e){return e.replace(/start|end/g,t=>TU[t])}function BU(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:l;default:return[]}}function OU(e,t,n,r){const a=uo(e);let o=BU(Bu(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(Qp)))),o}function $0(e){return e.replace(/left|right|bottom|top/g,t=>DU[t])}function FU(e){return{top:0,right:0,bottom:0,left:0,...e}}function w9(e){return typeof e!="number"?FU(e):{top:e,right:e,bottom:e,left:e}}function q0(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function k3(e,t,n){let{reference:r,floating:a}=e;const o=pi(t),l=Og(t),d=Bg(l),f=Bu(t),A=o==="y",m=r.x+r.width/2-a.width/2,E=r.y+r.height/2-a.height/2,g=r[d]/2-a[d]/2;let _;switch(f){case"top":_={x:m,y:r.y-a.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:E};break;case"left":_={x:r.x-a.width,y:E};break;default:_={x:r.x,y:r.y}}switch(uo(t)){case"start":_[l]-=g*(n&&A?-1:1);break;case"end":_[l]+=g*(n&&A?-1:1);break}return _}const LU=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,d=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let A=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:E}=k3(A,r,f),g=r,_={},I=0;for(let y=0;y<d.length;y++){const{name:v,fn:R}=d[y],{x:D,y:x,data:F,reset:b}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:a,middlewareData:_,rects:A,platform:l,elements:{reference:e,floating:t}});m=D??m,E=x??E,_={..._,[v]:{..._[v],...F}},b&&I<=50&&(I++,typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(A=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:m,y:E}=k3(A,g,f)),y=-1)}return{x:m,y:E,placement:g,strategy:a,middlewareData:_}};async function Gl(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:d,strategy:f}=e,{boundary:A="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=bu(t,e),I=w9(_),v=d[g?E==="floating"?"reference":"floating":E],R=q0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:A,rootBoundary:m,strategy:f})),D=E==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),F=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},b=q0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:x,strategy:f}):D);return{top:(R.top-b.top+I.top)/F.y,bottom:(b.bottom-R.bottom+I.bottom)/F.y,left:(R.left-b.left+I.left)/F.x,right:(b.right-R.right+I.right)/F.x}}const wU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:d,middlewareData:f}=t,{element:A,padding:m=0}=bu(e,t)||{};if(A==null)return{};const E=w9(m),g={x:n,y:r},_=Og(a),I=Bg(_),y=await l.getDimensions(A),v=_==="y",R=v?"top":"left",D=v?"bottom":"right",x=v?"clientHeight":"clientWidth",F=o.reference[I]+o.reference[_]-g[_]-o.floating[I],b=g[_]-o.reference[_],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(A));let w=O?O[x]:0;(!w||!await(l.isElement==null?void 0:l.isElement(O)))&&(w=d.floating[x]||o.floating[I]);const P=F/2-b/2,U=w/2-y[I]/2-1,j=mi(E[R],U),fe=mi(E[D],U),se=j,de=w-y[I]-fe,$=w/2-y[I]/2+P,J=qp(se,$,de),G=!f.arrow&&uo(a)!=null&&$!==J&&o.reference[I]/2-($<se?j:fe)-y[I]/2<0,ne=G?$<se?$-se:$-de:0;return{[_]:g[_]+ne,data:{[_]:J,centerOffset:$-J-ne,...G&&{alignmentOffset:ne}},reset:G}}}),MU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:d,platform:f,elements:A}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:y=!0,...v}=bu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Bu(a),D=pi(d),x=Bu(d)===d,F=await(f.isRTL==null?void 0:f.isRTL(A.floating)),b=g||(x||!y?[$0(d)]:bU(d)),O=I!=="none";!g&&O&&b.push(...OU(d,y,I,F));const w=[d,...b],P=await Gl(t,v),U=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&U.push(P[R]),E){const $=xU(a,l,F);U.push(P[$[0]],P[$[1]])}if(j=[...j,{placement:a,overflows:U}],!U.every($=>$<=0)){var fe,se;const $=(((fe=o.flip)==null?void 0:fe.index)||0)+1,J=w[$];if(J)return{data:{index:$,overflows:j},reset:{placement:J}};let G=(se=j.filter(ne=>ne.overflows[0]<=0).sort((ne,ee)=>ne.overflows[1]-ee.overflows[1])[0])==null?void 0:se.placement;if(!G)switch(_){case"bestFit":{var de;const ne=(de=j.filter(ee=>{if(O){const Ee=pi(ee.placement);return Ee===D||Ee==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(Ee=>Ee>0).reduce((Ee,H)=>Ee+H,0)]).sort((ee,Ee)=>ee[1]-Ee[1])[0])==null?void 0:de[0];ne&&(G=ne);break}case"initialPlacement":G=d;break}if(a!==G)return{reset:{placement:G}}}return{}}}};function G3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j3(e){return RU.some(t=>e[t]>=0)}const HU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=bu(e,t);switch(r){case"referenceHidden":{const o=await Gl(t,{...a,elementContext:"reference"}),l=G3(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:j3(l)}}}case"escaped":{const o=await Gl(t,{...a,altBoundary:!0}),l=G3(o,n.floating);return{data:{escapedOffsets:l,escaped:j3(l)}}}default:return{}}}}};async function PU(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Bu(n),d=uo(n),f=pi(n)==="y",A=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=bu(t,e);let{mainAxis:g,crossAxis:_,alignmentAxis:I}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return d&&typeof I=="number"&&(_=d==="end"?I*-1:I),f?{x:_*m,y:g*A}:{x:g*A,y:_*m}}const UU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:d}=t,f=await PU(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},kU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:v=>{let{x:R,y:D}=v;return{x:R,y:D}}},...f}=bu(e,t),A={x:n,y:r},m=await Gl(t,f),E=pi(Bu(a)),g=bg(E);let _=A[g],I=A[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",D=_+m[v],x=_-m[R];_=qp(D,_,x)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",D=I+m[v],x=I-m[R];I=qp(D,I,x)}const y=d.fn({...t,[g]:_,[E]:I});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:o,[E]:l}}}}}},GU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:d=0,mainAxis:f=!0,crossAxis:A=!0}=bu(e,t),m={x:n,y:r},E=pi(a),g=bg(E);let _=m[g],I=m[E];const y=bu(d,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const x=g==="y"?"height":"width",F=o.reference[g]-o.floating[x]+v.mainAxis,b=o.reference[g]+o.reference[x]-v.mainAxis;_<F?_=F:_>b&&(_=b)}if(A){var R,D;const x=g==="y"?"width":"height",F=["top","left"].includes(Bu(a)),b=o.reference[E]-o.floating[x]+(F&&((R=l.offset)==null?void 0:R[E])||0)+(F?0:v.crossAxis),O=o.reference[E]+o.reference[x]+(F?0:((D=l.offset)==null?void 0:D[E])||0)-(F?v.crossAxis:0);I<b?I=b:I>O&&(I=O)}return{[g]:_,[E]:I}}}},jU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:d}=t,{apply:f=()=>{},...A}=bu(e,t),m=await Gl(t,A),E=Bu(a),g=uo(a),_=pi(a)==="y",{width:I,height:y}=o.floating;let v,R;E==="top"||E==="bottom"?(v=E,R=g===(await(l.isRTL==null?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(R=E,v=g==="end"?"top":"bottom");const D=y-m.top-m.bottom,x=I-m.left-m.right,F=mi(y-m[v],D),b=mi(I-m[R],x),O=!t.middlewareData.shift;let w=F,P=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=D),O&&!g){const j=Kn(m.left,0),fe=Kn(m.right,0),se=Kn(m.top,0),de=Kn(m.bottom,0);_?P=I-2*(j!==0||fe!==0?j+fe:Kn(m.left,m.right)):w=y-2*(se!==0||de!==0?se+de:Kn(m.top,m.bottom))}await f({...t,availableWidth:P,availableHeight:w});const U=await l.getDimensions(d.floating);return I!==U.width||y!==U.height?{reset:{rects:!0}}:{}}}};function zf(){return typeof window<"u"}function io(e){return M9(e)?(e.nodeName||"").toLowerCase():"#document"}function Zn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tu(e){var t;return(t=(M9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function M9(e){return zf()?e instanceof Node||e instanceof Zn(e).Node:!1}function Dr(e){return zf()?e instanceof Element||e instanceof Zn(e).Element:!1}function $r(e){return zf()?e instanceof HTMLElement||e instanceof Zn(e).HTMLElement:!1}function V3(e){return!zf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zn(e).ShadowRoot}function Tc(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function VU(e){return["table","td","th"].includes(io(e))}function Kf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fg(e){const t=Lg(),n=Dr(e)?Tr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function zU(e){let t=Ei(e);for(;$r(t)&&!Gs(t);){if(Fg(t))return t;if(Kf(t))return null;t=Ei(t)}return null}function Lg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gs(e){return["html","body","#document"].includes(io(e))}function Tr(e){return Zn(e).getComputedStyle(e)}function Yf(e){return Dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ei(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||V3(e)&&e.host||tu(e);return V3(t)?t.host:t}function H9(e){const t=Ei(e);return Gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&Tc(t)?t:H9(t)}function jl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=H9(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Zn(a);if(o){const d=Xp(l);return t.concat(l,l.visualViewport||[],Tc(a)?a:[],d&&n?jl(d):[])}return t.concat(a,jl(a,[],n))}function Xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function P9(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=$r(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,d=W0(n)!==o||W0(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function wg(e){return Dr(e)?e:e.contextElement}function ws(e){const t=wg(e);if(!$r(t))return zr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=P9(t);let l=(o?W0(n.width):n.width)/r,d=(o?W0(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const KU=zr(0);function U9(e){const t=Zn(e);return!Lg()||!t.visualViewport?KU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zn(e)?!1:t}function Ca(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=wg(e);let l=zr(1);t&&(r?Dr(r)&&(l=ws(r)):l=ws(e));const d=YU(o,n,r)?U9(o):zr(0);let f=(a.left+d.x)/l.x,A=(a.top+d.y)/l.y,m=a.width/l.x,E=a.height/l.y;if(o){const g=Zn(o),_=r&&Dr(r)?Zn(r):r;let I=g,y=Xp(I);for(;y&&r&&_!==I;){const v=ws(y),R=y.getBoundingClientRect(),D=Tr(y),x=R.left+(y.clientLeft+parseFloat(D.paddingLeft))*v.x,F=R.top+(y.clientTop+parseFloat(D.paddingTop))*v.y;f*=v.x,A*=v.y,m*=v.x,E*=v.y,f+=x,A+=F,I=Zn(y),y=Xp(I)}}return q0({width:m,height:E,x:f,y:A})}function Mg(e,t){const n=Yf(e).scrollLeft;return t?t.left+n:Ca(tu(e)).left+n}function k9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Mg(e,r)),o=r.top+t.scrollTop;return{x:a,y:o}}function ZU(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=tu(r),d=t?Kf(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},A=zr(1);const m=zr(0),E=$r(r);if((E||!E&&!o)&&((io(r)!=="body"||Tc(l))&&(f=Yf(r)),$r(r))){const _=Ca(r);A=ws(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?k9(l,f,!0):zr(0);return{width:n.width*A.x,height:n.height*A.y,x:n.x*A.x-f.scrollLeft*A.x+m.x+g.x,y:n.y*A.y-f.scrollTop*A.y+m.y+g.y}}function WU(e){return Array.from(e.getClientRects())}function $U(e){const t=tu(e),n=Yf(e),r=e.ownerDocument.body,a=Kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Mg(e);const d=-n.scrollTop;return Tr(r).direction==="rtl"&&(l+=Kn(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:d}}function qU(e,t){const n=Zn(e),r=tu(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,d=0,f=0;if(a){o=a.width,l=a.height;const A=Lg();(!A||A&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:l,x:d,y:f}}function QU(e,t){const n=Ca(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=$r(e)?ws(e):zr(1),l=e.clientWidth*o.x,d=e.clientHeight*o.y,f=a*o.x,A=r*o.y;return{width:l,height:d,x:f,y:A}}function z3(e,t,n){let r;if(t==="viewport")r=qU(e,n);else if(t==="document")r=$U(tu(e));else if(Dr(t))r=QU(t,n);else{const a=U9(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return q0(r)}function G9(e,t){const n=Ei(e);return n===t||!Dr(n)||Gs(n)?!1:Tr(n).position==="fixed"||G9(n,t)}function XU(e,t){const n=t.get(e);if(n)return n;let r=jl(e,[],!1).filter(d=>Dr(d)&&io(d)!=="body"),a=null;const o=Tr(e).position==="fixed";let l=o?Ei(e):e;for(;Dr(l)&&!Gs(l);){const d=Tr(l),f=Fg(l);!f&&d.position==="fixed"&&(a=null),(o?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Tc(l)&&!f&&G9(e,l))?r=r.filter(m=>m!==l):a=d,l=Ei(l)}return t.set(e,r),r}function JU(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Kf(t)?[]:XU(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((A,m)=>{const E=z3(t,m,a);return A.top=Kn(E.top,A.top),A.right=mi(E.right,A.right),A.bottom=mi(E.bottom,A.bottom),A.left=Kn(E.left,A.left),A},z3(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function e5(e){const{width:t,height:n}=P9(e);return{width:t,height:n}}function t5(e,t,n){const r=$r(t),a=tu(t),o=n==="fixed",l=Ca(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=zr(0);if(r||!r&&!o)if((io(t)!=="body"||Tc(a))&&(d=Yf(t)),r){const g=Ca(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else a&&(f.x=Mg(a));const A=a&&!r&&!o?k9(a,d):zr(0),m=l.left+d.scrollLeft-f.x-A.x,E=l.top+d.scrollTop-f.y-A.y;return{x:m,y:E,width:l.width,height:l.height}}function Xm(e){return Tr(e).position==="static"}function K3(e,t){if(!$r(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tu(e)===n&&(n=n.ownerDocument.body),n}function j9(e,t){const n=Zn(e);if(Kf(e))return n;if(!$r(e)){let a=Ei(e);for(;a&&!Gs(a);){if(Dr(a)&&!Xm(a))return a;a=Ei(a)}return n}let r=K3(e,t);for(;r&&VU(r)&&Xm(r);)r=K3(r,t);return r&&Gs(r)&&Xm(r)&&!Fg(r)?n:r||zU(e)||n}const n5=async function(e){const t=this.getOffsetParent||j9,n=this.getDimensions,r=await n(e.floating);return{reference:t5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r5(e){return Tr(e).direction==="rtl"}const u5={convertOffsetParentRelativeRectToViewportRelativeRect:ZU,getDocumentElement:tu,getClippingRect:JU,getOffsetParent:j9,getElementRects:n5,getClientRects:WU,getDimensions:e5,getScale:ws,isElement:Dr,isRTL:r5};function V9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function i5(e,t){let n=null,r;const a=tu(e);function o(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function l(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),o();const A=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=A;if(d||t(),!g||!_)return;const I=s0(E),y=s0(a.clientWidth-(m+g)),v=s0(a.clientHeight-(E+_)),R=s0(m),x={rootMargin:-I+"px "+-y+"px "+-v+"px "+-R+"px",threshold:Kn(0,mi(1,f))||1};let F=!0;function b(O){const w=O[0].intersectionRatio;if(w!==f){if(!F)return l();w?l(!1,w):r=setTimeout(()=>{l(!1,1e-7)},1e3)}w===1&&!V9(A,e.getBoundingClientRect())&&l(),F=!1}try{n=new IntersectionObserver(b,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return l(!0),o}function a5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,A=wg(e),m=a||o?[...A?jl(A):[],...jl(t)]:[];m.forEach(R=>{a&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=A&&d?i5(A,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[D]=R;D&&D.target===A&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=_)==null||x.observe(t)})),n()}),A&&!f&&_.observe(A),_.observe(t));let I,y=f?Ca(e):null;f&&v();function v(){const R=Ca(e);y&&!V9(y,R)&&n(),y=R,I=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(D=>{a&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(I)}}const s5=UU,o5=kU,l5=MU,c5=jU,d5=HU,Y3=wU,f5=GU,A5=(e,t,n)=>{const r=new Map,a={platform:u5,...n},o={...a.platform,_c:r};return LU(e,t,{...a,platform:o})};var x0=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Q0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Q0(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Q0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function z9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Z3(e,t){const n=z9(e);return Math.round(t*n)/n}function Jm(e){const t=C.useRef(e);return x0(()=>{t.current=e}),t}function h5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:d=!0,whileElementsMounted:f,open:A}=e,[m,E]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=C.useState(r);Q0(g,r)||_(r);const[I,y]=C.useState(null),[v,R]=C.useState(null),D=C.useCallback(ee=>{ee!==O.current&&(O.current=ee,y(ee))},[]),x=C.useCallback(ee=>{ee!==w.current&&(w.current=ee,R(ee))},[]),F=o||I,b=l||v,O=C.useRef(null),w=C.useRef(null),P=C.useRef(m),U=f!=null,j=Jm(f),fe=Jm(a),se=Jm(A),de=C.useCallback(()=>{if(!O.current||!w.current)return;const ee={placement:t,strategy:n,middleware:g};fe.current&&(ee.platform=fe.current),A5(O.current,w.current,ee).then(Ee=>{const H={...Ee,isPositioned:se.current!==!1};$.current&&!Q0(P.current,H)&&(P.current=H,xa.flushSync(()=>{E(H)}))})},[g,t,n,fe,se]);x0(()=>{A===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,E(ee=>({...ee,isPositioned:!1})))},[A]);const $=C.useRef(!1);x0(()=>($.current=!0,()=>{$.current=!1}),[]),x0(()=>{if(F&&(O.current=F),b&&(w.current=b),F&&b){if(j.current)return j.current(F,b,de);de()}},[F,b,de,j,U]);const J=C.useMemo(()=>({reference:O,floating:w,setReference:D,setFloating:x}),[D,x]),G=C.useMemo(()=>({reference:F,floating:b}),[F,b]),ne=C.useMemo(()=>{const ee={position:n,left:0,top:0};if(!G.floating)return ee;const Ee=Z3(G.floating,m.x),H=Z3(G.floating,m.y);return d?{...ee,transform:"translate("+Ee+"px, "+H+"px)",...z9(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:H}},[n,d,G.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:de,refs:J,elements:G,floatingStyles:ne}),[m,de,J,G,ne])}const m5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Y3({element:r.current,padding:a}).fn(n):{}:r?Y3({element:r,padding:a}).fn(n):{}}}},p5=(e,t)=>({...s5(e),options:[e,t]}),E5=(e,t)=>({...o5(e),options:[e,t]}),g5=(e,t)=>({...f5(e),options:[e,t]}),_5=(e,t)=>({...l5(e),options:[e,t]}),N5=(e,t)=>({...c5(e),options:[e,t]}),I5=(e,t)=>({...d5(e),options:[e,t]}),S5=(e,t)=>({...m5(e),options:[e,t]});var C5="Arrow",K9=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return N.jsx(nt.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});K9.displayName=C5;var y5=K9;function v5(e){const[t,n]=C.useState(void 0);return _n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,d;if("borderBoxSize"in o){const f=o.borderBoxSize,A=Array.isArray(f)?f[0]:f;l=A.inlineSize,d=A.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Hg="Popper",[Y9,Z9]=Cc(Hg),[R5,W9]=Y9(Hg),$9=e=>{const{__scopePopper:t,children:n}=e,[r,a]=C.useState(null);return N.jsx(R5,{scope:t,anchor:r,onAnchorChange:a,children:n})};$9.displayName=Hg;var q9="PopperAnchor",Q9=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=W9(q9,n),l=C.useRef(null),d=xt(t,l);return C.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:N.jsx(nt.div,{...a,ref:d})});Q9.displayName=q9;var Pg="PopperContent",[D5,T5]=Y9(Pg),X9=C.forwardRef((e,t)=>{var me,ve,je,we,Ze,it;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:A=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:I,...y}=e,v=W9(Pg,n),[R,D]=C.useState(null),x=xt(t,St=>D(St)),[F,b]=C.useState(null),O=v5(F),w=(O==null?void 0:O.width)??0,P=(O==null?void 0:O.height)??0,U=r+(o!=="center"?"-"+o:""),j=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(A)?A:[A],se=fe.length>0,de={padding:j,boundary:fe.filter(b5),altBoundary:se},{refs:$,floatingStyles:J,placement:G,isPositioned:ne,middlewareData:ee}=h5({strategy:"fixed",placement:U,whileElementsMounted:(...St)=>a5(...St,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[p5({mainAxis:a+P,alignmentAxis:l}),f&&E5({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?g5():void 0,...de}),f&&_5({...de}),N5({...de,apply:({elements:St,rects:qt,availableWidth:Er,availableHeight:wn})=>{const{width:Br,height:k}=qt.reference,Q=St.floating.style;Q.setProperty("--radix-popper-available-width",`${Er}px`),Q.setProperty("--radix-popper-available-height",`${wn}px`),Q.setProperty("--radix-popper-anchor-width",`${Br}px`),Q.setProperty("--radix-popper-anchor-height",`${k}px`)}}),F&&S5({element:F,padding:d}),B5({arrowWidth:w,arrowHeight:P}),g&&I5({strategy:"referenceHidden",...de})]}),[Ee,H]=tD(G),W=qn(I);_n(()=>{ne&&(W==null||W())},[ne,W]);const V=(me=ee.arrow)==null?void 0:me.x,re=(ve=ee.arrow)==null?void 0:ve.y,te=((je=ee.arrow)==null?void 0:je.centerOffset)!==0,[ce,ge]=C.useState();return _n(()=>{R&&ge(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:ne?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(we=ee.transformOrigin)==null?void 0:we.x,(Ze=ee.transformOrigin)==null?void 0:Ze.y].join(" "),...((it=ee.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(D5,{scope:n,placedSide:Ee,onArrowChange:b,arrowX:V,arrowY:re,shouldHideArrow:te,children:N.jsx(nt.div,{"data-side":Ee,"data-align":H,...y,ref:x,style:{...y.style,animation:ne?void 0:"none"}})})})});X9.displayName=Pg;var J9="PopperArrow",x5={top:"bottom",right:"left",bottom:"top",left:"right"},eD=C.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=T5(J9,r),l=x5[o.placedSide];return N.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:N.jsx(y5,{...a,ref:n,style:{...a.style,display:"block"}})})});eD.displayName=J9;function b5(e){return e!==null}var B5=e=>({name:"transformOrigin",options:e,fn(t){var v,R,D;const{placement:n,rects:r,middlewareData:a}=t,l=((v=a.arrow)==null?void 0:v.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[A,m]=tD(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=a.arrow)==null?void 0:R.x)??0)+d/2,_=(((D=a.arrow)==null?void 0:D.y)??0)+f/2;let I="",y="";return A==="bottom"?(I=l?E:`${g}px`,y=`${-f}px`):A==="top"?(I=l?E:`${g}px`,y=`${r.floating.height+f}px`):A==="right"?(I=`${-f}px`,y=l?E:`${_}px`):A==="left"&&(I=`${r.floating.width+f}px`,y=l?E:`${_}px`),{data:{x:I,y}}}});function tD(e){const[t,n="center"]=e.split("-");return[t,n]}var O5=$9,F5=Q9,L5=X9,w5=eD;function M5(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var H5=[" ","Enter","ArrowUp","ArrowDown"],P5=[" ","Enter"],xc="Select",[Zf,Wf,U5]=AR(xc),[ao,JX]=Cc(xc,[U5,Z9]),$f=Z9(),[k5,xi]=ao(xc),[G5,j5]=ao(xc),nD=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:d,onValueChange:f,dir:A,name:m,autoComplete:E,disabled:g,required:_,form:I}=e,y=$f(t),[v,R]=C.useState(null),[D,x]=C.useState(null),[F,b]=C.useState(!1),O=vU(A),[w=!1,P]=G0({prop:r,defaultProp:a,onChange:o}),[U,j]=G0({prop:l,defaultProp:d,onChange:f}),fe=C.useRef(null),se=v?I||!!v.closest("form"):!0,[de,$]=C.useState(new Set),J=Array.from(de).map(G=>G.props.value).join(";");return N.jsx(O5,{...y,children:N.jsxs(k5,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:D,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:b,contentId:mr(),value:U,onValueChange:j,open:w,onOpenChange:P,dir:O,triggerPointerDownPosRef:fe,disabled:g,children:[N.jsx(Zf.Provider,{scope:t,children:N.jsx(G5,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(G=>{$(ne=>new Set(ne).add(G))},[]),onNativeOptionRemove:C.useCallback(G=>{$(ne=>{const ee=new Set(ne);return ee.delete(G),ee})},[]),children:n})}),se?N.jsxs(TD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:U,onChange:G=>j(G.target.value),disabled:g,form:I,children:[U===void 0?N.jsx("option",{value:""}):null,Array.from(de)]},J):null]})})};nD.displayName=xc;var rD="SelectTrigger",uD=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=$f(n),l=xi(rD,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),A=Wf(n),m=C.useRef("touch"),[E,g,_]=xD(y=>{const v=A().filter(x=>!x.disabled),R=v.find(x=>x.value===l.value),D=bD(v,y,R);D!==void 0&&l.onValueChange(D.value)}),I=y=>{d||(l.onOpenChange(!0),_()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return N.jsx(F5,{asChild:!0,...o,children:N.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":DD(l.value)?"":void 0,...a,ref:f,onClick:ot(a.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&I(y)}),onPointerDown:ot(a.onPointerDown,y=>{m.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(I(y),y.preventDefault())}),onKeyDown:ot(a.onKeyDown,y=>{const v=E.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&g(y.key),!(v&&y.key===" ")&&H5.includes(y.key)&&(I(),y.preventDefault())})})})});uD.displayName=rD;var iD="SelectValue",aD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...d}=e,f=xi(iD,n),{onValueNodeHasChildrenChange:A}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return _n(()=>{A(m)},[A,m]),N.jsx(nt.span,{...d,ref:E,style:{pointerEvents:"none"},children:DD(f.value)?N.jsx(N.Fragment,{children:l}):o})});aD.displayName=iD;var V5="SelectIcon",sD=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return N.jsx(nt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});sD.displayName=V5;var z5="SelectPortal",oD=e=>N.jsx(wf,{asChild:!0,...e});oD.displayName=z5;var ya="SelectContent",lD=C.forwardRef((e,t)=>{const n=xi(ya,e.__scopeSelect),[r,a]=C.useState();if(_n(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?xa.createPortal(N.jsx(cD,{scope:e.__scopeSelect,children:N.jsx(Zf.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(dD,{...e,ref:t})});lD.displayName=ya;var Sr=10,[cD,bi]=ao(ya),K5="SelectContentImpl",dD=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:I,hideWhenDetached:y,avoidCollisions:v,...R}=e,D=xi(ya,n),[x,F]=C.useState(null),[b,O]=C.useState(null),w=xt(t,me=>F(me)),[P,U]=C.useState(null),[j,fe]=C.useState(null),se=Wf(n),[de,$]=C.useState(!1),J=C.useRef(!1);C.useEffect(()=>{if(x)return f9(x)},[x]),r9();const G=C.useCallback(me=>{const[ve,...je]=se().map(it=>it.ref.current),[we]=je.slice(-1),Ze=document.activeElement;for(const it of me)if(it===Ze||(it==null||it.scrollIntoView({block:"nearest"}),it===ve&&b&&(b.scrollTop=0),it===we&&b&&(b.scrollTop=b.scrollHeight),it==null||it.focus(),document.activeElement!==Ze))return},[se,b]),ne=C.useCallback(()=>G([P,x]),[G,P,x]);C.useEffect(()=>{de&&ne()},[de,ne]);const{onOpenChange:ee,triggerPointerDownPosRef:Ee}=D;C.useEffect(()=>{if(x){let me={x:0,y:0};const ve=we=>{var Ze,it;me={x:Math.abs(Math.round(we.pageX)-(((Ze=Ee.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((it=Ee.current)==null?void 0:it.y)??0))}},je=we=>{me.x<=10&&me.y<=10?we.preventDefault():x.contains(we.target)||ee(!1),document.removeEventListener("pointermove",ve),Ee.current=null};return Ee.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",je,{capture:!0})}}},[x,ee,Ee]),C.useEffect(()=>{const me=()=>ee(!1);return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[ee]);const[H,W]=xD(me=>{const ve=se().filter(Ze=>!Ze.disabled),je=ve.find(Ze=>Ze.ref.current===document.activeElement),we=bD(ve,me,je);we&&setTimeout(()=>we.ref.current.focus())}),V=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&(U(me),we&&(J.current=!0))},[D.value]),re=C.useCallback(()=>x==null?void 0:x.focus(),[x]),te=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&fe(me)},[D.value]),ce=r==="popper"?Jp:fD,ge=ce===Jp?{side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:I,hideWhenDetached:y,avoidCollisions:v}:{};return N.jsx(cD,{scope:n,content:x,viewport:b,onViewportChange:O,itemRefCallback:V,selectedItem:P,onItemLeave:re,itemTextRefCallback:te,focusSelectedItem:ne,selectedItemText:j,position:r,isPositioned:de,searchRef:H,children:N.jsx(Cg,{as:_a,allowPinchZoom:!0,children:N.jsx(Sg,{asChild:!0,trapped:D.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:ot(a,me=>{var ve;(ve=D.trigger)==null||ve.focus({preventScroll:!0}),me.preventDefault()}),children:N.jsx(Lf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:N.jsx(ce,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:me=>me.preventDefault(),...R,...ge,onPlaced:()=>$(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ot(R.onKeyDown,me=>{const ve=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!ve&&me.key.length===1&&W(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let we=se().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(me.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const Ze=me.target,it=we.indexOf(Ze);we=we.slice(it+1)}setTimeout(()=>G(we)),me.preventDefault()}})})})})})})});dD.displayName=K5;var Y5="SelectItemAlignedPosition",fD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=xi(ya,n),l=bi(ya,n),[d,f]=C.useState(null),[A,m]=C.useState(null),E=xt(t,w=>m(w)),g=Wf(n),_=C.useRef(!1),I=C.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:R,focusSelectedItem:D}=l,x=C.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&A&&y&&v&&R){const w=o.trigger.getBoundingClientRect(),P=A.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),j=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=j.left-P.left,it=U.left-Ze,St=w.left-it,qt=w.width+St,Er=Math.max(qt,P.width),wn=window.innerWidth-Sr,Br=U3(it,[Sr,Math.max(Sr,wn-Er)]);d.style.minWidth=qt+"px",d.style.left=Br+"px"}else{const Ze=P.right-j.right,it=window.innerWidth-U.right-Ze,St=window.innerWidth-w.right-it,qt=w.width+St,Er=Math.max(qt,P.width),wn=window.innerWidth-Sr,Br=U3(it,[Sr,Math.max(Sr,wn-Er)]);d.style.minWidth=qt+"px",d.style.right=Br+"px"}const fe=g(),se=window.innerHeight-Sr*2,de=y.scrollHeight,$=window.getComputedStyle(A),J=parseInt($.borderTopWidth,10),G=parseInt($.paddingTop,10),ne=parseInt($.borderBottomWidth,10),ee=parseInt($.paddingBottom,10),Ee=J+G+de+ee+ne,H=Math.min(v.offsetHeight*5,Ee),W=window.getComputedStyle(y),V=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),te=w.top+w.height/2-Sr,ce=se-te,ge=v.offsetHeight/2,me=v.offsetTop+ge,ve=J+G+me,je=Ee-ve;if(ve<=te){const Ze=fe.length>0&&v===fe[fe.length-1].ref.current;d.style.bottom="0px";const it=A.clientHeight-y.offsetTop-y.offsetHeight,St=Math.max(ce,ge+(Ze?re:0)+it+ne),qt=ve+St;d.style.height=qt+"px"}else{const Ze=fe.length>0&&v===fe[0].ref.current;d.style.top="0px";const St=Math.max(te,J+y.offsetTop+(Ze?V:0)+ge)+je;d.style.height=St+"px",y.scrollTop=ve-te+y.offsetTop}d.style.margin=`${Sr}px 0`,d.style.minHeight=H+"px",d.style.maxHeight=se+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,d,A,y,v,R,o.dir,r]);_n(()=>x(),[x]);const[F,b]=C.useState();_n(()=>{A&&b(window.getComputedStyle(A).zIndex)},[A]);const O=C.useCallback(w=>{w&&I.current===!0&&(x(),D==null||D(),I.current=!1)},[x,D]);return N.jsx(W5,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:O,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:N.jsx(nt.div,{...a,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});fD.displayName=Y5;var Z5="SelectPopperPosition",Jp=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Sr,...o}=e,l=$f(n);return N.jsx(L5,{...l,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Jp.displayName=Z5;var[W5,Ug]=ao(ya,{}),eE="SelectViewport",AD=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=bi(eE,n),l=Ug(eE,n),d=xt(t,o.onViewportChange),f=C.useRef(0);return N.jsxs(N.Fragment,{children:[N.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),N.jsx(Zf.Slot,{scope:n,children:N.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ot(a.onScroll,A=>{const m=A.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&E){const _=Math.abs(f.current-m.scrollTop);if(_>0){const I=window.innerHeight-Sr*2,y=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(y,v);if(R<I){const D=R+_,x=Math.min(I,D),F=D-x;E.style.height=x+"px",E.style.bottom==="0px"&&(m.scrollTop=F>0?F:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});AD.displayName=eE;var hD="SelectGroup",[$5,q5]=ao(hD),mD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mr();return N.jsx($5,{scope:n,id:a,children:N.jsx(nt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});mD.displayName=hD;var pD="SelectLabel",ED=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=q5(pD,n);return N.jsx(nt.div,{id:a.id,...r,ref:t})});ED.displayName=pD;var X0="SelectItem",[Q5,gD]=ao(X0),_D=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,d=xi(X0,n),f=bi(X0,n),A=d.value===r,[m,E]=C.useState(o??""),[g,_]=C.useState(!1),I=xt(t,D=>{var x;return(x=f.itemRefCallback)==null?void 0:x.call(f,D,r,a)}),y=mr(),v=C.useRef("touch"),R=()=>{a||(d.onValueChange(r),d.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(Q5,{scope:n,value:r,disabled:a,textId:y,isSelected:A,onItemTextChange:C.useCallback(D=>{E(x=>x||((D==null?void 0:D.textContent)??"").trim())},[]),children:N.jsx(Zf.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:N.jsx(nt.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":A&&g,"data-state":A?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:I,onFocus:ot(l.onFocus,()=>_(!0)),onBlur:ot(l.onBlur,()=>_(!1)),onClick:ot(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:ot(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:ot(l.onPointerDown,D=>{v.current=D.pointerType}),onPointerMove:ot(l.onPointerMove,D=>{var x;v.current=D.pointerType,a?(x=f.onItemLeave)==null||x.call(f):v.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ot(l.onPointerLeave,D=>{var x;D.currentTarget===document.activeElement&&((x=f.onItemLeave)==null||x.call(f))}),onKeyDown:ot(l.onKeyDown,D=>{var F;((F=f.searchRef)==null?void 0:F.current)!==""&&D.key===" "||(P5.includes(D.key)&&R(),D.key===" "&&D.preventDefault())})})})})});_D.displayName=X0;var Il="SelectItemText",ND=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=xi(Il,n),d=bi(Il,n),f=gD(Il,n),A=j5(Il,n),[m,E]=C.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var D;return(D=d.itemTextRefCallback)==null?void 0:D.call(d,R,f.value,f.disabled)}),_=m==null?void 0:m.textContent,I=C.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=A;return _n(()=>(y(I),()=>v(I)),[y,v,I]),N.jsxs(N.Fragment,{children:[N.jsx(nt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?xa.createPortal(o.children,l.valueNode):null]})});ND.displayName=Il;var ID="SelectItemIndicator",SD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return gD(ID,n).isSelected?N.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});SD.displayName=ID;var tE="SelectScrollUpButton",CD=C.forwardRef((e,t)=>{const n=bi(tE,e.__scopeSelect),r=Ug(tE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return _n(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollTop>0;o(A)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(vD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});CD.displayName=tE;var nE="SelectScrollDownButton",yD=C.forwardRef((e,t)=>{const n=bi(nE,e.__scopeSelect),r=Ug(nE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return _n(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<A;o(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(vD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});yD.displayName=nE;var vD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=bi("SelectScrollButton",n),l=C.useRef(null),d=Wf(n),f=C.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),_n(()=>{var m;const A=d().find(E=>E.ref.current===document.activeElement);(m=A==null?void 0:A.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),N.jsx(nt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ot(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:ot(a.onPointerMove,()=>{var A;(A=o.onItemLeave)==null||A.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:ot(a.onPointerLeave,()=>{f()})})}),X5="SelectSeparator",RD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});RD.displayName=X5;var rE="SelectArrow",J5=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=$f(n),o=xi(rE,n),l=bi(rE,n);return o.open&&l.position==="popper"?N.jsx(w5,{...a,...r,ref:t}):null});J5.displayName=rE;function DD(e){return e===""||e===void 0}var TD=C.forwardRef((e,t)=>{const{value:n,...r}=e,a=C.useRef(null),o=xt(t,a),l=M5(n);return C.useEffect(()=>{const d=a.current,f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&m){const E=new Event("change",{bubbles:!0});m.call(d,n),d.dispatchEvent(E)}},[l,n]),N.jsx(Mf,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});TD.displayName="BubbleSelect";function xD(e){const t=qn(e),n=C.useRef(""),r=C.useRef(0),a=C.useCallback(l=>{const d=n.current+l;t(d),function f(A){n.current=A,window.clearTimeout(r.current),A!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(d)},[t]),o=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function bD(e,t,n){const a=t.length>1&&Array.from(t).every(A=>A===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=ek(e,Math.max(o,0));a.length===1&&(l=l.filter(A=>A!==n));const f=l.find(A=>A.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function ek(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tk=nD,nk=uD,rk=aD,uk=sD,ik=oD,ak=lD,sk=AD,ok=mD,lk=ED,ck=_D,dk=ND,fk=SD,Ak=CD,hk=yD,mk=RD;const pk=tk,Ek=ok,gk=rk,_k=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(nk,{className:Re("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",e&&"valid:border-success invalid:border-error",t),...r,children:[n,N.jsx(uk,{asChild:!0,children:N.jsx(B2,{className:"size-4 opacity-50"})})]}),BD=({className:e,...t})=>N.jsx(Ak,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(x2,{})}),OD=({className:e,...t})=>N.jsx(hk,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(tR,{})}),Nk=({className:e,children:t,position:n="popper",...r})=>N.jsx(ik,{children:N.jsxs(ak,{className:Re("bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 p-1 text-sm shadow-none outline-0 transition-all","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[N.jsx(BD,{}),N.jsx(sk,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),N.jsx(OD,{})]})}),Ik=({className:e,...t})=>N.jsx(lk,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),Sk=({className:e,children:t,...n})=>N.jsxs(ck,{className:Re("focus:bg-neutral/10 outline-hidden relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[N.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:N.jsx(fk,{children:N.jsx(no,{className:"size-4"})})}),N.jsx(dk,{children:t})]}),Ck=({className:e,...t})=>N.jsx(mk,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Me=pk;Me.Group=Ek;Me.Value=gk;Me.Trigger=_k;Me.ScrollUpButton=BD;Me.ScrollDownButton=OD;Me.Content=Nk;Me.Label=Ik;Me.Item=Sk;Me.Separator=Ck;const yk=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",vk=(e,t=yk,n=!1)=>{const[r,a]=C.useState(null),[o,l]=C.useState(null),d=e.current.length;return C.useEffect(()=>{const f=()=>{let y=null;if(o?y=o:y=e.current.find(t)??null,!y){a(D=>({left:0,width:0,...D,opacity:0}));return}const v=y.offsetLeft,R=y.offsetWidth;a({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const A=[];e.current.forEach(y=>{if(y){const v=new MutationObserver(R=>{for(const D of R)if(D.type==="attributes"&&D.attributeName==="aria-selected"){f();break}});v.observe(y,{attributes:!0,attributeFilter:["aria-selected"]}),A.push(v)}});const m=[],E=y=>{if(!y)return;const v=new ResizeObserver(()=>{f()});v.observe(y),m.push(v)},g=e.current.find(t)??null;g&&E(g),o&&E(o);const _=y=>{l(y.currentTarget)},I=()=>{l(null)};return n&&e.current.forEach(y=>{y==null||y.addEventListener("mouseenter",_),y==null||y.addEventListener("mouseleave",I)}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),A.forEach(y=>y.disconnect()),m.forEach(y=>y.disconnect()),e.current.forEach(y=>{y==null||y.removeEventListener("mouseenter",_),y==null||y.removeEventListener("mouseleave",I)})}},[e,t,o,d]),{choiceIndicatorPosition:r}},Rk=[{content:"Off",value:!1},{content:"On",value:!0}],Dk=pr("flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]",{variants:{color:{primary:"border-primary text-primary",secondary:"border-secondary text-secondary",destructive:"border-destructive bg-destructive text-destructive",neutral:"border-neutral text-neutral ",light:"border-white text-white",dark:"border-neutral-800 text-neutral-800",text:"border-text text-text"}},defaultVariants:{color:"primary"}}),Tk=pr("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none",{variants:{size:{sm:"py-1 px-2 text-xs",md:"p-2 text-sm",lg:"p-4 text-base"}},defaultVariants:{size:"md"}}),xk=pr("absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary aria-selected:text-text",secondary:"bg-secondary aria-selected:text-text",destructive:"bg-destructive aria-selected:text-text",neutral:"bg-neutral aria-selected:text-white ",light:"bg-white aria-selected:text-black",dark:"bg-neutral-800 aria-selected:text-white",text:"bg-text aria-selected:text-text-opposite"}}}),bc=({choices:e=Rk,value:t,defaultValue:n,onChange:r,color:a="primary",size:o="md",className:l})=>{const[d,f]=C.useState(t??n??e[0].value),A=C.useRef([]),m=C.useRef(null),{choiceIndicatorPosition:E}=vk(A),g=_=>{f(_),r==null||r(_)};return C.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:Dk({color:a,className:l}),role:"tablist",children:N.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,I)=>{const{content:y,value:v,...R}=_,D=typeof v=="string"||typeof v=="number",x=v===d;return C.createElement("button",{...R,className:Re(Tk({size:o})),key:D?v:I,role:"tab",onClick:()=>g(v),"aria-selected":x,disabled:x,ref:F=>{A.current[I]=F}},y)}),E&&N.jsx("div",{className:Re(xk({color:a})),style:E,ref:m})]})})};var bk=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var d=r.unionErrors[0].errors[0];n[l]={message:d.message,type:d.code}}else n[l]={message:o,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(E){return e.push(E)})}),t){var f=n[l].types,A=f&&f[r.code];n[l]=GR(l,t,n,a,A?[].concat(A,r.message):r.message)}e.shift()}return n},Bk=function(e,t,n){return n===void 0&&(n={}),function(r,a,o){try{return Promise.resolve(function(l,d){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(A){return o.shouldUseNativeValidation&&WR({},o),{errors:{},values:n.raw?r:A}})}catch(A){return d(A)}return f&&f.then?f.then(void 0,d):f}(0,function(l){if(function(d){return Array.isArray(d==null?void 0:d.errors)}(l))return{values:{},errors:IH(bk(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const ep=async e=>e&&typeof e.then=="function"?await e:e,Ok=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:o,autoComplete:l,...d})=>{const f=async A=>{const m=(e==null?void 0:e.safeParse(A))??{success:!0,data:void 0};await ep(t==null?void 0:t(A)),m.success?await ep(n==null?void 0:n(m.data)):await ep(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(uH,{...d,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",a),onSubmit:d.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},Fk=(e,t)=>{const n=NH({resolver:Bk(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:o,isValid:l}},Lk=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=Ti();return N.jsx(_a,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},wk=e=>{const{formDescriptionId:t}=Ti();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},Mk=({children:e,...t})=>{const{error:n,formMessageId:r}=Ti(),a=n?String((n==null?void 0:n.message)??""):e;return a?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},qf=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(tt.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&N.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&N.jsx(L9,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(tt.Description,{children:t})]}),N.jsx(tt.Control,{children:a}),o&&N.jsx(tt.Message,{"data-testid":"error-message"})]}),Hk=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:o,description:l,showErrorMessage:d=!0,...f})=>{const{error:A}=Ti();return N.jsx(qf,{htmlFor:t,label:n,description:l,isRequired:a,info:o,showErrorMessage:d,"aria-invalid":!!A,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},Bi=e=>{const{control:t}=Di();return N.jsx(tt.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(Hk,{...e,field:n})})},Pk=e=>N.jsx(Bi,{id:e.name,"data-testid":e.name,Element:ro,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),Uk=({autoComplete:e,...t})=>N.jsx(Bi,{Element:DH,id:t.name,"data-testid":t.name,"aria-labelledby":t.label?`${t.name}-label`:void 0,"aria-label":t.label?void 0:t.name,autoComplete:e,minLength:6,maxLength:255,...t}),kk=e=>N.jsx(Bi,{Element:XR,id:e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,"data-testid":e.name,...e}),Gk=e=>N.jsx(Bi,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:e9,...e}),jk=e=>N.jsx(Bi,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:t9,...e}),Vk=e=>N.jsx(Bi,{Element:Ig,id:e.name,"data-testid":e.name,...e}),zk=({inputLabel:e,...t})=>N.jsx(RH,{...t,label:e}),Kk=({autoComplete:e,...t})=>N.jsx(Bi,{Element:zk,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Yk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Di();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=Ti();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(pn,{onValueChange:A.onChange,values:A.value,...d,children:l})})}})},Zk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Di();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=Ti();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Me,{onValueChange:A.onChange,defaultValue:A.value,...d,children:l})})}})},Wk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Di();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=Ti();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(bc,{...A,...d,children:l})})}})},tt=Ok;tt.Description=wk;tt.Control=Lk;tt.Field=yH;tt.Item=CH;tt.Label=L9;tt.Message=Mk;tt.Element=Bi;tt.Input=Pk;tt.InputPassword=Uk;tt.Checkbox=Kk;tt.TextArea=kk;tt.AutoSizedTextArea=Vk;tt.Button=pt;tt.Select=Zk;tt.MultiSelect=Yk;tt.EditableFieldInput=Gk;tt.EditableFieldTextArea=jk;tt.SwitchSelector=Wk;var ct;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const o={};for(const l of a)o[l]=l;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),l={};for(const d of o)l[d]=a[d];return e.objectValues(l)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&o.push(l);return o},e.find=(a,o)=>{for(const l of a)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,o=" | "){return a.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(ct||(ct={}));var uE;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(uE||(uE={}));const De=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Cu=e=>{switch(typeof e){case"undefined":return De.undefined;case"string":return De.string;case"number":return isNaN(e)?De.nan:De.number;case"boolean":return De.boolean;case"function":return De.function;case"bigint":return De.bigint;case"symbol":return De.symbol;case"object":return Array.isArray(e)?De.array:e===null?De.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?De.promise:typeof Map<"u"&&e instanceof Map?De.map:typeof Set<"u"&&e instanceof Set?De.set:typeof Date<"u"&&e instanceof Date?De.date:De.object;default:return De.unknown}},he=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$k=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Wn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},a=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(a);else if(l.code==="invalid_return_type")a(l.returnTypeError);else if(l.code==="invalid_arguments")a(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let d=r,f=0;for(;f<l.path.length;){const A=l.path[f];f===l.path.length-1?(d[A]=d[A]||{_errors:[]},d[A]._errors.push(n(l))):d[A]=d[A]||{_errors:[]},d=d[A],f++}}};return a(this),r}static assert(t){if(!(t instanceof Wn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Wn.create=e=>new Wn(e);const js=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===De.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case he.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let FD=js;function qk(e){FD=e}function J0(){return FD}const ef=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],l={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let d="";const f=r.filter(A=>!!A).slice().reverse();for(const A of f)d=A(l,{data:t,defaultError:d}).message;return{...a,path:o,message:d}},Qk=[];function Ce(e,t){const n=J0(),r=ef({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===js?void 0:js].filter(a=>!!a)});e.common.issues.push(r)}class Nn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return ze;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const o=await a.key,l=await a.value;r.push({key:o,value:l})}return Nn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:o,value:l}=a;if(o.status==="aborted"||l.status==="aborted")return ze;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||a.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const ze=Object.freeze({status:"aborted"}),Rs=e=>({status:"dirty",value:e}),Rn=e=>({status:"valid",value:e}),iE=e=>e.status==="aborted",aE=e=>e.status==="dirty",va=e=>e.status==="valid",Vl=e=>typeof Promise<"u"&&e instanceof Promise;function tf(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function LD(e,t,n,r,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Fe||(Fe={}));var Sl,Cl;class qr{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const W3=(e,t)=>{if(va(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Wn(e.common.issues);return this._error=n,this._error}}};function $e(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(l,d)=>{var f,A;const{message:m}=e;return l.code==="invalid_enum_value"?{message:m??d.defaultError}:typeof d.data>"u"?{message:(f=m??r)!==null&&f!==void 0?f:d.defaultError}:l.code!=="invalid_type"?{message:d.defaultError}:{message:(A=m??n)!==null&&A!==void 0?A:d.defaultError}},description:a}}class Je{get description(){return this._def.description}_getType(t){return Cu(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Cu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nn,ctx:{common:t.parent.common,data:t.data,parsedType:Cu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Vl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Cu(t)},o=this._parseSync({data:t,path:a.path,parent:a});return W3(a,o)}"~validate"(t){var n,r;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Cu(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:a});return va(o)?{value:o.value}:{issues:a.common.issues}}catch(o){!((r=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(o=>va(o)?{value:o.value}:{issues:a.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Cu(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(Vl(a)?a:Promise.resolve(a));return W3(r,o)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,o)=>{const l=t(a),d=()=>o.addIssue({code:he.custom,...r(a)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(d(),!1)):l?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new xr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Kr.create(this,this._def)}nullable(){return Ii.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Rr.create(this)}promise(){return zs.create(this,this._def)}or(t){return Zl.create([this,t],this._def)}and(t){return Wl.create(this,t,this._def)}transform(t){return new xr({...$e(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Jl({...$e(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new kg({typeName:Ge.ZodBranded,type:this,...$e(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ec({...$e(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Bc.create(this,t)}readonly(){return tc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Xk=/^c[^\s-]{8,}$/i,Jk=/^[0-9a-z]+$/,eG=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tG=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nG=/^[a-z0-9_-]{21}$/i,rG=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uG=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,iG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let tp;const sG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,oG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,cG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wD="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",AG=new RegExp(`^${wD}$`);function MD(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function hG(e){return new RegExp(`^${MD(e)}$`)}function HD(e){let t=`${wD}T${MD(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function mG(e,t){return!!((t==="v4"||!t)&&sG.test(e)||(t==="v6"||!t)&&lG.test(e))}function pG(e,t){if(!rG.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function EG(e,t){return!!((t==="v4"||!t)&&oG.test(e)||(t==="v6"||!t)&&cG.test(e))}class vr extends Je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==De.string){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.string,received:o.parsedType}),ze}const r=new Nn;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,d=t.data.length<o.value;(l||d)&&(a=this._getOrReturnCtx(t,a),l?Ce(a,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&Ce(a,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")iG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")tp||(tp=new RegExp(aG,"u")),tp.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")tG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")nG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Xk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Jk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")eG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ce(a,{validation:"url",code:he.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"regex",code:he.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?HD(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?AG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?hG(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?uG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?mG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?pG(t.data,o.alg)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?EG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?dG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?fG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):ct.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:he.invalid_string,...Fe.errToObj(r)})}_addCheck(t){return new vr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Fe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Fe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Fe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Fe.errToObj(n)})}nonempty(t){return this.min(1,Fe.errToObj(t))}trim(){return new vr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}vr.create=e=>{var t;return new vr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};function gG(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,o=parseInt(e.toFixed(a).replace(".","")),l=parseInt(t.toFixed(a).replace(".",""));return o%l/Math.pow(10,a)}class gi extends Je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==De.number){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.number,received:o.parsedType}),ze}let r;const a=new Nn;for(const o of this._def.checks)o.kind==="int"?ct.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?gG(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_finite,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new gi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(a)}]})}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Fe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}gi.create=e=>new gi({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class _i extends Je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==De.bigint)return this._getInvalidInput(t);let r;const a=new Nn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.bigint,received:n.parsedType}),ze}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new _i({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(a)}]})}_addCheck(t){return new _i({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_i.create=e=>{var t;return new _i({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};class zl extends Je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==De.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.boolean,received:r.parsedType}),ze}return Rn(t.data)}}zl.create=e=>new zl({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Ra extends Je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==De.date){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.date,received:o.parsedType}),ze}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_date}),ze}const r=new Nn;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ct.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ra({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Fe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ra.create=e=>new Ra({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...$e(e)});class nf extends Je{_parse(t){if(this._getType(t)!==De.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.symbol,received:r.parsedType}),ze}return Rn(t.data)}}nf.create=e=>new nf({typeName:Ge.ZodSymbol,...$e(e)});class Kl extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.undefined,received:r.parsedType}),ze}return Rn(t.data)}}Kl.create=e=>new Kl({typeName:Ge.ZodUndefined,...$e(e)});class Yl extends Je{_parse(t){if(this._getType(t)!==De.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.null,received:r.parsedType}),ze}return Rn(t.data)}}Yl.create=e=>new Yl({typeName:Ge.ZodNull,...$e(e)});class Vs extends Je{constructor(){super(...arguments),this._any=!0}_parse(t){return Rn(t.data)}}Vs.create=e=>new Vs({typeName:Ge.ZodAny,...$e(e)});class Ea extends Je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Rn(t.data)}}Ea.create=e=>new Ea({typeName:Ge.ZodUnknown,...$e(e)});class Ou extends Je{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.never,received:n.parsedType}),ze}}Ou.create=e=>new Ou({typeName:Ge.ZodNever,...$e(e)});class rf extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.void,received:r.parsedType}),ze}return Rn(t.data)}}rf.create=e=>new rf({typeName:Ge.ZodVoid,...$e(e)});class Rr extends Je{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==De.array)return Ce(n,{code:he.invalid_type,expected:De.array,received:n.parsedType}),ze;if(a.exactLength!==null){const l=n.data.length>a.exactLength.value,d=n.data.length<a.exactLength.value;(l||d)&&(Ce(n,{code:l?he.too_big:he.too_small,minimum:d?a.exactLength.value:void 0,maximum:l?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ce(n,{code:he.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ce(n,{code:he.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,d)=>a.type._parseAsync(new qr(n,l,n.path,d)))).then(l=>Nn.mergeArray(r,l));const o=[...n.data].map((l,d)=>a.type._parseSync(new qr(n,l,n.path,d)));return Nn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Rr({...this._def,minLength:{value:t,message:Fe.toString(n)}})}max(t,n){return new Rr({...this._def,maxLength:{value:t,message:Fe.toString(n)}})}length(t,n){return new Rr({...this._def,exactLength:{value:t,message:Fe.toString(n)}})}nonempty(t){return this.min(1,t)}}Rr.create=(e,t)=>new Rr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...$e(t)});function ys(e){if(e instanceof Rt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Kr.create(ys(r))}return new Rt({...e._def,shape:()=>t})}else return e instanceof Rr?new Rr({...e._def,type:ys(e.element)}):e instanceof Kr?Kr.create(ys(e.unwrap())):e instanceof Ii?Ii.create(ys(e.unwrap())):e instanceof Qr?Qr.create(e.items.map(t=>ys(t))):e}class Rt extends Je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==De.object){const A=this._getOrReturnCtx(t);return Ce(A,{code:he.invalid_type,expected:De.object,received:A.parsedType}),ze}const{status:r,ctx:a}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),d=[];if(!(this._def.catchall instanceof Ou&&this._def.unknownKeys==="strip"))for(const A in a.data)l.includes(A)||d.push(A);const f=[];for(const A of l){const m=o[A],E=a.data[A];f.push({key:{status:"valid",value:A},value:m._parse(new qr(a,E,a.path,A)),alwaysSet:A in a.data})}if(this._def.catchall instanceof Ou){const A=this._def.unknownKeys;if(A==="passthrough")for(const m of d)f.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(A==="strict")d.length>0&&(Ce(a,{code:he.unrecognized_keys,keys:d}),r.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const A=this._def.catchall;for(const m of d){const E=a.data[m];f.push({key:{status:"valid",value:m},value:A._parse(new qr(a,E,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const A=[];for(const m of f){const E=await m.key,g=await m.value;A.push({key:E,value:g,alwaysSet:m.alwaysSet})}return A}).then(A=>Nn.mergeObjectSync(r,A)):Nn.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Fe.errToObj,new Rt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o,l,d;const f=(l=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Fe.errToObj(t).message)!==null&&d!==void 0?d:f}:{message:f}}}:{}})}strip(){return new Rt({...this._def,unknownKeys:"strip"})}passthrough(){return new Rt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Rt({...this._def,catchall:t})}pick(t){const n={};return ct.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}omit(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}deepPartial(){return ys(this)}partial(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new Rt({...this._def,shape:()=>n})}required(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Kr;)o=o._def.innerType;n[r]=o}}),new Rt({...this._def,shape:()=>n})}keyof(){return PD(ct.objectKeys(this.shape))}}Rt.create=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strip",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});Rt.strictCreate=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strict",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});Rt.lazycreate=(e,t)=>new Rt({shape:e,unknownKeys:"strip",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});class Zl extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(o){for(const d of o)if(d.result.status==="valid")return d.result;for(const d of o)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const l=o.map(d=>new Wn(d.ctx.common.issues));return Ce(n,{code:he.invalid_union,unionErrors:l}),ze}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(a);{let o;const l=[];for(const f of r){const A={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:A});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:A}),A.common.issues.length&&l.push(A.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const d=l.map(f=>new Wn(f));return Ce(n,{code:he.invalid_union,unionErrors:d}),ze}}get options(){return this._def.options}}Zl.create=(e,t)=>new Zl({options:e,typeName:Ge.ZodUnion,...$e(t)});const Su=e=>e instanceof ql?Su(e.schema):e instanceof xr?Su(e.innerType()):e instanceof Ql?[e.value]:e instanceof Ni?e.options:e instanceof Xl?ct.objectValues(e.enum):e instanceof Jl?Su(e._def.innerType):e instanceof Kl?[void 0]:e instanceof Yl?[null]:e instanceof Kr?[void 0,...Su(e.unwrap())]:e instanceof Ii?[null,...Su(e.unwrap())]:e instanceof kg||e instanceof tc?Su(e.unwrap()):e instanceof ec?Su(e._def.innerType):[];class Qf extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.object)return Ce(n,{code:he.invalid_type,expected:De.object,received:n.parsedType}),ze;const r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(Ce(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const o of n){const l=Su(o.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of l){if(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,o)}}return new Qf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...$e(r)})}}function sE(e,t){const n=Cu(e),r=Cu(t);if(e===t)return{valid:!0,data:e};if(n===De.object&&r===De.object){const a=ct.objectKeys(t),o=ct.objectKeys(e).filter(d=>a.indexOf(d)!==-1),l={...e,...t};for(const d of o){const f=sE(e[d],t[d]);if(!f.valid)return{valid:!1};l[d]=f.data}return{valid:!0,data:l}}else if(n===De.array&&r===De.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const l=e[o],d=t[o],f=sE(l,d);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return n===De.date&&r===De.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Wl extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(o,l)=>{if(iE(o)||iE(l))return ze;const d=sE(o.value,l.value);return d.valid?((aE(o)||aE(l))&&n.dirty(),{status:n.value,value:d.data}):(Ce(r,{code:he.invalid_intersection_types}),ze)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>a(o,l)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Wl.create=(e,t,n)=>new Wl({left:e,right:t,typeName:Ge.ZodIntersection,...$e(n)});class Qr extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.array)return Ce(r,{code:he.invalid_type,expected:De.array,received:r.parsedType}),ze;if(r.data.length<this._def.items.length)return Ce(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new qr(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>Nn.mergeArray(n,l)):Nn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Qr({...this._def,rest:t})}}Qr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qr({items:e,typeName:Ge.ZodTuple,rest:null,...$e(t)})};class $l extends Je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.object)return Ce(r,{code:he.invalid_type,expected:De.object,received:r.parsedType}),ze;const a=[],o=this._def.keyType,l=this._def.valueType;for(const d in r.data)a.push({key:o._parse(new qr(r,d,r.path,d)),value:l._parse(new qr(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?Nn.mergeObjectAsync(n,a):Nn.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Je?new $l({keyType:t,valueType:n,typeName:Ge.ZodRecord,...$e(r)}):new $l({keyType:vr.create(),valueType:t,typeName:Ge.ZodRecord,...$e(n)})}}class uf extends Je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.map)return Ce(r,{code:he.invalid_type,expected:De.map,received:r.parsedType}),ze;const a=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([d,f],A)=>({key:a._parse(new qr(r,d,r.path,[A,"key"])),value:o._parse(new qr(r,f,r.path,[A,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of l){const A=await f.key,m=await f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of l){const A=f.key,m=f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}}}}uf.create=(e,t,n)=>new uf({valueType:t,keyType:e,typeName:Ge.ZodMap,...$e(n)});class Da extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.set)return Ce(r,{code:he.invalid_type,expected:De.set,received:r.parsedType}),ze;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Ce(r,{code:he.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Ce(r,{code:he.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const A=new Set;for(const m of f){if(m.status==="aborted")return ze;m.status==="dirty"&&n.dirty(),A.add(m.value)}return{status:n.value,value:A}}const d=[...r.data.values()].map((f,A)=>o._parse(new qr(r,f,r.path,A)));return r.common.async?Promise.all(d).then(f=>l(f)):l(d)}min(t,n){return new Da({...this._def,minSize:{value:t,message:Fe.toString(n)}})}max(t,n){return new Da({...this._def,maxSize:{value:t,message:Fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Da.create=(e,t)=>new Da({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...$e(t)});class Ms extends Je{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.function)return Ce(n,{code:he.invalid_type,expected:De.function,received:n.parsedType}),ze;function r(d,f){return ef({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,J0(),js].filter(A=>!!A),issueData:{code:he.invalid_arguments,argumentsError:f}})}function a(d,f){return ef({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,J0(),js].filter(A=>!!A),issueData:{code:he.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof zs){const d=this;return Rn(async function(...f){const A=new Wn([]),m=await d._def.args.parseAsync(f,o).catch(_=>{throw A.addIssue(r(f,_)),A}),E=await Reflect.apply(l,this,m);return await d._def.returns._def.type.parseAsync(E,o).catch(_=>{throw A.addIssue(a(E,_)),A})})}else{const d=this;return Rn(function(...f){const A=d._def.args.safeParse(f,o);if(!A.success)throw new Wn([r(f,A.error)]);const m=Reflect.apply(l,this,A.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Wn([a(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ms({...this._def,args:Qr.create(t).rest(Ea.create())})}returns(t){return new Ms({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ms({args:t||Qr.create([]).rest(Ea.create()),returns:n||Ea.create(),typeName:Ge.ZodFunction,...$e(r)})}}class ql extends Je{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ql.create=(e,t)=>new ql({getter:e,typeName:Ge.ZodLazy,...$e(t)});class Ql extends Je{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ql.create=(e,t)=>new Ql({value:e,typeName:Ge.ZodLiteral,...$e(t)});function PD(e,t){return new Ni({values:e,typeName:Ge.ZodEnum,...$e(t)})}class Ni extends Je{constructor(){super(...arguments),Sl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:ct.joinValues(r),received:n.parsedType,code:he.invalid_type}),ze}if(tf(this,Sl)||LD(this,Sl,new Set(this._def.values)),!tf(this,Sl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:he.invalid_enum_value,options:r}),ze}return Rn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ni.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ni.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Sl=new WeakMap;Ni.create=PD;class Xl extends Je{constructor(){super(...arguments),Cl.set(this,void 0)}_parse(t){const n=ct.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==De.string&&r.parsedType!==De.number){const a=ct.objectValues(n);return Ce(r,{expected:ct.joinValues(a),received:r.parsedType,code:he.invalid_type}),ze}if(tf(this,Cl)||LD(this,Cl,new Set(ct.getValidEnumValues(this._def.values))),!tf(this,Cl).has(t.data)){const a=ct.objectValues(n);return Ce(r,{received:r.data,code:he.invalid_enum_value,options:a}),ze}return Rn(t.data)}get enum(){return this._def.values}}Cl=new WeakMap;Xl.create=(e,t)=>new Xl({values:e,typeName:Ge.ZodNativeEnum,...$e(t)});class zs extends Je{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.promise&&n.common.async===!1)return Ce(n,{code:he.invalid_type,expected:De.promise,received:n.parsedType}),ze;const r=n.parsedType===De.promise?n.data:Promise.resolve(n.data);return Rn(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zs.create=(e,t)=>new zs({type:e,typeName:Ge.ZodPromise,...$e(t)});class xr extends Je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:l=>{Ce(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const l=a.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async d=>{if(n.value==="aborted")return ze;const f=await this._def.schema._parseAsync({data:d,path:r.path,parent:r});return f.status==="aborted"?ze:f.status==="dirty"||n.value==="dirty"?Rs(f.value):f});{if(n.value==="aborted")return ze;const d=this._def.schema._parseSync({data:l,path:r.path,parent:r});return d.status==="aborted"?ze:d.status==="dirty"||n.value==="dirty"?Rs(d.value):d}}if(a.type==="refinement"){const l=d=>{const f=a.refinement(d,o);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?ze:(d.status==="dirty"&&n.dirty(),l(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?ze:(d.status==="dirty"&&n.dirty(),l(d.value).then(()=>({status:n.value,value:d.value}))))}if(a.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!va(l))return l;const d=a.transform(l.value,o);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>va(l)?Promise.resolve(a.transform(l.value,o)).then(d=>({status:n.value,value:d})):l);ct.assertNever(a)}}xr.create=(e,t,n)=>new xr({schema:e,typeName:Ge.ZodEffects,effect:t,...$e(n)});xr.createWithPreprocess=(e,t,n)=>new xr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...$e(n)});class Kr extends Je{_parse(t){return this._getType(t)===De.undefined?Rn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(e,t)=>new Kr({innerType:e,typeName:Ge.ZodOptional,...$e(t)});class Ii extends Je{_parse(t){return this._getType(t)===De.null?Rn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ii.create=(e,t)=>new Ii({innerType:e,typeName:Ge.ZodNullable,...$e(t)});class Jl extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===De.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Jl.create=(e,t)=>new Jl({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$e(t)});class ec extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Vl(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Wn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Wn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$e(t)});class af extends Je{_parse(t){if(this._getType(t)!==De.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.nan,received:r.parsedType}),ze}return{status:"valid",value:t.data}}}af.create=e=>new af({typeName:Ge.ZodNaN,...$e(e)});const _G=Symbol("zod_brand");class kg extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Bc extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ze:o.status==="dirty"?(n.dirty(),Rs(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ze:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Bc({in:t,out:n,typeName:Ge.ZodPipeline})}}class tc extends Je{_parse(t){const n=this._def.innerType._parse(t),r=a=>(va(a)&&(a.value=Object.freeze(a.value)),a);return Vl(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}tc.create=(e,t)=>new tc({innerType:e,typeName:Ge.ZodReadonly,...$e(t)});function $3(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function UD(e,t={},n){return e?Vs.create().superRefine((r,a)=>{var o,l;const d=e(r);if(d instanceof Promise)return d.then(f=>{var A,m;if(!f){const E=$3(t,r),g=(m=(A=E.fatal)!==null&&A!==void 0?A:n)!==null&&m!==void 0?m:!0;a.addIssue({code:"custom",...E,fatal:g})}});if(!d){const f=$3(t,r),A=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;a.addIssue({code:"custom",...f,fatal:A})}}):Vs.create()}const NG={object:Rt.lazycreate};var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const IG=(e,t={message:`Input not instance of ${e.name}`})=>UD(n=>n instanceof e,t),kD=vr.create,GD=gi.create,SG=af.create,CG=_i.create,jD=zl.create,yG=Ra.create,vG=nf.create,RG=Kl.create,DG=Yl.create,TG=Vs.create,xG=Ea.create,bG=Ou.create,BG=rf.create,OG=Rr.create,FG=Rt.create,LG=Rt.strictCreate,wG=Zl.create,MG=Qf.create,HG=Wl.create,PG=Qr.create,UG=$l.create,kG=uf.create,GG=Da.create,jG=Ms.create,VG=ql.create,zG=Ql.create,KG=Ni.create,YG=Xl.create,ZG=zs.create,q3=xr.create,WG=Kr.create,$G=Ii.create,qG=xr.createWithPreprocess,QG=Bc.create,XG=()=>kD().optional(),JG=()=>GD().optional(),ej=()=>jD().optional(),tj={string:e=>vr.create({...e,coerce:!0}),number:e=>gi.create({...e,coerce:!0}),boolean:e=>zl.create({...e,coerce:!0}),bigint:e=>_i.create({...e,coerce:!0}),date:e=>Ra.create({...e,coerce:!0})},nj=ze;var oi=Object.freeze({__proto__:null,defaultErrorMap:js,setErrorMap:qk,getErrorMap:J0,makeIssue:ef,EMPTY_PATH:Qk,addIssueToContext:Ce,ParseStatus:Nn,INVALID:ze,DIRTY:Rs,OK:Rn,isAborted:iE,isDirty:aE,isValid:va,isAsync:Vl,get util(){return ct},get objectUtil(){return uE},ZodParsedType:De,getParsedType:Cu,ZodType:Je,datetimeRegex:HD,ZodString:vr,ZodNumber:gi,ZodBigInt:_i,ZodBoolean:zl,ZodDate:Ra,ZodSymbol:nf,ZodUndefined:Kl,ZodNull:Yl,ZodAny:Vs,ZodUnknown:Ea,ZodNever:Ou,ZodVoid:rf,ZodArray:Rr,ZodObject:Rt,ZodUnion:Zl,ZodDiscriminatedUnion:Qf,ZodIntersection:Wl,ZodTuple:Qr,ZodRecord:$l,ZodMap:uf,ZodSet:Da,ZodFunction:Ms,ZodLazy:ql,ZodLiteral:Ql,ZodEnum:Ni,ZodNativeEnum:Xl,ZodPromise:zs,ZodEffects:xr,ZodTransformer:xr,ZodOptional:Kr,ZodNullable:Ii,ZodDefault:Jl,ZodCatch:ec,ZodNaN:af,BRAND:_G,ZodBranded:kg,ZodPipeline:Bc,ZodReadonly:tc,custom:UD,Schema:Je,ZodSchema:Je,late:NG,get ZodFirstPartyTypeKind(){return Ge},coerce:tj,any:TG,array:OG,bigint:CG,boolean:jD,date:yG,discriminatedUnion:MG,effect:q3,enum:KG,function:jG,instanceof:IG,intersection:HG,lazy:VG,literal:zG,map:kG,nan:SG,nativeEnum:YG,never:bG,null:DG,nullable:$G,number:GD,object:FG,oboolean:ej,onumber:JG,optional:WG,ostring:XG,pipeline:QG,preprocess:qG,promise:ZG,record:UG,set:GG,strictObject:LG,string:kD,symbol:vG,transformer:q3,tuple:PG,undefined:RG,union:wG,unknown:xG,void:BG,NEVER:nj,ZodIssueCode:he,quotelessJson:$k,ZodError:Wn});const VD=C.createContext({});function rj(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gg=typeof window<"u",uj=Gg?C.useLayoutEffect:C.useEffect,jg=C.createContext(null),zD=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ij(e=!0){const t=C.useContext(jg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=C.useId();C.useEffect(()=>{if(e)return a(o)},[e]);const l=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}function Vg(e,t){e.indexOf(t)===-1&&e.push(t)}function zg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $n=e=>e;let KD=$n;const aj={useManualTiming:!1};function Kg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ks=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Yg{constructor(){this.subscriptions=[]}add(t){return Vg(this.subscriptions,t),()=>zg(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Du=e=>e*1e3,Tu=e=>e/1e3;function YD(e,t){return t?e*(1e3/t):0}const sj=Kg(()=>window.ScrollTimeline!==void 0);class oj{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(sj()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,o)=>{a&&a(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lj extends oj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Zg(e,t){return e?e[t]||e.default||e:void 0}const oE=2e4;function ZD(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<oE;)t+=n,r=e.next(t);return t>=oE?1/0:t}function Wg(e){return typeof e=="function"}function Q3(e,t){e.timeline=t,e.onfinish=null}const $g=e=>Array.isArray(e)&&typeof e[0]=="number",cj={linearEasing:void 0};function dj(e,t){const n=Kg(e);return()=>{var r;return(r=cj[t])!==null&&r!==void 0?r:n()}}const sf=dj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),WD=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=e(Ks(0,a-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function $D(e){return!!(typeof e=="function"&&sf()||!e||typeof e=="string"&&(e in lE||sf())||$g(e)||Array.isArray(e)&&e.every($D))}const yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yl([0,.65,.55,1]),circOut:yl([.55,0,1,.45]),backIn:yl([.31,.01,.66,-.59]),backOut:yl([.33,1.53,.69,.99])};function qD(e,t){if(e)return typeof e=="function"&&sf()?WD(e,t):$g(e)?yl(e):Array.isArray(e)?e.map(n=>qD(n,t)||lE.easeOut):lE[e]}const o0=["read","resolveKeyframes","update","preRender","render","postRender"];function fj(e,t){let n=new Set,r=new Set,a=!1,o=!1;const l=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(A.schedule(m),e()),m(d)}const A={schedule:(m,E=!1,g=!1)=>{const I=g&&a?n:r;return E&&l.add(m),I.has(m)||I.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(d=m,a){o=!0;return}a=!0,[n,r]=[r,n],n.forEach(f),n.clear(),a=!1,o&&(o=!1,A.process(m))}};return A}const Aj=40;function QD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=o0.reduce((R,D)=>(R[D]=fj(o),R),{}),{read:d,resolveKeyframes:f,update:A,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,Aj),1),a.timestamp=R,a.isProcessing=!0,d.process(a),f.process(a),A.process(a),m.process(a),E.process(a),g.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(_))},I=()=>{n=!0,r=!0,a.isProcessing||e(_)};return{schedule:o0.reduce((R,D)=>{const x=l[D];return R[D]=(F,b=!1,O=!1)=>(n||I(),x.schedule(F,b,O)),R},{}),cancel:R=>{for(let D=0;D<o0.length;D++)l[o0[D]].cancel(R)},state:a,steps:l}}const{schedule:It,cancel:Si,state:dn,steps:np}=QD(typeof requestAnimationFrame<"u"?requestAnimationFrame:$n,!0),{schedule:qg}=QD(queueMicrotask,!1);let b0;function hj(){b0=void 0}const Yr={now:()=>(b0===void 0&&Yr.set(dn.isProcessing||aj.useManualTiming?dn.timestamp:performance.now()),b0),set:e=>{b0=e,queueMicrotask(hj)}},Cr={x:!1,y:!1};function XD(){return Cr.x||Cr.y}function mj(e){return e==="x"||e==="y"?Cr[e]?null:(Cr[e]=!0,()=>{Cr[e]=!1}):Cr.x||Cr.y?null:(Cr.x=Cr.y=!0,()=>{Cr.x=Cr.y=!1})}function pj(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const o=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function JD(e,t){const n=pj(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function X3(e){return!(e.pointerType==="touch"||XD())}function Ej(e,t,n={}){const[r,a,o]=JD(e,n),l=d=>{if(!X3(d))return;const{target:f}=d,A=t(f,d);if(typeof A!="function"||!f)return;const m=E=>{X3(E)&&(A(E),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return r.forEach(d=>{d.addEventListener("pointerenter",l,a)}),o}function J3(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const eT=(e,t)=>t?e===t?!0:eT(e,t.parentElement):!1,Qg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _j(e){return gj.has(e.tagName)||e.tabIndex!==-1}const vl=new WeakSet;function eC(e){return t=>{t.key==="Enter"&&e(t)}}function rp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Nj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eC(()=>{if(vl.has(n))return;rp(n,"down");const a=eC(()=>{rp(n,"up")}),o=()=>rp(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function tC(e){return Qg(e)&&!XD()}function Ij(e,t,n={}){const[r,a,o]=JD(e,n),l=d=>{const f=d.currentTarget;if(!f||!tC(d)||vl.has(f))return;vl.add(f),J3(d,"set");const A=t(f,d),m=(_,I)=>{f.removeEventListener("pointerup",E),f.removeEventListener("pointercancel",g),J3(_,"release"),!(!tC(_)||!vl.has(f))&&(vl.delete(f),typeof A=="function"&&A(_,{success:I}))},E=_=>{(_.isTrusted?Sj(_,f instanceof Element?f.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?m(_,!1):m(_,!(f instanceof Element)||eT(f,_.target))},g=_=>{m(_,!1)};f.addEventListener("pointerup",E,a),f.addEventListener("pointercancel",g,a),f.addEventListener("lostpointercapture",g,a)};return r.forEach(d=>{d=n.useGlobalTarget?window:d;let f=!1;d instanceof HTMLElement&&(f=!0,!_j(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0)),d.addEventListener("pointerdown",l,a),f&&d.addEventListener("focus",A=>Nj(A,a),a)}),o}function Sj(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}const nC=30,Cj=e=>!isNaN(parseFloat(e));class yj{constructor(t,n={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const o=Yr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yg);const r=this.events[t].add(n);return t==="change"?()=>{r(),It.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nC);return YD(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nc(e,t){return new yj(e,t)}const Xg=C.createContext({strict:!1}),rC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ys={};for(const e in rC)Ys[e]={isEnabled:t=>rC[e].some(n=>!!t[n])};function cE(e){for(const t in e)Ys[t]={...Ys[t],...e[t]}}function vj({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!up(t)),a=C.useRef(void 0);if(!up(t)){const{renderer:o,...l}=t;a.current=o,cE(l)}return C.useEffect(()=>{up(t)&&t().then(({renderer:o,...l})=>{cE(l),a.current=o,r(!0)})},[]),N.jsx(Xg.Provider,{value:{renderer:a.current,strict:n},children:e})}function up(e){return typeof e=="function"}const Rj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function of(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rj.has(e)}let tT=e=>!of(e);function Dj(e){e&&(tT=t=>t.startsWith("on")?!of(t):e(t))}try{Dj(require("@emotion/is-prop-valid").default)}catch{}function Tj(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(tT(a)||n===!0&&of(a)||!t&&!of(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function xj(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Xf=C.createContext({});function Jf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function rc(e){return typeof e=="string"||Array.isArray(e)}const Jg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e4=["initial",...Jg];function eA(e){return Jf(e.animate)||e4.some(t=>rc(e[t]))}function nT(e){return!!(eA(e)||e.variants)}function bj(e,t){if(eA(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rc(n)?n:void 0,animate:rc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Bj(e){const{initial:t,animate:n}=bj(e,C.useContext(Xf));return C.useMemo(()=>({initial:t,animate:n}),[uC(t),uC(n)])}function uC(e){return Array.isArray(e)?e.join(" "):e}const Oj=Symbol.for("motionComponentSymbol");function Ds(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fj(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ds(n)&&(n.current=r))},[t])}const t4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lj="framerAppearId",rT="data-"+t4(Lj),uT=C.createContext({});function wj(e,t,n,r,a){var o,l;const{visualElement:d}=C.useContext(Xf),f=C.useContext(Xg),A=C.useContext(jg),m=C.useContext(zD).reducedMotion,E=C.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:d,props:n,presenceContext:A,blockInitialAnimation:A?A.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=C.useContext(uT);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&Mj(E.current,n,a,_);const I=C.useRef(!1);C.useInsertionEffect(()=>{g&&I.current&&g.update(n,A)});const y=n[rT],v=C.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,y)));return uj(()=>{g&&(I.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),qg.render(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),C.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,y)}),v.current=!1))}),g}function Mj(e,t,n,r){const{layoutId:a,layout:o,drag:l,dragConstraints:d,layoutScroll:f,layoutRoot:A}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:iT(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||d&&Ds(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:A})}function iT(e){if(e)return e.options.allowProjection!==!1?e.projection:iT(e.parent)}function Hj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var o,l;e&&cE(e);function d(A,m){let E;const g={...C.useContext(zD),...A,layoutId:Pj(A)},{isStatic:_}=g,I=Bj(A),y=r(A,_);if(!_&&Gg){Uj();const v=kj(g);E=v.MeasureLayout,I.visualElement=wj(a,y,g,t,v.ProjectionNode)}return N.jsxs(Xf.Provider,{value:I,children:[E&&I.visualElement?N.jsx(E,{visualElement:I.visualElement,...g}):null,n(a,A,Fj(y,I.visualElement,m),y,_,I.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(l=(o=a.displayName)!==null&&o!==void 0?o:a.name)!==null&&l!==void 0?l:""})`}`;const f=C.forwardRef(d);return f[Oj]=a,f}function Pj({layoutId:e}){const t=C.useContext(VD).id;return t&&e!==void 0?t+"-"+e:e}function Uj(e,t){C.useContext(Xg).strict}function kj(e){const{drag:t,layout:n}=Ys;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const aT=e=>t=>typeof t=="string"&&t.startsWith(e),n4=aT("--"),Gj=aT("var(--"),r4=e=>Gj(e)?jj.test(e.split("/*")[0].trim()):!1,jj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,uc={};function Vj(e){for(const t in e)uc[t]=e[t],n4(t)&&(uc[t].isCSSVariable=!0)}const so=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ba=new Set(so);function sT(e,{layout:t,layoutId:n}){return Ba.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!uc[e]||e==="opacity")}const gn=e=>!!(e&&e.getVelocity),oT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fu=(e,t,n)=>n>t?t:n<e?e:n,oo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ic={...oo,transform:e=>Fu(0,1,e)},l0={...oo,default:1},Oc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fi=Oc("deg"),Zr=Oc("%"),Ue=Oc("px"),zj=Oc("vh"),Kj=Oc("vw"),iC={...Zr,parse:e=>Zr.parse(e)/100,transform:e=>Zr.transform(e*100)},Yj={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue},Zj={rotate:fi,rotateX:fi,rotateY:fi,rotateZ:fi,scale:l0,scaleX:l0,scaleY:l0,scaleZ:l0,skew:fi,skewX:fi,skewY:fi,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:ic,originX:iC,originY:iC,originZ:Ue},aC={...oo,transform:Math.round},u4={...Yj,...Zj,zIndex:aC,size:Ue,fillOpacity:ic,strokeOpacity:ic,numOctaves:aC},Wj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$j=so.length;function qj(e,t,n){let r="",a=!0;for(let o=0;o<$j;o++){const l=so[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const A=oT(d,u4[l]);if(!f){a=!1;const m=Wj[l]||l;r+=`${m}(${A}) `}n&&(t[l]=A)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function i4(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const A=t[f];if(Ba.has(f)){l=!0;continue}else if(n4(f)){a[f]=A;continue}else{const m=oT(A,u4[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=qj(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:A="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${A} ${m}`}}const a4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lT(e,t,n){for(const r in t)!gn(t[r])&&!sT(r,n)&&(e[r]=t[r])}function Qj({transformTemplate:e},t){return C.useMemo(()=>{const n=a4();return i4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xj(e,t){const n=e.style||{},r={};return lT(r,n,e),Object.assign(r,Qj(e,t)),r}function Jj(e,t){const n={},r=Xj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const e7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s4(e){return typeof e!="string"||e.includes("-")?!1:!!(e7.indexOf(e)>-1||/[A-Z]/u.test(e))}const t7={offset:"stroke-dashoffset",array:"stroke-dasharray"},n7={offset:"strokeDashoffset",array:"strokeDasharray"};function r7(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?t7:n7;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function sC(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function u7(e,t,n){const r=sC(t,e.x,e.width),a=sC(n,e.y,e.height);return`${r} ${a}`}function o4(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...A},m,E){if(i4(e,A,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:I}=e;g.transform&&(I&&(_.transform=g.transform),delete g.transform),I&&(a!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=u7(I,a!==void 0?a:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&r7(g,l,d,f,!1)}const cT=()=>({...a4(),attrs:{}}),l4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function i7(e,t,n,r){const a=C.useMemo(()=>{const o=cT();return o4(o,t,l4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lT(o,e.style,e),a.style={...o,...a.style}}return a}function a7(e=!1){return(n,r,a,{latestValues:o},l)=>{const f=(s4(n)?i7:Jj)(r,o,l,n),A=Tj(r,typeof n=="string",e),m=n!==C.Fragment?{...A,...f,ref:a}:{},{children:E}=r,g=C.useMemo(()=>gn(E)?E.get():E,[E]);return C.createElement(n,{...m,children:g})}}function oC(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function c4(e,t,n,r){if(typeof t=="function"){const[a,o]=oC(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=oC(r);t=t(n!==void 0?n:e.custom,a,o)}return t}const dE=e=>Array.isArray(e),s7=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),o7=e=>dE(e)?e[e.length-1]||0:e;function B0(e){const t=gn(e)?e.get():e;return s7(t)?t.toValue():t}function l7({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,o){const l={latestValues:c7(r,a,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const dT=e=>(t,n)=>{const r=C.useContext(Xf),a=C.useContext(jg),o=()=>l7(e,t,r,a);return n?o():rj(o)};function c7(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=B0(o[g]);let{initial:l,animate:d}=e;const f=eA(e),A=nT(e);t&&A&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const E=m?d:l;if(E&&typeof E!="boolean"&&!Jf(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const I=c4(e,g[_]);if(I){const{transitionEnd:y,transition:v,...R}=I;for(const D in R){let x=R[D];if(Array.isArray(x)){const F=m?x.length-1:0;x=x[F]}x!==null&&(a[D]=x)}for(const D in y)a[D]=y[D]}}}return a}function d4(e,t,n){var r;const{style:a}=e,o={};for(const l in a)(gn(a[l])||t.style&&gn(t.style[l])||sT(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=a[l]);return o}const d7={useVisualState:dT({scrapeMotionValuesFromProps:d4,createRenderState:a4})};function fT(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function AT(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const hT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mT(e,t,n,r){AT(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(hT.has(a)?a:t4(a),t.attrs[a])}function pT(e,t,n){const r=d4(e,t,n);for(const a in e)if(gn(e[a])||gn(t[a])){const o=so.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}const lC=["x","y","width","height","cx","cy","r"],f7={useVisualState:dT({scrapeMotionValuesFromProps:pT,createRenderState:cT,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let o=!!e.drag;if(!o){for(const d in a)if(Ba.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<lC.length;d++){const f=lC[d];e[f]!==t[f]&&(l=!0)}l&&It.read(()=>{fT(n,r),It.render(()=>{o4(r,a,l4(n.tagName),e.transformTemplate),mT(n,r)})})}})};function A7(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...s4(r)?f7:d7,preloadedFeatures:e,useRender:a7(a),createVisualElement:t,Component:r};return Hj(l)}}function ac(e,t,n){const r=e.getProps();return c4(r,t,n!==void 0?n:r.custom,e)}const ET=new Set(["width","height","top","left","right","bottom",...so]);function h7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nc(n))}function m7(e,t){const n=ac(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const d=o7(o[l]);h7(e,l,d)}}function p7(e){return!!(gn(e)&&e.add)}function fE(e,t){const n=e.getValue("willChange");if(p7(n))return n.add(t)}function gT(e){return e.props[rT]}const _T=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,E7=1e-7,g7=12;function _7(e,t,n,r,a){let o,l,d=0;do l=t+(n-t)/2,o=_T(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>E7&&++d<g7);return l}function Fc(e,t,n,r){if(e===t&&n===r)return $n;const a=o=>_7(o,0,1,e,n);return o=>o===0||o===1?o:_T(a(o),t,r)}const NT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,IT=e=>t=>1-e(1-t),ST=Fc(.33,1.53,.69,.99),f4=IT(ST),CT=NT(f4),yT=e=>(e*=2)<1?.5*f4(e):.5*(2-Math.pow(2,-10*(e-1))),A4=e=>1-Math.sin(Math.acos(e)),vT=IT(A4),RT=NT(A4),DT=e=>/^0[^.\s]+$/u.test(e);function N7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||DT(e):!0}const Bl=e=>Math.round(e*1e5)/1e5,h4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function I7(e){return e==null}const S7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m4=(e,t)=>n=>!!(typeof n=="string"&&S7.test(n)&&n.startsWith(e)||t&&!I7(n)&&Object.prototype.hasOwnProperty.call(n,t)),TT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,d]=r.match(h4);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},C7=e=>Fu(0,255,e),ip={...oo,transform:e=>Math.round(C7(e))},Aa={test:m4("rgb","red"),parse:TT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ip.transform(e)+", "+ip.transform(t)+", "+ip.transform(n)+", "+Bl(ic.transform(r))+")"};function y7(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const AE={test:m4("#"),parse:y7,transform:Aa.transform},Ts={test:m4("hsl","hue"),parse:TT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Zr.transform(Bl(t))+", "+Zr.transform(Bl(n))+", "+Bl(ic.transform(r))+")"},En={test:e=>Aa.test(e)||AE.test(e)||Ts.test(e),parse:e=>Aa.test(e)?Aa.parse(e):Ts.test(e)?Ts.parse(e):AE.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Aa.transform(e):Ts.transform(e)},v7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function R7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(h4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(v7))===null||n===void 0?void 0:n.length)||0)>0}const xT="number",bT="color",D7="var",T7="var(",cC="${}",x7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function sc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const d=t.replace(x7,f=>(En.test(f)?(r.color.push(o),a.push(bT),n.push(En.parse(f))):f.startsWith(T7)?(r.var.push(o),a.push(D7),n.push(f)):(r.number.push(o),a.push(xT),n.push(parseFloat(f))),++o,cC)).split(cC);return{values:n,split:d,indexes:r,types:a}}function BT(e){return sc(e).values}function OT(e){const{split:t,types:n}=sc(e),r=t.length;return a=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],a[l]!==void 0){const d=n[l];d===xT?o+=Bl(a[l]):d===bT?o+=En.transform(a[l]):o+=a[l]}return o}}const b7=e=>typeof e=="number"?0:e;function B7(e){const t=BT(e);return OT(e)(t.map(b7))}const Ci={test:R7,parse:BT,createTransformer:OT,getAnimatableNone:B7},O7=new Set(["brightness","contrast","saturate","opacity"]);function F7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(h4)||[];if(!r)return e;const a=n.replace(r,"");let o=O7.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const L7=/\b([a-z-]*)\(.*?\)/gu,hE={...Ci,getAnimatableNone:e=>{const t=e.match(L7);return t?t.map(F7).join(" "):e}},w7={...u4,color:En,backgroundColor:En,outlineColor:En,fill:En,stroke:En,borderColor:En,borderTopColor:En,borderRightColor:En,borderBottomColor:En,borderLeftColor:En,filter:hE,WebkitFilter:hE},FT=e=>w7[e];function LT(e,t){let n=FT(e);return n!==hE&&(n=Ci),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const M7=new Set(["auto","none","0"]);function H7(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!M7.has(o)&&sc(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=LT(n,a)}const ha=e=>e*180/Math.PI,mE=e=>{const t=ha(Math.atan2(e[1],e[0]));return pE(t)},P7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:mE,rotateZ:mE,skewX:e=>ha(Math.atan(e[1])),skewY:e=>ha(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pE=e=>(e=e%360,e<0&&(e+=360),e),dC=mE,fC=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),AC=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fC,scaleY:AC,scale:e=>(fC(e)+AC(e))/2,rotateX:e=>pE(ha(Math.atan2(e[6],e[5]))),rotateY:e=>pE(ha(Math.atan2(-e[2],e[0]))),rotateZ:dC,rotate:dC,skewX:e=>ha(Math.atan(e[4])),skewY:e=>ha(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hC(e){return e.includes("scale")?1:0}function EE(e,t){if(!e||e==="none")return hC(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=U7,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=P7,a=d}if(!a)return hC(t);const o=r[t],l=a[1].split(",").map(G7);return typeof o=="function"?o(l):l[o]}const k7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return EE(n,t)};function G7(e){return parseFloat(e.trim())}const mC=e=>e===oo||e===Ue,j7=new Set(["x","y","z"]),V7=so.filter(e=>!j7.has(e));function z7(e){const t=[];return V7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Zs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>EE(t,"x"),y:(e,{transform:t})=>EE(t,"y")};Zs.translateX=Zs.x;Zs.translateY=Zs.y;const ga=new Set;let gE=!1,_E=!1;function wT(){if(_E){const e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=z7(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_E=!1,gE=!1,ga.forEach(e=>e.complete()),ga.clear()}function MT(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_E=!0)})}function K7(){MT(),wT()}class p4{constructor(t,n,r,a,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ga.add(this),gE||(gE=!0,It.read(MT),It.resolveKeyframes(wT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=a==null?void 0:a.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),a&&l===void 0&&a.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ga.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ga.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const HT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z7(e){const t=Y7.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function PT(e,t,n=1){const[r,a]=Z7(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return HT(l)?parseFloat(l):l}return r4(a)?PT(a,t,n+1):a}const UT=e=>t=>t.test(e),W7={test:e=>e==="auto",parse:e=>e},kT=[oo,Ue,Zr,fi,Kj,zj,W7],pC=e=>kT.find(UT(e));class GT extends p4{constructor(t,n,r,a,o){super(t,n,r,a,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let A=t[f];if(typeof A=="string"&&(A=A.trim(),r4(A))){const m=PT(A,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=A)}}if(this.resolveNoneKeyframes(),!ET.has(r)||t.length!==2)return;const[a,o]=t,l=pC(a),d=pC(o);if(l!==d)if(mC(l)&&mC(d))for(let f=0;f<t.length;f++){const A=t[f];typeof A=="string"&&(t[f]=parseFloat(A))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)N7(t[a])&&r.push(a);r.length&&H7(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=a.length-1,d=a[l];a[l]=Zs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,A])=>{n.getValue(f).set(A)}),this.resolveNoneKeyframes()}}const EC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ci.test(e)||e==="0")&&!e.startsWith("url("));function $7(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function q7(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=EC(a,t),d=EC(o,t);return!l||!d?!1:$7(e)||(n==="spring"||Wg(n))&&r}const Q7=e=>e!==null;function tA(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(Q7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const X7=40;class jT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>X7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:A}=this.options;if(!A&&!q7(t,r,a,o))if(l)this.options.duration=0;else{f&&f(tA(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Dt=(e,t,n)=>e+(t-e)*n;function ap(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function J7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=ap(f,d,e+1/3),o=ap(f,d,e),l=ap(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function lf(e,t){return n=>n>0?t:e}const sp=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},e6=[AE,Aa,Ts],t6=e=>e6.find(t=>t.test(e));function gC(e){const t=t6(e);if(!t)return!1;let n=t.parse(e);return t===Ts&&(n=J7(n)),n}const _C=(e,t)=>{const n=gC(e),r=gC(t);if(!n||!r)return lf(e,t);const a={...n};return o=>(a.red=sp(n.red,r.red,o),a.green=sp(n.green,r.green,o),a.blue=sp(n.blue,r.blue,o),a.alpha=Dt(n.alpha,r.alpha,o),Aa.transform(a))},n6=(e,t)=>n=>t(e(n)),Lc=(...e)=>e.reduce(n6),NE=new Set(["none","hidden"]);function r6(e,t){return NE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function u6(e,t){return n=>Dt(e,t,n)}function E4(e){return typeof e=="number"?u6:typeof e=="string"?r4(e)?lf:En.test(e)?_C:s6:Array.isArray(e)?VT:typeof e=="object"?En.test(e)?_C:i6:lf}function VT(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>E4(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function i6(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=E4(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function a6(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][a[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,a[l]++}return r}const s6=(e,t)=>{const n=Ci.createTransformer(t),r=sc(e),a=sc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?NE.has(e)&&!a.values.length||NE.has(t)&&!r.values.length?r6(e,t):Lc(VT(a6(r,a),a.values),n):lf(e,t)};function zT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):E4(e)(e,t)}const o6=5;function KT(e,t,n){const r=Math.max(t-o6,0);return YD(n-e(r),t-r)}const Ft={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},NC=.001;function l6({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:r=Ft.mass}){let a,o,l=1-t;l=Fu(Ft.minDamping,Ft.maxDamping,l),e=Fu(Ft.minDuration,Ft.maxDuration,Tu(e)),l<1?(a=A=>{const m=A*l,E=m*e,g=m-n,_=IE(A,l),I=Math.exp(-E);return NC-g/_*I},o=A=>{const E=A*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(A,2)*e,I=Math.exp(-E),y=IE(Math.pow(A,2),l);return(-a(A)+NC>0?-1:1)*((g-_)*I)/y}):(a=A=>{const m=Math.exp(-A*e),E=(A-n)*e+1;return-.001+m*E},o=A=>{const m=Math.exp(-A*e),E=(n-A)*(e*e);return m*E});const d=5/e,f=d6(a,o,d);if(e=Du(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const A=Math.pow(f,2)*r;return{stiffness:A,damping:l*2*Math.sqrt(r*A),duration:e}}}const c6=12;function d6(e,t,n){let r=n;for(let a=1;a<c6;a++)r=r-e(r)/t(r);return r}function IE(e,t){return e*Math.sqrt(1-t*t)}const f6=["duration","bounce"],A6=["stiffness","damping","mass"];function IC(e,t){return t.some(n=>e[n]!==void 0)}function h6(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!IC(e,A6)&&IC(e,f6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*Fu(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ft.mass,stiffness:a,damping:o}}else{const n=l6(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function YT(e=Ft.visualDuration,t=Ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:A,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=h6({...n,velocity:-Tu(n.velocity||0)}),I=g||0,y=A/(2*Math.sqrt(f*m)),v=l-o,R=Tu(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?Ft.restSpeed.granular:Ft.restSpeed.default),a||(a=D?Ft.restDelta.granular:Ft.restDelta.default);let x;if(y<1){const b=IE(R,y);x=O=>{const w=Math.exp(-y*R*O);return l-w*((I+y*R*v)/b*Math.sin(b*O)+v*Math.cos(b*O))}}else if(y===1)x=b=>l-Math.exp(-R*b)*(v+(I+R*v)*b);else{const b=R*Math.sqrt(y*y-1);x=O=>{const w=Math.exp(-y*R*O),P=Math.min(b*O,300);return l-w*((I+y*R*v)*Math.sinh(P)+b*v*Math.cosh(P))/b}}const F={calculatedDuration:_&&E||null,next:b=>{const O=x(b);if(_)d.done=b>=E;else{let w=0;y<1&&(w=b===0?Du(I):KT(x,b,O));const P=Math.abs(w)<=r,U=Math.abs(l-O)<=a;d.done=P&&U}return d.value=d.done?l:O,d},toString:()=>{const b=Math.min(ZD(F),oE),O=WD(w=>F.next(b*w).value,b,30);return b+"ms "+O}};return F}function SC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:A=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=P=>d!==void 0&&P<d||f!==void 0&&P>f,I=P=>d===void 0?f:f===void 0||Math.abs(d-P)<Math.abs(f-P)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const D=P=>-y*Math.exp(-P/r),x=P=>R+D(P),F=P=>{const U=D(P),j=x(P);g.done=Math.abs(U)<=A,g.value=g.done?R:j};let b,O;const w=P=>{_(g.value)&&(b=P,O=YT({keyframes:[g.value,I(g.value)],velocity:KT(x,P,g.value),damping:a,stiffness:o,restDelta:A,restSpeed:m}))};return w(0),{calculatedDuration:null,next:P=>{let U=!1;return!O&&b===void 0&&(U=!0,F(P),w(P)),b!==void 0&&P>=b?O.next(P-b):(!U&&F(P),g)}}}const m6=Fc(.42,0,1,1),p6=Fc(0,0,.58,1),ZT=Fc(.42,0,.58,1),E6=e=>Array.isArray(e)&&typeof e[0]!="number",g6={linear:$n,easeIn:m6,easeInOut:ZT,easeOut:p6,circIn:A4,circInOut:RT,circOut:vT,backIn:f4,backInOut:CT,backOut:ST,anticipate:yT},CC=e=>{if($g(e)){KD(e.length===4);const[t,n,r,a]=e;return Fc(t,n,r,a)}else if(typeof e=="string")return g6[e];return e};function _6(e,t,n){const r=[],a=n||zT,o=e.length-1;for(let l=0;l<o;l++){let d=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||$n:t;d=Lc(f,d)}r.push(d)}return r}function N6(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(KD(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=_6(t,r,a),f=d.length,A=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=Ks(e[E],e[E+1],m);return d[E](g)};return n?m=>A(Fu(e[0],e[o-1],m)):A}function I6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ks(0,t,r);e.push(Dt(n,1,a))}}function S6(e){const t=[0];return I6(t,e.length-1),t}function C6(e,t){return e.map(n=>n*t)}function y6(e,t){return e.map(()=>t||ZT).splice(0,e.length-1)}function cf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=E6(r)?r.map(CC):CC(r),o={done:!1,value:t[0]},l=C6(n&&n.length===t.length?n:S6(t),e),d=N6(l,t,{ease:Array.isArray(a)?a:y6(t,a)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const v6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>It.update(t,!0),stop:()=>Si(t),now:()=>dn.isProcessing?dn.timestamp:Yr.now()}},R6={decay:SC,inertia:SC,tween:cf,keyframes:cf,spring:YT},D6=e=>e/100;class g4 extends jT{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:a,keyframes:o}=this.options,l=(a==null?void 0:a.KeyframeResolver)||p4,d=(f,A)=>this.onKeyframesResolved(f,A);this.resolver=new l(o,d,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=this.options,d=Wg(n)?n:R6[n]||cf;let f,A;d!==cf&&typeof t[0]!="number"&&(f=Lc(D6,zT(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(A=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=ZD(m));const{calculatedDuration:E}=m,g=E+a,_=g*(r+1)-a;return{generator:m,mirroredGenerator:A,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:A,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:I,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),D=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let x=this.currentTime,F=o;if(_){const P=Math.min(this.currentTime,m)/E;let U=Math.floor(P),j=P%1;!j&&P>=1&&(j=1),j===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(I==="reverse"?(j=1-j,y&&(j-=y/E)):I==="mirror"&&(F=l)),x=Fu(0,1,j)*E}const b=D?{done:!1,value:f[0]}:F.next(x);d&&(b.value=d(b.value));let{done:O}=b;!D&&A!==null&&(O=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return w&&a!==void 0&&(b.value=tA(f,this.options,a)),v&&v(b.value),w&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Tu(t.calculatedDuration):0}get time(){return Tu(this.currentTime)}set time(t){t=Du(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Tu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=v6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const T6=new Set(["opacity","clipPath","filter","transform"]);function x6(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const A={[t]:n};f&&(A.offset=f);const m=qD(d,a);return Array.isArray(m)&&(A.easing=m),e.animate(A,{delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const b6=Kg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),df=10,B6=2e4;function O6(e){return Wg(e.type)||e.type==="spring"||!$D(e.ease)}function F6(e,t){const n=new g4({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let o=0;for(;!r.done&&o<B6;)r=n.sample(o),a.push(r.value),o+=df;return{times:void 0,keyframes:a,duration:o-df,ease:"linear"}}const WT={anticipate:yT,backInOut:CT,circInOut:RT};function L6(e){return e in WT}class yC extends jT{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:o}=this.options;this.resolver=new GT(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:o,type:l,motionValue:d,name:f,startTime:A}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&sf()&&L6(o)&&(o=WT[o]),O6(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:I,...y}=this.options,v=F6(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,a=v.times,o=v.ease,l="keyframes"}const m=x6(d.owner.current,f,t,{...this.options,duration:r,times:a,ease:o});return m.startTime=A??this.calcStartTime(),this.pendingTimeline?(Q3(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(tA(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:a,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tu(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tu(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Du(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return $n;const{animation:r}=n;Q3(r,t)}return $n}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:A,onUpdate:m,onComplete:E,element:g,..._}=this.options,I=new g4({..._,keyframes:r,duration:a,type:o,ease:l,times:d,isGenerator:!0}),y=Du(this.time);A.setWithVelocity(I.sample(y-df).value,I.sample(y).value,df)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:A}=n.owner.getProps();return b6()&&r&&T6.has(r)&&!f&&!A&&!a&&o!=="mirror"&&l!==0&&d!=="inertia"}}const w6={type:"spring",stiffness:500,damping:25,restSpeed:10},M6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),H6={type:"keyframes",duration:.8},P6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},U6=(e,{keyframes:t})=>t.length>2?H6:Ba.has(e)?e.startsWith("scale")?M6(t[1]):w6:P6;function k6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:A,...m}){return!!Object.keys(m).length}const _4=(e,t,n,r={},a,o)=>l=>{const d=Zg(r,e)||{},f=d.delay||r.delay||0;let{elapsed:A=0}=r;A=A-Du(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-A,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:a};k6(d)||(m={...m,...U6(e,m)}),m.duration&&(m.duration=Du(m.duration)),m.repeatDelay&&(m.repeatDelay=Du(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),m.allowFlatten=!d.type&&!d.ease,E&&!o&&t.get()!==void 0){const g=tA(m.keyframes,d);if(g!==void 0)return It.update(()=>{m.onUpdate(g),m.onComplete()}),new lj([])}return!o&&yC.supports(m)?new yC(m):new g4(m)};function G6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $T(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const A=[],m=a&&e.animationState&&e.animationState.getState()[a];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&G6(m,E))continue;const I={delay:n,...Zg(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=gT(e);if(R){const D=window.MotionHandoffAnimation(R,E,It);D!==null&&(I.startTime=D,y=!0)}}fE(e,E),g.start(_4(E,g,_,e.shouldReduceMotion&&ET.has(E)?{type:!1}:I,e,y));const v=g.animation;v&&A.push(v)}return d&&Promise.all(A).then(()=>{It.update(()=>{d&&m7(e,d)})}),A}function SE(e,t,n={}){var r;const a=ac(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);const l=a?()=>Promise.all($T(e,a,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return j6(e,t,m+A,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[A,m]=f==="beforeChildren"?[l,d]:[d,l];return A().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function j6(e,t,n=0,r=0,a=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=a===1?(A=0)=>A*r:(A=0)=>d-A*r;return Array.from(e.variantChildren).sort(V6).forEach((A,m)=>{A.notify("AnimationStart",t),l.push(SE(A,t,{...o,delay:n+f(m)}).then(()=>A.notify("AnimationComplete",t)))}),Promise.all(l)}function V6(e,t){return e.sortNodePosition(t)}function z6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>SE(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=SE(e,t,n);else{const a=typeof t=="function"?ac(e,t,n.custom):t;r=Promise.all($T(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const K6=e4.length;function QT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?QT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<K6;n++){const r=e4[n],a=e.props[r];(rc(a)||a===!1)&&(t[r]=a)}return t}const Y6=[...Jg].reverse(),Z6=Jg.length;function W6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>z6(e,n,r)))}function $6(e){let t=W6(e),n=vC(),r=!0;const a=f=>(A,m)=>{var E;const g=ac(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:I,...y}=g;A={...A,...y,...I}}return A};function o(f){t=f(e)}function l(f){const{props:A}=e,m=QT(e.parent)||{},E=[],g=new Set;let _={},I=1/0;for(let v=0;v<Z6;v++){const R=Y6[v],D=n[R],x=A[R]!==void 0?A[R]:m[R],F=rc(x),b=R===f?D.isActive:null;b===!1&&(I=v);let O=x===m[R]&&x!==A[R]&&F;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),D.protectedKeys={..._},!D.isActive&&b===null||!x&&!D.prevProp||Jf(x)||typeof x=="boolean")continue;const w=q6(D.prevProp,x);let P=w||R===f&&D.isActive&&!O&&F||v>I&&F,U=!1;const j=Array.isArray(x)?x:[x];let fe=j.reduce(a(R),{});b===!1&&(fe={});const{prevResolvedValues:se={}}=D,de={...se,...fe},$=ne=>{P=!0,g.has(ne)&&(U=!0,g.delete(ne)),D.needsAnimating[ne]=!0;const ee=e.getValue(ne);ee&&(ee.liveStyle=!1)};for(const ne in de){const ee=fe[ne],Ee=se[ne];if(_.hasOwnProperty(ne))continue;let H=!1;dE(ee)&&dE(Ee)?H=!qT(ee,Ee):H=ee!==Ee,H?ee!=null?$(ne):g.add(ne):ee!==void 0&&g.has(ne)?$(ne):D.protectedKeys[ne]=!0}D.prevProp=x,D.prevResolvedValues=fe,D.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(O&&w)||U)&&E.push(...j.map(ne=>({animation:ne,options:{type:R}})))}if(g.size){const v={};if(typeof A.initial!="boolean"){const R=ac(e,Array.isArray(A.initial)?A.initial[0]:A.initial);R&&R.transition&&(v.transition=R.transition)}g.forEach(R=>{const D=e.getBaseTarget(R),x=e.getValue(R);x&&(x.liveStyle=!0),v[R]=D??null}),E.push({animation:v})}let y=!!E.length;return r&&(A.initial===!1||A.initial===A.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(E):Promise.resolve()}function d(f,A){var m;if(n[f].isActive===A)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,A)}),n[f].isActive=A;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=vC(),r=!0}}}function q6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qT(t,e):!1}function sa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vC(){return{animate:sa(!0),whileInView:sa(),whileHover:sa(),whileTap:sa(),whileDrag:sa(),whileFocus:sa(),exit:sa()}}class Oi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Q6 extends Oi{constructor(t){super(t),t.animationState||(t.animationState=$6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let X6=0;class J6 extends Oi{constructor(){super(...arguments),this.id=X6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const XT={animation:{Feature:Q6},exit:{Feature:J6}};function oc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wc(e){return{point:{x:e.pageX,y:e.pageY}}}const eV=e=>t=>Qg(t)&&e(t,wc(t));function Ol(e,t,n,r){return oc(e,t,eV(n),r)}function JT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const ex=1e-4,rV=1-ex,uV=1+ex,tx=.01,iV=0-tx,aV=0+tx;function vn(e){return e.max-e.min}function sV(e,t,n){return Math.abs(e-t)<=n}function RC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=rV&&e.scale<=uV||isNaN(e.scale))&&(e.scale=1),(e.translate>=iV&&e.translate<=aV||isNaN(e.translate))&&(e.translate=0)}function Fl(e,t,n,r){RC(e.x,t.x,n.x,r?r.originX:void 0),RC(e.y,t.y,n.y,r?r.originY:void 0)}function DC(e,t,n){e.min=n.min+t.min,e.max=e.min+vn(t)}function oV(e,t,n){DC(e.x,t.x,n.x),DC(e.y,t.y,n.y)}function TC(e,t,n){e.min=t.min-n.min,e.max=e.min+vn(t)}function Ll(e,t,n){TC(e.x,t.x,n.x),TC(e.y,t.y,n.y)}const xC=()=>({translate:0,scale:1,origin:0,originPoint:0}),xs=()=>({x:xC(),y:xC()}),bC=()=>({min:0,max:0}),Ht=()=>({x:bC(),y:bC()});function dr(e){return[e("x"),e("y")]}function op(e){return e===void 0||e===1}function CE({scale:e,scaleX:t,scaleY:n}){return!op(e)||!op(t)||!op(n)}function oa(e){return CE(e)||nx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nx(e){return BC(e.x)||BC(e.y)}function BC(e){return e&&e!=="0%"}function ff(e,t,n){const r=e-n,a=t*r;return n+a}function OC(e,t,n,r,a){return a!==void 0&&(e=ff(e,a,r)),ff(e,n,r)+t}function yE(e,t=0,n=1,r,a){e.min=OC(e.min,t,n,r,a),e.max=OC(e.max,t,n,r,a)}function rx(e,{x:t,y:n}){yE(e.x,t.translate,t.scale,t.originPoint),yE(e.y,n.translate,n.scale,n.originPoint)}const FC=.999999999999,LC=1.0000000000001;function lV(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let d=0;d<a;d++){o=n[d],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,rx(e,l)),r&&oa(o.latestValues)&&Bs(e,o.latestValues))}t.x<LC&&t.x>FC&&(t.x=1),t.y<LC&&t.y>FC&&(t.y=1)}function bs(e,t){e.min=e.min+t,e.max=e.max+t}function wC(e,t,n,r,a=.5){const o=Dt(e.min,e.max,a);yE(e,t,n,o,r)}function Bs(e,t){wC(e.x,t.x,t.scaleX,t.scale,t.originX),wC(e.y,t.y,t.scaleY,t.scale,t.originY)}function ux(e,t){return JT(nV(e.getBoundingClientRect(),t))}function cV(e,t,n){const r=ux(e,n),{scroll:a}=t;return a&&(bs(r.x,a.offset.x),bs(r.y,a.offset.y)),r}const ix=({current:e})=>e?e.ownerDocument.defaultView:null,MC=(e,t)=>Math.abs(e-t);function dV(e,t){const n=MC(e.x,t.x),r=MC(e.y,t.y);return Math.sqrt(n**2+r**2)}class ax{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=cp(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=dV(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:I}=E,{timestamp:y}=dn;this.history.push({...I,timestamp:y});const{onStart:v,onMove:R}=this.handlers;g||(v&&v(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,E)},this.handlePointerMove=(E,g)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=lp(g,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:I,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cp(E.type==="pointercancel"?this.lastMoveEventInfo:lp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),I&&I(E,v)},!Qg(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=wc(t),d=lp(l,this.transformPagePoint),{point:f}=d,{timestamp:A}=dn;this.history=[{...f,timestamp:A}];const{onSessionStart:m}=n;m&&m(t,cp(d,this.history)),this.removeListeners=Lc(Ol(this.contextWindow,"pointermove",this.handlePointerMove),Ol(this.contextWindow,"pointerup",this.handlePointerUp),Ol(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Si(this.updatePoint)}}function lp(e,t){return t?{point:t(e.point)}:e}function HC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cp({point:e},t){return{point:e,delta:HC(e,sx(t)),offset:HC(e,fV(t)),velocity:AV(t,.1)}}function fV(e){return e[0]}function sx(e){return e[e.length-1]}function AV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=sx(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Du(t)));)n--;if(!r)return{x:0,y:0};const o=Tu(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function hV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function PC(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mV(e,{top:t,left:n,bottom:r,right:a}){return{x:PC(e.x,n,a),y:PC(e.y,t,r)}}function UC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pV(e,t){return{x:UC(e.x,t.x),y:UC(e.y,t.y)}}function EV(e,t){let n=.5;const r=vn(e),a=vn(t);return a>r?n=Ks(t.min,t.max-r,e.min):r>a&&(n=Ks(e.min,e.max-a,t.min)),Fu(0,1,n)}function gV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vE=.35;function _V(e=vE){return e===!1?e=0:e===!0&&(e=vE),{x:kC(e,"left","right"),y:kC(e,"top","bottom")}}function kC(e,t,n){return{min:GC(e,t),max:GC(e,n)}}function GC(e,t){return typeof e=="number"?e:e[t]||0}const NV=new WeakMap;class IV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ht(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wc(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:I}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mj(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Zr.test(R)){const{projection:D}=this.visualElement;if(D&&D.layout){const x=D.layout.layoutBox[v];x&&(R=vn(x)*(parseFloat(R)/100))}}this.originPoint[v]=R}),I&&It.postRender(()=>I(m,E)),fE(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:I,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=SV(v),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",E.point,v),this.updateAxis("y",E.point,v),this.visualElement.render(),y&&y(m,E)},d=(m,E)=>this.stop(m,E),f=()=>dr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:A}=this.getProps();this.panSession=new ax(t,{onSessionStart:a,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,contextWindow:ix(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&It.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!c0(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=hV(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ds(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=mV(a.layoutBox,n):this.constraints=!1,this.elastic=_V(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&dr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=gV(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ds(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=cV(r,a.root,this.visualElement.getTransformPagePoint());let l=pV(a.layout.layoutBox,o);if(n){const d=n(tV(l));this.hasMutatedConstraints=!!d,d&&(l=JT(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},A=dr(m=>{if(!c0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=a?200:1e6,_=a?40:1e7,I={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...o,...E};return this.startAxisValueAnimation(m,I)});return Promise.all(A).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fE(this.visualElement,t),r.start(_4(t,r,0,n,this.visualElement,!1))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dr(n=>{const{drag:r}=this.getProps();if(!c0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:d}=a.layout.layoutBox[n];o.set(t[n]-Dt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ds(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};dr(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const f=d.get();a[l]=EV({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),dr(l=>{if(!c0(l,t,null))return;const d=this.getAxisMotionValue(l),{min:f,max:A}=this.constraints[l];d.set(Dt(f,A,a[l]))})}addListeners(){if(!this.visualElement.current)return;NV.set(this.visualElement,this);const t=this.visualElement.current,n=Ol(t,"pointerdown",f=>{const{drag:A,dragListener:m=!0}=this.getProps();A&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Ds(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),It.read(r);const l=oc(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",({delta:f,hasLayoutChanged:A})=>{this.isDragging&&A&&(dr(m=>{const E=this.getAxisMotionValue(m);E&&(this.originPoint[m]+=f[m].translate,E.set(E.get()+f[m].translate))}),this.visualElement.render())});return()=>{l(),n(),o(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=vE,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function c0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class CV extends Oi{constructor(t){super(t),this.removeGroupControls=$n,this.removeListeners=$n,this.controls=new IV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$n}unmount(){this.removeGroupControls(),this.removeListeners()}}const jC=e=>(t,n)=>{e&&It.postRender(()=>e(t,n))};class yV extends Oi{constructor(){super(...arguments),this.removePointerDownListener=$n}onPointerDown(t){this.session=new ax(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ix(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:jC(t),onStart:jC(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&It.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Ol(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const O0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function VC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const El={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=VC(e,t.target.x),r=VC(e,t.target.y);return`${n}% ${r}%`}},vV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Ci.parse(e);if(a.length>5)return r;const o=Ci.createTransformer(e),l=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=d,a[1+l]/=f;const A=Dt(d,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=A),typeof a[3+l]=="number"&&(a[3+l]/=A),o(a)}};class RV extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;Vj(DV),o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),O0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||It.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ox(e){const[t,n]=ij(),r=C.useContext(VD);return N.jsx(RV,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(uT),isPresent:t,safeToRemove:n})}const DV={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:vV};function TV(e,t,n){const r=gn(e)?e:nc(e);return r.start(_4("",r,t,n)),r.animation}function xV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bV=(e,t)=>e.depth-t.depth;class BV{constructor(){this.children=[],this.isDirty=!1}add(t){Vg(this.children,t),this.isDirty=!0}remove(t){zg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bV),this.isDirty=!1,this.children.forEach(t)}}function OV(e,t){const n=Yr.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Si(r),e(o-t))};return It.read(r,!0),()=>Si(r)}const lx=["TopLeft","TopRight","BottomLeft","BottomRight"],FV=lx.length,zC=e=>typeof e=="string"?parseFloat(e):e,KC=e=>typeof e=="number"||Ue.test(e);function LV(e,t,n,r,a,o){a?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,wV(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,MV(r))):o&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<FV;l++){const d=`border${lx[l]}Radius`;let f=YC(t,d),A=YC(n,d);if(f===void 0&&A===void 0)continue;f||(f=0),A||(A=0),f===0||A===0||KC(f)===KC(A)?(e[d]=Math.max(Dt(zC(f),zC(A),r),0),(Zr.test(A)||Zr.test(f))&&(e[d]+="%")):e[d]=A}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function YC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wV=cx(0,.5,vT),MV=cx(.5,.95,$n);function cx(e,t,n){return r=>r<e?0:r>t?1:n(Ks(e,t,r))}function ZC(e,t){e.min=t.min,e.max=t.max}function lr(e,t){ZC(e.x,t.x),ZC(e.y,t.y)}function WC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $C(e,t,n,r,a){return e-=t,e=ff(e,1/n,r),a!==void 0&&(e=ff(e,1/a,r)),e}function HV(e,t=0,n=1,r=.5,a,o=e,l=e){if(Zr.test(t)&&(t=parseFloat(t),t=Dt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let d=Dt(o.min,o.max,r);e===o&&(d-=t),e.min=$C(e.min,t,n,d,a),e.max=$C(e.max,t,n,d,a)}function qC(e,t,[n,r,a],o,l){HV(e,t[n],t[r],t[a],t.scale,o,l)}const PV=["x","scaleX","originX"],UV=["y","scaleY","originY"];function QC(e,t,n,r){qC(e.x,t,PV,n?n.x:void 0,r?r.x:void 0),qC(e.y,t,UV,n?n.y:void 0,r?r.y:void 0)}function XC(e){return e.translate===0&&e.scale===1}function dx(e){return XC(e.x)&&XC(e.y)}function JC(e,t){return e.min===t.min&&e.max===t.max}function kV(e,t){return JC(e.x,t.x)&&JC(e.y,t.y)}function ey(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fx(e,t){return ey(e.x,t.x)&&ey(e.y,t.y)}function ty(e){return vn(e.x)/vn(e.y)}function ny(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class GV{constructor(){this.members=[]}add(t){Vg(this.members,t),t.scheduleRender()}remove(t){if(zg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jV(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||o||l)&&(r=`translate3d(${a}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:A,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:I}=n;A&&(r=`perspective(${A}px) ${r}`),m&&(r+=`rotate(${m}deg) `),E&&(r+=`rotateX(${E}deg) `),g&&(r+=`rotateY(${g}deg) `),_&&(r+=`skewX(${_}deg) `),I&&(r+=`skewY(${I}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const dp=["","X","Y","Z"],VV={visibility:"hidden"},ry=1e3;let zV=0;function fp(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ax(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",It,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ax(r)}function hx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},d=t==null?void 0:t()){this.id=zV++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZV),this.nodes.forEach(XV),this.nodes.forEach(JV),this.nodes.forEach(WV)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new BV)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Yg),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const f=this.eventHandlers.get(l);f&&f.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=xV(l),this.instance=l;const{layoutId:f,layout:A,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(A||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=OV(g,250),O0.hasAnimatedSinceResize&&(O0.hasAnimatedSinceResize=!1,this.nodes.forEach(iy))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||A)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeLayoutChanged:_,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||m.getDefaultTransition()||uz,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),D=!this.targetLayout||!fx(this.targetLayout,I),x=!g&&_;if(this.options.layoutRoot||this.resumeFrom||x||g&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,x);const F={...Zg(y,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else g||iy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Si(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ez),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ax(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const E=this.path[m];E.shouldResetTransform=!0,E.updateScroll("snapshot"),E.options.layoutRoot&&E.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(uy);return}this.isUpdating||this.nodes.forEach(qV),this.isUpdating=!1,this.nodes.forEach(QV),this.nodes.forEach(KV),this.nodes.forEach(YV),this.clearAllSnapshots();const d=Yr.now();dn.delta=Fu(0,1e3/60,d-dn.timestamp),dn.timestamp=d,dn.isProcessing=!0,np.update.process(dn),np.preRender.process(dn),np.render.process(dn),dn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($V),this.sharedNodes.forEach(tz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,It.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){It.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!dx(this.projectionDelta),f=this.getTransformTemplate(),A=f?f(this.latestValues,""):void 0,m=A!==this.prevTransformTemplateValue;l&&(d||oa(this.latestValues)||m)&&(a(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return l&&(f=this.removeTransform(f)),iz(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:d}=this.options;if(!d)return Ht();const f=d.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(az))){const{scroll:m}=this.root;m&&(bs(f.x,m.offset.x),bs(f.y,m.offset.y))}return f}removeElementScroll(l){var d;const f=Ht();if(lr(f,l),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let A=0;A<this.path.length;A++){const m=this.path[A],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&lr(f,l),bs(f.x,E.offset.x),bs(f.y,E.offset.y))}return f}applyTransform(l,d=!1){const f=Ht();lr(f,l);for(let A=0;A<this.path.length;A++){const m=this.path[A];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Bs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),oa(m.latestValues)&&Bs(f,m.latestValues)}return oa(this.latestValues)&&Bs(f,this.latestValues),f}removeTransform(l){const d=Ht();lr(d,l);for(let f=0;f<this.path.length;f++){const A=this.path[f];if(!A.instance||!oa(A.latestValues))continue;CE(A.latestValues)&&A.updateSnapshot();const m=Ht(),E=A.measurePageBox();lr(m,E),QC(d,A.latestValues,A.snapshot?A.snapshot.layoutBox:void 0,m)}return oa(this.latestValues)&&QC(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const A=!!this.resumingFrom||this!==f;if(!(l||A&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:E,layoutId:g}=this.options;if(!(!this.layout||!(E||g))){if(this.resolvedRelativeTargetAt=dn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),Ll(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lr(this.target,this.layout.layoutBox),rx(this.target,this.targetDelta)):lr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),Ll(this.relativeTargetOrigin,this.target,_.target),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||CE(this.parent.latestValues)||nx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let A=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(A=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(A=!1),this.resolvedRelativeTargetAt===dn.timestamp&&(A=!1),A)return;const{layout:m,layoutId:E}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||E))return;lr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;lV(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ht());const{target:I}=d;if(!I){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WC(this.prevProjectionDelta.x,this.projectionDelta.x),WC(this.prevProjectionDelta.y,this.projectionDelta.y)),Fl(this.projectionDelta,this.layoutCorrected,I,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!ny(this.projectionDelta.x,this.prevProjectionDelta.x)||!ny(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xs(),this.projectionDelta=xs(),this.projectionDeltaWithTransform=xs()}setAnimationOrigin(l,d=!1){const f=this.snapshot,A=f?f.latestValues:{},m={...this.latestValues},E=xs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const g=Ht(),_=f?f.source:void 0,I=this.layout?this.layout.source:void 0,y=_!==I,v=this.getStack(),R=!v||v.members.length<=1,D=!!(y&&!R&&this.options.crossfade===!0&&!this.path.some(rz));this.animationProgress=0;let x;this.mixTargetDelta=F=>{const b=F/1e3;ay(E.x,l.x,b),ay(E.y,l.y,b),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ll(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),nz(this.relativeTarget,this.relativeTargetOrigin,g,b),x&&kV(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ht()),lr(x,this.relativeTarget)),y&&(this.animationValues=m,LV(m,A,this.latestValues,b,D,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=It.update(()=>{O0.hasAnimatedSinceResize=!0,this.currentAnimation=TV(0,ry,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ry),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:f,layout:A,latestValues:m}=l;if(!(!d||!f||!A)){if(this!==l&&this.layout&&A&&mx(this.options.animationType,this.layout.layoutBox,A.layoutBox)){f=this.target||Ht();const E=vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}lr(d,f),Bs(d,m),Fl(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new GV),this.sharedNodes.get(l).add(d);const A=d.options.initialPromotionConfig;d.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:f}={}){const A=this.getStack();A&&A.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const A={};f.z&&fp("z",l,A,this.animationValues);for(let m=0;m<dp.length;m++)fp(`rotate${dp[m]}`,l,A,this.animationValues),fp(`skew${dp[m]}`,l,A,this.animationValues);l.render();for(const m in A)l.setStaticValue(m,A[m]),this.animationValues&&(this.animationValues[m]=A[m]);l.scheduleRender()}getProjectionStyles(l){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return VV;const A={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=B0(l==null?void 0:l.pointerEvents)||"",A.transform=m?m(this.latestValues,""):"none",A;const E=this.getLead();if(!this.projectionDelta||!this.layout||!E.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=B0(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!oa(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),A.transform=jV(this.projectionDeltaWithTransform,this.treeScale,g),m&&(A.transform=m(g,A.transform));const{x:_,y:I}=this.projectionDelta;A.transformOrigin=`${_.origin*100}% ${I.origin*100}% 0`,E.animationValues?A.opacity=E===this?(f=(d=g.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:A.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const y in uc){if(g[y]===void 0)continue;const{correct:v,applyTo:R,isCSSVariable:D}=uc[y],x=A.transform==="none"?g[y]:v(g[y],E);if(R){const F=R.length;for(let b=0;b<F;b++)A[R[b]]=x}else D?this.options.visualElement.renderState.vars[y]=x:A[y]=x}return this.options.layoutId&&(A.pointerEvents=E===this?B0(l==null?void 0:l.pointerEvents)||"":"none"),A}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(uy),this.root.sharedNodes.clear()}}}function KV(e){e.updateLayout()}function YV(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=vn(g);g.min=r[E].min,g.max=g.min+_}):mx(o,n.layoutBox,r)&&dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=vn(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const d=xs();Fl(d,r,n.layoutBox);const f=xs();l?Fl(f,e.applyTransform(a,!0),n.measuredBox):Fl(f,r,n.layoutBox);const A=!dx(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const I=Ht();Ll(I,n.layoutBox,g.layoutBox);const y=Ht();Ll(y,r,_.layoutBox),fx(I,y)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=I,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:A,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ZV(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function WV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $V(e){e.clearSnapshot()}function uy(e){e.clearMeasurements()}function qV(e){e.isLayoutDirty=!1}function QV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XV(e){e.resolveTargetDelta()}function JV(e){e.calcProjection()}function ez(e){e.resetSkewAndRotation()}function tz(e){e.removeLeadSnapshot()}function ay(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sy(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function nz(e,t,n,r){sy(e.x,t.x,n.x,r),sy(e.y,t.y,n.y,r)}function rz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uz={duration:.45,ease:[.4,0,.1,1]},oy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ly=oy("applewebkit/")&&!oy("chrome/")?Math.round:$n;function cy(e){e.min=ly(e.min),e.max=ly(e.max)}function iz(e){cy(e.x),cy(e.y)}function mx(e,t,n){return e==="position"||e==="preserve-aspect"&&!sV(ty(t),ty(n),.2)}function az(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const sz=hx({attachResizeListener:(e,t)=>oc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ap={current:void 0},px=hx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ap.current){const e=new sz({});e.mount(window),e.setOptions({layoutScroll:!0}),Ap.current=e}return Ap.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oz={pan:{Feature:yV},drag:{Feature:CV,ProjectionNode:px,MeasureLayout:ox}};function dy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&It.postRender(()=>o(t,wc(t)))}class lz extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=Ej(t,(n,r)=>(dy(this.node,r,"Start"),a=>dy(this.node,a,"End"))))}unmount(){}}class cz extends Oi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Lc(oc(this.node.current,"focus",()=>this.onFocus()),oc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&It.postRender(()=>o(t,wc(t)))}class dz extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=Ij(t,(n,r)=>(fy(this.node,r,"Start"),(a,{success:o})=>fy(this.node,a,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const RE=new WeakMap,hp=new WeakMap,fz=e=>{const t=RE.get(e.target);t&&t(e)},Az=e=>{e.forEach(fz)};function hz({root:e,...t}){const n=e||document;hp.has(n)||hp.set(n,{});const r=hp.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Az,{root:e,...t})),r[a]}function mz(e,t,n){const r=hz(t);return RE.set(e,n),r.observe(e),()=>{RE.delete(e),r.unobserve(e)}}const pz={some:0,all:1};class Ez extends Oi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:pz[a]},d=f=>{const{isIntersecting:A}=f;if(this.isInView===A||(this.isInView=A,o&&!A&&this.hasEnteredView))return;A&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",A);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=A?m:E;g&&g(f)};return mz(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(gz(t,n))&&this.startObserver()}unmount(){}}function gz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ex={inView:{Feature:Ez},tap:{Feature:dz},focus:{Feature:cz},hover:{Feature:lz}},_z={layout:{ProjectionNode:px,MeasureLayout:ox}},DE={current:null},gx={current:!1};function Nz(){if(gx.current=!0,!!Gg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>DE.current=e.matches;e.addListener(t),t()}else DE.current=!1}const Iz=[...kT,En,Ci],Sz=e=>Iz.find(UT(e)),Cz=new WeakMap;function yz(e,t,n){for(const r in t){const a=t[r],o=n[r];if(gn(a))e.addValue(r,a);else if(gn(o))e.addValue(r,nc(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,nc(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ay=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=p4,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Yr.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,It.render(this.render,!1,!0))};const{latestValues:f,renderState:A,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=A,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=eA(n),this.isVariantNode=nT(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const I=g[_];f[_]!==void 0&&gn(I)&&I.set(f[_],!1)}}mount(t){this.current=t,Cz.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),gx.current||Nz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:DE.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Si(this.notifyUpdate),Si(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ba.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&It.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ys){const n=Ys[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ay.length;r++){const a=Ay[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=yz(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=nc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(HT(a)||DT(a))?a=parseFloat(a):!Sz(a)&&Ci.test(n)&&(a=LT(t,n)),this.setBaseTarget(t,gn(a)?a.get():a)),gn(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const l=c4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(a=l[t])}if(r&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!gn(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _x extends vz{constructor(){super(...arguments),this.KeyframeResolver=GT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Rz(e){return window.getComputedStyle(e)}class Dz extends _x{constructor(){super(...arguments),this.type="html",this.renderInstance=AT}readValueFromInstance(t,n){if(Ba.has(n))return k7(t,n);{const r=Rz(t),a=(n4(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ux(t,n)}build(t,n,r){i4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return d4(t,n,r)}}class Tz extends _x{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&fT(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ba.has(n)){const r=FT(n);return r&&r.default||0}return n=hT.has(n)?n:t4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pT(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&It.postRender(this.updateDimensions)}build(t,n,r){o4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){mT(t,n,r,a)}mount(t){this.isSVGTag=l4(t.tagName),super.mount(t)}}const Nx=(e,t)=>s4(e)?new Tz(t):new Dz(t,{allowProjection:e!==C.Fragment}),xz=A7({...XT,...Ex,...oz,..._z},Nx),Ix=xj(xz),bz={renderer:Nx,...XT,...Ex},N4="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",Bz="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:hover:cursor-pointer after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",Oz=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),Fz=({className:e,...t})=>N.jsx("h2",{className:Re("mt-16 mb-2 text-2xl font-bold",N4,e),...t}),Lz=({className:e,...t})=>N.jsx("h3",{className:Re("mt-5 mb-2 text-xl font-bold",N4,e),...t}),wz=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",N4,e),...t}),Mz=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),Hz=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},Pz=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),o=n+parseInt(a.getPropertyValue("left"),10),l=o+parseInt(a.width,10),d=r+parseInt(a.getPropertyValue("top"),10),f=d+parseInt(a.height,10),A=t.clientX,m=t.clientY;return A>=o&&A<=l&&m>=d&&m<=f},I4=({H:e,children:t,className:n,isClickable:r,...a})=>{const o=typeof t=="string"?Mz(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(Pz(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),Hz(f)}};return N.jsx(e,{id:o,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:Re(r&&Bz,n),...a,children:t})},Uz=({isClickable:e,...t})=>N.jsx(Oz,{...t}),kz=({isClickable:e=!1,...t})=>N.jsx(I4,{H:Fz,isClickable:e,...t}),S4=({isClickable:e=!1,...t})=>N.jsx(I4,{H:Lz,isClickable:e,...t}),Gz=({isClickable:e=!1,...t})=>N.jsx(I4,{H:wz,isClickable:e,...t}),jz=pr("cursor-default overflow-auto py-3 shadow-sm justify-center",{variants:{size:{sm:"h-auto max-h-[30vh] w-[95vw] max-w-xl",md:"h-auto max-h-[50vh] w-[95vw] max-w-xl",lg:"h-auto max-h-[70vh] w-[95vw] max-w-2xl",xl:"h-auto max-h-[95vh] w-[95vw] max-w-6xl",unset:"h-auto max-h-[95vh] w-[95vw]"}},defaultVariants:{size:"unset"}}),Vz=Ix.create(eu),Sx=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:a,hasCloseButton:o=!1,title:l,size:d="md",className:f,...A})=>{const m=uR(n);if(lR({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return xa.createPortal(N.jsx(Ix.div,{className:"bg-background/40 /40 invisible fixed left-0 top-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-auto backdrop-blur",animate:t?"visible":"invisible",variants:{visible:{opacity:1,visibility:"visible",transition:{duration:.1,when:"beforeChildren"}},invisible:{opacity:0,visibility:"hidden",transition:{duration:.1,when:"afterChildren"}}},onClick:g=>{g.stopPropagation(),a==null||a()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(Vz,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:jz({size:d,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...A,children:[N.jsxs("div",{className:Re("cursor-default px-4",o&&E?"flex items-center justify-center":o?"flex items-center justify-end":E?"items-center":"hidden"),children:[E&&N.jsx(S4,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(pt,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),a==null||a()},Icon:ba,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},zz={key:"save-dictionary-details",content:{resetButton:{text:pe({en:"Reset all changes","en-GB":"Reset all changes",fr:"Réinitialiser toutes les modifications",es:"Restablecer todas las modificaciones",de:"Alle Änderungen zurücksetzen",ja:"すべての変更をリセット",ko:"모든 변경 사항 초기화",zh:"重置所有更改",it:"Reimposta tutte le modifiche",pt:"Redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करें",ar:"إعادة تعيين جميع التغييرات",ru:"Сбросить все изменения"}),label:pe({en:"Click to reset all the changes","en-GB":"Click to reset all the changes",fr:"Cliquez pour réinitialiser toutes les modifications",es:"Haga clic para restablecer todas las modificaciones",de:"Klicken Sie, um alle Änderungen zurückzusetzen",ja:"すべての変更をリセットするにはクリックしてください",ko:"모든 변경 사항을 초기화하려면 클릭하세요",zh:"单击以重置所有更改",it:"Fai clic per ripristinare tutte le modifiche",pt:"Clique para redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें",ar:"انقر لإعادة تعيين جميع التغييرات",ru:"Нажмите, чтобы сбросить все изменения"})},saveButton:{text:pe({en:"Save changes","en-GB":"Save changes",fr:"Enregistrer les modifications",es:"Guardar cambios",de:"Änderungen speichern",ja:"変更を保存",ko:"변경 사항 저장",zh:"保存更改",it:"Salva le modifiche",pt:"Salvar alterações",hi:"परिवर्तनों को सहेजें",ar:"احفظ التغييرات",ru:"Сохранить изменения"}),label:pe({en:"Click to save changes","en-GB":"Click to save changes",fr:"Cliquez pour enregistrer les modifications",es:"Haga clic para guardar cambios",de:"Klicken Sie, um Änderungen zu speichern",ja:"変更を保存するにはクリックしてください",ko:"변경 사항을 저장하려면 클릭하세요",zh:"单击保存更改",it:"Fai clic per salvare le modifiche",pt:"Clique para salvar alterações",hi:"परिवर्तनों को सहेजने के लिए क्लिक करें",ar:"انقر لحفظ التغييرات",ru:"Нажмите, чтобы сохранить изменения"})},publishButton:{text:pe({en:"Publish dictionary","en-GB":"Publish dictionary",fr:"Publier dictionnaire",es:"Publicar diccionario",de:"Wörterbuch veröffentlichen",ja:"辞書を公開",ko:"사전을 게시합니다",zh:"发布字典",it:"Pubblica dizionario",pt:"Publicar dicionário",hi:"शब्दकोश प्रकाशित करें",ar:"نشر القاموس",ru:"Опубликовать словарь"}),label:pe({en:"Click to publish dictionary","en-GB":"Click to publish dictionary",fr:"Cliquez pour publier dictionnaire",es:"Haga clic para publicar diccionario",de:"Klicken Sie, um das Wörterbuch zu veröffentlichen",ja:"辞書を公開するにはクリックしてください",ko:"사전을 게시하려면 클릭하세요",zh:"单击以发布字典",it:"Fai clic per pubblicare il dizionario",pt:"Clique para publicar dicionário",hi:"शब्दकोश प्रकाशित करने के लिए क्लिक करें",ar:"انقر لنشر القاموس",ru:"Нажмите, чтобы опубликовать словарь"})},downloadButton:{text:pe({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:pe({en:"Click to download","en-GB":"Click to download",fr:"Cliquez pour télécharger",es:"Haga clic para descargar",de:"Klicken Sie, um herunterzuladen",ja:"ダウンロードするにはクリックしてください",ko:"다운로드를 클릭하세요",zh:"单击下载",it:"Fai clic per scaricare",pt:"Clique para baixar",hi:"डाउनलोड करने के लिए क्लिक करें",ar:"انقر لتنزيل",ru:"Нажмите, чтобы скачать"})},confirmation:{title:pe({en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение"}),message:pe({en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?"}),differentFormatMessage:pe({en:"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.","en-GB":"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.",fr:"Le dictionnaire est dans un format différent, il sera transformé en un fichier JSON. Êtes-vous sûr de vouloir continuer ? Cela remplacera le dictionnaire existant.",es:"El diccionario está en un formato diferente, se transformará en un archivo JSON. ¿Estás seguro de que quieres continuar? Esto sobrescribirá el diccionario existente.",de:"Das Wörterbuch ist in einem anderen Format, es wird in eine JSON-Datei umgewandelt. Sind Sie sicher, dass Sie fortfahren möchten? Dies wird das existierende Wörterbuch überschreiben.",ja:"辞書は異なる形式です。JSONファイルに変換されます。続行しますか?既存の辞書を上書きします。",ko:"사전은 다른 형식입니다. JSON 파일로 변환됩니다. 계속하시겠습니까? 이는 기존 사전을 덮어 쓸 것입니다.",zh:"字典是在不同格式中,它将转换为JSON文件。你确定要继续吗?这将覆盖现有的字典。",it:"Il dizionario è in un formato diverso, verrà trasformato in un file JSON. Sei sicuro di voler continuare? Questo sovrascriverà il dizionario esistente.",pt:"O dicionário está em um formato diferente, ele será transformado em um arquivo JSON. Você tem certeza de que deseja continuar? Isso sobrescreverá o dicionário existente."}),confirmButton:{text:pe({en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить"}),label:pe({en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить"})},cancelButton:{text:pe({en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена"}),label:pe({en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить"})}}}},Cx=({dictionary:e,mode:t,className:n,...r})=>{var j;const[a,o]=C.useState(!1),{setLocaleDictionary:l}=WE(),{writeDictionary:d,isLoading:f}=XM(),{pushDictionaries:A,isLoading:m}=ZM(),E=f||m,g=t.includes("local")&&((j=e.filePath)==null?void 0:j.endsWith(".json")),{editedContent:_,restoreEditedContent:I}=Dn(),{resetButton:y,saveButton:v,publishButton:R,downloadButton:D,confirmation:x}=un(zz),{isAuthenticated:F}=Sc(),b=_==null?void 0:_[e.key],O=b&&JSON.stringify(b)!==JSON.stringify(e),w=typeof(e==null?void 0:e._id)>"u",P=async()=>{if(!(_!=null&&_[e.key]))return;const fe={...e,..._==null?void 0:_[e.key]};await d(fe).then(()=>{l(_==null?void 0:_[e.key]),I(e.key)})},U=async()=>{if(!(_!=null&&_[e.key]))return;const fe={...e,..._==null?void 0:_[e.key]};await A([fe]).then(se=>{se&&(l(_==null?void 0:_[e.key]),I(e.key))})};return N.jsxs(N.Fragment,{children:[N.jsx(Sx,{isOpen:a,title:x.title.value,size:"md",children:N.jsxs("form",{className:"size-full px-3",children:[g?N.jsx("p",{className:"text-neutral py-4 text-sm",children:x.message}):N.jsx("p",{className:"text-neutral py-4 text-sm",children:x.differentFormatMessage}),N.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[N.jsx(tt.Button,{label:x.cancelButton.label.value,disabled:!O||E,color:"text",className:"max-md:w-full",variant:"outline",onClick:()=>o(!1),children:x.cancelButton.text}),N.jsx(tt.Button,{label:x.confirmButton.label.value,disabled:!O||E,Icon:qS,color:"text",className:"max-md:w-full",isLoading:m,onClick:P,children:x.confirmButton.text})]})]})}),N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[O&&N.jsx(tt.Button,{label:y.label.value,disabled:!O,Icon:Q2,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>I(e.key),children:y.text}),t.includes("local")&&N.jsx(tt.Button,{label:D.label.value,disabled:!O||E,Icon:H2,color:"text",variant:F?"outline":"default",className:"max-md:w-full",isLoading:f,onClick:()=>o(!0),children:D.text}),t.includes("remote")&&F&&w&&N.jsx(tt.Button,{label:R.label.value,disabled:E,Icon:S2,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:R.text}),t.includes("remote")&&F&&!w&&O&&N.jsx(tt.Button,{label:v.label.value,disabled:!O||E,Icon:qS,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:v.text})]})]})},yx=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[o,l]=C.useState(n),d=o==null?void 0:!o;return C.useEffect(()=>{n!=null&&l(n)},[n]),N.jsxs("div",{className:"w-full",children:[N.jsx(pt,{variant:"hoverable",color:"text",onClick:f=>{l(A=>!A),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:tR,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...a,children:t}),N.jsx(Jv,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},vx=({level:e,title:t,description:n,children:r,rightParam:a,isSelected:o,...l})=>N.jsx("div",{className:Re("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",o===!0&&"bg-card/40"),...l,children:N.jsx(yx,{isOpen:o,label:t,header:N.jsxs("div",{className:"flex w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("span",{className:Re(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),a&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),Rx=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:o,renderSection:l})=>{const d=r??Vr(n,e);if(d&&typeof d!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const f=e.length,A=String(d??t);return N.jsx("span",{role:"button",tabIndex:0,className:Re("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",f===2&&"hover:bg-card/30",f>=3&&""),onClick:m=>{m.stopPropagation(),o(e)},children:typeof l=="function"?l(A):N.jsx(t9,{"aria-label":"Editable field",defaultValue:A,onSave:m=>a({keyPath:e,newValue:m}),onCancel:()=>null})})},Kz=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Dn(),a=Vr(e.editedContent,t),o=n[Y.File],{content:l}=n,d=[...t,{type:Y.File}];return N.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[o," "]}),N.jsx(Rx,{...e,keyPath:d,section:l,editedContentValue:a==null?void 0:a.content,onContentChange:f=>{console.log("lll",{subSection:o,file:{...n,content:f.newValue},keyPath:t,newKeyPath:d}),r(e.dictionary.key,{...n,content:f.newValue},t)}})]})},Yz=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((o,l)=>{const d={key:l,type:Y.Array},f=[...t,d];return N.jsx(vx,{level:t.length,title:`${l}`,description:"",isSelected:Ec(f,a),onClick:A=>{A.stopPropagation(),r(f)},children:N.jsx(Fi,{...e,keyPath:f,section:o})},JSON.stringify(o))})},Zz=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!C4.includes(r)).map(r=>{const a={type:Y.Condition,key:r},o=[...t,a],l=n[Y.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Fi,{...e,key:r,keyPath:o,section:l})]})})})},Wz=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!C4.includes(r)).map(r=>{const a={type:Y.Enumeration,key:r},o=[...t,a],l=n[Y.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Fi,{...e,key:r,keyPath:o,section:l})]})})})},$z=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:Y.Insertion}],a=n[Y.Insertion];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(Fi,{...e,keyPath:r,section:a})})},qz=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:Y.Markdown}],a=n[Y.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(Fi,{...e,keyPath:r,section:a})})},Qz=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(o=>!C4.includes(o)).map(o=>{const l={key:o,type:Y.Object},d=[...t,l];return N.jsx(vx,{level:t.length,title:o,description:"",isSelected:Ec(d,r),onClick:f=>{f.stopPropagation(),a(d)},children:N.jsx(Fi,{...e,keyPath:d,section:n[o]})},o)})},Xz=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:Y.Translation,key:r},o=[...t,a],l=n.translation[r];return N.jsx(Fi,{...e,keyPath:o,section:l})},C4=["filePath","id","nodeType"],Fi=e=>{const n=Vr(e.editedContent,e.keyPath)??e.section,r=qs(n);if(typeof n=="object")return r===Y.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===Y.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===Y.Markdown?N.jsx(qz,{...e,section:n}):r===Y.Translation?N.jsx(Xz,{...e,section:n}):r===Y.Enumeration?N.jsx(Wz,{...e,section:n}):r===Y.Condition?N.jsx(Zz,{...e,section:n}):r===Y.Insertion?N.jsx($z,{...e,section:n}):r===Y.Array?N.jsx(Yz,{...e,section:n}):r===Y.File?N.jsx(Kz,{...e,section:n}):N.jsx(Qz,{...e,section:n});if(typeof n=="string")return N.jsx(Rx,{...e,section:n})},Jz=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:a}=Dn(),{focusedContent:o,setFocusedContentKeyPath:l}=yi(),d=o==null?void 0:o.keyPath;return N.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[N.jsx("div",{children:C.createElement(Fi,{...n,keyPath:[],dictionary:e,key:JSON.stringify(((r==null?void 0:r[e.key])??e).content),editedContent:(f=r==null?void 0:r[e.key])==null?void 0:f.content,focusedKeyPath:d,section:e.content,onContentChange:A=>{a(e.key,A.newValue,A.keyPath)},onFocusKeyPath:l})}),N.jsx(Cx,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function Lu(e){return Array.isArray?Array.isArray(e):xx(e)==="[object Array]"}function eK(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tK(e){return e==null?"":eK(e)}function jr(e){return typeof e=="string"}function Dx(e){return typeof e=="number"}function nK(e){return e===!0||e===!1||rK(e)&&xx(e)=="[object Boolean]"}function Tx(e){return typeof e=="object"}function rK(e){return Tx(e)&&e!==null}function Yn(e){return e!=null}function mp(e){return!e.trim().length}function xx(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const uK="Incorrect 'index' type",iK=e=>`Invalid value for key ${e}`,aK=e=>`Pattern length exceeds max of ${e}.`,sK=e=>`Missing ${e} property in key`,oK=e=>`Property 'weight' in key '${e}' must be a positive integer`,hy=Object.prototype.hasOwnProperty;class lK{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=bx(r);this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function bx(e){let t=null,n=null,r=null,a=1,o=null;if(jr(e)||Lu(e))r=e,t=my(e),n=TE(e);else{if(!hy.call(e,"name"))throw new Error(sK("name"));const l=e.name;if(r=l,hy.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(oK(l));t=my(l),n=TE(l),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function my(e){return Lu(e)?e:e.split(".")}function TE(e){return Lu(e)?e.join("."):e}function cK(e,t){let n=[],r=!1;const a=(o,l,d)=>{if(Yn(o))if(!l[d])n.push(o);else{let f=l[d];const A=o[f];if(!Yn(A))return;if(d===l.length-1&&(jr(A)||Dx(A)||nK(A)))n.push(tK(A));else if(Lu(A)){r=!0;for(let m=0,E=A.length;m<E;m+=1)a(A[m],l,d+1)}else l.length&&a(A,l,d+1)}};return a(e,jr(t)?t.split("."):t,0),r?n:n[0]}const dK={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},fK={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},AK={location:0,threshold:.6,distance:100},hK={useExtendedSearch:!1,getFn:cK,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ve={...fK,...dK,...AK,...hK};const mK=/[^ ]+/g;function pK(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const o=a.match(mK).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),d=parseFloat(Math.round(l*r)/r);return n.set(o,d),d},clear(){n.clear()}}}class y4{constructor({getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){this.norm=pK(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,jr(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();jr(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Yn(t)||mp(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((a,o)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Yn(l)){if(Lu(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:A,value:m}=f.pop();if(Yn(m))if(jr(m)&&!mp(m)){let E={v:m,i:A,n:this.norm.get(m)};d.push(E)}else Lu(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=d}else if(jr(l)&&!mp(l)){let d={v:l,n:this.norm.get(l)};r.$[o]=d}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Bx(e,t,{getFn:n=Ve.getFn,fieldNormWeight:r=Ve.fieldNormWeight}={}){const a=new y4({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(bx)),a.setSources(t),a.create(),a}function EK(e,{getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new y4({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o}function d0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ve.distance,ignoreLocation:o=Ve.ignoreLocation}={}){const l=t/e.length;if(o)return l;const d=Math.abs(r-n);return a?l+d/a:d?1:l}function gK(e=[],t=Ve.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let l=e.length;o<l;o+=1){let d=e[o];d&&r===-1?r=o:!d&&r!==-1&&(a=o-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const ca=32;function _K(e,t,n,{location:r=Ve.location,distance:a=Ve.distance,threshold:o=Ve.threshold,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,includeMatches:f=Ve.includeMatches,ignoreLocation:A=Ve.ignoreLocation}={}){if(t.length>ca)throw new Error(aK(ca));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,I=g;const y=d>1||f,v=y?Array(E):[];let R;for(;(R=e.indexOf(t,I))>-1;){let w=d0(t,{currentLocation:R,expectedLocation:g,distance:a,ignoreLocation:A});if(_=Math.min(w,_),I=R+m,y){let P=0;for(;P<m;)v[R+P]=1,P+=1}}I=-1;let D=[],x=1,F=m+E;const b=1<<m-1;for(let w=0;w<m;w+=1){let P=0,U=F;for(;P<U;)d0(t,{errors:w,currentLocation:g+U,expectedLocation:g,distance:a,ignoreLocation:A})<=_?P=U:F=U,U=Math.floor((F-P)/2+P);F=U;let j=Math.max(1,g-U+1),fe=l?E:Math.min(g+U,E)+m,se=Array(fe+2);se[fe+1]=(1<<w)-1;for(let $=fe;$>=j;$-=1){let J=$-1,G=n[e.charAt(J)];if(y&&(v[J]=+!!G),se[$]=(se[$+1]<<1|1)&G,w&&(se[$]|=(D[$+1]|D[$])<<1|1|D[$+1]),se[$]&b&&(x=d0(t,{errors:w,currentLocation:J,expectedLocation:g,distance:a,ignoreLocation:A}),x<=_)){if(_=x,I=J,I<=g)break;j=Math.max(1,2*g-I)}}if(d0(t,{errors:w+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:A})>_)break;D=se}const O={isMatch:I>=0,score:Math.max(.001,x)};if(y){const w=gK(v,d);w.length?f&&(O.indices=w):O.isMatch=!1}return O}function NK(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}const Af=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class Ox{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m},t=f?t:t.toLowerCase(),t=A?Af(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,I)=>{this.chunks.push({pattern:_,alphabet:NK(_),startIndex:I})},g=this.pattern.length;if(g>ca){let _=0;const I=g%ca,y=g-I;for(;_<y;)E(this.pattern.substr(_,ca),_),_+=ca;if(I){const v=g-ca;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Af(t):t,this.pattern===t){let y={isMatch:!0,score:0};return a&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:y,alphabet:v,startIndex:R})=>{const{isMatch:D,score:x,indices:F}=_K(t,y,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,includeMatches:a,ignoreLocation:m});D&&(_=!0),g+=x,D&&F&&(E=[...E,...F])});let I={isMatch:_,score:_?g/this.chunks.length:1};return _&&a&&(I.indices=E),I}}class Li{constructor(t){this.pattern=t}static isMultiMatch(t){return py(t,this.multiRegex)}static isSingleMatch(t){return py(t,this.singleRegex)}search(){}}function py(e,t){const n=e.match(t);return n?n[1]:null}class IK extends Li{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class SK extends Li{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class CK extends Li{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class yK extends Li{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class vK extends Li{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class RK extends Li{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Fx extends Li{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){super(t),this._bitapSearch=new Ox(t,{location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Lx extends Li{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const xE=[IK,Lx,CK,yK,RK,vK,SK,Fx],Ey=xE.length,DK=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,TK="|";function xK(e,t={}){return e.split(TK).map(n=>{let r=n.trim().split(DK).filter(o=>o&&!!o.trim()),a=[];for(let o=0,l=r.length;o<l;o+=1){const d=r[o];let f=!1,A=-1;for(;!f&&++A<Ey;){const m=xE[A];let E=m.isMultiMatch(d);E&&(a.push(new m(E,t)),f=!0)}if(!f)for(A=-1;++A<Ey;){const m=xE[A];let E=m.isSingleMatch(d);if(E){a.push(new m(E,t));break}}}return a})}const bK=new Set([Fx.type,Lx.type]);class BK{constructor(t,{isCaseSensitive:n=Ve.isCaseSensitive,ignoreDiacritics:r=Ve.ignoreDiacritics,includeMatches:a=Ve.includeMatches,minMatchCharLength:o=Ve.minMatchCharLength,ignoreLocation:l=Ve.ignoreLocation,findAllMatches:d=Ve.findAllMatches,location:f=Ve.location,threshold:A=Ve.threshold,distance:m=Ve.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:o,findAllMatches:d,ignoreLocation:l,location:f,threshold:A,distance:m},t=n?t:t.toLowerCase(),t=r?Af(t):t,this.pattern=t,this.query=xK(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:a,ignoreDiacritics:o}=this.options;t=a?t:t.toLowerCase(),t=o?Af(t):t;let l=0,d=[],f=0;for(let A=0,m=n.length;A<m;A+=1){const E=n[A];d.length=0,l=0;for(let g=0,_=E.length;g<_;g+=1){const I=E[g],{isMatch:y,indices:v,score:R}=I.search(t);if(y){if(l+=1,f+=R,r){const D=I.constructor.type;bK.has(D)?d=[...d,...v]:d.push(v)}}else{f=0,l=0,d.length=0;break}}if(l){let g={isMatch:!0,score:f/l};return r&&(g.indices=d),g}}return{isMatch:!1,score:1}}}const bE=[];function OK(...e){bE.push(...e)}function BE(e,t){for(let n=0,r=bE.length;n<r;n+=1){let a=bE[n];if(a.condition(e,t))return new a(e,t)}return new Ox(e,t)}const hf={AND:"$and",OR:"$or"},OE={PATH:"$path",PATTERN:"$val"},FE=e=>!!(e[hf.AND]||e[hf.OR]),FK=e=>!!e[OE.PATH],LK=e=>!Lu(e)&&Tx(e)&&!FE(e),gy=e=>({[hf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function wx(e,t,{auto:n=!0}={}){const r=a=>{let o=Object.keys(a);const l=FK(a);if(!l&&o.length>1&&!FE(a))return r(gy(a));if(LK(a)){const f=l?a[OE.PATH]:o[0],A=l?a[OE.PATTERN]:a[f];if(!jr(A))throw new Error(iK(f));const m={keyId:TE(f),pattern:A};return n&&(m.searcher=BE(A,t)),m}let d={children:[],operator:o[0]};return o.forEach(f=>{const A=a[f];Lu(A)&&A.forEach(m=>{d.children.push(r(m))})}),d};return FE(e)||(e=gy(e)),r(e)}function wK(e,{ignoreFieldNorm:t=Ve.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:o,score:l})=>{const d=a?a.weight:null;r*=Math.pow(l===0&&d?Number.EPSILON:l,(d||1)*(t?1:o))}),n.score=r})}function MK(e,t){const n=e.matches;t.matches=[],Yn(n)&&n.forEach(r=>{if(!Yn(r.indices)||!r.indices.length)return;const{indices:a,value:o}=r;let l={indices:a,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function HK(e,t){t.score=e.score}function PK(e,t,{includeMatches:n=Ve.includeMatches,includeScore:r=Ve.includeScore}={}){const a=[];return n&&a.push(MK),r&&a.push(HK),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return a.length&&a.forEach(f=>{f(o,d)}),d})}class lo{constructor(t,n={},r){this.options={...Ve,...n},this.options.useExtendedSearch,this._keyStore=new lK(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof y4))throw new Error(uK);this._myIndex=n||Bx(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Yn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,a-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:a,shouldSort:o,sortFn:l,ignoreFieldNorm:d}=this.options;let f=jr(t)?jr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return wK(f,{ignoreFieldNorm:d}),o&&f.sort(l),Dx(n)&&n>-1&&(f=f.slice(0,n)),PK(f,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=BE(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Yn(o))return;const{isMatch:f,score:A,indices:m}=n.searchIn(o);f&&a.push({item:o,idx:l,matches:[{score:A,value:o,norm:d,indices:m}]})}),a}_searchLogical(t){const n=wx(t,this.options),r=(d,f,A)=>{if(!d.children){const{keyId:E,searcher:g}=d,_=this._findMatches({key:this._keyStore.get(E),value:this._myIndex.getValueForItemAtKeyId(f,E),searcher:g});return _&&_.length?[{idx:A,item:f,matches:_}]:[]}const m=[];for(let E=0,g=d.children.length;E<g;E+=1){const _=d.children[E],I=r(_,f,A);if(I.length)m.push(...I);else if(d.operator===hf.AND)return[]}return m},a=this._myIndex.records,o={},l=[];return a.forEach(({$:d,i:f})=>{if(Yn(d)){let A=r(n,d,f);A.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),A.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=BE(t,this.options),{keys:r,records:a}=this._myIndex,o=[];return a.forEach(({$:l,i:d})=>{if(!Yn(l))return;let f=[];r.forEach((A,m)=>{f.push(...this._findMatches({key:A,value:l[m],searcher:n}))}),f.length&&o.push({idx:d,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Yn(n))return[];let a=[];if(Lu(n))n.forEach(({v:o,i:l,n:d})=>{if(!Yn(o))return;const{isMatch:f,score:A,indices:m}=r.searchIn(o);f&&a.push({score:A,key:t,value:o,idx:l,norm:d,indices:m})});else{const{v:o,n:l}=n,{isMatch:d,score:f,indices:A}=r.searchIn(o);d&&a.push({score:f,key:t,value:o,norm:l,indices:A})}return a}}lo.version="7.1.0";lo.createIndex=Bx;lo.parseIndex=EK;lo.config=Ve;lo.parseQuery=wx;OK(BK);const wl=({children:e,className:t,identifier:n,...r})=>N.jsx("div",{className:Re("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),UK=({children:e,identifier:t,className:n,...r})=>N.jsx("button",{className:Re("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,...r,children:e}),kK=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:o,className:l,...d})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",a==="start"&&"left-0",a==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(Jv,{isHidden:t,className:Re("overflow-x-visible",t!==!1?"invisible":"visible",n&&"group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]",r&&"group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]"),...d,children:e})});wl.Trigger=UK;wl.Panel=kK;const GK={key:"locale-switcher-content",content:{localeSwitcherLabel:pe({en:"Language switcher","en-GB":"Language switcher",fr:"Changer de langue",es:"Cambiar idioma",de:"Sprachwechsler",ja:"言語スイッチャー",ko:"언어 스위치",zh:"语言切换器",it:"Cambia lingua",pt:"Mudar idioma",hi:"भाषा स्विचर",ar:"مبدل اللغة",ru:"Переключатель языка"}),languageListLabel:pe({en:"Language list","en-GB":"Language list",fr:"Liste des langues",es:"Lista de idiomas",de:"Sprachliste",ja:"言語リスト",ko:"언어 목록",zh:"语言列表",it:"Elenco lingue",pt:"Lista de idiomas",hi:"भाषा सूची",ar:"قائمة اللغات",ru:"Список языков"}),switchTo:pe({en:"Switch to",fr:"Passer à",es:"Cambiar a","en-GB":"Switch to",de:"Wechseln Sie zu",ja:"に切り替える",ko:"전환",zh:"切换到",it:"Passa a",pt:"Mudar para",hi:"स्विच करें",ar:"التبديل إلى",ru:"Переключиться на"}),searchInput:{text:pe({en:"Search Locale","en-GB":"Search Locale",fr:"Rechercher la locale",es:"Buscar idioma",de:"Sprache durchsuchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca lingua",pt:"Pesquisar idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),placeholder:pe({en:"Search a locale","en-GB":"Search a locale",fr:"Rechercher une locale",es:"Buscar un idioma",de:"Sprache suchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca una lingua",pt:"Pesquisar um idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),ariaLabel:pe({en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"})},seeAllLocalesSwitch:{true:pe({en:"See all locales","en-GB":"See all locales",fr:"Voir toutes les langues",es:"Ver todos los idiomas",de:"Alle Sprachen anzeigen",ja:"すべての言語を表示",ko:"모든 언어 보기",zh:"查看所有语言",it:"Vedi tutte le lingue",pt:"Ver todos os idiomas",hi:"सभी भाषाओं को देखें",ar:"عرض جميع اللغات",ru:"Показать все языки"}),false:pe({en:"See only selected locales","en-GB":"See only selected locales",fr:"Voir seulement les langues sélectionnées",es:"Ver solo los idiomas seleccionados",de:"Nur ausgewählte Sprachen anzeigen",ja:"選択された言語のみを表示",ko:"선택한 언어만 보기",zh:"仅查看选定的语言",it:"Vedi solo le lingue selezionate",pt:"Ver apenas os idiomas selecionados",hi:"केवल चुने गए भाषाओं को देखें",ar:"عرض اللغات المحددة فقط",ru:"Показать только выбранные языки"})}}},Ml=(e,t)=>{const[n,r]=C.useState(()=>{if(t!==void 0){const o=typeof t=="function"?t():t;if(typeof window>"u")return o;const l=localStorage==null?void 0:localStorage.getItem(e);if(l)try{return JSON.parse(l)}catch(d){console.error(d)}return o}});C.useEffect(()=>{const o=localStorage==null?void 0:localStorage.getItem(e);if(o&&n===void 0)try{r(JSON.parse(o))}catch(l){console.error(l)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const a=C.useCallback(o=>{r(l=>{const d=typeof o=="function"?o(l):o;return localStorage==null||localStorage.setItem(e,JSON.stringify(d)),d})},[e,r]);return C.useMemo(()=>[n,a],[n,a])},Mx=C.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),Hx=()=>C.useContext(Mx),jK=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=JE(),[a,o]=Ml("locale-content-selector-selected-locales",t??[r]);return N.jsx(Mx,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:o},children:n})},pp="locale-switcher-content",VK=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:o,seeAllLocalesSwitch:l}=un(GK),d=C.useRef(null),{locale:f}=JE(),{availableLocales:A,selectedLocales:m,setSelectedLocales:E}=Hx(),g=C.useMemo(()=>A.map(b=>{const O=I0(b,u.ENGLISH),w=I0(b,f),P=I0(b);return{locale:b,englishName:O,currentLocaleName:w,ownLocaleName:P}}),[A,f]),[_,I]=C.useState(g),[y,v]=Ml("locale-content-selector-see-all-locales",!1),R=C.useMemo(()=>{const b={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new lo(g,b)},[g]),D=C.useCallback(b=>{if(b){const O=R.search(b).map(w=>w.item);I(O)}else I(g)},[R,g]),x=b=>{t?m.includes(b)?m.length>1&&E(O=>O.filter(w=>w!==b)):E(O=>[...O,b]):E([b])},F=b=>{v(b),E(b?A:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:N.jsxs(wl,{identifier:pp,children:[N.jsx(wl.Trigger,{identifier:pp,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(K2,{size:18})}),N.jsx(Z2,{className:"self-center",size:18})]})}),N.jsx(wl.Panel,{identifier:pp,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(eu,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":o.value,children:[t&&N.jsx("div",{className:"m-auto p-2",children:N.jsx(bc,{defaultValue:!1,onChange:F,color:"text",size:"sm",className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&y)&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"p-3",children:N.jsx(ro,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:b=>D(b.target.value),ref:d})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:b,currentLocaleName:O,ownLocaleName:w})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(pt,{onClick:()=>x(b),label:`${n} ${O}`,disabled:!(A??A).includes(b),isActive:m.includes(b),variant:"hoverable",color:"text",isFullWidth:!0,textAlign:"left",size:"sm",children:N.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&N.jsx("div",{className:"w-4",children:m.includes(b)&&N.jsx(no,{className:"size-full"})}),N.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[N.jsxs("div",{className:"flex flex-col text-nowrap",children:[N.jsx("span",{dir:NF(b),lang:b,children:w}),N.jsx("span",{className:"text-neutral text-xs",children:O})]}),N.jsx("span",{className:"text-neutral text-sm",children:b.toUpperCase()})]})]})})},b))})]})]})})]})})},zK=(e,t,n)=>{const r={...e};for(const a of Object.keys(e))a===t?(r[n]=e[t],delete r[t]):r[a]=e[a];return r},LE=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const[l,d]=C.useState(e),[f,A]=C.useState(0),m=l!==e,E=()=>{d(e),A(y=>y+1)},g=()=>{t(l)},_=y=>{d(y.currentTarget.value)};C.useEffect(()=>{d(e)},[e]);const I=(r==null?void 0:r(l))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(ro,{onChange:_,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(pt,{Icon:no,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!I,onClick:g}),N.jsx(pt,{Icon:ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),a]})]},String(e))},KK=(e,t)=>{const[n,r]=C.useState(e);return C.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},YK=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:a}=QM(),o=Xr(),[l,d]=C.useState(!1),[f,A]=C.useState(r),[m,E]=C.useState(""),g=KK(f,200);C.useEffect(()=>{typeof n.value>"u"||A(r)},[n.value,n.defaultValue]),C.useEffect(()=>{if(!e||!l)return;const I=async()=>{var y;try{const v=await a({text:g,openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}),R=((y=v==null?void 0:v.data)==null?void 0:y.autocompletion)??"";if(R.startsWith(g)){const D=R.slice(g.length);return E(D)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),I()):E("")},[g,e]);const _=()=>{A(I=>I+m),E("")};return N.jsxs("div",{className:"relative w-full",children:[N.jsxs("div",{className:"pointer-events-none absolute inset-0 whitespace-pre-wrap break-words px-1 py-3 text-base leading-[1.45rem] md:py-1 md:text-sm md:leading-[1.23rem]","aria-hidden":"true",children:[N.jsx("span",{className:"align-text-top text-transparent",children:f}),(m||t)&&N.jsx("span",{className:"text-neutral ml-3 align-text-top",children:t??m})]}),N.jsx(Ig,{...n,value:f,onChange:I=>{var y;d(!0),A(I.target.value),(y=n.onChange)==null||y.call(n,I)},onKeyDown:I=>{var y;I.key==="Tab"&&m&&(I.preventDefault(),_()),(y=n.onKeyDown)==null||y.call(n,I)}})]})},ZK=()=>{const{session:e,revalidateSession:t,setSession:n}=Sc(),{logout:r}=zM(),a=e!=null&&e.user?"authenticated":"unauthenticated",o=a==="authenticated",l=a==="unauthenticated",d=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:d,revalidateSession:t,logout:async()=>{n(null),await r()}}},WK=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const{isAuthenticated:l}=ZK(),[d,f]=C.useState(e),[A,m]=C.useState(0),E=d!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(d)},I=v=>f(v.currentTarget.value??"");C.useEffect(()=>{f(e)},[e]);const y=(r==null?void 0:r(d))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(YK,{onChange:I,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},A),(E||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(pt,{Icon:no,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!y,onClick:_}),N.jsx(pt,{Icon:ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),a]})]},e)};function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da.apply(this,arguments)}const $K=["children","options"],ke={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var _y;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(_y||(_y={}));const Ny=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Iy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qK=["style","script"],QK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,XK=/mailto:/i,JK=/\n{2,}$/,Px=/^(\s*>[\s\S]*?)(?=\n\n|$)/,eY=/^ *> ?/gm,tY=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,nY=/^ {2,}\n/,rY=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ux=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,kx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,uY=/^(`+)((?:\\`|[^`])+)\1/,iY=/^(?:\n *)*\n/,aY=/\r\n?/g,sY=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,oY=/^\[\^([^\]]+)]/,lY=/\f/g,cY=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,dY=/^\s*?\[(x|\s)\]/,Gx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,fY=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,zx=/^<!--[\s\S]*?(?:-->)/,AY=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ME=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,hY=/^\{.*\}$/,mY=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,pY=/^<([^ >]+@[^ >]+)>/,EY=/^<([^ >]+:\/[^ >]+)>/,gY=/-([a-z])?/gi,Kx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,_Y=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,NY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,IY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,SY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CY=/\t/g,yY=/(^ *\||\| *$)/g,vY=/^ *:-+: *$/,RY=/^ *:-+ *$/,DY=/^ *-+: *$/,nA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",TY=new RegExp(`^([*_])\\1${nA}\\1\\1(?!\\1)`),xY=new RegExp(`^([*_])${nA}\\1(?!\\1)`),bY=new RegExp(`^(==)${nA}\\1`),BY=new RegExp(`^(~~)${nA}\\1`),OY=/^\\([^0-9A-Za-z\s])/,Ep=/\\([^0-9A-Za-z\s])/g,FY=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,LY=/^\n+/,wY=/^([ \t]*)/,MY=/\\([^\\])/g,HY=/(?:^|\n)( *)$/,v4="(?:\\d+\\.)",R4="(?:[*+-])";function Yx(e){return"( *)("+(e===1?v4:R4)+") +"}const Zx=Yx(1),Wx=Yx(2);function $x(e){return new RegExp("^"+(e===1?Zx:Wx))}const PY=$x(1),UY=$x(2);function qx(e){return new RegExp("^"+(e===1?Zx:Wx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?v4:R4)+" )[^\\n]*)*(\\n|$)","gm")}const kY=qx(1),GY=qx(2);function Qx(e){const t=e===1?v4:R4;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Xx=Qx(1),Jx=Qx(2);function Sy(e,t){const n=t===1,r=n?Xx:Jx,a=n?kY:GY,o=n?PY:UY;return{match:Ws(function(l,d){const f=HY.exec(d.prevCapture);return f&&(d.list||!d.inline&&!d.simple)?r.exec(l=f[1]+l):null}),order:1,parse(l,d,f){const A=n?+l[2]:void 0,m=l[0].replace(JK,`
262
+ `).match(a);let E=!1;return{items:m.map(function(g,_){const I=o.exec(g)[0].length,y=new RegExp("^ {1,"+I+"}","gm"),v=g.replace(y,"").replace(o,""),R=_===m.length-1,D=v.indexOf(`
263
+
264
+ `)!==-1||R&&E;E=D;const x=f.inline,F=f.list;let b;f.list=!0,D?(f.inline=!1,b=lc(v)+`
265
+
266
+ `):(f.inline=!0,b=lc(v));const O=d(b,f);return f.inline=x,f.list=F,O}),ordered:n,start:A}},render:(l,d,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type===ke.orderedList?l.start:void 0},l.items.map(function(A,m){return e("li",{key:m},d(A,f))}))}}const jY=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),VY=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,e1=[Px,Ux,kx,Gx,Vx,jx,Kx,Xx,Jx],zY=[...e1,/^[^\n]+(?: \n|\n{2,})/,wE,zx,ME];function lc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function gl(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function KY(e){return DY.test(e)?"right":vY.test(e)?"center":RY.test(e)?"left":null}function Cy(e,t,n,r){const a=n.inTable;n.inTable=!0;let o=[[]],l="";function d(){if(!l)return;const f=o[o.length-1];f.push.apply(f,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,A,m)=>{f.trim()==="|"&&(d(),r)?A!==0&&A!==m.length-1&&o.push([]):l+=f}),d(),n.inTable=a,o}function YY(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(yY,"").split("|").map(KY):[],a=e[3]?function(l,d,f){return l.trim().split(`
267
+ `).map(function(A){return Cy(A,d,f,!0)})}(e[3],t,n):[],o=Cy(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function yy(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ws(e){return e.inline=1,e}function li(e){return Ws(function(t,n){return n.inline?e.exec(t):null})}function ci(e){return Ws(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Iu(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function _l(e){return Ws(function(t){return e.exec(t)})}function ZY(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
268
+ `).every(a=>(a+=`
269
+ `,!e1.some(o=>o.test(a))&&(n+=a,!!a.trim())));const r=lc(n);return r==""?null:[n,,r]}function WY(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function vy(e){return e.replace(MY,"$1")}function F0(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function $Y(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function qY(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const gp=(e,t,n)=>({children:F0(t,e[2],n)});function _p(){return{}}function Np(){return null}function QY(...e){return e.filter(Boolean).join(" ")}function Ip(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function XY(e="",t={}){function n(g,_,...I){const y=Ip(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const D=Ip(R,v);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:Ip(R,`${v}.component`,v):v}(g,t.overrides),da({},_,y,{className:QY(_==null?void 0:_.className,y.className)||void 0}),...I)}function r(g){g=g.replace(cY,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=SY.test(g)===!1);const I=A(f(_?g:`${lc(g).replace(LY,"")}
270
+
271
+ `,{inline:_}));for(;typeof I[I.length-1]=="string"&&!I[I.length-1].trim();)I.pop();if(t.wrapper===null)return I;const y=t.wrapper||(_?"span":"div");let v;if(I.length>1||t.forceWrapper)v=I;else{if(I.length===1)return v=I[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return t.createElement(y,{key:"outer"},v)}function a(g,_){const I=_.match(QK);return I?I.reduce(function(y,v){const R=v.indexOf("=");if(R!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(AY)===null&&(O=O.replace(gY,function(w,P){return P.toUpperCase()})),O}(v.slice(0,R)).trim(),x=function(O){const w=O[0];return(w==='"'||w==="'")&&O.length>=2&&O[O.length-1]===w?O.slice(1,-1):O}(v.slice(R+1).trim()),F=Ny[D]||D;if(F==="ref")return y;const b=y[F]=function(O,w,P,U){return w==="style"?P.split(/;\s?/).reduce(function(j,fe){const se=fe.slice(0,fe.indexOf(":"));return j[se.trim().replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=fe.slice(se.length+1).trim(),j},{}):w==="href"||w==="src"?U(P,O,w):(P.match(hY)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(g,D,x,t.sanitizer);typeof b=="string"&&(wE.test(b)||ME.test(b))&&(y[F]=r(b.trim()))}else v!=="style"&&(y[Ny[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||WY,t.slugify=t.slugify||gl,t.namedCodesToUnicode=t.namedCodesToUnicode?da({},Iy,t.namedCodesToUnicode):Iy,t.createElement=t.createElement||C.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Iu(Px),order:1,parse(g,_,I){const[,y,v]=g[0].replace(eY,"").match(tY);return{alert:y,children:_(v,I)}},render(g,_,I){const y={key:I.key};return g.alert&&(y.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),gl),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",y,_(g.children,I))}},[ke.breakLine]:{match:_l(nY),order:1,parse:_p,render:(g,_,I)=>n("br",{key:I.key})},[ke.breakThematic]:{match:Iu(rY),order:1,parse:_p,render:(g,_,I)=>n("hr",{key:I.key})},[ke.codeBlock]:{match:Iu(kx),order:0,parse:g=>({lang:void 0,text:lc(g[0].replace(/^ {4}/gm,"")).replace(Ep,"$1")}),render:(g,_,I)=>n("pre",{key:I.key},n("code",da({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Iu(Ux),order:0,parse:g=>({attrs:a("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(Ep,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:ci(uY),order:3,parse:g=>({text:g[2].replace(Ep,"$1")}),render:(g,_,I)=>n("code",{key:I.key},g.text)},[ke.footnote]:{match:Iu(sY),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:Np},[ke.footnoteReference]:{match:li(oY),order:1,parse:g=>({target:`#${t.slugify(g[1],gl)}`,text:g[1]}),render:(g,_,I)=>n("a",{key:I.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:I.key},g.text))},[ke.gfmTask]:{match:li(dY),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,_,I)=>n("input",{checked:g.completed,key:I.key,readOnly:!0,type:"checkbox"})},[ke.heading]:{match:Iu(t.enforceAtxHeadings?jx:Gx),order:1,parse:(g,_,I)=>({children:F0(_,g[2],I),id:t.slugify(g[2],gl),level:g[1].length}),render:(g,_,I)=>n(`h${g.level}`,{id:g.id,key:I.key},_(g.children,I))},[ke.headingSetext]:{match:Iu(Vx),order:0,parse:(g,_,I)=>({children:F0(_,g[1],I),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:_l(wE),order:1,parse(g,_,I){const[,y]=g[3].match(wY),v=new RegExp(`^${y}`,"gm"),R=g[3].replace(v,""),D=(x=R,zY.some(P=>P.test(x))?qY:F0);var x;const F=g[1].toLowerCase(),b=qK.indexOf(F)!==-1,O=(b?F:g[1]).trim(),w={attrs:a(O,g[2]),noInnerParse:b,tag:O};return I.inAnchor=I.inAnchor||F==="a",b?w.text=g[3]:w.children=D(_,R,I),I.inAnchor=!1,w},render:(g,_,I)=>n(g.tag,da({key:I.key},g.attrs),g.text||(g.children?_(g.children,I):""))},[ke.htmlSelfClosing]:{match:_l(ME),order:1,parse(g){const _=g[1].trim();return{attrs:a(_,g[2]||""),tag:_}},render:(g,_,I)=>n(g.tag,da({},g.attrs,{key:I.key}))},[ke.htmlComment]:{match:_l(zx),order:1,parse:()=>({}),render:Np},[ke.image]:{match:ci(VY),order:1,parse:g=>({alt:g[1],target:vy(g[2]),title:g[3]}),render:(g,_,I)=>n("img",{key:I.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[ke.link]:{match:li(jY),order:3,parse:(g,_,I)=>({children:$Y(_,g[1],I),target:vy(g[2]),title:g[3]}),render:(g,_,I)=>n("a",{key:I.key,href:t.sanitizer(g.target,"a","href"),title:g.title},_(g.children,I))},[ke.linkAngleBraceStyleDetector]:{match:li(EY),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:Ws((g,_)=>_.inAnchor||t.disableAutoLink?null:li(mY)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:li(pY),order:0,parse(g){let _=g[1],I=g[1];return XK.test(I)||(I="mailto:"+I),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:I,type:ke.link}}},[ke.orderedList]:Sy(n,1),[ke.unorderedList]:Sy(n,2),[ke.newlineCoalescer]:{match:Iu(iY),order:3,parse:_p,render:()=>`
272
+ `},[ke.paragraph]:{match:Ws(ZY),order:3,parse:gp,render:(g,_,I)=>n("p",{key:I.key},_(g.children,I))},[ke.ref]:{match:li(_Y),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:Np},[ke.refImage]:{match:ci(NY),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,_,I)=>l[g.ref]?n("img",{key:I.key,alt:g.alt,src:t.sanitizer(l[g.ref].target,"img","src"),title:l[g.ref].title}):null},[ke.refLink]:{match:li(IY),order:0,parse:(g,_,I)=>({children:_(g[1],I),fallbackChildren:g[0],ref:g[2]}),render:(g,_,I)=>l[g.ref]?n("a",{key:I.key,href:t.sanitizer(l[g.ref].target,"a","href"),title:l[g.ref].title},_(g.children,I)):n("span",{key:I.key},g.fallbackChildren)},[ke.table]:{match:Iu(Kx),order:1,parse:YY,render(g,_,I){const y=g;return n("table",{key:I.key},n("thead",null,n("tr",null,y.header.map(function(v,R){return n("th",{key:R,style:yy(y,R)},_(v,I))}))),n("tbody",null,y.cells.map(function(v,R){return n("tr",{key:R},v.map(function(D,x){return n("td",{key:x,style:yy(y,x)},_(D,I))}))})))}},[ke.text]:{match:_l(FY),order:4,parse:g=>({text:g[0].replace(fY,(_,I)=>t.namedCodesToUnicode[I]?t.namedCodesToUnicode[I]:_)}),render:g=>g.text},[ke.textBolded]:{match:ci(TY),order:2,parse:(g,_,I)=>({children:_(g[2],I)}),render:(g,_,I)=>n("strong",{key:I.key},_(g.children,I))},[ke.textEmphasized]:{match:ci(xY),order:3,parse:(g,_,I)=>({children:_(g[2],I)}),render:(g,_,I)=>n("em",{key:I.key},_(g.children,I))},[ke.textEscaped]:{match:ci(OY),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:ci(bY),order:3,parse:gp,render:(g,_,I)=>n("mark",{key:I.key},_(g.children,I))},[ke.textStrikethroughed]:{match:ci(BY),order:3,parse:gp,render:(g,_,I)=>n("del",{key:I.key},_(g.children,I))}};t.disableParsingRawHTML===!0&&(delete d[ke.htmlBlock],delete d[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function I(y,v){let R,D,x=[],F="",b="";for(v.prevCapture=v.prevCapture||"";y;){let O=0;for(;O<_.length;){if(F=_[O],R=g[F],v.inline&&!R.match.inline){O++;continue}const w=R.match(y,v);if(w){b=w[0],v.prevCapture+=b,y=y.substring(b.length),D=R.parse(w,I,v),D.type==null&&(D.type=F),x.push(D);break}O++}}return v.prevCapture="",x}return _.sort(function(y,v){let R=g[y].order,D=g[v].order;return R!==D?R-D:y<v?-1:1}),function(y,v){return I(function(R){return R.replace(aY,`
273
+ `).replace(lY,"").replace(CY," ")}(y),v)}}(d),A=(m=function(g,_){return function(I,y,v){const R=g[I.type].render;return _?_(()=>R(I,y,v),I,y,v):R(I,y,v)}}(d,t.renderRule),function g(_,I={}){if(Array.isArray(_)){const y=I.key,v=[];let R=!1;for(let D=0;D<_.length;D++){I.key=D;const x=g(_[D],I),F=typeof x=="string";F&&R?v[v.length-1]+=x:x!==null&&v.push(x),R=F}return I.key=y,v}return m(_,g,I)});var m;const E=r(e);return o.length?n("div",null,E,n("footer",{key:"footer"},o.map(function(g){return n("div",{id:t.slugify(g.identifier,gl),key:g.identifier},g.identifier,A(f(g.footnote,{inline:!0})))}))):E}const JY=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,d,f={},A=Object.keys(a);for(d=0;d<A.length;d++)o.indexOf(l=A[d])>=0||(f[l]=a[l]);return f}(e,$K);return C.cloneElement(XY(t,n),r)},eZ=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},tZ=()=>{const[e,t]=C.useState(),n=()=>{t(window.location.hash.slice(1))};return C.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)),[]),C.useEffect(()=>{e&&eZ(e)},[e]),null},nZ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function rZ(e,t,n){const r=[];for(const a of e){if(n==="v3"){const d=a.children.flatMap((f,A)=>{if(f.type!=="element")return f;const m=f.children[0];if(m.type!=="text")return f;const E=A===a.children.length-1;if(!Dy(m.value,E))return f;const _=m.value.split(/(\s+\/\/)/);if(_.length<=1)return f;let I=[_[0]];for(let y=1;y<_.length;y+=2)I.push(_[y]+(_[y+1]||""));return I=I.filter(Boolean),I.length<=1?f:I.map(y=>({...f,children:[{type:"text",value:y}]}))});d.length!==a.children.length&&(a.children=d)}const o=a.children;let l=o.length-1;n==="v1"?l=0:t&&(l=o.length-2);for(let d=Math.max(l,0);d<o.length;d++){const f=o[d];if(f.type!=="element")continue;const A=f.children.at(0);if((A==null?void 0:A.type)!=="text")continue;const m=d===o.length-1,E=Dy(A.value,m);if(E)if(t&&!m&&d!==0){const g=Ry(o[d-1],"{")&&Ry(o[d+1],"}");r.push({info:E,line:a,token:f,isLineCommentOnly:o.length===3&&f.children.length===1,isJsxStyle:g})}else r.push({info:E,line:a,token:f,isLineCommentOnly:o.length===1&&f.children.length===1,isJsxStyle:!1})}}return r}function Ry(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function Dy(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[o,l]of nZ){if(l&&!t)continue;const d=o.exec(n);if(d)return[" ".repeat(r)+d[1],d[2],d[3]?d[3]+" ".repeat(a):void 0]}}function uZ(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function t1(e,t,n,r){return r==null&&(r="v3"),{name:e,code(a){const o=a.children.filter(A=>A.type==="element"),l=[];a.data??(a.data={});const d=a.data;d._shiki_notation??(d._shiki_notation=rZ(o,["jsx","tsx"].includes(this.options.lang),r));const f=d._shiki_notation;for(const A of f){if(A.info[1].length===0)continue;let m=o.indexOf(A.line);A.isLineCommentOnly&&r!=="v1"&&m++;let E=!1;if(A.info[1]=A.info[1].replace(t,(..._)=>n.call(this,_,A.line,A.token,o,m)?(E=!0,""):_[0]),!E)continue;r==="v1"&&(A.info[1]=uZ(A.info[1]));const g=A.info[1].trim().length===0;if(g&&(A.info[1]=""),g&&A.isLineCommentOnly)l.push(A.line);else if(g&&A.isJsxStyle)A.line.children.splice(A.line.children.indexOf(A.token)-1,3);else if(g)A.line.children.splice(A.line.children.indexOf(A.token),1);else{const _=A.token.children[0];_.type==="text"&&(_.value=A.info.join(""))}}for(const A of l){const m=a.children.indexOf(A),E=a.children[m+1];let g=1;(E==null?void 0:E.type)==="text"&&(E==null?void 0:E.value)===`
274
+ `&&(g=2),a.children.splice(m,g)}}}}function iZ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(o=>Number.parseInt(o,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(o,l)=>l+a[0])}):null}const f0=Symbol("highlighted-lines");function aZ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){var l;if(!((l=this.options.meta)!=null&&l.__raw))return;const a=this.meta;return a[f0]??(a[f0]=iZ(this.options.meta.__raw)),(a[f0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function sZ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function oZ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){var o;if(!((o=this.options.meta)!=null&&o.__raw))return;const a=sZ(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of a){const d=lZ(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function lZ(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function cZ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function D4(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return t1(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(cZ).join("|")})(:\\d+)?\\]`),function([a,o,l=":1"],d,f,A,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,A.length);g++)this.addClassToHast(A[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function dZ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return D4({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function fZ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return D4({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function AZ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return D4({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function hZ(e,t,n,r){const a=n1(e);let o=a.indexOf(n);for(;o!==-1;)mZ.call(this,e.children,t,o,n.length,r),o=a.indexOf(n,o+1)}function n1(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(n1).join(""):""}function mZ(e,t,n,r,a){let o=0;for(let l=0;l<e.length;l++){const d=e[l];if(d.type!=="element"||d.tagName!=="span"||d===t)continue;const f=d.children[0];if(f.type==="text"){if(pZ([o,o+f.value.length-1],[n,n+r])){const A=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=EZ(d,f,A,m);this.addClassToHast(E[1],a);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function pZ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function EZ(e,t,n,r){const a=t.value,o=l=>gZ(e,{children:[{type:"text",value:l}]});return[n>0?o(a.slice(0,n)):void 0,o(a.slice(n,n+r)),n+r<a.length?o(a.slice(n+r)):void 0]}function gZ(e,t){return{...e,properties:{...e.properties},...t}}function _Z(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return t1("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,o],l,d,f,A){const m=o?Number.parseInt(o.slice(1),10):f.length;a=a.replace(/\\(.)/g,"$1");for(let E=A;E<Math.min(A+m,f.length);E++)hZ.call(this,f[E],d,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const NZ="modulepreload",IZ=function(e){return"/"+e},Ty={},L=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=Promise.allSettled(n.map(f=>{if(f=IZ(f),f in Ty)return;Ty[f]=!0;const A=f.endsWith(".css"),m=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=A?"stylesheet":NZ,A||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),A)return new Promise((g,_)=>{E.addEventListener("load",g),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return a.then(l=>{for(const d of l||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})};let rn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function SZ(e){return T4(e)}function T4(e){return Array.isArray(e)?CZ(e):e instanceof RegExp?e:typeof e=="object"?yZ(e):e}function CZ(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=T4(e[n]);return t}function yZ(e){let t={};for(let n in e)t[n]=T4(e[n]);return t}function r1(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function u1(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?u1(e.substring(0,e.length-1)):e.substr(~t+1)}var Sp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,A0=class{static hasCaptures(e){return e===null?!1:(Sp.lastIndex=0,Sp.test(e))}static replaceCaptures(e,t,n){return e.replace(Sp,(r,a,o,l)=>{let d=n[parseInt(a||o,10)];if(d){let f=t.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(l){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return r})}};function i1(e,t){return e<t?-1:e>t?1:0}function a1(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=i1(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function xy(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function s1(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var o1=class{constructor(e){oe(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},mf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new o1(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(DZ(e),t)}static createFromParsedTheme(e,t){return xZ(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>vZ(e.parent,a.parentScopes));return r?new l1(r.fontStyle,r.foreground,r.background):null}},Cp=class L0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new L0(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new L0(n,t[r]);return n}push(t){return new L0(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function vZ(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!RZ(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function RZ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var l1=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function DZ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let d;if(typeof l.scope=="string"){let E=l.scope;E=E.replace(/^[,]+/,""),E=E.replace(/[,]+$/,""),d=E.split(",")}else Array.isArray(l.scope)?d=l.scope:d=[""];let f=-1;if(typeof l.settings.fontStyle=="string"){f=0;let E=l.settings.fontStyle.split(" ");for(let g=0,_=E.length;g<_;g++)switch(E[g]){case"italic":f=f|1;break;case"bold":f=f|2;break;case"underline":f=f|4;break;case"strikethrough":f=f|8;break}}let A=null;typeof l.settings.foreground=="string"&&xy(l.settings.foreground)&&(A=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&xy(l.settings.background)&&(m=l.settings.background);for(let E=0,g=d.length;E<g;E++){let I=d[E].trim().split(" "),y=I[I.length-1],v=null;I.length>1&&(v=I.slice(0,I.length-1),v.reverse()),n[r++]=new TZ(y,v,a,f,A,m)}}return n}var TZ=class{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}},vu=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(vu||{});function xZ(e,t){e.sort((f,A)=>{let m=i1(f.scope,A.scope);return m!==0||(m=a1(f.parentScopes,A.parentScopes),m!==0)?m:f.index-A.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let f=e.shift();f.fontStyle!==-1&&(n=f.fontStyle),f.foreground!==null&&(r=f.foreground),f.background!==null&&(a=f.background)}let o=new bZ(t),l=new l1(n,o.getId(r),o.getId(a)),d=new OZ(new HE(0,null,-1,0,0),[]);for(let f=0,A=e.length;f<A;f++){let m=e[f];d.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new mf(o,l,d)}var bZ=class{constructor(e){oe(this,"_isFrozen");oe(this,"_lastColorId");oe(this,"_id2color");oe(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},BZ=Object.freeze([]),HE=class c1{constructor(t,n,r,a,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||BZ,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new c1(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},OZ=class PE{constructor(t,n=[],r={}){oe(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(PE._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let d=n.indexOf("."),f,A;d===-1?(f=n,A=""):(f=n.substring(0,d),A=n.substring(d+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new PE(this._mainRule.clone(),HE.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,A,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,d=this._rulesWithParentScopes.length;l<d;l++){let f=this._rulesWithParentScopes[l];if(a1(f.parentScopes,n)===0){f.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new HE(t,n,r,a,o))}},$s=class cr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=cr.getLanguageId(t),r=cr.getTokenType(t),a=cr.getFontStyle(t),o=cr.getForeground(t),l=cr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,l,d){let f=cr.getLanguageId(t),A=cr.getTokenType(t),m=cr.containsBalancedBrackets(t)?1:0,E=cr.getFontStyle(t),g=cr.getForeground(t),_=cr.getBackground(t);return n!==0&&(f=n),r!==8&&(A=r),a!==null&&(m=a?1:0),o!==-1&&(E=o),l!==0&&(g=l),d!==0&&(_=d),(f<<0|A<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function pf(e,t){const n=[],r=FZ(e);let a=r.next();for(;a!==null;){let f=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let A=l();if(n.push({matcher:A,priority:f}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const f=o();return A=>!!f&&!f(A)}if(a==="("){a=r.next();const f=d();return a===")"&&(a=r.next()),f}if(by(a)){const f=[];do f.push(a),a=r.next();while(by(a));return A=>t(f,A)}return null}function l(){const f=[];let A=o();for(;A;)f.push(A),A=o();return m=>f.every(E=>E(m))}function d(){const f=[];let A=l();for(;A&&(f.push(A),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");A=l()}return m=>f.some(E=>E(m))}}function by(e){return!!e&&!!e.match(/[\w\.:]+/)}function FZ(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function d1(e){typeof e.dispose=="function"&&e.dispose()}var cc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},LZ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wZ=class{constructor(){oe(this,"_references",[]);oe(this,"_seenReferenceKeys",new Set);oe(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},MZ=class{constructor(e,t){oe(this,"seenFullScopeRequests",new Set);oe(this,"seenPartialScopeRequests",new Set);oe(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new wZ;for(const n of e)HZ(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof cc){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function HZ(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof cc?w0({baseGrammar:o,selfGrammar:a},r):UE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const d of l)r.add(new cc(d))}function UE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ef([r],t,n)}}function w0(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ef(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ef(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ef(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?r1({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ef(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=f1(o);switch(l.kind){case 0:w0({...t,selfGrammar:t.baseGrammar},n);break;case 1:w0(t,n);break;case 2:UE(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const d=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(d){const f={baseGrammar:t.baseGrammar,selfGrammar:d,repository:a};l.kind===4?UE(l.ruleName,f,n):w0(f,n)}else l.kind===4?n.add(new LZ(l.scopeName,l.ruleName)):n.add(new cc(l.scopeName));break}}}var PZ=class{constructor(){oe(this,"kind",0)}},UZ=class{constructor(){oe(this,"kind",1)}},kZ=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},GZ=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},jZ=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function f1(e){if(e==="$base")return new PZ;if(e==="$self")return new UZ;const t=e.indexOf("#");if(t===-1)return new GZ(e);if(t===0)return new kZ(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new jZ(n,r)}}var VZ=/\\(\d+)/,By=/\\(\d+)/g,zZ=-1,A1=-2;var Mc=class{constructor(e,t,n,r){oe(this,"$location");oe(this,"id");oe(this,"_nameIsCapturing");oe(this,"_name");oe(this,"_contentNameIsCapturing");oe(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=A0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=A0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${u1(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:A0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:A0.replaceCaptures(this._contentName,e,t)}},KZ=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,a);oe(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},YZ=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new dc(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oy=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,a);oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kE=class extends Mc{constructor(t,n,r,a,o,l,d,f,A,m){super(t,n,r,a);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"_end");oe(this,"endHasBackReferences");oe(this,"endCaptures");oe(this,"applyEndPatternLast");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this._begin=new dc(o,this.id),this.beginCaptures=l,this._end=new dc(d||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=A||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.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(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fc;for(const r of this.patterns)t.getRule(r).collectPatterns(t,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},gf=class extends Mc{constructor(t,n,r,a,o,l,d,f,A){super(t,n,r,a);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"whileCaptures");oe(this,"_while");oe(this,"whileHasBackReferences");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");oe(this,"_cachedCompiledWhilePatterns");this._begin=new dc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new dc(d,A1),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=A.patterns,this.hasMissingPatterns=A.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(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fc;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},h1=class mn{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new KZ(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new YZ(t.$vscodeTextmateLocation,t.id,t.name,t.match,mn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=r1({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Oy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,mn._compilePatterns(o,n,r))}return t.while?new gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,mn._compileCaptures(t.whileCaptures||t.captures,n,r),mn._compilePatterns(t.patterns,n,r)):new kE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,mn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,mn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);d>o&&(o=d)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);let f=0;t[l].patterns&&(f=mn.getCompiledRuleId(t[l],n,r)),a[d]=mn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const d=t[o];let f=-1;if(d.include){const A=f1(d.include);switch(A.kind){case 0:case 1:f=mn.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[A.ruleName];m&&(f=mn.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=A.scopeName,g=A.kind===4?A.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let I=_.repository[g];I&&(f=mn.getCompiledRuleId(I,n,_.repository))}else f=mn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=mn.getCompiledRuleId(d,n,r);if(f!==-1){const A=n.getRule(f);let m=!1;if((A instanceof Oy||A instanceof kE||A instanceof gf)&&A.hasMissingPatterns&&A.patterns.length===0&&(m=!0),m)continue;a.push(f)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},dc=class m1{constructor(t,n){oe(this,"source");oe(this,"ruleId");oe(this,"hasAnchor");oe(this,"hasBackReferences");oe(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let d=0;d<r;d++)if(t.charAt(d)==="\\"&&d+1<r){const A=t.charAt(d+1);A==="z"?(o.push(t.substring(a,d)),o.push("$(?!\\n)(?<!\\n)"),a=d+2):(A==="A"||A==="G")&&(l=!0),d++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=VZ.test(this.source):this.hasBackReferences=!1}clone(){return new m1(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return By.lastIndex=0,this.source.replace(By,(a,o)=>s1(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,l,d,f;for(o=0,l=this.source.length;o<l;o++)d=this.source.charAt(o),t[o]=d,n[o]=d,r[o]=d,a[o]=d,d==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",a[o+1]="A"):f==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",a[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,a[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fc=class{constructor(){oe(this,"_items");oe(this,"_hasAnchors");oe(this,"_cached");oe(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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Fy(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new Fy(e,r,this._items.map(a=>a.ruleId))}},Fy=class{constructor(e,t,n){oe(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
275
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},yp=class{constructor(e,t){this.languageId=e,this.tokenType=t}},yu,ZZ=(yu=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new o1(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new yp(n,r)}));this._defaultAttributes=new yp(t,8),this._embeddedLanguagesMatcher=new WZ(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?yu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(yu.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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!")}},oe(yu,"_NULL_SCOPE_METADATA",new yp(0,0)),oe(yu,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),yu),WZ=class{constructor(e){oe(this,"values");oe(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>s1(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Ly=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function p1(e,t,n,r,a,o,l,d){const f=t.content.length;let A=!1,m=-1;if(l){const _=$Z(e,t,n,r,a,o);a=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!A;){if(d!==0&&Date.now()-E>d)return new Ly(a,!0);g()}return new Ly(a,!1);function g(){const _=qZ(e,t,n,r,a,m);if(!_){o.produce(a,f),A=!0;return}const I=_.captureIndices,y=_.matchedRuleId,v=I&&I.length>0?I[0].end>r:!1;if(y===zZ){const R=a.getRule(e);o.produce(a,I[0].start),a=a.withContentNameScopesList(a.nameScopesList),Rl(e,t,n,a,o,R.endCaptures,I),o.produce(a,I[0].end);const D=a;if(a=a.parent,m=D.getAnchorPos(),!v&&D.getEnterPos()===r){a=D,o.produce(a,f),A=!0;return}}else{const R=e.getRule(y);o.produce(a,I[0].start);const D=a,x=R.getName(t.content,I),F=a.contentNameScopesList.pushAttributed(x,e);if(a=a.push(y,r,m,I[0].end===f,null,F,F),R instanceof kE){const b=R;Rl(e,t,n,a,o,b.beginCaptures,I),o.produce(a,I[0].end),m=I[0].end;const O=b.getContentName(t.content,I),w=F.pushAttributed(O,e);if(a=a.withContentNameScopesList(w),b.endHasBackReferences&&(a=a.withEndRule(b.getEndWithResolvedBackReferences(t.content,I))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(R instanceof gf){const b=R;Rl(e,t,n,a,o,b.beginCaptures,I),o.produce(a,I[0].end),m=I[0].end;const O=b.getContentName(t.content,I),w=F.pushAttributed(O,e);if(a=a.withContentNameScopesList(w),b.whileHasBackReferences&&(a=a.withEndRule(b.getWhileWithResolvedBackReferences(t.content,I))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(Rl(e,t,n,a,o,R.captures,I),o.produce(a,I[0].end),a=a.pop(),!v){a=a.safePop(),o.produce(a,f),A=!0;return}}I[0].end>r&&(r=I[0].end,n=!1)}}function $Z(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const d=[];for(let f=a;f;f=f.pop()){const A=f.getRule(e);A instanceof gf&&d.push({rule:A,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:A,findOptions:m}=JZ(f.rule,e,f.stack.endRule,n,r===l),E=A.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==A1){a=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Rl(e,t,n,f.stack,o,f.rule.whileCaptures,E.captureIndices),o.produce(f.stack,E.captureIndices[0].end),l=E.captureIndices[0].end,E.captureIndices[0].end>r&&(r=E.captureIndices[0].end,n=!1))}else{a=f.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function qZ(e,t,n,r,a,o){const l=QZ(e,t,n,r,a,o),d=e.getInjections();if(d.length===0)return l;const f=XZ(d,e,t,n,r,a,o);if(!f)return l;if(!l)return f;const A=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<A||f.priorityMatch&&m===A?f:l}function QZ(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:d,findOptions:f}=E1(l,e,a.endRule,n,r===o),A=d.findNextMatchSync(t,r,f);return A?{captureIndices:A.captureIndices,matchedRuleId:A.ruleId}:null}function XZ(e,t,n,r,a,o,l){let d=Number.MAX_VALUE,f=null,A,m=0;const E=o.contentNameScopesList.getScopeNames();for(let g=0,_=e.length;g<_;g++){const I=e[g];if(!I.matcher(E))continue;const y=t.getRule(I.ruleId),{ruleScanner:v,findOptions:R}=E1(y,t,null,r,a===l),D=v.findNextMatchSync(n,a,R);if(!D)continue;const x=D.captureIndices[0].start;if(!(x>=d)&&(d=x,f=D.captureIndices,A=D.ruleId,m=I.priority,d===a))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:A}:null}function E1(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function JZ(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Rl(e,t,n,r,a,o,l){if(o.length===0)return;const d=t.content,f=Math.min(o.length,l.length),A=[],m=l[0].end;for(let E=0;E<f;E++){const g=o[E];if(g===null)continue;const _=l[E];if(_.length===0)continue;if(_.start>m)break;for(;A.length>0&&A[A.length-1].endPos<=_.start;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop();if(A.length>0?a.produceFromScopes(A[A.length-1].scopes,_.start):a.produce(r,_.start),g.retokenizeCapturedWithRuleId){const y=g.getName(d,l),v=r.contentNameScopesList.pushAttributed(y,e),R=g.getContentName(d,l),D=v.pushAttributed(R,e),x=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,D),F=e.createOnigString(d.substring(0,_.end));p1(e,F,n&&_.start===0,_.start,x,a,!1,0),d1(F);continue}const I=g.getName(d,l);if(I!==null){const v=(A.length>0?A[A.length-1].scopes:r.contentNameScopesList).pushAttributed(I,e);A.push(new eW(v,_.end))}}for(;A.length>0;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop()}var eW=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function tW(e,t,n,r,a,o,l,d){return new rW(e,t,n,r,a,o,l,d)}function wy(e,t,n,r,a){const o=pf(t,_f),l=h1.getCompiledRuleId(n,r,a.repository);for(const d of o)e.push({debugSelector:t,matcher:d.matcher,ruleId:l,grammar:a,priority:d.priority})}function _f(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(nW(t[a],r))return n=a+1,!0;return!1})}function nW(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var rW=class{constructor(e,t,n,r,a,o,l,d){oe(this,"_rootId");oe(this,"_lastRuleId");oe(this,"_ruleId2desc");oe(this,"_includedGrammars");oe(this,"_grammarRepository");oe(this,"_grammar");oe(this,"_injections");oe(this,"_basicScopeAttributesProvider");oe(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=d,this._basicScopeAttributesProvider=new ZZ(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=My(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const f of Object.keys(a)){const A=pf(f,_f);for(const m of A)this._tokenTypeMatchers.push({matcher:m.matcher,type:a[f]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)wy(t,l,a[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const d=this.getExternalGrammar(l);if(d){const f=d.injectionSelector;f&&wy(t,f,d,this,d)}})}return t.sort((a,o)=>a.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=My(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=h1.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===GE.NULL){a=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=$s.set(0,A.languageId,A.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=Hl.createRootAndLookUpScopeName(g,E,this):_=Hl.createRoot("unknown",E),t=new GE(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
276
+ `;const o=this.createOnigString(e),l=o.content.length,d=new iW(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=p1(this,o,a,0,t,d,!0,r);return d1(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function My(e,t){return e=SZ(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Hl=class Hr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=(t==null?void 0:t.scopePath)??null;for(const o of n)a=Cp.push(a,o.scopeNames),r=new Hr(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Hr(null,new Cp(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Cp(null,t),l=r.themeProvider.themeMatch(o),d=Hr.mergeAttributes(n,a,l);return new Hr(null,o,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Hr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),$s.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Hr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Hr._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),d=Hr.mergeAttributes(t.tokenAttributes,a,l);return new Hr(t,o,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var a;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},Ar,GE=(Ar=class{constructor(t,n,r,a,o,l,d,f){oe(this,"_stackElementBrand");oe(this,"_enterPos");oe(this,"_anchorPos");oe(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=d,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(t){return t===null?!1:Ar._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Hl.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ar._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,d){return new Ar(this,t,n,r,a,o,l,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,a;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ar(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Hl.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Ar(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Hl.fromExtension(r,n.contentNameScopesList))}},oe(Ar,"NULL",new Ar(null,0,0,0,!1,null,null,null)),Ar),uW=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):pf(n,_f).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>pf(n,_f).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},iW=class{constructor(e,t,n,r){oe(this,"_emitBinaryTokens");oe(this,"_lineText");oe(this,"_tokens");oe(this,"_binaryTokens");oe(this,"_lastTokenEndIndex");oe(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(l)&&(a=$s.set(a,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=$s.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},aW=class{constructor(e,t){oe(this,"_grammars",new Map);oe(this,"_rawGrammars",new Map);oe(this,"_injectionGrammars",new Map);oe(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,tW(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},sW=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new aW(mf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(mf.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new uW(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new MZ(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(d=>this._loadSingleGrammar(d.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},jE=GE.NULL;const oW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Hc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Hc.prototype.normal={};Hc.prototype.property={};Hc.prototype.space=void 0;function g1(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Hc(n,r,t)}function VE(e){return e.toLowerCase()}class Ln{constructor(t,n){this.attribute=n,this.property=t}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let lW=0;const We=Oa(),zt=Oa(),_1=Oa(),_e=Oa(),Nt=Oa(),Hs=Oa(),Vn=Oa();function Oa(){return 2**++lW}const zE=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:zt,commaOrSpaceSeparated:Vn,commaSeparated:Hs,number:_e,overloadedBoolean:_1,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),vp=Object.keys(zE);class x4 extends Ln{constructor(t,n,r,a){let o=-1;if(super(t,n),Hy(this,"space",a),typeof r=="number")for(;++o<vp.length;){const l=vp[o];Hy(this,vp[o],(r&zE[l])===zE[l])}}}x4.prototype.defined=!0;function Hy(e,t,n){n&&(e[t]=n)}function co(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new x4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[VE(r)]=r,n[VE(o.attribute)]=r}return new Hc(t,n,e.space)}const N1=co({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:Nt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:_e,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:Nt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:zt,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function I1(e,t){return t in e?e[t]:t}function S1(e,t){return I1(e,t.toLowerCase())}const cW=co({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hs,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:_e,colSpan:null,content:null,contentEditable:zt,controls:We,controlsList:Nt,coords:_e|Hs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:_1,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:_e,hidden:We,high:_e,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,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:We,optimum:_e,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:_e,rowSpan:_e,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:zt,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:S1}),dW=co({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:Vn,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:Nt,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:Hs,g2:Hs,glyphName:Hs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:I1}),C1=co({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),y1=co({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:S1}),v1=co({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),fW=/[A-Z]/g,Py=/-[a-z]/g,AW=/^data[-\w.:]+$/i;function hW(e,t){const n=VE(t);let r=t,a=Ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Py,pW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Py.test(o)){let l=o.replace(fW,mW);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=x4}return new a(r,t)}function mW(e){return"-"+e.toLowerCase()}function pW(e){return e.charAt(1).toUpperCase()}const EW=g1([N1,cW,C1,y1,v1],"html"),R1=g1([N1,dW,C1,y1,v1],"svg"),Uy={}.hasOwnProperty;function gW(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const d=r.handlers;if(a&&Uy.call(a,e)){const f=String(a[e]);l=Uy.call(d,f)?d[f]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const _W=/["&'<>`]/g,NW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,SW=/[|\\{}()[\]^$+*?.]/g,ky=new WeakMap;function CW(e,t){if(e=e.replace(t.subset?yW(t.subset):_W,r),t.subset||t.escapeOnly)return e;return e.replace(NW,n).replace(IW,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function yW(e){let t=ky.get(e);return t||(t=vW(e),ky.set(e,t)),t}function vW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(SW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const RW=/[\dA-Fa-f]/;function DW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!RW.test(String.fromCharCode(t))?r:r+";"}const TW=/\d/;function xW(e,t,n){const r="&#"+String(e);return n&&t&&!TW.test(String.fromCharCode(t))?r:r+";"}const bW=["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"],Rp={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:"€"},BW=["cent","copy","divide","gt","lt","not","para","times"],D1={}.hasOwnProperty,KE={};let h0;for(h0 in Rp)D1.call(Rp,h0)&&(KE[Rp[h0]]=h0);const OW=/[^\dA-Za-z]/;function FW(e,t,n,r){const a=String.fromCharCode(e);if(D1.call(KE,a)){const o=KE[a],l="&"+o;return n&&bW.includes(o)&&!BW.includes(o)&&(!r||t&&t!==61&&OW.test(String.fromCharCode(t)))?l:l+";"}return""}function LW(e,t,n){let r=DW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=FW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=xW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Ps(e,t){return CW(e,Object.assign({format:LW},t))}const wW=/^>|^->|<!--|-->|--!>|<!-$/g,MW=[">"],HW=["<",">"];function PW(e,t,n,r){return r.settings.bogusComments?"<?"+Ps(e.value,Object.assign({},r.settings.characterReferences,{subset:MW}))+">":"<!--"+e.value.replace(wW,a)+"-->";function a(o){return Ps(o,Object.assign({},r.settings.characterReferences,{subset:HW}))}}function UW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Gy(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function kW(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function GW(e){return e.join(" ").trim()}const jW=/[ \t\n\f\r]/g;function b4(e){return typeof e=="object"?e.type==="text"?jy(e.value):!1:jy(e)}function jy(e){return e.replace(jW,"")===""}const $t=x1(1),T1=x1(-1),VW=[];function x1(e){return t;function t(n,r,a){const o=n?n.children:VW;let l=(r||0)+e,d=o[l];if(!a)for(;d&&b4(d);)l+=e,d=o[l];return d}}const zW={}.hasOwnProperty;function b1(e){return t;function t(n,r,a){return zW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const B4=b1({body:YW,caption:Dp,colgroup:Dp,dd:qW,dt:$W,head:Dp,html:KW,li:WW,optgroup:QW,option:XW,p:ZW,rp:Vy,rt:Vy,tbody:e$,td:zy,tfoot:t$,th:zy,thead:JW,tr:n$});function Dp(e,t,n){const r=$t(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&b4(r.value.charAt(0)))}function KW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function YW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function ZW(e,t,n){const r=$t(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function WW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="li"}function $W(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function qW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Vy(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function QW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function XW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function JW(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function e$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function t$(e,t,n){return!$t(n,t)}function n$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function zy(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const r$=b1({body:a$,colgroup:s$,head:i$,html:u$,tbody:o$});function u$(e){const t=$t(e,-1);return!t||t.type!=="comment"}function i$(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function a$(e){const t=$t(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&b4(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function s$(e,t,n){const r=T1(n,t),a=$t(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&B4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function o$(e,t,n){const r=T1(n,t),a=$t(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&B4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const m0={name:[[`
277
+ \f\r &/=>`.split(""),`
278
+ \f\r "&'/=>\``.split("")],[`\0
279
+ \f\r "&'/<=>`.split(""),`\0
280
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
281
+ \f\r &>`.split(""),`\0
282
+ \f\r "&'<=>\``.split("")],[`\0
283
+ \f\r "&'<=>\``.split(""),`\0
284
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function l$(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;a.space==="html"&&e.tagName==="svg"&&(r.schema=R1);const A=c$(r,e.properties),m=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,m&&(l=!1),(A||!o||!r$(e,t,n))&&(d.push("<",e.tagName,A?" "+A:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(f=A.charAt(A.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(m),!l&&(!o||!B4(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function c$(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=d$(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function d$(e,t,n){const r=hW(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,d;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const f=Ps(r.attribute,Object.assign({},e.settings.characterReferences,{subset:m0.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?kW:GW)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Ps(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:m0.unquoted[a][o]}))),d!==n&&(e.settings.quoteSmart&&Gy(n,l)>Gy(n,e.alternative)&&(l=e.alternative),d=l+Ps(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?m0.single:m0.double)[a][o],attribute:!0}))+l),f+(d&&"="+d))}const f$=["<","&"];function B1(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ps(e.value,Object.assign({},r.settings.characterReferences,{subset:f$}))}function A$(e,t,n,r){return r.settings.allowDangerousHtml?e.value:B1(e,t,n,r)}function h$(e,t,n,r){return r.all(e)}const m$=gW("type",{invalid:p$,unknown:E$,handlers:{comment:PW,doctype:UW,element:l$,raw:A$,root:h$,text:B1}});function p$(e){throw new Error("Expected node, not `"+e+"`")}function E$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const g$={},_$={},N$=[];function I$(e,t){const n=t||g$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:S$,all:C$,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||oW,characterReferences:n.characterReferences||_$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?R1:EW,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function S$(e,t,n){return m$(e,t,n,this)}function C$(e){const t=[],n=e&&e.children||N$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Nf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function ma(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function y$(e){return Array.isArray(e)?e:[e]}async function O1(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function O4(e){return!e||["plaintext","txt","text","plain"].includes(e)}function F1(e){return e==="ansi"||O4(e)}function F4(e){return e==="none"}function L1(e){return F4(e)}function w1(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function rA(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let l=0;l<n.length;l+=2){const d=t?n[l]+(n[l+1]||""):n[l];a.push([d,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return a}function v$(e){const t=rA(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const d of t){if(o<d.length)break;o-=d.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let d=0;d<a;d++)l+=t[d].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}function R$(e,t,n){const r=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(o[1]);if(!n)return Array.from(r);const a=n.getBundledLanguages();return Array.from(r).filter(o=>o&&a[o])}function D$(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function T$(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,d)=>l-d);return o.length?D$(a,o):a})):e}function x$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>M1(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),d={};return o.forEach((f,A)=>{for(const m of l){const E=f[m]||"inherit";if(A===0&&r)d[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[A]+(m==="color"?"":g);d[_]=E}}}),a.htmlStyle=d,a}function M1(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&vu.Italic&&(t["font-style"]="italic"),e.fontStyle&vu.Bold&&(t["font-weight"]="bold"),e.fontStyle&vu.Underline&&(t["text-decoration"]="underline")),t}function b$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const H1=new WeakMap;function uA(e,t){H1.set(e,t)}function Ac(e){return H1.get(e)}class fo{constructor(...t){oe(this,"_stacks",{});oe(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new fo(Object.fromEntries(y$(n).map(r=>[r,jE])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return B$(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function B$(e){const t=[],n=new Set;function r(a){var l;if(n.has(a))return;n.add(a);const o=(l=a==null?void 0:a.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function O$(e,t){if(!(e instanceof fo))throw new rn("Invalid grammar state");return e.getInternalStack(t)}function F$(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new rn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const d=a.lines[l.line];if(d===void 0)throw new rn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>d.length)throw new rn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=v$(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));L$(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const a=t(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return T$(n,a)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),a=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(a.length!==r.converter.lines.length)throw new rn(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(E,g,_,I){const y=a[E];let v="",R=-1,D=-1;if(g===0&&(R=0),_===0&&(D=0),_===Number.POSITIVE_INFINITY&&(D=y.children.length),R===-1||D===-1)for(let F=0;F<y.children.length;F++)v+=P1(y.children[F]),R===-1&&v.length===g&&(R=F+1),D===-1&&v.length===_&&(D=F+1);if(R===-1)throw new rn(`Failed to find start index for decoration ${JSON.stringify(I.start)}`);if(D===-1)throw new rn(`Failed to find end index for decoration ${JSON.stringify(I.end)}`);const x=y.children.slice(R,D);if(!I.alwaysWrap&&x.length===y.children.length)d(y,I,"line");else if(!I.alwaysWrap&&x.length===1&&x[0].type==="element")d(x[0],I,"token");else{const F={type:"element",tagName:"span",properties:{},children:x};d(F,I,"wrapper"),y.children.splice(R,x.length,F)}}function l(E,g){a[E]=d(a[E],g,"line")}function d(E,g,_){var v;const I=g.properties||{},y=g.transform||(R=>R);return E.tagName=g.tagName||"span",E.properties={...E.properties,...I,class:E.properties.class},(v=g.properties)!=null&&v.class&&w1(E,g.properties.class),E=y(E,_)||E,E}const f=[],A=r.decorations.sort((E,g)=>g.start.offset-E.start.offset||E.end.offset-g.end.offset);for(const E of A){const{start:g,end:_}=E;if(g.line===_.line)o(g.line,g.character,_.character,E);else if(g.line<_.line){o(g.line,g.character,Number.POSITIVE_INFINITY,E);for(let I=g.line+1;I<_.line;I++)f.unshift(()=>l(I,E));o(_.line,0,_.character,E)}}f.forEach(E=>E())}}}function L$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new rn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,d=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,f=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(o||l||d||f){if(o&&l||d&&f)continue;throw new rn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function P1(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(P1).join(""):""}const w$=[F$()];function If(e){return[...e.transformers||[],...w$]}var pa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Tp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function M$(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Ky(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function H$(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Tp[r]&&t.push({type:"setDecoration",value:Tp[r]});else if(r<=29){const a=Tp[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:pa[r-30]}});else if(r===38){const a=Ky(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:pa[r-40]}});else if(r===48){const a=Ky(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:pa[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:pa[r-100+8]}})}return t}function P$(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=M$(r,o),d=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(d.length>0&&a.push({value:d,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=H$(l.sequence);for(const A of f)A.type==="resetAll"?(e=null,t=null,n.clear()):A.type==="resetForegroundColor"?e=null:A.type==="resetBackgroundColor"?t=null:A.type==="resetDecoration"&&n.delete(A.value);for(const A of f)A.type==="setForegroundColor"?e=A.value:A.type==="setBackgroundColor"?t=A.value:A.type==="setDecoration"&&n.add(A.value)}o=l.position}while(o<r.length);return a}}}var U$={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 k$(e=U$){function t(d){return e[d]}function n(d){return`#${d.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let A=0;A<pa.length;A++)r.push(t(pa[A]));let d=[0,95,135,175,215,255];for(let A=0;A<6;A++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([d[A],d[m],d[E]]));let f=8;for(let A=0;A<24;A++,f+=10)r.push(n([f,f,f]));return r}function o(d){return a()[d]}function l(d){switch(d.type){case"named":return t(d.name);case"rgb":return n(d.rgb);case"table":return o(d.index)}}return{value:l}}function G$(e,t,n){const r=Nf(e,n),a=rA(t),o=k$(Object.fromEntries(pa.map(d=>{var f;return[d,(f=e.colors)==null?void 0:f[`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`]]}))),l=P$();return a.map(d=>l.parse(d[0]).map(f=>{let A,m;f.decorations.has("reverse")?(A=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(A=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),A=ma(A,r),m=ma(m,r),f.decorations.has("dim")&&(A=j$(A));let E=vu.None;return f.decorations.has("bold")&&(E|=vu.Bold),f.decorations.has("italic")&&(E|=vu.Italic),f.decorations.has("underline")&&(E|=vu.Underline),{content:f.value,offset:d[1],color:A,bgColor:m,fontStyle:E}}))}function j$(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function L4(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(O4(r)||F4(a))return rA(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return G$(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new rn(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new rn(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return z$(t,d,o,l,n)}function V$(...e){if(e.length===2)return Ac(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(O4(a)||F4(o))throw new rn("Plain language does not have grammar state");if(a==="ansi")throw new rn("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(a);return new fo(Sf(n,f,l,d,r).stateStack,f.name,l.name)}function z$(e,t,n,r,a){const o=Sf(e,t,n,r,a),l=new fo(Sf(e,t,n,r,a).stateStack,t.name,n.name);return uA(o.tokens,l),o.tokens}function Sf(e,t,n,r,a){const o=Nf(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:d=500}=a,f=rA(e);let A=a.grammarState?O$(a.grammarState,n.name)??jE:a.grammarContextCode!=null?Sf(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:jE,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[I,y]=f[g];if(I===""){m=[],E.push([]);continue}if(l>0&&I.length>=l){m=[],E.push([{content:I,offset:y,color:"",fontStyle:0}]);continue}let v,R,D;a.includeExplanation&&(v=t.tokenizeLine(I,A,d),R=v.tokens,D=0);const x=t.tokenizeLine2(I,A,d),F=x.tokens.length/2;for(let b=0;b<F;b++){const O=x.tokens[2*b],w=b+1<F?x.tokens[2*b+2]:I.length;if(O===w)continue;const P=x.tokens[2*b+1],U=ma(r[$s.getForeground(P)],o),j=$s.getFontStyle(P),fe={content:I.substring(O,w),offset:y+O,color:U,fontStyle:j};if(a.includeExplanation){const se=[];if(a.includeExplanation!=="scopeName")for(const $ of n.settings){let J;switch(typeof $.scope){case"string":J=$.scope.split(/,/).map(G=>G.trim());break;case"object":J=$.scope;break;default:continue}se.push({settings:$,selectors:J.map(G=>G.split(/ /))})}fe.explanation=[];let de=0;for(;O+de<w;){const $=R[D],J=I.substring($.startIndex,$.endIndex);de+=J.length,fe.explanation.push({content:J,scopes:a.includeExplanation==="scopeName"?K$($.scopes):Y$(se,$.scopes)}),D+=1}}m.push(fe)}E.push(m),m=[],A=x.ruleStack}return{tokens:E,stateStack:A}}function K$(e){return e.map(t=>({scopeName:t}))}function Y$(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:W$(e,o,t.slice(0,r))}}return n}function Yy(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Z$(e,t,n){if(!Yy(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Yy(e[r],n[a])&&(r-=1),a-=1;return r===-1}function W$(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(Z$(l,t,n)){r.push(o);break}return r}function U1(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),a=r.map(f=>{const A=L4(e,t,{...n,theme:f.theme}),m=Ac(A),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:A,state:m,theme:E}}),o=$$(...a.map(f=>f.tokens)),l=o[0].map((f,A)=>f.map((m,E)=>{const g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=m.explanation),o.forEach((_,I)=>{const{content:y,explanation:v,offset:R,...D}=_[A][E];g.variants[r[I].color]=D}),g})),d=a[0].state?new fo(Object.fromEntries(a.map(f=>{var A;return[f.theme,(A=f.state)==null?void 0:A.getInternalStack(f.theme)]})),a[0].state.lang):void 0;return d&&uA(l,d),l}function $$(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,A)=>f.push(o[A]));const l=a.map(()=>0),d=a.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(A=>A.content.length));for(let A=0;A<n;A++){const m=d[A];m.content.length===f?(o[A].push(m),l[A]+=1,d[A]=a[A][l[A]]):(o[A].push({...m,content:m.content.slice(0,f)}),d[A]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function Cf(e,t,n){let r,a,o,l,d,f;if("themes"in n){const{defaultColor:A="light",cssVariablePrefix:m="--shiki-"}=n,E=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,R)=>v.color===A?-1:R.color===A?1:0);if(E.length===0)throw new rn("`themes` option must not be empty");const g=U1(e,t,n);if(f=Ac(g),A&&!E.find(v=>v.color===A))throw new rn(`\`themes\` option must contain the defaultColor key \`${A}\``);const _=E.map(v=>e.getTheme(v.theme)),I=E.map(v=>v.color);o=g.map(v=>v.map(R=>x$(R,I,m,A))),f&&uA(o,f);const y=E.map(v=>Nf(v.theme,n));a=E.map((v,R)=>(R===0&&A?"":`${m+v.color}:`)+(ma(_[R].fg,y[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&A?"":`${m+v.color}-bg:`)+(ma(_[R].bg,y[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,d=A?void 0:[a,r].join(";")}else if("theme"in n){const A=Nf(n.theme,n);o=L4(e,t,n);const m=e.getTheme(n.theme);r=ma(m.bg,A),a=ma(m.fg,A),l=m.name,f=Ac(o)}else throw new rn("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:d,grammarState:f}}function yf(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>yf(e,a,o),codeToTokens:(a,o)=>Cf(e,a,o)}){var _,I;let a=t;for(const y of If(n))a=((_=y.preprocess)==null?void 0:_.call(r,a,n))||a;let{tokens:o,fg:l,bg:d,themeName:f,rootStyle:A,grammarState:m}=Cf(e,a,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=Q$(o):E==="never"&&(o=X$(o));const g={...r,get source(){return a}};for(const y of If(n))o=((I=y.tokens)==null?void 0:I.call(g,o))||o;return q$(o,{...n,fg:l,bg:d,themeName:f,rootStyle:A},g,m)}function q$(e,t,n,r=Ac(e)){var I,y,v;const a=If(t),o=[],l={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=t;let A={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...f!==!1&&f!=null?{tabindex:f.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([R])=>!R.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:o};const E=[],g={...n,structure:d,addClassToHast:w1,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return A},get code(){return m},get lines(){return E}};if(e.forEach((R,D)=>{var b,O;D&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
285
+ `}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},F=0;for(const w of R){let P={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const U=b$(w.htmlStyle||M1(w));U&&(P.properties.style=U);for(const j of a)P=((b=j==null?void 0:j.span)==null?void 0:b.call(g,P,D+1,F,x,w))||P;d==="inline"?l.children.push(P):d==="classic"&&x.children.push(P),F+=w.content.length}if(d==="classic"){for(const w of a)x=((O=w==null?void 0:w.line)==null?void 0:O.call(g,x,D+1))||x;E.push(x),o.push(x)}}),d==="classic"){for(const R of a)m=((I=R==null?void 0:R.code)==null?void 0:I.call(g,m))||m;A.children.push(m);for(const R of a)A=((y=R==null?void 0:R.pre)==null?void 0:y.call(g,A))||A;l.children.push(A)}let _=l;for(const R of a)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&uA(_,r),_}function Q$(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&vu.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(f?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function X$(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,l]=r;if(!a&&!l)return n;const d=[{...n,offset:n.offset+a.length,content:o}];return a&&d.unshift({content:a,offset:n.offset}),l&&d.push({content:l,offset:n.offset+a.length+o.length}),d}))}const J$=I$;function eq(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,d)=>yf(e,l,d),codeToTokens:(l,d)=>Cf(e,l,d)};let a=J$(yf(e,t,n,r));for(const l of If(n))a=((o=l.postprocess)==null?void 0:o.call(r,a,n))||a;return a}const Zy={light:"#333333",dark:"#bbbbbb"},Wy={light:"#fffffe",dark:"#1e1e1e"},$y="__shiki_resolved";function w4(e){var d,f,A,m,E;if(e!=null&&e[$y])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const g=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(d=g==null?void 0:g.settings)!=null&&d.foreground&&(r=g.settings.foreground),(f=g==null?void 0:g.settings)!=null&&f.background&&(n=g.settings.background),!r&&((A=t==null?void 0:t.colors)!=null&&A["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((m=t==null?void 0:t.colors)!=null&&m["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Zy.light:Zy.dark),n||(n=t.type==="light"?Wy.light:Wy.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function l(g){var I;if(o.has(g))return o.get(g);a+=1;const _=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(I=t.colorReplacements)!=null&&I[`#${_}`]?l(g):(o.set(g,_),_)}t.settings=t.settings.map(g=>{var v,R;const _=((v=g.settings)==null?void 0:v.foreground)&&!g.settings.foreground.startsWith("#"),I=((R=g.settings)==null?void 0:R.background)&&!g.settings.background.startsWith("#");if(!_&&!I)return g;const y={...g,settings:{...g.settings}};if(_){const D=l(g.settings.foreground);t.colorReplacements[D]=g.settings.foreground,y.settings.foreground=D}if(I){const D=l(g.settings.background);t.colorReplacements[D]=g.settings.background,y.settings.background=D}return y});for(const g of Object.keys(t.colors||{}))if((g==="editor.foreground"||g==="editor.background"||g.startsWith("terminal.ansi"))&&!((E=t.colors[g])!=null&&E.startsWith("#"))){const _=l(t.colors[g]);t.colorReplacements[_]=t.colors[g],t.colors[g]=_}return Object.defineProperty(t,$y,{enumerable:!1,writable:!1,value:!0}),t}async function k1(e){return Array.from(new Set((await Promise.all(e.filter(t=>!F1(t)).map(async t=>await O1(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function G1(e){return(await Promise.all(e.map(async n=>L1(n)?null:w4(await O1(n))))).filter(n=>!!n)}let tq=3;function nq(e,t=3){t>tq||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Os=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class rq extends sW{constructor(n,r,a,o={}){super(n);oe(this,"_resolvedThemes",new Map);oe(this,"_resolvedGrammars",new Map);oe(this,"_langMap",new Map);oe(this,"_langGraph",new Map);oe(this,"_textmateThemeCache",new WeakMap);oe(this,"_loadedThemesCache",null);oe(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=a,this._alias=o,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=w4(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=mf.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new Os(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,d,f,A;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(m=>{var E;return(E=m.embeddedLangsLazy)==null?void 0:E.includes(n.name)}));this._resolver.addLanguage(n);const a={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,a);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(m=>{this._alias[m]=n.name}),this._loadedLanguagesCache=null,r.size)for(const m of r)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(d=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||d.delete(m.scopeName),(A=(f=this._syncRegistry)==null?void 0:f._grammars)==null||A.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),a=r.filter(([o,l])=>!l);if(a.length){const o=r.filter(([l,d])=>{var f;return d&&((f=d.embeddedLangs)==null?void 0:f.some(A=>a.map(([m])=>m).includes(A)))}).filter(l=>!a.includes(l));throw new Os(`Missing languages ${a.map(([l])=>`\`${l}\``).join(", ")}, required by ${o.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[o,l]of r)this._resolver.addLanguage(l);for(const[o,l]of r)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class uq{constructor(t,n){oe(this,"_langs",new Map);oe(this,"_scopeToLang",new Map);oe(this,"_injections",new Map);oe(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Nl=0;function iq(e){Nl+=1,e.warnings!==!1&&Nl>=10&&Nl%10===0&&console.warn(`[Shiki] ${Nl} 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 t=!1;if(!e.engine)throw new Os("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(w4),a=new uq(e.engine,n),o=new rq(a,r,n,e.langAlias);let l;function d(D){v();const x=o.getGrammar(typeof D=="string"?D:D.name);if(!x)throw new Os(`Language \`${D}\` not found, you may need to load it first`);return x}function f(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const x=o.getTheme(D);if(!x)throw new Os(`Theme \`${D}\` not found, you may need to load it first`);return x}function A(D){v();const x=f(D);l!==D&&(o.setTheme(x),l=D);const F=o.getColorMap();return{theme:x,colorMap:F}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...D){v(),o.loadLanguages(D.flat(1))}async function _(...D){return g(await k1(D))}function I(...D){v();for(const x of D.flat(1))o.loadTheme(x)}async function y(...D){return v(),I(await G1(D))}function v(){if(t)throw new Os("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),Nl-=1)}return{setTheme:A,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:y,loadThemeSync:I,dispose:R,[Symbol.dispose]:R}}async function aq(e){e.engine||nq("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([G1(e.themes||[]),k1(e.langs||[]),e.engine]);return iq({...e,themes:t,langs:n,engine:r})}async function sq(e){const t=await aq(e);return{getLastGrammarState:(...n)=>V$(t,...n),codeToTokensBase:(n,r)=>L4(t,n,r),codeToTokensWithThemes:(n,r)=>U1(t,n,r),codeToTokens:(n,r)=>Cf(t,n,r),codeToHast:(n,r)=>yf(t,n,r),codeToHtml:(n,r)=>eq(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function oq(e){const t=e.langs,n=e.themes,r=e.engine;async function a(o){function l(E){if(typeof E=="string"){if(F1(E))return[];const g=t[E];if(!g)throw new rn(`Language \`${E}\` is not included in this bundle. You may want to load it from external source.`);return g}return E}function d(E){if(L1(E))return"none";if(typeof E=="string"){const g=n[E];if(!g)throw new rn(`Theme \`${E}\` is not included in this bundle. You may want to load it from external source.`);return g}return E}const f=(o.themes??[]).map(E=>d(E)),A=(o.langs??[]).map(E=>l(E)),m=await sq({engine:o.engine??r(),...o,themes:f,langs:A});return{...m,loadLanguage(...E){return m.loadLanguage(...E.map(l))},loadTheme(...E){return m.loadTheme(...E.map(d))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function lq(e){let t;async function n(r={}){if(t){const a=await t;return await Promise.all([a.loadTheme(...r.themes||[]),a.loadLanguage(...r.langs||[])]),a}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function cq(e,t){const n=lq(e);async function r(a,o){var f;const l=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),d=await((f=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:f.call(t,a,o.lang,l));return d&&await l.loadLanguage(...d),l}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,o){return(await r(a,o)).codeToHtml(a,o)},async codeToHast(a,o){return(await r(a,o)).codeToHast(a,o)},async codeToTokens(a,o){return(await r(a,o)).codeToTokens(a,o)},async codeToTokensBase(a,o){return(await r(a,o)).codeToTokensBase(a,o)},async codeToTokensWithThemes(a,o){return(await r(a,o)).codeToTokensWithThemes(a,o)},async getLastGrammarState(a,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(a,o)}}}const j1=[{id:"abap",name:"ABAP",import:()=>L(()=>import("./abap-CuzaboPy.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>L(()=>import("./actionscript-3-BWZb6ht_.js"),[])},{id:"ada",name:"Ada",import:()=>L(()=>import("./ada-lbGJHcqN.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>L(()=>import("./angular-html-DMNHImpm.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>L(()=>import("./angular-ts-eB8LWD2C.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>L(()=>import("./apache-ClrZ-IwE.js"),[])},{id:"apex",name:"Apex",import:()=>L(()=>import("./apex-DHEJMXht.js"),[])},{id:"apl",name:"APL",import:()=>L(()=>import("./apl-DSpMDkz7.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>L(()=>import("./applescript-d8h0XnfP.js"),[])},{id:"ara",name:"Ara",import:()=>L(()=>import("./ara-D11-aFNM.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>L(()=>import("./asciidoc-BPN7z6_Y.js"),[])},{id:"asm",name:"Assembly",import:()=>L(()=>import("./asm-B-o3LjfJ.js"),[])},{id:"astro",name:"Astro",import:()=>L(()=>import("./astro-BEfdsCb3.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>L(()=>import("./awk-DFufGi5b.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>L(()=>import("./ballerina-DCKmv_4D.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>L(()=>import("./bat-9J6oqHce.js"),[])},{id:"beancount",name:"Beancount",import:()=>L(()=>import("./beancount-CJ6EEQ2V.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>L(()=>import("./berry-CufD37jc.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>L(()=>import("./bibtex-B5xtV7zU.js"),[])},{id:"bicep",name:"Bicep",import:()=>L(()=>import("./bicep-B-_DnH9T.js"),[])},{id:"blade",name:"Blade",import:()=>L(()=>import("./blade-jtwiscur.js"),__vite__mapDeps([13,14,1,2,3,7,8,15,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>L(()=>import("./bsl-BXaZRMg3.js"),__vite__mapDeps([16,17]))},{id:"c",name:"C",import:()=>L(()=>import("./c-Du_P13ro.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>L(()=>import("./cadence-BhCOhF7G.js"),[])},{id:"cairo",name:"Cairo",import:()=>L(()=>import("./cairo-DbSVSKxu.js"),__vite__mapDeps([18,19]))},{id:"clarity",name:"Clarity",import:()=>L(()=>import("./clarity-D72Djq1u.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>L(()=>import("./clojure-I1vGaenB.js"),[])},{id:"cmake",name:"CMake",import:()=>L(()=>import("./cmake-C07pmjNf.js"),[])},{id:"cobol",name:"COBOL",import:()=>L(()=>import("./cobol-DLiQ7VlT.js"),__vite__mapDeps([20,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>L(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>L(()=>import("./codeql-TbzFAQVx.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>L(()=>import("./coffee-CN9rYqj2.js"),__vite__mapDeps([21,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>L(()=>import("./common-lisp-0v_W_vIl.js"),[])},{id:"coq",name:"Coq",import:()=>L(()=>import("./coq-DqPPCFWZ.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>L(()=>import("./cpp-D6jLj3ac.js"),__vite__mapDeps([22,23,24,25,15]))},{id:"crystal",name:"Crystal",import:()=>L(()=>import("./crystal-CSXto_ug.js"),__vite__mapDeps([26,1,2,3,15,25,27]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>L(()=>import("./csharp-t9jp2bdZ.js"),[])},{id:"css",name:"CSS",import:()=>L(()=>import("./css-6ydISZ1j.js"),[])},{id:"csv",name:"CSV",import:()=>L(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>L(()=>import("./cue-DZa-IHfU.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>L(()=>import("./cypher-B8QFFMEI.js"),[])},{id:"d",name:"D",import:()=>L(()=>import("./d-BWEIE2mf.js"),[])},{id:"dart",name:"Dart",import:()=>L(()=>import("./dart-Bc9cAHms.js"),[])},{id:"dax",name:"DAX",import:()=>L(()=>import("./dax-B4O06LmT.js"),[])},{id:"desktop",name:"Desktop",import:()=>L(()=>import("./desktop-C480DKyb.js"),[])},{id:"diff",name:"Diff",import:()=>L(()=>import("./diff-7a-uGD01.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>L(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>L(()=>import("./dotenv-RqsQB2BX.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>L(()=>import("./dream-maker-CwZzURTK.js"),[])},{id:"edge",name:"Edge",import:()=>L(()=>import("./edge-7WOHoDwQ.js"),__vite__mapDeps([28,11,1,2,3,14]))},{id:"elixir",name:"Elixir",import:()=>L(()=>import("./elixir-C8UL7p8J.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>L(()=>import("./elm-BVJIbDWr.js"),__vite__mapDeps([30,24,25]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>L(()=>import("./emacs-lisp-BGJzjoMF.js"),[])},{id:"erb",name:"ERB",import:()=>L(()=>import("./erb-2bVwkg7V.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,15,34,11,35,36,22,23,24,25,27,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>L(()=>import("./erlang-Buh6fjeB.js"),[])},{id:"fennel",name:"Fennel",import:()=>L(()=>import("./fennel-BN5cw1dr.js"),[])},{id:"fish",name:"Fish",import:()=>L(()=>import("./fish-BIU4F8Lx.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>L(()=>import("./fluent-DPdCYVuL.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>L(()=>import("./fortran-fixed-form-DMTTIQFJ.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>L(()=>import("./fortran-free-form-FZM7PgI4.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>L(()=>import("./fsharp-B93pd7q9.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>L(()=>import("./gdresource-I9Onfmy0.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>L(()=>import("./gdscript-E0a2itvD.js"),[])},{id:"gdshader",name:"GDShader",import:()=>L(()=>import("./gdshader-C8KBts9d.js"),[])},{id:"genie",name:"Genie",import:()=>L(()=>import("./genie-CZ1jFyQ7.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>L(()=>import("./gherkin-B-23jXpc.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>L(()=>import("./git-commit-COHn4upB.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>L(()=>import("./git-rebase-D7M3XCeK.js"),__vite__mapDeps([48,27]))},{id:"gleam",name:"Gleam",import:()=>L(()=>import("./gleam-CFlCaHJ1.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>L(()=>import("./glimmer-js-DTuRZoQB.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>L(()=>import("./glimmer-ts-BGh34NOZ.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>L(()=>import("./glsl-D6Vaizag.js"),__vite__mapDeps([24,25]))},{id:"gnuplot",name:"Gnuplot",import:()=>L(()=>import("./gnuplot-DwPOQrla.js"),[])},{id:"go",name:"Go",import:()=>L(()=>import("./go-DSI44sMb.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>L(()=>import("./graphql-CzqHVaah.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>L(()=>import("./groovy-DnUZ9V9w.js"),[])},{id:"hack",name:"Hack",import:()=>L(()=>import("./hack-BfoaVUmQ.js"),__vite__mapDeps([51,1,2,3,15]))},{id:"haml",name:"Ruby Haml",import:()=>L(()=>import("./haml-BjHfNtf2.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>L(()=>import("./handlebars-DN1vFC8Y.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>L(()=>import("./haskell-C97r5ta3.js"),[])},{id:"haxe",name:"Haxe",import:()=>L(()=>import("./haxe-BVnfiMDc.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>L(()=>import("./hcl-BRpPFe2i.js"),[])},{id:"hjson",name:"Hjson",import:()=>L(()=>import("./hjson-Bgmt9vRU.js"),[])},{id:"hlsl",name:"HLSL",import:()=>L(()=>import("./hlsl-DgLWmsUM.js"),[])},{id:"html",name:"HTML",import:()=>L(()=>import("./html-DQt1crSz.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>L(()=>import("./html-derivative-OoyioBIu.js"),__vite__mapDeps([14,1,2,3]))},{id:"http",name:"HTTP",import:()=>L(()=>import("./http-B1MEeU_C.js"),__vite__mapDeps([53,27,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>L(()=>import("./hxml-BYnPWQ3Z.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>L(()=>import("./hy--6ePOT02.js"),[])},{id:"imba",name:"Imba",import:()=>L(()=>import("./imba-ZOHZ3W7h.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>L(()=>import("./ini-m1-xr6K8.js"),[])},{id:"java",name:"Java",import:()=>L(()=>import("./java-DzEvymKG.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>L(()=>import("./javascript-DFxyEsuO.js"),[])},{id:"jinja",name:"Jinja",import:()=>L(()=>import("./jinja-CbuI_e8q.js"),__vite__mapDeps([56,1,2,3]))},{id:"jison",name:"Jison",import:()=>L(()=>import("./jison-BThBLrI1.js"),__vite__mapDeps([57,2]))},{id:"json",name:"JSON",import:()=>L(()=>import("./json-BLmTiKMJ.js"),[])},{id:"json5",name:"JSON5",import:()=>L(()=>import("./json5-C5z8RDkF.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>L(()=>import("./jsonc-CuA0FkKk.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>L(()=>import("./jsonl-CBcFDUab.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>L(()=>import("./jsonnet-CCBwdCM5.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>L(()=>import("./jssm-BtZDPN4U.js"),[])},{id:"jsx",name:"JSX",import:()=>L(()=>import("./jsx-Dog42FfX.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>L(()=>import("./julia-QW6AWql5.js"),__vite__mapDeps([58,22,23,24,25,15,19,2,59]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>L(()=>import("./kotlin-MsGODAH1.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>L(()=>import("./kusto-BEWisg9D.js"),[])},{id:"latex",name:"LaTeX",import:()=>L(()=>import("./latex-D6g4IvIb.js"),__vite__mapDeps([60,61,59]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>L(()=>import("./lean-Bsgk112v.js"),[])},{id:"less",name:"Less",import:()=>L(()=>import("./less-CL8eqPyx.js"),[])},{id:"liquid",name:"Liquid",import:()=>L(()=>import("./liquid-DwnqW0Hw.js"),__vite__mapDeps([62,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>L(()=>import("./llvm-CQsJUk-H.js"),[])},{id:"log",name:"Log file",import:()=>L(()=>import("./log-DnFCEHlQ.js"),[])},{id:"logo",name:"Logo",import:()=>L(()=>import("./logo-CkBIg-lq.js"),[])},{id:"lua",name:"Lua",import:()=>L(()=>import("./lua-DgKrCl_t.js"),__vite__mapDeps([37,25]))},{id:"luau",name:"Luau",import:()=>L(()=>import("./luau-CqbnzJ-x.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>L(()=>import("./make-CSWLD5xG.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>L(()=>import("./markdown-CfdnVo6U.js"),[])},{id:"marko",name:"Marko",import:()=>L(()=>import("./marko-Ddcey6ql.js"),__vite__mapDeps([63,3,64,5,2]))},{id:"matlab",name:"MATLAB",import:()=>L(()=>import("./matlab-LZB065En.js"),[])},{id:"mdc",name:"MDC",import:()=>L(()=>import("./mdc-BSBcOUr9.js"),__vite__mapDeps([65,42,38,14,1,2,3]))},{id:"mdx",name:"MDX",import:()=>L(()=>import("./mdx-B_I5quxp.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>L(()=>import("./mermaid-CXyZL9PL.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>L(()=>import("./mipsasm-BwEeJ4dY.js"),[])},{id:"mojo",name:"Mojo",import:()=>L(()=>import("./mojo-DHZoLXvC.js"),[])},{id:"move",name:"Move",import:()=>L(()=>import("./move-_bK4LppZ.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>L(()=>import("./narrat-CElRTuuq.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>L(()=>import("./nextflow--CXHmARm.js"),[])},{id:"nginx",name:"Nginx",import:()=>L(()=>import("./nginx-C1Yc5-eE.js"),__vite__mapDeps([66,37,25]))},{id:"nim",name:"Nim",import:()=>L(()=>import("./nim-CuWg7p6V.js"),__vite__mapDeps([67,25,1,2,3,7,8,24,42]))},{id:"nix",name:"Nix",import:()=>L(()=>import("./nix-C-iLU9M_.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>L(()=>import("./nushell-BsWK4Erq.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>L(()=>import("./objective-c-JQgEzMhr.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>L(()=>import("./objective-cpp-CAZ1NrJr.js"),[])},{id:"ocaml",name:"OCaml",import:()=>L(()=>import("./ocaml-CANNzmGA.js"),[])},{id:"pascal",name:"Pascal",import:()=>L(()=>import("./pascal-CUU_xxmv.js"),[])},{id:"perl",name:"Perl",import:()=>L(()=>import("./perl-Bcivc5lk.js"),__vite__mapDeps([68,1,2,3,7,8,15]))},{id:"php",name:"PHP",import:()=>L(()=>import("./php-XhOgcbHd.js"),__vite__mapDeps([69,1,2,3,7,8,15,9]))},{id:"plsql",name:"PL/SQL",import:()=>L(()=>import("./plsql-Csx-KgEj.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>L(()=>import("./po-CZKeM8oa.js"),[])},{id:"polar",name:"Polar",import:()=>L(()=>import("./polar-C9vCuADp.js"),[])},{id:"postcss",name:"PostCSS",import:()=>L(()=>import("./postcss-BgR6IBVD.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>L(()=>import("./powerquery-BZR5jcz4.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>L(()=>import("./powershell-Q0c5v3Fs.js"),[])},{id:"prisma",name:"Prisma",import:()=>L(()=>import("./prisma-yac1gHcz.js"),[])},{id:"prolog",name:"Prolog",import:()=>L(()=>import("./prolog-S2snRG_L.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>L(()=>import("./proto-B2asqJ_e.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>L(()=>import("./pug-Ud6KBVuk.js"),__vite__mapDeps([70,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>L(()=>import("./puppet-qBI2rw6w.js"),[])},{id:"purescript",name:"PureScript",import:()=>L(()=>import("./purescript-CYAc_BdW.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>L(()=>import("./python-N_fYzn4k.js"),[])},{id:"qml",name:"QML",import:()=>L(()=>import("./qml-BdV_SRG6.js"),__vite__mapDeps([71,2]))},{id:"qmldir",name:"QML Directory",import:()=>L(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>L(()=>import("./qss-xAjwRsjP.js"),[])},{id:"r",name:"R",import:()=>L(()=>import("./r-15AZnl_Y.js"),[])},{id:"racket",name:"Racket",import:()=>L(()=>import("./racket-DfaBuPIG.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>L(()=>import("./raku-DARByBhS.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>L(()=>import("./razor-R9tSNI_9.js"),__vite__mapDeps([72,1,2,3,73]))},{id:"reg",name:"Windows Registry Script",import:()=>L(()=>import("./reg-eiUPDiaM.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>L(()=>import("./regexp-we84whta.js"),[])},{id:"rel",name:"Rel",import:()=>L(()=>import("./rel-CLLaPSAr.js"),[])},{id:"riscv",name:"RISC-V",import:()=>L(()=>import("./riscv-BOXXFo5k.js"),[])},{id:"rst",name:"reStructuredText",import:()=>L(()=>import("./rst-C0h9YO46.js"),__vite__mapDeps([74,14,1,2,3,22,23,24,25,15,19,27,38,75,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>L(()=>import("./ruby-Cwn6T5Qb.js"),__vite__mapDeps([32,1,2,3,33,7,8,15,34,11,35,36,22,23,24,25,27,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>L(()=>import("./rust-A6NUYkDQ.js"),[])},{id:"sas",name:"SAS",import:()=>L(()=>import("./sas-Yvy-jB3G.js"),__vite__mapDeps([76,15]))},{id:"sass",name:"Sass",import:()=>L(()=>import("./sass-DxKx6i08.js"),[])},{id:"scala",name:"Scala",import:()=>L(()=>import("./scala-urTpdRWL.js"),[])},{id:"scheme",name:"Scheme",import:()=>L(()=>import("./scheme-DfDtJdlR.js"),[])},{id:"scss",name:"SCSS",import:()=>L(()=>import("./scss-DkCoLJBz.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>L(()=>import("./sdbl-Cflpv1WG.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>L(()=>import("./shaderlab-DprXpeCX.js"),__vite__mapDeps([77,78]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>L(()=>import("./shellscript-Cs-zf8G1.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>L(()=>import("./shellsession-C_x4i0EA.js"),__vite__mapDeps([79,27]))},{id:"smalltalk",name:"Smalltalk",import:()=>L(()=>import("./smalltalk-CvaLaq0K.js"),[])},{id:"solidity",name:"Solidity",import:()=>L(()=>import("./solidity-BWEW8IEt.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>L(()=>import("./soy-CV61xlNT.js"),__vite__mapDeps([80,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>L(()=>import("./sparql-Ccgs8XSw.js"),__vite__mapDeps([81,82]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>L(()=>import("./splunk-RtPzT0sk.js"),[])},{id:"sql",name:"SQL",import:()=>L(()=>import("./sql-D8pCRXw6.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>L(()=>import("./ssh-config-BhVUZvoY.js"),[])},{id:"stata",name:"Stata",import:()=>L(()=>import("./stata-nt34lD2m.js"),__vite__mapDeps([83,15]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>L(()=>import("./stylus-q-cGTZ-j.js"),[])},{id:"svelte",name:"Svelte",import:()=>L(()=>import("./svelte-Ue2gIPbO.js"),__vite__mapDeps([84,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>L(()=>import("./swift-zJDMamB5.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>L(()=>import("./system-verilog-6Pjza-7V.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>L(()=>import("./systemd-BzvtnNXz.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>L(()=>import("./talonscript-B5KooqzE.js"),[])},{id:"tasl",name:"Tasl",import:()=>L(()=>import("./tasl-actOPUJz.js"),[])},{id:"tcl",name:"Tcl",import:()=>L(()=>import("./tcl-BX3nBwNA.js"),[])},{id:"templ",name:"Templ",import:()=>L(()=>import("./templ-CJFw_bmP.js"),__vite__mapDeps([85,86,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>L(()=>import("./terraform-BWjU2UX-.js"),[])},{id:"tex",name:"TeX",import:()=>L(()=>import("./tex-C7L-Ug2D.js"),__vite__mapDeps([61,59]))},{id:"toml",name:"TOML",import:()=>L(()=>import("./toml-x-gNw4Ca.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>L(()=>import("./ts-tags-B_RTbvdJ.js"),__vite__mapDeps([87,11,3,2,24,25,1,15,7,8]))},{id:"tsv",name:"TSV",import:()=>L(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>L(()=>import("./tsx-CHbqLUsD.js"),[])},{id:"turtle",name:"Turtle",import:()=>L(()=>import("./turtle-imGXYByQ.js"),[])},{id:"twig",name:"Twig",import:()=>L(()=>import("./twig-DxolMe-m.js"),__vite__mapDeps([88,3,2,5,69,1,7,8,15,9,19,32,33,34,11,35,36,22,23,24,25,27,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>L(()=>import("./typescript-6msxI5qU.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>L(()=>import("./typespec-5ugHtu89.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>L(()=>import("./typst-DGKQAwST.js"),[])},{id:"v",name:"V",import:()=>L(()=>import("./v-2Dvll9y_.js"),[])},{id:"vala",name:"Vala",import:()=>L(()=>import("./vala-DhIY81xx.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>L(()=>import("./vb-D4bKSGYI.js"),[])},{id:"verilog",name:"Verilog",import:()=>L(()=>import("./verilog-DmSgp3mE.js"),[])},{id:"vhdl",name:"VHDL",import:()=>L(()=>import("./vhdl-DCjSv28y.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>L(()=>import("./viml-DMG7XCk5.js"),[])},{id:"vue",name:"Vue",import:()=>L(()=>import("./vue-BebZw_gy.js"),__vite__mapDeps([89,1,2,3,11,9,14]))},{id:"vue-html",name:"Vue HTML",import:()=>L(()=>import("./vue-html-B9Bqf25R.js"),__vite__mapDeps([90,89,1,2,3,11,9,14]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>L(()=>import("./vyper-D68BUWwe.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>L(()=>import("./wasm-CJJW67X8.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>L(()=>import("./wenyan-BXqZv6Dq.js"),[])},{id:"wgsl",name:"WGSL",import:()=>L(()=>import("./wgsl-Do8n-e3P.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>L(()=>import("./wikitext-CQSnJ68I.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>L(()=>import("./wit-dyhQlKC1.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>L(()=>import("./wolfram-EuqmgloR.js"),[])},{id:"xml",name:"XML",import:()=>L(()=>import("./xml-iIRqcNou.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>L(()=>import("./xsl-BqXt74Hp.js"),__vite__mapDeps([91,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>L(()=>import("./yaml-DeMLtiT4.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>L(()=>import("./zenscript-BbLEZwDK.js"),[])},{id:"zig",name:"Zig",import:()=>L(()=>import("./zig-DFp_trfT.js"),[])}],dq=Object.fromEntries(j1.map(e=>[e.id,e.import])),fq=Object.fromEntries(j1.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Aq={...dq,...fq},hq=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>L(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>L(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>L(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>L(()=>import("./catppuccin-frappe-BtitwTYg.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>L(()=>import("./catppuccin-latte-CW_h_59B.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>L(()=>import("./catppuccin-macchiato-CXeUe8zM.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>L(()=>import("./catppuccin-mocha-Cj87Vp-p.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>L(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>L(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>L(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>L(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>L(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>L(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>L(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>L(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>L(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>L(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>L(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>L(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>L(()=>import("./gruvbox-dark-hard-BNFkGX63.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>L(()=>import("./gruvbox-dark-medium-fPwOVgKi.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>L(()=>import("./gruvbox-dark-soft-rn_0Wvg-.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>L(()=>import("./gruvbox-light-hard-DPpLE3g-.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>L(()=>import("./gruvbox-light-medium-BBkKoO69.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>L(()=>import("./gruvbox-light-soft-Ism0zgIY.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>L(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>L(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>L(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>L(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>L(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>L(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>L(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>L(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>L(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>L(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>L(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>L(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>L(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>L(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>L(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>L(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>L(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>L(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>L(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>L(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>L(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>L(()=>import("./rose-pine-BZeqa82Q.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>L(()=>import("./rose-pine-dawn-Dr8AihTi.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>L(()=>import("./rose-pine-moon-Bo9_Wbqy.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>L(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>L(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>L(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>L(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>L(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>L(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>L(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>L(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>L(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>L(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>L(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],mq=Object.fromEntries(hq.map(e=>[e.id,e.import]));class M4 extends Error{constructor(t){super(t),this.name="ShikiError"}}function pq(){return 2147483648}function Eq(){return typeof performance<"u"?performance.now():Date.now()}const gq=(e,t)=>e+(t-e%t)%t;async function _q(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,I,y){r.HEAPU8.copyWithin(_,I,I+y)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function d(_){const I=r.HEAPU8.length;_=_>>>0;const y=pq();if(_>y)return!1;for(let v=1;v<=4;v*=2){let R=I*(1+.2/v);R=Math.min(R,_+100663296);const D=Math.min(y,gq(Math.max(_,R),65536));if(l(D))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function A(_,I,y=1024){const v=I+y;let R=I;for(;_[R]&&!(R>=v);)++R;if(R-I>16&&_.buffer&&f)return f.decode(_.subarray(I,R));let D="";for(;I<R;){let x=_[I++];if(!(x&128)){D+=String.fromCharCode(x);continue}const F=_[I++]&63;if((x&224)===192){D+=String.fromCharCode((x&31)<<6|F);continue}const b=_[I++]&63;if((x&240)===224?x=(x&15)<<12|F<<6|b:x=(x&7)<<18|F<<12|b<<6|_[I++]&63,x<65536)D+=String.fromCharCode(x);else{const O=x-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function m(_,I){return _?A(r.HEAPU8,_,I):""}const E={emscripten_get_now:Eq,emscripten_memcpy_big:o,emscripten_resize_heap:d,fd_write:()=>0};async function g(){const I=await e({env:E,wasi_snapshot_preview1:E});t=I.memory,a(t.buffer),Object.assign(r,I),r.UTF8ToString=m}return await g(),r}var Nq=Object.defineProperty,Iq=(e,t,n)=>t in e?Nq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>Iq(e,typeof t!="symbol"?t+"":t,n);let nn=null;function Sq(e){throw new M4(e.UTF8ToString(e.getLastOnigError()))}class iA{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=iA._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const d=new Uint8Array(r);let f=0;for(let A=0;A<n;A++){const m=t.charCodeAt(A);let E=m,g=!1;if(m>=55296&&m<=56319&&A+1<n){const _=t.charCodeAt(A+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}a&&(o[A]=f,g&&(o[A+1]=f),E<=127?l[f+0]=A:E<=2047?(l[f+0]=A,l[f+1]=A):E<=65535?(l[f+0]=A,l[f+1]=A,l[f+2]=A):(l[f+0]=A,l[f+1]=A,l[f+2]=A,l[f+3]=A)),E<=127?d[f++]=E:E<=2047?(d[f++]=192|(E&1984)>>>6,d[f++]=128|(E&63)>>>0):E<=65535?(d[f++]=224|(E&61440)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0):(d[f++]=240|(E&1835008)>>>18,d[f++]=128|(E&258048)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0),g&&A++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=d,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,d=!1;if(o>=55296&&o<=56319&&r+1<a){const f=t.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(o-55296<<10)+65536|f-56320,d=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,d&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const aA=class Pr{constructor(t){if(Wt(this,"id",++Pr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!nn)throw new M4("Must invoke loadWasm first.");this._onigBinding=nn,this.content=t;const n=new iA(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Pr._sharedPtrInUse?(Pr._sharedPtr||(Pr._sharedPtr=nn.omalloc(1e4)),Pr._sharedPtrInUse=!0,nn.HEAPU8.set(n.utf8Value,Pr._sharedPtr),this.ptr=Pr._sharedPtr):this.ptr=n.createString(nn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Pr._sharedPtr?Pr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Wt(aA,"LAST_ID",0);Wt(aA,"_sharedPtr",0);Wt(aA,"_sharedPtrInUse",!1);let V1=aA;class Cq{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new M4("Must invoke loadWasm first.");const n=[],r=[];for(let d=0,f=t.length;d<f;d++){const A=new iA(t[d]);n[d]=A.createString(nn),r[d]=A.utf8Length}const a=nn.omalloc(4*t.length);nn.HEAPU32.set(n,a/4);const o=nn.omalloc(4*t.length);nn.HEAPU32.set(r,o/4);const l=nn.createOnigScanner(a,o,t.length);for(let d=0,f=t.length;d<f;d++)nn.ofree(n[d]);nn.ofree(o),nn.ofree(a),l===0&&Sq(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new V1(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const d=o.HEAPU32;let f=l/4;const A=d[f++],m=d[f++],E=[];for(let g=0;g<m;g++){const _=t.convertUtf8OffsetToUtf16(d[f++]),I=t.convertUtf8OffsetToUtf16(d[f++]);E[g]={start:_,end:I,length:I-_}}return{index:A,captureIndices:E}}}function yq(e){return typeof e.instantiator=="function"}function vq(e){return typeof e.default=="function"}function Rq(e){return typeof e.data<"u"}function Dq(e){return typeof Response<"u"&&e instanceof Response}function Tq(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let p0;function xq(e){if(p0)return p0;async function t(){nn=await _q(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),yq(r)?r=await r.instantiator(n):vq(r)?r=await r.default(n):(Rq(r)&&(r=r.data),Dq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await bq(r)(n):r=await Bq(r)(n):Tq(r)?r=await xp(r)(n):r instanceof WebAssembly.Module?r=await xp(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await xp(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return p0=t(),p0}function xp(e){return t=>WebAssembly.instantiate(e,t)}function bq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Bq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Oq(e){return e&&await xq(e),{createScanner(t){return new Cq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new V1(t)}}}const Fq=oq({langs:Aq,themes:mq,engine:()=>Oq(L(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Lq}=cq(Fq,{guessEmbeddedLanguages:R$}),wq=({children:e})=>N.jsx("div",{children:N.jsx("pre",{children:N.jsx("code",{children:e.split(`
286
+ `).map((t,n)=>N.jsx("span",{className:"line block w-full",children:t},n))})})}),Mq=({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[o,l]=C.useState(null),d=C.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[dZ(),AZ(),_Z(),fZ(),aZ(),oZ()]}),[t,n]);return C.useEffect(()=>{Lq(e,d).then(f=>l(f)).catch(f=>console.error(f))},[d,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...a,style:{backgroundColor:"transparent"}}):N.jsx(wq,{children:e})},Hq=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(Mq,{className:Re("flex w-full",e),contentEditable:n,onInput:a=>t==null?void 0:t(a.currentTarget.textContent??""),...r}),z1=C.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),sA=()=>C.useContext(z1),Pq=({children:e})=>{const[t,n]=Ml("packageManager","npm"),[r,a]=Ml("codeFormat","typescript"),[o,l]=Ml("contentDeclarationFormat","typescript");return N.jsx(z1,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},Uq=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=sA(),o=typeof t.packageManager>"u",l=n===t.packageManager,d=typeof t.codeFormat>"u",f=r===t.codeFormat,A=typeof t.contentDeclarationFormat>"u",m=a===t.contentDeclarationFormat;return(o||l)&&(d||f)&&(A||m)?e:N.jsx(N.Fragment,{})},kq=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=sA();return N.jsxs(Me,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Code Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"})]})]})},Gq=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=sA();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Dictionary Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"json",children:"JSON"})]})]})},jq={key:"copy-button",content:{label:pe({en:"Copy content",fr:"Copier le contenu",es:"Copiar contenido","en-GB":"Copy content",de:"Inhalt kopieren",ja:"コンテンツをコピー",ko:"콘텐츠 복사",zh:"复制内容",it:"Copia contenuto",pt:"Copiar conteúdo",hi:"सामग्री कॉपी करें",ar:"نسخ المحتوى",ru:"Копировать содержимое"})}},K1=({content:e})=>{const[t,n]=C.useState(!1),{label:r}=un(jq),a=async()=>{try{await navigator.clipboard.writeText(e),n(!0)}catch(o){console.error("Failed to copy text: ",o)}};return C.useEffect(()=>{const o=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(o)},[t]),N.jsx(pt,{Icon:t?F2:w2,onClick:a,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},Vq=()=>{const{packageManager:e,setPackageManager:t}=sA();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Package Manager"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"npm",children:"npm"}),N.jsx(Me.Item,{value:"pnpm",children:"pnpm"}),N.jsx(Me.Item,{value:"yarn",children:"yarn"})]})]})},zq=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:o,fileName:l,packageManager:d,codeFormat:f,contentDeclarationFormat:A,...m})=>{const E=e.endsWith(`
287
+ `)?e.slice(0,-1):e,g=d||f||A;return N.jsx(Uq,{packageManager:d,codeFormat:f,contentDeclarationFormat:A,children:N.jsxs(eu,{className:Re("relative text-sm leading-6",a&&"with-line-number ml-0",o),transparency:"lg",...m,children:[r&&N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"bg-card/50 text-neutral grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl py-1.5 pl-4 pr-12 text-xs",children:[N.jsx("span",{className:"truncate",children:l??t}),N.jsxs("div",{className:"flex items-center gap-2",children:[d&&N.jsx(Vq,{}),f&&N.jsx(kq,{}),A&&N.jsx(Gq,{})]})]}),N.jsx("div",{className:"sticky top-28",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center",g&&"h-11"),children:N.jsx(K1,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(Hq,{lang:t,isDarkMode:n,children:E})})]})})},Kq=pr("gap-3 font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline","invisible-link":"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",button:"rounded-lg bg-current *:text-text-opposite min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50","button-outlined":"rounded-lg border-[1.5px] hover:bg-current/30 min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",hoverable:"block rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5"},color:{primary:"text-primary",secondary:"text-secondary",destructive:"text-destructive",neutral:"text-neutral",light:"text-white",dark:"text-neutral-800",text:"text-text","text-inverse":"text-text-opposite",error:"text-error",success:"text-success",custom:""},underlined:{default:"",true:"underline",false:"no-underline"}},defaultVariants:{variant:"default",color:"primary",underlined:"default"}}),Yq=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},H4=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:o,isActive:l,underlined:d,locale:f,isExternalLink:A,href:m,...E}=e,{internationalization:g}=Qe,_=Yq(e),I=typeof r=="string",y=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,D=f&&m&&!_?vF(m,f):m;return N.jsxs("a",{href:D,hrefLang:R,"aria-label":a,rel:y,target:v,"aria-current":l?"page":void 0,className:Re(Kq({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&I&&N.jsx(U2,{className:"ml-2 inline-block size-4"})]})},Zq=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...o}=r??{};return N.jsx(Pq,{children:N.jsx(JY,{options:{overrides:{h1:l=>N.jsx(Uz,{isClickable:!0,...l}),h2:l=>N.jsx(kz,{isClickable:!0,...l}),h3:l=>N.jsx(S4,{isClickable:!0,...l}),h4:l=>N.jsx(Gz,{isClickable:!0,...l}),code:l=>{var d;return typeof l.className>"u"?N.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:l.children}):N.jsx(zq,{isDarkMode:t,language:(d=l.className)==null?void 0:d.replace("lang-",""),...l})},blockquote:({className:l,...d})=>N.jsx("blockquote",{className:Re("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",l),...d}),ul:({className:l,...d})=>N.jsx("ul",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),ol:({className:l,...d})=>N.jsx("ol",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),li:({className:l,...d})=>N.jsx("li",{className:Re("list-disc",l),...d}),img:({className:l,...d})=>N.jsx("img",{...d,loading:"lazy",className:Re("max-w-full rounded-md",l),src:`${d.src}?raw=true`}),a:l=>{var d;return N.jsx(H4,{color:"neutral",isExternalLink:(d=l.href)==null?void 0:d.startsWith("http"),underlined:!0,locale:n,...l})},pre:l=>l.children,table:({className:l,...d})=>N.jsx("div",{className:"grid w-full max-w-full overflow-scroll rounded",children:N.jsx("table",{className:Re("max-w-full table-auto overflow-hidden text-left",l),...d})}),th:({className:l,...d})=>N.jsx("th",{className:Re("border-neutral bg-neutral/10 border-b p-4",l),...d}),tr:({className:l,...d})=>N.jsx("tr",{className:Re("hover:bg-neutral/10 hover:/10",l),...d}),td:({className:l,...d})=>N.jsx("td",{className:Re("border-b border-neutral-500/50 p-4",l),...d}),...a},wrapper:({className:l,...d})=>N.jsxs(N.Fragment,{children:[N.jsx(tZ,{}),N.jsx("div",{className:Re("flex flex-col gap-8 p-10",l),...d})]}),...o},children:e??""})})},Wq=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(o=>e.startsWith(o));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},$q=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=C.useMemo(()=>Wq(e),[e]),[a,o]=C.useState(n??null),[l,d]=C.useState(r??null);return C.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const f=`${a}${l}`;t(f)}},[a,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(Me,{onValueChange:o,defaultValue:n,children:[N.jsx(Me.Trigger,{className:"w-20",children:N.jsx(Me.Value,{placeholder:"Select a comparator"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"<",children:"<"}),N.jsx(Me.Item,{value:"<=",children:"<="}),N.jsx(Me.Item,{value:"=",children:"="}),N.jsx(Me.Item,{value:">=",children:">="}),N.jsx(Me.Item,{value:">",children:">"})]})]}),N.jsx(ro,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},oA={key:"navigation-view",content:{tsxNotEditable:pe({en:"React node is not editable","en-GB":"React node is not editable",fr:"Node React non éditable",es:"Nodo React no editable",de:"React-Knoten ist nicht bearbeitbar",ja:"編集できないReactノードです",ko:"편집할 수 없는 React 노드입니다",zh:"不可编辑的 React 节点",it:"Node React non modificabile",pt:"Nó React não editável",hi:"सम्पादित न करने योग्य React नोड",ar:"عقدة React غير قابلة للتحرير",ru:"React-узел не редактируемый"}),goToField:{label:pe({en:"Go to field","en-GB":"Go to field",fr:"Aller au champ",es:"Ir al campo",de:"Zum Feld gehen",ja:"フィールドに移動",ko:"필드로 이동",zh:"转到字段",it:"Vai al campo",pt:"Ir para o campo",hi:"फ़ील्ड पर जाएं",ar:"اذهب إلى الحقل",ru:"Перейти к полю"})},addNewElement:{label:pe({en:"Click to add element","en-GB":"Click to add element",fr:"Cliquez pour ajouter un élément",es:"Haga clic para agregar un elemento",de:"Klicken Sie, um ein Element hinzuzufügen",ja:"要素を追加するにはクリック",ko:"요소를 추가하려면 클릭하세요",zh:"点击添加元素",it:"Clicca per aggiungere un elemento",pt:"Clique para adicionar um elemento",hi:"तत्व जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عنصر",ru:"Нажмите, чтобы добавить элемент"}),text:pe({en:"Add new element","en-GB":"Add new element",fr:"Ajouter un nouvel élément",es:"Agregar nuevo elemento",de:"Neues Element hinzufügen",ja:"新しい要素を追加",ko:"새 요소 추가",zh:"添加新元素",it:"Aggiungi nuovo elemento",pt:"Adicionar novo elemento",hi:"नया तत्व जोड़ें",ar:"أضف عنصرًا جديدًا",ru:"Добавить новый элемент"})},removeElement:{label:pe({en:"Click to remove element","en-GB":"Click to remove element",fr:"Cliquez pour supprimer un élément",es:"Haga clic para eliminar un elemento",de:"Klicken Sie, um ein Element zu entfernen",ja:"要素を削除するにはクリック",ko:"요소를 제거하려면 클릭하세요",zh:"点击删除元素",it:"Clicca per rimuovere un elemento",pt:"Clique para remover um elemento",hi:"तत्व निकालने के लिए क्लिक करें",ar:"انقر لإزالة عنصر",ru:"Нажмите, чтобы удалить элемент"}),text:pe({en:"Remove element","en-GB":"Remove element",fr:"Supprimer l’élément",es:"Eliminar elemento",de:"Element entfernen",ja:"要素を削除",ko:"요소 제거",zh:"删除元素",it:"Rimuovi elemento",pt:"Remover elemento",hi:"तत्व निकालें",ar:"إزالة عنصر",ru:"Удалить элемент"})},addNewEnumeration:{label:pe({en:"Click to add enumeration","en-GB":"Click to add enumeration",fr:"Cliquez pour ajouter une énumération",es:"Haga clic para agregar una enumeración",de:"Klicken Sie, um eine Aufzählung hinzuzufügen",ja:"列挙を追加するにはクリック",ko:"열거를 추가하려면 클릭하세요",zh:"点击添加枚举",it:"Clicca per aggiungere un enumerazione",pt:"Clique para adicionar uma enumeração",hi:"सूची जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة تعداد",ru:"Нажмите, чтобы добавить перечисление"}),text:pe({en:"Add new enumeration","en-GB":"Add new enumeration",fr:"Ajouter une nouvelle énumération",es:"Agregar nueva enumeración",de:"Neue Aufzählung hinzufügen",ja:"新しい列挙を追加",ko:"새 목록 추가",zh:"添加新枚举",it:"Aggiungi nuova enumerazione",pt:"Adicionar nova enumeração",hi:"नया सूची जोड़ें",ar:"أضف تعدادًا جديدًا",ru:"Добавить новое перечисление"})},removeEnumeration:{label:pe({en:"Click to remove enumeration","en-GB":"Click to remove enumeration",fr:"Cliquez pour supprimer une énumération",es:"Haga clic para eliminar una enumeración",de:"Klicken Sie, um eine Aufzählung zu entfernen",ja:"列挙を削除するにはクリック",ko:"목록을 제거하려면 클릭하세요",zh:"点击删除枚举",it:"Clicca per rimuovere un'enumerazione",pt:"Clique para remover uma enumeração",hi:"सूची निकालने के लिए क्लिक करें",ar:"انقر لإزالة تعداد",ru:"Нажмите, чтобы удалить перечисление"}),text:pe({en:"Remove enumeration","en-GB":"Remove enumeration",fr:"Supprimer l’énumération",es:"Eliminar enumeración",de:"Aufzählung entfernen",ja:"列挙を削除",ko:"목록 제거",zh:"删除枚举",it:"Rimuovi enumerazione",pt:"Remover enumeração",hi:"सूची निकालें",ar:"إزالة تعداد",ru:"Удалить перечисление"})},addNewCondition:{label:pe({en:"Click to add condition","en-GB":"Click to add condition",fr:"Cliquez pour ajouter une condition",es:"Haga clic para agregar una condición",de:"Klicken Sie, um eine Bedingung hinzuzufügen",ja:"条件を追加するにはクリック",ko:"조건을 추가하려면 클릭하세요",zh:"点击添加条件",it:"Clicca per aggiungere una condizione",pt:"Clique para adicionar uma condição",hi:"शर्ते जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة شرط",ru:"Нажмите, чтобы добавить условие"}),text:pe({en:"Add new condition","en-GB":"Add new condition",fr:"Ajouter une nouvelle condition",es:"Agregar nueva condición",de:"Neue Bedingung hinzufügen",ja:"新しい条件を追加",ko:"새 조건 추가",zh:"添加新条件",it:"Aggiungi nuova condizione",pt:"Adicionar nova condição",hi:"नया शर्ते जोड़ें",ar:"أضف شرطًا جديدًا",ru:"Добавить новое условие"})}}},qq=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=Dn(),o=Xr(),{auditContentDeclarationField:l,isLoading:d}=qM();return N.jsx(WK,{variant:"default",onContentChange:f=>a(t.key,f,e),additionalButtons:N.jsx(pt,{Icon:rR,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:d,onClick:()=>{l({fileContent:JSON.stringify({...t,...(r==null?void 0:r[t.key])??{}}),keyPath:e,locales:o.internationalization.locales??[],openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}).then(f=>{if(f!=null&&f.data)try{const A=f.data.fileContent;a(t.key,A,e)}catch(A){console.error(A)}})}}),...n})},Qq=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Dn();return N.jsx(LE,{variant:"default",onContentChange:a=>r(t.key,a,e),...n})},Xq=[{content:"False",value:!1},{content:"True",value:!0}],Jq=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Dn();return N.jsx(bc,{choices:Xq,value:!0,onChange:a=>r(e.key,a,t),color:"text",size:"sm",...n})},eQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:o}=JE(),{selectedLocales:l,availableLocales:d}=Hx(),f=e[Y.Translation],A=Object.keys(f),E=d.length>l.length?l:[...new Set([...d,...A])],g=e[Y.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:E.map(_=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:I0(_,a)}),N.jsx("tr",{children:N.jsx(Fa,{section:g[_]??hr(g[o]),keyPath:[...t,{type:Y.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},tQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Dn(),{addNewEnumeration:o,removeEnumeration:l}=un(oA),d=e[Y.Enumeration],f=Object.keys(d)[0];return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[Y.Enumeration]).map(A=>{const m=[...t,{type:Y.Enumeration}];return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full",children:N.jsx("div",{className:"flex flex-1",children:N.jsx(pt,{label:l.label.value,variant:"hoverable",color:"text",Icon:sg,className:"ml-auto",onClick:()=>a(n.key,void 0,m),children:l.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx($q,{value:A,onChange:E=>{const g=e[Y.Enumeration],_=zK(g,A,E),I={...e,[Y.Enumeration]:_};a(n.key,I,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(P4,{section:d[A]??hr(d[f]),keyPath:m,dictionary:n,renderSection:r})})]},A)})})}),N.jsx(pt,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>a(n.key,hr(d[f])??"",[...t,{type:Y.Enumeration,key:"unknown"}]),Icon:Of,className:"m-2",children:o.text})]})},nQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[Y.Condition];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(o=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(o)},o),N.jsx("tr",{className:"block w-full",children:N.jsx(Fa,{section:a[o]??hr(a.true),keyPath:[...t,{type:Y.Condition,key:o}],dictionary:n,renderSection:r})},o)]},o))})})},rQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Dn(),{addNewElement:o,removeElement:l}=un(oA);return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((d,f)=>N.jsxs(C.Fragment,{children:[N.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[N.jsx("span",{className:"text-xs",children:String(f)}),N.jsx(pt,{label:l.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const A=[...t,{type:Y.Array,key:e.length}];a(n.key,void 0,A)},Icon:sg,children:l.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx(Fa,{section:d??hr(e[0]),keyPath:[...t,{type:Y.Array,key:f}],dictionary:n,renderSection:r})})]},JSON.stringify(d)))})}),N.jsx(pt,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const d=[...t,{type:Y.Array,key:e.length}];a(n.key,hr(e[0])??"",d,!1)},Icon:Of,children:o.text})]})},uQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>N.jsx(N.Fragment,{children:N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(a=>{const o=[...t,{type:Y.Object,key:a}],l=e,d=Object.keys(l)[0],f=l[a]??hr(l[d]);return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(f)),N.jsx("tr",{className:"block w-full",children:N.jsx(P4,{section:f,keyPath:o,dictionary:n,renderSection:r})},JSON.stringify(f))]},a)})})})}),iQ=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[o,l]=C.useState(0),d=[{content:"Edit",value:0},{content:"Preview",value:1}],f=[...t,{type:Y.Markdown}],A=e[Y.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(bc,{choices:d,value:o,onChange:l,color:"text",size:"sm",className:"ml-auto"}),N.jsx(Fa,{section:A,keyPath:f,dictionary:n,renderSection:o===1?m=>N.jsx(Zq,{isDarkMode:r,children:m}):void 0,onContentChange:a})]})},aQ=({section:e,keyPath:t,...n})=>{const r=[...t,{type:Y.Insertion}],a=e[Y.Insertion];return N.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:N.jsx(Fa,{section:a,keyPath:r,...n})})},sQ=({section:e,keyPath:t,...n})=>{const r=[...t,{type:Y.File}],a=e[Y.File],{content:o}=e;return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),N.jsx(Fa,{section:o,keyPath:r,...n})]})},oQ=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:o}=Dn(),l=r[Y.Nested],d=[...e,{type:Y.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx($p,{children:"Dictionary key"}),N.jsx(LE,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:f=>{o(t.key,{...l,dictionaryKey:String(f)},d)},children:l.dictionaryKey??""}),N.jsx($p,{children:"Path (optional)"}),N.jsx(LE,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:f=>{o(t.key,{...l,path:f!==""?f:void 0},d)},children:l.path??""})]})},P4=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:o}=un(oA),l=qs(e);return l===Y.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:o})]}):l===Y.Nested?N.jsx(oQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Translation?N.jsx(eQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Enumeration?N.jsx(tQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Condition?N.jsx(nQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Insertion?N.jsx(aQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Markdown?N.jsx(iQ,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===Y.File?N.jsx(sQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Array?N.jsx(rQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Object?N.jsx(uQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(Qq,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===Y.Text?N.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):N.jsx(qq,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===Y.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(Jq,{dictionary:n,keyPath:t,value:e})}):N.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},Fa=e=>N.jsx(eu,{border:!0,background:"none",className:"top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky",roundedSize:"xl",children:N.jsx(P4,{...e})}),hc=e=>{const t=fv(e),n=qs(e);return t&&(n===Y.ReactNode||n===Y.File)?!0:t&&typeof t.nodeType=="string"?hc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},Y1={key:"breadcrumb",content:{linkLabel:pe({en:"Go to",fr:"Aller à",es:"Ir a","en-GB":"Go to",de:"Gehe zu",ja:"に移動",ko:"로 이동",zh:"转到",it:"Vai a",pt:"Ir para",hi:"कर जाएं",ar:"اذهب إلى",ru:"Перейти на"})}},lQ=({href:e,lang:t,children:n,onClick:r,color:a,position:o,locale:l,...d})=>{const{linkLabel:f}=un(Y1);return N.jsxs(N.Fragment,{children:[N.jsx(H4,{href:e,locale:l,color:a,onClick:r,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",...d,label:`${f} ${n}`,itemID:e,children:N.jsx("span",{itemProp:"name",children:n})}),N.jsx("meta",{itemProp:"position",content:o.toString()})]})},cQ=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:o}=un(Y1);return N.jsxs(N.Fragment,{children:[N.jsx(pt,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...a,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},dQ=({children:e,position:t,...n})=>N.jsxs("span",{itemProp:"item",children:[N.jsx("span",{itemProp:"name",...n,children:e}),N.jsx("meta",{itemProp:"position",content:t.toString()})]}),fQ=({links:e,className:t,color:n="text",locale:r,elementType:a="page",...o})=>N.jsx("nav",{"aria-label":"breadcrumb",children:N.jsx("ol",{className:Re("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...o,children:e.map((l,d)=>{const f=d===e.length-1,A=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=d===e.length-1?a:void 0,_=l.text??l;let I=N.jsx(dQ,{position:d+1,"aria-current":g,children:_},_);A?I=N.jsx(lQ,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(I=N.jsx(cQ,{onClick:l.onClick,color:n,position:d+1,"aria-current":g,children:_},_));const y=N.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:I},_);return f?y:N.jsxs(C.Fragment,{children:[y,N.jsx(k0,{size:10})]},_)})})}),AQ=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{text:t,onClick:()=>n([])},...e.map((o,l)=>{var d;return{onClick:()=>n(e.slice(0,l+1)),text:((d=o.key)==null?void 0:d.toString())??""}})];return N.jsx(fQ,{links:a,locale:r,elementType:"location"})},M0=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),vs=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,a=Vr(e,t),{addEditedContent:o}=Qs(),{setFocusedContentKeyPath:l,focusedContent:d}=yi(),{addNewElement:f,goToField:A}=un(oA),m=qs(a),E=_=>{var I;return(((I=d==null?void 0:d.keyPath)==null?void 0:I.length)??0)>0&&Ec(_,(d==null?void 0:d.keyPath)??[])},g=hc(a);if(!a)return N.jsx(N.Fragment,{});if(g)return N.jsx(pt,{label:A.label.value,variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(t),IconRight:k0,children:M0(t[t.length-1].key)});if(typeof a=="object"){if(m===Y.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(m===Y.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(I=>{const y=[...t,{type:Y.Translation,key:I}];return N.jsx(vs,{keyPath:y,section:e,dictionaryKey:n},I)})});if(m===Y.Enumeration||m===Y.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[m]).map(I=>{const y=[...t,{type:m,key:I}];return N.jsx(vs,{keyPath:y,section:e,dictionaryKey:n},I)})});if(m===Y.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((I,y)=>{const v=[...t,{type:Y.Array,key:y}];return N.jsx(vs,{keyPath:v,section:e,dictionaryKey:n},JSON.stringify(v))}),N.jsx(pt,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const I=[...t,{type:Y.Array,key:a.length}],y=a,v=hr(y[y.length-1])??"";o(n,v,I,!1),l(I)},Icon:Of,children:f.text})]});if(typeof a.nodeType=="string"){const I=[...t,{type:a.nodeType}];return N.jsx(vs,{keyPath:I,section:e,dictionaryKey:n})}const _=Object.keys(a);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(I=>{const y=[...t,{type:Y.Object,key:I}],v=Vr(e,y);return hc(v)?N.jsx(pt,{label:`${A.label.value} ${I}`,isActive:E(y),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(y),IconRight:k0,children:M0(I)},I):N.jsx(yx,{label:`${A.label.value} ${I}`,isActive:E(y),onClick:()=>l(y),header:M0(I),children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(vs,{keyPath:y,section:e,dictionaryKey:n})})})},I)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",m,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},hQ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:a}=Dn(),{focusedContent:o,setFocusedContentKeyPath:l}=yi(),d=o==null?void 0:o.keyPath,f=typeof((g=a==null?void 0:a[e.key])==null?void 0:g.content)>"u"?n:(_=a==null?void 0:a[r])==null?void 0:_.content,A=Vr(f,d??[]),m=hc(f),E=hc(A);return C.useEffect(()=>{var I;typeof A>"u"&&l(((I=o==null?void 0:o.keyPath)==null?void 0:I.slice(0,-1))??[])},[]),N.jsxs("div",{children:[N.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[N.jsx(AQ,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(VK,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(eu,{border:!0,background:"none",className:"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",roundedSize:"xl",transparency:"sm",children:N.jsx(vs,{keyPath:[],section:f,dictionaryKey:r})}),(E||(d??[]).length>0)&&N.jsx(Fa,{keyPath:d??[],section:A,dictionary:e,isDarkMode:t})]})]})},mQ={key:"dictionary-details",content:{titleInput:{label:pe({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:pe({en:"The title of your dictionary allows you to easily identify it","en-GB":"The title of your dictionary allows you to easily identify it",fr:"Le titre de votre dictionnaire permet de l'identifier facilement",es:"El título de su diccionario le permite identificar fácilmente",de:"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren",ja:"辞書のタイトルは、それを簡単に識別することができます",ko:"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다",zh:"字典的标题使您能够轻松识别它",it:"Il titolo del tuo dizionario ti consente di identificarlo facilmente",pt:"O título do seu dicionário permite que você o identifique facilmente",hi:"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है",ar:"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة",ru:"Название вашего словаря позволяет легко его идентифицировать"}),placeholder:pe({en:"Enter the title of your dictionary","en-GB":"Enter the title of your dictionary",fr:"Entrez le titre de votre dictionnaire",es:"Ingrese el título de su diccionario",de:"Geben Sie den Titel Ihres Wörterbuchs ein",ja:"辞書のタイトルを入力してください",ko:"사전의 제목을 입력하세요",zh:"输入字典的标题",it:"Inserisci il titolo del tuo dizionario",pt:"Insira o título do seu dicionário",hi:"आपके शब्दकोश का शीर्षक दर्ज करें",ar:"أدخل عنوان القاموس الخاص بك",ru:"Введите название вашего словаря"})},keyInput:{label:pe({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:pe({en:"The key of your dictionary is used to identify it in the application","en-GB":"The key of your dictionary is used to identify it in the application",fr:"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application",es:"La clave de su diccionario se utiliza para identificarla en la aplicación",de:"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren",ja:"辞書のキーは、アプリケーション内でそれを識別するために使用されます",ko:"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다",zh:"字典的键用于在应用程序中识别它",it:"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione",pt:"A chave do seu dicionário é usada para identificá-lo no aplicativo",hi:"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है",ar:"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق",ru:"Ключ вашего словаря используется для его идентификации в приложении"}),placeholder:pe({en:"Enter the key of your dictionary","en-GB":"Enter the key of your dictionary",fr:"Entrez la clé de votre dictionnaire",es:"Ingrese la clave de su diccionario",de:"Geben Sie den Schlüssel Ihres Wörterbuchs ein",ja:"辞書のキーを入力してください",ko:"사전의 키를 입력하세요",zh:"输入字典的键",it:"Inserisci la chiave del tuo dizionario",pt:"Insira a chave do seu dicionário",hi:"अपने शब्दकोश की कुंजी दर्ज करें",ar:"أدخل مفتاح القاموس الخاص بك",ru:"Введите ключ вашего словаря"})},descriptionInput:{label:pe({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:pe({en:"Enter the description of your dictionary","en-GB":"Enter the description of your dictionary",fr:"Entrez la description de votre dictionnaire",es:"Ingrese la descripción de su diccionario",de:"Geben Sie die Beschreibung Ihres Wörterbuchs ein",ja:"辞書の説明を入力してください",ko:"사전의 설명을 입력하세요",zh:"输入字典的描述",it:"Inserisci la descrizione del tuo dizionario",pt:"Insira a descrição do seu dicionário",hi:"अपने शब्दकोश का विवरण दर्ज करें",ar:"أدخل وصف القاموس الخاص بك",ru:"Введите описание вашего словаря"}),description:pe({en:"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.","en-GB":"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.",fr:"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.",es:"La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.",de:"Die Beschreibung Ihres Wörterbuchs ermöglicht es Ihnen, es mit Schlüsselwörtern leicht zu identifizieren. Sie wird auch verwendet, um nach Ihrem Wörterbuch zu suchen und der KI zu helfen, Ihr Wörterbuch zu verstehen.",ja:"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。",ko:"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다.",zh:"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。",it:"La descrizione del tuo dizionario ti consente di identificarlo facilmente utilizzando parole chiave. Viene anche utilizzata per cercare il tuo dizionario e per assistere l'IA nella comprensione del tuo dizionario.",pt:"A descrição do seu dicionário permite que você o identifique facilmente usando palavras-chave. Também é usada para pesquisar seu dicionário e para ajudar a IA a entender seu dicionário.",hi:"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।",ar:"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك.",ru:"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."})},projectInput:{label:pe({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:pe({en:"A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more projects. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Projekten verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più progetti. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais projetos. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.",hi:"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।",ar:"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.",ru:"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами."}),placeholder:pe({en:"Select one or more projects to associate with your dictionary","en-GB":"Select one or more projects to associate with your dictionary",fr:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire",es:"Seleccione uno o más proyectos para asociar con su diccionario",de:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen",ja:"辞書に関連付けるプロジェクトを1つ以上選択してください",ko:"사전과 연결할 하나 이상의 프로젝트를 선택하세요",zh:"选择一个或多个项目以与您的字典关联",it:"Seleziona uno o più progetti da associare al tuo dizionario",pt:"Selecione um ou mais projetos para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें",ar:"حدد مشروعًا أو أكثر لربطه بقاموسك",ru:"Выберите один или несколько проектов, чтобы связать их с вашим словарем"})},tagsSelect:{label:pe({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:pe({en:"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs tags. Cela permet de charger le dictionnaire dans différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Tags verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più tag. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes."}),placeholder:pe({en:"Select the tags to associate with your dictionary","en-GB":"Select the tags to associate with your dictionary",fr:"Sélectionnez les tags à associer à votre dictionnaire",es:"Seleccione los tags para asociar con su diccionario",de:"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen",ja:"辞書に関連付けるタグを選択してください",ko:"사전과 연결할 태그를 선택하세요",zh:"选择与您的字典相关的标签",it:"Seleziona i tag da associare al tuo dizionario",pt:"Selecione os tags para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें",ar:"حدد الوسوم التي تريد ربطها بقاموسك",ru:"Выберите теги, которые нужно связать с словарем"})},auditButton:{label:pe({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:pe({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},pQ={key:"dictionary-detail-schema",content:{titleRequiredError:pe({en:"Please enter a name for your organization.","en-GB":"Please enter a name for your organization.",fr:"Veuillez saisir un nom pour votre organisation.",es:"Por favor, ingrese un nombre para su organización.",de:"Bitte geben Sie einen Namen für Ihre Organisation ein.",ja:"あなたの組織の名前を入力してください。",ko:"조직 이름을 입력하세요.",zh:"请输入您组织的名称。",it:"Si prega di inserire un nome per la propria organizzazione.",pt:"Por favor, insira um nome para sua organização.",hi:"कृपया अपने संगठन का नाम दर्ज करें।",ar:"يرجى إدخال اسم منظمتك.",ru:"Пожалуйста, введите название вашей организации."}),titleInvalidTypeError:pe({en:"The organization name must be a valid string.","en-GB":"The organization name must be a valid string.",fr:"Le nom de votre organisation doit être une chaîne valide.",es:"El nombre de su organización debe ser una cadena válida.",de:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",ja:"組織名は有効な文字列である必要があります。",ko:"조직 이름은 유효한 문자열이어야 합니다.",zh:"组织名称必须是有效的字符串。",it:"Il nome dell'organizzazione deve essere una stringa valida.",pt:"O nome da organização deve ser uma string válida.",hi:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",ru:"Имя организации должно быть правильной строкой."}),titleMinLengthError:pe({en:"The organization name must be at least 4 characters long.","en-GB":"The organization name must be at least 4 characters long.",fr:"Le nom de votre organisation doit comporter au moins 4 caractères.",es:"El nombre de su organización debe tener al menos 4 caracteres.",de:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",ja:"組織名は4文字以上でなければなりません。",ko:"조직 이름은 4자 이상이어야 합니다.",zh:"组织名称必须至少4个字符。",it:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",pt:"O nome da organização deve ter pelo menos 4 caracteres.",hi:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",ar:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",ru:"Имя организации должно содержать не менее 4 символов."}),keyRequiredError:pe({en:"Please enter a key for your organization.","en-GB":"Please enter a key for your organization.",fr:"Veuillez saisir une clé pour votre organisation.",es:"Por favor, ingrese una clave para su organización.",de:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",ja:"あなたの組織のためにキーを入力してください。",ko:"조직에 대한 키를 입력하세요.",zh:"请输入您组织的键。",it:"Si prega di inserire una chiave per la propria organizzazione.",pt:"Por favor, insira uma chave para sua organização.",hi:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",ar:"يرجى إدخال مفتاح لمنظمتك.",ru:"Пожалуйста, введите ключ для вашей организации."}),keyInvalidTypeError:pe({en:"The key must be a valid string.","en-GB":"The key must be a valid string.",fr:"La clé doit être une chaîne valide.",es:"La clave debe ser una cadena válida.",de:"Der Schlüssel muss eine gültige Zeichenfolge sein.",ja:"キーは有効な文字列である必要があります。",ko:"키는 유효한 문자열이어야 합니다.",zh:"关键字必须是有效的字符串。",it:"La chiave deve essere una stringa valida.",pt:"A chave deve ser uma string válida.",hi:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",ar:"يجب أن يكون المفتاح سلسلة صحيحة.",ru:"Ключ должен быть правильной строкой."}),keySpaceError:pe({en:"The key cannot contain spaces or special characters.","en-GB":"The key cannot contain spaces or special characters.",fr:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",es:"La clave no puede contener espacios o caracteres especiales.",de:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",ja:"キーにはスペースや特殊文字を含めることはできません。",ko:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",zh:"关键字不能包含空格或特殊字符。",it:"La chiave non può contenere spazi o caratteri speciali.",pt:"A chave não pode conter espaços ou caracteres especiais.",hi:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",ar:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",ru:"Ключ не может содержать пробелы или специальные символы."}),keyMinLengthError:pe({en:"The key must be at least 4 characters long.","en-GB":"The key must be at least 4 characters long.",fr:"La clé doit comporter au moins 4 caractères.",es:"La clave debe tener al menos 4 caracteres.",de:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",ja:"キーは4文字以上でなければなりません。",ko:"키는 4자 이상이어야 합니다.",zh:"键必须至少为4个字符。",it:"La chiave deve essere lunga almeno 4 caratteri.",pt:"A chave deve ter pelo menos 4 caracteres.",hi:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",ar:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",ru:"Ключ должен содержать не менее 4 символов."}),descriptionRequiredError:pe({en:"Please enter a description for your organization.","en-GB":"Please enter a description for your organization.",fr:"Veuillez saisir une description pour votre organisation.",es:"Por favor, ingrese una descripción para su organización.",de:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",ja:"あなたの組織の説明を入力してください。",ko:"조직에 대한 설명을 입력하세요.",zh:"请输入您组织的描述。",it:"Si prega di inserire una descrizione per la propria organizzazione.",pt:"Por favor, insira uma descrição para sua organização.",hi:"कृपया अपने संगठन का विवरण दर्ज करें।",ar:"يرجى إدخال وصف لمنظمتك.",ru:"Пожалуйста, введите описание вашей организации."}),descriptionInvalidTypeError:pe({en:"The description must be a valid string.","en-GB":"The description must be a valid string.",fr:"La description doit être une chaîne valide.",es:"La descripción debe ser una cadena válida.",de:"Die Beschreibung muss eine gültige Zeichenfolge sein.",ja:"説明は有効な文字列である必要があります。",ko:"설명은 유효한 문자열이어야 합니다.",zh:"描述必须是有效的字符串。",it:"La descrizione deve essere una stringa valida.",pt:"A descrição deve ser uma string válida.",hi:"विवरण एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون الوصف سلسلة صحيحة.",ru:"Описание должно быть правильной строкой."}),requiredErrorProjectId:pe({en:"Please select a project","en-GB":"Please select a project",fr:"Veuillez sélectionner un projet",es:"Por favor, seleccione un proyecto",de:"Bitte wählen Sie ein Projekt aus",ja:"プロジェクトを選択してください",ko:"프로젝트를 선택하세요",zh:"请选择一个项目",it:"Si prega di selezionare un progetto",pt:"Por favor, selecione um projeto",hi:"कृपया एक प्रोजेक्ट चुनें",ar:"يرجى اختيار مشروع",ru:"Пожалуйста, выберите проект"}),invalidTypeErrorProjectId:pe({en:"Please select a valid project","en-GB":"Please select a valid project",fr:"Veuillez sélectionner un projet valide",es:"Por favor, seleccione un proyecto válido",de:"Bitte wählen Sie ein gültiges Projekt aus",ja:"有効なプロジェクトを選択してください",ko:"유효한 프로젝트를 선택하세요",zh:"请选择有效的项目",it:"Si prega di selezionare un progetto valido",pt:"Por favor, selecione um projeto válido",hi:"कृपया एक वैध परियोजना चुनें",ar:"يرجى اختيار مشروع صالح",ru:"Пожалуйста, выберите действительный проект"}),invalidTypeErrorTags:pe({en:"Please enter a valid tag","en-GB":"Please enter a valid tag",fr:"Veuillez saisir un tag valide",es:"Por favor, ingrese un tag válido",de:"Bitte geben Sie einen gültigen Tag ein",ja:"有効なタグを入力してください",ko:"유효한 태그를 입력하세요",zh:"请输入有效的标签",it:"Si prega di inserire un tag valido",pt:"Por favor, insira um tag válido",hi:"कृपया एक वैध टैग दर्ज करें",ar:"يرجى إدخال وسم صالح",ru:"Пожалуйста, введите действительный тег"})}},EQ=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:d,descriptionRequiredError:f,descriptionInvalidTypeError:A,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=un(pQ);return oi.object({title:oi.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:oi.string({required_error:a.value,invalid_type_error:o.value}).min(4,{message:d.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:oi.string({required_error:f.value,invalid_type_error:A.value}).optional(),projectIds:oi.array(oi.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:oi.array(oi.string({invalid_type_error:g.value})).default([])})},gQ=({dictionary:e})=>{var b,O;const{session:t}=Sc(),{project:n}=t??{},{data:r,isLoading:a}=KM(),{data:o}=WM(),l=EQ(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=Fk(l,{defaultValues:e}),{editedContent:A,setEditedDictionary:m}=Dn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:I,tagsSelect:y,auditButton:v}=un(mQ),{auditContentDeclaration:R,isLoading:D}=$M(),x=A==null?void 0:A[e.key];C.useEffect(()=>{d.reset(e)},[e,d==null?void 0:d.reset]),C.useEffect(()=>{typeof x>"u"&&d.reset(e)},[x]);const F=async()=>{const w={...e,...x};await R({fileContent:JSON.stringify(w)}).then(P=>{if(P!=null&&P.data)try{const U=JSON.parse(P.data.fileContent);m(j=>({...j,...w,...U})),d.reset({...w,...U})}catch(U){console.error(U)}})};return N.jsx(eu,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(tt,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:w=>m(P=>({...P,...w})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(tt.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:w=>{d.setValue("key",w),m(P=>({...e,...P??{},key:w}))}}),N.jsx(tt.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:w=>{d.setValue("title",w),m(P=>({...e,...P??{},title:w}))}})]}),N.jsx(tt.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:w=>{d.setValue("description",w),m(P=>({...e,...P??{},description:w}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(tt.MultiSelect,{name:"projectIds",label:I.label.value,description:I.description.value,onValueChange:w=>{const P=[w].flat();d.setValue("projectIds",P),m(U=>({...e,...U??{},projectIds:P}))},children:[N.jsx(pn.Trigger,{getBadgeValue:w=>{var P,U;return((U=(P=r==null?void 0:r.data)==null?void 0:P.find(j=>String(j._id)===w))==null?void 0:U.name)??w},children:N.jsx(pn.Input,{placeholder:I.placeholder.value})}),N.jsx(pn.Content,{children:N.jsx(ks,{isLoading:a,children:N.jsx(pn.List,{children:(b=r==null?void 0:r.data)==null?void 0:b.map(w=>N.jsx(pn.Item,{value:String(w._id),children:w.name},String(w._id)))})})})]}),N.jsxs(tt.MultiSelect,{name:"tags",label:y.label.value,description:y.description.value,onValueChange:w=>{d.setValue("tags",[w].flat()),m(P=>({...e,...P??{},tags:[w].flat()}))},children:[N.jsx(pn.Trigger,{getBadgeValue:w=>{var P,U;return((U=(P=r==null?void 0:r.data)==null?void 0:P.find(j=>String(j._id)===w))==null?void 0:U.name)??w},children:N.jsx(pn.Input,{placeholder:y.placeholder.value})}),N.jsx(pn.Content,{children:N.jsx(ks,{isLoading:a,children:N.jsx(pn.List,{children:(O=o==null?void 0:o.data)==null?void 0:O.map(w=>N.jsx(pn.Item,{value:String(w.key),children:w.name??w.key},String(w.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(tt.Button,{type:"button",label:v.label.value,Icon:rR,variant:"outline",color:"text",className:"max-md:w-full",onClick:F,disabled:f||D,isLoading:D,children:v.text})})]})})},_Q={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:pe({en:"Return to dictionary list","en-GB":"Return to dictionary list",fr:"Retourner à la liste des dictionnaires",es:"Volver a la lista de diccionarios",de:"Zurück zur Wörterbuchliste",ja:"辞書リストに戻る",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",it:"Torna all'elenco dei dizionari",pt:"Voltar à lista de dicionários",hi:"शब्दकोश सूची में वापस जाएं",ar:"العودة إلى قائمة المعاجم",ru:"Вернуться к списку словарей"}),text:pe({en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",it:"Elenco dei dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة المعاجم",ru:"Список словарей"})}}};function NQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qy(Object(n),!0).forEach(function(r){NQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function SQ(e,t){if(e==null)return{};var n=IQ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CQ(e,t){return yQ(e)||vQ(e,t)||RQ(e,t)||DQ()}function yQ(e){if(Array.isArray(e))return e}function vQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),d;!(r=(d=l.next()).done)&&(n.push(d.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function RQ(e,t){if(e){if(typeof e=="string")return Xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xy(e,t)}}function Xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jy(Object(n),!0).forEach(function(r){TQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,o){return o(a)},r)}}function Dl(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function vf(e){return{}.toString.call(e).includes("Object")}function bQ(e){return!Object.keys(e).length}function mc(e){return typeof e=="function"}function BQ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function OQ(e,t){return vf(t)||hi("changeType"),Object.keys(t).some(function(n){return!BQ(e,n)})&&hi("changeField"),t}function FQ(e){mc(e)||hi("selectorType")}function LQ(e){mc(e)||vf(e)||hi("handlerType"),vf(e)&&Object.values(e).some(function(t){return!mc(t)})&&hi("handlersType")}function wQ(e){e||hi("initialIsRequired"),vf(e)||hi("initialType"),bQ(e)&&hi("initialContent")}function MQ(e,t){throw new Error(e[t]||e.default)}var HQ={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},hi=Dl(MQ)(HQ),E0={changes:OQ,selector:FQ,handler:LQ,initial:wQ};function PQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E0.initial(e),E0.handler(t);var n={current:e},r=Dl(GQ)(n,t),a=Dl(kQ)(n),o=Dl(E0.changes)(e),l=Dl(UQ)(n);function d(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return E0.selector(A),A(n.current)}function f(A){xQ(r,a,o,l)(A)}return[d,f]}function UQ(e,t){return mc(t)?t(e.current):t}function kQ(e,t){return e.current=ev(ev({},e.current),t),t}function GQ(e,t,n){return mc(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var jQ={create:PQ},VQ={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function zQ(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function KQ(e){return{}.toString.call(e).includes("Object")}function YQ(e){return e||tv("configIsRequired"),KQ(e)||tv("configType"),e.urls?(ZQ(),{paths:{vs:e.urls.monacoBase}}):e}function ZQ(){console.warn(Z1.deprecation)}function WQ(e,t){throw new Error(e[t]||e.default)}var Z1={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
289
+ You are using deprecated way of configuration.
290
+
291
+ Instead of using
292
+ monaco.config({ urls: { monacoBase: '...' } })
293
+ use
294
+ monaco.config({ paths: { vs: '...' } })
295
+
296
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
297
+ `},tv=zQ(WQ)(Z1),$Q={config:YQ},qQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(o,l){return l(o)},a)}};function W1(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],W1(e[n],t[n]))}),Qy(Qy({},e),t)}var QQ={type:"cancelation",msg:"operation is manually canceled"};function bp(e){var t=!1,n=new Promise(function(r,a){e.then(function(o){return t?a(QQ):r(o)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var XQ=jQ.create({config:VQ,isInitialized:!1,resolve:null,reject:null,monaco:null}),$1=CQ(XQ,2),Pc=$1[0],lA=$1[1];function JQ(e){var t=$Q.config(e),n=t.monaco,r=SQ(t,["monaco"]);lA(function(a){return{config:W1(a.config,r),monaco:n}})}function eX(){var e=Pc(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(lA({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),bp(Bp);if(window.monaco&&window.monaco.editor)return q1(window.monaco),e.resolve(window.monaco),bp(Bp);qQ(tX,rX)(uX)}return bp(Bp)}function tX(e){return document.body.appendChild(e)}function nX(e){var t=document.createElement("script");return e&&(t.src=e),t}function rX(e){var t=Pc(function(r){var a=r.config,o=r.reject;return{config:a,reject:o}}),n=nX("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function uX(){var e=Pc(function(n){var r=n.config,a=n.resolve,o=n.reject;return{config:r,resolve:a,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){q1(n),e.resolve(n)},function(n){e.reject(n)})}function q1(e){Pc().monaco||lA({monaco:e})}function iX(){return Pc(function(e){var t=e.monaco;return t})}var Bp=new Promise(function(e,t){return lA({resolve:e,reject:t})}),Q1={config:JQ,init:eX,__getMonacoInstance:iX},aX={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Op=aX,sX={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},oX=sX;function lX({children:e}){return Ke.createElement("div",{style:oX.container},e)}var cX=lX,dX=cX;function fX({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:o,wrapperProps:l}){return Ke.createElement("section",{style:{...Op.wrapper,width:e,height:t},...l},!n&&Ke.createElement(dX,null,r),Ke.createElement("div",{ref:a,style:{...Op.fullWidth,...!n&&Op.hide},className:o}))}var AX=fX,X1=C.memo(AX);function hX(e){C.useEffect(e,[])}var J1=hX;function mX(e,t,n=!0){let r=C.useRef(!0);C.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var zn=mX;function Pl(){}function Fs(e,t,n,r){return pX(e,r)||EX(e,t,n,r)}function pX(e,t){return e.editor.getModel(eb(e,t))}function EX(e,t,n,r){return e.editor.createModel(t,n,r?eb(e,r):void 0)}function eb(e,t){return e.Uri.parse(t)}function gX({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:f=!1,theme:A="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:I,wrapperProps:y={},beforeMount:v=Pl,onMount:R=Pl}){let[D,x]=C.useState(!1),[F,b]=C.useState(!0),O=C.useRef(null),w=C.useRef(null),P=C.useRef(null),U=C.useRef(R),j=C.useRef(v),fe=C.useRef(!1);J1(()=>{let J=Q1.init();return J.then(G=>(w.current=G)&&b(!1)).catch(G=>(G==null?void 0:G.type)!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>O.current?$():J.cancel()}),zn(()=>{if(O.current&&w.current){let J=O.current.getOriginalEditor(),G=Fs(w.current,e||"",r||n||"text",o||"");G!==J.getModel()&&J.setModel(G)}},[o],D),zn(()=>{if(O.current&&w.current){let J=O.current.getModifiedEditor(),G=Fs(w.current,t||"",a||n||"text",l||"");G!==J.getModel()&&J.setModel(G)}},[l],D),zn(()=>{let J=O.current.getModifiedEditor();J.getOption(w.current.editor.EditorOption.readOnly)?J.setValue(t||""):t!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[t],D),zn(()=>{var J,G;(G=(J=O.current)==null?void 0:J.getModel())==null||G.original.setValue(e||"")},[e],D),zn(()=>{let{original:J,modified:G}=O.current.getModel();w.current.editor.setModelLanguage(J,r||n||"text"),w.current.editor.setModelLanguage(G,a||n||"text")},[n,r,a],D),zn(()=>{var J;(J=w.current)==null||J.editor.setTheme(A)},[A],D),zn(()=>{var J;(J=O.current)==null||J.updateOptions(E)},[E],D);let se=C.useCallback(()=>{var ne;if(!w.current)return;j.current(w.current);let J=Fs(w.current,e||"",r||n||"text",o||""),G=Fs(w.current,t||"",a||n||"text",l||"");(ne=O.current)==null||ne.setModel({original:J,modified:G})},[n,t,a,e,r,o,l]),de=C.useCallback(()=>{var J;!fe.current&&P.current&&(O.current=w.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...E}),se(),(J=w.current)==null||J.editor.setTheme(A),x(!0),fe.current=!0)},[E,A,se]);C.useEffect(()=>{D&&U.current(O.current,w.current)},[D]),C.useEffect(()=>{!F&&!D&&de()},[F,D,de]);function $(){var G,ne,ee,Ee;let J=(G=O.current)==null?void 0:G.getModel();d||((ne=J==null?void 0:J.original)==null||ne.dispose()),f||((ee=J==null?void 0:J.modified)==null||ee.dispose()),(Ee=O.current)==null||Ee.dispose()}return Ke.createElement(X1,{width:_,height:g,isEditorReady:D,loading:m,_ref:P,className:I,wrapperProps:y})}var _X=gX;C.memo(_X);function NX(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var IX=NX,g0=new Map;function SX({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:o,theme:l="light",line:d,loading:f="Loading...",options:A={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:I="100%",className:y,wrapperProps:v={},beforeMount:R=Pl,onMount:D=Pl,onChange:x,onValidate:F=Pl}){let[b,O]=C.useState(!1),[w,P]=C.useState(!0),U=C.useRef(null),j=C.useRef(null),fe=C.useRef(null),se=C.useRef(D),de=C.useRef(R),$=C.useRef(),J=C.useRef(r),G=IX(o),ne=C.useRef(!1),ee=C.useRef(!1);J1(()=>{let W=Q1.init();return W.then(V=>(U.current=V)&&P(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>j.current?H():W.cancel()}),zn(()=>{var V,re,te,ce;let W=Fs(U.current,e||r||"",t||a||"",o||n||"");W!==((V=j.current)==null?void 0:V.getModel())&&(E&&g0.set(G,(re=j.current)==null?void 0:re.saveViewState()),(te=j.current)==null||te.setModel(W),E&&((ce=j.current)==null||ce.restoreViewState(g0.get(o))))},[o],b),zn(()=>{var W;(W=j.current)==null||W.updateOptions(A)},[A],b),zn(()=>{!j.current||r===void 0||(j.current.getOption(U.current.editor.EditorOption.readOnly)?j.current.setValue(r):r!==j.current.getValue()&&(ee.current=!0,j.current.executeEdits("",[{range:j.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),j.current.pushUndoStop(),ee.current=!1))},[r],b),zn(()=>{var V,re;let W=(V=j.current)==null?void 0:V.getModel();W&&a&&((re=U.current)==null||re.editor.setModelLanguage(W,a))},[a],b),zn(()=>{var W;d!==void 0&&((W=j.current)==null||W.revealLine(d))},[d],b),zn(()=>{var W;(W=U.current)==null||W.editor.setTheme(l)},[l],b);let Ee=C.useCallback(()=>{var W;if(!(!fe.current||!U.current)&&!ne.current){de.current(U.current);let V=o||n,re=Fs(U.current,r||e||"",t||a||"",V||"");j.current=(W=U.current)==null?void 0:W.editor.create(fe.current,{model:re,automaticLayout:!0,...A},m),E&&j.current.restoreViewState(g0.get(V)),U.current.editor.setTheme(l),d!==void 0&&j.current.revealLine(d),O(!0),ne.current=!0}},[e,t,n,r,a,o,A,m,E,l,d]);C.useEffect(()=>{b&&se.current(j.current,U.current)},[b]),C.useEffect(()=>{!w&&!b&&Ee()},[w,b,Ee]),J.current=r,C.useEffect(()=>{var W,V;b&&x&&((W=$.current)==null||W.dispose(),$.current=(V=j.current)==null?void 0:V.onDidChangeModelContent(re=>{ee.current||x(j.current.getValue(),re)}))},[b,x]),C.useEffect(()=>{if(b){let W=U.current.editor.onDidChangeMarkers(V=>{var te;let re=(te=j.current.getModel())==null?void 0:te.uri;if(re&&V.find(ce=>ce.path===re.path)){let ce=U.current.editor.getModelMarkers({resource:re});F==null||F(ce)}});return()=>{W==null||W.dispose()}}return()=>{}},[b,F]);function H(){var W,V;(W=$.current)==null||W.dispose(),g?E&&g0.set(o,j.current.saveViewState()):(V=j.current.getModel())==null||V.dispose(),j.current.dispose()}return Ke.createElement(X1,{width:_,height:I,isEditorReady:b,loading:f,_ref:fe,className:y,wrapperProps:v})}var CX=SX,yX=C.memo(CX);const vX=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:o=!1,onChange:l})=>{const d=C.useRef(null),f=C.useRef(null),[A,m]=C.useState({height:0,width:0}),E=C.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),g=(I,y)=>{var R;f.current=I;const v=(I.getContentHeight()??0)+25;y.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.setTheme(E),y.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),y.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:v,width:((R=d.current)==null?void 0:R.clientWidth)??0})},_=r??e.split(`
298
+ `).length>1;return N.jsxs("div",{className:Re("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&N.jsx("div",{className:"sticky top-5 z-10",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center"),children:N.jsx(K1,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(yX,{...A,defaultLanguage:"typescript",language:t,loading:N.jsx(ks,{}),defaultValue:String(e).replace(/\n$/,""),onMount:g,onChange:l,options:{readOnly:o,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:_?"on":"off"},theme:E,className:"my-2 rounded-md"})})]})},RX=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Dn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},o=C.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return N.jsx(eu,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(vX,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},DX={key:"node-type-selector",content:{triggerPlaceHolder:pe({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:pe({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:pe({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:pe({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:pe({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:pe({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:pe({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:pe({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:pe({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),insertion:pe({en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка"}),condition:pe({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:pe({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:pe({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:pe({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},_0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:o,node:l,array:d,enumeration:f,triggerPlaceHolder:A,nest:m,condition:E,markdown:g,insertion:_,reactNode:I,file:y}=un(DX),v=qs(e),[R,D]=C.useState(v),x=F=>{D(F),t(F)};return N.jsxs(Me,{value:R,onValueChange:x,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:A})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:Y.Translation,children:n}),N.jsx(Me.Item,{value:Y.Text,children:r}),N.jsx(Me.Item,{value:Y.Number,children:a}),N.jsx(Me.Item,{value:Y.Boolean,children:o}),N.jsx(Me.Item,{value:Y.Object,children:l}),N.jsx(Me.Item,{value:Y.Array,children:d}),N.jsx(Me.Item,{value:Y.Enumeration,children:f}),N.jsx(Me.Item,{value:Y.Insertion,children:_}),N.jsx(Me.Item,{value:Y.Markdown,children:g}),N.jsx(Me.Item,{value:Y.Nested,children:m}),N.jsx(Me.Item,{value:Y.Condition,children:E}),N.jsx(Me.Item,{value:Y.ReactNode,disabled:!0,children:I}),N.jsx(Me.Item,{value:Y.File,children:y})]})]})},tb={key:"editor-view",content:{titleInput:{placeholder:pe({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:pe({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:pe({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:pe({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},YE=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const a=((f=Xr())==null?void 0:f.internationalization.locales)??[],o=qs(e),l=fv(e),d=A=>{const m=dl(o,a,A);r(m)};if(o===Y.Translation||o===Y.Condition||o===Y.Enumeration){const A=Object.keys(e[o])[0],m=[...n,{type:o,key:A}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(_0,{section:e,onValueChange:E=>r(dl(E,a))}),N.jsx(YE,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:d})]})}if(o===Y.Array){const A=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(_0,{section:e,onValueChange:m=>r(dl(m,a))}),N.jsx(YE,{section:l,keyPath:A,dictionaryKey:t,onNodeTypeChange:d})]})}return o===Y.Object?N.jsxs(N.Fragment,{children:[N.jsx(_0,{section:e,onValueChange:A=>r(dl(A,a))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(xX,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(_0,{section:e,onValueChange:A=>r(dl(A,a))})},U4=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:o}=yi(),{renameEditedContent:l,addEditedContent:d}=Qs(),{titleInput:f,deleteButton:A}=un(tb),m=E=>{l(r,E,n);const g=n.slice(0,-1),_=n[n.length-1],I=[...g,{..._,key:E}];o(I)};return N.jsx(eu,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":Ec(n,(a==null?void 0:a.keyPath)??[]),onClick:()=>o(n),children:N.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&N.jsxs("div",{className:"w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[N.jsx(e9,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(pt,{label:A.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:sg,onClick:()=>{d(r,void 0,n);const E=n.slice(0,-1);o(E)}})]}),N.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",M0(e)," )"]})]}),N.jsx(YE,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},TX=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=un(tb),{setFocusedContentKeyPath:a}=qE(),{addEditedContent:o}=Qs();return!e||typeof e!="object"?N.jsx("div",{children:"Not an object"}):N.jsxs("div",{className:"flex flex-col gap-2 overflow-y-scroll",children:[N.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>N.jsx("li",{className:"flex w-full",children:N.jsx(U4,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:Y.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(pt,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:Of,className:"flex-1",onClick:()=>{const d=[...t,{type:Y.Object,key:"newKey"}];o(n,"",d),a(d)},children:r.text})]})},xX=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(U4,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(TX,{section:e,keyPath:t,dictionaryKey:n}),bX=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Dn(),a=typeof((o=r==null?void 0:r[n])==null?void 0:o.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return N.jsx(U4,{section:a,keyPath:[],dictionaryKey:e.key})},BX=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const a=Xr(),[o,l]=C.useState(1),{returnToDictionaryList:d}=un(_Q),{setFocusedContent:f}=qE(),{setLocaleDictionaries:A}=WE();return C.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),A(m=>({...m,[e.key]:e}))},[]),N.jsx(jK,{availableLocales:(a==null?void 0:a.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(pt,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:N2,label:d.label.value,children:d.text}),N.jsx(bc,{defaultValue:o,onChange:m=>l(m),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),o===0&&N.jsx(gQ,{dictionary:e}),o===2&&N.jsx(bX,{dictionary:e}),o===1&&N.jsx(hQ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(RX,{dictionary:e,isDarkMode:n}),N.jsx(Cx,{dictionary:e,mode:r})]})})},OX=()=>{const{toasts:e}=bR();return N.jsxs(xM.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...o})=>N.jsxs(OM,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(LM,{children:n}),r&&N.jsx(wM,{children:r})]}),a,N.jsx(FM,{})]},t)),N.jsx(bM,{})]})},nb=(...e)=>{const{localeDictionaries:t}=lv(),{data:n,isWaitingData:r}=YM(...e),a=C.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=C.useMemo(()=>tH(a??{},t),[a,t]);return{online:a,locale:t,all:o,isLoading:r}},FX=({children:e})=>N.jsx(vj,{features:bz,children:e}),LX=({children:e})=>N.jsx(FX,{children:N.jsxs(D8,{children:[N.jsx(OX,{}),e]})}),wX=({children:e})=>N.jsx(gw,{children:N.jsx($L,{children:N.jsx(Mv,{path:"*",element:e})})}),ZE="dictionaryList",rb={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:pe({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:pe({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:pe({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:pe({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},k4=e=>`dictionary_edition_${e}`,ub=e=>{const t=k4(e),{isOpen:n,open:r,close:a}=Ff(),{getEditedContentValue:o}=Qs(),{focusedContent:l,setFocusedContent:d}=yi();return C.useEffect(()=>{var f;l&&(((f=l.keyPath)==null?void 0:f.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:o,close:()=>{a(t),d(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},MX=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:o}=un(rb),[l,d]=C.useState(!1),{all:f}=nb(),{focusedContent:A}=ub(t),m=C.useCallback(()=>{d(!1),n()},[n]),E=A==null?void 0:A.dictionaryKey;if(!E)return N.jsx(N.Fragment,{children:"No dictionary focused"});const g=f[E];return g?N.jsxs(N.Fragment,{children:[N.jsx(Sx,{isOpen:l,onClose:()=>d(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(BX,{dictionary:g,onClickDictionaryList:m,isDarkMode:r,mode:["local","remote"]})})}),N.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[N.jsx("h3",{className:"w-full text-center text-lg",children:g.title?g.title:g.key}),N.jsx(pt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:nR,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(Jz,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},HX=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=un(rb),a=k4(t),{focusedContent:o,close:l}=ub(t),{openDictionaryListDrawer:d}=Ff(A=>({openDictionaryListDrawer:()=>A.open(ZE)})),f=()=>{l(),d()};return N.jsx(cR,{identifier:a,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(MX,{focusedContent:o,locale:e,identifier:a,handleOnBack:f,isDarkMode:n})})},PX=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=yi(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(HX,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},UX=()=>{const{all:e}=nb(),t=C.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=Ff(),{editedContent:a}=Dn(),{setFocusedContent:o}=yi(),l=f=>{n(ZE);const{filePath:A}=e[f];o({dictionaryKey:f,dictionaryPath:A}),r(k4(f))},d=C.useCallback(f=>Object.keys(a??{}).includes(f),[a]);return N.jsx(cR,{title:"Dictionary list",identifier:ZE,children:t.map(f=>N.jsx("div",{children:N.jsx(pt,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:k0,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},kX=({children:e})=>{const[t]=Ta("INTLAYER_CURRENT_LOCALE",void 0,{receive:!0,emit:!1});return N.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,N.jsx(PX,{locale:t}),N.jsx(UX,{})]})},GX=()=>{const[e,t]=C.useState();return C.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},jX=({children:e,iframeRef:t})=>{const n=GX(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(HF,{postMessage:o=>{var l,d;window==null||window.postMessage(o,a),(d=(l=t.current)==null?void 0:l.contentWindow)==null||d.postMessage(o,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):N.jsx(ks,{})},VX=()=>{const{editedContent:e,setEditedContentState:t}=Dn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return C.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),C.useEffect(()=>{typeof e<"u"||n()},[]),n},zX=(...e)=>Xv(Bf(e)),KX={key:"no-application-url-view",content:{title:pe({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:pe({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:pe({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:pe({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},YX=()=>{const{title:e,description:t,documentationLink:n}=un(KX);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(S4,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(H4,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},ZX=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Xr(),r=()=>a(n.enabled),a=bF();_v(r),VX(),kF();const[o,l]=C.useState(!1),[d]=PF(void 0,{receive:!0,emit:!1});return C.useEffect(()=>{typeof d=="string"&&window.history.replaceState({},"",d)},[d]),n.applicationURL?N.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[N.jsx(ks,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:zX("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(eu,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(YX,{})})})},WX=()=>{const e=C.useRef(null),t=vi();return N.jsx(jX,{iframeRef:e,children:N.jsx(KF,{disableEditor:!0,children:N.jsx(kX,{children:N.jsx(ZX,{iframeRef:e,applicationPath:t.pathname})})})})},$X=()=>N.jsx(wX,{children:N.jsx(LX,{children:N.jsx(WX,{})})});OO.createRoot(document.getElementById("root")).render(N.jsx(C.StrictMode,{children:N.jsx($X,{})}));