@chrisjowen/wheelhouse 0.1.1 → 0.2.1

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 (968) hide show
  1. package/README.md +36 -31
  2. package/build/client/_app/immutable/assets/0.CF4I5T-G.css +1 -0
  3. package/build/client/_app/immutable/assets/0.CF4I5T-G.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.CF4I5T-G.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +1 -0
  6. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
  7. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
  8. package/build/client/_app/immutable/chunks/-F7frqRp.js +1 -0
  9. package/build/client/_app/immutable/chunks/-F7frqRp.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/-F7frqRp.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/127nenIp.js +1 -0
  12. package/build/client/_app/immutable/chunks/127nenIp.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/127nenIp.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/2Frsddx8.js +1 -0
  15. package/build/client/_app/immutable/chunks/2Frsddx8.js.br +2 -0
  16. package/build/client/_app/immutable/chunks/2Frsddx8.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/4nLjU3dc.js +1 -0
  18. package/build/client/_app/immutable/chunks/4nLjU3dc.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/4nLjU3dc.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/6IjAKxKZ.js +1 -0
  21. package/build/client/_app/immutable/chunks/6IjAKxKZ.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/6IjAKxKZ.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/6JIb870c.js +1 -0
  24. package/build/client/_app/immutable/chunks/6JIb870c.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/6JIb870c.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/B8szyIrI.js +1 -0
  27. package/build/client/_app/immutable/chunks/B8szyIrI.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/B8szyIrI.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/BDL2L18I.js +1 -0
  30. package/build/client/_app/immutable/chunks/BDL2L18I.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/BDL2L18I.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/BJ_boZ6o.js +1 -0
  33. package/build/client/_app/immutable/chunks/BJ_boZ6o.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/BJ_boZ6o.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/BMOWf_e5.js +1 -0
  36. package/build/client/_app/immutable/chunks/BMOWf_e5.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/BMOWf_e5.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/BOOJ9_kJ.js +6 -0
  39. package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/BPEcp4vD.js +1 -0
  42. package/build/client/_app/immutable/chunks/BPEcp4vD.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/BPEcp4vD.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/BTcSoYfa.js +1 -0
  45. package/build/client/_app/immutable/chunks/BTcSoYfa.js.br +2 -0
  46. package/build/client/_app/immutable/chunks/BTcSoYfa.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BVXUMEgB.js +1 -0
  48. package/build/client/_app/immutable/chunks/BVXUMEgB.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BVXUMEgB.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BV_Ro843.js +1 -0
  51. package/build/client/_app/immutable/chunks/BV_Ro843.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BV_Ro843.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BboI5NX2.js +1 -0
  54. package/build/client/_app/immutable/chunks/BboI5NX2.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/BboI5NX2.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BkLV0FAz.js +1 -0
  57. package/build/client/_app/immutable/chunks/BkLV0FAz.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BkLV0FAz.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/BnqQNG8I.js +1 -0
  60. package/build/client/_app/immutable/chunks/BnqQNG8I.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/BnqQNG8I.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/Bo3sLJjL.js +3 -0
  63. package/build/client/_app/immutable/chunks/Bo3sLJjL.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/Bo3sLJjL.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/Bpgn0RyM.js +1 -0
  66. package/build/client/_app/immutable/chunks/Bpgn0RyM.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/Bpgn0RyM.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BrGclueo.js +1 -0
  69. package/build/client/_app/immutable/chunks/BrGclueo.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BrGclueo.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/C-Ka3szt.js +1 -0
  72. package/build/client/_app/immutable/chunks/C-Ka3szt.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/C-Ka3szt.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/C-YySHlv.js +1 -0
  75. package/build/client/_app/immutable/chunks/C-YySHlv.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/C-YySHlv.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/C27rbWKB.js +1 -0
  78. package/build/client/_app/immutable/chunks/C27rbWKB.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/C27rbWKB.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/CA1hL-S6.js +1 -0
  81. package/build/client/_app/immutable/chunks/CA1hL-S6.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/CA1hL-S6.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/CFdPbSqS.js +1 -0
  84. package/build/client/_app/immutable/chunks/CFdPbSqS.js.br +1 -0
  85. package/build/client/_app/immutable/chunks/CFdPbSqS.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/CJGygju8.js +1 -0
  87. package/build/client/_app/immutable/chunks/CJGygju8.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/CJGygju8.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/CLdaRjQZ.js +1 -0
  90. package/build/client/_app/immutable/chunks/CLdaRjQZ.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/CLdaRjQZ.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/CS3TvEHF.js +1 -0
  93. package/build/client/_app/immutable/chunks/CS3TvEHF.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/CS3TvEHF.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/CSfYMiqF.js +8 -0
  96. package/build/client/_app/immutable/chunks/CSfYMiqF.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/CSfYMiqF.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/CW_pu1E1.js +1 -0
  99. package/build/client/_app/immutable/chunks/CW_pu1E1.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/CW_pu1E1.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/CZPeboo-.js +1 -0
  102. package/build/client/_app/immutable/chunks/CZPeboo-.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/CZPeboo-.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/CZYAayp0.js +2 -0
  105. package/build/client/_app/immutable/chunks/CZYAayp0.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/CZYAayp0.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/Cap_NU8Z.js +1 -0
  108. package/build/client/_app/immutable/chunks/Cap_NU8Z.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/Cap_NU8Z.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/Cf6ZwSDE.js +1 -0
  111. package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/Ch8_zhFw.js +1 -0
  114. package/build/client/_app/immutable/chunks/Ch8_zhFw.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/Ch8_zhFw.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/Cjji8YKo.js +1 -0
  117. package/build/client/_app/immutable/chunks/Cjji8YKo.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/Cjji8YKo.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/Ckfspn2s.js +1 -0
  120. package/build/client/_app/immutable/chunks/Ckfspn2s.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/Ckfspn2s.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/Cl72MTSX.js +1 -0
  123. package/build/client/_app/immutable/chunks/Cl72MTSX.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/Cl72MTSX.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/CpkLqQ7l.js +1 -0
  126. package/build/client/_app/immutable/chunks/CpkLqQ7l.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/CpkLqQ7l.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/Crzhp-x5.js +5 -0
  129. package/build/client/_app/immutable/chunks/Crzhp-x5.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/Crzhp-x5.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/Cwah_dMw.js +1 -0
  132. package/build/client/_app/immutable/chunks/Cwah_dMw.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/Cwah_dMw.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/CzsfD4hc.js +1 -0
  135. package/build/client/_app/immutable/chunks/CzsfD4hc.js.br +2 -0
  136. package/build/client/_app/immutable/chunks/CzsfD4hc.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/D32oVJ_N.js +1 -0
  138. package/build/client/_app/immutable/chunks/D32oVJ_N.js.br +1 -0
  139. package/build/client/_app/immutable/chunks/D32oVJ_N.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/D4sWXBG7.js +1 -0
  141. package/build/client/_app/immutable/chunks/D4sWXBG7.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/D4sWXBG7.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/DBs-gHlm.js +2 -0
  144. package/build/client/_app/immutable/chunks/DBs-gHlm.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/DBs-gHlm.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/DEFXAgPm.js +1 -0
  147. package/build/client/_app/immutable/chunks/DEFXAgPm.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/DEFXAgPm.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/DHbme8uq.js +1 -0
  150. package/build/client/_app/immutable/chunks/DHbme8uq.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/DHbme8uq.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/DMkU8x7K.js +1 -0
  153. package/build/client/_app/immutable/chunks/DMkU8x7K.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/DMkU8x7K.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/DRIYWZlo.js +1 -0
  156. package/build/client/_app/immutable/chunks/DRIYWZlo.js.br +1 -0
  157. package/build/client/_app/immutable/chunks/DRIYWZlo.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/DUCO61Nb.js +1 -0
  159. package/build/client/_app/immutable/chunks/DUCO61Nb.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/DUCO61Nb.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/DXz8WA1c.js +1 -0
  162. package/build/client/_app/immutable/chunks/DXz8WA1c.js.br +0 -0
  163. package/build/client/_app/immutable/chunks/DXz8WA1c.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/D_4WLGwX.js +1 -0
  165. package/build/client/_app/immutable/chunks/D_4WLGwX.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/D_4WLGwX.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/D_5WjoQx.js +1 -0
  168. package/build/client/_app/immutable/chunks/D_5WjoQx.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/D_5WjoQx.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/D_C2ZtkZ.js +1 -0
  171. package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/De5PDvrQ.js +1 -0
  174. package/build/client/_app/immutable/chunks/De5PDvrQ.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/De5PDvrQ.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/DhWdMQ8J.js +1 -0
  177. package/build/client/_app/immutable/chunks/DhWdMQ8J.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/DhWdMQ8J.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/DiCw6gM6.js +1 -0
  180. package/build/client/_app/immutable/chunks/DiCw6gM6.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/DiCw6gM6.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/DugIbHkD.js +1 -0
  183. package/build/client/_app/immutable/chunks/DugIbHkD.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/DugIbHkD.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/JhgT3vN-.js +1 -0
  186. package/build/client/_app/immutable/chunks/JhgT3vN-.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/JhgT3vN-.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/KA4C2mxd.js +1 -0
  189. package/build/client/_app/immutable/chunks/KA4C2mxd.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/KA4C2mxd.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/MoZXz26A.js +2 -0
  192. package/build/client/_app/immutable/chunks/MoZXz26A.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/MoZXz26A.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/PMi1c_Z5.js +2 -0
  195. package/build/client/_app/immutable/chunks/PMi1c_Z5.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/PMi1c_Z5.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/Pd3Oo-LF.js +1 -0
  198. package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/RXXzt1fg.js +1 -0
  201. package/build/client/_app/immutable/chunks/RXXzt1fg.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/RXXzt1fg.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/WfixpLtG.js +1 -0
  204. package/build/client/_app/immutable/chunks/WfixpLtG.js.br +2 -0
  205. package/build/client/_app/immutable/chunks/WfixpLtG.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/YB3ysJRI.js +1 -0
  207. package/build/client/_app/immutable/chunks/YB3ysJRI.js.br +0 -0
  208. package/build/client/_app/immutable/chunks/YB3ysJRI.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/YUajk67G.js +1 -0
  210. package/build/client/_app/immutable/chunks/YUajk67G.js.br +0 -0
  211. package/build/client/_app/immutable/chunks/YUajk67G.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/a2ZeDrXd.js +1 -0
  213. package/build/client/_app/immutable/chunks/a2ZeDrXd.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/a2ZeDrXd.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/cZnJ0mAm.js +7 -0
  216. package/build/client/_app/immutable/chunks/cZnJ0mAm.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/cZnJ0mAm.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/is3b6W5i.js +1 -0
  219. package/build/client/_app/immutable/chunks/is3b6W5i.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/is3b6W5i.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/kM8ObZQs.js +62 -0
  222. package/build/client/_app/immutable/chunks/kM8ObZQs.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/kM8ObZQs.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/qep4C0YL.js +2 -0
  225. package/build/client/_app/immutable/chunks/qep4C0YL.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/qep4C0YL.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/sSJbwAI9.js +1 -0
  228. package/build/client/_app/immutable/chunks/sSJbwAI9.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/sSJbwAI9.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/vAxbu4w9.js +1 -0
  231. package/build/client/_app/immutable/chunks/vAxbu4w9.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/vAxbu4w9.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/zfjlAER1.js +1 -0
  234. package/build/client/_app/immutable/chunks/zfjlAER1.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/zfjlAER1.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/zrknQfzW.js +1 -0
  237. package/build/client/_app/immutable/chunks/zrknQfzW.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/zrknQfzW.js.gz +0 -0
  239. package/build/client/_app/immutable/entry/app.BVW8a1Lc.js +2 -0
  240. package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.br +0 -0
  241. package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.gz +0 -0
  242. package/build/client/_app/immutable/entry/start.DfAhzzBh.js +1 -0
  243. package/build/client/_app/immutable/entry/start.DfAhzzBh.js.br +0 -0
  244. package/build/client/_app/immutable/entry/start.DfAhzzBh.js.gz +0 -0
  245. package/build/client/_app/immutable/nodes/0.CByWY48H.js +8 -0
  246. package/build/client/_app/immutable/nodes/0.CByWY48H.js.br +0 -0
  247. package/build/client/_app/immutable/nodes/0.CByWY48H.js.gz +0 -0
  248. package/build/client/_app/immutable/nodes/1.BQxkVmZR.js +1 -0
  249. package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.br +0 -0
  250. package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.gz +0 -0
  251. package/build/client/_app/immutable/nodes/10.DF_JvWer.js +3 -0
  252. package/build/client/_app/immutable/nodes/10.DF_JvWer.js.br +0 -0
  253. package/build/client/_app/immutable/nodes/10.DF_JvWer.js.gz +0 -0
  254. package/build/client/_app/immutable/nodes/11.Da20qmQ1.js +1 -0
  255. package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.br +0 -0
  256. package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.gz +0 -0
  257. package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js +14 -0
  258. package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.br +0 -0
  259. package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.gz +0 -0
  260. package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js +150 -0
  261. package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.br +0 -0
  262. package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.gz +0 -0
  263. package/build/client/_app/immutable/nodes/15.DNQBbVNt.js +11 -0
  264. package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.br +0 -0
  265. package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.gz +0 -0
  266. package/build/client/_app/immutable/nodes/16.PXR5gryE.js +9 -0
  267. package/build/client/_app/immutable/nodes/16.PXR5gryE.js.br +0 -0
  268. package/build/client/_app/immutable/nodes/16.PXR5gryE.js.gz +0 -0
  269. package/build/client/_app/immutable/nodes/17.D6wwTzw0.js +2 -0
  270. package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.br +0 -0
  271. package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.gz +0 -0
  272. package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js +6 -0
  273. package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.br +0 -0
  274. package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.gz +0 -0
  275. package/build/client/_app/immutable/nodes/19.eOj7WL-z.js +1 -0
  276. package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.br +0 -0
  277. package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.gz +0 -0
  278. package/build/client/_app/immutable/nodes/2.iGkQWI53.js +14 -0
  279. package/build/client/_app/immutable/nodes/2.iGkQWI53.js.br +0 -0
  280. package/build/client/_app/immutable/nodes/2.iGkQWI53.js.gz +0 -0
  281. package/build/client/_app/immutable/nodes/20.COEvYhSn.js +6 -0
  282. package/build/client/_app/immutable/nodes/20.COEvYhSn.js.br +0 -0
  283. package/build/client/_app/immutable/nodes/20.COEvYhSn.js.gz +0 -0
  284. package/build/client/_app/immutable/nodes/3.DgV1VyBd.js +5 -0
  285. package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.br +0 -0
  286. package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.gz +0 -0
  287. package/build/client/_app/immutable/nodes/4.BFV94RXa.js +1 -0
  288. package/build/client/_app/immutable/nodes/4.BFV94RXa.js.br +0 -0
  289. package/build/client/_app/immutable/nodes/4.BFV94RXa.js.gz +0 -0
  290. package/build/client/_app/immutable/nodes/5.DXQSdCv2.js +1 -0
  291. package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.br +0 -0
  292. package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.gz +0 -0
  293. package/build/client/_app/immutable/nodes/6.BVvx9mug.js +7 -0
  294. package/build/client/_app/immutable/nodes/6.BVvx9mug.js.br +0 -0
  295. package/build/client/_app/immutable/nodes/6.BVvx9mug.js.gz +0 -0
  296. package/build/client/_app/immutable/nodes/7.bgzyRDkn.js +4 -0
  297. package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.br +0 -0
  298. package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.gz +0 -0
  299. package/build/client/_app/immutable/nodes/9.BjRlvbf0.js +1 -0
  300. package/build/client/_app/immutable/nodes/9.BjRlvbf0.js.br +0 -0
  301. package/build/client/_app/immutable/nodes/9.BjRlvbf0.js.gz +0 -0
  302. package/build/client/_app/version.json +1 -1
  303. package/build/client/_app/version.json.br +0 -0
  304. package/build/client/_app/version.json.gz +0 -0
  305. package/build/handler.js +7 -7
  306. package/build/index.js +7 -7
  307. package/build/server/chunks/chunks/AllowanceMeter.js-DBpmESX6.js +42 -0
  308. package/build/server/chunks/chunks/DecisionCard.js-CvR7ULLC.js +461 -0
  309. package/build/server/chunks/chunks/DocSheet.js-BPPDMi3P.js +50 -0
  310. package/build/server/chunks/chunks/EtaLine.js-CtcOSLzV.js +79 -0
  311. package/build/server/chunks/chunks/EveryProjectSwitch.js-DWet6DU1.js +200 -0
  312. package/build/server/chunks/chunks/Icon.js-CVZZ-yuB.js +129 -0
  313. package/build/server/chunks/chunks/InsightsNav.js-Cmn5y1to.js +18 -0
  314. package/build/server/chunks/chunks/InstallPlugin.js-B46b-IrK.js +45 -0
  315. package/build/server/chunks/chunks/LinkedText.js-COjHV297.js +43 -0
  316. package/build/server/chunks/chunks/ProjectBanner.js-19PQF0LD.js +111 -0
  317. package/build/server/chunks/chunks/ProjectStateMark.js-BkRD8cX4.js +61 -0
  318. package/build/server/chunks/chunks/QuestionList.js-CppuauNj.js +187 -0
  319. package/build/server/chunks/chunks/ResizableRail.js-BmMh1aVL.js +801 -0
  320. package/build/server/chunks/chunks/SettingsNav.js-BtJIv5cc.js +22 -0
  321. package/build/server/chunks/chunks/SlotContent.js-B4p1QLQN.js +748 -0
  322. package/build/server/chunks/chunks/StageTrack.js-DHvZX7Bl.js +111 -0
  323. package/build/server/chunks/chunks/TimeBar.js-CUFKEJW9.js +32 -0
  324. package/build/server/chunks/chunks/TimeLegend.js-B3Wl61jM.js +29 -0
  325. package/build/server/chunks/chunks/aliases.svelte.js-C_vCoKdk.js +138 -0
  326. package/build/server/chunks/chunks/arrow-down.js-Bt3fQooI.js +18 -0
  327. package/build/server/chunks/chunks/arrow-left.js-BKiSMzvI.js +18 -0
  328. package/build/server/chunks/chunks/arrow-right.js-CNYqcx0M.js +18 -0
  329. package/build/server/chunks/chunks/arrow-up.js-DHbXk79z.js +18 -0
  330. package/build/server/chunks/chunks/attachments.js-BAnnqpd-.js +48 -0
  331. package/build/server/chunks/chunks/bell.js-CXJp-3UZ.js +150 -0
  332. package/build/server/chunks/chunks/berths.js-CuAE9lHW.js +268 -0
  333. package/build/server/chunks/chunks/book-open.js-C2rohN3N.js +23 -0
  334. package/build/server/chunks/chunks/button.js-BF2PsvWw.js +7311 -0
  335. package/build/server/chunks/chunks/chat.svelte.js-b0uQXOge.js +545 -0
  336. package/build/server/chunks/chunks/check.js-32sYHVxG.js +15 -0
  337. package/build/server/chunks/chunks/checks.js-DR3fVVpO.js +242 -0
  338. package/build/server/chunks/chunks/chevron-down.js-CH53s_me.js +15 -0
  339. package/build/server/chunks/chunks/chevron-left.js-D5RHY-kD.js +15 -0
  340. package/build/server/chunks/chunks/chevron-right.js-DCBAqAae.js +15 -0
  341. package/build/server/chunks/chunks/circle-alert.js-XTuAj7ZH.js +23 -0
  342. package/build/server/chunks/chunks/circle-dashed.js-fXv_bIo-.js +24 -0
  343. package/build/server/chunks/chunks/circle-dot.js-C950Kosw.js +18 -0
  344. package/build/server/chunks/chunks/client.js-B_5mNqUe.js +24 -0
  345. package/build/server/chunks/chunks/clock.js-CHhHTWK_.js +18 -0
  346. package/build/server/chunks/chunks/detail.js-9VHqIqfd.js +121 -0
  347. package/build/server/chunks/chunks/docpath.js-D27w_pf9.js +47 -0
  348. package/build/server/chunks/chunks/external-link.js-BQs1euhR.js +24 -0
  349. package/build/server/chunks/chunks/file-text.js-CnuVvHlB.js +26 -0
  350. package/build/server/chunks/chunks/gauge.js-Cbb1aqE7.js +35 -0
  351. package/build/server/chunks/chunks/hand.js-BA9yKAan.js +25 -0
  352. package/build/server/chunks/chunks/harbour.js-PHLHOFea.js +117 -0
  353. package/build/server/chunks/chunks/html.js-FW6Ia4bL.js +8 -0
  354. package/build/server/chunks/chunks/http.js-CBM8xgUM.js +25 -0
  355. package/build/server/chunks/chunks/inbox.js-Dv8a1ecX.js +184 -0
  356. package/build/server/chunks/chunks/inbox.svelte.js-n7K3YnGB.js +171 -0
  357. package/build/server/chunks/chunks/index-server.js-DsObimPA.js +9 -0
  358. package/build/server/chunks/chunks/index-server2.js-Fb2GE8KQ.js +17 -0
  359. package/build/server/chunks/chunks/index.js-B0NFhRTN.js +1524 -0
  360. package/build/server/chunks/chunks/index2.js-Bxt1T6_K.js +46 -0
  361. package/build/server/chunks/chunks/internal.js-CxWYnS4m.js +146 -0
  362. package/build/server/chunks/chunks/keys.js-iHygUPeb.js +20 -0
  363. package/build/server/chunks/chunks/live.svelte.js-DavJCZVs.js +238 -0
  364. package/build/server/chunks/chunks/loader-circle.js-rQHvIWN7.js +16 -0
  365. package/build/server/chunks/chunks/markdown.js-CApgGpeX.js +2634 -0
  366. package/build/server/chunks/chunks/message-circle-question-mark.js-DbmaS9k_.js +25 -0
  367. package/build/server/chunks/chunks/message-square.js-XK15WVZq.js +22 -0
  368. package/build/server/chunks/chunks/messages-square.js-BXH8BHfd.js +28 -0
  369. package/build/server/chunks/chunks/minus.js-DKvkj8VD.js +15 -0
  370. package/build/server/chunks/chunks/nav.js-DwnXJgxd.js +29 -0
  371. package/build/server/chunks/chunks/plus.js-caVrjGZc.js +15 -0
  372. package/build/server/chunks/chunks/preview.js-hrimfbCG.js +69 -0
  373. package/build/server/chunks/chunks/pullrequests.js-CWGxTy8C.js +68 -0
  374. package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +12 -0
  375. package/build/server/chunks/chunks/repo.js-DU-pK5Nw.js +33 -0
  376. package/build/server/chunks/chunks/requests.js-DiL4Poa9.js +42 -0
  377. package/build/server/chunks/chunks/restart.js-Dv1_ODgZ.js +12 -0
  378. package/build/server/chunks/chunks/root.js-60iebdW4.js +3105 -0
  379. package/build/server/chunks/chunks/rotate-cw.js-M4SHOpYI.js +21 -0
  380. package/build/server/chunks/chunks/runtime.js-4msnOWzY.js +15335 -0
  381. package/build/server/chunks/chunks/scale.js-S5g8YUqL.js +21 -0
  382. package/build/server/chunks/chunks/scroll-lock.js-Ci_ylINL.js +2811 -0
  383. package/build/server/chunks/chunks/service.js-DZR6CoEI.js +914 -0
  384. package/build/server/chunks/chunks/settings.js-C_6kvzhM.js +862 -0
  385. package/build/server/chunks/chunks/slots.svelte.js-CLIV5nwM.js +34 -0
  386. package/build/server/chunks/chunks/square-terminal.js-D9D9_9_V.js +30 -0
  387. package/build/server/chunks/chunks/store.js-ByNV-OHV.js +323 -0
  388. package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
  389. package/build/server/chunks/chunks/triangle-alert.js-ClLszsZE.js +25 -0
  390. package/build/server/chunks/chunks/uploads.js-4OZ09onz.js +107 -0
  391. package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +8 -0
  392. package/build/server/chunks/chunks/utils.js-BJgm9WbO.js +2985 -0
  393. package/build/server/chunks/chunks/vault.js-CTaWe09z.js +162 -0
  394. package/build/server/chunks/chunks/view.js-BPycofxX.js +76 -0
  395. package/build/server/chunks/chunks/views.js-DyGxvskG.js +124 -0
  396. package/build/server/chunks/chunks/words.js-Cte4wOB4.js +48 -0
  397. package/build/server/chunks/chunks/x.js-YxaUOlq9.js +18 -0
  398. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DqDt7aNN.js +90 -0
  399. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-D-mwPJ4E.js +100 -0
  400. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DTl4eBah.js +49 -0
  401. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-HFyCRRIx.js +83 -0
  402. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CO7kITUs.js +119 -0
  403. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CTdaQTFX.js +45 -0
  404. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DKxlZSX3.js +51 -0
  405. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bp4CsZQ9.js +44 -0
  406. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js--Ti6GfKf.js +66 -0
  407. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DudckFen.js +54 -0
  408. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-H09D-uaY.js +44 -0
  409. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-B1jFlBJC.js +31 -0
  410. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-B2h2nWSK.js +39 -0
  411. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BMcNM7_1.js +36 -0
  412. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-CVc8gLps.js +100 -0
  413. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BcVLJq4f.js +36 -0
  414. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKqY2sWJ.js +60 -0
  415. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-a4l41m0P.js +51 -0
  416. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Cr_YrS6N.js +36 -0
  417. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CZUfk-OY.js +71 -0
  418. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPBW7xEV.js +23 -0
  419. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Dg2Sbcgq.js +59 -0
  420. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-C9LXRfKc.js +35 -0
  421. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C7RCx22P.js +36 -0
  422. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CSPS_3gF.js +35 -0
  423. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DWxejv3K.js +38 -0
  424. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BYYXspMy.js +23 -0
  425. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BAPnLV-3.js +41 -0
  426. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-OYV-kJGk.js +50 -0
  427. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-DovNLcSw.js +62 -0
  428. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CYU1VGUf.js +49 -0
  429. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CgCzXBIB.js +72 -0
  430. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BZ2S7d9x.js +55 -0
  431. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CMVRpWqZ.js +55 -0
  432. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BhhLjW17.js +44 -0
  433. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-Bukv4dSq.js +41 -0
  434. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BsHRnnS7.js +60 -0
  435. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B9eygpXJ.js +48 -0
  436. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-o7w8BRpJ.js +93 -0
  437. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BaXho4qD.js +110 -0
  438. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CagOXKfp.js +54 -0
  439. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CAcsCtS9.js +23 -0
  440. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CSlKdXcw.js +23 -0
  441. package/build/server/chunks/entries/endpoints/projects/_server.ts.js-uMp6dcat.js +7 -0
  442. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-OEWlGF9d.js +40 -0
  443. package/build/server/chunks/entries/fallbacks/error.svelte.js-DnpcUjRk.js +15 -0
  444. package/build/server/chunks/entries/hooks.server.js-BeVVnKyB.js +54 -0
  445. package/build/server/chunks/entries/pages/_layout.server.ts.js-CFzh0bb7.js +24 -0
  446. package/build/server/chunks/entries/pages/_layout.svelte.js-BQyvY_vc.js +8746 -0
  447. package/build/server/chunks/entries/pages/_page.server.ts.js-DqT-OIkV.js +16 -0
  448. package/build/server/chunks/entries/pages/_page.svelte.js-DMDSI7Tw.js +2220 -0
  449. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CGjy1S4B.js +11 -0
  450. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C3NsHXP-.js +184 -0
  451. package/build/server/chunks/entries/pages/files/_page.server.ts.js-D6VF_7EK.js +17 -0
  452. package/build/server/chunks/entries/pages/files/_page.svelte.js-Bj-5ZaJn.js +61 -0
  453. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-Cbei7bFp.js +46 -0
  454. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-D8RsASWB.js +580 -0
  455. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DtFxpkIR.js +11 -0
  456. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-BLFQjLz8.js +149 -0
  457. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-Bn5pWt__.js +185 -0
  458. package/build/server/chunks/entries/pages/plugins/_page.server.ts.js-D_nxVVQ0.js +11 -0
  459. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CybSuVD4.js +16 -0
  460. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DMPiRdLN.js +52 -0
  461. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CroKCV4u.js +23 -0
  462. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-_DNqdqJc.js +976 -0
  463. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Vb8907y2.js +21 -0
  464. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-BLTTCa_O.js +74 -0
  465. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cor2JYpv.js +27 -0
  466. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-BTgNmS_4.js +433 -0
  467. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Dtvwihv0.js +15 -0
  468. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-DuitNXlV.js +1880 -0
  469. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DnBg1UuM.js +11 -0
  470. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BqNGCjSG.js +11 -0
  471. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BmbSSxk6.js +208 -0
  472. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-CQ9DVI4s.js +19 -0
  473. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-U1GPMY59.js +1847 -0
  474. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-C_YGnjmx.js +17 -0
  475. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-C_gSykyo.js +220 -0
  476. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-C-lePqYN.js +25 -0
  477. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Ds1ivkgU.js +2142 -0
  478. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DH7nAB6U.js +24 -0
  479. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-BOMmvf6G.js +80 -0
  480. package/build/server/chunks/entries/pages/time/_page.server.ts.js-Bfe-SSUC.js +11 -0
  481. package/build/server/chunks/entries/pages/time/_page.svelte.js-Ckn0YUW_.js +108 -0
  482. package/build/server/chunks/handler-CViJcHBG.js +1474 -0
  483. package/build/server/chunks/index.js-DO8YdJ_5.js +4296 -0
  484. package/build/server/chunks/manifest.js-DJYckUS-.js +501 -0
  485. package/build/server/chunks/nodes/0.js-DZ4kFPNe.js +41 -0
  486. package/build/server/chunks/nodes/1.js-CLGjQTlS.js +9 -0
  487. package/build/server/chunks/nodes/10.js-BN4Clcbg.js +43 -0
  488. package/build/server/chunks/nodes/11.js-DWB1yiJ6.js +42 -0
  489. package/build/server/chunks/nodes/12.js-CA99401F.js +43 -0
  490. package/build/server/chunks/nodes/13.js-YsHE2JFx.js +42 -0
  491. package/build/server/chunks/nodes/14.js-Cl3VZ6XR.js +12 -0
  492. package/build/server/chunks/nodes/15.js-CLdnAt4r.js +41 -0
  493. package/build/server/chunks/nodes/16.js-B-2Iq3Ye.js +41 -0
  494. package/build/server/chunks/nodes/17.js-BTM2TsmR.js +44 -0
  495. package/build/server/chunks/nodes/18.js-D3m0ATU2.js +42 -0
  496. package/build/server/chunks/nodes/19.js-C3dO33LH.js +42 -0
  497. package/build/server/chunks/nodes/2.js-51wjL-91.js +41 -0
  498. package/build/server/chunks/nodes/20.js-e41qDeY7.js +41 -0
  499. package/build/server/chunks/nodes/3.js-3JUV-tiI.js +41 -0
  500. package/build/server/chunks/nodes/4.js-CI6WGOXE.js +41 -0
  501. package/build/server/chunks/nodes/5.js-tZ-lWwlu.js +45 -0
  502. package/build/server/chunks/nodes/6.js-BgQesykU.js +41 -0
  503. package/build/server/chunks/nodes/7.js-CFXzqkNQ.js +9 -0
  504. package/build/server/chunks/nodes/8.js-D32pPbKa.js +12 -0
  505. package/build/server/chunks/nodes/9.js-CUQI6T4W.js +41 -0
  506. package/dist/cli.js +2156 -72
  507. package/dist/wh-vault.js +1007 -0
  508. package/package.json +5 -3
  509. package/plugins/github-issues/.wheelhouse-plugin/plugin.json +44 -0
  510. package/plugins/github-issues/README.md +16 -0
  511. package/plugins/github-issues/wheelhouse/server/index.js +463 -0
  512. package/plugins/project-links/.wheelhouse-plugin/plugin.json +25 -0
  513. package/plugins/project-links/README.md +17 -0
  514. package/plugins/project-links/wheelhouse/server/index.js +278 -0
  515. package/plugins/project-links/wheelhouse/ui/index.js +87 -0
  516. package/plugins/vault/.wheelhouse-plugin/plugin.json +22 -0
  517. package/plugins/vault/README.md +18 -0
  518. package/plugins/vault/wheelhouse/server/index.js +297 -0
  519. package/build/client/_app/immutable/assets/0.DaQhCSel.css +0 -1
  520. package/build/client/_app/immutable/assets/0.DaQhCSel.css.br +0 -0
  521. package/build/client/_app/immutable/assets/0.DaQhCSel.css.gz +0 -0
  522. package/build/client/_app/immutable/assets/12.DT1C9nmd.css +0 -1
  523. package/build/client/_app/immutable/assets/12.DT1C9nmd.css.br +0 -0
  524. package/build/client/_app/immutable/assets/12.DT1C9nmd.css.gz +0 -0
  525. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css +0 -1
  526. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.br +0 -0
  527. package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.gz +0 -0
  528. package/build/client/_app/immutable/assets/15.KLSHp5Yu.css +0 -1
  529. package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.br +0 -0
  530. package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.gz +0 -0
  531. package/build/client/_app/immutable/chunks/36FDwM1G.js +0 -1
  532. package/build/client/_app/immutable/chunks/36FDwM1G.js.br +0 -0
  533. package/build/client/_app/immutable/chunks/36FDwM1G.js.gz +0 -0
  534. package/build/client/_app/immutable/chunks/B1XxiJam.js +0 -1
  535. package/build/client/_app/immutable/chunks/B1XxiJam.js.br +0 -0
  536. package/build/client/_app/immutable/chunks/B1XxiJam.js.gz +0 -0
  537. package/build/client/_app/immutable/chunks/B1bNvkZf.js +0 -1
  538. package/build/client/_app/immutable/chunks/B1bNvkZf.js.br +0 -0
  539. package/build/client/_app/immutable/chunks/B1bNvkZf.js.gz +0 -0
  540. package/build/client/_app/immutable/chunks/B2wEHue2.js +0 -1
  541. package/build/client/_app/immutable/chunks/B2wEHue2.js.br +0 -0
  542. package/build/client/_app/immutable/chunks/B2wEHue2.js.gz +0 -0
  543. package/build/client/_app/immutable/chunks/BEAYWcbT.js +0 -1
  544. package/build/client/_app/immutable/chunks/BEAYWcbT.js.br +0 -0
  545. package/build/client/_app/immutable/chunks/BEAYWcbT.js.gz +0 -0
  546. package/build/client/_app/immutable/chunks/BGINfGsV.js +0 -1
  547. package/build/client/_app/immutable/chunks/BGINfGsV.js.br +0 -4
  548. package/build/client/_app/immutable/chunks/BGINfGsV.js.gz +0 -0
  549. package/build/client/_app/immutable/chunks/BHsdHLbF.js +0 -1
  550. package/build/client/_app/immutable/chunks/BHsdHLbF.js.br +0 -0
  551. package/build/client/_app/immutable/chunks/BHsdHLbF.js.gz +0 -0
  552. package/build/client/_app/immutable/chunks/BORDV711.js +0 -1
  553. package/build/client/_app/immutable/chunks/BORDV711.js.br +0 -0
  554. package/build/client/_app/immutable/chunks/BORDV711.js.gz +0 -0
  555. package/build/client/_app/immutable/chunks/BR5v76-T.js +0 -1
  556. package/build/client/_app/immutable/chunks/BR5v76-T.js.br +0 -0
  557. package/build/client/_app/immutable/chunks/BR5v76-T.js.gz +0 -0
  558. package/build/client/_app/immutable/chunks/BUo4hMcM.js +0 -1
  559. package/build/client/_app/immutable/chunks/BUo4hMcM.js.br +0 -0
  560. package/build/client/_app/immutable/chunks/BUo4hMcM.js.gz +0 -0
  561. package/build/client/_app/immutable/chunks/BVVO3JPx.js +0 -1
  562. package/build/client/_app/immutable/chunks/BVVO3JPx.js.br +0 -0
  563. package/build/client/_app/immutable/chunks/BVVO3JPx.js.gz +0 -0
  564. package/build/client/_app/immutable/chunks/BWJa0dU7.js +0 -1
  565. package/build/client/_app/immutable/chunks/BWJa0dU7.js.br +0 -0
  566. package/build/client/_app/immutable/chunks/BWJa0dU7.js.gz +0 -0
  567. package/build/client/_app/immutable/chunks/Bfi4vm-w.js +0 -1
  568. package/build/client/_app/immutable/chunks/Bfi4vm-w.js.br +0 -0
  569. package/build/client/_app/immutable/chunks/Bfi4vm-w.js.gz +0 -0
  570. package/build/client/_app/immutable/chunks/BiTivU7x.js +0 -1
  571. package/build/client/_app/immutable/chunks/BiTivU7x.js.br +0 -0
  572. package/build/client/_app/immutable/chunks/BiTivU7x.js.gz +0 -0
  573. package/build/client/_app/immutable/chunks/BiuLIp4b.js +0 -1
  574. package/build/client/_app/immutable/chunks/BiuLIp4b.js.br +0 -0
  575. package/build/client/_app/immutable/chunks/BiuLIp4b.js.gz +0 -0
  576. package/build/client/_app/immutable/chunks/Bns_F-QV.js +0 -1
  577. package/build/client/_app/immutable/chunks/Bns_F-QV.js.br +0 -0
  578. package/build/client/_app/immutable/chunks/Bns_F-QV.js.gz +0 -0
  579. package/build/client/_app/immutable/chunks/Brlpgp90.js +0 -1
  580. package/build/client/_app/immutable/chunks/Brlpgp90.js.br +0 -0
  581. package/build/client/_app/immutable/chunks/Brlpgp90.js.gz +0 -0
  582. package/build/client/_app/immutable/chunks/BunkbzFG.js +0 -1
  583. package/build/client/_app/immutable/chunks/BunkbzFG.js.br +0 -0
  584. package/build/client/_app/immutable/chunks/BunkbzFG.js.gz +0 -0
  585. package/build/client/_app/immutable/chunks/BwOfqJw9.js +0 -1
  586. package/build/client/_app/immutable/chunks/BwOfqJw9.js.br +0 -0
  587. package/build/client/_app/immutable/chunks/BwOfqJw9.js.gz +0 -0
  588. package/build/client/_app/immutable/chunks/C-xrRA1Y.js +0 -1
  589. package/build/client/_app/immutable/chunks/C-xrRA1Y.js.br +0 -0
  590. package/build/client/_app/immutable/chunks/C-xrRA1Y.js.gz +0 -0
  591. package/build/client/_app/immutable/chunks/C2_XZrIO.js +0 -7
  592. package/build/client/_app/immutable/chunks/C2_XZrIO.js.br +0 -0
  593. package/build/client/_app/immutable/chunks/C2_XZrIO.js.gz +0 -0
  594. package/build/client/_app/immutable/chunks/C2d4bDYU.js +0 -1
  595. package/build/client/_app/immutable/chunks/C2d4bDYU.js.br +0 -0
  596. package/build/client/_app/immutable/chunks/C2d4bDYU.js.gz +0 -0
  597. package/build/client/_app/immutable/chunks/C6BQPSOs.js +0 -62
  598. package/build/client/_app/immutable/chunks/C6BQPSOs.js.br +0 -0
  599. package/build/client/_app/immutable/chunks/C6BQPSOs.js.gz +0 -0
  600. package/build/client/_app/immutable/chunks/CDphfOBv.js +0 -1
  601. package/build/client/_app/immutable/chunks/CDphfOBv.js.br +0 -0
  602. package/build/client/_app/immutable/chunks/CDphfOBv.js.gz +0 -0
  603. package/build/client/_app/immutable/chunks/CIE0U5Ih.js +0 -1
  604. package/build/client/_app/immutable/chunks/CIE0U5Ih.js.br +0 -0
  605. package/build/client/_app/immutable/chunks/CIE0U5Ih.js.gz +0 -0
  606. package/build/client/_app/immutable/chunks/CIfcjhKg.js +0 -14
  607. package/build/client/_app/immutable/chunks/CIfcjhKg.js.br +0 -0
  608. package/build/client/_app/immutable/chunks/CIfcjhKg.js.gz +0 -0
  609. package/build/client/_app/immutable/chunks/CKhg4Tm6.js +0 -1
  610. package/build/client/_app/immutable/chunks/CKhg4Tm6.js.br +0 -0
  611. package/build/client/_app/immutable/chunks/CKhg4Tm6.js.gz +0 -0
  612. package/build/client/_app/immutable/chunks/CLs9Rkbg.js +0 -1
  613. package/build/client/_app/immutable/chunks/CLs9Rkbg.js.br +0 -0
  614. package/build/client/_app/immutable/chunks/CLs9Rkbg.js.gz +0 -0
  615. package/build/client/_app/immutable/chunks/COQ3aAYj.js +0 -1
  616. package/build/client/_app/immutable/chunks/COQ3aAYj.js.br +0 -0
  617. package/build/client/_app/immutable/chunks/COQ3aAYj.js.gz +0 -0
  618. package/build/client/_app/immutable/chunks/COiIt96y.js +0 -1
  619. package/build/client/_app/immutable/chunks/COiIt96y.js.br +0 -0
  620. package/build/client/_app/immutable/chunks/COiIt96y.js.gz +0 -0
  621. package/build/client/_app/immutable/chunks/CQ7gIAH8.js +0 -1
  622. package/build/client/_app/immutable/chunks/CQ7gIAH8.js.br +0 -2
  623. package/build/client/_app/immutable/chunks/CQ7gIAH8.js.gz +0 -0
  624. package/build/client/_app/immutable/chunks/CQlHU-Rx.js +0 -1
  625. package/build/client/_app/immutable/chunks/CQlHU-Rx.js.br +0 -0
  626. package/build/client/_app/immutable/chunks/CQlHU-Rx.js.gz +0 -0
  627. package/build/client/_app/immutable/chunks/CXfdgbLv.js +0 -1
  628. package/build/client/_app/immutable/chunks/CXfdgbLv.js.br +0 -0
  629. package/build/client/_app/immutable/chunks/CXfdgbLv.js.gz +0 -0
  630. package/build/client/_app/immutable/chunks/CdOazBBu.js +0 -1
  631. package/build/client/_app/immutable/chunks/CdOazBBu.js.br +0 -0
  632. package/build/client/_app/immutable/chunks/CdOazBBu.js.gz +0 -0
  633. package/build/client/_app/immutable/chunks/CeYIQAXD.js +0 -1
  634. package/build/client/_app/immutable/chunks/CeYIQAXD.js.br +0 -0
  635. package/build/client/_app/immutable/chunks/CeYIQAXD.js.gz +0 -0
  636. package/build/client/_app/immutable/chunks/CfdzAfq2.js +0 -1
  637. package/build/client/_app/immutable/chunks/CfdzAfq2.js.br +0 -0
  638. package/build/client/_app/immutable/chunks/CfdzAfq2.js.gz +0 -0
  639. package/build/client/_app/immutable/chunks/CkFDaaNz.js +0 -1
  640. package/build/client/_app/immutable/chunks/CkFDaaNz.js.br +0 -0
  641. package/build/client/_app/immutable/chunks/CkFDaaNz.js.gz +0 -0
  642. package/build/client/_app/immutable/chunks/CkLriSVx.js +0 -1
  643. package/build/client/_app/immutable/chunks/CkLriSVx.js.br +0 -0
  644. package/build/client/_app/immutable/chunks/CkLriSVx.js.gz +0 -0
  645. package/build/client/_app/immutable/chunks/Clzs_eXS.js +0 -5
  646. package/build/client/_app/immutable/chunks/Clzs_eXS.js.br +0 -0
  647. package/build/client/_app/immutable/chunks/Clzs_eXS.js.gz +0 -0
  648. package/build/client/_app/immutable/chunks/CrCQ2NNA.js +0 -1
  649. package/build/client/_app/immutable/chunks/CrCQ2NNA.js.br +0 -0
  650. package/build/client/_app/immutable/chunks/CrCQ2NNA.js.gz +0 -0
  651. package/build/client/_app/immutable/chunks/CrgqcyB_.js +0 -1
  652. package/build/client/_app/immutable/chunks/CrgqcyB_.js.br +0 -0
  653. package/build/client/_app/immutable/chunks/CrgqcyB_.js.gz +0 -0
  654. package/build/client/_app/immutable/chunks/CtlVBKf-.js +0 -1
  655. package/build/client/_app/immutable/chunks/CtlVBKf-.js.br +0 -0
  656. package/build/client/_app/immutable/chunks/CtlVBKf-.js.gz +0 -0
  657. package/build/client/_app/immutable/chunks/D4aeBIhU.js +0 -1
  658. package/build/client/_app/immutable/chunks/D4aeBIhU.js.br +0 -0
  659. package/build/client/_app/immutable/chunks/D4aeBIhU.js.gz +0 -0
  660. package/build/client/_app/immutable/chunks/DC8T2WRZ.js +0 -1
  661. package/build/client/_app/immutable/chunks/DC8T2WRZ.js.br +0 -0
  662. package/build/client/_app/immutable/chunks/DC8T2WRZ.js.gz +0 -0
  663. package/build/client/_app/immutable/chunks/DGy76IbW.js +0 -2
  664. package/build/client/_app/immutable/chunks/DGy76IbW.js.br +0 -0
  665. package/build/client/_app/immutable/chunks/DGy76IbW.js.gz +0 -0
  666. package/build/client/_app/immutable/chunks/DIABVMrA.js +0 -1
  667. package/build/client/_app/immutable/chunks/DIABVMrA.js.br +0 -0
  668. package/build/client/_app/immutable/chunks/DIABVMrA.js.gz +0 -0
  669. package/build/client/_app/immutable/chunks/DLith9Yi.js +0 -1
  670. package/build/client/_app/immutable/chunks/DLith9Yi.js.br +0 -0
  671. package/build/client/_app/immutable/chunks/DLith9Yi.js.gz +0 -0
  672. package/build/client/_app/immutable/chunks/Da92_52d.js +0 -1
  673. package/build/client/_app/immutable/chunks/Da92_52d.js.br +0 -0
  674. package/build/client/_app/immutable/chunks/Da92_52d.js.gz +0 -0
  675. package/build/client/_app/immutable/chunks/Db0WMrvR.js +0 -1
  676. package/build/client/_app/immutable/chunks/Db0WMrvR.js.br +0 -0
  677. package/build/client/_app/immutable/chunks/Db0WMrvR.js.gz +0 -0
  678. package/build/client/_app/immutable/chunks/Dlb_KqyS.js +0 -2
  679. package/build/client/_app/immutable/chunks/Dlb_KqyS.js.br +0 -0
  680. package/build/client/_app/immutable/chunks/Dlb_KqyS.js.gz +0 -0
  681. package/build/client/_app/immutable/chunks/Dq9kJk5R.js +0 -1
  682. package/build/client/_app/immutable/chunks/Dq9kJk5R.js.br +0 -0
  683. package/build/client/_app/immutable/chunks/Dq9kJk5R.js.gz +0 -0
  684. package/build/client/_app/immutable/chunks/DxGQT-Hz.js +0 -1
  685. package/build/client/_app/immutable/chunks/DxGQT-Hz.js.br +0 -0
  686. package/build/client/_app/immutable/chunks/DxGQT-Hz.js.gz +0 -0
  687. package/build/client/_app/immutable/chunks/ET-O1REu.js +0 -1
  688. package/build/client/_app/immutable/chunks/ET-O1REu.js.br +0 -0
  689. package/build/client/_app/immutable/chunks/ET-O1REu.js.gz +0 -0
  690. package/build/client/_app/immutable/chunks/FQ69txbU.js +0 -1
  691. package/build/client/_app/immutable/chunks/FQ69txbU.js.br +0 -0
  692. package/build/client/_app/immutable/chunks/FQ69txbU.js.gz +0 -0
  693. package/build/client/_app/immutable/chunks/L-6wuY5f.js +0 -2
  694. package/build/client/_app/immutable/chunks/L-6wuY5f.js.br +0 -0
  695. package/build/client/_app/immutable/chunks/L-6wuY5f.js.gz +0 -0
  696. package/build/client/_app/immutable/chunks/M201SoVK.js +0 -1
  697. package/build/client/_app/immutable/chunks/M201SoVK.js.br +0 -1
  698. package/build/client/_app/immutable/chunks/M201SoVK.js.gz +0 -0
  699. package/build/client/_app/immutable/chunks/OeqXO44y.js +0 -1
  700. package/build/client/_app/immutable/chunks/OeqXO44y.js.br +0 -0
  701. package/build/client/_app/immutable/chunks/OeqXO44y.js.gz +0 -0
  702. package/build/client/_app/immutable/chunks/PPVm8Dsz.js +0 -1
  703. package/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
  704. package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
  705. package/build/client/_app/immutable/chunks/QAFSHLn2.js +0 -1
  706. package/build/client/_app/immutable/chunks/QAFSHLn2.js.br +0 -0
  707. package/build/client/_app/immutable/chunks/QAFSHLn2.js.gz +0 -0
  708. package/build/client/_app/immutable/chunks/Tm9AblHs.js +0 -1
  709. package/build/client/_app/immutable/chunks/Tm9AblHs.js.br +0 -0
  710. package/build/client/_app/immutable/chunks/Tm9AblHs.js.gz +0 -0
  711. package/build/client/_app/immutable/chunks/_7N5fmOy.js +0 -2
  712. package/build/client/_app/immutable/chunks/_7N5fmOy.js.br +0 -0
  713. package/build/client/_app/immutable/chunks/_7N5fmOy.js.gz +0 -0
  714. package/build/client/_app/immutable/chunks/eMSiEzFi.js +0 -1
  715. package/build/client/_app/immutable/chunks/eMSiEzFi.js.br +0 -0
  716. package/build/client/_app/immutable/chunks/eMSiEzFi.js.gz +0 -0
  717. package/build/client/_app/immutable/chunks/euRlC7pA.js +0 -1
  718. package/build/client/_app/immutable/chunks/euRlC7pA.js.br +0 -1
  719. package/build/client/_app/immutable/chunks/euRlC7pA.js.gz +0 -0
  720. package/build/client/_app/immutable/chunks/hBAvbyDe.js +0 -4
  721. package/build/client/_app/immutable/chunks/hBAvbyDe.js.br +0 -0
  722. package/build/client/_app/immutable/chunks/hBAvbyDe.js.gz +0 -0
  723. package/build/client/_app/immutable/chunks/iVpzjqp1.js +0 -1
  724. package/build/client/_app/immutable/chunks/iVpzjqp1.js.br +0 -0
  725. package/build/client/_app/immutable/chunks/iVpzjqp1.js.gz +0 -0
  726. package/build/client/_app/immutable/chunks/m3YfhLk1.js +0 -1
  727. package/build/client/_app/immutable/chunks/m3YfhLk1.js.br +0 -0
  728. package/build/client/_app/immutable/chunks/m3YfhLk1.js.gz +0 -0
  729. package/build/client/_app/immutable/chunks/p7x6PRF0.js +0 -1
  730. package/build/client/_app/immutable/chunks/p7x6PRF0.js.br +0 -0
  731. package/build/client/_app/immutable/chunks/p7x6PRF0.js.gz +0 -0
  732. package/build/client/_app/immutable/chunks/t4rxsdjl.js +0 -74
  733. package/build/client/_app/immutable/chunks/t4rxsdjl.js.br +0 -0
  734. package/build/client/_app/immutable/chunks/t4rxsdjl.js.gz +0 -0
  735. package/build/client/_app/immutable/chunks/uD7-7yV9.js +0 -1
  736. package/build/client/_app/immutable/chunks/uD7-7yV9.js.br +0 -4
  737. package/build/client/_app/immutable/chunks/uD7-7yV9.js.gz +0 -0
  738. package/build/client/_app/immutable/entry/app.Dzyng0dn.js +0 -2
  739. package/build/client/_app/immutable/entry/app.Dzyng0dn.js.br +0 -0
  740. package/build/client/_app/immutable/entry/app.Dzyng0dn.js.gz +0 -0
  741. package/build/client/_app/immutable/entry/start.9fa7Jj4n.js +0 -1
  742. package/build/client/_app/immutable/entry/start.9fa7Jj4n.js.br +0 -0
  743. package/build/client/_app/immutable/entry/start.9fa7Jj4n.js.gz +0 -0
  744. package/build/client/_app/immutable/nodes/0.CaNaBMzB.js +0 -5
  745. package/build/client/_app/immutable/nodes/0.CaNaBMzB.js.br +0 -0
  746. package/build/client/_app/immutable/nodes/0.CaNaBMzB.js.gz +0 -0
  747. package/build/client/_app/immutable/nodes/1.BCMmEnhe.js +0 -1
  748. package/build/client/_app/immutable/nodes/1.BCMmEnhe.js.br +0 -0
  749. package/build/client/_app/immutable/nodes/1.BCMmEnhe.js.gz +0 -0
  750. package/build/client/_app/immutable/nodes/10.BO2VoEpn.js +0 -14
  751. package/build/client/_app/immutable/nodes/10.BO2VoEpn.js.br +0 -0
  752. package/build/client/_app/immutable/nodes/10.BO2VoEpn.js.gz +0 -0
  753. package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js +0 -77
  754. package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js.br +0 -0
  755. package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js.gz +0 -0
  756. package/build/client/_app/immutable/nodes/12.BGnaA6g1.js +0 -32
  757. package/build/client/_app/immutable/nodes/12.BGnaA6g1.js.br +0 -0
  758. package/build/client/_app/immutable/nodes/12.BGnaA6g1.js.gz +0 -0
  759. package/build/client/_app/immutable/nodes/13.BMHoWbLt.js +0 -5
  760. package/build/client/_app/immutable/nodes/13.BMHoWbLt.js.br +0 -0
  761. package/build/client/_app/immutable/nodes/13.BMHoWbLt.js.gz +0 -0
  762. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js +0 -1
  763. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.br +0 -0
  764. package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.gz +0 -0
  765. package/build/client/_app/immutable/nodes/15.BDQ6GGok.js +0 -10
  766. package/build/client/_app/immutable/nodes/15.BDQ6GGok.js.br +0 -0
  767. package/build/client/_app/immutable/nodes/15.BDQ6GGok.js.gz +0 -0
  768. package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js +0 -6
  769. package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js.br +0 -0
  770. package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js.gz +0 -0
  771. package/build/client/_app/immutable/nodes/2.DmiGTHZF.js +0 -4
  772. package/build/client/_app/immutable/nodes/2.DmiGTHZF.js.br +0 -0
  773. package/build/client/_app/immutable/nodes/2.DmiGTHZF.js.gz +0 -0
  774. package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js +0 -5
  775. package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js.br +0 -0
  776. package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js.gz +0 -0
  777. package/build/client/_app/immutable/nodes/4.DMxs5dS-.js +0 -3
  778. package/build/client/_app/immutable/nodes/4.DMxs5dS-.js.br +0 -0
  779. package/build/client/_app/immutable/nodes/4.DMxs5dS-.js.gz +0 -0
  780. package/build/client/_app/immutable/nodes/5.pFV6qgYd.js +0 -7
  781. package/build/client/_app/immutable/nodes/5.pFV6qgYd.js.br +0 -0
  782. package/build/client/_app/immutable/nodes/5.pFV6qgYd.js.gz +0 -0
  783. package/build/client/_app/immutable/nodes/6.DKZQPZQe.js +0 -4
  784. package/build/client/_app/immutable/nodes/6.DKZQPZQe.js.br +0 -0
  785. package/build/client/_app/immutable/nodes/6.DKZQPZQe.js.gz +0 -0
  786. package/build/client/_app/immutable/nodes/7.DmCbsQpY.js +0 -1
  787. package/build/client/_app/immutable/nodes/7.DmCbsQpY.js.br +0 -0
  788. package/build/client/_app/immutable/nodes/7.DmCbsQpY.js.gz +0 -0
  789. package/build/client/_app/immutable/nodes/8.C5_-lQ12.js +0 -1
  790. package/build/client/_app/immutable/nodes/8.C5_-lQ12.js.br +0 -0
  791. package/build/client/_app/immutable/nodes/8.C5_-lQ12.js.gz +0 -0
  792. package/build/client/_app/immutable/nodes/9.DdS_3rh5.js +0 -1
  793. package/build/client/_app/immutable/nodes/9.DdS_3rh5.js.br +0 -0
  794. package/build/client/_app/immutable/nodes/9.DdS_3rh5.js.gz +0 -0
  795. package/build/server/chunks/chunks/AllowanceMeter.js-C9jRsAGU.js +0 -42
  796. package/build/server/chunks/chunks/DecisionCard.js-u1VQ9s_v.js +0 -350
  797. package/build/server/chunks/chunks/DictateTextarea.js-BlEnOzcN.js +0 -85
  798. package/build/server/chunks/chunks/EtaLine.js-Pa4_VV6V.js +0 -79
  799. package/build/server/chunks/chunks/Icon.js-D7CY3joB.js +0 -129
  800. package/build/server/chunks/chunks/InsightsNav.js-BlxFBJfj.js +0 -22
  801. package/build/server/chunks/chunks/MicButton.js-BZSQAyuM.js +0 -336
  802. package/build/server/chunks/chunks/QuestionList.js-DglKezUe.js +0 -259
  803. package/build/server/chunks/chunks/SlotContent.js-YqZXXtRz.js +0 -1977
  804. package/build/server/chunks/chunks/StageTrack.js-BaorW-yk.js +0 -59
  805. package/build/server/chunks/chunks/TimeBar.js-k38rc7ZI.js +0 -32
  806. package/build/server/chunks/chunks/TimeLegend.js-BQVvgsvs.js +0 -29
  807. package/build/server/chunks/chunks/access.js-XFAczbHS.js +0 -816
  808. package/build/server/chunks/chunks/anchor.js-ByXDBfbi.js +0 -20
  809. package/build/server/chunks/chunks/arrow-down.js-DXDJc9EE.js +0 -18
  810. package/build/server/chunks/chunks/arrow-left.js-6Yey35CE.js +0 -18
  811. package/build/server/chunks/chunks/arrow-right.js-CfbPWRqu.js +0 -18
  812. package/build/server/chunks/chunks/arrow-up.js-AhghNbhW.js +0 -18
  813. package/build/server/chunks/chunks/bell.js-CAlv92RY.js +0 -143
  814. package/build/server/chunks/chunks/blocks.js-BL9jLCe-.js +0 -710
  815. package/build/server/chunks/chunks/bus.svelte.js-DRTptEhF.js +0 -9
  816. package/build/server/chunks/chunks/button.js-HeBqLheH.js +0 -7311
  817. package/build/server/chunks/chunks/chat.svelte.js-Cgdbtjbw.js +0 -537
  818. package/build/server/chunks/chunks/check.js-bmUhmMEz.js +0 -15
  819. package/build/server/chunks/chunks/checks.js-BnIxIaus.js +0 -175
  820. package/build/server/chunks/chunks/chevron-down.js-D75hVSIe.js +0 -15
  821. package/build/server/chunks/chunks/chevron-right.js-yhLg_GaH.js +0 -15
  822. package/build/server/chunks/chunks/circle-dashed.js-Bm3gZCXK.js +0 -24
  823. package/build/server/chunks/chunks/client.js-BUNengrw.js +0 -24
  824. package/build/server/chunks/chunks/clock.js-D7JTvRbC.js +0 -18
  825. package/build/server/chunks/chunks/compass.js-Tq6uiG8I.js +0 -23
  826. package/build/server/chunks/chunks/detail.js-COMRu1TY.js +0 -133
  827. package/build/server/chunks/chunks/external-link.js-WxVF0xXO.js +0 -24
  828. package/build/server/chunks/chunks/file-text.js-CAo3vdqd.js +0 -26
  829. package/build/server/chunks/chunks/gauge.js-Dw9bgE72.js +0 -35
  830. package/build/server/chunks/chunks/git-pull-request.js-Cx1w8BQr.js +0 -20
  831. package/build/server/chunks/chunks/hammer.js-fp_Kidfj.js +0 -24
  832. package/build/server/chunks/chunks/hand.js-xkYPYJZj.js +0 -37
  833. package/build/server/chunks/chunks/harbour.js-xu7EfIHk.js +0 -113
  834. package/build/server/chunks/chunks/http.js-TzZuOtxn.js +0 -25
  835. package/build/server/chunks/chunks/http2.js-BO84xGO4.js +0 -26
  836. package/build/server/chunks/chunks/inbox.js-CW2sFmx9.js +0 -114
  837. package/build/server/chunks/chunks/inbox.svelte.js-OoKhjjWM.js +0 -134
  838. package/build/server/chunks/chunks/index-server.js-CtyUzIGY.js +0 -17
  839. package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +0 -19
  840. package/build/server/chunks/chunks/index.js-Bn6j9diM.js +0 -1524
  841. package/build/server/chunks/chunks/index2.js-CXaRTuov.js +0 -46
  842. package/build/server/chunks/chunks/internal.js-C_uDXIpd.js +0 -146
  843. package/build/server/chunks/chunks/keys.js-CdtCzv-v.js +0 -20
  844. package/build/server/chunks/chunks/live.svelte.js-BRUTNc9D.js +0 -196
  845. package/build/server/chunks/chunks/loader-circle.js-IYRaUYWq.js +0 -16
  846. package/build/server/chunks/chunks/message-circle-question-mark.js-DwrMi0ty.js +0 -25
  847. package/build/server/chunks/chunks/message-square-text.js-N5uEmy8L.js +0 -25
  848. package/build/server/chunks/chunks/message-square.js-Hp-6BHgG.js +0 -22
  849. package/build/server/chunks/chunks/minus.js-bsfnwE-h.js +0 -15
  850. package/build/server/chunks/chunks/monitor-play.js-B7qbbPH6.js +0 -28
  851. package/build/server/chunks/chunks/preview.js-CVD-Kwks.js +0 -68
  852. package/build/server/chunks/chunks/prreview.js-C5XxDIu2.js +0 -85
  853. package/build/server/chunks/chunks/root.js-CQzYN4Pu.js +0 -3105
  854. package/build/server/chunks/chunks/runtime.js-fVZqJsqU.js +0 -13280
  855. package/build/server/chunks/chunks/scale.js-vP4G0lZM.js +0 -21
  856. package/build/server/chunks/chunks/shield-check.js-PJLnCKD9.js +0 -23
  857. package/build/server/chunks/chunks/slots.svelte.js-0Ejhe-hS.js +0 -34
  858. package/build/server/chunks/chunks/spec.js-B0yI1XqG.js +0 -307
  859. package/build/server/chunks/chunks/split.js-BsCU24rQ.js +0 -20
  860. package/build/server/chunks/chunks/square-terminal.js-D5Z4Sl2-.js +0 -47
  861. package/build/server/chunks/chunks/tone.js-r2qFVrZC.js +0 -30
  862. package/build/server/chunks/chunks/trash.js-DYFbRevY.js +0 -46
  863. package/build/server/chunks/chunks/triangle-alert.js-DuE40HSU.js +0 -38
  864. package/build/server/chunks/chunks/utils.js-DTSGDHlH.js +0 -2956
  865. package/build/server/chunks/chunks/view.js-tvgxW0fE.js +0 -76
  866. package/build/server/chunks/chunks/view2.js-BdUXqNlY.js +0 -87
  867. package/build/server/chunks/chunks/views.js-B0wP-tuB.js +0 -137
  868. package/build/server/chunks/chunks/waypoints.js-D3HN7bje.js +0 -67
  869. package/build/server/chunks/chunks/x.js-tlds9Ooz.js +0 -18
  870. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-gil57_h5.js +0 -93
  871. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CWFdWS2r.js +0 -74
  872. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-0h1duDYU.js +0 -110
  873. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DUtAFI8B.js +0 -42
  874. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BVjvk1Kr.js +0 -35
  875. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CZKuOhTq.js +0 -57
  876. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DbYNDgMY.js +0 -45
  877. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dez_V83F.js +0 -35
  878. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-XScFl7NC.js +0 -27
  879. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BOvoz2OJ.js +0 -27
  880. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DuUHrmV4.js +0 -51
  881. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-P-j2jdcu.js +0 -27
  882. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BuaL2gbp.js +0 -27
  883. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dwoaon5p.js +0 -32
  884. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CpRObQnb.js +0 -41
  885. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Dml05WPU.js +0 -53
  886. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-rp9RtX4F.js +0 -40
  887. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-DLdJWcj-.js +0 -63
  888. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-Co_h1q_m.js +0 -46
  889. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-SRzfx-2h.js +0 -46
  890. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-lFuRL8QC.js +0 -35
  891. package/build/server/chunks/entries/endpoints/api/specs/_id_/_server.ts.js-D-QFRPpb.js +0 -59
  892. package/build/server/chunks/entries/endpoints/api/specs/_id_/build-request/_server.ts.js-CEZLC3cJ.js +0 -47
  893. package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_comment_/_server.ts.js-BHNzMZ7H.js +0 -36
  894. package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_server.ts.js-DHMiene7.js +0 -57
  895. package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_name_/_server.ts.js-BxmqxnuG.js +0 -49
  896. package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_server.ts.js-CvRTk1JX.js +0 -55
  897. package/build/server/chunks/entries/endpoints/api/specs/_id_/sent/_server.ts.js-VHXvHVC9.js +0 -36
  898. package/build/server/chunks/entries/endpoints/api/specs/_id_/turn/_server.ts.js-BjbvOskQ.js +0 -82
  899. package/build/server/chunks/entries/endpoints/api/specs/_server.ts.js-CUNgX4FQ.js +0 -40
  900. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTJxYuKH.js +0 -32
  901. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BsDmTo5q.js +0 -51
  902. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DmDd31bm.js +0 -39
  903. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-xNagO0jC.js +0 -84
  904. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-fNh7CbDX.js +0 -102
  905. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-DL1M1PqI.js +0 -34
  906. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-G8t4mipV.js +0 -40
  907. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-B0ymV1Pa.js +0 -39
  908. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-Bi08FNu1.js +0 -39
  909. package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-C_TftzeG.js +0 -32
  910. package/build/server/chunks/entries/fallbacks/error.svelte.js-DlN_tCrh.js +0 -15
  911. package/build/server/chunks/entries/hooks.server.js-IwCMs7or.js +0 -40
  912. package/build/server/chunks/entries/pages/_layout.server.ts.js-DQI-pH0T.js +0 -20
  913. package/build/server/chunks/entries/pages/_layout.svelte.js-BJuZaosz.js +0 -10454
  914. package/build/server/chunks/entries/pages/_page.server.ts.js-PgqrVobO.js +0 -16
  915. package/build/server/chunks/entries/pages/_page.svelte.js-BI4c5H0n.js +0 -3699
  916. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-SL6FScVj.js +0 -11
  917. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-ClTz3O_K.js +0 -167
  918. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-DIvSuIkZ.js +0 -20
  919. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-43FRNSVK.js +0 -1346
  920. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CGLa7Yrr.js +0 -11
  921. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-zmKQdAwy.js +0 -135
  922. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-wTvAFPNM.js +0 -175
  923. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BoG4CT_l.js +0 -15
  924. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DfAqJJ3i.js +0 -55
  925. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BVTs44zi.js +0 -15
  926. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-B472Pugu.js +0 -66
  927. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CER4deq2.js +0 -14
  928. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CWjEArXY.js +0 -394
  929. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DiCdDip4.js +0 -15
  930. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-iHacn81K.js +0 -1859
  931. package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BH_VcZlY.js +0 -37
  932. package/build/server/chunks/entries/pages/projects/_page.svelte.js-B_NQ-Wg3.js +0 -270
  933. package/build/server/chunks/entries/pages/spec/_page.server.ts.js-CTzZ3jGx.js +0 -31
  934. package/build/server/chunks/entries/pages/spec/_page.svelte.js-BJjweG9u.js +0 -1561
  935. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-YgQ9nhRn.js +0 -25
  936. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dr2wwDJG.js +0 -2063
  937. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DdBsWj8_.js +0 -24
  938. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-DOyZ1QzI.js +0 -145
  939. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-DY0lh_8-.js +0 -15
  940. package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-BDaRELgE.js +0 -692
  941. package/build/server/chunks/entries/pages/time/_page.server.ts.js-kriWArLo.js +0 -11
  942. package/build/server/chunks/entries/pages/time/_page.svelte.js-CSXGxvVs.js +0 -107
  943. package/build/server/chunks/handler-BZ-YqSXJ.js +0 -1474
  944. package/build/server/chunks/index.js-CmcXVwBU.js +0 -4296
  945. package/build/server/chunks/manifest.js-DqwS7AJB.js +0 -434
  946. package/build/server/chunks/nodes/0.js-DS2IDkUW.js +0 -32
  947. package/build/server/chunks/nodes/1.js-_0OBbjVP.js +0 -9
  948. package/build/server/chunks/nodes/10.js-CMSpRrcc.js +0 -33
  949. package/build/server/chunks/nodes/11.js-D1M01GlQ.js +0 -33
  950. package/build/server/chunks/nodes/12.js-DaC2vk2U.js +0 -37
  951. package/build/server/chunks/nodes/13.js-BSWYX8Ak.js +0 -33
  952. package/build/server/chunks/nodes/14.js-CY9oBxXM.js +0 -33
  953. package/build/server/chunks/nodes/15.js-Bg9hD2dR.js +0 -33
  954. package/build/server/chunks/nodes/16.js-qlcIEvV6.js +0 -32
  955. package/build/server/chunks/nodes/2.js-CW_-me_g.js +0 -32
  956. package/build/server/chunks/nodes/3.js-CUCcQUgI.js +0 -32
  957. package/build/server/chunks/nodes/4.js-CSYxmBts.js +0 -34
  958. package/build/server/chunks/nodes/5.js-CHwpTnZj.js +0 -32
  959. package/build/server/chunks/nodes/6.js-XHZwJGEg.js +0 -9
  960. package/build/server/chunks/nodes/7.js-DK_vuZQs.js +0 -32
  961. package/build/server/chunks/nodes/8.js-Crd93Nlx.js +0 -34
  962. package/build/server/chunks/nodes/9.js-CWqhWBb9.js +0 -32
  963. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css → 5.5dJKCkOT.css} +0 -0
  964. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.br → 5.5dJKCkOT.css.br} +0 -0
  965. /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.gz → 5.5dJKCkOT.css.gz} +0 -0
  966. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css → checks.Dga9zAug.css} +0 -0
  967. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.br → checks.Dga9zAug.css.br} +0 -0
  968. /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.gz → checks.Dga9zAug.css.gz} +0 -0
@@ -0,0 +1,2811 @@
1
+ import { af as hasContext, a3 as getContext, Z as setContext, _ as derived, ag as getAllContexts, ah as run, ai as ATTACHMENT_KEY, ac as spread_props, a7 as clsx } from './index.js-B0NFhRTN.js';
2
+ import { I as Icon } from './Icon.js-CVZZ-yuB.js';
3
+ import { t as tick, m as mount, u as unmount } from './index-server2.js-Fb2GE8KQ.js';
4
+ import { o as on } from './root.js-60iebdW4.js';
5
+ import { c as createSubscriber, S as SvelteMap } from './index-server.js-DsObimPA.js';
6
+
7
+ // http://www.w3.org/TR/CSS21/grammar.html
8
+ // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
9
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
10
+
11
+ var NEWLINE_REGEX = /\n/g;
12
+ var WHITESPACE_REGEX = /^\s*/;
13
+
14
+ // declaration
15
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
16
+ var COLON_REGEX = /^:\s*/;
17
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
18
+ var SEMICOLON_REGEX = /^[;\s]*/;
19
+
20
+ // https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
21
+ var TRIM_REGEX = /^\s+|\s+$/g;
22
+
23
+ // strings
24
+ var NEWLINE = '\n';
25
+ var FORWARD_SLASH = '/';
26
+ var ASTERISK = '*';
27
+ var EMPTY_STRING = '';
28
+
29
+ // types
30
+ var TYPE_COMMENT = 'comment';
31
+ var TYPE_DECLARATION = 'declaration';
32
+
33
+ /**
34
+ * @param {String} style
35
+ * @param {Object} [options]
36
+ * @return {Object[]}
37
+ * @throws {TypeError}
38
+ * @throws {Error}
39
+ */
40
+ function index (style, options) {
41
+ if (typeof style !== 'string') {
42
+ throw new TypeError('First argument must be a string');
43
+ }
44
+
45
+ if (!style) return [];
46
+
47
+ options = options || {};
48
+
49
+ /**
50
+ * Positional.
51
+ */
52
+ var lineno = 1;
53
+ var column = 1;
54
+
55
+ /**
56
+ * Update lineno and column based on `str`.
57
+ *
58
+ * @param {String} str
59
+ */
60
+ function updatePosition(str) {
61
+ var lines = str.match(NEWLINE_REGEX);
62
+ if (lines) lineno += lines.length;
63
+ var i = str.lastIndexOf(NEWLINE);
64
+ column = ~i ? str.length - i : column + str.length;
65
+ }
66
+
67
+ /**
68
+ * Mark position and patch `node.position`.
69
+ *
70
+ * @return {Function}
71
+ */
72
+ function position() {
73
+ var start = { line: lineno, column: column };
74
+ return function (node) {
75
+ node.position = new Position(start);
76
+ whitespace();
77
+ return node;
78
+ };
79
+ }
80
+
81
+ /**
82
+ * Store position information for a node.
83
+ *
84
+ * @constructor
85
+ * @property {Object} start
86
+ * @property {Object} end
87
+ * @property {undefined|String} source
88
+ */
89
+ function Position(start) {
90
+ this.start = start;
91
+ this.end = { line: lineno, column: column };
92
+ this.source = options.source;
93
+ }
94
+
95
+ /**
96
+ * Non-enumerable source string.
97
+ */
98
+ Position.prototype.content = style;
99
+
100
+ /**
101
+ * Error `msg`.
102
+ *
103
+ * @param {String} msg
104
+ * @throws {Error}
105
+ */
106
+ function error(msg) {
107
+ var err = new Error(
108
+ options.source + ':' + lineno + ':' + column + ': ' + msg
109
+ );
110
+ err.reason = msg;
111
+ err.filename = options.source;
112
+ err.line = lineno;
113
+ err.column = column;
114
+ err.source = style;
115
+
116
+ if (options.silent) ; else {
117
+ throw err;
118
+ }
119
+ }
120
+
121
+ /**
122
+ * Match `re` and return captures.
123
+ *
124
+ * @param {RegExp} re
125
+ * @return {undefined|Array}
126
+ */
127
+ function match(re) {
128
+ var m = re.exec(style);
129
+ if (!m) return;
130
+ var str = m[0];
131
+ updatePosition(str);
132
+ style = style.slice(str.length);
133
+ return m;
134
+ }
135
+
136
+ /**
137
+ * Parse whitespace.
138
+ */
139
+ function whitespace() {
140
+ match(WHITESPACE_REGEX);
141
+ }
142
+
143
+ /**
144
+ * Parse comments.
145
+ *
146
+ * @param {Object[]} [rules]
147
+ * @return {Object[]}
148
+ */
149
+ function comments(rules) {
150
+ var c;
151
+ rules = rules || [];
152
+ while ((c = comment())) {
153
+ if (c !== false) {
154
+ rules.push(c);
155
+ }
156
+ }
157
+ return rules;
158
+ }
159
+
160
+ /**
161
+ * Parse comment.
162
+ *
163
+ * @return {Object}
164
+ * @throws {Error}
165
+ */
166
+ function comment() {
167
+ var pos = position();
168
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
169
+
170
+ var i = 2;
171
+ while (
172
+ EMPTY_STRING != style.charAt(i) &&
173
+ (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
174
+ ) {
175
+ ++i;
176
+ }
177
+ i += 2;
178
+
179
+ if (EMPTY_STRING === style.charAt(i - 1)) {
180
+ return error('End of comment missing');
181
+ }
182
+
183
+ var str = style.slice(2, i - 2);
184
+ column += 2;
185
+ updatePosition(str);
186
+ style = style.slice(i);
187
+ column += 2;
188
+
189
+ return pos({
190
+ type: TYPE_COMMENT,
191
+ comment: str
192
+ });
193
+ }
194
+
195
+ /**
196
+ * Parse declaration.
197
+ *
198
+ * @return {Object}
199
+ * @throws {Error}
200
+ */
201
+ function declaration() {
202
+ var pos = position();
203
+
204
+ // prop
205
+ var prop = match(PROPERTY_REGEX);
206
+ if (!prop) return;
207
+ comment();
208
+
209
+ // :
210
+ if (!match(COLON_REGEX)) return error("property missing ':'");
211
+
212
+ // val
213
+ var val = match(VALUE_REGEX);
214
+
215
+ var ret = pos({
216
+ type: TYPE_DECLARATION,
217
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
218
+ value: val
219
+ ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
220
+ : EMPTY_STRING
221
+ });
222
+
223
+ // ;
224
+ match(SEMICOLON_REGEX);
225
+
226
+ return ret;
227
+ }
228
+
229
+ /**
230
+ * Parse declarations.
231
+ *
232
+ * @return {Object[]}
233
+ */
234
+ function declarations() {
235
+ var decls = [];
236
+
237
+ comments(decls);
238
+
239
+ // declarations
240
+ var decl;
241
+ while ((decl = declaration())) {
242
+ if (decl !== false) {
243
+ decls.push(decl);
244
+ comments(decls);
245
+ }
246
+ }
247
+
248
+ return decls;
249
+ }
250
+
251
+ whitespace();
252
+ return declarations();
253
+ }
254
+
255
+ /**
256
+ * Trim `str`.
257
+ *
258
+ * @param {String} str
259
+ * @return {String}
260
+ */
261
+ function trim(str) {
262
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
263
+ }
264
+
265
+ /**
266
+ * Parses inline style to object.
267
+ *
268
+ * @param style - Inline style.
269
+ * @param iterator - Iterator.
270
+ * @returns - Style object or null.
271
+ *
272
+ * @example Parsing inline style to object:
273
+ *
274
+ * ```js
275
+ * import parse from 'style-to-object';
276
+ * parse('line-height: 42;'); // { 'line-height': '42' }
277
+ * ```
278
+ */
279
+ function StyleToObject(style, iterator) {
280
+ let styleObject = null;
281
+ if (!style || typeof style !== 'string') {
282
+ return styleObject;
283
+ }
284
+ const declarations = index(style);
285
+ const hasIterator = typeof iterator === 'function';
286
+ declarations.forEach((declaration) => {
287
+ if (declaration.type !== 'declaration') {
288
+ return;
289
+ }
290
+ const { property, value } = declaration;
291
+ if (hasIterator) {
292
+ iterator(property, value, declaration);
293
+ }
294
+ else if (value) {
295
+ styleObject = styleObject || {};
296
+ styleObject[property] = value;
297
+ }
298
+ });
299
+ return styleObject;
300
+ }
301
+
302
+ /*!
303
+ * tabbable 6.5.0
304
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
305
+ */
306
+ // NOTE: separate `:not()` selectors has broader browser support than the newer
307
+ // `:not([inert], [inert] *)` (Feb 2023)
308
+ var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'area[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
309
+ var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
310
+ var NoElement = typeof Element === 'undefined';
311
+ var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
312
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
313
+ var _element$getRootNode;
314
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
315
+ } : function (element) {
316
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
317
+ };
318
+
319
+ /**
320
+ * Determines if a node is inert or in an inert ancestor.
321
+ * @param {Node} [node]
322
+ * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
323
+ * see if any of them are inert. If false, only `node` itself is considered.
324
+ * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
325
+ * False if `node` is falsy.
326
+ */
327
+ var _isInert = function isInert(node, lookUp) {
328
+ var _node$getAttribute;
329
+ if (lookUp === void 0) {
330
+ lookUp = true;
331
+ }
332
+ // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
333
+ // JS API property; we have to check the attribute, which can either be empty or 'true';
334
+ // if it's `null` (not specified) or 'false', it's an active element
335
+ var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
336
+ var inert = inertAtt === '' || inertAtt === 'true';
337
+
338
+ // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
339
+ // if it weren't for `matches()` not being a function on shadow roots; the following
340
+ // code works for any kind of node
341
+ var result = inert || lookUp && node && (
342
+ // closest does not exist on shadow roots, so we fall back to a manual
343
+ // lookup upward, in case it is not defined.
344
+ typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));
345
+ return result;
346
+ };
347
+
348
+ /**
349
+ * Determines if a node's content is editable.
350
+ * @param {Element} [node]
351
+ * @returns True if it's content-editable; false if it's not or `node` is falsy.
352
+ */
353
+ var isContentEditable = function isContentEditable(node) {
354
+ var _node$getAttribute2;
355
+ // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
356
+ // to use the attribute directly to check for this, which can either be empty or 'true';
357
+ // if it's `null` (not specified) or 'false', it's a non-editable element
358
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
359
+ return attValue === '' || attValue === 'true';
360
+ };
361
+
362
+ /**
363
+ * @param {Element} el container to check in
364
+ * @param {boolean} includeContainer add container to check
365
+ * @param {(node: Element) => boolean} filter filter candidates
366
+ * @returns {Element[]}
367
+ */
368
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
369
+ // even if `includeContainer=false`, we still have to check it for inertness because
370
+ // if it's inert (either by itself or via its parent), then all its children are inert
371
+ if (_isInert(el)) {
372
+ return [];
373
+ }
374
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
375
+ if (includeContainer && matches.call(el, candidateSelector)) {
376
+ candidates.unshift(el);
377
+ }
378
+ candidates = candidates.filter(filter);
379
+ return candidates;
380
+ };
381
+
382
+ /**
383
+ * @callback GetShadowRoot
384
+ * @param {Element} element to check for shadow root
385
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
386
+ */
387
+
388
+ /**
389
+ * @callback ShadowRootFilter
390
+ * @param {Element} shadowHostNode the element which contains shadow content
391
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
392
+ */
393
+
394
+ /**
395
+ * @typedef {Object} CandidateScope
396
+ * @property {Element} scopeParent contains inner candidates
397
+ * @property {Element[]} candidates list of candidates found in the scope parent
398
+ */
399
+
400
+ /**
401
+ * @typedef {Object} IterativeOptions
402
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
403
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
404
+ * or a boolean stating if it has an undisclosed shadow root
405
+ * @property {(node: Element) => boolean} filter filter candidates
406
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
407
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
408
+ */
409
+
410
+ /**
411
+ * @param {Element[]} elements list of element containers to match candidates from
412
+ * @param {boolean} includeContainer add container list to check
413
+ * @param {IterativeOptions} options
414
+ * @returns {Array.<Element|CandidateScope>}
415
+ */
416
+ var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
417
+ var candidates = [];
418
+ var elementsToCheck = Array.from(elements);
419
+ while (elementsToCheck.length) {
420
+ var element = elementsToCheck.shift();
421
+ if (_isInert(element, false)) {
422
+ // no need to look up since we're drilling down
423
+ // anything inside this container will also be inert
424
+ continue;
425
+ }
426
+ if (element.tagName === 'SLOT') {
427
+ // add shadow dom slot scope (slot itself cannot be focusable)
428
+ var assigned = element.assignedElements();
429
+ var content = assigned.length ? assigned : element.children;
430
+ var nestedCandidates = _getCandidatesIteratively(content, true, options);
431
+ if (options.flatten) {
432
+ candidates.push.apply(candidates, nestedCandidates);
433
+ } else {
434
+ candidates.push({
435
+ scopeParent: element,
436
+ candidates: nestedCandidates
437
+ });
438
+ }
439
+ } else {
440
+ // check candidate element
441
+ var validCandidate = matches.call(element, candidateSelector);
442
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
443
+ candidates.push(element);
444
+ }
445
+
446
+ // iterate over shadow content if possible
447
+ var shadowRoot = element.shadowRoot ||
448
+ // check for an undisclosed shadow
449
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
450
+
451
+ // no inert look up because we're already drilling down and checking for inertness
452
+ // on the way down, so all containers to this root node should have already been
453
+ // vetted as non-inert
454
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
455
+ if (shadowRoot && validShadowRoot) {
456
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
457
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
458
+ // child candidates found because they're likely slotted elements (elements that are
459
+ // children of the web component element (which has the shadow), in the light dom, but
460
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
461
+ // _after_ we return from this recursive call
462
+ var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
463
+ if (options.flatten) {
464
+ candidates.push.apply(candidates, _nestedCandidates);
465
+ } else {
466
+ candidates.push({
467
+ scopeParent: element,
468
+ candidates: _nestedCandidates
469
+ });
470
+ }
471
+ } else {
472
+ // there's not shadow so just dig into the element's (light dom) children
473
+ // __without__ giving the element special scope treatment
474
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
475
+ }
476
+ }
477
+ }
478
+ return candidates;
479
+ };
480
+
481
+ /**
482
+ * @private
483
+ * Determines if the node has an explicitly specified `tabindex` attribute.
484
+ * @param {HTMLElement} node
485
+ * @returns {boolean} True if so; false if not.
486
+ */
487
+ var hasTabIndex = function hasTabIndex(node) {
488
+ return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
489
+ };
490
+
491
+ /**
492
+ * Determine the tab index of a given node.
493
+ * @param {HTMLElement} node
494
+ * @returns {number} Tab order (negative, 0, or positive number).
495
+ * @throws {Error} If `node` is falsy.
496
+ */
497
+ var getTabIndex = function getTabIndex(node) {
498
+ if (!node) {
499
+ throw new Error('No node provided');
500
+ }
501
+ if (node.tabIndex < 0) {
502
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
503
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
504
+ // yet they are still part of the regular tab order; in FF, they get a default
505
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
506
+ // order, consider their tab index to be 0.
507
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
508
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
509
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
510
+ return 0;
511
+ }
512
+ }
513
+ return node.tabIndex;
514
+ };
515
+
516
+ /**
517
+ * Determine the tab index of a given node __for sort order purposes__.
518
+ * @param {HTMLElement} node
519
+ * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
520
+ * has tabIndex -1, but needs to be sorted by document order in order for its content to be
521
+ * inserted into the correct sort position.
522
+ * @returns {number} Tab order (negative, 0, or positive number).
523
+ */
524
+ var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
525
+ var tabIndex = getTabIndex(node);
526
+ if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
527
+ return 0;
528
+ }
529
+ return tabIndex;
530
+ };
531
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
532
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
533
+ };
534
+ var isInput = function isInput(node) {
535
+ return node.tagName === 'INPUT';
536
+ };
537
+ var isHiddenInput = function isHiddenInput(node) {
538
+ return isInput(node) && node.type === 'hidden';
539
+ };
540
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
541
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
542
+ return child.tagName === 'SUMMARY';
543
+ });
544
+ return r;
545
+ };
546
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
547
+ for (var i = 0; i < nodes.length; i++) {
548
+ if (nodes[i].checked && nodes[i].form === form) {
549
+ return nodes[i];
550
+ }
551
+ }
552
+ };
553
+ var isTabbableRadio = function isTabbableRadio(node) {
554
+ if (!node.name) {
555
+ return true;
556
+ }
557
+ var radioScope = node.form || getRootNode(node);
558
+ var queryRadios = function queryRadios(name) {
559
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
560
+ };
561
+ var radioSet;
562
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
563
+ radioSet = queryRadios(window.CSS.escape(node.name));
564
+ } else {
565
+ try {
566
+ radioSet = queryRadios(node.name);
567
+ } catch (err) {
568
+ // eslint-disable-next-line no-console
569
+ console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
570
+ return false;
571
+ }
572
+ }
573
+ var checked = getCheckedRadio(radioSet, node.form);
574
+ return !checked || checked === node;
575
+ };
576
+ var isRadio = function isRadio(node) {
577
+ return isInput(node) && node.type === 'radio';
578
+ };
579
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
580
+ return isRadio(node) && !isTabbableRadio(node);
581
+ };
582
+
583
+ // determines if a node is ultimately attached to the window's document
584
+ var isNodeAttached = function isNodeAttached(node) {
585
+ var _nodeRoot;
586
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
587
+ // (but NOT _the_ document; see second 'If' comment below for more).
588
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
589
+ // is attached, and the one we need to check if it's in the document or not (because the
590
+ // shadow, and all nodes it contains, is never considered in the document since shadows
591
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
592
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
593
+ // visibility, including all the nodes it contains). The host could be any normal node,
594
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
595
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
596
+ // tested).
597
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
598
+ // that is attached (or find none) because the node might be in nested shadows...
599
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
600
+ // document (per the docs) and while it's a Document-type object, that document does not
601
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
602
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
603
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
604
+ // node is actually detached.
605
+ // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
606
+ // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
607
+ // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
608
+ // `ownerDocument` will be `null`, hence the optional chaining on it.
609
+ var nodeRoot = node && getRootNode(node);
610
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
611
+
612
+ // in some cases, a detached node will return itself as the root instead of a document or
613
+ // shadow root object, in which case, we shouldn't try to look further up the host chain
614
+ var attached = false;
615
+ if (nodeRoot && nodeRoot !== node) {
616
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
617
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
618
+ while (!attached && nodeRootHost) {
619
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
620
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
621
+ // which means we need to get the host's host and check if that parent host is contained
622
+ // in (i.e. attached to) the document
623
+ nodeRoot = getRootNode(nodeRootHost);
624
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
625
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
626
+ }
627
+ }
628
+ return attached;
629
+ };
630
+ var isZeroArea = function isZeroArea(node) {
631
+ var _node$getBoundingClie = node.getBoundingClientRect(),
632
+ width = _node$getBoundingClie.width,
633
+ height = _node$getBoundingClie.height;
634
+ return width === 0 && height === 0;
635
+ };
636
+ var isHidden = function isHidden(node, _ref) {
637
+ var displayCheck = _ref.displayCheck,
638
+ getShadowRoot = _ref.getShadowRoot;
639
+ if (displayCheck === 'full-native') {
640
+ if ('checkVisibility' in node) {
641
+ // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
642
+ // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
643
+ var visible = node.checkVisibility({
644
+ // Checking opacity might be desirable for some use cases, but natively,
645
+ // opacity zero elements _are_ focusable and tabbable.
646
+ checkOpacity: false,
647
+ opacityProperty: false,
648
+ contentVisibilityAuto: true,
649
+ visibilityProperty: true,
650
+ // This is an alias for `visibilityProperty`. Contemporary browsers
651
+ // support both. However, this alias has wider browser support (Chrome
652
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
653
+ // we include it anyway.
654
+ checkVisibilityCSS: true
655
+ });
656
+ return !visible;
657
+ }
658
+ // Fall through to manual visibility checks
659
+ }
660
+
661
+ // NOTE: visibility will be `undefined` if node is detached from the document
662
+ // (see notes about this further down), which means we will consider it visible
663
+ // (this is legacy behavior from a very long way back)
664
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
665
+ // _visibility_ check, not a _display_ check
666
+ var _getComputedStyle = getComputedStyle(node),
667
+ visibility = _getComputedStyle.visibility;
668
+ if (visibility === 'hidden' || visibility === 'collapse') {
669
+ return true;
670
+ }
671
+ var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
672
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
673
+ if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
674
+ return true;
675
+ }
676
+ if (!displayCheck || displayCheck === 'full' ||
677
+ // full-native can run this branch when it falls through in case
678
+ // Element#checkVisibility is unsupported
679
+ displayCheck === 'full-native' || displayCheck === 'legacy-full') {
680
+ if (typeof getShadowRoot === 'function') {
681
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
682
+ // 'non-zero-area' fallback
683
+ var originalNode = node;
684
+ while (node) {
685
+ var parentElement = node.parentElement;
686
+ var rootNode = getRootNode(node);
687
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
688
+ ) {
689
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
690
+ // fall back to a non-zero-area test
691
+ return isZeroArea(node);
692
+ } else if (node.assignedSlot) {
693
+ // iterate up slot
694
+ node = node.assignedSlot;
695
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
696
+ // cross shadow boundary
697
+ node = rootNode.host;
698
+ } else {
699
+ // iterate up normal dom
700
+ node = parentElement;
701
+ }
702
+ }
703
+ node = originalNode;
704
+ }
705
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
706
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
707
+ // it might be a falsy value, which means shadow DOM support is disabled
708
+
709
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
710
+ // now we can just test to see if it would normally be visible or not, provided it's
711
+ // attached to the main document.
712
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
713
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
714
+
715
+ if (isNodeAttached(node)) {
716
+ // this works wherever the node is: if there's at least one client rect, it's
717
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
718
+ // node itself is hidden in place of its contents; and there's no need to search
719
+ // up the hierarchy either
720
+ return !node.getClientRects().length;
721
+ }
722
+
723
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
724
+ // API will __always__ return zero rects (this can happen, for example, if React
725
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
726
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
727
+ //
728
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
729
+ // because styles are only computed for nodes that are in the document.
730
+ //
731
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
732
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
733
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
734
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
735
+ // considering __everything__ to be visible because of the innability to determine styles.
736
+ //
737
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
738
+ // nodes as visible with the 'none' fallback.__
739
+ if (displayCheck !== 'legacy-full') {
740
+ return true; // hidden
741
+ }
742
+ // else, fallback to 'none' mode and consider the node visible
743
+ } else if (displayCheck === 'non-zero-area') {
744
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
745
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
746
+ // client rect, we don't special-case for whether the node is attached or not. In
747
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
748
+ // times, and that includes attached or not.
749
+ return isZeroArea(node);
750
+ }
751
+
752
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
753
+ // it's visible
754
+ return false;
755
+ };
756
+
757
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
758
+ // unless they are in the _first_ <legend> element of the top-most disabled
759
+ // fieldset
760
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
761
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
762
+ var parentNode = node.parentElement;
763
+ // check if `node` is contained in a disabled <fieldset>
764
+ while (parentNode) {
765
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
766
+ // look for the first <legend> among the children of the disabled <fieldset>
767
+ for (var i = 0; i < parentNode.children.length; i++) {
768
+ var child = parentNode.children.item(i);
769
+ // when the first <legend> (in document order) is found
770
+ if (child.tagName === 'LEGEND') {
771
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
772
+ // return whether `node` is a descendant of its first <legend>
773
+ return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
774
+ }
775
+ }
776
+ // the disabled <fieldset> containing `node` has no <legend>
777
+ return true;
778
+ }
779
+ parentNode = parentNode.parentElement;
780
+ }
781
+ }
782
+
783
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
784
+ // enabled/disabled state
785
+ return false;
786
+ };
787
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
788
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
789
+ // For a details element with a summary, the summary element gets the focus
790
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
791
+ return false;
792
+ }
793
+ return true;
794
+ };
795
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
796
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
797
+ return false;
798
+ }
799
+ return true;
800
+ };
801
+ var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
802
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
803
+ if (isNaN(tabIndex) || tabIndex >= 0) {
804
+ return true;
805
+ }
806
+ // If a custom element has an explicit negative tabindex,
807
+ // browsers will not allow tab targeting said element's children.
808
+ return false;
809
+ };
810
+
811
+ /**
812
+ * @param {Array.<Element|CandidateScope>} candidates
813
+ * @returns Element[]
814
+ */
815
+ var _sortByOrder = function sortByOrder(candidates) {
816
+ var regularTabbables = [];
817
+ var orderedTabbables = [];
818
+ candidates.forEach(function (item, i) {
819
+ var isScope = !!item.scopeParent;
820
+ var element = isScope ? item.scopeParent : item;
821
+ var candidateTabindex = getSortOrderTabIndex(element, isScope);
822
+ var elements = isScope ? _sortByOrder(item.candidates) : element;
823
+ if (candidateTabindex === 0) {
824
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
825
+ } else {
826
+ orderedTabbables.push({
827
+ documentOrder: i,
828
+ tabIndex: candidateTabindex,
829
+ item: item,
830
+ isScope: isScope,
831
+ content: elements
832
+ });
833
+ }
834
+ });
835
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
836
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
837
+ return acc;
838
+ }, []).concat(regularTabbables);
839
+ };
840
+ var tabbable = function tabbable(container, options) {
841
+ options = options || {};
842
+ var candidates;
843
+ if (options.getShadowRoot) {
844
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
845
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
846
+ flatten: false,
847
+ getShadowRoot: options.getShadowRoot,
848
+ shadowRootFilter: isShadowRootTabbable
849
+ });
850
+ } else {
851
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
852
+ }
853
+ return _sortByOrder(candidates);
854
+ };
855
+ var focusable = function focusable(container, options) {
856
+ options = options || {};
857
+ var candidates;
858
+ if (options.getShadowRoot) {
859
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
860
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
861
+ flatten: true,
862
+ getShadowRoot: options.getShadowRoot
863
+ });
864
+ } else {
865
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
866
+ }
867
+ return candidates;
868
+ };
869
+ var isTabbable = function isTabbable(node, options) {
870
+ options = options || {};
871
+ if (!node) {
872
+ throw new Error('No node provided');
873
+ }
874
+ if (matches.call(node, candidateSelector) === false) {
875
+ return false;
876
+ }
877
+ return isNodeMatchingSelectorTabbable(options, node);
878
+ };
879
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');
880
+ var isFocusable = function isFocusable(node, options) {
881
+ options = options || {};
882
+ if (!node) {
883
+ throw new Error('No node provided');
884
+ }
885
+ if (matches.call(node, focusableCandidateSelector) === false) {
886
+ return false;
887
+ }
888
+ return isNodeMatchingSelectorFocusable(options, node);
889
+ };
890
+
891
+ function Circle_arrow_up($$renderer, $$props) {
892
+ let { $$slots, $$events, ...props } = $$props;
893
+ const iconData = {
894
+ "name": "circle-arrow-up",
895
+ "size": 24,
896
+ "node": [
897
+ ["circle", { "cx": "12", "cy": "12", "r": "10" }],
898
+ ["path", { "d": "m16 12-4-4-4 4" }],
899
+ ["path", { "d": "M12 16V8" }]
900
+ ],
901
+ "aliases": ["arrow-up-circle"]
902
+ };
903
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
904
+ }
905
+ function Refresh_cw($$renderer, $$props) {
906
+ let { $$slots, $$events, ...props } = $$props;
907
+ const iconData = {
908
+ "name": "refresh-cw",
909
+ "size": 24,
910
+ "node": [
911
+ [
912
+ "path",
913
+ { "d": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }
914
+ ],
915
+ ["path", { "d": "M21 3v5h-5" }],
916
+ [
917
+ "path",
918
+ { "d": "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }
919
+ ],
920
+ ["path", { "d": "M8 16H3v5" }]
921
+ ]
922
+ };
923
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
924
+ }
925
+ function isFunction(value) {
926
+ return typeof value === "function";
927
+ }
928
+ function isObject(value) {
929
+ return value !== null && typeof value === "object";
930
+ }
931
+ const CLASS_VALUE_PRIMITIVE_TYPES = ["string", "number", "bigint", "boolean"];
932
+ function isClassValue(value) {
933
+ if (value === null || value === void 0)
934
+ return true;
935
+ if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))
936
+ return true;
937
+ if (Array.isArray(value))
938
+ return value.every((item) => isClassValue(item));
939
+ if (typeof value === "object") {
940
+ if (Object.getPrototypeOf(value) !== Object.prototype)
941
+ return false;
942
+ return true;
943
+ }
944
+ return false;
945
+ }
946
+ const BoxSymbol = /* @__PURE__ */ Symbol("box");
947
+ const isWritableSymbol = /* @__PURE__ */ Symbol("is-writable");
948
+ function boxWith(getter, setter) {
949
+ const derived$1 = derived(getter);
950
+ if (setter) {
951
+ return {
952
+ [BoxSymbol]: true,
953
+ [isWritableSymbol]: true,
954
+ get current() {
955
+ return derived$1();
956
+ },
957
+ set current(v) {
958
+ setter(v);
959
+ }
960
+ };
961
+ }
962
+ return {
963
+ [BoxSymbol]: true,
964
+ get current() {
965
+ return getter();
966
+ }
967
+ };
968
+ }
969
+ function isBox(value) {
970
+ return isObject(value) && BoxSymbol in value;
971
+ }
972
+ function isWritableBox(value) {
973
+ return isBox(value) && isWritableSymbol in value;
974
+ }
975
+ function boxFrom(value) {
976
+ if (isBox(value)) return value;
977
+ if (isFunction(value)) return boxWith(value);
978
+ return simpleBox(value);
979
+ }
980
+ function boxFlatten(boxes) {
981
+ return Object.entries(boxes).reduce(
982
+ (acc, [key, b]) => {
983
+ if (!isBox(b)) {
984
+ return Object.assign(acc, { [key]: b });
985
+ }
986
+ if (isWritableBox(b)) {
987
+ Object.defineProperty(acc, key, {
988
+ get() {
989
+ return b.current;
990
+ },
991
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
992
+ set(v) {
993
+ b.current = v;
994
+ }
995
+ });
996
+ } else {
997
+ Object.defineProperty(acc, key, {
998
+ get() {
999
+ return b.current;
1000
+ }
1001
+ });
1002
+ }
1003
+ return acc;
1004
+ },
1005
+ {}
1006
+ );
1007
+ }
1008
+ function toReadonlyBox(b) {
1009
+ if (!isWritableBox(b)) return b;
1010
+ return {
1011
+ [BoxSymbol]: true,
1012
+ get current() {
1013
+ return b.current;
1014
+ }
1015
+ };
1016
+ }
1017
+ function simpleBox(initialValue) {
1018
+ let current = initialValue;
1019
+ return {
1020
+ [BoxSymbol]: true,
1021
+ [isWritableSymbol]: true,
1022
+ get current() {
1023
+ return current;
1024
+ },
1025
+ set current(v) {
1026
+ current = v;
1027
+ }
1028
+ };
1029
+ }
1030
+ function composeHandlers(...handlers) {
1031
+ return function(e) {
1032
+ for (const handler of handlers) {
1033
+ if (!handler)
1034
+ continue;
1035
+ if (e.defaultPrevented)
1036
+ return;
1037
+ if (typeof handler === "function") {
1038
+ handler.call(this, e);
1039
+ } else {
1040
+ handler.current?.call(this, e);
1041
+ }
1042
+ }
1043
+ };
1044
+ }
1045
+ const NUMBER_CHAR_RE = /\d/;
1046
+ const STR_SPLITTERS = ["-", "_", "/", "."];
1047
+ function isUppercase(char = "") {
1048
+ if (NUMBER_CHAR_RE.test(char))
1049
+ return void 0;
1050
+ return char !== char.toLowerCase();
1051
+ }
1052
+ function splitByCase(str) {
1053
+ const parts = [];
1054
+ let buff = "";
1055
+ let previousUpper;
1056
+ let previousSplitter;
1057
+ for (const char of str) {
1058
+ const isSplitter = STR_SPLITTERS.includes(char);
1059
+ if (isSplitter === true) {
1060
+ parts.push(buff);
1061
+ buff = "";
1062
+ previousUpper = void 0;
1063
+ continue;
1064
+ }
1065
+ const isUpper = isUppercase(char);
1066
+ if (previousSplitter === false) {
1067
+ if (previousUpper === false && isUpper === true) {
1068
+ parts.push(buff);
1069
+ buff = char;
1070
+ previousUpper = isUpper;
1071
+ continue;
1072
+ }
1073
+ if (previousUpper === true && isUpper === false && buff.length > 1) {
1074
+ const lastChar = buff.at(-1);
1075
+ parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
1076
+ buff = lastChar + char;
1077
+ previousUpper = isUpper;
1078
+ continue;
1079
+ }
1080
+ }
1081
+ buff += char;
1082
+ previousUpper = isUpper;
1083
+ previousSplitter = isSplitter;
1084
+ }
1085
+ parts.push(buff);
1086
+ return parts;
1087
+ }
1088
+ function pascalCase(str) {
1089
+ if (!str)
1090
+ return "";
1091
+ return splitByCase(str).map((p) => upperFirst(p)).join("");
1092
+ }
1093
+ function camelCase(str) {
1094
+ return lowerFirst(pascalCase(str || ""));
1095
+ }
1096
+ function upperFirst(str) {
1097
+ return str ? str[0].toUpperCase() + str.slice(1) : "";
1098
+ }
1099
+ function lowerFirst(str) {
1100
+ return str ? str[0].toLowerCase() + str.slice(1) : "";
1101
+ }
1102
+ function cssToStyleObj(css) {
1103
+ if (!css)
1104
+ return {};
1105
+ const styleObj = {};
1106
+ function iterator(name, value) {
1107
+ if (name.startsWith("-moz-") || name.startsWith("-webkit-") || name.startsWith("-ms-") || name.startsWith("-o-")) {
1108
+ styleObj[pascalCase(name)] = value;
1109
+ return;
1110
+ }
1111
+ if (name.startsWith("--")) {
1112
+ styleObj[name] = value;
1113
+ return;
1114
+ }
1115
+ styleObj[camelCase(name)] = value;
1116
+ }
1117
+ StyleToObject(css, iterator);
1118
+ return styleObj;
1119
+ }
1120
+ function executeCallbacks(...callbacks) {
1121
+ return (...args) => {
1122
+ for (const callback of callbacks) {
1123
+ if (typeof callback === "function") {
1124
+ callback(...args);
1125
+ }
1126
+ }
1127
+ };
1128
+ }
1129
+ function createParser(matcher, replacer) {
1130
+ const regex = RegExp(matcher, "g");
1131
+ return (str) => {
1132
+ if (typeof str !== "string") {
1133
+ throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
1134
+ }
1135
+ if (!str.match(regex))
1136
+ return str;
1137
+ return str.replace(regex, replacer);
1138
+ };
1139
+ }
1140
+ const camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
1141
+ function styleToCSS(styleObj) {
1142
+ if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) {
1143
+ throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
1144
+ }
1145
+ return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
1146
+ }
1147
+ function styleToString(style = {}) {
1148
+ return styleToCSS(style).replace("\n", " ");
1149
+ }
1150
+ const EVENT_LIST = [
1151
+ "onabort",
1152
+ "onanimationcancel",
1153
+ "onanimationend",
1154
+ "onanimationiteration",
1155
+ "onanimationstart",
1156
+ "onauxclick",
1157
+ "onbeforeinput",
1158
+ "onbeforetoggle",
1159
+ "onblur",
1160
+ "oncancel",
1161
+ "oncanplay",
1162
+ "oncanplaythrough",
1163
+ "onchange",
1164
+ "onclick",
1165
+ "onclose",
1166
+ "oncompositionend",
1167
+ "oncompositionstart",
1168
+ "oncompositionupdate",
1169
+ "oncontextlost",
1170
+ "oncontextmenu",
1171
+ "oncontextrestored",
1172
+ "oncopy",
1173
+ "oncuechange",
1174
+ "oncut",
1175
+ "ondblclick",
1176
+ "ondrag",
1177
+ "ondragend",
1178
+ "ondragenter",
1179
+ "ondragleave",
1180
+ "ondragover",
1181
+ "ondragstart",
1182
+ "ondrop",
1183
+ "ondurationchange",
1184
+ "onemptied",
1185
+ "onended",
1186
+ "onerror",
1187
+ "onfocus",
1188
+ "onfocusin",
1189
+ "onfocusout",
1190
+ "onformdata",
1191
+ "ongotpointercapture",
1192
+ "oninput",
1193
+ "oninvalid",
1194
+ "onkeydown",
1195
+ "onkeypress",
1196
+ "onkeyup",
1197
+ "onload",
1198
+ "onloadeddata",
1199
+ "onloadedmetadata",
1200
+ "onloadstart",
1201
+ "onlostpointercapture",
1202
+ "onmousedown",
1203
+ "onmouseenter",
1204
+ "onmouseleave",
1205
+ "onmousemove",
1206
+ "onmouseout",
1207
+ "onmouseover",
1208
+ "onmouseup",
1209
+ "onpaste",
1210
+ "onpause",
1211
+ "onplay",
1212
+ "onplaying",
1213
+ "onpointercancel",
1214
+ "onpointerdown",
1215
+ "onpointerenter",
1216
+ "onpointerleave",
1217
+ "onpointermove",
1218
+ "onpointerout",
1219
+ "onpointerover",
1220
+ "onpointerup",
1221
+ "onprogress",
1222
+ "onratechange",
1223
+ "onreset",
1224
+ "onresize",
1225
+ "onscroll",
1226
+ "onscrollend",
1227
+ "onsecuritypolicyviolation",
1228
+ "onseeked",
1229
+ "onseeking",
1230
+ "onselect",
1231
+ "onselectionchange",
1232
+ "onselectstart",
1233
+ "onslotchange",
1234
+ "onstalled",
1235
+ "onsubmit",
1236
+ "onsuspend",
1237
+ "ontimeupdate",
1238
+ "ontoggle",
1239
+ "ontouchcancel",
1240
+ "ontouchend",
1241
+ "ontouchmove",
1242
+ "ontouchstart",
1243
+ "ontransitioncancel",
1244
+ "ontransitionend",
1245
+ "ontransitionrun",
1246
+ "ontransitionstart",
1247
+ "onvolumechange",
1248
+ "onwaiting",
1249
+ "onwebkitanimationend",
1250
+ "onwebkitanimationiteration",
1251
+ "onwebkitanimationstart",
1252
+ "onwebkittransitionend",
1253
+ "onwheel"
1254
+ ];
1255
+ const EVENT_LIST_SET = new Set(EVENT_LIST);
1256
+ function isEventHandler(key) {
1257
+ return EVENT_LIST_SET.has(key);
1258
+ }
1259
+ function mergeProps(...args) {
1260
+ const result = { ...args[0] };
1261
+ for (let i = 1; i < args.length; i++) {
1262
+ const props = args[i];
1263
+ if (!props)
1264
+ continue;
1265
+ for (const key of Object.keys(props)) {
1266
+ const a = result[key];
1267
+ const b = props[key];
1268
+ const aIsFunction = typeof a === "function";
1269
+ const bIsFunction = typeof b === "function";
1270
+ if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {
1271
+ const aHandler = a;
1272
+ const bHandler = b;
1273
+ result[key] = composeHandlers(aHandler, bHandler);
1274
+ } else if (aIsFunction && bIsFunction) {
1275
+ result[key] = executeCallbacks(a, b);
1276
+ } else if (key === "class") {
1277
+ const aIsClassValue = isClassValue(a);
1278
+ const bIsClassValue = isClassValue(b);
1279
+ if (aIsClassValue && bIsClassValue) {
1280
+ result[key] = clsx(a, b);
1281
+ } else if (aIsClassValue) {
1282
+ result[key] = clsx(a);
1283
+ } else if (bIsClassValue) {
1284
+ result[key] = clsx(b);
1285
+ }
1286
+ } else if (key === "style") {
1287
+ const aIsObject = typeof a === "object";
1288
+ const bIsObject = typeof b === "object";
1289
+ const aIsString = typeof a === "string";
1290
+ const bIsString = typeof b === "string";
1291
+ if (aIsObject && bIsObject) {
1292
+ result[key] = { ...a, ...b };
1293
+ } else if (aIsObject && bIsString) {
1294
+ const parsedStyle = cssToStyleObj(b);
1295
+ result[key] = { ...a, ...parsedStyle };
1296
+ } else if (aIsString && bIsObject) {
1297
+ const parsedStyle = cssToStyleObj(a);
1298
+ result[key] = { ...parsedStyle, ...b };
1299
+ } else if (aIsString && bIsString) {
1300
+ const parsedStyleA = cssToStyleObj(a);
1301
+ const parsedStyleB = cssToStyleObj(b);
1302
+ result[key] = { ...parsedStyleA, ...parsedStyleB };
1303
+ } else if (aIsObject) {
1304
+ result[key] = a;
1305
+ } else if (bIsObject) {
1306
+ result[key] = b;
1307
+ } else if (aIsString) {
1308
+ result[key] = a;
1309
+ } else if (bIsString) {
1310
+ result[key] = b;
1311
+ }
1312
+ } else {
1313
+ result[key] = b !== void 0 ? b : a;
1314
+ }
1315
+ }
1316
+ for (const key of Object.getOwnPropertySymbols(props)) {
1317
+ const a = result[key];
1318
+ const b = props[key];
1319
+ result[key] = b !== void 0 ? b : a;
1320
+ }
1321
+ }
1322
+ if (typeof result.style === "object") {
1323
+ result.style = styleToString(result.style).replaceAll("\n", " ");
1324
+ }
1325
+ if (result.hidden === false) {
1326
+ result.hidden = void 0;
1327
+ delete result.hidden;
1328
+ }
1329
+ if (result.disabled === false) {
1330
+ result.disabled = void 0;
1331
+ delete result.disabled;
1332
+ }
1333
+ return result;
1334
+ }
1335
+ const defaultWindow = void 0;
1336
+ function getActiveElement$1(document2) {
1337
+ let activeElement = document2.activeElement;
1338
+ while (activeElement?.shadowRoot) {
1339
+ const node = activeElement.shadowRoot.activeElement;
1340
+ if (node === activeElement)
1341
+ break;
1342
+ else
1343
+ activeElement = node;
1344
+ }
1345
+ return activeElement;
1346
+ }
1347
+ class ActiveElement {
1348
+ #document;
1349
+ #subscribe;
1350
+ constructor(options = {}) {
1351
+ const { window: window2 = defaultWindow, document: document2 = window2?.document } = options;
1352
+ if (window2 === void 0) return;
1353
+ this.#document = document2;
1354
+ this.#subscribe = createSubscriber();
1355
+ }
1356
+ get current() {
1357
+ this.#subscribe?.();
1358
+ if (!this.#document) return null;
1359
+ return getActiveElement$1(this.#document);
1360
+ }
1361
+ }
1362
+ new ActiveElement();
1363
+ class Context {
1364
+ #name;
1365
+ #key;
1366
+ /**
1367
+ * @param name The name of the context.
1368
+ * This is used for generating the context key and error messages.
1369
+ */
1370
+ constructor(name) {
1371
+ this.#name = name;
1372
+ this.#key = Symbol(name);
1373
+ }
1374
+ /**
1375
+ * The key used to get and set the context.
1376
+ *
1377
+ * It is not recommended to use this value directly.
1378
+ * Instead, use the methods provided by this class.
1379
+ */
1380
+ get key() {
1381
+ return this.#key;
1382
+ }
1383
+ /**
1384
+ * Checks whether this has been set in the context of a parent component.
1385
+ *
1386
+ * Must be called during component initialisation.
1387
+ */
1388
+ exists() {
1389
+ return hasContext(this.#key);
1390
+ }
1391
+ /**
1392
+ * Retrieves the context that belongs to the closest parent component.
1393
+ *
1394
+ * Must be called during component initialisation.
1395
+ *
1396
+ * @throws An error if the context does not exist.
1397
+ */
1398
+ get() {
1399
+ const context = getContext(this.#key);
1400
+ if (context === void 0) {
1401
+ throw new Error(`Context "${this.#name}" not found`);
1402
+ }
1403
+ return context;
1404
+ }
1405
+ /**
1406
+ * Retrieves the context that belongs to the closest parent component,
1407
+ * or the given fallback value if the context does not exist.
1408
+ *
1409
+ * Must be called during component initialisation.
1410
+ */
1411
+ getOr(fallback) {
1412
+ const context = getContext(this.#key);
1413
+ if (context === void 0) {
1414
+ return fallback;
1415
+ }
1416
+ return context;
1417
+ }
1418
+ /**
1419
+ * Associates the given value with the current component and returns it.
1420
+ *
1421
+ * Must be called during component initialisation.
1422
+ */
1423
+ set(context) {
1424
+ return setContext(this.#key, context);
1425
+ }
1426
+ }
1427
+ function runWatcher(sources, flush, effect, options = {}) {
1428
+ const { lazy = false } = options;
1429
+ }
1430
+ function watch(sources, effect, options) {
1431
+ runWatcher(sources, "post", effect, options);
1432
+ }
1433
+ function watchPre(sources, effect, options) {
1434
+ runWatcher(sources, "pre", effect, options);
1435
+ }
1436
+ watch.pre = watchPre;
1437
+ function afterTick(fn) {
1438
+ tick().then(fn);
1439
+ }
1440
+ const ELEMENT_NODE = 1;
1441
+ const DOCUMENT_NODE = 9;
1442
+ const DOCUMENT_FRAGMENT_NODE = 11;
1443
+ function isHTMLElement$1(node) {
1444
+ return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === "string";
1445
+ }
1446
+ function isDocument(node) {
1447
+ return isObject(node) && node.nodeType === DOCUMENT_NODE;
1448
+ }
1449
+ function isWindow(node) {
1450
+ return isObject(node) && node.constructor?.name === "VisualViewport";
1451
+ }
1452
+ function isNode(node) {
1453
+ return isObject(node) && node.nodeType !== void 0;
1454
+ }
1455
+ function isShadowRoot(node) {
1456
+ return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in node;
1457
+ }
1458
+ function contains(parent, child) {
1459
+ if (!parent || !child)
1460
+ return false;
1461
+ if (!isHTMLElement$1(parent) || !isHTMLElement$1(child))
1462
+ return false;
1463
+ const rootNode = child.getRootNode?.();
1464
+ if (parent === child)
1465
+ return true;
1466
+ if (parent.contains(child))
1467
+ return true;
1468
+ if (rootNode && isShadowRoot(rootNode)) {
1469
+ let next = child;
1470
+ while (next) {
1471
+ if (parent === next)
1472
+ return true;
1473
+ next = next.parentNode || next.host;
1474
+ }
1475
+ }
1476
+ return false;
1477
+ }
1478
+ function getDocument(node) {
1479
+ if (isDocument(node))
1480
+ return node;
1481
+ if (isWindow(node))
1482
+ return node.document;
1483
+ return node?.ownerDocument ?? document;
1484
+ }
1485
+ function getWindow(node) {
1486
+ if (isShadowRoot(node))
1487
+ return getWindow(node.host);
1488
+ if (isDocument(node))
1489
+ return node.defaultView ?? window;
1490
+ if (isHTMLElement$1(node))
1491
+ return node.ownerDocument?.defaultView ?? window;
1492
+ return window;
1493
+ }
1494
+ function getActiveElement(rootNode) {
1495
+ let activeElement = rootNode.activeElement;
1496
+ while (activeElement?.shadowRoot) {
1497
+ const el = activeElement.shadowRoot.activeElement;
1498
+ if (el === activeElement)
1499
+ break;
1500
+ else
1501
+ activeElement = el;
1502
+ }
1503
+ return activeElement;
1504
+ }
1505
+ class DOMContext {
1506
+ element;
1507
+ #root = derived(() => {
1508
+ if (!this.element.current) return document;
1509
+ const rootNode = this.element.current.getRootNode() ?? document;
1510
+ return rootNode;
1511
+ });
1512
+ get root() {
1513
+ return this.#root();
1514
+ }
1515
+ set root($$value) {
1516
+ return this.#root($$value);
1517
+ }
1518
+ constructor(element) {
1519
+ if (typeof element === "function") {
1520
+ this.element = boxWith(element);
1521
+ } else {
1522
+ this.element = element;
1523
+ }
1524
+ }
1525
+ getDocument = () => {
1526
+ return getDocument(this.root);
1527
+ };
1528
+ getWindow = () => {
1529
+ return this.getDocument().defaultView ?? window;
1530
+ };
1531
+ getActiveElement = () => {
1532
+ return getActiveElement(this.root);
1533
+ };
1534
+ isActiveElement = (node) => {
1535
+ return node === this.getActiveElement();
1536
+ };
1537
+ getElementById(id) {
1538
+ return this.root.getElementById(id);
1539
+ }
1540
+ querySelector = (selector) => {
1541
+ if (!this.root) return null;
1542
+ return this.root.querySelector(selector);
1543
+ };
1544
+ querySelectorAll = (selector) => {
1545
+ if (!this.root) return [];
1546
+ return this.root.querySelectorAll(selector);
1547
+ };
1548
+ setTimeout = (callback, delay) => {
1549
+ return this.getWindow().setTimeout(callback, delay);
1550
+ };
1551
+ clearTimeout = (timeoutId) => {
1552
+ return this.getWindow().clearTimeout(timeoutId);
1553
+ };
1554
+ }
1555
+ function createAttachmentKey() {
1556
+ return Symbol(ATTACHMENT_KEY);
1557
+ }
1558
+ function attachRef(ref, onChange) {
1559
+ return {
1560
+ [createAttachmentKey()]: (node) => {
1561
+ if (isBox(ref)) {
1562
+ ref.current = node;
1563
+ run(() => onChange?.(node));
1564
+ return () => {
1565
+ if ("isConnected" in node && node.isConnected)
1566
+ return;
1567
+ ref.current = null;
1568
+ onChange?.(null);
1569
+ };
1570
+ }
1571
+ ref(node);
1572
+ run(() => onChange?.(node));
1573
+ return () => {
1574
+ if ("isConnected" in node && node.isConnected)
1575
+ return;
1576
+ ref(null);
1577
+ onChange?.(null);
1578
+ };
1579
+ }
1580
+ };
1581
+ }
1582
+ function boolToStr(condition) {
1583
+ return condition ? "true" : "false";
1584
+ }
1585
+ function boolToEmptyStrOrUndef(condition) {
1586
+ return condition ? "" : void 0;
1587
+ }
1588
+ function getDataOpenClosed(condition) {
1589
+ return condition ? "open" : "closed";
1590
+ }
1591
+ function getDataTransitionAttrs(state) {
1592
+ if (state === "starting")
1593
+ return { "data-starting-style": "" };
1594
+ if (state === "ending")
1595
+ return { "data-ending-style": "" };
1596
+ return {};
1597
+ }
1598
+ function getAriaChecked(checked, indeterminate) {
1599
+ if (indeterminate)
1600
+ return "mixed";
1601
+ return checked ? "true" : "false";
1602
+ }
1603
+ class BitsAttrs {
1604
+ #variant;
1605
+ #prefix;
1606
+ attrs;
1607
+ constructor(config) {
1608
+ this.#variant = config.getVariant ? config.getVariant() : null;
1609
+ this.#prefix = this.#variant ? `data-${this.#variant}-` : `data-${config.component}-`;
1610
+ this.getAttr = this.getAttr.bind(this);
1611
+ this.selector = this.selector.bind(this);
1612
+ this.attrs = Object.fromEntries(config.parts.map((part) => [part, this.getAttr(part)]));
1613
+ }
1614
+ getAttr(part, variantOverride) {
1615
+ if (variantOverride)
1616
+ return `data-${variantOverride}-${part}`;
1617
+ return `${this.#prefix}${part}`;
1618
+ }
1619
+ selector(part, variantOverride) {
1620
+ return `[${this.getAttr(part, variantOverride)}]`;
1621
+ }
1622
+ }
1623
+ function createBitsAttrs(config) {
1624
+ const bitsAttrs = new BitsAttrs(config);
1625
+ return {
1626
+ ...bitsAttrs.attrs,
1627
+ selector: bitsAttrs.selector,
1628
+ getAttr: bitsAttrs.getAttr
1629
+ };
1630
+ }
1631
+ const ARROW_DOWN = "ArrowDown";
1632
+ const ARROW_LEFT = "ArrowLeft";
1633
+ const ARROW_RIGHT = "ArrowRight";
1634
+ const ARROW_UP = "ArrowUp";
1635
+ const END = "End";
1636
+ const ENTER = "Enter";
1637
+ const ESCAPE = "Escape";
1638
+ const HOME = "Home";
1639
+ const PAGE_DOWN = "PageDown";
1640
+ const PAGE_UP = "PageUp";
1641
+ const SPACE = " ";
1642
+ const TAB = "Tab";
1643
+ const isBrowser = typeof document !== "undefined";
1644
+ const isIOS = getIsIOS();
1645
+ function getIsIOS() {
1646
+ return isBrowser && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.
1647
+ window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
1648
+ }
1649
+ function isHTMLElement(element) {
1650
+ return element instanceof HTMLElement;
1651
+ }
1652
+ function isElement(element) {
1653
+ return element instanceof Element;
1654
+ }
1655
+ function isElementOrSVGElement(element) {
1656
+ return element instanceof Element || element instanceof SVGElement;
1657
+ }
1658
+ function isTouch(e) {
1659
+ return e.pointerType === "touch";
1660
+ }
1661
+ function isFocusVisible(element) {
1662
+ return element.matches(":focus-visible");
1663
+ }
1664
+ function isNotNull(value) {
1665
+ return value !== null;
1666
+ }
1667
+ function isSelectableInput(element) {
1668
+ return element instanceof HTMLInputElement && "select" in element;
1669
+ }
1670
+ class AnimationsComplete {
1671
+ #opts;
1672
+ #currentFrame = null;
1673
+ #observer = null;
1674
+ #runId = 0;
1675
+ constructor(opts) {
1676
+ this.#opts = opts;
1677
+ }
1678
+ #cleanup() {
1679
+ if (this.#currentFrame !== null) {
1680
+ window.cancelAnimationFrame(this.#currentFrame);
1681
+ this.#currentFrame = null;
1682
+ }
1683
+ this.#observer?.disconnect();
1684
+ this.#observer = null;
1685
+ this.#runId++;
1686
+ }
1687
+ run(fn) {
1688
+ this.#cleanup();
1689
+ const node = this.#opts.ref.current;
1690
+ if (!node)
1691
+ return;
1692
+ if (typeof node.getAnimations !== "function") {
1693
+ this.#executeCallback(fn);
1694
+ return;
1695
+ }
1696
+ const runId = this.#runId;
1697
+ const executeIfCurrent = () => {
1698
+ if (runId !== this.#runId)
1699
+ return;
1700
+ this.#executeCallback(fn);
1701
+ };
1702
+ const waitForAnimations = () => {
1703
+ if (runId !== this.#runId)
1704
+ return;
1705
+ const animations = node.getAnimations();
1706
+ if (animations.length === 0) {
1707
+ executeIfCurrent();
1708
+ return;
1709
+ }
1710
+ Promise.all(animations.map((animation) => animation.finished)).then(() => {
1711
+ executeIfCurrent();
1712
+ }).catch(() => {
1713
+ if (runId !== this.#runId)
1714
+ return;
1715
+ const currentAnimations = node.getAnimations();
1716
+ const hasRunningAnimations = currentAnimations.some((animation) => animation.pending || animation.playState !== "finished");
1717
+ if (hasRunningAnimations) {
1718
+ waitForAnimations();
1719
+ return;
1720
+ }
1721
+ executeIfCurrent();
1722
+ });
1723
+ };
1724
+ const requestWaitForAnimations = () => {
1725
+ this.#currentFrame = window.requestAnimationFrame(() => {
1726
+ this.#currentFrame = null;
1727
+ waitForAnimations();
1728
+ });
1729
+ };
1730
+ if (!this.#opts.afterTick.current) {
1731
+ requestWaitForAnimations();
1732
+ return;
1733
+ }
1734
+ this.#currentFrame = window.requestAnimationFrame(() => {
1735
+ this.#currentFrame = null;
1736
+ const startingStyleAttr = "data-starting-style";
1737
+ if (!node.hasAttribute(startingStyleAttr)) {
1738
+ requestWaitForAnimations();
1739
+ return;
1740
+ }
1741
+ this.#observer = new MutationObserver(() => {
1742
+ if (runId !== this.#runId)
1743
+ return;
1744
+ if (node.hasAttribute(startingStyleAttr))
1745
+ return;
1746
+ this.#observer?.disconnect();
1747
+ this.#observer = null;
1748
+ requestWaitForAnimations();
1749
+ });
1750
+ this.#observer.observe(node, {
1751
+ attributes: true,
1752
+ attributeFilter: [startingStyleAttr]
1753
+ });
1754
+ });
1755
+ }
1756
+ #executeCallback(fn) {
1757
+ const execute = () => {
1758
+ fn();
1759
+ };
1760
+ if (this.#opts.afterTick) {
1761
+ afterTick(execute);
1762
+ } else {
1763
+ execute();
1764
+ }
1765
+ }
1766
+ }
1767
+ class PresenceManager {
1768
+ #opts;
1769
+ #enabled;
1770
+ #afterAnimations;
1771
+ #shouldRender = false;
1772
+ #transitionStatus = void 0;
1773
+ #hasMounted = false;
1774
+ #transitionFrame = null;
1775
+ constructor(opts) {
1776
+ this.#opts = opts;
1777
+ this.#shouldRender = opts.open.current;
1778
+ this.#enabled = opts.enabled ?? true;
1779
+ this.#afterAnimations = new AnimationsComplete({ ref: this.#opts.ref, afterTick: this.#opts.open });
1780
+ watch(() => this.#opts.open.current, (isOpen) => {
1781
+ if (!this.#hasMounted) {
1782
+ this.#hasMounted = true;
1783
+ return;
1784
+ }
1785
+ this.#clearTransitionFrame();
1786
+ if (!isOpen && this.#opts.shouldSkipExitAnimation?.()) {
1787
+ this.#shouldRender = false;
1788
+ this.#transitionStatus = void 0;
1789
+ this.#opts.onComplete?.();
1790
+ return;
1791
+ }
1792
+ if (isOpen) this.#shouldRender = true;
1793
+ this.#transitionStatus = isOpen ? "starting" : "ending";
1794
+ if (isOpen) {
1795
+ this.#transitionFrame = window.requestAnimationFrame(() => {
1796
+ this.#transitionFrame = null;
1797
+ if (this.#opts.open.current) {
1798
+ this.#transitionStatus = void 0;
1799
+ }
1800
+ });
1801
+ }
1802
+ if (!this.#enabled) {
1803
+ if (!isOpen) {
1804
+ this.#shouldRender = false;
1805
+ }
1806
+ this.#transitionStatus = void 0;
1807
+ this.#opts.onComplete?.();
1808
+ return;
1809
+ }
1810
+ this.#afterAnimations.run(() => {
1811
+ if (isOpen === this.#opts.open.current) {
1812
+ if (!this.#opts.open.current) {
1813
+ this.#shouldRender = false;
1814
+ }
1815
+ this.#transitionStatus = void 0;
1816
+ this.#opts.onComplete?.();
1817
+ }
1818
+ });
1819
+ });
1820
+ }
1821
+ get shouldRender() {
1822
+ return this.#shouldRender;
1823
+ }
1824
+ get transitionStatus() {
1825
+ return this.#transitionStatus;
1826
+ }
1827
+ #clearTransitionFrame() {
1828
+ if (this.#transitionFrame === null) return;
1829
+ window.cancelAnimationFrame(this.#transitionFrame);
1830
+ this.#transitionFrame = null;
1831
+ }
1832
+ }
1833
+ function noop() {
1834
+ }
1835
+ function createId(prefixOrUid, uid) {
1836
+ return `bits-${prefixOrUid}`;
1837
+ }
1838
+ const BitsConfigContext = new Context("BitsConfig");
1839
+ function getBitsConfig() {
1840
+ const fallback = new BitsConfigState(null, {});
1841
+ return BitsConfigContext.getOr(fallback).opts;
1842
+ }
1843
+ class BitsConfigState {
1844
+ opts;
1845
+ constructor(parent, opts) {
1846
+ const resolveConfigOption = createConfigResolver(parent, opts);
1847
+ this.opts = {
1848
+ defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),
1849
+ defaultLocale: resolveConfigOption((config) => config.defaultLocale)
1850
+ };
1851
+ }
1852
+ }
1853
+ function createConfigResolver(parent, currentOpts) {
1854
+ return (getter) => {
1855
+ const configOption = boxWith(() => {
1856
+ const value = getter(currentOpts)?.current;
1857
+ if (value !== void 0)
1858
+ return value;
1859
+ if (parent === null)
1860
+ return void 0;
1861
+ return getter(parent.opts)?.current;
1862
+ });
1863
+ return configOption;
1864
+ };
1865
+ }
1866
+ function createPropResolver(configOption, fallback) {
1867
+ return (getProp) => {
1868
+ const config = getBitsConfig();
1869
+ return boxWith(() => {
1870
+ const propValue = getProp();
1871
+ if (propValue !== void 0)
1872
+ return propValue;
1873
+ const option = configOption(config).current;
1874
+ if (option !== void 0)
1875
+ return option;
1876
+ return fallback;
1877
+ });
1878
+ };
1879
+ }
1880
+ const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
1881
+ function Portal($$renderer, $$props) {
1882
+ $$renderer.component(($$renderer2) => {
1883
+ let { to: toProp, children, disabled } = $$props;
1884
+ const to = resolvePortalToProp(() => toProp);
1885
+ getAllContexts();
1886
+ let target = derived(getTarget);
1887
+ function getTarget() {
1888
+ if (!isBrowser || disabled) return null;
1889
+ let localTarget = null;
1890
+ if (typeof to.current === "string") {
1891
+ const target2 = document.querySelector(to.current);
1892
+ localTarget = target2;
1893
+ } else {
1894
+ localTarget = to.current;
1895
+ }
1896
+ return localTarget;
1897
+ }
1898
+ let instance;
1899
+ function unmountInstance() {
1900
+ if (instance) {
1901
+ unmount();
1902
+ instance = null;
1903
+ }
1904
+ }
1905
+ watch([() => target(), () => disabled], ([target2, disabled2]) => {
1906
+ if (!target2 || disabled2) {
1907
+ unmountInstance();
1908
+ return;
1909
+ }
1910
+ instance = mount();
1911
+ return () => {
1912
+ unmountInstance();
1913
+ };
1914
+ });
1915
+ if (disabled) {
1916
+ $$renderer2.push("<!--[0-->");
1917
+ children?.($$renderer2);
1918
+ $$renderer2.push(`<!---->`);
1919
+ } else {
1920
+ $$renderer2.push("<!--[-1-->");
1921
+ }
1922
+ $$renderer2.push(`<!--]-->`);
1923
+ });
1924
+ }
1925
+ function debounce(fn, wait = 500) {
1926
+ let timeout = null;
1927
+ const debounced = (...args) => {
1928
+ if (timeout !== null) {
1929
+ clearTimeout(timeout);
1930
+ }
1931
+ timeout = setTimeout(() => {
1932
+ fn(...args);
1933
+ }, wait);
1934
+ };
1935
+ debounced.destroy = () => {
1936
+ if (timeout !== null) {
1937
+ clearTimeout(timeout);
1938
+ timeout = null;
1939
+ }
1940
+ };
1941
+ return debounced;
1942
+ }
1943
+ function isOrContainsTarget(node, target) {
1944
+ return node === target || node.contains(target);
1945
+ }
1946
+ function getOwnerDocument(el) {
1947
+ return el?.ownerDocument ?? document;
1948
+ }
1949
+ function isClickTrulyOutside(event, contentNode) {
1950
+ const { clientX, clientY } = event;
1951
+ const rect = contentNode.getBoundingClientRect();
1952
+ return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
1953
+ }
1954
+ const CONTEXT_MENU_TRIGGER_ATTR = "data-context-menu-trigger";
1955
+ const CONTEXT_MENU_CONTENT_ATTR = "data-context-menu-content";
1956
+ globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
1957
+ class DismissibleLayerState {
1958
+ static create(opts) {
1959
+ return new DismissibleLayerState(opts);
1960
+ }
1961
+ opts;
1962
+ #interactOutsideProp;
1963
+ #behaviorType;
1964
+ #interceptedEvents = { pointerdown: false };
1965
+ #isResponsibleLayer = false;
1966
+ #capturedPointerDown = null;
1967
+ #isFocusInsideDOMTree = false;
1968
+ #documentObj = void 0;
1969
+ #onFocusOutside;
1970
+ #unsubClickListener = noop;
1971
+ /**
1972
+ * Set once the layer is torn down. Deferred work scheduled before teardown can
1973
+ * still run afterwards, so every such callback must short-circuit on this
1974
+ * before reading `this.opts.ref.current` — reading a destroyed `$derived`
1975
+ * triggers Svelte's `derived_inert` warning. A class field rather than a
1976
+ * constructor local so the class-field handlers below can see it too.
1977
+ */
1978
+ #destroyed = false;
1979
+ constructor(opts) {
1980
+ this.opts = opts;
1981
+ this.#behaviorType = opts.interactOutsideBehavior;
1982
+ this.#interactOutsideProp = opts.onInteractOutside;
1983
+ this.#onFocusOutside = opts.onFocusOutside;
1984
+ let unsubEvents = noop;
1985
+ let registeredNode = null;
1986
+ const cleanup = () => {
1987
+ registeredNode = null;
1988
+ this.#resetState();
1989
+ globalThis.bitsDismissableLayers.delete(this);
1990
+ this.#handleInteractOutside.destroy();
1991
+ this.#unsubClickListener();
1992
+ unsubEvents();
1993
+ };
1994
+ watch([() => this.opts.enabled.current, () => this.opts.ref.current], ([enabled, node]) => {
1995
+ const nextNode = enabled ? node : null;
1996
+ if (registeredNode === nextNode) return;
1997
+ cleanup();
1998
+ if (!nextNode) return;
1999
+ registeredNode = nextNode;
2000
+ this.#documentObj = getOwnerDocument(nextNode);
2001
+ globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
2002
+ unsubEvents = this.#addEventListeners();
2003
+ });
2004
+ }
2005
+ #handleFocus = (event) => {
2006
+ if (event.defaultPrevented) return;
2007
+ if (this.#destroyed || !this.opts.ref.current) return;
2008
+ afterTick(() => {
2009
+ if (this.#destroyed) return;
2010
+ if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target)) return;
2011
+ if (event.target && !this.#isFocusInsideDOMTree) {
2012
+ this.#onFocusOutside.current?.(event);
2013
+ }
2014
+ });
2015
+ };
2016
+ #addEventListeners() {
2017
+ const document2 = this.#documentObj;
2018
+ const onPointerDownCapture = (event) => {
2019
+ run(() => {
2020
+ this.#markInterceptedEvent(event);
2021
+ this.#markResponsibleLayer(event);
2022
+ });
2023
+ };
2024
+ const onPointerDown = (event) => {
2025
+ if (event.cancelBubble || event !== this.#capturedPointerDown) return;
2026
+ this.#markNonInterceptedEvent(event);
2027
+ if (event.pointerType === "touch") {
2028
+ this.#handleInteractOutside.destroy();
2029
+ this.#interactOutside(event);
2030
+ } else {
2031
+ this.#handleInteractOutside(event);
2032
+ }
2033
+ };
2034
+ document2.addEventListener("pointerdown", onPointerDownCapture, true);
2035
+ document2.addEventListener("pointerdown", onPointerDown);
2036
+ return executeCallbacks(() => document2.removeEventListener("pointerdown", onPointerDownCapture, true), () => document2.removeEventListener("pointerdown", onPointerDown), on(document2, "focusin", this.#handleFocus));
2037
+ }
2038
+ #handleDismiss = (e) => {
2039
+ let event = e;
2040
+ if (event.defaultPrevented) {
2041
+ event = createWrappedEvent(e);
2042
+ }
2043
+ this.#interactOutsideProp.current(e);
2044
+ };
2045
+ #interactOutside = (e) => {
2046
+ if (!this.opts.ref.current) {
2047
+ this.#unsubClickListener();
2048
+ return;
2049
+ }
2050
+ const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) || isValidEvent(e, this.opts.ref.current);
2051
+ if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
2052
+ this.#unsubClickListener();
2053
+ return;
2054
+ }
2055
+ let event = e;
2056
+ if (event.defaultPrevented) {
2057
+ event = createWrappedEvent(event);
2058
+ }
2059
+ if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
2060
+ this.#unsubClickListener();
2061
+ return;
2062
+ }
2063
+ if (e.pointerType === "touch") {
2064
+ this.#unsubClickListener();
2065
+ let backup = null;
2066
+ let unsubClick = noop;
2067
+ const dismiss = (event2) => {
2068
+ unsubClick();
2069
+ this.#handleDismiss(event2);
2070
+ };
2071
+ unsubClick = executeCallbacks(
2072
+ on(this.#documentObj, "click", dismiss, { once: true }),
2073
+ on(
2074
+ this.#documentObj,
2075
+ "click",
2076
+ (event2) => {
2077
+ backup = setTimeout(() => dismiss(event2), 0);
2078
+ },
2079
+ { once: true, capture: true }
2080
+ ),
2081
+ () => {
2082
+ if (backup !== null) clearTimeout(backup);
2083
+ backup = null;
2084
+ }
2085
+ );
2086
+ this.#unsubClickListener = unsubClick;
2087
+ } else {
2088
+ this.#interactOutsideProp.current(event);
2089
+ }
2090
+ };
2091
+ #handleInteractOutside = debounce(this.#interactOutside, 10);
2092
+ #markInterceptedEvent = (e) => {
2093
+ this.#interceptedEvents[e.type] = true;
2094
+ };
2095
+ #markNonInterceptedEvent = (e) => {
2096
+ this.#interceptedEvents[e.type] = false;
2097
+ };
2098
+ #markResponsibleLayer = (event) => {
2099
+ this.#capturedPointerDown = event;
2100
+ if (!this.opts.ref.current) return;
2101
+ this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);
2102
+ };
2103
+ #isTargetWithinLayer = (target) => {
2104
+ if (!this.opts.ref.current) return false;
2105
+ return isOrContainsTarget(this.opts.ref.current, target);
2106
+ };
2107
+ /**
2108
+ * Resets the per-interaction state. Must stay synchronous.
2109
+ *
2110
+ * This was a `debounce(..., 20)` from when it was also wired to a capture-phase
2111
+ * interaction-end listener and had to land after the 10ms `#handleInteractOutside`
2112
+ * debounce. That listener is gone, but the debounce stayed on the `cleanup()` path —
2113
+ * and because `watch` runs `cleanup()` once per open (`ref` goes null -> node), every
2114
+ * layer scheduled a reset 20ms into its own lifetime. An outside `pointerdown` landing
2115
+ * 10-20ms after that cleanup would have its `#isResponsibleLayer` flag cleared by the
2116
+ * stale reset in the gap before the debounced `#handleInteractOutside` ran, which then
2117
+ * bailed and left the layer open. `cleanup()` destroys `#handleInteractOutside` anyway,
2118
+ * so nothing is left in flight that needs to observe the pre-reset state.
2119
+ */
2120
+ #resetState = () => {
2121
+ for (const eventType in this.#interceptedEvents) {
2122
+ this.#interceptedEvents[eventType] = false;
2123
+ }
2124
+ this.#isResponsibleLayer = false;
2125
+ this.#capturedPointerDown = null;
2126
+ };
2127
+ #isAnyEventIntercepted() {
2128
+ const i = Object.values(this.#interceptedEvents).some(Boolean);
2129
+ return i;
2130
+ }
2131
+ #onfocuscapture = () => {
2132
+ this.#isFocusInsideDOMTree = true;
2133
+ };
2134
+ #onblurcapture = () => {
2135
+ this.#isFocusInsideDOMTree = false;
2136
+ };
2137
+ props = {
2138
+ onfocuscapture: this.#onfocuscapture,
2139
+ onblurcapture: this.#onblurcapture
2140
+ };
2141
+ }
2142
+ function getTopMostDismissableLayer(layersArr = [...globalThis.bitsDismissableLayers]) {
2143
+ return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
2144
+ }
2145
+ function isResponsibleLayer(node) {
2146
+ const layersArr = [...globalThis.bitsDismissableLayers];
2147
+ const topMostLayer = getTopMostDismissableLayer(layersArr);
2148
+ if (topMostLayer) return topMostLayer[0].opts.ref.current === node;
2149
+ const [firstLayerNode] = layersArr[0];
2150
+ return firstLayerNode.opts.ref.current === node;
2151
+ }
2152
+ function isValidEvent(e, node) {
2153
+ const target = e.target;
2154
+ if (!isElementOrSVGElement(target)) return false;
2155
+ const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));
2156
+ const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));
2157
+ if ("button" in e && e.button > 0 && !targetIsContextMenuTrigger) return false;
2158
+ if ("button" in e && e.button === 0 && targetIsContextMenuTrigger && nodeIsContextMenu) {
2159
+ return true;
2160
+ }
2161
+ if (targetIsContextMenuTrigger && nodeIsContextMenu) return false;
2162
+ const ownerDocument = getOwnerDocument(target);
2163
+ const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
2164
+ return isValid;
2165
+ }
2166
+ function createWrappedEvent(e) {
2167
+ const capturedCurrentTarget = e.currentTarget;
2168
+ const capturedTarget = e.target;
2169
+ let newEvent;
2170
+ if (e instanceof PointerEvent) {
2171
+ newEvent = new PointerEvent(e.type, e);
2172
+ } else {
2173
+ newEvent = new PointerEvent("pointerdown", e);
2174
+ }
2175
+ let isPrevented = false;
2176
+ const wrappedEvent = new Proxy(newEvent, {
2177
+ get: (target, prop) => {
2178
+ if (prop === "currentTarget") {
2179
+ return capturedCurrentTarget;
2180
+ }
2181
+ if (prop === "target") {
2182
+ return capturedTarget;
2183
+ }
2184
+ if (prop === "preventDefault") {
2185
+ return () => {
2186
+ isPrevented = true;
2187
+ if (typeof target.preventDefault === "function") {
2188
+ target.preventDefault();
2189
+ }
2190
+ };
2191
+ }
2192
+ if (prop === "defaultPrevented") {
2193
+ return isPrevented;
2194
+ }
2195
+ if (prop in target) {
2196
+ return target[prop];
2197
+ }
2198
+ return e[prop];
2199
+ }
2200
+ });
2201
+ return wrappedEvent;
2202
+ }
2203
+ function Dismissible_layer($$renderer, $$props) {
2204
+ $$renderer.component(($$renderer2) => {
2205
+ let {
2206
+ interactOutsideBehavior = "close",
2207
+ onInteractOutside = noop,
2208
+ onFocusOutside = noop,
2209
+ id,
2210
+ children,
2211
+ enabled,
2212
+ isValidEvent: isValidEvent2 = () => false,
2213
+ ref
2214
+ } = $$props;
2215
+ const dismissibleLayerState = DismissibleLayerState.create({
2216
+ id: boxWith(() => id),
2217
+ interactOutsideBehavior: boxWith(() => interactOutsideBehavior),
2218
+ onInteractOutside: boxWith(() => onInteractOutside),
2219
+ enabled: boxWith(() => enabled),
2220
+ onFocusOutside: boxWith(() => onFocusOutside),
2221
+ isValidEvent: boxWith(() => isValidEvent2),
2222
+ ref
2223
+ });
2224
+ children?.($$renderer2, { props: dismissibleLayerState.props });
2225
+ $$renderer2.push(`<!---->`);
2226
+ });
2227
+ }
2228
+ globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
2229
+ class EscapeLayerState {
2230
+ static create(opts) {
2231
+ return new EscapeLayerState(opts);
2232
+ }
2233
+ opts;
2234
+ domContext;
2235
+ constructor(opts) {
2236
+ this.opts = opts;
2237
+ this.domContext = new DOMContext(this.opts.ref);
2238
+ let unsubEvents = noop;
2239
+ watch(() => opts.enabled.current, (enabled) => {
2240
+ if (enabled) {
2241
+ globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
2242
+ unsubEvents = this.#addEventListener();
2243
+ }
2244
+ return () => {
2245
+ unsubEvents();
2246
+ globalThis.bitsEscapeLayers.delete(this);
2247
+ };
2248
+ });
2249
+ }
2250
+ #addEventListener = () => {
2251
+ return on(this.domContext.getDocument(), "keydown", this.#onkeydown, { passive: false });
2252
+ };
2253
+ #onkeydown = (e) => {
2254
+ if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
2255
+ const clonedEvent = new KeyboardEvent(e.type, e);
2256
+ e.preventDefault();
2257
+ const behaviorType = this.opts.escapeKeydownBehavior.current;
2258
+ if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
2259
+ this.opts.onEscapeKeydown.current(clonedEvent);
2260
+ };
2261
+ }
2262
+ function isResponsibleEscapeLayer(instance) {
2263
+ const layersArr = [...globalThis.bitsEscapeLayers];
2264
+ const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
2265
+ if (topMostLayer) return topMostLayer[0] === instance;
2266
+ const [firstLayerNode] = layersArr[0];
2267
+ return firstLayerNode === instance;
2268
+ }
2269
+ function Escape_layer($$renderer, $$props) {
2270
+ $$renderer.component(($$renderer2) => {
2271
+ let {
2272
+ escapeKeydownBehavior = "close",
2273
+ onEscapeKeydown = noop,
2274
+ children,
2275
+ enabled,
2276
+ ref
2277
+ } = $$props;
2278
+ EscapeLayerState.create({
2279
+ escapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),
2280
+ onEscapeKeydown: boxWith(() => onEscapeKeydown),
2281
+ enabled: boxWith(() => enabled),
2282
+ ref
2283
+ });
2284
+ children?.($$renderer2);
2285
+ $$renderer2.push(`<!---->`);
2286
+ });
2287
+ }
2288
+ class FocusScopeManager {
2289
+ static instance;
2290
+ #scopeStack = simpleBox([]);
2291
+ #focusHistory = /* @__PURE__ */ new WeakMap();
2292
+ #preFocusHistory = /* @__PURE__ */ new WeakMap();
2293
+ static getInstance() {
2294
+ if (!this.instance) {
2295
+ this.instance = new FocusScopeManager();
2296
+ }
2297
+ return this.instance;
2298
+ }
2299
+ register(scope) {
2300
+ const current = this.getActive();
2301
+ if (current && current !== scope) {
2302
+ current.pause();
2303
+ }
2304
+ const activeElement = getActiveElement(document);
2305
+ if (activeElement && activeElement !== document.body) {
2306
+ this.#preFocusHistory.set(scope, activeElement);
2307
+ }
2308
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
2309
+ this.#scopeStack.current.unshift(scope);
2310
+ }
2311
+ unregister(scope) {
2312
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
2313
+ const next = this.getActive();
2314
+ if (next) {
2315
+ next.resume();
2316
+ }
2317
+ }
2318
+ getActive() {
2319
+ return this.#scopeStack.current[0];
2320
+ }
2321
+ setFocusMemory(scope, element) {
2322
+ this.#focusHistory.set(scope, element);
2323
+ }
2324
+ getFocusMemory(scope) {
2325
+ return this.#focusHistory.get(scope);
2326
+ }
2327
+ isActiveScope(scope) {
2328
+ return this.getActive() === scope;
2329
+ }
2330
+ setPreFocusMemory(scope, element) {
2331
+ this.#preFocusHistory.set(scope, element);
2332
+ }
2333
+ getPreFocusMemory(scope) {
2334
+ return this.#preFocusHistory.get(scope);
2335
+ }
2336
+ clearPreFocusMemory(scope) {
2337
+ this.#preFocusHistory.delete(scope);
2338
+ }
2339
+ }
2340
+ class FocusScope {
2341
+ #paused = false;
2342
+ #container = null;
2343
+ #manager = FocusScopeManager.getInstance();
2344
+ #cleanupFns = [];
2345
+ #opts;
2346
+ constructor(opts) {
2347
+ this.#opts = opts;
2348
+ }
2349
+ get paused() {
2350
+ return this.#paused;
2351
+ }
2352
+ pause() {
2353
+ this.#paused = true;
2354
+ }
2355
+ resume() {
2356
+ this.#paused = false;
2357
+ }
2358
+ #cleanup() {
2359
+ for (const fn of this.#cleanupFns) {
2360
+ fn();
2361
+ }
2362
+ this.#cleanupFns = [];
2363
+ }
2364
+ mount(container) {
2365
+ if (this.#container) {
2366
+ this.unmount();
2367
+ }
2368
+ this.#container = container;
2369
+ this.#manager.register(this);
2370
+ this.#setupEventListeners();
2371
+ this.#handleOpenAutoFocus();
2372
+ }
2373
+ unmount() {
2374
+ if (!this.#container) return;
2375
+ this.#cleanup();
2376
+ this.#handleCloseAutoFocus();
2377
+ this.#manager.unregister(this);
2378
+ this.#manager.clearPreFocusMemory(this);
2379
+ this.#container = null;
2380
+ }
2381
+ #handleOpenAutoFocus() {
2382
+ if (!this.#container) return;
2383
+ const event = new CustomEvent("focusScope.onOpenAutoFocus", { bubbles: false, cancelable: true });
2384
+ this.#opts.onOpenAutoFocus.current(event);
2385
+ if (!event.defaultPrevented) {
2386
+ requestAnimationFrame(() => {
2387
+ if (!this.#container || this.#paused || !this.#manager.isActiveScope(this) || this.#container.contains(getActiveElement(this.#container.ownerDocument))) {
2388
+ return;
2389
+ }
2390
+ const firstTabbable = this.#getFirstTabbable();
2391
+ if (firstTabbable) {
2392
+ firstTabbable.focus();
2393
+ this.#manager.setFocusMemory(this, firstTabbable);
2394
+ } else {
2395
+ this.#container.focus();
2396
+ }
2397
+ });
2398
+ }
2399
+ }
2400
+ #handleCloseAutoFocus() {
2401
+ const event = new CustomEvent("focusScope.onCloseAutoFocus", { bubbles: false, cancelable: true });
2402
+ this.#opts.onCloseAutoFocus.current?.(event);
2403
+ if (!event.defaultPrevented) {
2404
+ const preFocusedElement = this.#manager.getPreFocusMemory(this);
2405
+ if (preFocusedElement && preFocusedElement.isConnected) {
2406
+ try {
2407
+ preFocusedElement.focus();
2408
+ } catch {
2409
+ document.body.focus();
2410
+ }
2411
+ }
2412
+ }
2413
+ }
2414
+ #setupEventListeners() {
2415
+ if (!this.#container || !this.#opts.trap.current) return;
2416
+ const container = this.#container;
2417
+ const doc = container.ownerDocument;
2418
+ const handleFocus = (e) => {
2419
+ if (this.#paused || !this.#manager.isActiveScope(this)) return;
2420
+ const target = e.composedPath()[0];
2421
+ if (!target) return;
2422
+ const isInside = container.contains(target);
2423
+ if (isInside) {
2424
+ this.#manager.setFocusMemory(this, target);
2425
+ } else {
2426
+ const lastFocused = this.#manager.getFocusMemory(this);
2427
+ if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {
2428
+ e.preventDefault();
2429
+ lastFocused.focus();
2430
+ } else {
2431
+ const firstTabbable = this.#getFirstTabbable();
2432
+ const firstFocusable = this.#getAllFocusables()[0];
2433
+ (firstTabbable || firstFocusable || container).focus();
2434
+ }
2435
+ }
2436
+ };
2437
+ const handleKeydown = (e) => {
2438
+ if (!this.#opts.loop || this.#paused || e.key !== "Tab") return;
2439
+ if (!this.#manager.isActiveScope(this)) return;
2440
+ const tabbables = this.#getTabbables();
2441
+ if (tabbables.length === 0) return;
2442
+ const first = tabbables[0];
2443
+ const last = tabbables[tabbables.length - 1];
2444
+ if (!e.shiftKey && getActiveElement(doc) === last) {
2445
+ e.preventDefault();
2446
+ first.focus();
2447
+ } else if (e.shiftKey && getActiveElement(doc) === first) {
2448
+ e.preventDefault();
2449
+ last.focus();
2450
+ }
2451
+ };
2452
+ this.#cleanupFns.push(on(doc, "focusin", handleFocus, { capture: true }), on(container, "keydown", handleKeydown));
2453
+ const observer = new MutationObserver(() => {
2454
+ const lastFocused = this.#manager.getFocusMemory(this);
2455
+ if (lastFocused && !container.contains(lastFocused)) {
2456
+ const firstTabbable = this.#getFirstTabbable();
2457
+ const firstFocusable = this.#getAllFocusables()[0];
2458
+ const elementToFocus = firstTabbable || firstFocusable;
2459
+ if (elementToFocus) {
2460
+ elementToFocus.focus();
2461
+ this.#manager.setFocusMemory(this, elementToFocus);
2462
+ } else {
2463
+ container.focus();
2464
+ }
2465
+ }
2466
+ });
2467
+ observer.observe(container, { childList: true, subtree: true });
2468
+ this.#cleanupFns.push(() => observer.disconnect());
2469
+ }
2470
+ #getTabbables() {
2471
+ if (!this.#container) return [];
2472
+ return tabbable(this.#container, { includeContainer: false, getShadowRoot: true });
2473
+ }
2474
+ #getFirstTabbable() {
2475
+ const tabbables = this.#getTabbables();
2476
+ return tabbables[0] || null;
2477
+ }
2478
+ #getAllFocusables() {
2479
+ if (!this.#container) return [];
2480
+ return focusable(this.#container, { includeContainer: false, getShadowRoot: true });
2481
+ }
2482
+ static use(opts) {
2483
+ let scope = null;
2484
+ watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {
2485
+ if (ref && enabled) {
2486
+ if (!scope) {
2487
+ scope = new FocusScope(opts);
2488
+ }
2489
+ scope.mount(ref);
2490
+ } else if (scope) {
2491
+ scope.unmount();
2492
+ scope = null;
2493
+ }
2494
+ });
2495
+ return {
2496
+ get props() {
2497
+ return { tabindex: -1 };
2498
+ }
2499
+ };
2500
+ }
2501
+ }
2502
+ function Focus_scope($$renderer, $$props) {
2503
+ $$renderer.component(($$renderer2) => {
2504
+ let {
2505
+ enabled = false,
2506
+ trapFocus = false,
2507
+ loop = false,
2508
+ onCloseAutoFocus = noop,
2509
+ onOpenAutoFocus = noop,
2510
+ focusScope,
2511
+ ref
2512
+ } = $$props;
2513
+ const focusScopeState = FocusScope.use({
2514
+ enabled: boxWith(() => enabled),
2515
+ trap: boxWith(() => trapFocus),
2516
+ loop,
2517
+ onCloseAutoFocus: boxWith(() => onCloseAutoFocus),
2518
+ onOpenAutoFocus: boxWith(() => onOpenAutoFocus),
2519
+ ref
2520
+ });
2521
+ focusScope?.($$renderer2, { props: focusScopeState.props });
2522
+ $$renderer2.push(`<!---->`);
2523
+ });
2524
+ }
2525
+ const noopPointer = () => {
2526
+ };
2527
+ globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
2528
+ class TextSelectionLayerState {
2529
+ static create(opts) {
2530
+ return new TextSelectionLayerState(opts);
2531
+ }
2532
+ opts;
2533
+ domContext;
2534
+ #unsubSelectionLock = noop;
2535
+ #enabledSnapshot = false;
2536
+ #onPointerDownSnapshot = noopPointer;
2537
+ #onPointerUpSnapshot = noopPointer;
2538
+ constructor(opts) {
2539
+ this.opts = opts;
2540
+ this.domContext = new DOMContext(opts.ref);
2541
+ let unsubEvents = noop;
2542
+ watch(
2543
+ () => [
2544
+ this.opts.enabled.current,
2545
+ this.opts.onPointerDown.current,
2546
+ this.opts.onPointerUp.current
2547
+ ],
2548
+ ([enabled, onPointerDown, onPointerUp]) => {
2549
+ this.#enabledSnapshot = enabled;
2550
+ this.#onPointerDownSnapshot = onPointerDown;
2551
+ this.#onPointerUpSnapshot = onPointerUp;
2552
+ if (enabled) {
2553
+ globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
2554
+ unsubEvents();
2555
+ unsubEvents = this.#addEventListeners();
2556
+ }
2557
+ return () => {
2558
+ this.#enabledSnapshot = false;
2559
+ unsubEvents();
2560
+ this.#resetSelectionLock();
2561
+ globalThis.bitsTextSelectionLayers.delete(this);
2562
+ };
2563
+ }
2564
+ );
2565
+ }
2566
+ #addEventListeners() {
2567
+ return executeCallbacks(on(this.domContext.getDocument(), "pointerdown", this.#pointerdown), on(this.domContext.getDocument(), "pointerup", this.#pointerup));
2568
+ }
2569
+ #pointerup = (e) => {
2570
+ this.#resetSelectionLock();
2571
+ if (e.defaultPrevented) return;
2572
+ this.#onPointerUpSnapshot(e);
2573
+ };
2574
+ #pointerdown = (e) => {
2575
+ if (!this.#enabledSnapshot) return;
2576
+ this.#resetSelectionLock();
2577
+ const node = this.opts.ref.current;
2578
+ const target = e.target;
2579
+ if (!isHTMLElement(node) || !isHTMLElement(target)) return;
2580
+ if (!isHighestLayer(this) || !contains(node, target)) return;
2581
+ this.#onPointerDownSnapshot(e);
2582
+ if (e.defaultPrevented) return;
2583
+ this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);
2584
+ };
2585
+ #resetSelectionLock = () => {
2586
+ this.#unsubSelectionLock();
2587
+ this.#unsubSelectionLock = noop;
2588
+ };
2589
+ }
2590
+ const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
2591
+ function preventTextSelectionOverflow(node, body) {
2592
+ const originalBodyUserSelect = getUserSelect(body);
2593
+ const originalNodeUserSelect = getUserSelect(node);
2594
+ setUserSelect(body, "none");
2595
+ setUserSelect(node, "text");
2596
+ return () => {
2597
+ setUserSelect(body, originalBodyUserSelect);
2598
+ setUserSelect(node, originalNodeUserSelect);
2599
+ };
2600
+ }
2601
+ function setUserSelect(node, value) {
2602
+ node.style.userSelect = value;
2603
+ node.style.webkitUserSelect = value;
2604
+ }
2605
+ function isHighestLayer(instance) {
2606
+ const layersArr = [...globalThis.bitsTextSelectionLayers];
2607
+ if (!layersArr.length) return false;
2608
+ const highestLayer = layersArr.at(-1);
2609
+ if (!highestLayer) return false;
2610
+ return highestLayer[0] === instance;
2611
+ }
2612
+ function Text_selection_layer($$renderer, $$props) {
2613
+ $$renderer.component(($$renderer2) => {
2614
+ let {
2615
+ preventOverflowTextSelection = true,
2616
+ onPointerDown = noop,
2617
+ onPointerUp = noop,
2618
+ id,
2619
+ children,
2620
+ enabled,
2621
+ ref
2622
+ } = $$props;
2623
+ TextSelectionLayerState.create({
2624
+ id: boxWith(() => id),
2625
+ onPointerDown: boxWith(() => onPointerDown),
2626
+ onPointerUp: boxWith(() => onPointerUp),
2627
+ enabled: boxWith(() => enabled && preventOverflowTextSelection),
2628
+ ref
2629
+ });
2630
+ children?.($$renderer2);
2631
+ $$renderer2.push(`<!---->`);
2632
+ });
2633
+ }
2634
+ globalThis.bitsIdCounter ??= { current: 0 };
2635
+ function useId(prefix = "bits") {
2636
+ globalThis.bitsIdCounter.current++;
2637
+ return `${prefix}-${globalThis.bitsIdCounter.current}`;
2638
+ }
2639
+ class SharedState {
2640
+ #factory;
2641
+ #subscribers = 0;
2642
+ #state;
2643
+ #scope;
2644
+ constructor(factory) {
2645
+ this.#factory = factory;
2646
+ }
2647
+ #dispose() {
2648
+ this.#subscribers -= 1;
2649
+ if (this.#scope && this.#subscribers <= 0) {
2650
+ this.#scope();
2651
+ this.#state = void 0;
2652
+ this.#scope = void 0;
2653
+ }
2654
+ }
2655
+ get(...args) {
2656
+ this.#subscribers += 1;
2657
+ if (this.#state === void 0) {
2658
+ this.#scope = () => {
2659
+ };
2660
+ }
2661
+ return this.#state;
2662
+ }
2663
+ }
2664
+ const lockMap = new SvelteMap();
2665
+ const MANAGED_PROPERTIES = [
2666
+ "padding-right",
2667
+ "margin-right",
2668
+ "overflow",
2669
+ "overflow-x",
2670
+ "overflow-y",
2671
+ "pointer-events",
2672
+ "--scrollbar-width"
2673
+ ];
2674
+ let initialProperties = null;
2675
+ const modifiedProperties = /* @__PURE__ */ new Set();
2676
+ let cleanupTimeoutId = null;
2677
+ let isInCleanupTransition = false;
2678
+ function setManagedProperty(style, property, value) {
2679
+ style.setProperty(property, value);
2680
+ modifiedProperties.add(property);
2681
+ if (property === "overflow") {
2682
+ modifiedProperties.add("overflow-x");
2683
+ modifiedProperties.add("overflow-y");
2684
+ }
2685
+ }
2686
+ const anyLocked = boxWith(() => {
2687
+ for (const value of lockMap.values()) {
2688
+ if (value) return true;
2689
+ }
2690
+ return false;
2691
+ });
2692
+ let cleanupScheduledAt = null;
2693
+ const bodyLockStackCount = new SharedState(() => {
2694
+ function resetBodyStyle(documentObj) {
2695
+ return;
2696
+ }
2697
+ function cancelPendingCleanup() {
2698
+ if (cleanupTimeoutId === null) return;
2699
+ window.clearTimeout(cleanupTimeoutId);
2700
+ cleanupTimeoutId = null;
2701
+ }
2702
+ function scheduleCleanupIfNoNewLocks(delay, callback) {
2703
+ cancelPendingCleanup();
2704
+ isInCleanupTransition = true;
2705
+ cleanupScheduledAt = Date.now();
2706
+ const currentCleanupId = cleanupScheduledAt;
2707
+ const cleanupFn = () => {
2708
+ cleanupTimeoutId = null;
2709
+ if (cleanupScheduledAt !== currentCleanupId) return;
2710
+ if (!isAnyLocked(lockMap)) {
2711
+ isInCleanupTransition = false;
2712
+ callback();
2713
+ } else {
2714
+ isInCleanupTransition = false;
2715
+ }
2716
+ };
2717
+ const actualDelay = delay === null ? 24 : delay;
2718
+ cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);
2719
+ }
2720
+ function ensureInitialStyleCaptured() {
2721
+ if (initialProperties === null && lockMap.size === 0 && !isInCleanupTransition) {
2722
+ document.body.hasAttribute("style");
2723
+ initialProperties = /* @__PURE__ */ new Map();
2724
+ for (const prop of MANAGED_PROPERTIES) {
2725
+ initialProperties.set(prop, {
2726
+ value: document.body.style.getPropertyValue(prop),
2727
+ priority: document.body.style.getPropertyPriority(prop)
2728
+ });
2729
+ }
2730
+ }
2731
+ }
2732
+ watch(() => anyLocked.current, () => {
2733
+ if (!anyLocked.current) return;
2734
+ ensureInitialStyleCaptured();
2735
+ isInCleanupTransition = false;
2736
+ const htmlStyle = getComputedStyle(document.documentElement);
2737
+ const bodyStyle = getComputedStyle(document.body);
2738
+ const hasStableGutter = htmlStyle.scrollbarGutter?.includes("stable") || bodyStyle.scrollbarGutter?.includes("stable");
2739
+ const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
2740
+ const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? "0", 10);
2741
+ const config = {
2742
+ padding: paddingRight + verticalScrollbarWidth,
2743
+ margin: Number.parseInt(bodyStyle.marginRight ?? "0", 10)
2744
+ };
2745
+ if (verticalScrollbarWidth > 0 && !hasStableGutter) {
2746
+ setManagedProperty(document.body.style, "padding-right", `${config.padding}px`);
2747
+ setManagedProperty(document.body.style, "margin-right", `${config.margin}px`);
2748
+ setManagedProperty(document.body.style, "--scrollbar-width", `${verticalScrollbarWidth}px`);
2749
+ }
2750
+ setManagedProperty(document.body.style, "overflow", "hidden");
2751
+ if (isIOS) {
2752
+ on(
2753
+ document,
2754
+ "touchmove",
2755
+ (e) => {
2756
+ if (e.target !== document.documentElement) return;
2757
+ if (e.touches.length > 1) return;
2758
+ e.preventDefault();
2759
+ },
2760
+ { passive: false }
2761
+ );
2762
+ }
2763
+ afterTick(() => {
2764
+ setManagedProperty(document.body.style, "pointer-events", "none");
2765
+ setManagedProperty(document.body.style, "overflow", "hidden");
2766
+ });
2767
+ });
2768
+ return {
2769
+ get lockMap() {
2770
+ return lockMap;
2771
+ },
2772
+ resetBodyStyle,
2773
+ scheduleCleanupIfNoNewLocks,
2774
+ cancelPendingCleanup,
2775
+ ensureInitialStyleCaptured
2776
+ };
2777
+ });
2778
+ class BodyScrollLock {
2779
+ #id = useId();
2780
+ #initialState;
2781
+ #restoreScrollDelay = () => null;
2782
+ #countState;
2783
+ locked;
2784
+ constructor(initialState, restoreScrollDelay = () => null) {
2785
+ this.#initialState = initialState;
2786
+ this.#restoreScrollDelay = restoreScrollDelay;
2787
+ this.#countState = bodyLockStackCount.get();
2788
+ if (!this.#countState) return;
2789
+ this.#countState.cancelPendingCleanup();
2790
+ this.#countState.ensureInitialStyleCaptured();
2791
+ this.#countState.lockMap.set(this.#id, this.#initialState ?? false);
2792
+ this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));
2793
+ }
2794
+ }
2795
+ function isAnyLocked(map) {
2796
+ for (const [_, value] of map) {
2797
+ if (value) return true;
2798
+ }
2799
+ return false;
2800
+ }
2801
+ function Scroll_lock($$renderer, $$props) {
2802
+ $$renderer.component(($$renderer2) => {
2803
+ let { preventScroll = true, restoreScrollDelay = null } = $$props;
2804
+ if (preventScroll) {
2805
+ new BodyScrollLock(preventScroll, () => restoreScrollDelay);
2806
+ }
2807
+ });
2808
+ }
2809
+
2810
+ export { Refresh_cw as $, ARROW_DOWN as A, isFocusVisible as B, Context as C, DOMContext as D, ENTER as E, tabbable as F, useId as G, HOME as H, isWritableSymbol as I, BoxSymbol as J, isFocusable as K, focusable as L, isSelectableInput as M, cssToStyleObj as N, isNotNull as O, PresenceManager as P, styleToString as Q, getWindow as R, SPACE as S, TAB as T, ARROW_RIGHT as U, ARROW_LEFT as V, defaultWindow as W, boxFlatten as X, toReadonlyBox as Y, isBox as Z, isWritableBox as _, Portal as a, Scroll_lock as a0, Focus_scope as a1, Escape_layer as a2, Dismissible_layer as a3, Text_selection_layer as a4, getAriaChecked as a5, boxWith as b, createBitsAttrs as c, createId as d, attachRef as e, boolToStr as f, getDataOpenClosed as g, boxFrom as h, isTouch as i, Circle_arrow_up as j, isElement as k, isTabbable as l, mergeProps as m, noop as n, getDataTransitionAttrs as o, getDocument as p, boolToEmptyStrOrUndef as q, afterTick as r, simpleBox as s, isHTMLElement as t, PAGE_UP as u, ARROW_UP as v, watch as w, PAGE_DOWN as x, END as y, isElementOrSVGElement as z };
2811
+ //# sourceMappingURL=scroll-lock.js-Ci_ylINL.js.map