@alivault/pico 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/abap-smLpETzL.js +1 -0
  4. package/.output/public/assets/actionscript-3-o-aRvjY5.js +1 -0
  5. package/.output/public/assets/ada-D5RRX1i4.js +1 -0
  6. package/.output/public/assets/andromeeda-N4z3YzmR.js +1 -0
  7. package/.output/public/assets/angular-html-BZNntD0J.js +1 -0
  8. package/.output/public/assets/angular-ts-SQQMYL2C.js +1 -0
  9. package/.output/public/assets/apache-DttKlSqg.js +1 -0
  10. package/.output/public/assets/apex-DL7j-a2n.js +1 -0
  11. package/.output/public/assets/apl-D5V6uPDr.js +1 -0
  12. package/.output/public/assets/applescript-DCbL_2FX.js +1 -0
  13. package/.output/public/assets/ara-DqheWJCe.js +1 -0
  14. package/.output/public/assets/asciidoc-BH2sf2K4.js +1 -0
  15. package/.output/public/assets/asm-rfjOMz3U.js +1 -0
  16. package/.output/public/assets/astro-DeXKSaFP.js +1 -0
  17. package/.output/public/assets/aurora-x-CND-FqEb.js +1 -0
  18. package/.output/public/assets/awk-CMV5n9Z7.js +1 -0
  19. package/.output/public/assets/ayu-dark-on7xzq_B.js +1 -0
  20. package/.output/public/assets/ayu-light-DnGeGGc2.js +1 -0
  21. package/.output/public/assets/ayu-mirage-DG3LlYC_.js +1 -0
  22. package/.output/public/assets/ballerina-BjMqJjlr.js +1 -0
  23. package/.output/public/assets/bat-BaVbo_qw.js +1 -0
  24. package/.output/public/assets/beancount-DBt5Mbc_.js +1 -0
  25. package/.output/public/assets/berry-Cyjuxiss.js +1 -0
  26. package/.output/public/assets/bibtex-BV_0nsPq.js +1 -0
  27. package/.output/public/assets/bicep-C2gEwu4J.js +1 -0
  28. package/.output/public/assets/bird2-BRyaEJd0.js +1 -0
  29. package/.output/public/assets/blade-Bu5re0Vg.js +1 -0
  30. package/.output/public/assets/bsl-B1qbqNES.js +1 -0
  31. package/.output/public/assets/c-Nc9zJT78.js +1 -0
  32. package/.output/public/assets/c3-DTTbp5N2.js +1 -0
  33. package/.output/public/assets/cadence-CPz83cmI.js +1 -0
  34. package/.output/public/assets/cairo-BDj8wWhy.js +1 -0
  35. package/.output/public/assets/catppuccin-frappe-Dr22sraq.js +1 -0
  36. package/.output/public/assets/catppuccin-latte-C57EeX8c.js +1 -0
  37. package/.output/public/assets/catppuccin-macchiato-CpheI4uD.js +1 -0
  38. package/.output/public/assets/catppuccin-mocha-D8Lmdks_.js +1 -0
  39. package/.output/public/assets/clarity-CFJ2Yc3q.js +1 -0
  40. package/.output/public/assets/clojure-6R01QgJC.js +1 -0
  41. package/.output/public/assets/cmake-D5rSbMir.js +1 -0
  42. package/.output/public/assets/cobol-nvZDS9LT.js +1 -0
  43. package/.output/public/assets/codeowners-_3A-ClkN.js +1 -0
  44. package/.output/public/assets/codeql-DlIhJTR7.js +1 -0
  45. package/.output/public/assets/coffee-BKLOTq4e.js +1 -0
  46. package/.output/public/assets/common-lisp-BvQzz173.js +1 -0
  47. package/.output/public/assets/coq-DTNXReIC.js +1 -0
  48. package/.output/public/assets/cpp-D6g1DVNt.js +1 -0
  49. package/.output/public/assets/crystal-DfoZI57w.js +1 -0
  50. package/.output/public/assets/csharp-BDKQY1K9.js +1 -0
  51. package/.output/public/assets/css-DRmnABqB.js +1 -0
  52. package/.output/public/assets/csv-DNUpVBxl.js +1 -0
  53. package/.output/public/assets/cue-DDdBc2s3.js +1 -0
  54. package/.output/public/assets/cypher-CguaznO2.js +1 -0
  55. package/.output/public/assets/d-CHcoyjv3.js +1 -0
  56. package/.output/public/assets/dark-plus-CqeW_0kH.js +1 -0
  57. package/.output/public/assets/dart-RM3aRphk.js +1 -0
  58. package/.output/public/assets/dax-nbnY1d79.js +1 -0
  59. package/.output/public/assets/desktop-BD76cvxT.js +1 -0
  60. package/.output/public/assets/diff-CdkWtnkL.js +1 -0
  61. package/.output/public/assets/docker-ZyPHc6zB.js +1 -0
  62. package/.output/public/assets/dotenv-BdJZEwA6.js +1 -0
  63. package/.output/public/assets/dracula-CtqCPLGa.js +1 -0
  64. package/.output/public/assets/dracula-soft-DmBpwRAy.js +1 -0
  65. package/.output/public/assets/dream-maker-BJL4qlg3.js +1 -0
  66. package/.output/public/assets/edge-DwocGnOF.js +1 -0
  67. package/.output/public/assets/elixir-Dtbfds1r.js +1 -0
  68. package/.output/public/assets/elm-CpPtm471.js +1 -0
  69. package/.output/public/assets/emacs-lisp-_LyYa2Ky.js +1 -0
  70. package/.output/public/assets/erb--z3IM9Cb.js +1 -0
  71. package/.output/public/assets/erlang-Bc4hQuqa.js +1 -0
  72. package/.output/public/assets/everforest-dark-CrbyKk4n.js +1 -0
  73. package/.output/public/assets/everforest-light-DRbSh8Tm.js +1 -0
  74. package/.output/public/assets/fennel-CC2BkRsS.js +1 -0
  75. package/.output/public/assets/fish-D2ZCzqcE.js +1 -0
  76. package/.output/public/assets/fluent-DKAm3m7q.js +1 -0
  77. package/.output/public/assets/fortran-fixed-form-B02FOYI-.js +1 -0
  78. package/.output/public/assets/fortran-free-form-BPTf0lbT.js +1 -0
  79. package/.output/public/assets/fsharp-DhdR18vN.js +1 -0
  80. package/.output/public/assets/gdresource-DgnrMPIx.js +1 -0
  81. package/.output/public/assets/gdscript-CsadCSaZ.js +1 -0
  82. package/.output/public/assets/gdshader-PfnN_8tR.js +1 -0
  83. package/.output/public/assets/genie-Bj-orPAV.js +1 -0
  84. package/.output/public/assets/gherkin-COVWpJ-Q.js +1 -0
  85. package/.output/public/assets/git-commit-DGJi7qBD.js +1 -0
  86. package/.output/public/assets/git-rebase-Ce47xoa6.js +1 -0
  87. package/.output/public/assets/github-dark-default-DX3IG_X0.js +1 -0
  88. package/.output/public/assets/github-dark-dimmed-CH6p_7ez.js +1 -0
  89. package/.output/public/assets/github-dark-high-contrast-Bg2sSao5.js +1 -0
  90. package/.output/public/assets/github-dark-ipGuFGYC.js +1 -0
  91. package/.output/public/assets/github-light-BxjqOQl0.js +1 -0
  92. package/.output/public/assets/github-light-default-DwpDd1IQ.js +1 -0
  93. package/.output/public/assets/github-light-high-contrast-C0QeixPf.js +1 -0
  94. package/.output/public/assets/gleam-BF2NigGj.js +1 -0
  95. package/.output/public/assets/glimmer-js-C0BuzxQC.js +1 -0
  96. package/.output/public/assets/glimmer-ts-irOZ-cAQ.js +1 -0
  97. package/.output/public/assets/glsl-JAhLUe0P.js +1 -0
  98. package/.output/public/assets/gn-CMIt9roj.js +1 -0
  99. package/.output/public/assets/gnuplot-DgWlRTEj.js +1 -0
  100. package/.output/public/assets/go-DLnOLj8q.js +1 -0
  101. package/.output/public/assets/graphql-D2ba3BkR.js +1 -0
  102. package/.output/public/assets/groovy-B9qLWIkE.js +1 -0
  103. package/.output/public/assets/gruvbox-dark-hard-BIMX9ePb.js +1 -0
  104. package/.output/public/assets/gruvbox-dark-medium-DxuwyVzM.js +1 -0
  105. package/.output/public/assets/gruvbox-dark-soft-ba2fjht0.js +1 -0
  106. package/.output/public/assets/gruvbox-light-hard-DAJK2PqC.js +1 -0
  107. package/.output/public/assets/gruvbox-light-medium-WRifDAJD.js +1 -0
  108. package/.output/public/assets/gruvbox-light-soft-B0dBOoVB.js +1 -0
  109. package/.output/public/assets/hack-CgzUpY8l.js +1 -0
  110. package/.output/public/assets/haml-C-oIZcDo.js +1 -0
  111. package/.output/public/assets/handlebars-CbP-Mhzf.js +1 -0
  112. package/.output/public/assets/haskell-BaGpmm_c.js +1 -0
  113. package/.output/public/assets/haxe-DfXTCEOz.js +1 -0
  114. package/.output/public/assets/hcl-CbCtpSbi.js +1 -0
  115. package/.output/public/assets/hjson-_4-w-pHU.js +1 -0
  116. package/.output/public/assets/hlsl-DpuYn7pp.js +1 -0
  117. package/.output/public/assets/horizon-C5RtD1fY.js +1 -0
  118. package/.output/public/assets/horizon-bright-pEOice34.js +1 -0
  119. package/.output/public/assets/houston-A0zg9vNP.js +1 -0
  120. package/.output/public/assets/html-ddqpqPg0.js +1 -0
  121. package/.output/public/assets/html-derivative-DWGxf_At.js +1 -0
  122. package/.output/public/assets/http-Bg1nG1nG.js +1 -0
  123. package/.output/public/assets/hurl-zm47Pi1n.js +1 -0
  124. package/.output/public/assets/hxml-adC65L_J.js +1 -0
  125. package/.output/public/assets/hy-t9zDXBje.js +1 -0
  126. package/.output/public/assets/imba-Bxu-TDfw.js +1 -0
  127. package/.output/public/assets/index-CthXqlK7.js +53 -0
  128. package/.output/public/assets/ini-D-v34c8N.js +1 -0
  129. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  130. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  131. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  132. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  133. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  134. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  135. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  136. package/.output/public/assets/java-DVLnIrqC.js +1 -0
  137. package/.output/public/assets/javascript-Cop1kpy_.js +1 -0
  138. package/.output/public/assets/jinja-Bnj4awH5.js +1 -0
  139. package/.output/public/assets/jison-CuCNs9Q3.js +1 -0
  140. package/.output/public/assets/json-CTw4n7kn.js +1 -0
  141. package/.output/public/assets/json5-D0XL1D5m.js +1 -0
  142. package/.output/public/assets/jsonc-BBgf3TX3.js +1 -0
  143. package/.output/public/assets/jsonl-KrKLbtB7.js +1 -0
  144. package/.output/public/assets/jsonnet-B2ZwWMOt.js +1 -0
  145. package/.output/public/assets/jssm-ByRpI9-B.js +1 -0
  146. package/.output/public/assets/jsx-0oMUGqZj.js +1 -0
  147. package/.output/public/assets/julia-DNYHzXlE.js +1 -0
  148. package/.output/public/assets/just-BlWkkmf2.js +1 -0
  149. package/.output/public/assets/kanagawa-dragon-CtPmcCMp.js +1 -0
  150. package/.output/public/assets/kanagawa-lotus-DpOXEGCa.js +1 -0
  151. package/.output/public/assets/kanagawa-wave-CLVCyc-n.js +1 -0
  152. package/.output/public/assets/kdl-6FPPEH4H.js +1 -0
  153. package/.output/public/assets/kotlin-D4L3Nd2D.js +1 -0
  154. package/.output/public/assets/kusto-D-mmc07O.js +1 -0
  155. package/.output/public/assets/laserwave-7fEj4XGb.js +1 -0
  156. package/.output/public/assets/latex-DqPzjMIt.js +1 -0
  157. package/.output/public/assets/lean-BMVMuP2E.js +1 -0
  158. package/.output/public/assets/less-C95PyOu0.js +1 -0
  159. package/.output/public/assets/light-plus-DHI2dh3p.js +1 -0
  160. package/.output/public/assets/liquid-BURJK16h.js +1 -0
  161. package/.output/public/assets/llvm-Dy3qORTl.js +1 -0
  162. package/.output/public/assets/log-BQop7fzg.js +1 -0
  163. package/.output/public/assets/logo-DKtnYmrp.js +1 -0
  164. package/.output/public/assets/lua-31hdJClp.js +1 -0
  165. package/.output/public/assets/luau-Dha4KG0q.js +1 -0
  166. package/.output/public/assets/make-DfmS6buu.js +1 -0
  167. package/.output/public/assets/markdown-BaI9LyM4.js +1 -0
  168. package/.output/public/assets/marko-C2ZcdSLh.js +1 -0
  169. package/.output/public/assets/material-theme-Dm6ETY8i.js +1 -0
  170. package/.output/public/assets/material-theme-darker-BeyjmM5Z.js +1 -0
  171. package/.output/public/assets/material-theme-lighter-CCOYYzKL.js +1 -0
  172. package/.output/public/assets/material-theme-ocean-CUtPiiX3.js +1 -0
  173. package/.output/public/assets/material-theme-palenight-2L4zMwIM.js +1 -0
  174. package/.output/public/assets/matlab-BT79Cq_j.js +1 -0
  175. package/.output/public/assets/mdc-N1ii9pk5.js +1 -0
  176. package/.output/public/assets/mdx-CxGBwLNt.js +1 -0
  177. package/.output/public/assets/mermaid-DLf3axBN.js +1 -0
  178. package/.output/public/assets/min-dark-B8TUPGHg.js +1 -0
  179. package/.output/public/assets/min-light-BDOoBxcA.js +1 -0
  180. package/.output/public/assets/mipsasm-DXuU_0cI.js +1 -0
  181. package/.output/public/assets/mojo-1Omp2pIo.js +1 -0
  182. package/.output/public/assets/monokai-E_VBmXGZ.js +1 -0
  183. package/.output/public/assets/moonbit-DZzq699o.js +1 -0
  184. package/.output/public/assets/move-DxDAOJVd.js +1 -0
  185. package/.output/public/assets/narrat-CxDcPPb9.js +1 -0
  186. package/.output/public/assets/nextflow-JEyYUlIq.js +1 -0
  187. package/.output/public/assets/nextflow-groovy-wvmJO4hi.js +1 -0
  188. package/.output/public/assets/nginx-BuomO0W8.js +1 -0
  189. package/.output/public/assets/night-owl-DefhalNX.js +1 -0
  190. package/.output/public/assets/night-owl-light-byb3AbEn.js +1 -0
  191. package/.output/public/assets/nim-hKoEPsYL.js +1 -0
  192. package/.output/public/assets/nix-DsFTDHWT.js +1 -0
  193. package/.output/public/assets/nord-D5rQzHT-.js +1 -0
  194. package/.output/public/assets/nushell-BQ_rO0AM.js +1 -0
  195. package/.output/public/assets/objective-c-BMq6JT_m.js +1 -0
  196. package/.output/public/assets/objective-cpp-DRwojuGv.js +1 -0
  197. package/.output/public/assets/ocaml-e4_gKO6E.js +1 -0
  198. package/.output/public/assets/odin-mdTPwYOg.js +1 -0
  199. package/.output/public/assets/one-dark-pro-DxXww9jg.js +1 -0
  200. package/.output/public/assets/one-light-D9c03w7t.js +1 -0
  201. package/.output/public/assets/openscad-D2aTdNfr.js +1 -0
  202. package/.output/public/assets/pascal-D4n_G8vj.js +1 -0
  203. package/.output/public/assets/perl-CAGVW6Ra.js +1 -0
  204. package/.output/public/assets/php-BycclmzS.js +1 -0
  205. package/.output/public/assets/pierre-dark-CizZ1Z5z.js +1 -0
  206. package/.output/public/assets/pierre-light-CHMWfAMe.js +1 -0
  207. package/.output/public/assets/pkl-DcjhAp0L.js +1 -0
  208. package/.output/public/assets/plastic-uOsw7z1x.js +1 -0
  209. package/.output/public/assets/plsql-BSy3Ag0J.js +1 -0
  210. package/.output/public/assets/po-Be96RYkA.js +1 -0
  211. package/.output/public/assets/poimandres-CyO4HORD.js +1 -0
  212. package/.output/public/assets/polar-BmhMKWum.js +1 -0
  213. package/.output/public/assets/postcss-BTQso3H9.js +1 -0
  214. package/.output/public/assets/powerquery-DVyQv3M2.js +1 -0
  215. package/.output/public/assets/powershell-BmtCGJVD.js +1 -0
  216. package/.output/public/assets/prisma-CCFA9rEj.js +1 -0
  217. package/.output/public/assets/prolog-DWGEEo78.js +1 -0
  218. package/.output/public/assets/proto-C3eop1kM.js +1 -0
  219. package/.output/public/assets/pug-4maJHz9G.js +1 -0
  220. package/.output/public/assets/puppet-C0_7Nv5A.js +1 -0
  221. package/.output/public/assets/purescript-Bv-B8yRw.js +1 -0
  222. package/.output/public/assets/python-CKg5r0C3.js +1 -0
  223. package/.output/public/assets/qml-JLIQfzyb.js +1 -0
  224. package/.output/public/assets/qmldir-Cqfb4Lox.js +1 -0
  225. package/.output/public/assets/qss-Csho9BH8.js +1 -0
  226. package/.output/public/assets/r-UcxRcvcA.js +1 -0
  227. package/.output/public/assets/racket-D8-uWeQH.js +1 -0
  228. package/.output/public/assets/raku-Cj4JSa8p.js +1 -0
  229. package/.output/public/assets/razor-P8rbooCh.js +1 -0
  230. package/.output/public/assets/red-z4H4llUY.js +1 -0
  231. package/.output/public/assets/reg-DXGFiJSl.js +1 -0
  232. package/.output/public/assets/regexp-3-A0406L.js +1 -0
  233. package/.output/public/assets/rel-CunnVTBK.js +1 -0
  234. package/.output/public/assets/riscv-C8BcOCkS.js +1 -0
  235. package/.output/public/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
  236. package/.output/public/assets/ron-DiDyR9oa.js +1 -0
  237. package/.output/public/assets/rose-pine-BADquuIH.js +1 -0
  238. package/.output/public/assets/rose-pine-dawn-BLcEeBoh.js +1 -0
  239. package/.output/public/assets/rose-pine-moon-BK_tLY1Y.js +1 -0
  240. package/.output/public/assets/rosmsg-CHmL1Uyj.js +1 -0
  241. package/.output/public/assets/routes-Bp0r03R8.js +2147 -0
  242. package/.output/public/assets/rst-C6GHyL-N.js +1 -0
  243. package/.output/public/assets/ruby-Cl8PVkbY.js +1 -0
  244. package/.output/public/assets/rust-DjJFInu3.js +1 -0
  245. package/.output/public/assets/sas-CXoVwlZN.js +1 -0
  246. package/.output/public/assets/sass-D3xZ5o-v.js +1 -0
  247. package/.output/public/assets/scala-B0IRml5w.js +1 -0
  248. package/.output/public/assets/scheme-BhwcV3Av.js +1 -0
  249. package/.output/public/assets/scss-DNczJ95n.js +1 -0
  250. package/.output/public/assets/sdbl-BmWYR-pI.js +1 -0
  251. package/.output/public/assets/shaderlab-DZ3Lsiak.js +1 -0
  252. package/.output/public/assets/shellscript-DaVPunOM.js +1 -0
  253. package/.output/public/assets/shellsession-COm1V40U.js +1 -0
  254. package/.output/public/assets/slack-dark-DOnVms5P.js +1 -0
  255. package/.output/public/assets/slack-ochin-DcRTft4q.js +1 -0
  256. package/.output/public/assets/smalltalk-DVQuUMII.js +1 -0
  257. package/.output/public/assets/snazzy-light-x9CLJ1W9.js +1 -0
  258. package/.output/public/assets/solarized-dark-BB1sh-pe.js +1 -0
  259. package/.output/public/assets/solarized-light-9-RPS998.js +1 -0
  260. package/.output/public/assets/solidity-gQ4WXILB.js +1 -0
  261. package/.output/public/assets/soy-DwewhJ_3.js +1 -0
  262. package/.output/public/assets/sparql-B9c85a_o.js +1 -0
  263. package/.output/public/assets/splunk-OB48_RcD.js +1 -0
  264. package/.output/public/assets/sql-CrTmZCMa.js +1 -0
  265. package/.output/public/assets/ssh-config-DA9YMRGV.js +1 -0
  266. package/.output/public/assets/stata-Bl--TAbZ.js +1 -0
  267. package/.output/public/assets/styles-DEX5mU_p.css +2 -0
  268. package/.output/public/assets/stylus-sKwvsUaC.js +1 -0
  269. package/.output/public/assets/surrealql-BW79EE-U.js +1 -0
  270. package/.output/public/assets/svelte-ziMErdPi.js +1 -0
  271. package/.output/public/assets/swift-C72NbAtg.js +1 -0
  272. package/.output/public/assets/synthwave-84-eJ9uRN_S.js +1 -0
  273. package/.output/public/assets/system-verilog-CnWMF7Nq.js +1 -0
  274. package/.output/public/assets/systemd-DMzItW5N.js +1 -0
  275. package/.output/public/assets/talonscript-DopQCWDL.js +1 -0
  276. package/.output/public/assets/tasl-C28SYKbq.js +1 -0
  277. package/.output/public/assets/tcl-DHq7zmoF.js +1 -0
  278. package/.output/public/assets/templ-C_9I6ncv.js +1 -0
  279. package/.output/public/assets/terraform-CogS1YKX.js +1 -0
  280. package/.output/public/assets/tex-D8LVuLf5.js +1 -0
  281. package/.output/public/assets/tokyo-night-B9N7LyrF.js +1 -0
  282. package/.output/public/assets/toml-BH_iPsgK.js +1 -0
  283. package/.output/public/assets/ts-tags-DKuFCGsc.js +1 -0
  284. package/.output/public/assets/tsv-BIkdBZX1.js +1 -0
  285. package/.output/public/assets/tsx-BjkCKOtw.js +1 -0
  286. package/.output/public/assets/turtle-CqNXyJWZ.js +1 -0
  287. package/.output/public/assets/twig-Bs1kcsO6.js +1 -0
  288. package/.output/public/assets/typescript-BoHeP9q1.js +1 -0
  289. package/.output/public/assets/typespec-CQ9LYD_e.js +1 -0
  290. package/.output/public/assets/typst-T-Fsk-Sv.js +1 -0
  291. package/.output/public/assets/v-BhMEOw9x.js +1 -0
  292. package/.output/public/assets/vala-DzajMnwt.js +1 -0
  293. package/.output/public/assets/vb-7Xr8dEYW.js +1 -0
  294. package/.output/public/assets/verilog-AvXtwZir.js +1 -0
  295. package/.output/public/assets/vesper-CtgQQ2sf.js +1 -0
  296. package/.output/public/assets/vhdl-BHu0zg1P.js +1 -0
  297. package/.output/public/assets/viml-Di0QpLfC.js +1 -0
  298. package/.output/public/assets/vitesse-black-jXdfyqgD.js +1 -0
  299. package/.output/public/assets/vitesse-dark-B88PxG1r.js +1 -0
  300. package/.output/public/assets/vitesse-light-BXxZh2iV.js +1 -0
  301. package/.output/public/assets/vue-Dnf0y5RU.js +1 -0
  302. package/.output/public/assets/vue-html-CRtKS76J.js +1 -0
  303. package/.output/public/assets/vue-vine-BxjPqU7T.js +1 -0
  304. package/.output/public/assets/vyper-C3R5yXgx.js +1 -0
  305. package/.output/public/assets/wasm-CEUrWlVz.js +1 -0
  306. package/.output/public/assets/wasm-Chsuwt1A.js +1 -0
  307. package/.output/public/assets/wenyan-BonVcr2i.js +1 -0
  308. package/.output/public/assets/wgsl-D59WYmNq.js +1 -0
  309. package/.output/public/assets/wikitext-ariTI2Wk.js +1 -0
  310. package/.output/public/assets/wit-EA4fa3Dt.js +1 -0
  311. package/.output/public/assets/wolfram-DDp7LhyU.js +1 -0
  312. package/.output/public/assets/xml-eU7M3iZJ.js +1 -0
  313. package/.output/public/assets/xsl-DSqe4nTO.js +1 -0
  314. package/.output/public/assets/yaml-BTD1XHJG.js +1 -0
  315. package/.output/public/assets/zenscript-4WaROUyc.js +1 -0
  316. package/.output/public/assets/zig-CJoLJGwV.js +1 -0
  317. package/.output/public/favicon.png +0 -0
  318. package/.output/public/favicon.svg +7 -0
  319. package/.output/public/manifest.json +28 -0
  320. package/.output/public/robots.txt +3 -0
  321. package/.output/public/screenshots/pico-workspace-alt.png +0 -0
  322. package/.output/public/screenshots/pico-workspace.png +0 -0
  323. package/.output/public/sounds/session-done.mp3 +0 -0
  324. package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +5 -0
  325. package/.output/server/_chunks/ssr-renderer.mjs +15 -0
  326. package/.output/server/_libs/@base-ui/react+[...].mjs +14407 -0
  327. package/.output/server/_libs/@dnd-kit/core+[...].mjs +2748 -0
  328. package/.output/server/_libs/@pierre/diffs+[...].mjs +19074 -0
  329. package/.output/server/_libs/@pierre/trees+[...].mjs +9236 -0
  330. package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +1789 -0
  331. package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +136 -0
  332. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
  333. package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +1607 -0
  334. package/.output/server/_libs/@tanstack/react-router+[...].mjs +13950 -0
  335. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +90 -0
  336. package/.output/server/_libs/bail.mjs +13 -0
  337. package/.output/server/_libs/character-entities.mjs +2135 -0
  338. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  339. package/.output/server/_libs/cmdk.mjs +473 -0
  340. package/.output/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  341. package/.output/server/_libs/devlop.mjs +5 -0
  342. package/.output/server/_libs/diff.mjs +732 -0
  343. package/.output/server/_libs/dnd-kit__accessibility.mjs +46 -0
  344. package/.output/server/_libs/dnd-kit__sortable.mjs +400 -0
  345. package/.output/server/_libs/escape-string-regexp.mjs +7 -0
  346. package/.output/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  347. package/.output/server/_libs/extend.mjs +75 -0
  348. package/.output/server/_libs/h3+rou3+srvx.mjs +1210 -0
  349. package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +1244 -0
  350. package/.output/server/_libs/hookable.mjs +41 -0
  351. package/.output/server/_libs/html-url-attributes.mjs +44 -0
  352. package/.output/server/_libs/is-plain-obj.mjs +8 -0
  353. package/.output/server/_libs/longest-streak.mjs +29 -0
  354. package/.output/server/_libs/lucide-react.mjs +632 -0
  355. package/.output/server/_libs/markdown-table.mjs +289 -0
  356. package/.output/server/_libs/mdast-util-find-and-replace+[...].mjs +636 -0
  357. package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +8409 -0
  358. package/.output/server/_libs/mdast-util-gfm+[...].mjs +2346 -0
  359. package/.output/server/_libs/mdast-util-to-hast+[...].mjs +1772 -0
  360. package/.output/server/_libs/micromark-extension-gfm+[...].mjs +2234 -0
  361. package/.output/server/_libs/next-themes.mjs +124 -0
  362. package/.output/server/_libs/pierre__theme.mjs +10 -0
  363. package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
  364. package/.output/server/_libs/radix-ui__react-compose-refs.mjs +30 -0
  365. package/.output/server/_libs/radix-ui__react-context.mjs +88 -0
  366. package/.output/server/_libs/react-markdown+[...].mjs +2316 -0
  367. package/.output/server/_libs/remark-gfm.mjs +34 -0
  368. package/.output/server/_libs/shiki.mjs +16 -0
  369. package/.output/server/_libs/shikijs__langs.mjs +1355 -0
  370. package/.output/server/_libs/shikijs__themes.mjs +262 -0
  371. package/.output/server/_libs/sonner.mjs +908 -0
  372. package/.output/server/_libs/sugar-high.mjs +1036 -0
  373. package/.output/server/_libs/tailwind-merge.mjs +1962 -0
  374. package/.output/server/_libs/tanstack__history.mjs +342 -0
  375. package/.output/server/_libs/tanstack__pacer.mjs +1111 -0
  376. package/.output/server/_libs/tanstack__query-core.mjs +2202 -0
  377. package/.output/server/_libs/tanstack__react-hotkeys.mjs +152 -0
  378. package/.output/server/_libs/tanstack__react-query.mjs +180 -0
  379. package/.output/server/_libs/tanstack__react-store.mjs +39 -0
  380. package/.output/server/_libs/tanstack__router-core.mjs +6 -0
  381. package/.output/server/_libs/tanstack__store.mjs +28 -0
  382. package/.output/server/_libs/ufo.mjs +64 -0
  383. package/.output/server/_libs/unctx.mjs +82 -0
  384. package/.output/server/_libs/ungap__structured-clone.mjs +197 -0
  385. package/.output/server/_libs/vaul.mjs +1250 -0
  386. package/.output/server/_libs/zod.mjs +3341 -0
  387. package/.output/server/_runtime.mjs +35 -0
  388. package/.output/server/_ssr/router-Bz70uQ0p.mjs +7231 -0
  389. package/.output/server/_ssr/routes-C7oV8l68.mjs +21622 -0
  390. package/.output/server/_ssr/routes-DGvt0TQ-.mjs +1275 -0
  391. package/.output/server/_ssr/ssr.mjs +5176 -0
  392. package/.output/server/_ssr/start-C9AjCGlr.mjs +4 -0
  393. package/.output/server/_tanstack-start-manifest_v-D0yEuwRY.mjs +65 -0
  394. package/.output/server/index.mjs +2563 -0
  395. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  396. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  397. package/.output/server/node_modules/tslib/package.json +47 -0
  398. package/.output/server/node_modules/tslib/tslib.js +484 -0
  399. package/.output/server/package.json +9 -0
  400. package/LICENSE +8 -0
  401. package/README.md +111 -0
  402. package/bin/pico.mjs +206 -0
  403. package/package.json +105 -0
  404. package/public/screenshots/pico-workspace-alt.png +0 -0
  405. package/public/screenshots/pico-workspace.png +0 -0
  406. package/scripts/patch-react-jsx-dev-runtime.mjs +93 -0
@@ -0,0 +1,1789 @@
1
+ import { i as __toESM } from "../../_runtime.mjs";
2
+ import { X as require_react, Y as require_jsx_runtime, q as require_react_dom } from "../@base-ui/react+[...].mjs";
3
+ import { t as composeEventHandlers } from "../radix-ui__primitive.mjs";
4
+ import { n as useComposedRefs, t as composeRefs } from "../radix-ui__react-compose-refs.mjs";
5
+ import { n as createContextScope, t as createContext2 } from "../radix-ui__react-context.mjs";
6
+ import { __assign, __rest, __spreadArray } from "tslib";
7
+ //#region node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
8
+ var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
9
+ var useLayoutEffect2 = globalThis?.document ? import_react.useLayoutEffect : () => {};
10
+ //#endregion
11
+ //#region node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-id/dist/index.mjs
12
+ var useReactId = import_react[" useId ".trim().toString()] || (() => void 0);
13
+ var count$1 = 0;
14
+ function useId(deterministicId) {
15
+ const [id, setId] = import_react.useState(useReactId());
16
+ useLayoutEffect2(() => {
17
+ if (!deterministicId) setId((reactId) => reactId ?? String(count$1++));
18
+ }, [deterministicId]);
19
+ return deterministicId || (id ? `radix-${id}` : "");
20
+ }
21
+ //#endregion
22
+ //#region node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
23
+ var useInsertionEffect = import_react[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
24
+ function useControllableState({ prop, defaultProp, onChange = () => {}, caller }) {
25
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
26
+ defaultProp,
27
+ onChange
28
+ });
29
+ const isControlled = prop !== void 0;
30
+ const value = isControlled ? prop : uncontrolledProp;
31
+ {
32
+ const isControlledRef = import_react.useRef(prop !== void 0);
33
+ import_react.useEffect(() => {
34
+ const wasControlled = isControlledRef.current;
35
+ if (wasControlled !== isControlled) console.warn(`${caller} is changing from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);
36
+ isControlledRef.current = isControlled;
37
+ }, [isControlled, caller]);
38
+ }
39
+ return [value, import_react.useCallback((nextValue) => {
40
+ if (isControlled) {
41
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
42
+ if (value2 !== prop) onChangeRef.current?.(value2);
43
+ } else setUncontrolledProp(nextValue);
44
+ }, [
45
+ isControlled,
46
+ prop,
47
+ setUncontrolledProp,
48
+ onChangeRef
49
+ ])];
50
+ }
51
+ function useUncontrolledState({ defaultProp, onChange }) {
52
+ const [value, setValue] = import_react.useState(defaultProp);
53
+ const prevValueRef = import_react.useRef(value);
54
+ const onChangeRef = import_react.useRef(onChange);
55
+ useInsertionEffect(() => {
56
+ onChangeRef.current = onChange;
57
+ }, [onChange]);
58
+ import_react.useEffect(() => {
59
+ if (prevValueRef.current !== value) {
60
+ onChangeRef.current?.(value);
61
+ prevValueRef.current = value;
62
+ }
63
+ }, [value, prevValueRef]);
64
+ return [
65
+ value,
66
+ setValue,
67
+ onChangeRef
68
+ ];
69
+ }
70
+ function isFunction(value) {
71
+ return typeof value === "function";
72
+ }
73
+ //#endregion
74
+ //#region node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-slot/dist/index.mjs
75
+ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
76
+ var import_jsx_runtime = require_jsx_runtime();
77
+ /* @__NO_SIDE_EFFECTS__ */
78
+ function createSlot(ownerName) {
79
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
80
+ const Slot2 = import_react.forwardRef((props, forwardedRef) => {
81
+ const { children, ...slotProps } = props;
82
+ const childrenArray = import_react.Children.toArray(children);
83
+ const slottable = childrenArray.find(isSlottable);
84
+ if (slottable) {
85
+ const newElement = slottable.props.children;
86
+ const newChildren = childrenArray.map((child) => {
87
+ if (child === slottable) {
88
+ if (import_react.Children.count(newElement) > 1) return import_react.Children.only(null);
89
+ return import_react.isValidElement(newElement) ? newElement.props.children : null;
90
+ } else return child;
91
+ });
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
93
+ ...slotProps,
94
+ ref: forwardedRef,
95
+ children: import_react.isValidElement(newElement) ? import_react.cloneElement(newElement, void 0, newChildren) : null
96
+ });
97
+ }
98
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
99
+ ...slotProps,
100
+ ref: forwardedRef,
101
+ children
102
+ });
103
+ });
104
+ Slot2.displayName = `${ownerName}.Slot`;
105
+ return Slot2;
106
+ }
107
+ /* @__NO_SIDE_EFFECTS__ */
108
+ function createSlotClone(ownerName) {
109
+ const SlotClone = import_react.forwardRef((props, forwardedRef) => {
110
+ const { children, ...slotProps } = props;
111
+ if (import_react.isValidElement(children)) {
112
+ const childrenRef = getElementRef$1(children);
113
+ const props2 = mergeProps(slotProps, children.props);
114
+ if (children.type !== import_react.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
115
+ return import_react.cloneElement(children, props2);
116
+ }
117
+ return import_react.Children.count(children) > 1 ? import_react.Children.only(null) : null;
118
+ });
119
+ SlotClone.displayName = `${ownerName}.SlotClone`;
120
+ return SlotClone;
121
+ }
122
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
123
+ function isSlottable(child) {
124
+ return import_react.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
125
+ }
126
+ function mergeProps(slotProps, childProps) {
127
+ const overrideProps = { ...childProps };
128
+ for (const propName in childProps) {
129
+ const slotPropValue = slotProps[propName];
130
+ const childPropValue = childProps[propName];
131
+ if (/^on[A-Z]/.test(propName)) {
132
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
133
+ const result = childPropValue(...args);
134
+ slotPropValue(...args);
135
+ return result;
136
+ };
137
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
138
+ } else if (propName === "style") overrideProps[propName] = {
139
+ ...slotPropValue,
140
+ ...childPropValue
141
+ };
142
+ else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
143
+ }
144
+ return {
145
+ ...slotProps,
146
+ ...overrideProps
147
+ };
148
+ }
149
+ function getElementRef$1(element) {
150
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
151
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
152
+ if (mayWarn) return element.ref;
153
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
154
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
155
+ if (mayWarn) return element.props.ref;
156
+ return element.props.ref || element.ref;
157
+ }
158
+ //#endregion
159
+ //#region node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+re_004379973539b6d86227cd4562b544dc/node_modules/@radix-ui/react-primitive/dist/index.mjs
160
+ var Primitive = [
161
+ "a",
162
+ "button",
163
+ "div",
164
+ "form",
165
+ "h2",
166
+ "h3",
167
+ "img",
168
+ "input",
169
+ "label",
170
+ "li",
171
+ "nav",
172
+ "ol",
173
+ "p",
174
+ "select",
175
+ "span",
176
+ "svg",
177
+ "ul"
178
+ ].reduce((primitive, node) => {
179
+ const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
180
+ const Node = import_react.forwardRef((props, forwardedRef) => {
181
+ const { asChild, ...primitiveProps } = props;
182
+ const Comp = asChild ? Slot : node;
183
+ if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
184
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, {
185
+ ...primitiveProps,
186
+ ref: forwardedRef
187
+ });
188
+ });
189
+ Node.displayName = `Primitive.${node}`;
190
+ return {
191
+ ...primitive,
192
+ [node]: Node
193
+ };
194
+ }, {});
195
+ function dispatchDiscreteCustomEvent(target, event) {
196
+ if (target) import_react_dom.flushSync(() => target.dispatchEvent(event));
197
+ }
198
+ //#endregion
199
+ //#region node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
200
+ function useCallbackRef$1(callback) {
201
+ const callbackRef = import_react.useRef(callback);
202
+ import_react.useEffect(() => {
203
+ callbackRef.current = callback;
204
+ });
205
+ return import_react.useMemo(() => (...args) => callbackRef.current?.(...args), []);
206
+ }
207
+ //#endregion
208
+ //#region node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
209
+ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
210
+ const onEscapeKeyDown = useCallbackRef$1(onEscapeKeyDownProp);
211
+ import_react.useEffect(() => {
212
+ const handleKeyDown = (event) => {
213
+ if (event.key === "Escape") onEscapeKeyDown(event);
214
+ };
215
+ ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
216
+ return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
217
+ }, [onEscapeKeyDown, ownerDocument]);
218
+ }
219
+ //#endregion
220
+ //#region node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14___1028c2c016475a479b27a6c04520b6b2/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
221
+ var DISMISSABLE_LAYER_NAME = "DismissableLayer";
222
+ var CONTEXT_UPDATE = "dismissableLayer.update";
223
+ var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
224
+ var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
225
+ var originalBodyPointerEvents;
226
+ var DismissableLayerContext = import_react.createContext({
227
+ layers: /* @__PURE__ */ new Set(),
228
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
229
+ branches: /* @__PURE__ */ new Set()
230
+ });
231
+ var DismissableLayer = import_react.forwardRef((props, forwardedRef) => {
232
+ const { disableOutsidePointerEvents = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
233
+ const context = import_react.useContext(DismissableLayerContext);
234
+ const [node, setNode] = import_react.useState(null);
235
+ const ownerDocument = node?.ownerDocument ?? globalThis?.document;
236
+ const [, force] = import_react.useState({});
237
+ const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
238
+ const layers = Array.from(context.layers);
239
+ const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
240
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
241
+ const index = node ? layers.indexOf(node) : -1;
242
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
243
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
244
+ const pointerDownOutside = usePointerDownOutside((event) => {
245
+ const target = event.target;
246
+ const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
247
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
248
+ onPointerDownOutside?.(event);
249
+ onInteractOutside?.(event);
250
+ if (!event.defaultPrevented) onDismiss?.();
251
+ }, ownerDocument);
252
+ const focusOutside = useFocusOutside((event) => {
253
+ const target = event.target;
254
+ if ([...context.branches].some((branch) => branch.contains(target))) return;
255
+ onFocusOutside?.(event);
256
+ onInteractOutside?.(event);
257
+ if (!event.defaultPrevented) onDismiss?.();
258
+ }, ownerDocument);
259
+ useEscapeKeydown((event) => {
260
+ if (!(index === context.layers.size - 1)) return;
261
+ onEscapeKeyDown?.(event);
262
+ if (!event.defaultPrevented && onDismiss) {
263
+ event.preventDefault();
264
+ onDismiss();
265
+ }
266
+ }, ownerDocument);
267
+ import_react.useEffect(() => {
268
+ if (!node) return;
269
+ if (disableOutsidePointerEvents) {
270
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
271
+ originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
272
+ ownerDocument.body.style.pointerEvents = "none";
273
+ }
274
+ context.layersWithOutsidePointerEventsDisabled.add(node);
275
+ }
276
+ context.layers.add(node);
277
+ dispatchUpdate();
278
+ return () => {
279
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
280
+ };
281
+ }, [
282
+ node,
283
+ ownerDocument,
284
+ disableOutsidePointerEvents,
285
+ context
286
+ ]);
287
+ import_react.useEffect(() => {
288
+ return () => {
289
+ if (!node) return;
290
+ context.layers.delete(node);
291
+ context.layersWithOutsidePointerEventsDisabled.delete(node);
292
+ dispatchUpdate();
293
+ };
294
+ }, [node, context]);
295
+ import_react.useEffect(() => {
296
+ const handleUpdate = () => force({});
297
+ document.addEventListener(CONTEXT_UPDATE, handleUpdate);
298
+ return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
299
+ }, []);
300
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
301
+ ...layerProps,
302
+ ref: composedRefs,
303
+ style: {
304
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
305
+ ...props.style
306
+ },
307
+ onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
308
+ onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
309
+ onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
310
+ });
311
+ });
312
+ DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
313
+ var BRANCH_NAME = "DismissableLayerBranch";
314
+ var DismissableLayerBranch = import_react.forwardRef((props, forwardedRef) => {
315
+ const context = import_react.useContext(DismissableLayerContext);
316
+ const ref = import_react.useRef(null);
317
+ const composedRefs = useComposedRefs(forwardedRef, ref);
318
+ import_react.useEffect(() => {
319
+ const node = ref.current;
320
+ if (node) {
321
+ context.branches.add(node);
322
+ return () => {
323
+ context.branches.delete(node);
324
+ };
325
+ }
326
+ }, [context.branches]);
327
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
328
+ ...props,
329
+ ref: composedRefs
330
+ });
331
+ });
332
+ DismissableLayerBranch.displayName = BRANCH_NAME;
333
+ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
334
+ const handlePointerDownOutside = useCallbackRef$1(onPointerDownOutside);
335
+ const isPointerInsideReactTreeRef = import_react.useRef(false);
336
+ const handleClickRef = import_react.useRef(() => {});
337
+ import_react.useEffect(() => {
338
+ const handlePointerDown = (event) => {
339
+ if (event.target && !isPointerInsideReactTreeRef.current) {
340
+ let handleAndDispatchPointerDownOutsideEvent2 = function() {
341
+ handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, { discrete: true });
342
+ };
343
+ const eventDetail = { originalEvent: event };
344
+ if (event.pointerType === "touch") {
345
+ ownerDocument.removeEventListener("click", handleClickRef.current);
346
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
347
+ ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
348
+ } else handleAndDispatchPointerDownOutsideEvent2();
349
+ } else ownerDocument.removeEventListener("click", handleClickRef.current);
350
+ isPointerInsideReactTreeRef.current = false;
351
+ };
352
+ const timerId = window.setTimeout(() => {
353
+ ownerDocument.addEventListener("pointerdown", handlePointerDown);
354
+ }, 0);
355
+ return () => {
356
+ window.clearTimeout(timerId);
357
+ ownerDocument.removeEventListener("pointerdown", handlePointerDown);
358
+ ownerDocument.removeEventListener("click", handleClickRef.current);
359
+ };
360
+ }, [ownerDocument, handlePointerDownOutside]);
361
+ return { onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true };
362
+ }
363
+ function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
364
+ const handleFocusOutside = useCallbackRef$1(onFocusOutside);
365
+ const isFocusInsideReactTreeRef = import_react.useRef(false);
366
+ import_react.useEffect(() => {
367
+ const handleFocus = (event) => {
368
+ if (event.target && !isFocusInsideReactTreeRef.current) handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, { originalEvent: event }, { discrete: false });
369
+ };
370
+ ownerDocument.addEventListener("focusin", handleFocus);
371
+ return () => ownerDocument.removeEventListener("focusin", handleFocus);
372
+ }, [ownerDocument, handleFocusOutside]);
373
+ return {
374
+ onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
375
+ onBlurCapture: () => isFocusInsideReactTreeRef.current = false
376
+ };
377
+ }
378
+ function dispatchUpdate() {
379
+ const event = new CustomEvent(CONTEXT_UPDATE);
380
+ document.dispatchEvent(event);
381
+ }
382
+ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
383
+ const target = detail.originalEvent.target;
384
+ const event = new CustomEvent(name, {
385
+ bubbles: false,
386
+ cancelable: true,
387
+ detail
388
+ });
389
+ if (handler) target.addEventListener(name, handler, { once: true });
390
+ if (discrete) dispatchDiscreteCustomEvent(target, event);
391
+ else target.dispatchEvent(event);
392
+ }
393
+ //#endregion
394
+ //#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+_ba36e4abb1b5b8160094c10bc652129f/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
395
+ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
396
+ var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
397
+ var EVENT_OPTIONS = {
398
+ bubbles: false,
399
+ cancelable: true
400
+ };
401
+ var FOCUS_SCOPE_NAME = "FocusScope";
402
+ var FocusScope = import_react.forwardRef((props, forwardedRef) => {
403
+ const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props;
404
+ const [container, setContainer] = import_react.useState(null);
405
+ const onMountAutoFocus = useCallbackRef$1(onMountAutoFocusProp);
406
+ const onUnmountAutoFocus = useCallbackRef$1(onUnmountAutoFocusProp);
407
+ const lastFocusedElementRef = import_react.useRef(null);
408
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
409
+ const focusScope = import_react.useRef({
410
+ paused: false,
411
+ pause() {
412
+ this.paused = true;
413
+ },
414
+ resume() {
415
+ this.paused = false;
416
+ }
417
+ }).current;
418
+ import_react.useEffect(() => {
419
+ if (trapped) {
420
+ let handleFocusIn2 = function(event) {
421
+ if (focusScope.paused || !container) return;
422
+ const target = event.target;
423
+ if (container.contains(target)) lastFocusedElementRef.current = target;
424
+ else focus(lastFocusedElementRef.current, { select: true });
425
+ }, handleFocusOut2 = function(event) {
426
+ if (focusScope.paused || !container) return;
427
+ const relatedTarget = event.relatedTarget;
428
+ if (relatedTarget === null) return;
429
+ if (!container.contains(relatedTarget)) focus(lastFocusedElementRef.current, { select: true });
430
+ }, handleMutations2 = function(mutations) {
431
+ if (document.activeElement !== document.body) return;
432
+ for (const mutation of mutations) if (mutation.removedNodes.length > 0) focus(container);
433
+ };
434
+ document.addEventListener("focusin", handleFocusIn2);
435
+ document.addEventListener("focusout", handleFocusOut2);
436
+ const mutationObserver = new MutationObserver(handleMutations2);
437
+ if (container) mutationObserver.observe(container, {
438
+ childList: true,
439
+ subtree: true
440
+ });
441
+ return () => {
442
+ document.removeEventListener("focusin", handleFocusIn2);
443
+ document.removeEventListener("focusout", handleFocusOut2);
444
+ mutationObserver.disconnect();
445
+ };
446
+ }
447
+ }, [
448
+ trapped,
449
+ container,
450
+ focusScope.paused
451
+ ]);
452
+ import_react.useEffect(() => {
453
+ if (container) {
454
+ focusScopesStack.add(focusScope);
455
+ const previouslyFocusedElement = document.activeElement;
456
+ if (!container.contains(previouslyFocusedElement)) {
457
+ const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
458
+ container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
459
+ container.dispatchEvent(mountEvent);
460
+ if (!mountEvent.defaultPrevented) {
461
+ focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
462
+ if (document.activeElement === previouslyFocusedElement) focus(container);
463
+ }
464
+ }
465
+ return () => {
466
+ container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
467
+ setTimeout(() => {
468
+ const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
469
+ container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
470
+ container.dispatchEvent(unmountEvent);
471
+ if (!unmountEvent.defaultPrevented) focus(previouslyFocusedElement ?? document.body, { select: true });
472
+ container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
473
+ focusScopesStack.remove(focusScope);
474
+ }, 0);
475
+ };
476
+ }
477
+ }, [
478
+ container,
479
+ onMountAutoFocus,
480
+ onUnmountAutoFocus,
481
+ focusScope
482
+ ]);
483
+ const handleKeyDown = import_react.useCallback((event) => {
484
+ if (!loop && !trapped) return;
485
+ if (focusScope.paused) return;
486
+ const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
487
+ const focusedElement = document.activeElement;
488
+ if (isTabKey && focusedElement) {
489
+ const container2 = event.currentTarget;
490
+ const [first, last] = getTabbableEdges(container2);
491
+ if (!(first && last)) {
492
+ if (focusedElement === container2) event.preventDefault();
493
+ } else if (!event.shiftKey && focusedElement === last) {
494
+ event.preventDefault();
495
+ if (loop) focus(first, { select: true });
496
+ } else if (event.shiftKey && focusedElement === first) {
497
+ event.preventDefault();
498
+ if (loop) focus(last, { select: true });
499
+ }
500
+ }
501
+ }, [
502
+ loop,
503
+ trapped,
504
+ focusScope.paused
505
+ ]);
506
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
507
+ tabIndex: -1,
508
+ ...scopeProps,
509
+ ref: composedRefs,
510
+ onKeyDown: handleKeyDown
511
+ });
512
+ });
513
+ FocusScope.displayName = FOCUS_SCOPE_NAME;
514
+ function focusFirst(candidates, { select = false } = {}) {
515
+ const previouslyFocusedElement = document.activeElement;
516
+ for (const candidate of candidates) {
517
+ focus(candidate, { select });
518
+ if (document.activeElement !== previouslyFocusedElement) return;
519
+ }
520
+ }
521
+ function getTabbableEdges(container) {
522
+ const candidates = getTabbableCandidates(container);
523
+ return [findVisible(candidates, container), findVisible(candidates.reverse(), container)];
524
+ }
525
+ function getTabbableCandidates(container) {
526
+ const nodes = [];
527
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: (node) => {
528
+ const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
529
+ if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
530
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
531
+ } });
532
+ while (walker.nextNode()) nodes.push(walker.currentNode);
533
+ return nodes;
534
+ }
535
+ function findVisible(elements, container) {
536
+ for (const element of elements) if (!isHidden(element, { upTo: container })) return element;
537
+ }
538
+ function isHidden(node, { upTo }) {
539
+ if (getComputedStyle(node).visibility === "hidden") return true;
540
+ while (node) {
541
+ if (upTo !== void 0 && node === upTo) return false;
542
+ if (getComputedStyle(node).display === "none") return true;
543
+ node = node.parentElement;
544
+ }
545
+ return false;
546
+ }
547
+ function isSelectableInput(element) {
548
+ return element instanceof HTMLInputElement && "select" in element;
549
+ }
550
+ function focus(element, { select = false } = {}) {
551
+ if (element && element.focus) {
552
+ const previouslyFocusedElement = document.activeElement;
553
+ element.focus({ preventScroll: true });
554
+ if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
555
+ }
556
+ }
557
+ var focusScopesStack = createFocusScopesStack();
558
+ function createFocusScopesStack() {
559
+ let stack = [];
560
+ return {
561
+ add(focusScope) {
562
+ const activeFocusScope = stack[0];
563
+ if (focusScope !== activeFocusScope) activeFocusScope?.pause();
564
+ stack = arrayRemove(stack, focusScope);
565
+ stack.unshift(focusScope);
566
+ },
567
+ remove(focusScope) {
568
+ stack = arrayRemove(stack, focusScope);
569
+ stack[0]?.resume();
570
+ }
571
+ };
572
+ }
573
+ function arrayRemove(array, item) {
574
+ const updatedArray = [...array];
575
+ const index = updatedArray.indexOf(item);
576
+ if (index !== -1) updatedArray.splice(index, 1);
577
+ return updatedArray;
578
+ }
579
+ function removeLinks(items) {
580
+ return items.filter((item) => item.tagName !== "A");
581
+ }
582
+ //#endregion
583
+ //#region node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_1cce15ec7b8f692335f3eff7d631e14a/node_modules/@radix-ui/react-portal/dist/index.mjs
584
+ var PORTAL_NAME$1 = "Portal";
585
+ var Portal$1 = import_react.forwardRef((props, forwardedRef) => {
586
+ const { container: containerProp, ...portalProps } = props;
587
+ const [mounted, setMounted] = import_react.useState(false);
588
+ useLayoutEffect2(() => setMounted(true), []);
589
+ const container = containerProp || mounted && globalThis?.document?.body;
590
+ return container ? import_react_dom.createPortal(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
591
+ ...portalProps,
592
+ ref: forwardedRef
593
+ }), container) : null;
594
+ });
595
+ Portal$1.displayName = PORTAL_NAME$1;
596
+ //#endregion
597
+ //#region node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_bb0422da16a13d2aa5012c2e1c1c5a99/node_modules/@radix-ui/react-presence/dist/index.mjs
598
+ function useStateMachine(initialState, machine) {
599
+ return import_react.useReducer((state, event) => {
600
+ return machine[state][event] ?? state;
601
+ }, initialState);
602
+ }
603
+ var Presence = (props) => {
604
+ const { present, children } = props;
605
+ const presence = usePresence(present);
606
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : import_react.Children.only(children);
607
+ const ref = useComposedRefs(presence.ref, getElementRef(child));
608
+ return typeof children === "function" || presence.isPresent ? import_react.cloneElement(child, { ref }) : null;
609
+ };
610
+ Presence.displayName = "Presence";
611
+ function usePresence(present) {
612
+ const [node, setNode] = import_react.useState();
613
+ const stylesRef = import_react.useRef(null);
614
+ const prevPresentRef = import_react.useRef(present);
615
+ const prevAnimationNameRef = import_react.useRef("none");
616
+ const [state, send] = useStateMachine(present ? "mounted" : "unmounted", {
617
+ mounted: {
618
+ UNMOUNT: "unmounted",
619
+ ANIMATION_OUT: "unmountSuspended"
620
+ },
621
+ unmountSuspended: {
622
+ MOUNT: "mounted",
623
+ ANIMATION_END: "unmounted"
624
+ },
625
+ unmounted: { MOUNT: "mounted" }
626
+ });
627
+ import_react.useEffect(() => {
628
+ const currentAnimationName = getAnimationName(stylesRef.current);
629
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
630
+ }, [state]);
631
+ useLayoutEffect2(() => {
632
+ const styles = stylesRef.current;
633
+ const wasPresent = prevPresentRef.current;
634
+ if (wasPresent !== present) {
635
+ const prevAnimationName = prevAnimationNameRef.current;
636
+ const currentAnimationName = getAnimationName(styles);
637
+ if (present) send("MOUNT");
638
+ else if (currentAnimationName === "none" || styles?.display === "none") send("UNMOUNT");
639
+ else if (wasPresent && prevAnimationName !== currentAnimationName) send("ANIMATION_OUT");
640
+ else send("UNMOUNT");
641
+ prevPresentRef.current = present;
642
+ }
643
+ }, [present, send]);
644
+ useLayoutEffect2(() => {
645
+ if (node) {
646
+ let timeoutId;
647
+ const ownerWindow = node.ownerDocument.defaultView ?? window;
648
+ const handleAnimationEnd = (event) => {
649
+ const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
650
+ if (event.target === node && isCurrentAnimation) {
651
+ send("ANIMATION_END");
652
+ if (!prevPresentRef.current) {
653
+ const currentFillMode = node.style.animationFillMode;
654
+ node.style.animationFillMode = "forwards";
655
+ timeoutId = ownerWindow.setTimeout(() => {
656
+ if (node.style.animationFillMode === "forwards") node.style.animationFillMode = currentFillMode;
657
+ });
658
+ }
659
+ }
660
+ };
661
+ const handleAnimationStart = (event) => {
662
+ if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
663
+ };
664
+ node.addEventListener("animationstart", handleAnimationStart);
665
+ node.addEventListener("animationcancel", handleAnimationEnd);
666
+ node.addEventListener("animationend", handleAnimationEnd);
667
+ return () => {
668
+ ownerWindow.clearTimeout(timeoutId);
669
+ node.removeEventListener("animationstart", handleAnimationStart);
670
+ node.removeEventListener("animationcancel", handleAnimationEnd);
671
+ node.removeEventListener("animationend", handleAnimationEnd);
672
+ };
673
+ } else send("ANIMATION_END");
674
+ }, [node, send]);
675
+ return {
676
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
677
+ ref: import_react.useCallback((node2) => {
678
+ stylesRef.current = node2 ? getComputedStyle(node2) : null;
679
+ setNode(node2);
680
+ }, [])
681
+ };
682
+ }
683
+ function getAnimationName(styles) {
684
+ return styles?.animationName || "none";
685
+ }
686
+ function getElementRef(element) {
687
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
688
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
689
+ if (mayWarn) return element.ref;
690
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
691
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
692
+ if (mayWarn) return element.props.ref;
693
+ return element.props.ref || element.ref;
694
+ }
695
+ //#endregion
696
+ //#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
697
+ var count = 0;
698
+ function useFocusGuards() {
699
+ import_react.useEffect(() => {
700
+ const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
701
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
702
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
703
+ count++;
704
+ return () => {
705
+ if (count === 1) document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
706
+ count--;
707
+ };
708
+ }, []);
709
+ }
710
+ function createFocusGuard() {
711
+ const element = document.createElement("span");
712
+ element.setAttribute("data-radix-focus-guard", "");
713
+ element.tabIndex = 0;
714
+ element.style.outline = "none";
715
+ element.style.opacity = "0";
716
+ element.style.position = "fixed";
717
+ element.style.pointerEvents = "none";
718
+ return element;
719
+ }
720
+ //#endregion
721
+ //#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
722
+ var zeroRightClassName = "right-scroll-bar-position";
723
+ var fullWidthClassName = "width-before-scroll-bar";
724
+ var noScrollbarsClassName = "with-scroll-bars-hidden";
725
+ /**
726
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
727
+ * ! might be undefined ! use will fallback!
728
+ */
729
+ var removedBarSizeVariable = "--removed-body-scroll-bar-size";
730
+ //#endregion
731
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/assignRef.js
732
+ /**
733
+ * Assigns a value for a given ref, no matter of the ref format
734
+ * @param {RefObject} ref - a callback function or ref object
735
+ * @param value - a new value
736
+ *
737
+ * @see https://github.com/theKashey/use-callback-ref#assignref
738
+ * @example
739
+ * const refObject = useRef();
740
+ * const refFn = (ref) => {....}
741
+ *
742
+ * assignRef(refObject, "refValue");
743
+ * assignRef(refFn, "refValue");
744
+ */
745
+ function assignRef(ref, value) {
746
+ if (typeof ref === "function") ref(value);
747
+ else if (ref) ref.current = value;
748
+ return ref;
749
+ }
750
+ //#endregion
751
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/useRef.js
752
+ /**
753
+ * creates a MutableRef with ref change callback
754
+ * @param initialValue - initial ref value
755
+ * @param {Function} callback - a callback to run when value changes
756
+ *
757
+ * @example
758
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
759
+ * ref.current = 1;
760
+ * // prints 0 -> 1
761
+ *
762
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
763
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
764
+ * @returns {MutableRefObject}
765
+ */
766
+ function useCallbackRef(initialValue, callback) {
767
+ var ref = (0, import_react.useState)(function() {
768
+ return {
769
+ value: initialValue,
770
+ callback,
771
+ facade: {
772
+ get current() {
773
+ return ref.value;
774
+ },
775
+ set current(value) {
776
+ var last = ref.value;
777
+ if (last !== value) {
778
+ ref.value = value;
779
+ ref.callback(value, last);
780
+ }
781
+ }
782
+ }
783
+ };
784
+ })[0];
785
+ ref.callback = callback;
786
+ return ref.facade;
787
+ }
788
+ //#endregion
789
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
790
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
791
+ var currentValues = /* @__PURE__ */ new WeakMap();
792
+ /**
793
+ * Merges two or more refs together providing a single interface to set their value
794
+ * @param {RefObject|Ref} refs
795
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
796
+ *
797
+ * @see {@link mergeRefs} a version without buit-in memoization
798
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
799
+ * @example
800
+ * const Component = React.forwardRef((props, ref) => {
801
+ * const ownRef = useRef();
802
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
803
+ * return <div ref={domRef}>...</div>
804
+ * }
805
+ */
806
+ function useMergeRefs(refs, defaultValue) {
807
+ var callbackRef = useCallbackRef(defaultValue || null, function(newValue) {
808
+ return refs.forEach(function(ref) {
809
+ return assignRef(ref, newValue);
810
+ });
811
+ });
812
+ useIsomorphicLayoutEffect(function() {
813
+ var oldValue = currentValues.get(callbackRef);
814
+ if (oldValue) {
815
+ var prevRefs_1 = new Set(oldValue);
816
+ var nextRefs_1 = new Set(refs);
817
+ var current_1 = callbackRef.current;
818
+ prevRefs_1.forEach(function(ref) {
819
+ if (!nextRefs_1.has(ref)) assignRef(ref, null);
820
+ });
821
+ nextRefs_1.forEach(function(ref) {
822
+ if (!prevRefs_1.has(ref)) assignRef(ref, current_1);
823
+ });
824
+ }
825
+ currentValues.set(callbackRef, refs);
826
+ }, [refs]);
827
+ return callbackRef;
828
+ }
829
+ //#endregion
830
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/use-sidecar/dist/es2015/medium.js
831
+ function ItoI(a) {
832
+ return a;
833
+ }
834
+ function innerCreateMedium(defaults, middleware) {
835
+ if (middleware === void 0) middleware = ItoI;
836
+ var buffer = [];
837
+ var assigned = false;
838
+ return {
839
+ read: function() {
840
+ if (assigned) throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
841
+ if (buffer.length) return buffer[buffer.length - 1];
842
+ return defaults;
843
+ },
844
+ useMedium: function(data) {
845
+ var item = middleware(data, assigned);
846
+ buffer.push(item);
847
+ return function() {
848
+ buffer = buffer.filter(function(x) {
849
+ return x !== item;
850
+ });
851
+ };
852
+ },
853
+ assignSyncMedium: function(cb) {
854
+ assigned = true;
855
+ while (buffer.length) {
856
+ var cbs = buffer;
857
+ buffer = [];
858
+ cbs.forEach(cb);
859
+ }
860
+ buffer = {
861
+ push: function(x) {
862
+ return cb(x);
863
+ },
864
+ filter: function() {
865
+ return buffer;
866
+ }
867
+ };
868
+ },
869
+ assignMedium: function(cb) {
870
+ assigned = true;
871
+ var pendingQueue = [];
872
+ if (buffer.length) {
873
+ var cbs = buffer;
874
+ buffer = [];
875
+ cbs.forEach(cb);
876
+ pendingQueue = buffer;
877
+ }
878
+ var executeQueue = function() {
879
+ var cbs = pendingQueue;
880
+ pendingQueue = [];
881
+ cbs.forEach(cb);
882
+ };
883
+ var cycle = function() {
884
+ return Promise.resolve().then(executeQueue);
885
+ };
886
+ cycle();
887
+ buffer = {
888
+ push: function(x) {
889
+ pendingQueue.push(x);
890
+ cycle();
891
+ },
892
+ filter: function(filter) {
893
+ pendingQueue = pendingQueue.filter(filter);
894
+ return buffer;
895
+ }
896
+ };
897
+ }
898
+ };
899
+ }
900
+ function createSidecarMedium(options) {
901
+ if (options === void 0) options = {};
902
+ var medium = innerCreateMedium(null);
903
+ medium.options = __assign({
904
+ async: true,
905
+ ssr: false
906
+ }, options);
907
+ return medium;
908
+ }
909
+ //#endregion
910
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/use-sidecar/dist/es2015/exports.js
911
+ var SideCar = function(_a) {
912
+ var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
913
+ if (!sideCar) throw new Error("Sidecar: please provide `sideCar` property to import the right car");
914
+ var Target = sideCar.read();
915
+ if (!Target) throw new Error("Sidecar medium not found");
916
+ return import_react.createElement(Target, __assign({}, rest));
917
+ };
918
+ SideCar.isSideCarExport = true;
919
+ function exportSidecar(medium, exported) {
920
+ medium.useMedium(exported);
921
+ return SideCar;
922
+ }
923
+ //#endregion
924
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/medium.js
925
+ var effectCar = createSidecarMedium();
926
+ //#endregion
927
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/UI.js
928
+ var nothing = function() {};
929
+ /**
930
+ * Removes scrollbar from the page and contain the scroll within the Lock
931
+ */
932
+ var RemoveScroll = import_react.forwardRef(function(props, parentRef) {
933
+ var ref = import_react.useRef(null);
934
+ var _a = import_react.useState({
935
+ onScrollCapture: nothing,
936
+ onWheelCapture: nothing,
937
+ onTouchMoveCapture: nothing
938
+ }), callbacks = _a[0], setCallbacks = _a[1];
939
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
940
+ "forwardProps",
941
+ "children",
942
+ "className",
943
+ "removeScrollBar",
944
+ "enabled",
945
+ "shards",
946
+ "sideCar",
947
+ "noRelative",
948
+ "noIsolation",
949
+ "inert",
950
+ "allowPinchZoom",
951
+ "as",
952
+ "gapMode"
953
+ ]);
954
+ var SideCar = sideCar;
955
+ var containerRef = useMergeRefs([ref, parentRef]);
956
+ var containerProps = __assign(__assign({}, rest), callbacks);
957
+ return import_react.createElement(import_react.Fragment, null, enabled && import_react.createElement(SideCar, {
958
+ sideCar: effectCar,
959
+ removeScrollBar,
960
+ shards,
961
+ noRelative,
962
+ noIsolation,
963
+ inert,
964
+ setCallbacks,
965
+ allowPinchZoom: !!allowPinchZoom,
966
+ lockRef: ref,
967
+ gapMode
968
+ }), forwardProps ? import_react.cloneElement(import_react.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : import_react.createElement(Container, __assign({}, containerProps, {
969
+ className,
970
+ ref: containerRef
971
+ }), children));
972
+ });
973
+ RemoveScroll.defaultProps = {
974
+ enabled: true,
975
+ removeScrollBar: true,
976
+ inert: false
977
+ };
978
+ RemoveScroll.classNames = {
979
+ fullWidth: fullWidthClassName,
980
+ zeroRight: zeroRightClassName
981
+ };
982
+ //#endregion
983
+ //#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
984
+ var currentNonce;
985
+ var getNonce = function() {
986
+ if (currentNonce) return currentNonce;
987
+ if (typeof __webpack_nonce__ !== "undefined") return __webpack_nonce__;
988
+ };
989
+ //#endregion
990
+ //#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.5/node_modules/react-style-singleton/dist/es2015/singleton.js
991
+ function makeStyleTag() {
992
+ if (!document) return null;
993
+ var tag = document.createElement("style");
994
+ tag.type = "text/css";
995
+ var nonce = getNonce();
996
+ if (nonce) tag.setAttribute("nonce", nonce);
997
+ return tag;
998
+ }
999
+ function injectStyles(tag, css) {
1000
+ if (tag.styleSheet) tag.styleSheet.cssText = css;
1001
+ else tag.appendChild(document.createTextNode(css));
1002
+ }
1003
+ function insertStyleTag(tag) {
1004
+ (document.head || document.getElementsByTagName("head")[0]).appendChild(tag);
1005
+ }
1006
+ var stylesheetSingleton = function() {
1007
+ var counter = 0;
1008
+ var stylesheet = null;
1009
+ return {
1010
+ add: function(style) {
1011
+ if (counter == 0) {
1012
+ if (stylesheet = makeStyleTag()) {
1013
+ injectStyles(stylesheet, style);
1014
+ insertStyleTag(stylesheet);
1015
+ }
1016
+ }
1017
+ counter++;
1018
+ },
1019
+ remove: function() {
1020
+ counter--;
1021
+ if (!counter && stylesheet) {
1022
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
1023
+ stylesheet = null;
1024
+ }
1025
+ }
1026
+ };
1027
+ };
1028
+ //#endregion
1029
+ //#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.5/node_modules/react-style-singleton/dist/es2015/hook.js
1030
+ /**
1031
+ * creates a hook to control style singleton
1032
+ * @see {@link styleSingleton} for a safer component version
1033
+ * @example
1034
+ * ```tsx
1035
+ * const useStyle = styleHookSingleton();
1036
+ * ///
1037
+ * useStyle('body { overflow: hidden}');
1038
+ */
1039
+ var styleHookSingleton = function() {
1040
+ var sheet = stylesheetSingleton();
1041
+ return function(styles, isDynamic) {
1042
+ import_react.useEffect(function() {
1043
+ sheet.add(styles);
1044
+ return function() {
1045
+ sheet.remove();
1046
+ };
1047
+ }, [styles && isDynamic]);
1048
+ };
1049
+ };
1050
+ //#endregion
1051
+ //#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.5/node_modules/react-style-singleton/dist/es2015/component.js
1052
+ /**
1053
+ * create a Component to add styles on demand
1054
+ * - styles are added when first instance is mounted
1055
+ * - styles are removed when the last instance is unmounted
1056
+ * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
1057
+ */
1058
+ var styleSingleton = function() {
1059
+ var useStyle = styleHookSingleton();
1060
+ var Sheet = function(_a) {
1061
+ var styles = _a.styles, dynamic = _a.dynamic;
1062
+ useStyle(styles, dynamic);
1063
+ return null;
1064
+ };
1065
+ return Sheet;
1066
+ };
1067
+ //#endregion
1068
+ //#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
1069
+ var zeroGap = {
1070
+ left: 0,
1071
+ top: 0,
1072
+ right: 0,
1073
+ gap: 0
1074
+ };
1075
+ var parse = function(x) {
1076
+ return parseInt(x || "", 10) || 0;
1077
+ };
1078
+ var getOffset = function(gapMode) {
1079
+ var cs = window.getComputedStyle(document.body);
1080
+ var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
1081
+ var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
1082
+ var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
1083
+ return [
1084
+ parse(left),
1085
+ parse(top),
1086
+ parse(right)
1087
+ ];
1088
+ };
1089
+ var getGapWidth = function(gapMode) {
1090
+ if (gapMode === void 0) gapMode = "margin";
1091
+ if (typeof window === "undefined") return zeroGap;
1092
+ var offsets = getOffset(gapMode);
1093
+ var documentWidth = document.documentElement.clientWidth;
1094
+ var windowWidth = window.innerWidth;
1095
+ return {
1096
+ left: offsets[0],
1097
+ top: offsets[1],
1098
+ right: offsets[2],
1099
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
1100
+ };
1101
+ };
1102
+ //#endregion
1103
+ //#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll-bar/dist/es2015/component.js
1104
+ var Style = styleSingleton();
1105
+ var lockAttribute = "data-scroll-locked";
1106
+ var getStyles = function(_a, allowRelative, gapMode, important) {
1107
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
1108
+ if (gapMode === void 0) gapMode = "margin";
1109
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
1110
+ allowRelative && "position: relative ".concat(important, ";"),
1111
+ gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
1112
+ gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
1113
+ ].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
1114
+ };
1115
+ var getCurrentUseCounter = function() {
1116
+ var counter = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
1117
+ return isFinite(counter) ? counter : 0;
1118
+ };
1119
+ var useLockAttribute = function() {
1120
+ import_react.useEffect(function() {
1121
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
1122
+ return function() {
1123
+ var newCounter = getCurrentUseCounter() - 1;
1124
+ if (newCounter <= 0) document.body.removeAttribute(lockAttribute);
1125
+ else document.body.setAttribute(lockAttribute, newCounter.toString());
1126
+ };
1127
+ }, []);
1128
+ };
1129
+ /**
1130
+ * Removes page scrollbar and blocks page scroll when mounted
1131
+ */
1132
+ var RemoveScrollBar = function(_a) {
1133
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
1134
+ useLockAttribute();
1135
+ var gap = import_react.useMemo(function() {
1136
+ return getGapWidth(gapMode);
1137
+ }, [gapMode]);
1138
+ return import_react.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
1139
+ };
1140
+ //#endregion
1141
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
1142
+ var passiveSupported = false;
1143
+ if (typeof window !== "undefined") try {
1144
+ var options = Object.defineProperty({}, "passive", { get: function() {
1145
+ passiveSupported = true;
1146
+ return true;
1147
+ } });
1148
+ window.addEventListener("test", options, options);
1149
+ window.removeEventListener("test", options, options);
1150
+ } catch (err) {
1151
+ passiveSupported = false;
1152
+ }
1153
+ var nonPassive = passiveSupported ? { passive: false } : false;
1154
+ //#endregion
1155
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
1156
+ var alwaysContainsScroll = function(node) {
1157
+ return node.tagName === "TEXTAREA";
1158
+ };
1159
+ var elementCanBeScrolled = function(node, overflow) {
1160
+ if (!(node instanceof Element)) return false;
1161
+ var styles = window.getComputedStyle(node);
1162
+ return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible");
1163
+ };
1164
+ var elementCouldBeVScrolled = function(node) {
1165
+ return elementCanBeScrolled(node, "overflowY");
1166
+ };
1167
+ var elementCouldBeHScrolled = function(node) {
1168
+ return elementCanBeScrolled(node, "overflowX");
1169
+ };
1170
+ var locationCouldBeScrolled = function(axis, node) {
1171
+ var ownerDocument = node.ownerDocument;
1172
+ var current = node;
1173
+ do {
1174
+ if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
1175
+ if (elementCouldBeScrolled(axis, current)) {
1176
+ var _a = getScrollVariables(axis, current);
1177
+ if (_a[1] > _a[2]) return true;
1178
+ }
1179
+ current = current.parentNode;
1180
+ } while (current && current !== ownerDocument.body);
1181
+ return false;
1182
+ };
1183
+ var getVScrollVariables = function(_a) {
1184
+ return [
1185
+ _a.scrollTop,
1186
+ _a.scrollHeight,
1187
+ _a.clientHeight
1188
+ ];
1189
+ };
1190
+ var getHScrollVariables = function(_a) {
1191
+ return [
1192
+ _a.scrollLeft,
1193
+ _a.scrollWidth,
1194
+ _a.clientWidth
1195
+ ];
1196
+ };
1197
+ var elementCouldBeScrolled = function(axis, node) {
1198
+ return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
1199
+ };
1200
+ var getScrollVariables = function(axis, node) {
1201
+ return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
1202
+ };
1203
+ var getDirectionFactor = function(axis, direction) {
1204
+ /**
1205
+ * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
1206
+ * and then increasingly negative as you scroll towards the end of the content.
1207
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
1208
+ */
1209
+ return axis === "h" && direction === "rtl" ? -1 : 1;
1210
+ };
1211
+ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
1212
+ var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
1213
+ var delta = directionFactor * sourceDelta;
1214
+ var target = event.target;
1215
+ var targetInLock = endTarget.contains(target);
1216
+ var shouldCancelScroll = false;
1217
+ var isDeltaPositive = delta > 0;
1218
+ var availableScroll = 0;
1219
+ var availableScrollTop = 0;
1220
+ do {
1221
+ if (!target) break;
1222
+ var _a = getScrollVariables(axis, target), position = _a[0];
1223
+ var elementScroll = _a[1] - _a[2] - directionFactor * position;
1224
+ if (position || elementScroll) {
1225
+ if (elementCouldBeScrolled(axis, target)) {
1226
+ availableScroll += elementScroll;
1227
+ availableScrollTop += position;
1228
+ }
1229
+ }
1230
+ var parent_1 = target.parentNode;
1231
+ target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
1232
+ } while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
1233
+ if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
1234
+ else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
1235
+ return shouldCancelScroll;
1236
+ };
1237
+ //#endregion
1238
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
1239
+ var getTouchXY = function(event) {
1240
+ return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
1241
+ };
1242
+ var getDeltaXY = function(event) {
1243
+ return [event.deltaX, event.deltaY];
1244
+ };
1245
+ var extractRef = function(ref) {
1246
+ return ref && "current" in ref ? ref.current : ref;
1247
+ };
1248
+ var deltaCompare = function(x, y) {
1249
+ return x[0] === y[0] && x[1] === y[1];
1250
+ };
1251
+ var generateStyle = function(id) {
1252
+ return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
1253
+ };
1254
+ var idCounter = 0;
1255
+ var lockStack = [];
1256
+ function RemoveScrollSideCar(props) {
1257
+ var shouldPreventQueue = import_react.useRef([]);
1258
+ var touchStartRef = import_react.useRef([0, 0]);
1259
+ var activeAxis = import_react.useRef();
1260
+ var id = import_react.useState(idCounter++)[0];
1261
+ var Style = import_react.useState(styleSingleton)[0];
1262
+ var lastProps = import_react.useRef(props);
1263
+ import_react.useEffect(function() {
1264
+ lastProps.current = props;
1265
+ }, [props]);
1266
+ import_react.useEffect(function() {
1267
+ if (props.inert) {
1268
+ document.body.classList.add("block-interactivity-".concat(id));
1269
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1270
+ allow_1.forEach(function(el) {
1271
+ return el.classList.add("allow-interactivity-".concat(id));
1272
+ });
1273
+ return function() {
1274
+ document.body.classList.remove("block-interactivity-".concat(id));
1275
+ allow_1.forEach(function(el) {
1276
+ return el.classList.remove("allow-interactivity-".concat(id));
1277
+ });
1278
+ };
1279
+ }
1280
+ }, [
1281
+ props.inert,
1282
+ props.lockRef.current,
1283
+ props.shards
1284
+ ]);
1285
+ var shouldCancelEvent = import_react.useCallback(function(event, parent) {
1286
+ if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
1287
+ var touch = getTouchXY(event);
1288
+ var touchStart = touchStartRef.current;
1289
+ var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
1290
+ var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
1291
+ var currentAxis;
1292
+ var target = event.target;
1293
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
1294
+ if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
1295
+ var selection = window.getSelection();
1296
+ var anchorNode = selection && selection.anchorNode;
1297
+ if (anchorNode ? anchorNode === target || anchorNode.contains(target) : false) return false;
1298
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1299
+ if (!canBeScrolledInMainDirection) return true;
1300
+ if (canBeScrolledInMainDirection) currentAxis = moveDirection;
1301
+ else {
1302
+ currentAxis = moveDirection === "v" ? "h" : "v";
1303
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1304
+ }
1305
+ if (!canBeScrolledInMainDirection) return false;
1306
+ if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
1307
+ if (!currentAxis) return true;
1308
+ var cancelingAxis = activeAxis.current || currentAxis;
1309
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
1310
+ }, []);
1311
+ var shouldPrevent = import_react.useCallback(function(_event) {
1312
+ var event = _event;
1313
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) return;
1314
+ var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
1315
+ var sourceEvent = shouldPreventQueue.current.filter(function(e) {
1316
+ return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
1317
+ })[0];
1318
+ if (sourceEvent && sourceEvent.should) {
1319
+ if (event.cancelable) event.preventDefault();
1320
+ return;
1321
+ }
1322
+ if (!sourceEvent) {
1323
+ var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
1324
+ return node.contains(event.target);
1325
+ });
1326
+ if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
1327
+ if (event.cancelable) event.preventDefault();
1328
+ }
1329
+ }
1330
+ }, []);
1331
+ var shouldCancel = import_react.useCallback(function(name, delta, target, should) {
1332
+ var event = {
1333
+ name,
1334
+ delta,
1335
+ target,
1336
+ should,
1337
+ shadowParent: getOutermostShadowParent(target)
1338
+ };
1339
+ shouldPreventQueue.current.push(event);
1340
+ setTimeout(function() {
1341
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
1342
+ return e !== event;
1343
+ });
1344
+ }, 1);
1345
+ }, []);
1346
+ var scrollTouchStart = import_react.useCallback(function(event) {
1347
+ touchStartRef.current = getTouchXY(event);
1348
+ activeAxis.current = void 0;
1349
+ }, []);
1350
+ var scrollWheel = import_react.useCallback(function(event) {
1351
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1352
+ }, []);
1353
+ var scrollTouchMove = import_react.useCallback(function(event) {
1354
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1355
+ }, []);
1356
+ import_react.useEffect(function() {
1357
+ lockStack.push(Style);
1358
+ props.setCallbacks({
1359
+ onScrollCapture: scrollWheel,
1360
+ onWheelCapture: scrollWheel,
1361
+ onTouchMoveCapture: scrollTouchMove
1362
+ });
1363
+ document.addEventListener("wheel", shouldPrevent, nonPassive);
1364
+ document.addEventListener("touchmove", shouldPrevent, nonPassive);
1365
+ document.addEventListener("touchstart", scrollTouchStart, nonPassive);
1366
+ return function() {
1367
+ lockStack = lockStack.filter(function(inst) {
1368
+ return inst !== Style;
1369
+ });
1370
+ document.removeEventListener("wheel", shouldPrevent, nonPassive);
1371
+ document.removeEventListener("touchmove", shouldPrevent, nonPassive);
1372
+ document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
1373
+ };
1374
+ }, []);
1375
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
1376
+ return import_react.createElement(import_react.Fragment, null, inert ? import_react.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? import_react.createElement(RemoveScrollBar, {
1377
+ noRelative: props.noRelative,
1378
+ gapMode: props.gapMode
1379
+ }) : null);
1380
+ }
1381
+ function getOutermostShadowParent(node) {
1382
+ var shadowParent = null;
1383
+ while (node !== null) {
1384
+ if (node instanceof ShadowRoot) {
1385
+ shadowParent = node.host;
1386
+ node = node.host;
1387
+ }
1388
+ node = node.parentNode;
1389
+ }
1390
+ return shadowParent;
1391
+ }
1392
+ //#endregion
1393
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/sidecar.js
1394
+ var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
1395
+ //#endregion
1396
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/Combination.js
1397
+ var ReactRemoveScroll = import_react.forwardRef(function(props, ref) {
1398
+ return import_react.createElement(RemoveScroll, __assign({}, props, {
1399
+ ref,
1400
+ sideCar: sidecar_default
1401
+ }));
1402
+ });
1403
+ ReactRemoveScroll.classNames = RemoveScroll.classNames;
1404
+ //#endregion
1405
+ //#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
1406
+ var getDefaultParent = function(originalTarget) {
1407
+ if (typeof document === "undefined") return null;
1408
+ return (Array.isArray(originalTarget) ? originalTarget[0] : originalTarget).ownerDocument.body;
1409
+ };
1410
+ var counterMap = /* @__PURE__ */ new WeakMap();
1411
+ var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
1412
+ var markerMap = {};
1413
+ var lockCount = 0;
1414
+ var unwrapHost = function(node) {
1415
+ return node && (node.host || unwrapHost(node.parentNode));
1416
+ };
1417
+ var correctTargets = function(parent, targets) {
1418
+ return targets.map(function(target) {
1419
+ if (parent.contains(target)) return target;
1420
+ var correctedTarget = unwrapHost(target);
1421
+ if (correctedTarget && parent.contains(correctedTarget)) return correctedTarget;
1422
+ console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
1423
+ return null;
1424
+ }).filter(function(x) {
1425
+ return Boolean(x);
1426
+ });
1427
+ };
1428
+ /**
1429
+ * Marks everything except given node(or nodes) as aria-hidden
1430
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
1431
+ * @param [parentNode] - top element, defaults to document.body
1432
+ * @param {String} [markerName] - a special attribute to mark every node
1433
+ * @param {String} [controlAttribute] - html Attribute to control
1434
+ * @return {Undo} undo command
1435
+ */
1436
+ var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
1437
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
1438
+ if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
1439
+ var markerCounter = markerMap[markerName];
1440
+ var hiddenNodes = [];
1441
+ var elementsToKeep = /* @__PURE__ */ new Set();
1442
+ var elementsToStop = new Set(targets);
1443
+ var keep = function(el) {
1444
+ if (!el || elementsToKeep.has(el)) return;
1445
+ elementsToKeep.add(el);
1446
+ keep(el.parentNode);
1447
+ };
1448
+ targets.forEach(keep);
1449
+ var deep = function(parent) {
1450
+ if (!parent || elementsToStop.has(parent)) return;
1451
+ Array.prototype.forEach.call(parent.children, function(node) {
1452
+ if (elementsToKeep.has(node)) deep(node);
1453
+ else try {
1454
+ var attr = node.getAttribute(controlAttribute);
1455
+ var alreadyHidden = attr !== null && attr !== "false";
1456
+ var counterValue = (counterMap.get(node) || 0) + 1;
1457
+ var markerValue = (markerCounter.get(node) || 0) + 1;
1458
+ counterMap.set(node, counterValue);
1459
+ markerCounter.set(node, markerValue);
1460
+ hiddenNodes.push(node);
1461
+ if (counterValue === 1 && alreadyHidden) uncontrolledNodes.set(node, true);
1462
+ if (markerValue === 1) node.setAttribute(markerName, "true");
1463
+ if (!alreadyHidden) node.setAttribute(controlAttribute, "true");
1464
+ } catch (e) {
1465
+ console.error("aria-hidden: cannot operate on ", node, e);
1466
+ }
1467
+ });
1468
+ };
1469
+ deep(parentNode);
1470
+ elementsToKeep.clear();
1471
+ lockCount++;
1472
+ return function() {
1473
+ hiddenNodes.forEach(function(node) {
1474
+ var counterValue = counterMap.get(node) - 1;
1475
+ var markerValue = markerCounter.get(node) - 1;
1476
+ counterMap.set(node, counterValue);
1477
+ markerCounter.set(node, markerValue);
1478
+ if (!counterValue) {
1479
+ if (!uncontrolledNodes.has(node)) node.removeAttribute(controlAttribute);
1480
+ uncontrolledNodes.delete(node);
1481
+ }
1482
+ if (!markerValue) node.removeAttribute(markerName);
1483
+ });
1484
+ lockCount--;
1485
+ if (!lockCount) {
1486
+ counterMap = /* @__PURE__ */ new WeakMap();
1487
+ counterMap = /* @__PURE__ */ new WeakMap();
1488
+ uncontrolledNodes = /* @__PURE__ */ new WeakMap();
1489
+ markerMap = {};
1490
+ }
1491
+ };
1492
+ };
1493
+ /**
1494
+ * Marks everything except given node(or nodes) as aria-hidden
1495
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
1496
+ * @param [parentNode] - top element, defaults to document.body
1497
+ * @param {String} [markerName] - a special attribute to mark every node
1498
+ * @return {Undo} undo command
1499
+ */
1500
+ var hideOthers = function(originalTarget, parentNode, markerName) {
1501
+ if (markerName === void 0) markerName = "data-aria-hidden";
1502
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
1503
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
1504
+ if (!activeParentNode) return function() {
1505
+ return null;
1506
+ };
1507
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
1508
+ return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
1509
+ };
1510
+ //#endregion
1511
+ //#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_2bb6e144a4a4887664c34982a66175eb/node_modules/@radix-ui/react-dialog/dist/index.mjs
1512
+ var DIALOG_NAME = "Dialog";
1513
+ var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
1514
+ var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
1515
+ var Dialog = (props) => {
1516
+ const { __scopeDialog, children, open: openProp, defaultOpen, onOpenChange, modal = true } = props;
1517
+ const triggerRef = import_react.useRef(null);
1518
+ const contentRef = import_react.useRef(null);
1519
+ const [open, setOpen] = useControllableState({
1520
+ prop: openProp,
1521
+ defaultProp: defaultOpen ?? false,
1522
+ onChange: onOpenChange,
1523
+ caller: DIALOG_NAME
1524
+ });
1525
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogProvider, {
1526
+ scope: __scopeDialog,
1527
+ triggerRef,
1528
+ contentRef,
1529
+ contentId: useId(),
1530
+ titleId: useId(),
1531
+ descriptionId: useId(),
1532
+ open,
1533
+ onOpenChange: setOpen,
1534
+ onOpenToggle: import_react.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
1535
+ modal,
1536
+ children
1537
+ });
1538
+ };
1539
+ Dialog.displayName = DIALOG_NAME;
1540
+ var TRIGGER_NAME = "DialogTrigger";
1541
+ var DialogTrigger = import_react.forwardRef((props, forwardedRef) => {
1542
+ const { __scopeDialog, ...triggerProps } = props;
1543
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
1544
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
1545
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
1546
+ type: "button",
1547
+ "aria-haspopup": "dialog",
1548
+ "aria-expanded": context.open,
1549
+ "aria-controls": context.contentId,
1550
+ "data-state": getState(context.open),
1551
+ ...triggerProps,
1552
+ ref: composedTriggerRef,
1553
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
1554
+ });
1555
+ });
1556
+ DialogTrigger.displayName = TRIGGER_NAME;
1557
+ var PORTAL_NAME = "DialogPortal";
1558
+ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, { forceMount: void 0 });
1559
+ var DialogPortal = (props) => {
1560
+ const { __scopeDialog, forceMount, children, container } = props;
1561
+ const context = useDialogContext(PORTAL_NAME, __scopeDialog);
1562
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, {
1563
+ scope: __scopeDialog,
1564
+ forceMount,
1565
+ children: import_react.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
1566
+ present: forceMount || context.open,
1567
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal$1, {
1568
+ asChild: true,
1569
+ container,
1570
+ children: child
1571
+ })
1572
+ }))
1573
+ });
1574
+ };
1575
+ DialogPortal.displayName = PORTAL_NAME;
1576
+ var OVERLAY_NAME = "DialogOverlay";
1577
+ var DialogOverlay = import_react.forwardRef((props, forwardedRef) => {
1578
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
1579
+ const { forceMount = portalContext.forceMount, ...overlayProps } = props;
1580
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
1581
+ return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
1582
+ present: forceMount || context.open,
1583
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlayImpl, {
1584
+ ...overlayProps,
1585
+ ref: forwardedRef
1586
+ })
1587
+ }) : null;
1588
+ });
1589
+ DialogOverlay.displayName = OVERLAY_NAME;
1590
+ var Slot = /* @__PURE__ */ createSlot("DialogOverlay.RemoveScroll");
1591
+ var DialogOverlayImpl = import_react.forwardRef((props, forwardedRef) => {
1592
+ const { __scopeDialog, ...overlayProps } = props;
1593
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
1594
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReactRemoveScroll, {
1595
+ as: Slot,
1596
+ allowPinchZoom: true,
1597
+ shards: [context.contentRef],
1598
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
1599
+ "data-state": getState(context.open),
1600
+ ...overlayProps,
1601
+ ref: forwardedRef,
1602
+ style: {
1603
+ pointerEvents: "auto",
1604
+ ...overlayProps.style
1605
+ }
1606
+ })
1607
+ });
1608
+ });
1609
+ var CONTENT_NAME = "DialogContent";
1610
+ var DialogContent = import_react.forwardRef((props, forwardedRef) => {
1611
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
1612
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
1613
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
1614
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
1615
+ present: forceMount || context.open,
1616
+ children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentModal, {
1617
+ ...contentProps,
1618
+ ref: forwardedRef
1619
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentNonModal, {
1620
+ ...contentProps,
1621
+ ref: forwardedRef
1622
+ })
1623
+ });
1624
+ });
1625
+ DialogContent.displayName = CONTENT_NAME;
1626
+ var DialogContentModal = import_react.forwardRef((props, forwardedRef) => {
1627
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
1628
+ const contentRef = import_react.useRef(null);
1629
+ const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
1630
+ import_react.useEffect(() => {
1631
+ const content = contentRef.current;
1632
+ if (content) return hideOthers(content);
1633
+ }, []);
1634
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentImpl, {
1635
+ ...props,
1636
+ ref: composedRefs,
1637
+ trapFocus: context.open,
1638
+ disableOutsidePointerEvents: true,
1639
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
1640
+ event.preventDefault();
1641
+ context.triggerRef.current?.focus();
1642
+ }),
1643
+ onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
1644
+ const originalEvent = event.detail.originalEvent;
1645
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
1646
+ if (originalEvent.button === 2 || ctrlLeftClick) event.preventDefault();
1647
+ }),
1648
+ onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => event.preventDefault())
1649
+ });
1650
+ });
1651
+ var DialogContentNonModal = import_react.forwardRef((props, forwardedRef) => {
1652
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
1653
+ const hasInteractedOutsideRef = import_react.useRef(false);
1654
+ const hasPointerDownOutsideRef = import_react.useRef(false);
1655
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentImpl, {
1656
+ ...props,
1657
+ ref: forwardedRef,
1658
+ trapFocus: false,
1659
+ disableOutsidePointerEvents: false,
1660
+ onCloseAutoFocus: (event) => {
1661
+ props.onCloseAutoFocus?.(event);
1662
+ if (!event.defaultPrevented) {
1663
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
1664
+ event.preventDefault();
1665
+ }
1666
+ hasInteractedOutsideRef.current = false;
1667
+ hasPointerDownOutsideRef.current = false;
1668
+ },
1669
+ onInteractOutside: (event) => {
1670
+ props.onInteractOutside?.(event);
1671
+ if (!event.defaultPrevented) {
1672
+ hasInteractedOutsideRef.current = true;
1673
+ if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
1674
+ }
1675
+ const target = event.target;
1676
+ if (context.triggerRef.current?.contains(target)) event.preventDefault();
1677
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
1678
+ }
1679
+ });
1680
+ });
1681
+ var DialogContentImpl = import_react.forwardRef((props, forwardedRef) => {
1682
+ const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
1683
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
1684
+ const contentRef = import_react.useRef(null);
1685
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
1686
+ useFocusGuards();
1687
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
1688
+ asChild: true,
1689
+ loop: true,
1690
+ trapped: trapFocus,
1691
+ onMountAutoFocus: onOpenAutoFocus,
1692
+ onUnmountAutoFocus: onCloseAutoFocus,
1693
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
1694
+ role: "dialog",
1695
+ id: context.contentId,
1696
+ "aria-describedby": context.descriptionId,
1697
+ "aria-labelledby": context.titleId,
1698
+ "data-state": getState(context.open),
1699
+ ...contentProps,
1700
+ ref: composedRefs,
1701
+ onDismiss: () => context.onOpenChange(false)
1702
+ })
1703
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleWarning, { titleId: context.titleId }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionWarning, {
1704
+ contentRef,
1705
+ descriptionId: context.descriptionId
1706
+ })] })] });
1707
+ });
1708
+ var TITLE_NAME = "DialogTitle";
1709
+ var DialogTitle = import_react.forwardRef((props, forwardedRef) => {
1710
+ const { __scopeDialog, ...titleProps } = props;
1711
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.h2, {
1713
+ id: context.titleId,
1714
+ ...titleProps,
1715
+ ref: forwardedRef
1716
+ });
1717
+ });
1718
+ DialogTitle.displayName = TITLE_NAME;
1719
+ var DESCRIPTION_NAME = "DialogDescription";
1720
+ var DialogDescription = import_react.forwardRef((props, forwardedRef) => {
1721
+ const { __scopeDialog, ...descriptionProps } = props;
1722
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
1723
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.p, {
1724
+ id: context.descriptionId,
1725
+ ...descriptionProps,
1726
+ ref: forwardedRef
1727
+ });
1728
+ });
1729
+ DialogDescription.displayName = DESCRIPTION_NAME;
1730
+ var CLOSE_NAME = "DialogClose";
1731
+ var DialogClose = import_react.forwardRef((props, forwardedRef) => {
1732
+ const { __scopeDialog, ...closeProps } = props;
1733
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
1734
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
1735
+ type: "button",
1736
+ ...closeProps,
1737
+ ref: forwardedRef,
1738
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
1739
+ });
1740
+ });
1741
+ DialogClose.displayName = CLOSE_NAME;
1742
+ function getState(open) {
1743
+ return open ? "open" : "closed";
1744
+ }
1745
+ var TITLE_WARNING_NAME = "DialogTitleWarning";
1746
+ var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
1747
+ contentName: CONTENT_NAME,
1748
+ titleName: TITLE_NAME,
1749
+ docsSlug: "dialog"
1750
+ });
1751
+ var TitleWarning = ({ titleId }) => {
1752
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
1753
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
1754
+
1755
+ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
1756
+
1757
+ For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
1758
+ import_react.useEffect(() => {
1759
+ if (titleId) {
1760
+ if (!document.getElementById(titleId)) console.error(MESSAGE);
1761
+ }
1762
+ }, [MESSAGE, titleId]);
1763
+ return null;
1764
+ };
1765
+ var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
1766
+ var DescriptionWarning = ({ contentRef, descriptionId }) => {
1767
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;
1768
+ import_react.useEffect(() => {
1769
+ const describedById = contentRef.current?.getAttribute("aria-describedby");
1770
+ if (descriptionId && describedById) {
1771
+ if (!document.getElementById(descriptionId)) console.warn(MESSAGE);
1772
+ }
1773
+ }, [
1774
+ MESSAGE,
1775
+ contentRef,
1776
+ descriptionId
1777
+ ]);
1778
+ return null;
1779
+ };
1780
+ var Root = Dialog;
1781
+ var Trigger = DialogTrigger;
1782
+ var Portal = DialogPortal;
1783
+ var Overlay = DialogOverlay;
1784
+ var Content = DialogContent;
1785
+ var Title = DialogTitle;
1786
+ var Description = DialogDescription;
1787
+ var Close = DialogClose;
1788
+ //#endregion
1789
+ export { Portal as a, Trigger as c, Overlay as i, useId as l, Content as n, Root as o, Description as r, Title as s, Close as t };